:root {
  --bg-top: #4b78a8;
  --bg-mid: #1a2f4b;
  --bg-deep: #090f1c;
  --glass-bg: linear-gradient(175deg, rgba(164, 198, 232, 0.28) 0%, rgba(44, 68, 99, 0.42) 48%, rgba(18, 26, 40, 0.72) 100%);
  --glass-card: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-soft: rgba(255, 255, 255, 0.12);
  --text-main: #f4f7fb;
  --text-muted: rgba(232, 240, 252, 0.68);
  --accent-orange: #f28c28;
  --accent-blue: #3b82f6;
  --accent-emerald: #22c55e;
  --accent-violet: #8b5cf6;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric twilight blue-to-obsidian backdrop matching col_gui.mp4 */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 22% 14%, #6a97c7 0%, #2c4d75 36%, #101b2e 72%, #070b14 100%);
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -90px;
  background: #7eb2e6;
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: 28%;
  right: -120px;
  background: #2c5282;
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: -140px;
  left: 32%;
  background: #1e3a5f;
}

.app-shell {
  display: flex;
  gap: 28px;
  padding: 24px;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* =====================================================================
   GLASSY SIDEBAR V10 (Floating Pill <-> Expanded Glass + White Rail)
   ===================================================================== */
.glass-sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  max-height: 860px;
  min-height: 620px;
  display: flex;
  flex-shrink: 0;
  border-radius: 34px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 28px 64px rgba(3, 8, 18, 0.58),
    inset 0 1px 1px rgba(255, 255, 255, 0.36);
  overflow: hidden;
  transition: width 0.42s var(--spring), border-radius 0.42s var(--spring);
}

.glass-sidebar.expanded {
  width: 318px;
}

.glass-sidebar.collapsed {
  width: 76px;
  border-radius: 38px;
}

.sidebar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-body::-webkit-scrollbar {
  display: none;
}

/* Brand Row */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 6px;
}

.brand-orb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.45), rgba(120, 165, 215, 0.22));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.brand-orb:hover {
  transform: scale(1.05);
}

.brand-orb svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.22s ease;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Search */
.sidebar-search-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn-collapsed {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  place-items: center;
  cursor: pointer;
}

.icon-btn-collapsed svg {
  width: 18px;
  height: 18px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.search-ico {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.kbd-pill {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}

/* Nav Items */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(242, 246, 252, 0.88);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(6, 14, 28, 0.3);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.nav-item.active .nav-count {
  background: #e8eef7;
  color: #1e3a5f;
}

.nav-badge-orange {
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-orange);
  color: #fff;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 4px 2px;
}

.section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
  padding: 2px 8px 0;
}

/* Collections with Colored Dots */
.collections-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(242, 246, 252, 0.85);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.collection-item:hover,
.collection-item.active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.16);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.dot-amber {
  background: var(--accent-orange);
  color: var(--accent-orange);
}

.dot-emerald {
  background: var(--accent-emerald);
  color: var(--accent-emerald);
}

.dot-violet {
  background: var(--accent-violet);
  color: var(--accent-violet);
}

.collection-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-spacer {
  flex: 1;
}

/* Bottom VPS Card */
.vps-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 14, 26, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vps-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vps-mini-icon svg {
  width: 15px;
  height: 15px;
  color: #facc15;
}

.vps-mini-info {
  flex: 1;
  min-width: 0;
}

.vps-mini-title {
  font-size: 12.5px;
  font-weight: 600;
}

.vps-mini-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vps-mini-btn {
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.vps-mini-btn:hover {
  opacity: 0.9;
}

/* Footer Profile Row */
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 2px;
  text-decoration: none;
  color: inherit;
}

.avatar-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.42);
}

.profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
}

.profile-url {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Docked White Right Utility Rail (Signature Glassy Sidebar V10 Element) */
.sidebar-white-rail {
  width: 52px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 14px;
  transition: width 0.35s var(--spring), opacity 0.25s ease;
}

.rail-collapse-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}

.rail-collapse-btn:hover {
  transform: scale(1.08);
}

.rail-collapse-btn svg {
  width: 17px;
  height: 17px;
}

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.rail-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.rail-btn svg {
  width: 16px;
  height: 16px;
}

.rail-vertical-tag {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94a3b8;
  user-select: none;
}

/* Collapsed State Overrides */
.glass-sidebar.collapsed .sidebar-body {
  align-items: center;
  padding: 16px 10px;
}

.glass-sidebar.collapsed .brand-text,
.glass-sidebar.collapsed .search-pill,
.glass-sidebar.collapsed .nav-label,
.glass-sidebar.collapsed .nav-count,
.glass-sidebar.collapsed .nav-badge-orange,
.glass-sidebar.collapsed .section-label,
.glass-sidebar.collapsed .collection-name,
.glass-sidebar.collapsed .collection-pill,
.glass-sidebar.collapsed .vps-mini-card,
.glass-sidebar.collapsed .profile-text {
  display: none;
}

.glass-sidebar.collapsed .icon-btn-collapsed {
  display: grid;
}

.glass-sidebar.collapsed .nav-item {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.glass-sidebar.collapsed .collection-item {
  width: 40px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

.glass-sidebar.collapsed .sidebar-white-rail {
  width: 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
}

/* =====================================================================
   MAIN STAGE & GLASS CARDS
   ===================================================================== */
.main-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.stage-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stage-header p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-select,
.glass-chip {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.glass-select option {
  background: #142238;
  color: #fff;
}

.hidden {
  display: none !important;
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border-soft);
  box-shadow: 0 12px 30px rgba(4, 10, 22, 0.28);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
}

.kpi-note {
  font-size: 11.5px;
  color: rgba(220, 232, 248, 0.56);
}

/* Lot Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.lot-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--glass-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-soft);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(4, 10, 22, 0.34);
  transition: transform 0.22s var(--spring), border-color 0.22s ease;
}

.lot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.lot-media {
  position: relative;
  height: 196px;
  background: rgba(8, 14, 26, 0.55);
  overflow: hidden;
  cursor: pointer;
}

.lot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.lot-pill-top {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(10, 18, 32, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-live {
  color: #86efac;
}

.pill-re {
  color: #fcd34d;
}

.pill-sold {
  color: #93c5fd;
}

.lot-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(10, 18, 32, 0.74);
  color: #fff;
}

.lot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

.lot-auction {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.lot-copy {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: rgba(232, 240, 252, 0.76);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lot-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cta-bid-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta-bid-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.22);
}

.details-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.details-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.realized-price {
  font-size: 20px;
  font-weight: 700;
  color: #86efac;
  letter-spacing: -0.02em;
}

.realized-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Export & Status Cards */
.feed-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-card h3 {
  margin: 0;
  font-size: 16px;
}

.feed-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.status-pre {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid var(--glass-border-soft);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--glass-card);
  border: 1px solid var(--glass-border-soft);
  color: var(--text-muted);
}

/* =====================================================================
   NATIVE MODAL DIALOG (Modern Web Guidance Compliant)
   ===================================================================== */
dialog.glass-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border-radius: 26px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(28, 48, 76, 0.94), rgba(10, 16, 28, 0.97));
  color: var(--text-main);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

dialog.glass-dialog:modal {
  overscroll-behavior: contain;
}

dialog.glass-dialog::backdrop {
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 42px);
  overflow: hidden;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header-text {
  min-width: 0;
  flex: 1;
}

.dialog-header h1 {
  margin: 6px 0 4px;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dialog-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.dialog-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.dialog-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dialog-gallery,
.dialog-details {
  min-width: 0;
}

.dialog-main-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  display: block;
}

.dialog-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.dialog-thumbs img {
  width: 60px;
  height: 46px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
}

.dialog-thumbs img.active,
.dialog-thumbs img:hover {
  opacity: 1;
  border-color: #fff;
}

.dialog-price-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.dialog-section {
  margin-bottom: 16px;
}

.dialog-section h2 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.dialog-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.specs-list div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.specs-list dt {
  font-size: 10.5px;
  color: var(--text-muted);
}

.specs-list dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.similar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.similar-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  text-decoration: none;
  color: inherit;
}

.similar-row strong {
  color: #86efac;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
    padding: 14px;
  }

  .glass-sidebar,
  .glass-sidebar.expanded,
  .glass-sidebar.collapsed {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }
}

/* Expandable AI Subcategories in Sidebar */
.subcat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px 20px;
}
.subcat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 236, 250, 0.78);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}
.subcat-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.subcat-item.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 600;
}
.glass-sidebar.collapsed .subcat-list {
  display: none;
}
