:root {
  --black: #030303;
  --black-2: #090a0c;
  --panel: rgba(8, 9, 11, 0.78);
  --panel-strong: rgba(9, 10, 12, 0.94);
  --white: #ffffff;
  --soft-white: #f3f5f8;
  --silver: #c7ced8;
  --muted: #8d96a3;
  --red: #ff1724;
  --red-deep: #920008;
  --red-soft: rgba(255, 23, 36, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --line-red: rgba(255, 23, 36, 0.46);
  --radius: 8px;
}

/* Premium compact redesign overrides */
:root {
  --premium-bg: #070707;
  --premium-panel: rgba(12, 13, 15, 0.84);
  --premium-panel-solid: #111214;
  --premium-text: #f7f7f5;
  --premium-muted: #a9afb8;
  --premium-line: rgba(255, 255, 255, 0.12);
  --premium-red: #e50914;
  --premium-gold: #c8a86b;
}

html {
  font-size: 15px;
}

body {
  background:
    linear-gradient(rgba(5, 5, 5, 0.76), rgba(5, 5, 5, 0.94)),
    url("/static/img/hero-bg.jpg") center / cover fixed,
    var(--premium-bg);
  color: var(--premium-text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

.ad-rail {
  display: none;
}

.ad-rail-lazy {
  visibility: hidden;
  pointer-events: none;
}

.ad-rail-lazy.is-ready {
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1440px) {
  .ad-rail {
    position: fixed;
    top: 104px;
    z-index: 20;
    display: block;
    width: clamp(112px, 8.5vw, 160px);
    min-height: 280px;
    max-height: calc(100vh - 136px);
    overflow: hidden;
  }

  .ad-rail-left {
    left: 12px;
  }

  .ad-rail-right {
    right: 12px;
  }

  .ad-rail .adsbygoogle {
    width: 100%;
    min-height: 280px;
  }
}

.site-header {
  width: min(100% - 28px, 1180px);
  min-height: 68px;
  margin-top: 12px;
  padding: 8px 12px;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  background: rgba(4, 4, 5, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.brand-mark {
  gap: 10px;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  letter-spacing: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  box-shadow: none;
}

.header-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.main-nav,
.header-actions {
  gap: 6px;
}

.main-nav a,
.ghost-button,
.glass-button,
.red-button,
.language-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--premium-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-shell,
.workspace-shell,
.room-shell {
  width: min(100% - 28px, 1180px);
}

.hero-full {
  min-height: clamp(560px, 76vh, 780px);
  padding: clamp(92px, 12vw, 132px) clamp(20px, 5vw, 68px) clamp(40px, 7vw, 72px);
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1,
.page-heading h1,
.dashboard-head h1,
.room-header h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead,
.feature-tile p,
.showcase-card,
.empty-state p,
.pending-call-panel p,
.car-recommendation-card p {
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  color: var(--premium-muted);
}

.hero-stat-strip {
  max-width: 900px;
  gap: 8px;
}

.hero-stat-strip span {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.feature-section,
.showcase-band {
  width: min(100% - 28px, 1180px);
}

.section-title h2,
.showcase-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.feature-grid-large,
.dashboard-grid,
.expert-booking-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-tile,
.booking-card,
.result-panel,
.empty-state,
.video-panel,
.chat-panel {
  border-radius: 8px;
  background: var(--premium-panel);
  border-color: var(--premium-line);
}

.filter-lab {
  gap: 18px;
}

.choice-group {
  min-height: auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
}

.group-title h2,
.booking-card h2,
.expert-card-head h2 {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.choice-card {
  min-height: 56px;
  padding: 12px;
  font-size: 0.92rem;
  border-radius: 8px;
}

.free-note textarea,
.auth-form input,
.chat-form input,
.approval-form input {
  font-size: 0.95rem;
  border-radius: 8px;
}

.recommendation-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.recommendation-card-grid.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 14px 0;
}

.car-recommendation-card {
  min-height: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.car-recommendation-card > span {
  display: inline-flex;
  width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--premium-red);
  background: rgba(229, 9, 20, 0.12);
  font-weight: 900;
  font-size: 0.78rem;
}

.car-recommendation-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.25;
}

.car-recommendation-card dl,
.detail-list {
  display: grid;
  gap: 8px;
}

.car-recommendation-card dl div,
.detail-list div {
  display: grid;
  gap: 2px;
}

.car-recommendation-card dt,
.detail-list dt {
  color: var(--premium-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.car-recommendation-card dd,
.detail-list dd {
  margin: 0;
  color: var(--premium-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pending-call-panel,
.approved-call-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.pending-call-panel {
  border-color: rgba(200, 168, 107, 0.38);
  background: rgba(200, 168, 107, 0.1);
}

.approved-call-panel {
  border-color: rgba(21, 185, 118, 0.42);
  background: rgba(21, 185, 118, 0.1);
}

.pending-call-panel strong,
.approved-call-panel strong {
  display: block;
  font-size: 0.98rem;
}

.approved-call-panel span {
  color: var(--premium-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.expert-booking-card {
  display: grid;
  gap: 14px;
}

.expert-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.expert-card-head p,
.table-note {
  color: var(--premium-muted);
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.approval-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--premium-line);
}

.approval-form label {
  display: grid;
  gap: 7px;
  color: var(--premium-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.approval-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--premium-line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--premium-text);
  padding: 0 12px;
}

.room-grid.chat-only-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.room-appointment,
.room-pending {
  margin-bottom: 16px;
}

.jitsi-mount {
  min-height: clamp(380px, 60vh, 660px);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    display: none;
    padding: 8px 0 2px;
  }

  .header-panel.is-open {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    align-items: stretch;
    justify-content: stretch;
  }

  .main-nav a,
  .header-actions > a,
  .header-actions form,
  .header-actions button,
  .user-chip {
    width: 100%;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 14px;
  }

  .site-header,
  .hero-shell,
  .workspace-shell,
  .room-shell,
  .feature-section,
  .showcase-band {
    width: min(100% - 18px, 1180px);
  }

  .hero-full {
    min-height: 620px;
    padding: 90px 16px 34px;
  }

  .hero-actions,
  .filter-actions,
  .dashboard-head,
  .page-heading,
  .room-header,
  .expert-card-head,
  .approval-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .red-button,
  .glass-button,
  .ghost-button,
  .language-button {
    width: 100%;
  }

  .dashboard-grid,
  .expert-booking-grid,
  .recommendation-card-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .booking-card,
  .choice-group,
  .result-panel,
  .chat-panel {
    padding: 16px;
  }

  .brand-mark span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  font-family: "Cairo", "Tajawal", "Inter", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 23, 36, 0.22), transparent 28rem),
    linear-gradient(rgba(3, 3, 3, 0.88), rgba(3, 3, 3, 0.96)),
    url("/static/img/hero-bg.jpg") center top / cover fixed,
    var(--black);
}

body.lang-en {
  font-family: "Inter", "Cairo", sans-serif;
}

body::selection {
  background: var(--red);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.site-header {
  width: min(100% - 32px, 1680px);
  min-height: 90px;
  margin: 18px auto 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  position: sticky;
  top: 14px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 3, 3, 0.68);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  font-size: 1.12rem;
  font-weight: 900;
}

.brand-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 26px rgba(255, 23, 36, 0.26);
}

.brand-mark strong,
.hero-copy span {
  color: var(--red);
  text-shadow: 0 0 28px rgba(255, 23, 36, 0.58);
}

.main-nav,
.header-actions,
.hero-actions,
.filter-actions,
.signal-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav {
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;
}

.main-nav a,
.ghost-button,
.glass-button,
.red-button,
.language-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.main-nav a {
  color: var(--silver);
  font-weight: 900;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.ghost-button,
.glass-button,
.language-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.language-button {
  border-color: var(--line-red);
  color: var(--soft-white);
}

.red-button {
  border-color: rgba(255, 23, 36, 0.72);
  background: linear-gradient(135deg, #ff1b28 0%, #9d0009 100%);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 16px 46px rgba(255, 23, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ghost-button:hover,
.glass-button:hover,
.red-button:hover,
.language-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 23, 36, 0.16);
}

.compact {
  min-height: 42px;
  padding: 0 15px;
}

.tiny {
  min-height: 34px;
  padding: 0 12px;
}

.full {
  width: 100%;
}

.user-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--soft-white);
  background: var(--red-soft);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-stack {
  width: min(100% - 32px, 1380px);
  margin: 18px auto 0;
  display: grid;
  gap: 10px;
}

.flash-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.flash-message.error {
  border-color: var(--line-red);
  color: #ffd8db;
}

.flash-message.success {
  border-color: rgba(122, 255, 168, 0.34);
  color: #d8ffe5;
}

.hero-shell,
.feature-section,
.showcase-band,
.auth-shell,
.workspace-shell,
.room-shell {
  width: min(100% - 32px, 1680px);
  margin-inline: auto;
}

.hero-full {
  min-height: calc(100vh - 122px);
  position: relative;
  display: grid;
  align-items: center;
  padding: 104px 0 90px;
}

.hero-media {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.88) 0%, rgba(3, 3, 3, 0.28) 50%, rgba(3, 3, 3, 0.85) 100%),
    url("/static/img/hero-bg.jpg") center center / cover;
}

[dir="rtl"] .hero-media {
  transform: scaleX(-1);
}

.hero-media::after,
.showcase-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 30px rgba(255, 23, 36, 0.75);
}

.hero-copy {
  max-width: 920px;
}

.hero-copy h1,
.page-heading h1,
.dashboard-head h1,
.room-header h1,
.auth-panel h1,
.section-title h2,
.showcase-card h2 {
  margin: 0;
  color: var(--white);
  font-weight: 900;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(4rem, 9vw, 10rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 900;
  text-shadow: 0 0 24px rgba(255, 23, 36, 0.4);
}

.hero-lead {
  max-width: 800px;
  margin: 28px 0;
  color: var(--soft-white);
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.9;
}

.hero-lead.small {
  font-size: 1.05rem;
}

.hero-stat-strip {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 54px;
}

.hero-stat-strip span,
.signal-row span {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft-white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  font-weight: 900;
  text-align: center;
  padding: 10px;
}

.feature-section {
  padding: 88px 0 74px;
}

.section-title {
  max-width: 960px;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-tile,
.auth-panel,
.choice-group,
.result-panel,
.booking-card,
.empty-state,
.expert-table-wrap,
.video-panel,
.chat-panel,
.showcase-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 92px rgba(0, 0, 0, 0.46);
}

.feature-tile {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.14), rgba(3, 3, 3, 0.92));
  z-index: -1;
}

.feature-ai,
.feature-video,
.feature-security,
.feature-report {
  background-size: cover;
  background-position: center;
}

.feature-ai {
  background-image: url("/static/img/feature-luxury-suv.jpg");
}

.feature-video {
  background-image: url("/static/img/feature-sports-coupe.jpg");
}

.feature-security {
  background-image: url("/static/img/feature-luxury-sedan.jpg");
}

.feature-report {
  background-image: url("/static/img/feature-grand-tourer.jpg");
}

.feature-tile span,
.group-title span {
  color: var(--red);
  font-weight: 900;
}

.feature-tile h3,
.choice-group h2,
.booking-card h2,
.empty-state h2,
.result-panel h2 {
  margin: 10px 0;
  font-size: 1.36rem;
  font-weight: 900;
}

.feature-tile p,
.empty-state p,
.result-panel p {
  margin: 0;
  color: var(--silver);
  line-height: 1.85;
}

.showcase-band {
  min-height: 480px;
  position: relative;
  display: grid;
  align-items: end;
  margin-bottom: 68px;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.12), rgba(3, 3, 3, 0.9)),
    url("/static/img/hero-bg.jpg") center / cover;
}

.showcase-card {
  width: min(780px, 100%);
  padding: 30px;
}

.showcase-card h2 {
  font-size: clamp(2rem, 4vw, 4.3rem);
}

.auth-shell {
  min-height: calc(100vh - 122px);
  display: grid;
  place-items: center;
  padding: 76px 0;
}

.auth-panel {
  width: min(580px, 100%);
  padding: 36px;
}

.auth-panel.wide {
  width: min(720px, 100%);
}

.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.stack-form label,
.free-note {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-weight: 900;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.chat-form input,
.free-note textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.46);
  color: var(--white);
  padding: 0 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.chat-form input:focus,
.free-note textarea:focus {
  border-color: var(--line-red);
  box-shadow: 0 0 0 4px rgba(255, 23, 36, 0.12);
}

.free-note {
  margin-top: 18px;
}

.free-note textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.workspace-shell,
.room-shell {
  padding: 70px 0;
}

.page-heading,
.dashboard-head,
.room-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}

.filter-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-expert-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.44;
  filter: grayscale(1);
  pointer-events: none;
  box-shadow: none;
}

.page-heading h1,
.dashboard-head h1,
.room-header h1 {
  font-size: clamp(2.25rem, 5vw, 5.05rem);
}

.page-heading-wide {
  max-width: 1320px;
}

.filter-lab {
  display: grid;
  gap: 18px;
}

.choice-group {
  min-height: 270px;
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.choice-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-size: cover;
  background-position: center;
}

.choice-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.96), rgba(3, 3, 3, 0.68));
}

[dir="rtl"] .choice-photo::after {
  background: linear-gradient(270deg, rgba(3, 3, 3, 0.96), rgba(3, 3, 3, 0.68));
}

.budget-photo::before {
  background-image: url("/static/img/feature-luxury-suv.jpg");
}

.category-photo::before {
  background-image: url("/static/img/feature-sports-coupe.jpg");
}

.usage-photo::before {
  background-image: url("/static/img/feature-luxury-sedan.jpg");
}

.preference-photo::before {
  background-image: url("/static/img/feature-grand-tourer.jpg");
}

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.group-title h2 {
  margin: 0;
  font-size: 1.7rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  min-height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--soft-white);
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card:hover,
.choice-card.selected {
  transform: translateY(-3px);
  border-color: var(--line-red);
  background: rgba(255, 23, 36, 0.18);
  box-shadow: 0 18px 54px rgba(255, 23, 36, 0.17), inset 0 0 32px rgba(255, 23, 36, 0.09);
}

.sticky-actions {
  position: sticky;
  bottom: 14px;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(18px);
}

.result-panel {
  margin-top: 20px;
  padding: 28px;
}

.hidden {
  display: none !important;
}

.loader-line {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.loader-line::after {
  content: "";
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: loading 1.15s ease-in-out infinite;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.booking-card,
.empty-state {
  padding: 24px;
}

.booking-card {
  background:
    linear-gradient(rgba(8, 9, 11, 0.88), rgba(8, 9, 11, 0.96)),
    url("/static/img/feature-grand-tourer.jpg") center / cover;
}

.booking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.booking-topline strong {
  color: var(--red);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-list div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--white);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.recommendation-box,
.recommendation-row pre {
  white-space: pre-wrap;
  color: var(--soft-white);
  line-height: 1.85;
  border: 1px solid rgba(255, 23, 36, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.32);
  padding: 16px;
  font-family: inherit;
  overflow-x: auto;
}

.expert-table-wrap {
  overflow-x: auto;
}

.expert-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.expert-table th,
.expert-table td {
  padding: 16px;
  text-align: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--silver);
  vertical-align: top;
}

.expert-table th {
  color: var(--white);
  background: rgba(255, 23, 36, 0.14);
}

.expert-table td span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.92rem;
}

.recommendation-row td {
  padding-top: 0;
}

.table-note {
  margin: 10px 0 0;
  color: var(--silver);
}

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.85fr);
  gap: 18px;
  min-height: 72vh;
}

.video-panel,
.chat-panel {
  overflow: hidden;
}

.video-panel,
.jitsi-mount,
.jitsi-fallback,
.chat-panel {
  min-height: 660px;
}

.jitsi-mount {
  width: 100%;
  height: 100%;
  background: #050505;
}

.jitsi-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.chat-context strong {
  color: var(--red);
}

.chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-bubble {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(0, 0, 0, 0.3);
}

.message-bubble div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.message-bubble strong {
  color: var(--red);
}

.message-bubble p {
  margin: 8px 0 0;
  color: var(--white);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-in {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 150ms;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading {
  0% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(-260%);
  }
}

@media (max-width: 1220px) {
  .feature-grid,
  .hero-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .room-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand-mark,
  .main-nav,
  .header-actions {
    justify-content: center;
  }

  .hero-full {
    padding-top: 62px;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .page-heading,
  .dashboard-head,
  .room-header {
    align-items: start;
    flex-direction: column;
  }

  .choice-grid,
  .detail-list,
  .feature-grid,
  .hero-stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header,
  .hero-shell,
  .feature-section,
  .showcase-band,
  .auth-shell,
  .workspace-shell,
  .room-shell {
    width: min(100% - 18px, 1680px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    padding: 10px;
  }

  .brand-logo-img {
    width: 52px;
    height: 52px;
  }

  .brand-mark span {
    font-size: 0.95rem;
  }

  .main-nav a,
  .ghost-button,
  .glass-button,
  .red-button,
  .language-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .choice-group,
  .result-panel,
  .booking-card,
  .empty-state,
  .auth-panel,
  .showcase-card {
    padding: 18px;
  }

  .choice-card {
    min-height: 78px;
  }

  .video-panel,
  .jitsi-mount,
  .jitsi-fallback,
  .chat-panel {
    min-height: 460px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}

/* Final responsive premium layer */
html { font-size: 15px; }

body {
  color: var(--premium-text, #f7f7f5);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

.site-header {
  width: min(100% - 28px, 1180px);
  min-height: 68px;
  margin-top: 12px;
  padding: 8px 12px;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: rgba(4, 4, 5, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.brand-mark { gap: 10px; font-size: clamp(0.95rem, 1.4vw, 1.08rem); letter-spacing: 0; }
.brand-logo-img { width: 44px; height: 44px; box-shadow: none; }

.header-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.main-nav, .header-actions { gap: 6px; }

.main-nav a,
.ghost-button,
.glass-button,
.red-button,
.language-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--premium-text, #f7f7f5);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-shell,
.workspace-shell,
.room-shell,
.feature-section,
.showcase-band {
  width: min(100% - 28px, 1180px);
}

.hero-full {
  min-height: clamp(560px, 76vh, 780px);
  padding: clamp(92px, 12vw, 132px) clamp(20px, 5vw, 68px) clamp(40px, 7vw, 72px);
}

.hero-copy { max-width: 680px; }

.hero-copy h1,
.page-heading h1,
.dashboard-head h1,
.room-header h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead,
.feature-tile p,
.empty-state p,
.pending-call-panel p,
.car-recommendation-card p {
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  color: var(--premium-muted, #a9afb8);
}

.section-title h2,
.showcase-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.feature-grid-large,
.dashboard-grid,
.expert-booking-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.choice-group,
.booking-card,
.result-panel,
.empty-state,
.video-panel,
.chat-panel,
.feature-tile {
  border-radius: 8px;
  background: var(--premium-panel, rgba(12, 13, 15, 0.84));
}

.choice-group { min-height: auto; padding: clamp(18px, 3vw, 28px); }
.group-title h2, .booking-card h2, .expert-card-head h2 { font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.25; }
.choice-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice-card { min-height: 56px; padding: 12px; font-size: 0.92rem; border-radius: 8px; }

.recommendation-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.recommendation-card-grid.compact-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 14px 0; }

.car-recommendation-card {
  min-height: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.car-recommendation-card > span {
  display: inline-flex;
  width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--premium-red, #e50914);
  background: rgba(229, 9, 20, 0.12);
  font-weight: 900;
  font-size: 0.78rem;
}

.car-recommendation-card h3 { margin: 12px 0 10px; font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.25; }
.car-recommendation-card dl, .detail-list { display: grid; gap: 8px; }
.car-recommendation-card dl div, .detail-list div { display: grid; gap: 2px; }
.car-recommendation-card dt, .detail-list dt { color: var(--premium-muted, #a9afb8); font-size: 0.76rem; font-weight: 800; }
.car-recommendation-card dd, .detail-list dd { margin: 0; color: var(--premium-text, #f7f7f5); font-weight: 800; overflow-wrap: anywhere; }

.pending-call-panel,
.approved-call-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pending-call-panel { border-color: rgba(200, 168, 107, 0.38); background: rgba(200, 168, 107, 0.1); }
.approved-call-panel { border-color: rgba(21, 185, 118, 0.42); background: rgba(21, 185, 118, 0.1); }
.pending-call-panel strong, .approved-call-panel strong { display: block; font-size: 0.98rem; }
.approved-call-panel span { color: var(--premium-muted, #a9afb8); font-size: 0.78rem; font-weight: 800; }

.auth-showcase {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 520px);
  align-items: stretch;
  gap: 18px;
}

.auth-visual {
  min-height: 520px;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.12), rgba(3, 3, 3, 0.94)),
    url("/static/img/feature-grand-tourer.jpg") center / cover;
}

.auth-visual img {
  width: clamp(108px, 10vw, 140px);
  height: clamp(108px, 10vw, 140px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  margin-bottom: auto;
}

.auth-visual h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 900;
}

.auth-visual h2 span {
  color: var(--premium-red, #e50914);
}

.auth-visual p {
  max-width: 620px;
  margin: 0;
  color: var(--premium-muted, #a9afb8);
  font-weight: 700;
}

.auth-switch {
  min-height: 42px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  border-radius: 8px;
  color: var(--premium-text, #f7f7f5);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 90, 90, 0.55);
  color: #ffe1e1;
  background: rgba(170, 12, 24, 0.28);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.danger-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 90, 0.8);
  background: rgba(205, 20, 35, 0.42);
}

.red-button:disabled,
.glass-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.delete-booking-form {
  display: flex;
  justify-content: flex-end;
}

.expert-booking-card { display: grid; gap: 14px; }
.expert-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.expert-card-head p, .table-note { color: var(--premium-muted, #a9afb8); margin: 4px 0 0; font-size: 0.9rem; }

.approval-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--premium-line, rgba(255,255,255,0.12));
}

.approval-form label { display: grid; gap: 7px; color: var(--premium-muted, #a9afb8); font-size: 0.82rem; font-weight: 800; }
.approval-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  background: rgba(0, 0, 0, 0.24);
  color: var(--premium-text, #f7f7f5);
  padding: 0 12px;
  border-radius: 8px;
}

.room-grid.chat-only-grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.room-appointment, .room-pending { margin-bottom: 16px; }
.jitsi-mount { min-height: clamp(380px, 60vh, 660px); }

.car-recommendation-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 0 0 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.car-card-media {
  min-height: 150px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.car-recommendation-card > span,
.car-recommendation-card h3,
.car-recommendation-card dl,
.car-recommendation-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.slot-manager {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.slot-board h2,
.slot-picker h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.slot-picker {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 185, 118, 0.34);
  border-radius: 8px;
  background: rgba(21, 185, 118, 0.08);
}

.slot-option {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--premium-line, rgba(255,255,255,0.12));
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--premium-text, #f7f7f5);
  font-weight: 900;
}

.slot-option input {
  margin: 0;
}

.slot-option small {
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
}

.slot-option.booked {
  border-color: rgba(200, 168, 107, 0.38);
  background: rgba(200, 168, 107, 0.1);
}

.form-error {
  color: #ffd2d2;
  font-weight: 800;
}

/* Dream Car premium wide experience */
body {
  background:
    linear-gradient(180deg, rgba(3, 3, 4, 0.96), rgba(10, 9, 7, 0.98)),
    #050505;
}

.site-header,
.hero-shell,
.workspace-shell,
.room-shell,
.feature-section,
.showcase-band {
  width: min(100% - 36px, 1480px);
}

.hero-full {
  min-height: 86vh;
  border-color: rgba(218, 180, 92, 0.24);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.48);
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    url("/static/img/hero-bg.jpg") center center / cover;
}

.hero-copy h1 {
  font-size: clamp(4.8rem, 10vw, 10.5rem);
  letter-spacing: 0;
}

.hero-copy h1 span,
.eyebrow,
.feature-tile > span,
.booking-topline strong {
  color: #d9b45f;
}

.hero-lead,
.feature-tile p {
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}

.filter-shell,
.result-panel {
  max-width: 1480px;
}

.filter-lab {
  gap: 22px;
}

.choice-group {
  border-color: rgba(218, 180, 92, 0.22);
}

.result-panel .recommendation-card-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.result-panel .car-recommendation-card {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  min-height: 265px;
  border-color: rgba(218, 180, 92, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.result-panel .car-card-media {
  grid-row: 1 / span 4;
  min-height: 100%;
  border-bottom: 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}

.result-panel .car-recommendation-card > span {
  margin-top: 22px;
}

.result-panel .car-recommendation-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.result-panel .car-recommendation-card p {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.8;
}

.optional-booking-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(218, 180, 92, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.12), rgba(255, 255, 255, 0.045));
}

.optional-booking-panel strong {
  color: #f6f0df;
  font-size: 1.08rem;
}

.optional-booking-panel p {
  margin: 0;
  color: var(--premium-muted, #a9afb8);
}

.slot-picker,
.slot-manager {
  border-color: rgba(218, 180, 92, 0.3);
}

body.modal-open {
  overflow: hidden;
}

.slot-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  isolation: isolate;
}

.slot-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.slot-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(218, 180, 92, 0.36);
  border-radius: 12px;
  background: rgba(9, 9, 10, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(218,180,92,0.3) transparent;
}

.slot-modal-head {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 2px 0 14px;
  background: rgba(9, 9, 10, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-modal-head h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2.5vw, 1.7rem);
}

.slot-option:has(input:checked) {
  border-color: rgba(218, 180, 92, 0.8);
  background: rgba(218, 180, 92, 0.14);
}

.auth-register-showcase {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 520px);
}

.auth-register-showcase .auth-visual {
  min-height: 560px;
}

.visual-slot-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  padding-top: 12px;
  border-top: 1px solid var(--premium-line, rgba(255,255,255,0.12));
}

.visual-slot-form [data-slot-submit] {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  min-height: 48px;
  margin-top: 4px;
  box-shadow: 0 -14px 28px rgba(9, 9, 10, 0.92);
}

.visual-slot-form [data-slot-submit]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.visual-slot-form label {
  display: grid;
  gap: 8px;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.82rem;
  font-weight: 900;
}

.visual-slot-form input[type="date"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(218, 180, 92, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--premium-text, #f7f7f5);
  padding: 0 12px;
  font-weight: 900;
}

.time-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-inline-end: 4px;
}

.date-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-inline-end: 4px;
}

.month-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding-inline-end: 4px;
}

.month-chip,
.date-chip,
.time-chip {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--premium-text, #f7f7f5);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  cursor: pointer;
}

.month-chip:hover,
.month-chip.selected,
.date-chip:hover,
.date-chip.selected,
.time-chip:hover,
.time-chip.selected {
  border-color: rgba(218, 180, 92, 0.82);
  background: rgba(218, 180, 92, 0.16);
}

.visual-slot-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-option form {
  margin-top: 8px;
}

.slot-option .danger-button.tiny {
  width: 100%;
  min-height: 34px;
  font-size: 0.78rem;
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto auto; }
  .header-panel { grid-column: 1 / -1; grid-template-columns: 1fr; display: none; padding: 8px 0 2px; }
  .header-panel.is-open { display: grid; }
  .nav-toggle { display: inline-flex; }
  .main-nav, .header-actions { align-items: stretch; justify-content: stretch; }
  .main-nav a, .header-actions > a, .header-actions form, .header-actions button, .user-chip { width: 100%; }
}

@media (max-width: 720px) {
  html { font-size: 14px; }
  .site-header,
  .hero-shell,
  .workspace-shell,
  .room-shell,
  .feature-section,
  .showcase-band { width: min(100% - 18px, 1180px); }
  .hero-full { min-height: 620px; padding: 90px 16px 34px; }
  .hero-actions,
  .filter-actions,
  .dashboard-head,
  .page-heading,
  .room-header,
  .auth-showcase,
  .expert-card-head { flex-direction: column; align-items: stretch; }
  .approval-form,
  .dashboard-grid,
  .expert-booking-grid,
  .recommendation-card-grid,
  .choice-grid,
  .auth-showcase { grid-template-columns: 1fr; }
  .red-button, .glass-button, .ghost-button, .language-button, .danger-button { width: 100%; }
  .booking-card, .choice-group, .result-panel, .chat-panel { padding: 16px; }
  .auth-visual { min-height: 360px; }
  .brand-mark span { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .result-panel .car-recommendation-card {
    grid-template-columns: 1fr;
  }
  .result-panel .car-card-media {
    grid-row: auto;
    min-height: 220px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .visual-slot-form,
  .auth-register-showcase {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EXPERT PAGE V2 — Enhanced Design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Expert Page Header ─── */
.expert-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.expert-header-text h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.expert-header-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.expert-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: 14px 18px;
  border: 1px solid rgba(218, 180, 92, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.1), rgba(255, 255, 255, 0.04));
  gap: 4px;
}

.expert-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #d9b45f;
  line-height: 1;
}

.expert-stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--premium-muted, #a9afb8);
  text-align: center;
}

/* ─── Expert Section Heads ─── */
.expert-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.expert-section-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
}

/* ─── Slot Section ─── */
.expert-slot-section {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid rgba(218, 180, 92, 0.22);
  border-radius: 12px;
  background: rgba(218, 180, 92, 0.04);
}

.expert-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.expert-slot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease;
}

.expert-slot-item.slot-open {
  border-color: rgba(21, 185, 118, 0.3);
  background: rgba(21, 185, 118, 0.06);
}

.expert-slot-item.slot-booked {
  border-color: rgba(218, 180, 92, 0.36);
  background: rgba(218, 180, 92, 0.08);
}

.slot-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slot-open .slot-item-icon {
  background: rgba(21, 185, 118, 0.16);
  color: #15b976;
}

.slot-booked .slot-item-icon {
  background: rgba(218, 180, 92, 0.18);
  color: #d9b45f;
}

.slot-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-item-time {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--premium-text, #f7f7f5);
}

.slot-item-status {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-delete-form {
  flex-shrink: 0;
}

.slot-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 90, 90, 0.3);
  background: rgba(170, 12, 24, 0.18);
  color: #ffb3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.slot-delete-btn:hover {
  background: rgba(205, 20, 35, 0.38);
  border-color: rgba(255, 90, 90, 0.6);
}

.expert-empty-slots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px;
  color: var(--premium-muted, #a9afb8);
  text-align: center;
}

.expert-empty-slots p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ─── Expert Booking Cards V2 ─── */
.expert-bookings-section {
  margin-bottom: 24px;
}

.expert-booking-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.expert-booking-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.expert-booking-card-v2:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.expert-booking-card-v2.card-confirmed {
  border-color: rgba(21, 185, 118, 0.28);
  background: rgba(21, 185, 118, 0.04);
}

.expert-booking-card-v2.card-pending {
  border-color: rgba(218, 180, 92, 0.22);
  background: rgba(218, 180, 92, 0.03);
}

/* Top bar */
.ebc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ebc-id-badge {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--premium-muted, #a9afb8);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ebc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-confirmed {
  background: rgba(21, 185, 118, 0.18);
  color: #4de8a5;
  border: 1px solid rgba(21, 185, 118, 0.36);
}

.badge-pending {
  background: rgba(218, 180, 92, 0.16);
  color: #e8c96a;
  border: 1px solid rgba(218, 180, 92, 0.34);
}

/* Customer info */
.ebc-customer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ebc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.4), rgba(229, 9, 20, 0.2));
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ffb3b3;
}

.ebc-customer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ebc-customer-info strong {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
}

.ebc-customer-info span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
}

.ebc-room-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(21, 185, 118, 0.2);
  border: 1px solid rgba(21, 185, 118, 0.4);
  color: #4de8a5;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease;
  flex-shrink: 0;
}

.ebc-room-btn:hover {
  background: rgba(21, 185, 118, 0.32);
}

/* Details */
.ebc-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ebc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ebc-detail-full {
  grid-column: 1 / -1;
}

.ebc-detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--premium-muted, #a9afb8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ebc-detail-value {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
}

/* Notes */
.ebc-notes {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: var(--premium-muted, #a9afb8);
  font-weight: 700;
  line-height: 1.5;
}

.ebc-notes svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

/* Recommendations inside expert card */
.ebc-recommendations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ebc-rec-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  color: #d9b45f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ebc-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.ebc-rec-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.ebc-rec-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.ebc-rec-num {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}

.ebc-rec-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.ebc-rec-body strong {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
  line-height: 1.3;
}

.ebc-rec-body span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
}

.ebc-rec-price {
  color: #d9b45f !important;
  font-weight: 900 !important;
}

.ebc-rec-body p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--premium-muted, #a9afb8);
  line-height: 1.5;
}

/* Actions */
.ebc-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ebc-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 90, 0.3);
  background: rgba(170, 12, 24, 0.18);
  color: #ffb3b3;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease;
}

.ebc-delete-btn:hover {
  background: rgba(205, 20, 35, 0.35);
}

/* Empty state */
.expert-empty-bookings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.expert-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--premium-muted, #a9afb8);
}

.expert-empty-bookings h2 {
  margin: 0;
  font-size: 1.3rem;
}

.expert-empty-bookings p {
  margin: 0;
  color: var(--premium-muted, #a9afb8);
  max-width: 400px;
}

/* ═══════════════════════════════════════════════════════════════
   ROOM PAGE V2 — Chat-Focused (No Jitsi)
   ═══════════════════════════════════════════════════════════════ */

.room-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.room-status-bar > svg {
  flex-shrink: 0;
}

.room-status-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.room-status-bar strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.room-status-bar span {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.75;
}

.status-confirmed {
  background: rgba(21, 185, 118, 0.1);
  border: 1px solid rgba(21, 185, 118, 0.36);
  color: #4de8a5;
}

.status-pending {
  background: rgba(218, 180, 92, 0.1);
  border: 1px solid rgba(218, 180, 92, 0.36);
  color: #e8c96a;
}

/* Participants */
.room-participants {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.room-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 160px;
}

.room-participant-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.customer-avatar {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.4), rgba(229, 9, 20, 0.15));
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ffb3b3;
}

.expert-avatar {
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.4), rgba(218, 180, 92, 0.15));
  border: 1px solid rgba(218, 180, 92, 0.3);
  color: #f5d98a;
}

.room-participant-name {
  display: block;
  font-weight: 900;
  font-size: 0.96rem;
}

.room-participant-role {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
}

.room-participant-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--premium-muted, #a9afb8);
}

/* Chat container */
.room-chat-container {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 600px;
}

.room-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
  flex-shrink: 0;
}

.chat-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(21, 185, 118, 0.5);
  margin-inline-start: auto;
  transition: background 400ms ease;
}

.chat-live-dot.dot-active {
  background: #15b976;
  box-shadow: 0 0 8px rgba(21, 185, 118, 0.7);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.chat-welcome p {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.88rem;
  font-weight: 700;
  max-width: 340px;
  margin: 0;
  line-height: 1.6;
}

.message-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bubble-mine {
  align-self: flex-end;
  background: rgba(229, 9, 20, 0.22);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-bottom-inline-end-radius: 4px;
}

.bubble-theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-inline-start-radius: 4px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble-meta strong {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
}

.bubble-meta span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
  margin-inline-start: auto;
}

.message-bubble p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--premium-text, #f7f7f5);
  word-break: break-word;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--premium-text, #f7f7f5);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  transition: border-color 200ms ease;
}

.chat-form input:focus {
  border-color: rgba(229, 9, 20, 0.5);
}

/* Room booking details */
.room-booking-details {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.room-booking-details h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--premium-muted, #a9afb8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.room-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.room-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.room-detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--premium-muted, #a9afb8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.room-detail-value {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
}

.room-notes {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.room-notes p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--premium-muted, #a9afb8);
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .expert-page-header { flex-direction: column; }
  .expert-header-stats { width: 100%; justify-content: stretch; }
  .expert-stat-card { flex: 1; }
  .expert-booking-list { grid-template-columns: 1fr; }
  .ebc-details { grid-template-columns: 1fr; }
  .ebc-rec-grid { grid-template-columns: 1fr 1fr; }
  .room-participants { flex-direction: column; align-items: flex-start; }
  .room-participant-divider { display: none; }
  .message-bubble { max-width: 90%; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE V2 — Premium Redesign
   ═══════════════════════════════════════════════════════════════ */

/* Hero enhancements */
.hero-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(218, 180, 92, 0.4);
  border-radius: 20px;
  background: rgba(218, 180, 92, 0.1);
  color: #d9b45f;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 0 28px;
  min-height: 50px;
}

/* Hero stats - enhanced */
.hero-stat-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 80px;
  padding: 8px 16px;
}

.hero-stat-item strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: #d9b45f;
  line-height: 1;
}

.hero-stat-item strong.stat-nowrap {
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.7vw, 1.18rem);
  letter-spacing: 0;
}

.hero-stat-item span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--premium-muted, #a9afb8);
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* How it works section */
.how-section {
  width: min(100% - 36px, 1480px);
  margin: 0 auto 60px;
  padding: 50px 0;
}

.how-header {
  text-align: center;
  margin-bottom: 48px;
}

.how-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 8px 0 0;
}

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 28px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.how-step:hover {
  border-color: rgba(218, 180, 92, 0.3);
  background: rgba(218, 180, 92, 0.05);
  transform: translateY(-4px);
}

.how-step-num {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--premium-red, #e50914);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.how-step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(218, 180, 92, 0.1);
  border: 1px solid rgba(218, 180, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9b45f;
}

.how-step h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.how-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--premium-muted, #a9afb8);
  line-height: 1.6;
}

.how-step-arrow {
  padding: 0 8px;
  flex-shrink: 0;
}

/* CTA Band */
.cta-band {
  width: min(100% - 36px, 1480px);
  margin: 0 auto 60px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid rgba(218, 180, 92, 0.3);
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.1), rgba(229, 9, 20, 0.06), rgba(0,0,0,0.2));
  flex-wrap: wrap;
}

.cta-band-text h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.cta-band-text p {
  margin: 0;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.92rem;
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FILTER CARDS — No Images, Clean List Style
   ═══════════════════════════════════════════════════════════════ */

.rec-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rec-booking-id {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--premium-muted, #a9afb8);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 16px;
  color: #d9b45f;
}

.rec-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.rec-card-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(218, 180, 92, 0.22);
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.07), rgba(255, 255, 255, 0.03));
  transition: border-color 200ms ease, transform 200ms ease;
}

.rec-card-row:hover {
  border-color: rgba(218, 180, 92, 0.45);
  transform: translateX(-3px);
}

.rec-card-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(218, 180, 92, 0.5);
  line-height: 1;
  min-width: 36px;
  padding-top: 2px;
}

.rec-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  min-width: 36px;
  text-align: center;
  padding-top: 2px;
}

.rec-card-body {
  flex: 1;
  min-width: 0;
}

.rec-card-body h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
}

.rec-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rec-card-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
}

.rec-card-price {
  color: #d9b45f !important;
  font-weight: 900 !important;
}

.rec-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--premium-muted, #a9afb8);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   WEBRTC CALL PANEL
   ═══════════════════════════════════════════════════════════════ */

.webrtc-panel {
  border: 1px solid rgba(21, 185, 118, 0.28);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 18px;
}

.webrtc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(21, 185, 118, 0.08);
  border-bottom: 1px solid rgba(21, 185, 118, 0.2);
  font-size: 0.88rem;
  font-weight: 900;
  color: #4de8a5;
}

.webrtc-status {
  margin-inline-start: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--premium-muted, #a9afb8);
}

.webrtc-videos {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  padding: 16px;
  min-height: 280px;
}

.video-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.video-remote {
  min-height: 260px;
}

.video-local {
  min-height: 180px;
}

.video-label {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 200px;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.82rem;
  font-weight: 700;
}

.webrtc-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 180ms ease;
  border: 1px solid;
}

.call-start {
  background: rgba(21, 185, 118, 0.2);
  border-color: rgba(21, 185, 118, 0.4);
  color: #4de8a5;
}

.call-start:hover { background: rgba(21, 185, 118, 0.32); }

.call-audio {
  background: rgba(100, 160, 255, 0.15);
  border-color: rgba(100, 160, 255, 0.35);
  color: #90b8ff;
}

.call-audio:hover { background: rgba(100, 160, 255, 0.25); }

.call-mute {
  background: rgba(255, 200, 50, 0.15);
  border-color: rgba(255, 200, 50, 0.3);
  color: #ffd966;
}

.call-end {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ff6b6b;
}

.call-end:hover { background: rgba(229, 9, 20, 0.32); }

.call-cam {
  background: rgba(180, 100, 255, 0.15);
  border-color: rgba(180, 100, 255, 0.35);
  color: #d4a0ff;
}
.call-cam:hover { background: rgba(180, 100, 255, 0.25); }

.call-btn.hidden { display: none; }

.webrtc-note {
  margin: 0;
  padding: 8px 16px 12px;
  font-size: 0.74rem;
  color: var(--premium-muted, #a9afb8);
  text-align: center;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 720px) {
  .how-steps { flex-direction: column; align-items: stretch; }
  .how-step { max-width: 100%; }
  .how-step-arrow { transform: rotate(90deg); align-self: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
  .hero-stat-strip { gap: 0; }
  .hero-stat-divider { display: none; }
  .webrtc-videos { grid-template-columns: 1fr; }
  .video-local { min-height: 140px; }
  .rec-card-row { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   Free Text Filter Mode
   ═══════════════════════════════════════════════════════════════ */

.ai-filter-form {
  max-width: 760px;
  margin: 0 auto 32px;
}

.ai-filter-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(218, 180, 92, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(218, 180, 92, 0.07), rgba(255,255,255,0.03));
  margin-bottom: 16px;
}

.ai-filter-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(218, 180, 92, 0.15);
  border: 1px solid rgba(218, 180, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9b45f;
  flex-shrink: 0;
}

.ai-filter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-filter-label {
  font-size: 0.88rem;
  font-weight: 900;
  color: #d9b45f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-filter-textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--premium-text, #f7f7f5);
  padding: 12px 14px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms ease;
}

.ai-filter-textarea:focus {
  border-color: rgba(218, 180, 92, 0.55);
}

.ai-filter-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--premium-muted, #a9afb8);
  font-weight: 700;
}

.ai-filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ai-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  font-size: 1rem;
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
}

.ai-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(218, 180, 92, 0.2);
  border-top-color: #d9b45f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ai-loading p {
  color: var(--premium-muted, #a9afb8);
  font-weight: 700;
  margin: 0;
}

.rec-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  color: #ff9999;
}

.rec-error h3 { margin: 0; }
.rec-error p { margin: 0; color: var(--premium-muted, #a9afb8); }

/* Rec card with image */
.rec-card-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-radius: 12px;
  border: 1px solid rgba(218, 180, 92, 0.22);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}

.rec-card-row:hover {
  border-color: rgba(218, 180, 92, 0.45);
  transform: translateY(-2px);
}

.rec-card-img {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-inline-end: 1px solid rgba(255,255,255,0.1);
}

.rec-card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 4px;
}

.rec-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.rec-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rec-card-icon-sm { font-size: 1.2rem; }

.rec-card-body h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
}

.rec-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rec-card-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--premium-muted, #a9afb8);
}

.rec-card-price { color: #d9b45f !important; font-weight: 900 !important; }

.rec-card-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--premium-muted, #a9afb8);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .rec-card-row { grid-template-columns: 1fr; }
  .rec-card-img { min-height: 180px; border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .ai-filter-box { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   GUIDE PAGE
   ═══════════════════════════════════════════════════════════════ */

.guide-shell {
  max-width: 900px;
  margin: 0 auto;
}

.guide-hero {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

.guide-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 12px;
}

.guide-hero-lead {
  color: var(--premium-muted, #a9afb8);
  font-size: 1.05rem;
  margin: 0;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.guide-section-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.guide-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Roles */
.guide-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-role-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-customer { border-color: rgba(100, 160, 255, 0.25); background: rgba(100, 160, 255, 0.05); }
.role-expert { border-color: rgba(218, 180, 92, 0.28); background: rgba(218, 180, 92, 0.05); }

.guide-role-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-customer .guide-role-icon { background: rgba(100,160,255,0.15); color: #90b8ff; }
.role-expert .guide-role-icon { background: rgba(218,180,92,0.15); color: #d9b45f; }

.guide-role-card h3 { margin: 0; font-size: 1.1rem; }
.guide-role-card p { margin: 0; color: var(--premium-muted, #a9afb8); font-size: 0.88rem; line-height: 1.6; flex: 1; }

.guide-role-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--premium-text, #f7f7f5);
  transition: background 180ms ease;
}

.guide-role-btn:hover { background: rgba(255,255,255,0.13); }

/* Steps */
.guide-steps-list { display: flex; flex-direction: column; }

.guide-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(218, 180, 92, 0.15);
  border: 1px solid rgba(218, 180, 92, 0.3);
  color: #d9b45f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-step-content {
  flex: 1;
  padding-bottom: 20px;
}

.guide-step-content h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 900; }
.guide-step-content p { margin: 0; color: var(--premium-muted, #a9afb8); font-size: 0.88rem; line-height: 1.6; }

.guide-step-connector {
  width: 1px;
  height: 20px;
  background: rgba(218, 180, 92, 0.2);
  margin-inline-start: 15px;
}

.guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(218, 180, 92, 0.08);
  border: 1px solid rgba(218, 180, 92, 0.2);
  font-size: 0.82rem;
  color: #d9b45f;
  font-weight: 700;
  line-height: 1.5;
}

.guide-tip svg { flex-shrink: 0; margin-top: 1px; }

.guide-tip-lg {
  margin-top: 16px;
  font-size: 0.88rem;
}

/* Call info */
.guide-call-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.guide-call-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.guide-call-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-video { background: rgba(21,185,118,0.15); color: #4de8a5; }
.call-audio { background: rgba(100,160,255,0.15); color: #90b8ff; }
.call-chat { background: rgba(218,180,92,0.15); color: #d9b45f; }

.guide-call-item h3 { margin: 0 0 4px; font-size: 0.92rem; font-weight: 900; }
.guide-call-item p { margin: 0; font-size: 0.82rem; color: var(--premium-muted, #a9afb8); line-height: 1.5; }

/* FAQ */
.guide-faq-list { display: flex; flex-direction: column; gap: 10px; }

.guide-faq-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.guide-faq-item summary {
  padding: 14px 18px;
  font-weight: 900;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.guide-faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: #d9b45f;
  flex-shrink: 0;
}

.guide-faq-item[open] summary::after { content: "−"; }

.guide-faq-item p {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Guide CTA */
.guide-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 32px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .guide-roles-grid { grid-template-columns: 1fr; }
  .guide-call-info { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   EXPERT DASHBOARD — Simple & Clean v3
   ═══════════════════════════════════════════════════════════════ */

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.exp-header h1 { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.exp-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.exp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(218,180,92,0.28);
  background: rgba(218,180,92,0.07);
  min-width: 80px;
}

.exp-stat strong { font-size: 1.8rem; font-weight: 900; color: #d9b45f; line-height: 1; }
.exp-stat span   { font-size: 0.72rem; font-weight: 800; color: var(--premium-muted,#a9afb8); text-align: center; margin-top: 3px; }

/* Slot bar */
.exp-slot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.exp-slot-bar h2 { margin: 0; font-size: 1rem; font-weight: 900; }

/* Slots grid */
.exp-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}

.exp-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.exp-slot.slot-free  { border-color: rgba(21,185,118,0.28); background: rgba(21,185,118,0.05); }
.exp-slot.slot-taken { border-color: rgba(218,180,92,0.28); background: rgba(218,180,92,0.05); }

.exp-slot-time {
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--premium-text,#f7f7f5);
  white-space: nowrap;
}

.exp-slot-info { flex: 1; min-width: 0; }

.slot-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.slot-tag.free  { background: rgba(21,185,118,0.15); color: #4de8a5; }
.slot-tag.taken { background: rgba(218,180,92,0.15); color: #d9b45f; }

.exp-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid rgba(255,90,90,0.3);
  background: rgba(170,12,24,0.15);
  color: #ffb3b3;
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}

.exp-del-btn:hover { background: rgba(205,20,35,0.35); }

.exp-empty-note {
  color: var(--premium-muted,#a9afb8);
  font-size: 0.88rem;
  margin: 0 0 24px;
}

/* Section title */
.exp-section-title { margin-bottom: 14px; }
.exp-section-title h2 { margin: 0; font-size: 1rem; font-weight: 900; }

/* Bookings */
.exp-bookings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.exp-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms;
}

.exp-card:hover { border-color: rgba(255,255,255,0.18); }
.exp-card.card-ok   { border-color: rgba(21,185,118,0.28); background: rgba(21,185,118,0.03); }
.exp-card.card-wait { border-color: rgba(218,180,92,0.2); }

/* Card top row */
.exp-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-card-id {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--premium-muted,#a9afb8);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 20px;
}

.exp-card-status {
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-ok   { background: rgba(21,185,118,0.18); color: #4de8a5; border: 1px solid rgba(21,185,118,0.3); }
.status-wait { background: rgba(218,180,92,0.15); color: #e8c96a; border: 1px solid rgba(218,180,92,0.3); }

.exp-room-btn {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(21,185,118,0.18);
  border: 1px solid rgba(21,185,118,0.35);
  color: #4de8a5;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms;
}

.exp-room-btn:hover { background: rgba(21,185,118,0.3); }

/* Customer */
.exp-card-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.exp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229,9,20,0.25);
  border: 1px solid rgba(229,9,20,0.3);
  color: #ffb3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.exp-card-customer strong { display: block; font-size: 0.94rem; font-weight: 900; }
.exp-card-customer span   { font-size: 0.78rem; color: var(--premium-muted,#a9afb8); font-weight: 700; }

/* Details */
.exp-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.exp-card-details > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
}

.exp-card-details > div.full-col { grid-column: 1 / -1; }
.exp-card-details span  { font-size: 0.68rem; font-weight: 800; color: var(--premium-muted,#a9afb8); text-transform: uppercase; letter-spacing: 0.04em; }
.exp-card-details strong { font-size: 0.86rem; font-weight: 900; color: var(--premium-text,#f7f7f5); }

/* Notes */
.exp-notes {
  font-size: 0.84rem;
  color: var(--premium-muted,#a9afb8);
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  line-height: 1.5;
}

/* Recommendations */
.exp-recs { padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.exp-recs-label { margin: 0 0 10px; font-size: 0.76rem; font-weight: 900; color: #d9b45f; text-transform: uppercase; letter-spacing: 0.06em; }

.exp-recs-grid { display: flex; flex-direction: column; gap: 8px; }

.exp-rec-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(218,180,92,0.18);
  background: rgba(218,180,92,0.05);
}

.exp-rec-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(218,180,92,0.5);
  min-width: 28px;
}

.exp-rec-item > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.exp-rec-item strong { font-size: 0.9rem; font-weight: 900; color: var(--premium-text,#f7f7f5); }
.exp-rec-item span   { font-size: 0.76rem; font-weight: 700; color: var(--premium-muted,#a9afb8); }
.exp-rec-price       { color: #d9b45f !important; font-weight: 900 !important; }
.exp-rec-item p      { margin: 3px 0 0; font-size: 0.78rem; color: var(--premium-muted,#a9afb8); line-height: 1.5; }

/* Footer */
.exp-card-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }

.exp-del-booking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,90,90,0.28);
  background: rgba(170,12,24,0.15);
  color: #ffb3b3;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 150ms;
}

.exp-del-booking:hover { background: rgba(205,20,35,0.3); }

/* Empty */
.exp-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--premium-muted,#a9afb8);
}

.exp-empty p { margin: 0 0 6px; font-size: 1.1rem; font-weight: 900; color: var(--premium-text,#f7f7f5); }
.exp-empty small { font-size: 0.86rem; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — All Devices
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .exp-bookings { grid-template-columns: 1fr; }
  .exp-slots-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Mobile */
@media (max-width: 600px) {
  .exp-header { flex-direction: column; }
  .exp-stats  { width: 100%; }
  .exp-stat   { flex: 1; }
  .exp-card-details { grid-template-columns: 1fr; }
  .exp-card-details > div.full-col { grid-column: 1; }
  .exp-card-top { gap: 6px; }
  .exp-room-btn { margin-inline-start: 0; width: 100%; justify-content: center; }

  /* Filter */
  .ai-filter-box { flex-direction: column; }
  .rec-card-row  { grid-template-columns: 1fr; }
  .rec-card-img  { min-height: 160px; border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

  /* Room */
  .webrtc-videos { grid-template-columns: 1fr; }
  .webrtc-controls { gap: 6px; }
  .call-btn { flex: 1; justify-content: center; font-size: 0.78rem; padding: 8px 10px; }

  /* Hero */
  .hero-stat-strip { flex-wrap: wrap; padding: 12px 16px; gap: 0; }
  .hero-stat-item  { min-width: 50%; padding: 8px 10px; }
  .hero-stat-divider { display: none; }

  /* How steps */
  .how-steps { flex-direction: column; align-items: stretch; }
  .how-step  { max-width: 100%; }
  .how-step-arrow { transform: rotate(90deg); align-self: center; }

  /* CTA band */
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }

  /* Slot modal */
  .slot-modal-panel { padding: 14px 14px; }
  .time-button-grid { max-height: 200px; }
  .date-button-grid { max-height: 160px; }
  .month-button-grid { max-height: 120px; }

  /* Dashboard */
  .dashboard-head, .room-header, .page-heading { flex-direction: column; align-items: stretch; }
  .dashboard-grid, .recommendation-card-grid { grid-template-columns: 1fr; }
}

/* Large screens */
@media (min-width: 1400px) {
  .exp-bookings { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
}

/* Final delivery fixes: text-only recommendations, embedded calls, stable responsive expert UI */
* { box-sizing: border-box; }
body { overflow-x: hidden; }
main { width: 100%; }
.workspace-shell,
.room-shell,
.filter-shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.external-call-panel {
  margin-bottom: 18px;
  border: 1px solid rgba(218, 180, 92, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.external-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--premium-text, #f7f7f5);
  font-weight: 900;
}

.external-call-header > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.external-call-frame {
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  min-height: 520px;
  border: 0;
  background: #08090c;
}

.external-call-note {
  margin: 0;
  padding: 10px 14px 12px;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.86rem;
  line-height: 1.6;
}

.room-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.room-live-grid .webrtc-panel,
.room-live-grid .room-chat-container {
  margin-bottom: 0;
  min-width: 0;
}

.call-suite,
.chat-suite {
  border-radius: 12px;
  border: 1px solid rgba(218, 180, 92, 0.22);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.call-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.call-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.call-title span {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--premium-text, #f7f7f5);
  overflow-wrap: anywhere;
}

.call-title small {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.call-suite .webrtc-videos {
  padding: 14px;
  gap: 12px;
}

.call-suite .video-remote {
  min-height: 360px;
}

.call-suite .video-local {
  min-height: 170px;
}

.video-placeholder.local-placeholder {
  display: flex;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.82rem;
  font-weight: 800;
}

.call-suite .webrtc-controls {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.call-suite .call-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  border-radius: 8px;
  white-space: nowrap;
}

.chat-suite {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.chat-suite .chat-messages {
  min-height: 360px;
  max-height: 560px;
}

.chat-suite .chat-form {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.chat-suite .chat-form input {
  min-height: 46px;
}

.chat-suite .chat-form button {
  width: 48px;
  min-width: 48px;
  height: 46px;
  padding: 0;
}

.webrtc-note {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--premium-muted, #a9afb8);
  font-size: 0.8rem;
  line-height: 1.6;
}

.rec-cards-list {
  display: grid;
  gap: 12px;
}

.rec-budget-notice {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 197, 66, 0.38);
  border-radius: 8px;
  background: rgba(245, 197, 66, 0.1);
  color: #f4d878;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.8;
}

.rec-budget-permission {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(245, 197, 66, 0.38);
  border-radius: 8px;
  background: rgba(245, 197, 66, 0.1);
  color: #f4d878;
  line-height: 1.8;
}

.rec-budget-permission strong {
  color: #fff3b0;
  font-size: 1rem;
}

.rec-budget-permission p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.rec-budget-permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rec-budget-permission-actions .compact {
  min-width: 110px;
}

.rec-card-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: stretch;
  min-width: 0;
}

.rec-card-img,
.car-card-media {
  display: none !important;
}

.rec-card-badge {
  position: static;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(229, 9, 20, 0.24);
  color: #fff;
  font-size: 0.9rem;
}

.rec-card-body,
.car-recommendation-card {
  min-width: 0;
}

.rec-card-name-row,
.rec-card-meta {
  min-width: 0;
}

.rec-card-dealer-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(229, 9, 20, 0.58);
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.rec-card-dealer-link:hover {
  border-color: rgba(229, 9, 20, 0.9);
  background: rgba(229, 9, 20, 0.28);
}

.rec-card-image-link {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.rec-card-image-link:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
}

.rec-card-body h3,
.car-recommendation-card h3,
.exp-rec-item strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

.rec-card-body p,
.car-recommendation-card p,
.exp-rec-item p,
.exp-notes,
.detail-list dd {
  overflow-wrap: anywhere;
}

.car-recommendation-card {
  padding-top: 18px;
}

.exp-header {
  align-items: stretch;
}

.exp-header h1,
.page-heading h1,
.room-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.exp-stats,
.exp-card-top,
.exp-slot-bar,
.slot-modal-head {
  flex-wrap: wrap;
}

.exp-bookings {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.exp-card {
  min-width: 0;
  overflow: hidden;
}

.exp-card-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exp-card-details strong,
.exp-card-details span,
.exp-slot-time,
.slot-tag {
  overflow-wrap: anywhere;
}

.exp-recs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.exp-rec-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-width: 0;
}

.exp-rec-item > div {
  min-width: 0;
}

.exp-rec-num {
  align-self: stretch;
  display: grid;
  place-items: center;
}

.brand-mark { font-size: 1rem; }
.hero-copy h1 { font-size: 4rem; line-height: 0.95; }
.hero-lead { font-size: 1rem; }
.section-title h2,
.how-header h2,
.cta-band h2 { font-size: 2rem; line-height: 1.25; }
.group-title h2,
.booking-card h2,
.expert-card-head h2,
.rec-card-body h3,
.car-recommendation-card h3 { font-size: 1.16rem; line-height: 1.3; }

.exp-slots-grid,
.slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.exp-slot {
  min-width: 0;
}

.time-chip:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  filter: grayscale(1);
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  .workspace-shell,
  .room-shell,
  .filter-shell {
    width: min(100% - 22px, 1180px);
  }

  .choice-grid,
  .feature-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .external-call-frame {
    min-height: 460px;
  }

  .hero-copy h1 { font-size: 3rem; }
  .exp-header h1,
  .page-heading h1,
  .room-header h1 { font-size: 1.75rem; }
  .hero-lead,
  .rec-card-body p,
  .exp-rec-item p { font-size: 0.92rem; }
}

@media (max-width: 640px) {
  .workspace-shell,
  .room-shell,
  .filter-shell {
    width: min(100% - 18px, 1180px);
  }

  .choice-grid,
  .feature-grid,
  .dashboard-grid,
  .exp-bookings,
  .exp-card-details,
  .room-details-grid {
    grid-template-columns: 1fr;
  }

  .exp-header,
  .exp-slot-bar,
  .external-call-header {
    flex-direction: column;
    align-items: stretch;
  }

  .exp-stat,
  .external-call-header .glass-button {
    width: 100%;
    justify-content: center;
  }

  .rec-card-row,
  .exp-rec-item {
    grid-template-columns: 42px 1fr;
  }

  .rec-card-body {
    padding: 14px;
  }

  .rec-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .external-call-frame {
    min-height: 360px;
    height: 62vh;
  }

  .hero-copy h1 { font-size: 2.35rem; }
  .section-title h2,
  .how-header h2,
  .cta-band h2 { font-size: 1.45rem; }
  .exp-header h1,
  .page-heading h1,
  .room-header h1 { font-size: 1.45rem; }
  .brand-mark { font-size: 0.94rem; }

  .slot-modal-panel {
    width: min(100% - 18px, 560px);
    max-height: 86vh;
    overflow: auto;
  }
}

@media (max-width: 900px) {
  .room-live-grid {
    grid-template-columns: 1fr;
  }

  .chat-suite {
    grid-template-rows: auto minmax(320px, 46vh) auto;
  }

  .call-suite .video-remote {
    min-height: 320px;
  }

  .call-suite .webrtc-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .room-live-grid {
    gap: 12px;
  }

  .call-suite .webrtc-header,
  .room-chat-header {
    align-items: flex-start;
  }

  .call-suite .webrtc-videos {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .call-suite .video-remote {
    min-height: 260px;
  }

  .call-suite .video-local {
    min-height: 140px;
  }

  .call-suite .webrtc-controls {
    grid-template-columns: 1fr 1fr;
    padding: 0 10px 10px;
  }

  .call-suite .call-btn {
    min-height: 42px;
    font-size: 0.78rem;
  }

  .chat-suite {
    grid-template-rows: auto minmax(300px, 48vh) auto;
  }

  .chat-suite .chat-form {
    grid-template-columns: 1fr 46px;
    padding: 10px;
  }
}

/* Local feature imagery so the homepage does not depend on external image hosts. */
.feature-ai,
.feature-video,
.feature-security,
.feature-report {
  background-size: cover;
  background-position: center;
}

.feature-ai { background-image: url("/static/img/feature-luxury-suv.jpg"); }
.feature-video { background-image: url("/static/img/feature-sports-coupe.jpg"); }
.feature-security { background-image: url("/static/img/feature-luxury-sedan.jpg"); }
.feature-report { background-image: url("/static/img/feature-grand-tourer.jpg"); }

.maintenance-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 35, 60, 0.16), transparent 26rem),
    linear-gradient(145deg, #050506 0%, #111214 48%, #060607 100%);
  color: #f7f7f8;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.maintenance-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.maintenance-panel {
  width: min(92vw, 620px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(20, 21, 23, 0.86);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  padding: 42px 28px;
}

.maintenance-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.maintenance-kicker {
  margin: 0;
  color: #ef233c;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
}

.maintenance-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 900;
}

.maintenance-copy {
  max-width: 440px;
  margin: 0;
  color: #c9cbd1;
  font-size: 1.08rem;
  line-height: 1.9;
  font-weight: 700;
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(239, 35, 60, 0.38);
  border-radius: 8px;
  background: rgba(239, 35, 60, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
}

.maintenance-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef233c;
  box-shadow: 0 0 0 7px rgba(239, 35, 60, 0.16);
}

.auth-visual,
.auth-register-showcase .auth-visual {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.62)),
    url("/static/img/hero-bg.jpg") !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Text filter and simplified admin/customer views */
.ai-filter-form {
  display: grid;
  gap: 18px;
  width: min(100%, 1320px);
  max-width: none;
  margin: 0 auto;
}

.ai-field {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,12,16,0.72);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}

.ai-field span {
  color: var(--premium-text, #f7f7f5);
  font-weight: 900;
}

.ai-field input,
.ai-field textarea,
.ai-field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--premium-text, #f7f7f5);
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.ai-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.8;
}

.ai-field select {
  appearance: none;
  cursor: pointer;
}

.ai-field input:focus,
.ai-field textarea:focus,
.ai-field select:focus {
  border-color: rgba(227, 30, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.14);
}

.ai-field small {
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
}

.ai-filter-form .sticky-actions {
  position: static;
}

.classic-filter-panel {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,12,16,0.72);
}

.used-year-field.hidden {
  display: none;
}

.compact-choice-group {
  min-height: auto !important;
  padding: 16px !important;
  background: rgba(255,255,255,0.035) !important;
}

.compact-choice-group .choice-grid {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.compact-choice-group .choice-card {
  flex: 0 0 auto;
  min-width: 128px;
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  font-family: inherit;
}

.button-filter-panel .choice-card {
  padding-inline: 18px;
}

.button-filter-panel {
  width: 100%;
}

.button-choice-group {
  display: grid !important;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: auto !important;
  padding: 12px !important;
  background: rgba(255,255,255,0.035) !important;
  border-radius: 8px !important;
}

.button-choice-group .group-title {
  margin: 0;
  min-width: 0;
}

.button-choice-group .group-title h2 {
  font-size: clamp(0.94rem, 1vw, 1.08rem);
  line-height: 1.35;
}

.button-choice-group .choice-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.button-choice-group .choice-card {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  appearance: none;
  font-family: inherit;
}

.request-notes-field textarea {
  min-height: 126px;
  resize: vertical;
}

@media (min-width: 920px) {
  .button-choice-group .choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .button-choice-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button-choice-group .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .button-choice-group .choice-card {
    min-height: 58px;
    font-size: 0.9rem;
  }
}

.text-filter-group {
  display: grid;
  gap: 12px;
}

.filter-text-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--premium-text, #f7f7f5);
  padding: 14px 16px;
  font: inherit;
  font-weight: 850;
  outline: none;
}

.filter-text-input:focus {
  border-color: rgba(227, 30, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.14);
}

.rec-card-with-image {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.rec-card-with-image .rec-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block !important;
  border-inline-end: 1px solid rgba(255,255,255,0.1);
}

.rec-detail-line {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
  line-height: 1.55;
}

.rec-detail-line strong {
  color: var(--premium-text, #f7f7f5);
}

.dashboard-car-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}

.admin-customer-list {
  display: grid;
  gap: 12px;
}

.admin-customer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,12,16,0.74);
}

.admin-customer-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.admin-customer-link:hover {
  border-color: rgba(227,30,36,0.42);
  background: rgba(18,20,26,0.9);
  transform: translateY(-1px);
}

.admin-detail-phone {
  margin: 10px 0 0;
  color: var(--premium-muted, #a9afb8);
  font-weight: 900;
}

.admin-detail-stats {
  margin-bottom: 18px;
}

.admin-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(227,30,36,0.9), rgba(80,10,14,0.9));
  color: #fff;
  font-weight: 900;
}

.admin-customer-main,
.admin-customer-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-customer-main strong {
  color: var(--premium-text, #f7f7f5);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-customer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.condition-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--premium-text, #f7f7f5);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.condition-new {
  border-color: rgba(227,30,36,0.5);
  background: rgba(227,30,36,0.16);
}

.condition-used {
  border-color: rgba(214,161,77,0.5);
  background: rgba(214,161,77,0.14);
}

.admin-customer-main span,
.admin-customer-meta span {
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .rec-card-with-image {
    grid-template-columns: 1fr;
  }

  .rec-card-with-image .rec-card-img {
    min-height: 190px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .admin-customer-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-customer-meta {
    grid-column: 1 / -1;
  }
}

.call-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.icon-only-call {
  min-width: 46px;
  width: 46px;
  padding-inline: 0;
}

.icon-only-call .call-btn-icon.hidden {
  display: none;
}

/* Clean request history for customers and Azzam dashboard */
.request-list {
  display: grid;
  gap: 18px;
}

.request-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(10,12,16,0.82);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.request-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.request-card-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: var(--premium-text, #f7f7f5);
}

.request-card-head time,
.request-id {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.82rem;
  font-weight: 900;
}

.request-card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.request-card-actions form {
  margin: 0;
}

.request-id {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(227,30,36,0.34);
  border-radius: 999px;
  background: rgba(227,30,36,0.11);
  color: #fff;
}

.request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.request-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.request-summary .wide {
  grid-column: 1 / -1;
}

.request-summary dt {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.76rem;
  font-weight: 900;
}

.request-summary dd {
  margin: 0;
  color: var(--premium-text, #f7f7f5);
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.clean-rec-list {
  display: grid;
  gap: 12px;
}

.clean-rec-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.clean-rec-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e31e24;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.clean-rec-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.clean-rec-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.clean-rec-title h3 {
  margin: 0;
  color: var(--premium-text, #f7f7f5);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.clean-rec-title strong {
  flex: 0 0 auto;
  max-width: 260px;
  color: #fff;
  text-align: end;
  font-size: 0.9rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.clean-rec-meta {
  display: grid;
  gap: 7px;
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
  line-height: 1.55;
}

.clean-rec-card p {
  margin: 0;
  color: rgba(247,247,245,0.88);
  line-height: 1.75;
  font-weight: 750;
}

.admin-detail-head {
  margin-bottom: 14px;
}

.admin-detail-summary {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-detail-summary .exp-stat,
.admin-detail-summary .admin-customer-main {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,12,16,0.74);
}

.admin-detail-summary .admin-customer-main {
  align-content: center;
}

.chat-filter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.inline-chat-panel,
.assistant-admin-panel {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,12,16,0.78);
  box-shadow: 0 22px 60px rgba(0,0,0,0.25);
}

.assistant-admin-panel {
  margin-bottom: 18px;
}

.inline-chat-panel .chat-messages,
.assistant-chat-messages {
  min-height: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.inline-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.inline-chat-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--premium-text, #f7f7f5);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.inline-chat-form input:focus {
  border-color: rgba(227,30,36,0.72);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.14);
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: 82%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--premium-text, #f7f7f5);
  background: rgba(255,255,255,0.07);
}

.chat-message.customer {
  margin-inline-start: auto;
  background: rgba(227,30,36,0.22);
}

.chat-message.expert {
  margin-inline-end: auto;
  background: rgba(255,255,255,0.08);
}

.chat-message strong {
  font-size: 0.78rem;
  color: #fff;
}

.chat-message p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.chat-message time {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.72rem;
}

.question-alert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(227,30,36,0.2);
  color: #fff !important;
  border: 1px solid rgba(227,30,36,0.4);
}

@media (max-width: 860px) {
  .request-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-rec-title {
    display: grid;
  }

  .clean-rec-title strong {
    max-width: none;
    text-align: start;
  }
}

@media (max-width: 620px) {
  .request-card-head,
  .dashboard-head.admin-detail-head {
    display: grid;
  }

  .request-card-actions {
    justify-items: start;
  }

  .request-summary,
  .admin-detail-summary,
  .chat-filter-layout,
  .inline-chat-form {
    grid-template-columns: 1fr;
  }

  .clean-rec-card {
    grid-template-columns: 1fr;
  }

  .clean-rec-num {
    width: 38px;
    height: 38px;
  }
}

.chat-mode-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.chat-mode-actions button {
  min-height: 36px;
}

.chat-mode-actions button:not(.is-active) {
  opacity: 0.72;
}

.chat-mode-status {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Polished text filter */
.filter-shell-polished {
  position: relative;
  isolation: isolate;
}

.filter-shell-polished::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(227,30,36,0.14), transparent 34%),
    linear-gradient(225deg, rgba(218,180,92,0.12), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 42%);
  opacity: 0.9;
  pointer-events: none;
}

.filter-hero-panel {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18,20,24,0.92), rgba(9,10,13,0.9));
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.filter-form-polished {
  display: grid;
  gap: 14px;
}

.budget-field-polished {
  border: 1px solid rgba(218,180,92,0.28);
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.text-filter-panel-polished {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.text-filter-panel-polished .text-filter-group {
  display: grid;
  grid-template-columns: minmax(145px, 210px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.text-filter-panel-polished .group-title {
  margin: 0;
}

.text-filter-panel-polished .group-title h2 {
  font-size: clamp(0.95rem, 1.6vw, 1.14rem);
}

.text-filter-panel-polished .filter-text-input {
  min-height: 50px;
  border-color: rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.24);
}

.filter-form-polished .sticky-actions {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

@media (max-width: 720px) {
  .text-filter-panel-polished .text-filter-group {
    grid-template-columns: 1fr;
  }
}

/* Filter studio redesign */
.filter-studio {
  max-width: min(100% - 28px, 1180px);
  margin-inline: auto;
  padding: clamp(14px, 2.4vw, 26px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16,18,22,0.96), rgba(8,9,12,0.94)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 96px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.34);
}

.filter-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filter-title-block {
  display: grid;
  gap: 8px;
  max-width: 740px;
}

.filter-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(218,180,92,0.34);
  border-radius: 999px;
  color: #e5c871;
  background: rgba(218,180,92,0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-title-block h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3.4vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.filter-form-studio {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.filter-command-bar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.filter-budget-control,
.filter-command-copy,
.filter-line-field {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.filter-budget-control {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.filter-budget-control span {
  color: var(--premium-muted, #a9afb8);
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-budget-control input,
.filter-line-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  color: var(--premium-text, #f7f7f5);
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.filter-budget-control input {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
}

.filter-budget-control input:focus,
.filter-line-field input:focus {
  border-color: rgba(227,30,36,0.72);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.14);
}

.filter-command-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(227,30,36,0.11), rgba(218,180,92,0.08));
}

.filter-command-copy strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.filter-command-copy span {
  color: var(--premium-muted, #a9afb8);
  font-weight: 800;
}

.filter-field-list {
  display: grid;
  gap: 10px;
}

.filter-line-field {
  display: grid;
  grid-template-columns: 54px minmax(145px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
}

.filter-line-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: #8d1119;
  font-size: 0.8rem;
  font-weight: 950;
}

.filter-line-title {
  color: #fff;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 950;
}

.filter-submit-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.filter-submit-main {
  min-width: 190px;
}

.filter-studio .result-panel {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .filter-studio-head,
  .filter-command-bar,
  .filter-line-field {
    grid-template-columns: 1fr;
  }

  .filter-studio-head {
    display: grid;
  }

  .filter-line-number {
    width: 38px;
    height: 38px;
  }

  .filter-submit-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-submit-bar .red-button,
  .filter-submit-bar .glass-button {
    width: 100%;
    justify-content: center;
  }
}

/* Text inputs inside the original filter layout */
.text-filter-panel {
  display: grid;
  gap: 12px;
}

.text-filter-panel .text-filter-group {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.text-filter-panel .group-title {
  margin: 0;
}

.text-filter-panel .filter-text-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: var(--premium-text, #f7f7f5);
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
  outline: none;
}

.text-filter-panel .filter-text-input:focus {
  border-color: rgba(227,30,36,0.72);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.14);
}

@media (max-width: 720px) {
  .text-filter-panel .text-filter-group {
    grid-template-columns: 1fr;
  }
}

/* V6 filter button design: full-width rows with evenly stretched buttons. */
.filter-shell .ai-filter-form {
  width: min(100%, 1240px);
  max-width: min(100%, 1240px);
}

.filter-shell .classic-filter-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.filter-shell .classic-filter-panel .compact-choice-group {
  min-height: auto !important;
  padding: 16px !important;
  background: rgba(255,255,255,0.035) !important;
}

.filter-shell .classic-filter-panel .compact-choice-group .choice-grid {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  overflow-x: visible;
  overflow-y: hidden;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.filter-shell .classic-filter-panel .compact-choice-group .choice-card {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
  white-space: nowrap !important;
  appearance: none;
  font-family: inherit;
}

.filter-shell .request-notes-field textarea {
  min-height: 190px;
}

@media (max-width: 820px) {
  .filter-shell .classic-filter-panel .compact-choice-group .choice-grid {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-shell .classic-filter-panel .compact-choice-group .choice-card {
    flex: 0 0 auto !important;
    min-width: 126px;
  }
}
