/* ==========================================================================
   Expert X — ver-1 design system
   Cream paper · deep navy · muted gold. Arabic-first (RTL), Lora/Inter +
   Thmanyah Serif Display/Cairo. Mirrors the Claude Design handoff.
   ========================================================================== */

/* Arabic display face (local woff2, copied from the design bundle). */
@font-face { font-family:'Thmanyah Serif Display'; src:url('../fonts/thmanyahserifdisplay-Light.woff2') format('woff2'); font-weight:300; font-display:swap; }
@font-face { font-family:'Thmanyah Serif Display'; src:url('../fonts/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Thmanyah Serif Display'; src:url('../fonts/thmanyahserifdisplay-Medium.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Thmanyah Serif Display'; src:url('../fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Thmanyah Serif Display'; src:url('../fonts/thmanyahserifdisplay-Black.woff2') format('woff2'); font-weight:900; font-display:swap; }

:root{
  --paper:#F7F5F0; --canvas:#EDEAE2; --card-cream:#FAF8F3;
  --navy:#1B2A4A; --navy-mid:#33425F;
  --gold:#B08D57; --gold-light:#F1E8D6; --gold-on-dark:#D9BE8F; --gold-wash:rgba(176,141,87,.08);
  --success:#2F7D5A; --pending:#B8862F; --danger:#B4453D; --purple:#7A4FA0; --blue:#2D5586;
  --border:#E7E2D5; --border-2:#DED8C8; --border-3:#DCD5C6;
  --text:#4B5563; --muted:#6B7280; --faint:#9CA3AF;
  --white:#fff;
  --ui:'Inter',system-ui,sans-serif;
  --display:'Lora',Georgia,serif;
  --radius:10px; --shadow-sm:0 1px 3px rgba(27,42,74,.06); --shadow:0 8px 24px rgba(27,42,74,.08);
}
html[lang="ar"]{ --ui:'Cairo',system-ui,sans-serif; --display:'Thmanyah Serif Display','Cairo',serif; }

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--ui); color:var(--text); background:var(--paper);
  line-height:1.6; -webkit-font-smoothing:antialiased; font-size:15px;
}
::selection{ background:#EFE6D2; }
a{ color:var(--gold); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ margin:0; color:var(--navy); }
.display,.serif{ font-family:var(--display); }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
.wrap-narrow{ max-width:900px; margin:0 auto; padding:0 32px; }
.muted{ color:var(--muted); }
.faint{ color:var(--faint); }
.center{ text-align:center; }

/* ---- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--ui); font-weight:600; font-size:14px; line-height:1;
  padding:13px 24px; border-radius:8px; border:1.5px solid transparent;
  cursor:pointer; transition:filter .15s,background .15s,color .15s; white-space:nowrap;
}
.btn:hover{ text-decoration:none; }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ filter:brightness(1.06); }
.btn-outline{ background:#fff; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-navy:hover{ filter:brightness(1.15); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--border-2); }
.btn-ghost:hover{ background:var(--card-cream); }
.btn-sm{ padding:9px 16px; font-size:13px; }
.btn-lg{ padding:16px 30px; font-size:15px; }
.btn-block{ width:100%; }
.btn:disabled,.btn[disabled]{ background:var(--border); color:var(--faint); border-color:transparent; cursor:not-allowed; }
.btn-danger{ background:#fff; color:var(--danger); border-color:var(--danger); }
.btn-danger:hover{ background:var(--danger); color:#fff; }

/* ---- Pills / chips / tags ------------------------------------------------ */
.chip{ display:inline-block; background:var(--gold-light); color:var(--navy); font-weight:500; font-size:13px; padding:7px 16px; border-radius:999px; }
.status{ display:inline-block; font-weight:600; font-size:12px; padding:5px 12px; border-radius:999px; }
.eyebrow{ font-weight:600; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); }
html[lang="ar"] .eyebrow{ letter-spacing:normal; text-transform:none; font-size:13px; }

/* ---- Top navigation ------------------------------------------------------ */
.nav{ background:var(--paper); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50; }
.nav-inner{ display:flex; justify-content:space-between; align-items:center; height:72px; }
.brand{ font-family:var(--display); font-weight:600; font-size:20px; color:var(--navy); display:flex; align-items:center; gap:2px; }
.brand .x{ color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-link{ font-weight:500; font-size:14px; color:var(--text); }
.nav-link:hover{ color:var(--navy); text-decoration:none; }
.nav-lang{ font-size:12px; color:var(--muted); border:1px solid var(--border-2); padding:6px 12px; border-radius:7px; }
.nav-lang:hover{ background:var(--card-cream); text-decoration:none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero{ text-align:center; padding:80px 0 72px; background:radial-gradient(ellipse at 50% 0%, var(--gold-wash), transparent 60%); }
.hero .avatar-xl{ margin:0 auto 26px; }
.hero-title{ font-family:var(--display); font-weight:600; font-size:46px; line-height:1.15; color:var(--navy); margin:14px 0 16px; }
.hero-bio{ font-size:17px; line-height:1.7; color:var(--text); max-width:600px; margin:0 auto 24px; }
.hero-cta{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }
.hero-tags{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin:0 0 30px; }
.hero-stats{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin:22px 0 4px; color:var(--navy); font-weight:600; font-size:13px; }
.hero-stats .dot{ color:var(--border-2); }

/* Avatars (circle photos) */
.avatar{ border-radius:50%; object-fit:cover; background:var(--canvas); box-shadow:0 0 0 4px #fff, 0 4px 14px rgba(27,42,74,.12); }
.avatar-xl{ width:160px; height:160px; }
.avatar-lg{ width:96px; height:96px; }
.avatar-md{ width:64px; height:64px; box-shadow:0 0 0 3px #fff, 0 2px 8px rgba(27,42,74,.1); }
.avatar-sm{ width:44px; height:44px; box-shadow:none; }

/* ---- Sections ------------------------------------------------------------ */
.section{ padding:72px 0; }
.section-alt{ background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-head{ text-align:center; margin-bottom:44px; }
.section-title{ font-family:var(--display); font-weight:600; font-size:30px; color:var(--navy); margin-top:10px; }
.section-sub{ color:var(--text); margin-top:10px; }

/* ---- Service cards ------------------------------------------------------- */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.service-card{ border:1px solid var(--border); border-radius:var(--radius); padding:30px; display:flex; flex-direction:column; gap:12px; background:#fff; }
.service-title{ font-family:var(--display); font-weight:600; font-size:19px; color:var(--navy); }
.service-meta{ font-weight:500; font-size:13px; color:var(--faint); }
.service-desc{ font-size:14px; line-height:1.7; color:var(--text); margin:0; flex:1; }
.service-price{ font-family:var(--display); font-weight:600; font-size:24px; color:var(--navy); }
.service-price .per{ font-family:var(--ui); font-weight:400; font-size:13px; color:var(--faint); }

/* ---- Cards / panels ------------------------------------------------------ */
.card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); }
.card-pad{ padding:24px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

/* ---- Booking widget ------------------------------------------------------ */
.booking-card{ max-width:780px; margin:0 auto; background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.booking-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 28px; border-bottom:1px solid var(--border); }
.booking-head .title{ font-weight:600; font-size:15px; color:var(--navy); }
.synced{ display:flex; align-items:center; gap:6px; font-weight:500; font-size:12px; color:var(--faint); }
.synced .dot{ width:6px; height:6px; border-radius:99px; background:var(--success); display:inline-block; }
.booking-body{ display:flex; gap:32px; padding:28px; flex-wrap:wrap; }
.cal{ width:280px; flex:none; }
.cal-nav{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cal-nav a{ color:var(--faint); display:flex; }
.cal-month{ font-weight:600; font-size:13px; color:var(--navy); }
.cal-weekdays,.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-weekdays{ margin-bottom:6px; }
.cal-weekdays span{ text-align:center; font-weight:600; font-size:11px; color:var(--faint); }
.cal-cell{ height:34px; display:flex; align-items:center; justify-content:center; border-radius:7px; font-weight:600; font-size:12.5px; color:var(--navy-mid); }
.cal-cell.day{ cursor:pointer; background:transparent; }
.cal-cell.day:hover{ background:var(--gold-light); }
.cal-cell.off{ background:repeating-linear-gradient(135deg,#F3F1EB,#F3F1EB 3px,#EDEAE2 3px,#EDEAE2 6px); color:transparent; }
.cal-cell.blank{ background:transparent; }
.cal-cell.selected{ background:var(--navy); color:#fff; }
.booking-slots{ flex:1; min-width:260px; }
.booking-slots .label{ font-weight:600; font-size:13px; color:var(--navy); margin-bottom:14px; }
.slots{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.slot{ padding:10px 16px; border-radius:8px; font-weight:600; font-size:13px; cursor:pointer; border:1.5px solid var(--border); background:#fff; color:var(--navy); }
.slot:hover{ border-color:var(--gold); }
.slot.selected{ background:var(--gold); color:#fff; border-color:var(--gold); }
.booking-foot{ border-top:1px solid var(--border); padding-top:20px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.booking-summary{ font-weight:500; font-size:13px; color:var(--muted); }

/* ---- Booking modal (client details) -------------------------------------- */
.modal-overlay{ position:fixed; inset:0; background:rgba(27,42,74,.45); display:none; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal-overlay.open{ display:flex; }
.modal{ width:460px; max-width:100%; background:#fff; border-radius:14px; padding:32px; box-shadow:0 20px 50px rgba(27,42,74,.25); max-height:92vh; overflow:auto; }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.modal-head .title{ font-family:var(--display); font-weight:600; font-size:19px; color:var(--navy); }
.modal-close{ background:none; border:none; cursor:pointer; color:var(--faint); font-size:20px; line-height:1; }
.order-summary{ background:var(--card-cream); border-radius:8px; padding:16px; margin-bottom:20px; }
.order-summary .row{ display:flex; justify-content:space-between; font-weight:600; font-size:14px; color:var(--navy); }
.order-summary .meta{ font-size:12.5px; color:var(--muted); margin-top:6px; font-weight:400; }
.secure-note{ display:flex; justify-content:center; align-items:center; gap:6px; font-size:12px; color:var(--faint); margin-top:14px; }

/* ---- Forms --------------------------------------------------------------- */
.form-field{ margin-bottom:14px; }
.form-field label{ display:block; font-weight:600; font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.input,textarea,select{
  width:100%; font-family:var(--ui); font-size:14px; color:var(--navy);
  border:1px solid var(--border-3); border-radius:8px; padding:12px 14px; background:#fff;
}
.input:focus,textarea:focus,select:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-wash); }
textarea{ resize:vertical; min-height:80px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.help{ font-size:12px; color:var(--faint); margin-top:4px; }

/* ---- Auth card ----------------------------------------------------------- */
.auth-wrap{ min-height:calc(100vh - 73px); display:flex; align-items:flex-start; justify-content:center; padding:56px 20px; }
.auth-card{ width:440px; max-width:100%; background:#fff; border:1px solid var(--border); border-radius:14px; padding:36px; box-shadow:var(--shadow-sm); }
.auth-card h1{ font-family:var(--display); font-weight:600; font-size:26px; }
.auth-sub{ color:var(--muted); margin:6px 0 22px; font-size:14px; }
.auth-alt{ text-align:center; margin-top:18px; font-size:13.5px; color:var(--muted); }
.tabs{ display:flex; gap:6px; background:var(--canvas); padding:5px; border-radius:10px; margin-bottom:22px; }
.tab{ flex:1; text-align:center; padding:9px; border-radius:7px; font-weight:600; font-size:13.5px; color:var(--muted); }
.tab.active{ background:#fff; color:var(--navy); box-shadow:var(--shadow-sm); }
.tab:hover{ text-decoration:none; }

/* ---- Success / invoice screen -------------------------------------------- */
.success-wrap{ min-height:calc(100vh - 73px); display:flex; align-items:center; justify-content:center; padding:40px 20px;
  background:radial-gradient(ellipse at 50% 0%, var(--gold-wash), transparent 60%); }
.success-card{ width:500px; max-width:100%; background:#fff; border-radius:14px; padding:40px; text-align:center; box-shadow:var(--shadow); }
.success-icon{ width:56px; height:56px; border-radius:99px; background:#E7F3EC; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.success-title{ font-family:var(--display); font-weight:600; font-size:24px; color:var(--navy); margin-bottom:8px; }
.receipt{ background:var(--card-cream); border-radius:8px; padding:16px 18px; text-align:start; margin:22px 0; }
.receipt .row{ display:flex; justify-content:space-between; padding:5px 0; font-size:13.5px; color:var(--text); }
.receipt .row b{ color:var(--navy); font-weight:600; }
.invoice-row{ border:1px solid var(--border); border-radius:10px; padding:14px; display:flex; align-items:center; gap:14px; text-align:start; margin-bottom:22px; }
.qr{ width:56px; height:56px; flex:none; background:var(--card-cream); border-radius:6px; display:grid; grid-template-columns:repeat(8,1fr); gap:1px; padding:5px; }
.qr i{ display:block; }

/* ---- Steps (home) -------------------------------------------------------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.step{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:28px; }
.step .num{ width:36px; height:36px; border-radius:99px; background:var(--gold-light); color:var(--navy); font-family:var(--display); font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.step h3{ font-family:var(--display); font-size:18px; margin-bottom:6px; }

/* ---- Directory cards ----------------------------------------------------- */
.expert-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.expert-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:26px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; transition:box-shadow .15s,transform .15s; }
.expert-card:hover{ box-shadow:var(--shadow); transform:translateY(-2px); text-decoration:none; }
.expert-card .name{ font-family:var(--display); font-weight:600; font-size:19px; color:var(--navy); margin-top:12px; }
.expert-card .title{ font-size:13px; color:var(--gold); font-weight:600; }
.expert-card .org{ font-size:12.5px; color:var(--faint); }
.expert-card .tags{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:10px 0 4px; }
.expert-card .tags .chip{ font-size:11.5px; padding:5px 11px; }
.expert-card .from{ margin-top:auto; padding-top:14px; font-weight:600; color:var(--navy); font-size:14px; }
.expert-card .from span{ color:var(--faint); font-weight:400; font-size:12px; }

/* ---- Footer -------------------------------------------------------------- */
.footer{ background:var(--navy); color:#fff; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; padding:40px 0; gap:20px; flex-wrap:wrap; }
.footer .name{ font-family:var(--display); font-weight:600; font-size:16px; color:#fff; }
.footer .email{ font-size:13px; color:rgba(255,255,255,.55); margin-top:2px; }
.footer .powered{ font-weight:500; font-size:12px; color:rgba(255,255,255,.45); }
.footer .powered .x{ color:var(--gold-on-dark); }
.footer a{ color:rgba(255,255,255,.7); }

/* ---- Flash --------------------------------------------------------------- */
.flash{ padding:12px 18px; border-radius:8px; font-size:13.5px; font-weight:500; margin-bottom:18px; border:1px solid transparent; }
.flash.success{ background:#E7F3EC; color:#276749; border-color:#C6E6D3; }
.flash.error{ background:#FBEAE8; color:#9B3A33; border-color:#F1CFCB; }
.flash.info{ background:#E8EEF6; color:#2D5586; border-color:#CFDDEE; }

/* ---- Generic page header ------------------------------------------------- */
.page-head{ padding:52px 0 8px; }
.page-head h1{ font-family:var(--display); font-weight:600; font-size:34px; }
.page-head p{ color:var(--muted); margin-top:8px; }

/* ---- Booking status tracker --------------------------------------------- */
.tracker-steps{ display:flex; gap:0; margin:8px 0 26px; }
.tracker-step{ flex:1; text-align:center; position:relative; }
.tracker-step .bead{ width:26px; height:26px; border-radius:99px; background:var(--canvas); color:var(--faint); border:2px solid var(--border-2);
  display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-weight:700; font-size:12px; }
.tracker-step.done .bead{ background:var(--success); border-color:var(--success); color:#fff; }
.tracker-step.active .bead{ background:var(--gold); border-color:var(--gold); color:#fff; }
.tracker-step .lbl{ font-size:12px; color:var(--muted); font-weight:600; }
.tracker-step::before{ content:''; position:absolute; top:13px; inset-inline-start:-50%; width:100%; height:2px; background:var(--border-2); z-index:-1; }
.tracker-step:first-child::before{ display:none; }
.tracker-step.done::before,.tracker-step.active::before{ background:var(--success); }

/* ==========================================================================
   Dashboard shell (expert + admin)
   ========================================================================== */
.dash{ display:flex; min-height:100vh; background:var(--paper); }
.sidebar{ width:240px; flex:none; background:var(--navy); padding:24px 0; display:flex; flex-direction:column; }
.side-brand{ padding:0 24px 20px; font-family:var(--display); font-weight:600; font-size:16px; color:#fff; }
.side-brand .x{ color:var(--gold-on-dark); }
.side-user{ margin:0 16px 24px; padding:14px; background:rgba(255,255,255,.06); border-radius:10px; display:flex; align-items:center; gap:10px; }
.side-user .ava{ width:34px; height:34px; border-radius:99px; background:var(--gold-on-dark); color:var(--navy); font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex:none; overflow:hidden; }
.side-user .nm{ font-weight:600; font-size:12.5px; color:#fff; }
.side-user .rl{ font-size:11px; color:rgba(255,255,255,.5); }
.nav-item{ display:flex; align-items:center; gap:10px; padding:11px 16px; margin:0 16px 2px; border-radius:8px; font-weight:600; font-size:13.5px; color:rgba(255,255,255,.65); cursor:pointer; }
.nav-item:hover{ background:rgba(255,255,255,.08); color:#fff; text-decoration:none; }
.nav-item.active{ background:var(--gold); color:var(--navy); }
.nav-item.active:hover{ color:var(--navy); }
.nav-item svg{ flex:none; }
.side-foot{ margin-top:auto; padding:16px 24px 0; }
.side-foot a{ font-weight:600; font-size:12px; color:var(--gold-on-dark); }
.dash-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar{ height:72px; display:flex; justify-content:space-between; align-items:center; padding:0 32px; border-bottom:1px solid var(--border); background:#fff; }
.topbar .title{ font-family:var(--display); font-weight:600; font-size:20px; color:var(--navy); }
.topbar-right{ display:flex; align-items:center; gap:14px; }
.pillbox{ border:1px solid var(--border); border-radius:8px; padding:8px 14px; font-weight:500; font-size:12.5px; color:var(--text); }
.dash-content{ padding:32px; flex:1; }

.metrics{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:24px; }
.metric{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.metric .label{ font-weight:600; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); margin-bottom:10px; }
html[lang="ar"] .metric .label{ letter-spacing:normal; text-transform:none; font-size:12.5px; }
.metric .value{ font-family:var(--display); font-weight:600; font-size:28px; color:var(--navy); margin-bottom:6px; }
.metric .delta{ font-weight:600; font-size:12.5px; }
.metric .delta.up{ color:var(--success); }
.metric .delta.flat{ color:var(--faint); }

.panel{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.panel-title{ font-weight:600; font-size:14px; color:var(--navy); margin-bottom:18px; }
.chart{ display:grid; grid-template-columns:repeat(12,1fr); gap:8px; align-items:end; height:150px; }
.chart .bar{ width:100%; border-radius:4px 4px 0 0; background:var(--navy); min-height:3px; }
.chart .bar.last{ background:var(--gold); }
.mini-list .mini{ display:flex; justify-content:space-between; padding:7px 0; }
.mini .who{ font-weight:500; font-size:13px; color:var(--navy-mid); }
.mini .when{ font-size:12.5px; color:var(--faint); }

/* ---- Data tables --------------------------------------------------------- */
.table{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.thead,.trow{ display:grid; align-items:center; }
.thead{ padding:14px 24px; border-bottom:1px solid var(--border); font-weight:600; font-size:11.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--faint); }
html[lang="ar"] .thead{ letter-spacing:normal; text-transform:none; font-size:12.5px; }
.trow{ padding:15px 24px; border-bottom:1px solid #EDEAE2; }
.trow:last-child{ border-bottom:none; }
.trow .strong{ font-weight:600; font-size:13.5px; color:var(--navy); }
.trow .cell{ font-size:13px; color:var(--text); }
.trow .act{ display:flex; gap:8px; align-items:center; }
.linklike{ font-weight:600; font-size:12.5px; color:var(--navy); background:none; border:none; cursor:pointer; padding:0; font-family:var(--ui); }
.linklike:hover{ color:var(--gold); }
.dl{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:12.5px; color:var(--navy); }
.empty{ padding:44px 24px; text-align:center; color:var(--faint); font-size:14px; }

/* ---- Utility ------------------------------------------------------------- */
.stack-gap{ display:flex; flex-direction:column; gap:14px; }
.row-between{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.mt-24{ margin-top:24px; } .mt-16{ margin-top:16px; } .mb-0{ margin-bottom:0; }
.divider{ height:1px; background:var(--border); margin:24px 0; }
.back-link{ font-size:13px; color:var(--muted); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width:900px){
  .services-grid,.expert-grid,.steps,.grid-2,.grid-3{ grid-template-columns:1fr; }
  .metrics{ grid-template-columns:repeat(2,1fr); }
  .booking-body{ flex-direction:column; } .cal{ width:100%; }
  .nav-links .hide-sm{ display:none; }
  .sidebar{ display:none; }
  .form-row{ grid-template-columns:1fr; }
  .hero-title{ font-size:34px; }
}
@media (max-width:560px){ .metrics{ grid-template-columns:1fr; } .wrap,.wrap-narrow{ padding:0 18px; } }

/* ---- Stripe Elements checkout -------------------------------------------- */
.stripe-checkout-page{
  min-height:100vh; display:grid; grid-template-columns:minmax(360px,42vw) minmax(0,1fr);
  direction:ltr; background:#fff; color:var(--navy);
}
.stripe-product-panel{
  position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between;
  padding:34px clamp(26px,4vw,58px); color:#fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(217,190,143,.30), transparent 26%),
    radial-gradient(circle at 18% 84%, rgba(176,141,87,.22), transparent 30%),
    linear-gradient(145deg, #111C36 0%, #1B2A4A 46%, #271B53 100%);
}
.stripe-product-panel::before{
  content:''; position:absolute; inset:-110px auto auto -80px; width:300px; height:300px;
  border:1px solid rgba(255,255,255,.13); border-radius:50%; pointer-events:none;
}
.stripe-product-panel::after{
  content:'X'; position:absolute; inset:auto -42px -78px auto; font-family:var(--display);
  font-weight:700; font-size:310px; line-height:.8; color:rgba(255,255,255,.035); pointer-events:none;
}
.stripe-checkout-page.is-rtl .stripe-product-panel,
.stripe-checkout-page.is-rtl .stripe-payment-panel{ direction:rtl; text-align:right; }
.stripe-back-link{ position:relative; z-index:1; display:inline-flex; align-items:center; gap:10px; color:rgba(255,255,255,.88); font-weight:700; }
.stripe-checkout-page.is-rtl .stripe-back-link svg{ transform:scaleX(-1); }
.stripe-back-link b{ color:var(--gold-on-dark); }
.stripe-product-copy{ position:relative; z-index:1; max-width:520px; margin:80px 0; }
.stripe-secure-pill{ display:inline-flex; align-items:center; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.08); color:var(--gold-on-dark); border-radius:999px; padding:7px 12px; font-weight:700; font-size:12px; margin-bottom:20px; }
.stripe-product-copy h1{ color:#fff; font-family:var(--display); font-size:clamp(26px,3.5vw,44px); line-height:1.18; margin:0 0 20px; max-width:620px; }
.stripe-product-price{ font-family:var(--display); font-size:clamp(36px,5.4vw,62px); font-weight:700; line-height:1; color:#fff; letter-spacing:-.025em; margin-bottom:16px; }
.stripe-product-copy p{ color:rgba(255,255,255,.68); font-size:15px; line-height:1.8; margin:0; }
.stripe-product-summary{ position:relative; z-index:1; border-top:1px solid rgba(255,255,255,.14); padding-top:20px; display:grid; gap:13px; }
.stripe-product-summary div{ display:flex; justify-content:space-between; gap:16px; color:rgba(255,255,255,.70); font-size:13px; }
.stripe-product-summary b{ color:#fff; font-weight:600; }
.stripe-payment-panel{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:42px clamp(22px,5vw,78px); background:#fff; }
.stripe-payment-card{ width:min(100%,520px); }
.stripe-card-header{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:28px; }
.expertx-link-mark{ display:flex; align-items:center; gap:9px; color:#151B28; font-size:19px; letter-spacing:-.02em; }
.expertx-link-icon{ width:29px; height:29px; display:inline-grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--gold),#D8BE8B); border-radius:50%; font-family:var(--display); font-weight:700; }
.stripe-card-dots{ color:#A1A1AA; letter-spacing:2px; font-weight:700; }
.stripe-payment-card h2{ font-family:var(--display); font-size:28px; font-weight:700; margin:0 0 8px; color:#151B28; }
.stripe-card-intro{ margin:0 0 24px; color:var(--muted); line-height:1.7; font-size:14px; }
.stripe-mini-label{ font-size:12px; font-weight:700; color:var(--faint); margin-bottom:10px; }
#express-checkout-element{ min-height:44px; }
.express-checkout-wrap.wallets-empty{ display:none; }
.stripe-or{ display:flex; align-items:center; gap:12px; color:var(--faint); font-size:12px; margin:22px 0 18px; }
.stripe-or::before,.stripe-or::after{ content:''; height:1px; flex:1; background:var(--border); }
.stripe-payment-form{ display:grid; gap:18px; }
.stripe-payment-message{ color:#B4453D; background:#FBEAE8; border:1px solid #F0C6C1; border-radius:10px; padding:12px 13px; font-size:13px; line-height:1.6; }
.stripe-pay-button{ width:100%; border:0; border-radius:11px; min-height:48px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 18px; background:var(--gold); color:#fff; font-weight:800; font-size:15px; box-shadow:0 14px 30px rgba(176,141,87,.26); transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.stripe-pay-button:hover{ transform:translateY(-1px); box-shadow:0 18px 36px rgba(176,141,87,.32); }
.stripe-pay-button:disabled{ opacity:.62; cursor:not-allowed; transform:none; }
.stripe-pay-button-fallback{ margin-top:16px; background:#1B2A4A; }
.stripe-spinner{ width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,.38); border-top-color:#fff; animation:stripeSpin .8s linear infinite; }
@keyframes stripeSpin{ to{ transform:rotate(360deg); } }
.stripe-sustainability-note{ display:flex; align-items:flex-start; gap:10px; margin-top:22px; padding:14px; background:#FFFAEA; border:1px solid #F3E4B5; border-radius:12px; color:#6F5520; }
.stripe-sustainability-note p{ margin:0; font-size:12.5px; line-height:1.7; }
.stripe-sun{ width:22px; height:22px; flex:none; display:grid; place-items:center; border-radius:50%; background:#F6D56F; color:#6F5520; font-size:12px; }
.stripe-powered-footer{ margin-top:26px; display:flex; justify-content:center; gap:12px; flex-wrap:wrap; color:#8B8F9A; font-size:12px; }
.stripe-powered-footer a{ color:#6B7280; text-decoration:underline; text-underline-offset:3px; }
.stripe-config-warning{ border:1px solid #F0C6C1; background:#FFF7F6; color:#6B2A24; border-radius:13px; padding:16px; line-height:1.7; }
.stripe-config-warning strong{ display:block; color:#B4453D; margin-bottom:4px; }
.stripe-config-warning p{ margin:0; font-size:13.5px; }
.stripe-config-warning small{ display:block; margin-top:10px; color:#8B4B44; word-break:break-word; }
@media (max-width:900px){
  .stripe-checkout-page{ grid-template-columns:1fr; }
  .stripe-product-panel{ min-height:auto; padding:26px 22px 30px; }
  .stripe-product-copy{ margin:38px 0 34px; }
  .stripe-product-summary{ display:none; }
  .stripe-payment-panel{ min-height:auto; padding:30px 20px 46px; align-items:flex-start; }
}
@media (max-width:520px){
  .stripe-product-copy h1{ font-size:25px; }
  .stripe-product-price{ font-size:38px; }
  .stripe-payment-card h2{ font-size:24px; }
}
