/* =========================================================
   RISHTA SPOTLIGHT — DESIGN SYSTEM
   Privacy-safe Indian matrimonial platform.
   Palette: warm ivory, deep maroon, soft gold, warm charcoal.
   Type: Fraunces (editorial serif, headings) + Karla (body).
   Motif: the jali (perforated lattice screen) — light and
   pattern standing in for "privacy with warmth" throughout.
   ========================================================= */

:root{
  /* ---- color ---- */
  --ivory:        #FBF6ED;
  --ivory-deep:    #F4ECDD;
  --paper:        #FFFFFF;
  --maroon-900:   #3C0A11;
  --maroon-800:   #4A0E17;
  --maroon-700:   #6E1423;
  --maroon-600:   #832234;
  --maroon-500:   #9B3346;
  --gold-700:     #9C7629;
  --gold-500:     #C0973F;
  --gold-300:     #E4C88A;
  --gold-100:     #F4E6C4;
  --gold-premium: linear-gradient(135deg, #F7D98B 0%, #D9A441 48%, #B87516 100%);
  --charcoal-900: #241F1B;
  --charcoal-700: #423B33;
  --charcoal-600: #5B534A;
  --charcoal-400: #8A8074;
  --line:         #E7DCC8;
  --line-strong:  #D8C9A8;
  --success-bg:   #EAF3EA; --success-fg:#2E5B38; --success-ln:#B9D4BC;
  --warning-bg:   #FBF0DD; --warning-fg:#8A5A11; --warning-ln:#EAD09B;
  --danger-bg:    #F8E7E2; --danger-fg:#8A2E1E; --danger-ln:#E7BBAC;
  --info-bg:      #FBF4E7; --info-fg:#6F531B; --info-ln:#DCC58F;
  --neutral-bg:   #EFEAE0; --neutral-fg:#5B534A; --neutral-ln:#DCD2BD;

  /* ---- type ---- */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- layout ---- */
  --maxw: 1180px;
  --gutter: 20px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-h: 68px;

  /* ---- motion ---- */
  --dur-fast: 140ms;
  --dur-med: 220ms;
  --ease: cubic-bezier(.4,0,.2,1);
}

@media (min-width: 780px){
  :root{ --gutter: 40px; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal-900);
  font-size: 16px;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color: var(--maroon-800);
  letter-spacing:-0.01em;
}
h1{ font-size: clamp(2rem, 1.6rem + 2vw, 2.9rem); font-weight:600; }
h2{ font-size: clamp(1.5rem, 1.3rem + 1vw, 2.05rem); }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.05rem; }
p{ margin:0 0 1em; max-width:66ch; }
a{ color: var(--maroon-700); text-decoration-color: var(--gold-500); text-underline-offset:3px; }
a:hover{ color: var(--maroon-600); }
small,.text-sm{ font-size:.875rem; }
.text-muted{ color: var(--charcoal-600); }
.text-charcoal{ color: var(--charcoal-900); }
strong{ color: var(--charcoal-900); }

img,svg{ display:block; max-width:100%; }
button{ font-family:inherit; }

:focus-visible{
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section{ padding: 56px 0; }
.section-tight{ padding: 32px 0; }
.section-divider{
  display:flex; align-items:center; gap:14px;
  margin: 8px 0 36px;
  color: var(--gold-700);
}
.section-divider::before,.section-divider::after{
  content:""; flex:1; height:1px; background: var(--line-strong);
}
.section-divider .diamond{
  width:7px;height:7px; background:var(--gold-500); transform:rotate(45deg); flex:none;
}
.section-head{ text-align:left; margin-bottom:28px; }
.section-head.center{ text-align:center; }
.section-head p{ margin: 6px auto 0; }
.section-head.center p{ margin-left:auto; margin-right:auto; }
.eyebrow{
  font-family:var(--font-body); font-weight:700; font-size:.78rem;
  color: var(--gold-700); margin:0 0 8px; letter-spacing:.02em;
}

/* ---------------------------------------------------------
   Skip link
--------------------------------------------------------- */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--maroon-800); color:#fff; padding:10px 16px;
  border-radius: var(--radius-sm); z-index:200;
}
.skip-link:focus{ left:16px; top:16px; }

/* ---------------------------------------------------------
   Header / Nav
--------------------------------------------------------- */
.nav-actions-wrap{ display:flex; align-items:center; gap:10px; }
.auth-slot{ align-items:center; gap:10px; }

.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(251,246,237,.92);
  backdrop-filter: blur(6px);
  border-bottom:1px solid var(--line);
  height: var(--header-h);
}
.site-header .container{
  height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand:hover{ color:inherit; }
.brand-mark{
  width:38px;height:38px; border-radius:50%;
  background: radial-gradient(circle at 32% 28%, var(--maroon-600), var(--maroon-900));
  border:1.5px solid var(--gold-500);
  color: var(--gold-100); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:700; font-size:.95rem; flex:none;
}
.brand-word{ line-height:1.1; }
.brand-word .tag{ margin-top:4px; }
.brand-word .name{ font-family:var(--font-head); font-weight:600; font-size:1.05rem; color:var(--maroon-800); display:block; }
.brand-word .tag{ font-size:.68rem; color:var(--charcoal-600); display:block; letter-spacing:.02em; }

.nav-desktop{ display:none; align-items:center; gap:28px; }
.nav-desktop a{ color:var(--charcoal-700); text-decoration:none; font-weight:600; font-size:.94rem; }
.nav-desktop a:hover{ color:var(--maroon-700); }
.nav-desktop a.active{ color:var(--maroon-800); }
@media (min-width:920px){ .nav-desktop{ display:flex; } }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:38px;height:38px; border-radius:50%; border:1px solid var(--line-strong);
  background:var(--paper); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--maroon-800); position:relative; flex:none;
}
.icon-btn:hover{ border-color:var(--gold-500); }
.icon-btn .dot{
  position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%;
  background:var(--gold-500); border:1.5px solid var(--paper);
}
.hamburger{ display:flex; }
@media (min-width:920px){ .hamburger{ display:none; } }

/* Mobile drawer */
.drawer-overlay{
  position:fixed; inset:0; background:rgba(36,31,27,.45);
  opacity:0; pointer-events:none; transition:opacity var(--dur-med) var(--ease); z-index:150;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.drawer{
  position:fixed; top:0; right:0; height:100%; width:min(320px,84vw);
  background:var(--ivory); border-left:1px solid var(--line);
  transform:translateX(100%); transition:transform var(--dur-med) var(--ease);
  z-index:151; display:flex; flex-direction:column; padding:20px;
}
.drawer.open{ transform:translateX(0); }
.drawer-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.drawer nav{ display:flex; flex-direction:column; gap:4px; }
.drawer nav a{
  padding:12px 8px; text-decoration:none; color:var(--charcoal-800); font-weight:600;
  border-bottom:1px solid var(--line); font-size:1.02rem;
}
.drawer nav a.active{ color:var(--maroon-700); }
.drawer-foot{ margin-top:auto; display:flex; flex-direction:column; gap:10px; }

/* ---------------------------------------------------------
   Back button
--------------------------------------------------------- */
.back-row{ padding:14px 0 0; }
.back-btn{
  display:inline-flex; align-items:center; gap:6px; background:none; border:none;
  color:var(--maroon-700); font-weight:700; font-size:.92rem; cursor:pointer; padding:6px 2px;
  text-decoration:none;
}
.back-btn:hover{ color:var(--maroon-600); text-decoration:underline; }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:.95rem;
  padding:13px 22px; border-radius: var(--radius-sm); border:1.5px solid transparent;
  cursor:pointer; text-decoration:none; transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  line-height:1.1; white-space:nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background:var(--maroon-700); border-color:var(--maroon-700); color:#fff; }
.btn-primary:hover{ background:var(--maroon-600); border-color:var(--maroon-600); color:#fff; }
.btn-gold{ background:var(--gold-premium); border-color:#C08A22; color:var(--maroon-900); box-shadow:0 6px 18px rgba(192,151,63,.16), inset 0 1px 0 rgba(255,255,255,.42); }
.btn-gold:hover{ filter:saturate(1.05) brightness(1.02); border-color:#B97A17; color:var(--maroon-900); }
.btn-outline{ background:transparent; border-color:var(--maroon-700); color:var(--maroon-700); }
.btn-outline:hover{ background:var(--maroon-700); color:#fff; }
.btn-ghost{ background:transparent; border-color:transparent; color:var(--maroon-700); padding:10px 12px; }
.btn-ghost:hover{ background:var(--ivory-deep); }
.btn-danger{ background:var(--danger-fg); border-color:var(--danger-fg); color:#fff; }
.btn-danger:hover{ opacity:.9; }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 14px; font-size:.85rem; }
.btn[disabled],.btn.is-disabled{ opacity:.5; cursor:not-allowed; }
.btn-group{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------------------------------------------------------
   Cards / surfaces
--------------------------------------------------------- */
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:22px;
}
.card-tight{ padding:16px; }
.card-link{ text-decoration:none; color:inherit; display:block; transition:border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.card-link:hover{ border-color:var(--gold-500); transform:translateY(-2px); }
.panel{
  background:var(--ivory-deep); border:1px solid var(--line); border-radius:var(--radius-md); padding:22px;
}

@keyframes rs-page-in{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}
main{ animation:rs-page-in .46s var(--ease) both; }
.price-card:hover{ transform:translateY(-5px); box-shadow:0 16px 32px rgba(60,10,17,.10); border-color:rgba(192,151,63,.70); }
.hr{ border:none; border-top:1px solid var(--line); margin:18px 0; }

/* ---------------------------------------------------------
   Badges / status pills
--------------------------------------------------------- */
.badge{
  display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px;
  font-size:.78rem; font-weight:700; border:1px solid transparent; white-space:nowrap;
}
.badge-dot{ width:6px;height:6px;border-radius:50%; background:currentColor; flex:none; }
.badge-success{ background:var(--success-bg); color:var(--success-fg); border-color:var(--success-ln); }
.badge-warning{ background:var(--warning-bg); color:var(--warning-fg); border-color:var(--warning-ln); }
.badge-danger{ background:var(--danger-bg); color:var(--danger-fg); border-color:var(--danger-ln); }
.badge-info{ background:var(--info-bg); color:var(--info-fg); border-color:var(--info-ln); }
.badge-neutral{ background:var(--neutral-bg); color:var(--neutral-fg); border-color:var(--neutral-ln); }
.badge-gold{ background:var(--gold-premium); color:var(--maroon-900); border-color:#C18A25; box-shadow:inset 0 1px 0 rgba(255,255,255,.45); }

/* ---------------------------------------------------------
   Forms
--------------------------------------------------------- */
.field{ margin-bottom:18px; }
.field label,.field legend{
  display:block; font-weight:700; font-size:.86rem; color:var(--charcoal-900); margin-bottom:6px; padding:0;
}
.field .hint{ font-size:.8rem; color:var(--charcoal-600); margin-top:5px; }
.field .error-msg{ font-size:.8rem; color:var(--danger-fg); margin-top:5px; display:none; }
.field.has-error .error-msg{ display:block; }
.field.has-error input,.field.has-error select{ border-color:var(--danger-fg); }
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=date],select,textarea{
  width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--line-strong);
  background:var(--paper); font-family:var(--font-body); font-size:.96rem; color:var(--charcoal-900);
  transition:border-color var(--dur-fast) var(--ease);
}
textarea{ resize:vertical; min-height:100px; }
input:focus,select:focus,textarea:focus{ border-color:var(--maroon-600); outline:none; box-shadow:0 0 0 3px rgba(130,34,52,.12); }
input[readonly]{ background:var(--ivory-deep); color:var(--charcoal-600); }
.input-row{ display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:640px){ .input-row-2{ grid-template-columns:1fr 1fr; } .input-row-3{ grid-template-columns:1fr 1fr 1fr; } }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; }
.checkbox-row input{ width:18px;height:18px; margin-top:3px; accent-color:var(--maroon-700); flex:none; }

/* File upload (payment proof, etc.) */
.file-upload{ border:1.5px dashed var(--line-strong); border-radius:var(--radius-md); padding:16px; background:var(--ivory-deep); }
.file-upload-input{ position:absolute; width:1px;height:1px; padding:0;margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; white-space:nowrap; }
.file-upload-empty{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.file-upload-selected{ display:flex; align-items:center; gap:12px; }
.file-upload-thumb{
  width:44px;height:44px; border-radius:var(--radius-sm); background:var(--paper); border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; flex:none; overflow:hidden; color:var(--maroon-700);
}
.file-upload-thumb img{ width:100%; height:100%; object-fit:cover; }
.file-upload-name{ font-weight:700; font-size:.88rem; color:var(--charcoal-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-upload.has-error{ border-color:var(--danger-fg); background:var(--danger-bg); }
.radio-pill-group{ display:flex; gap:10px; flex-wrap:wrap; }
.radio-pill{ position:relative; }
.radio-pill input{ position:absolute; opacity:0; }
.radio-pill span{
  display:inline-flex; padding:10px 18px; border-radius:999px; border:1.5px solid var(--line-strong);
  cursor:pointer; font-weight:600; font-size:.9rem; color:var(--charcoal-700); background:var(--paper);
}
.radio-pill input:checked + span{ border-color:var(--maroon-700); background:var(--maroon-700); color:#fff; }
.radio-pill input:focus-visible + span{ outline:2px solid var(--gold-500); outline-offset:2px; }

/* ---------------------------------------------------------
   Stepper (registration)
--------------------------------------------------------- */
.stepper{ display:flex; align-items:center; gap:6px; margin-bottom:28px; overflow-x:auto; padding-bottom:4px; }
.stepper .step{ display:flex; align-items:center; gap:6px; flex:none; }
.stepper .num{
  width:28px;height:28px;border-radius:50%; border:1.5px solid var(--line-strong); color:var(--charcoal-600);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.8rem; background:var(--paper);
}
.stepper .label{ font-size:.8rem; font-weight:700; color:var(--charcoal-600); }
.stepper .connector{ width:22px; height:1px; background:var(--line-strong); }
.stepper .step.done .num{ background:var(--maroon-700); border-color:var(--maroon-700); color:#fff; }
.stepper .step.done .label{ color:var(--maroon-700); }
.stepper .step.current .num{ border-color:var(--maroon-700); color:var(--maroon-700); }
.stepper .step.current .label{ color:var(--charcoal-900); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero{ padding: 40px 0 56px; }
.hero-grid{ display:grid; gap:36px; align-items:center; }
@media (min-width:920px){ .hero-grid{ grid-template-columns:1.05fr .95fr; gap:56px; } }
.hero h1{ margin-bottom:.35em; }
.hero .line-2{ color:var(--gold-700); display:block; }
.hero p.lead{ font-size:1.08rem; color:var(--charcoal-700); }
.hero-badges{ display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; color:var(--charcoal-600); font-size:.86rem; }
.hero-badges span{ display:flex; align-items:center; gap:6px; }

.jali-panel{
  aspect-ratio:1/1; border-radius:var(--radius-lg); position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(192,151,63,.35), transparent 55%),
    linear-gradient(160deg, var(--maroon-900), var(--maroon-700) 60%, var(--maroon-600));
  border:1px solid var(--maroon-900);
}
.jali-panel svg{ position:absolute; inset:0; width:100%; height:100%; opacity:.55; }
.jali-caption{
  position:absolute; left:18px; right:18px; bottom:18px; background:rgba(60,10,17,.72);
  border:1px solid rgba(228,200,138,.5); border-radius:var(--radius-md); padding:16px 18px; color:var(--gold-100);
  backdrop-filter:blur(2px);
}
.jali-caption h4{ color:var(--gold-100); margin-bottom:4px; font-size:1rem; }
.jali-caption p{ margin:0; font-size:.86rem; color:var(--gold-100); opacity:.9; }

/* ---------------------------------------------------------
   Trust strip / feature grid
--------------------------------------------------------- */
.feature-grid{ display:grid; gap:16px; grid-template-columns:repeat(2,1fr); }
@media (min-width:700px){ .feature-grid{ grid-template-columns:repeat(5,1fr); } }
.feature-item{ text-align:center; padding:18px 10px; }
.feature-item .ic{
  width:46px;height:46px; border-radius:50%; border:1.5px solid var(--gold-300); color:var(--maroon-700);
  display:flex; align-items:center; justify-content:center; margin:0 auto 10px; background:var(--ivory-deep);
}
.feature-item h4{ font-size:.92rem; margin-bottom:2px; color:var(--charcoal-900); }
.feature-item p{ font-size:.8rem; color:var(--charcoal-600); margin:0; }

/* ---------------------------------------------------------
   Steps / how it works
--------------------------------------------------------- */
.steps-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:640px){ .steps-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:980px){ .steps-grid{ grid-template-columns:repeat(6,1fr); } }
.step-card{ text-align:center; }
.step-card .num-circle{
  width:52px;height:52px; border-radius:50%; background:var(--maroon-800); color:var(--gold-100);
  display:flex; align-items:center; justify-content:center; margin:0 auto 12px; font-family:var(--font-head); font-weight:600;
}
.step-card h4{ font-size:.95rem; margin-bottom:4px; }
.step-card p{ font-size:.82rem; color:var(--charcoal-600); }

/* ---------------------------------------------------------
   Pricing
--------------------------------------------------------- */
.pricing-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:760px){ .pricing-grid{ grid-template-columns:1fr 1fr; } }
.price-card{
  border:1.5px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; background:var(--paper); position:relative;
  transition:transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.price-card.featured{ border-color:var(--gold-500); }
.price-flag{
  position:relative; overflow:hidden;
  margin:14px 22px 0; border-radius:12px;
  background:var(--gold-premium); color:var(--maroon-900); font-weight:700; font-size:.74rem;
  min-height:36px; padding:8px 14px; display:flex; align-items:center; justify-content:center;
  text-align:center; letter-spacing:.015em; border:1px solid rgba(173,113,18,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48), 0 3px 10px rgba(126,82,12,.10);
}
.price-flag::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg, transparent 18%, rgba(255,255,255,.30) 42%, transparent 58%);
  transform:translateX(-120%); transition:transform .65s var(--ease);
}
.price-card:hover .price-flag::after{ transform:translateX(120%); }
.price-head{ margin:10px 22px 0; border-radius:12px; background:var(--maroon-800); color:var(--gold-100); padding:14px 18px; }
.price-head h3{ color:#fff; margin:0; font-size:1.08rem; }
.price-body{ padding:22px; }
.price-amount{ font-family:var(--font-body); font-size:2.45rem; letter-spacing:-.025em; color:var(--maroon-800); font-weight:700; line-height:1.02; }
.price-amount sup{ font-size:.9rem; top:-1em; }
.price-per{ color:var(--charcoal-600); font-size:.86rem; margin-bottom:18px; }
.price-list{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:11px; }
.price-list li{ display:flex; gap:10px; align-items:flex-start; font-size:.9rem; }
.price-list li .ic{ color:var(--maroon-700); flex:none; margin-top:2px; }
.price-list li .sub{ display:block; color:var(--charcoal-600); font-size:.78rem; }
.addon-strip{
  display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between;
  border:1px dashed var(--gold-500); border-radius:var(--radius-md); padding:18px 22px; background:var(--gold-100);
}
.addon-left{ display:flex; gap:14px; align-items:center; }
.addon-badge{
  width:44px;height:44px;border-radius:50%; background:var(--maroon-800); color:var(--gold-100);
  display:flex; align-items:center; justify-content:center; font-weight:700; flex:none;
}
.addon-terms{ list-style:none; margin:8px 0 0; padding:0; font-size:.78rem; color:var(--charcoal-700); display:flex; flex-direction:column; gap:4px; }

/* ---------------------------------------------------------
   Avatar / profile photo placeholder (privacy motif)
--------------------------------------------------------- */
.avatar{
  border-radius:50%; background:linear-gradient(155deg, var(--maroon-600), var(--maroon-900));
  color:var(--gold-100); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:600; flex:none; position:relative; overflow:hidden;
  border:1.5px solid var(--gold-300);
}
.avatar.size-sm{ width:40px;height:40px; font-size:.9rem; }
.avatar.size-md{ width:64px;height:64px; font-size:1.3rem; }
.avatar.size-lg{ width:104px;height:104px; font-size:2rem; }
.avatar.size-xl{ width:148px;height:148px; font-size:2.6rem; }
.avatar>img{width:100%;height:100%;object-fit:cover;display:block;}
.avatar.locked::after{
  content:""; position:absolute; inset:0;
  background:repeating-linear-gradient(135deg, rgba(36,31,27,.35) 0 6px, rgba(36,31,27,.18) 6px 12px);
  backdrop-filter: blur(3px);
}
.avatar-lock-ic{ position:absolute; z-index:2; color:var(--gold-100); }

/* ---------------------------------------------------------
   Profile cards / results
--------------------------------------------------------- */
.results-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.results-grid{ display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:640px){ .results-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:980px){ .results-grid{ grid-template-columns:1fr 1fr 1fr; } }
.profile-card{ display:flex; flex-direction:column; gap:12px; text-align:left; }
.profile-card .pc-top{ display:flex; gap:14px; align-items:center; }
.profile-card .pc-meta{ font-size:.86rem; color:var(--charcoal-600); }
.profile-card .pc-code{ font-family:var(--font-head); font-size:.78rem; color:var(--gold-700); font-weight:600; }
.profile-card .pc-facts{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:.85rem; color:var(--charcoal-700); }
.profile-card .pc-actions{ display:flex; gap:8px; margin-top:4px; }

.filter-bar{
  display:flex; gap:10px; overflow-x:auto; padding:2px 0 10px;
}
.filter-chip{
  flex:none; padding:9px 16px; border-radius:999px; border:1.5px solid var(--line-strong);
  background:var(--paper); font-size:.85rem; font-weight:600; color:var(--charcoal-700); cursor:pointer;
}
.filter-chip.active{ border-color:var(--maroon-700); background:var(--maroon-700); color:#fff; }

/* Filter drawer (mobile) */
.filter-drawer-overlay{ position:fixed; inset:0; background:rgba(36,31,27,.45); opacity:0; pointer-events:none; transition:opacity var(--dur-med) var(--ease); z-index:150; }
.filter-drawer-overlay.open{ opacity:1; pointer-events:auto; }
.filter-drawer{
  position:fixed; left:0; right:0; bottom:0; max-height:85vh; overflow-y:auto;
  background:var(--ivory); border-top:1px solid var(--line); border-radius:18px 18px 0 0;
  transform:translateY(100%); transition:transform var(--dur-med) var(--ease); z-index:151; padding:20px;
}
.filter-drawer.open{ transform:translateY(0); }
.filter-drawer-handle{ width:40px;height:4px; background:var(--line-strong); border-radius:2px; margin:0 auto 14px; }

/* ---------------------------------------------------------
   Full profile page
--------------------------------------------------------- */
.profile-hero{ display:flex; gap:22px; align-items:flex-start; flex-wrap:wrap; }
.profile-hero-info{ flex:1; min-width:220px; }
.profile-hero .code-line{ color:var(--gold-700); font-weight:700; font-size:.85rem; margin-bottom:4px; }
.detail-grid{ display:grid; gap:14px; grid-template-columns:1fr; margin-top:10px; }
@media (min-width:640px){ .detail-grid{ grid-template-columns:1fr 1fr; } }
.detail-row{ display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:.9rem; }
.detail-row .k{ color:var(--charcoal-600); }
.detail-row .v{ font-weight:600; color:var(--charcoal-900); text-align:right; }
.privacy-note{
  display:flex; gap:10px; align-items:flex-start; background:var(--info-bg); border:1px solid var(--info-ln);
  color:var(--info-fg); border-radius:var(--radius-md); padding:14px 16px; font-size:.85rem; margin-top:18px;
}

/* ---------------------------------------------------------
   Dashboard stat tiles
--------------------------------------------------------- */
.stat-grid{ display:grid; gap:16px; grid-template-columns:repeat(2,1fr); }
@media (min-width:760px){ .stat-grid{ grid-template-columns:repeat(4,1fr); } }
.stat-tile{ padding:18px; }
.stat-tile .label{ font-size:.78rem; color:var(--charcoal-600); font-weight:700; margin-bottom:8px; }
.stat-tile .value{ font-family:var(--font-head); font-size:1.5rem; color:var(--maroon-800); }
.stat-tile .sub{ font-size:.78rem; color:var(--charcoal-600); margin-top:4px; }

.dash-grid{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:960px){ .dash-grid{ grid-template-columns:2fr 1fr; } }
.list-row{ display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.list-row .grow{ flex:1; min-width:0; }
.list-row .title{ font-weight:700; font-size:.92rem; color:var(--charcoal-900); }
.list-row .meta{ font-size:.8rem; color:var(--charcoal-600); }

/* ---------------------------------------------------------
   Table (admin)
--------------------------------------------------------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--paper); }
table.data-table{ border-collapse:collapse; width:100%; min-width:720px; font-size:.87rem; }
table.data-table th{
  text-align:left; padding:12px 16px; background:var(--ivory-deep); color:var(--charcoal-700);
  font-size:.76rem; text-transform:none; font-weight:700; border-bottom:1px solid var(--line); white-space:nowrap;
}
table.data-table td{ padding:12px 16px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.data-table tr:last-child td{ border-bottom:none; }
table.data-table tr:hover td{ background:var(--ivory); }
.row-link{ color:var(--maroon-700); font-weight:700; text-decoration:none; font-size:.85rem; }

/* ---------------------------------------------------------
   Admin shell
--------------------------------------------------------- */
.admin-shell{ display:flex; min-height:100vh; width:100%; max-width:100%; overflow-x:hidden; }
.admin-sidebar{
  width:236px; background:var(--maroon-900); color:var(--gold-100); flex:none;
  position:fixed; top:0; bottom:0; left:0; padding:20px 14px; display:flex; flex-direction:column; z-index:60;
  transform:translateX(-100%); transition:transform var(--dur-med) var(--ease), width var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
  overflow:hidden;
  box-sizing:border-box;
}
.admin-sidebar.open{ transform:translateX(0); }
@media (min-width:980px){ .admin-sidebar{ transform:none; position:sticky; } }
.admin-shell.admin-sidebar-collapsed .admin-sidebar{
  width:0; padding-left:0; padding-right:0; transform:translateX(-100%); pointer-events:none;
}
.admin-sidebar .brand{ margin-bottom:20px; padding:0 8px; }
.admin-sidebar .brand .name{ color:#fff; }
.admin-sidebar .brand .tag{ color:var(--gold-300); }
.admin-nav{ display:flex; flex-direction:column; gap:2px; }
.admin-nav a{
  color:var(--gold-100); text-decoration:none; padding:10px 12px; border-radius:var(--radius-sm); font-size:.88rem; font-weight:600;
  display:flex; align-items:center; gap:10px; opacity:.82;
}
.admin-nav a:hover{ background:rgba(228,200,138,.1); opacity:1; }
.admin-nav a.active{ background:rgba(228,200,138,.16); opacity:1; color:#fff; }
.admin-main{ flex:1; min-width:0; width:100%; max-width:100%; overflow-x:hidden; }
.admin-topbar{
  height:64px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between;
  padding:0 22px; position:sticky; top:0; background:rgba(251,246,237,.94); backdrop-filter:blur(6px); z-index:50;
  box-sizing:border-box;
}
.admin-content{ padding:24px 22px 60px; width:100%; max-width:100%; box-sizing:border-box; overflow-x:hidden; }
@media (max-width:979px){
  .admin-topbar{ height:60px; padding:0 14px; }
  .admin-content{ padding:20px 16px 72px; }
}
@media (min-width:980px){ .admin-content{ padding:30px 34px 70px; } }
.admin-sidebar-overlay{ position:fixed; inset:0; background:rgba(36,31,27,.5); opacity:0; pointer-events:none; transition:opacity var(--dur-med) var(--ease); z-index:55; }
.admin-sidebar-overlay.open{ opacity:1; pointer-events:auto; }
@media (min-width:980px){ .admin-sidebar-overlay{ display:none; } }

.admin-stat-grid{ display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:26px; }
.admin-stat-grid > *{ min-width:0; }
@media (min-width:700px){ .admin-stat-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (min-width:1180px){ .admin-stat-grid{ grid-template-columns:repeat(6,1fr); } }

/* ---------------------------------------------------------
   Modal
--------------------------------------------------------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(36,31,27,.5); display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity var(--dur-med) var(--ease); z-index:200; padding:0;
}
@media (min-width:640px){ .modal-overlay{ align-items:center; padding:20px; } }
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{
  background:var(--ivory); width:100%; max-width:460px; border-radius:18px 18px 0 0; padding:28px 24px;
  transform:translateY(24px); transition:transform var(--dur-med) var(--ease); border:1px solid var(--line);
  max-height:88vh; overflow-y:auto;
}
@media (min-width:640px){ .modal{ border-radius:var(--radius-lg); } }
.modal-overlay.open .modal{ transform:translateY(0); }
.modal-icon{
  width:52px;height:52px;border-radius:50%; background:var(--gold-100); color:var(--maroon-800);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.modal-icon.success{ background:var(--success-bg); color:var(--success-fg); }
.modal-close{ position:absolute; top:16px; right:16px; background:none; border:none; cursor:pointer; color:var(--charcoal-600); }

/* ---------------------------------------------------------
   Toast
--------------------------------------------------------- */
.toast-stack{ position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:300; display:flex; flex-direction:column; gap:8px; width:min(360px,92vw); }
.toast{
  background:var(--charcoal-900); color:#fff; padding:13px 16px; border-radius:var(--radius-sm); font-size:.87rem;
  display:flex; align-items:center; gap:10px; box-shadow:0 6px 18px rgba(36,31,27,.18);
  opacity:0; transform:translateY(-10px); transition:opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.toast.show{ opacity:1; transform:translateY(0); }
.toast.success{ background:var(--success-fg); }
.toast.error{ background:var(--danger-fg); }

/* ---------------------------------------------------------
   States: empty / loading / skeleton / error
--------------------------------------------------------- */
.state-block{ text-align:center; padding:48px 20px; color:var(--charcoal-600); }
.state-block .ic{ width:52px;height:52px; margin:0 auto 14px; color:var(--gold-500); }
.state-block h3{ color:var(--charcoal-900); }
.skeleton{ background:linear-gradient(90deg, var(--line) 25%, var(--ivory-deep) 37%, var(--line) 63%); background-size:400% 100%; animation:skeleton-sweep 1.4s ease infinite; border-radius:var(--radius-sm); }
@keyframes skeleton-sweep{ 0%{background-position:100% 0;} 100%{background-position:0 0;} }
.skel-line{ height:12px; margin-bottom:8px; }
.skel-card{ height:150px; border-radius:var(--radius-md); }
.spinner{ width:18px;height:18px; border-radius:50%; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; animation:spin .7s linear infinite; }
.spinner.dark{ border-color:var(--line-strong); border-top-color:var(--maroon-700); }
@keyframes spin{ to{ transform:rotate(360deg); } }
.is-loading{ pointer-events:none; opacity:.75; }

/* ---------------------------------------------------------
   Banners
--------------------------------------------------------- */
.state-banner{ display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:var(--radius-md); border:1px solid; font-size:.87rem; margin-bottom:20px; }
.state-banner.success{ background:var(--success-bg); border-color:var(--success-ln); color:var(--success-fg); }
.state-banner.warning{ background:var(--warning-bg); border-color:var(--warning-ln); color:var(--warning-fg); }
.state-banner.danger{ background:var(--danger-bg); border-color:var(--danger-ln); color:var(--danger-fg); }
.state-banner.info{ background:var(--info-bg); border-color:var(--info-ln); color:var(--info-fg); }
.state-banner strong{ color:inherit; }

/* ---------------------------------------------------------
   Chat
--------------------------------------------------------- */
.chat-shell{ display:flex; height:min(72vh, 640px); min-height:420px; border-top:1px solid var(--line); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; margin:0 var(--gutter) 40px; }
@media (min-width:1220px){ .chat-shell{ margin-left:auto; margin-right:auto; max-width:calc(var(--maxw) - 0px); } }
.chat-list-pane{ width:100%; border-right:1px solid var(--line); overflow-y:auto; }
@media (min-width:820px){ .chat-list-pane{ width:340px; flex:none; } }
.chat-thread-pane{ flex:1; display:none; flex-direction:column; min-width:0; }
@media (min-width:820px){ .chat-thread-pane{ display:flex; } }
.chat-thread-pane.show-mobile{ display:flex; }
@media (max-width:819px){ .chat-shell.thread-active .chat-list-pane{ display:none; } }
.chat-item{ display:flex; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); cursor:pointer; text-decoration:none; color:inherit; }
.chat-item:hover,.chat-item.active{ background:var(--ivory-deep); }
.chat-item .grow{ min-width:0; flex:1; }
.chat-item .title-row{ display:flex; justify-content:space-between; gap:8px; }
.chat-item .preview{ font-size:.83rem; color:var(--charcoal-600); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-head{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); }
.chat-messages{ flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; background:var(--ivory); }
.bubble-row{ display:flex; }
.bubble-row.mine{ justify-content:flex-end; }
.bubble{ max-width:76%; padding:11px 15px; border-radius:16px; font-size:.9rem; position:relative; }
.bubble-row.theirs .bubble{ background:var(--paper); border:1px solid var(--line); border-bottom-left-radius:4px; }
.bubble-row.mine .bubble{ background:var(--maroon-700); color:#fff; border-bottom-right-radius:4px; }
.bubble .time{ display:block; font-size:.68rem; margin-top:5px; opacity:.7; }
.bubble.failed{ background:var(--danger-bg); color:var(--danger-fg); border:1px solid var(--danger-ln); }
.bubble.failed .row-link{ color:var(--danger-fg); text-decoration:underline; font-weight:700; margin-left:4px; }
.chat-composer{ display:flex; gap:10px; padding:14px 16px; border-top:1px solid var(--line); background:var(--paper); }
.chat-composer input{ flex:1; }
.chat-unavailable{ margin:auto; text-align:center; padding:40px; color:var(--charcoal-600); }

/* ---------------------------------------------------------
   FAQ accordion
--------------------------------------------------------- */
.accordion-item{ border-bottom:1px solid var(--line); }
.accordion-trigger{
  width:100%; text-align:left; background:none; border:none; padding:18px 4px; display:flex; justify-content:space-between;
  align-items:center; gap:14px; cursor:pointer; font-family:var(--font-head); font-weight:600; font-size:1.02rem; color:var(--charcoal-900);
}
.accordion-trigger .plus{ flex:none; transition:transform var(--dur-fast) var(--ease); color:var(--maroon-700); }
.accordion-item.open .accordion-trigger .plus{ transform:rotate(45deg); }
.accordion-panel{ max-height:0; overflow:hidden; transition:max-height var(--dur-med) var(--ease); }
.accordion-panel p{ padding:0 4px 18px; color:var(--charcoal-700); }

/* ---------------------------------------------------------
   Tabs (settings etc.)
--------------------------------------------------------- */
.tabs{ display:flex; gap:6px; border-bottom:1px solid var(--line); overflow-x:auto; margin-bottom:22px; }
.tab-btn{ background:none; border:none; padding:12px 16px; font-weight:700; font-size:.88rem; color:var(--charcoal-600); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.tab-btn.active{ color:var(--maroon-700); border-bottom-color:var(--maroon-700); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* ---------------------------------------------------------
   Auth pages
--------------------------------------------------------- */
.auth-shell{ min-height:calc(100vh - var(--header-h)); display:flex; align-items:center; justify-content:center; padding:40px 0; }
.auth-card{ width:100%; max-width:440px; margin:0 auto; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer{ background:var(--maroon-900); color:var(--gold-100); margin-top:60px; }
.footer-grid{ display:grid; gap:28px; grid-template-columns:1fr; padding:48px 0 26px; }
@media (min-width:760px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; } }
.site-footer h4{ color:#fff; font-size:.85rem; margin-bottom:14px; }
.site-footer p{ color:var(--gold-300); font-size:.86rem; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.site-footer a{ color:var(--gold-100); opacity:.86; text-decoration:none; font-size:.87rem; }
.site-footer a:hover{ opacity:1; text-decoration:underline; }
.footer-bottom{
  border-top:1px solid rgba(228,200,138,.2); padding:18px 0; display:flex; flex-wrap:wrap; gap:10px;
  justify-content:space-between; font-size:.78rem; color:var(--gold-300);
}
.footer-cta{
  background:var(--maroon-800); border:1px solid rgba(228,200,138,.3); border-radius:var(--radius-lg);
  padding:26px; display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between; margin-top:10px;
}
.footer-cta h3{ color:#fff; margin-bottom:4px; }
.footer-cta p{ color:var(--gold-300); margin:0; }

/* ---------------------------------------------------------
   Utility
--------------------------------------------------------- */
.flex{ display:flex; }
.flex-wrap{ flex-wrap:wrap; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-20{ gap:20px; }
.mt-0{margin-top:0;} .mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-0{margin-bottom:0;} .mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;}
.hide-mobile{ display:none; } @media (min-width:760px){ .hide-mobile{ display:initial; } }
.show-mobile{ display:initial; } @media (min-width:760px){ .show-mobile{ display:none; } }
.center{ text-align:center; }
.w-full{ width:100%; }
.sr-only{ position:absolute; width:1px;height:1px; padding:0;margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; white-space:nowrap; }


/* ---------------------------------------------------------
   PHASE 0 — Visual refinement layer
   Preserves existing markup/behavior while strengthening
   premium hierarchy, touch feedback and responsive polish.
--------------------------------------------------------- */
:root{
  --shadow-xs: 0 2px 8px rgba(60,10,17,.05);
  --shadow-sm: 0 8px 24px rgba(60,10,17,.07);
  --shadow-md: 0 16px 42px rgba(60,10,17,.10);
  --ring-gold: 0 0 0 3px rgba(192,151,63,.16);
}

body{
  background:
    radial-gradient(circle at 8% -4%, rgba(228,200,138,.16), transparent 30%),
    radial-gradient(circle at 96% 10%, rgba(131,34,52,.045), transparent 28%),
    var(--ivory);
}

.site-header{
  box-shadow: 0 1px 0 rgba(60,10,17,.02), 0 6px 20px rgba(60,10,17,.045);
}
.nav-desktop a{
  position:relative;
  padding:8px 0;
}
.nav-desktop a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:1px;
  height:2px;
  border-radius:999px;
  background:var(--gold-500);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform var(--dur-med) var(--ease);
}
.nav-desktop a:hover::after,.nav-desktop a.active::after{ transform:scaleX(1); }

.icon-btn{
  box-shadow:var(--shadow-xs);
  transition:transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.icon-btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.icon-btn:active{ transform:translateY(0); }
.icon-btn:focus-visible{ outline:none; box-shadow:var(--ring-gold); }

.drawer{
  box-shadow:-18px 0 40px rgba(36,31,27,.14);
}

.btn{
  min-height:44px;
  box-shadow:var(--shadow-xs);
  transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.btn:active{ transform:translateY(0); box-shadow:var(--shadow-xs); }
.btn:focus-visible{ outline:none; box-shadow:var(--ring-gold); }
.btn-ghost{ box-shadow:none; }
.btn-ghost:hover{ box-shadow:none; }
.btn-gold{ box-shadow:0 6px 18px rgba(192,151,63,.16); }

.card,.price-card,.panel{
  box-shadow:var(--shadow-xs);
  transition:border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.card-link:hover{ box-shadow:var(--shadow-sm); }

.feature-item{
  border:1px solid transparent;
  border-radius:var(--radius-md);
  padding:20px 12px;
  transition:background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.feature-item:hover{
  background:rgba(255,255,255,.72);
  border-color:var(--line);
  transform:translateY(-2px);
  box-shadow:var(--shadow-xs);
}
.feature-item .ic{ transition:transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); box-shadow:inset 0 1px 0 rgba(255,255,255,.35); }
.feature-item:hover .ic{ transform:translateY(-1px) scale(1.04); box-shadow:0 6px 14px rgba(60,10,17,.09), inset 0 1px 0 rgba(255,255,255,.45); }

.steps-grid{ gap:18px; }
.step-card{
  border:1px solid transparent;
  border-radius:var(--radius-md);
  padding:18px 12px 14px;
  transition:border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.step-card:hover{
  background:rgba(255,255,255,.6);
  border-color:var(--line);
  transform:translateY(-2px);
  box-shadow:var(--shadow-xs);
}
.step-card .num-circle{ transition:transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
.step-card:hover .num-circle{ transform:translateY(-2px); box-shadow:0 6px 14px rgba(60,10,17,.12); }

.jali-panel{
  box-shadow:var(--shadow-md);
  isolation:isolate;
}
.jali-panel::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:radial-gradient(circle at 50% 45%, rgba(244,230,196,.16), transparent 42%);
  pointer-events:none;
}
.jali-panel svg{ mix-blend-mode:screen; opacity:.58; }
.jali-caption{ box-shadow:0 10px 26px rgba(36,31,27,.16); }

.price-card.featured{
  box-shadow:0 14px 36px rgba(60,10,17,.11), 0 0 0 1px rgba(192,151,63,.08);
}
.price-card.featured .price-head{ background:linear-gradient(145deg, var(--maroon-900), var(--maroon-700)); }
.price-flag{ letter-spacing:.02em; }

.results-grid{ align-items:stretch; }
.profile-card{ height:100%; }
.profile-card .pc-actions .btn{ flex:1 1 0; }

.stat-tile{ box-shadow:var(--shadow-xs); }
.stat-tile:hover{ border-color:var(--line-strong); box-shadow:var(--shadow-sm); }

.table-wrap{ box-shadow:var(--shadow-xs); }
table.data-table tr:hover td{ background:rgba(251,246,237,.88); }

.modal-overlay{ backdrop-filter:blur(3px); background:rgba(36,31,27,.56); }
.modal{
  box-shadow:0 22px 60px rgba(36,31,27,.22);
}
.modal-close{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.modal-close:hover{ background:var(--ivory-deep); color:var(--maroon-800); transform:rotate(4deg); }
.modal-close:focus-visible{ outline:none; box-shadow:var(--ring-gold); }

.toast{ box-shadow:0 12px 28px rgba(36,31,27,.2); }

.state-banner{ box-shadow:var(--shadow-xs); }

.chat-shell{ box-shadow:var(--shadow-sm); }
.chat-item{ transition:background var(--dur-fast) var(--ease); }
.chat-composer{ box-shadow:0 -6px 18px rgba(60,10,17,.035); }

.footer-cta{ box-shadow:var(--shadow-sm); }

@media (max-width:639px){
  .section{ padding:44px 0; }
  .section-tight{ padding:26px 0; }
  .hero{ padding:28px 0 42px; }
  .hero-grid{ gap:28px; }
  .hero p.lead{ font-size:1rem; }
  .hero-badges{ gap:10px 14px; }
  .hero .btn-group{ width:100%; }
  .hero .btn-group .btn{ width:100%; }
  .card,.panel,.price-body{ padding:18px; }
  .price-head{ padding:14px 18px; }
  .profile-card .pc-actions{ flex-direction:column; }
  .profile-card .pc-actions .btn{ width:100%; }
  .modal{ padding:24px 18px 22px; max-height:90vh; }
  .chat-shell{ margin-left:0; margin-right:0; border-radius:0; border-left:none; border-right:none; }
}

@media (min-width:980px){
  .hero{ padding:54px 0 72px; }
  .hero h1{ font-size:clamp(2.6rem, 2.1rem + 2vw, 3.35rem); }
}


/* =========================================================
   LOCKED PHASE 0 UI REVISION 2 — PREMIUM VISUAL LAYER
   ========================================================= */
.brand-logo-wrap{padding:0!important;overflow:hidden;background:#240306!important;border-color:rgba(228,200,138,.65)!important;}
.brand-logo{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;}
.brand-word .tag{margin-top:5px;display:block;}

.hero-v2{padding-top:46px;padding-bottom:60px;overflow:hidden;}
.hero-copy{position:relative;z-index:2;}
.hero-v2 .eyebrow{margin-bottom:8px;}
.hero-v2 h1{font-size:clamp(2.45rem,2rem + 2.5vw,3.65rem);}
.hero-v2 .lead{max-width:600px;font-size:1.08rem;}
.hero-visual{position:relative;min-height:430px;border-radius:28px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 45% 32%,rgba(244,230,196,.2),transparent 38%),linear-gradient(145deg,#260307 0%,#4a0e17 55%,#701523 100%);border:1px solid rgba(228,200,138,.35);box-shadow:0 30px 70px rgba(60,10,17,.18);isolation:isolate;}
.hero-logo-glow{position:absolute;inset:10%;border-radius:50%;background:radial-gradient(circle,rgba(244,230,196,.16),transparent 60%);filter:blur(2px);}
.hero-logo-card{width:min(58%,300px);aspect-ratio:1;border-radius:50%;position:relative;z-index:1;display:grid;place-items:center;box-shadow:0 16px 42px rgba(0,0,0,.28),0 0 0 1px rgba(244,230,196,.22);overflow:hidden;border:3px solid rgba(228,200,138,.62);}
.hero-logo-card img{width:100%;height:100%;object-fit:cover;}
.hero-private-card{position:absolute;left:22px;right:22px;bottom:22px;z-index:2;display:flex;align-items:center;gap:14px;padding:17px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(60,10,17,.96),rgba(110,20,35,.92));border:1px solid rgba(228,200,138,.45);box-shadow:0 16px 34px rgba(0,0,0,.2);color:var(--gold-100);backdrop-filter:blur(7px);}
.hero-private-card .private-icon{width:48px;height:48px;border-radius:50%;border:1px solid var(--gold-300);display:grid;place-items:center;color:var(--gold-100);flex:none;}
.hero-private-card strong{color:#fff;display:block;font-size:1rem;}
.hero-private-card p{margin:.25rem 0 0;color:var(--gold-100);opacity:.9;font-size:.84rem;}

.ornamental-head h2{position:relative;display:inline-block;}
.ornamental-head h2::before,.ornamental-head h2::after{content:"";display:inline-block;width:46px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-500));vertical-align:middle;margin:0 14px;}
.ornamental-head h2::after{background:linear-gradient(90deg,var(--gold-500),transparent);}
.steps-grid-v2 .step-card{position:relative;}
.steps-grid-v2 .step-icon{width:74px;height:74px;border-radius:50%;border:1px solid var(--line);background:var(--paper);display:grid;place-items:center;color:var(--maroon-700);margin:-2px auto 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 22px rgba(60,10,17,.05);}
.steps-grid-v2 .step-icon svg{width:34px;height:34px;}
.steps-grid-v2 .step-card:not(:last-child)::after{content:"→";position:absolute;right:-15px;top:57px;color:var(--gold-500);font-size:1.25rem;}
@media(max-width:979px){.steps-grid-v2 .step-card:not(:last-child)::after{display:none;}}

.dedicated-showcase-card{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 24px;border:1px solid rgba(192,151,63,.38);border-radius:18px;background:linear-gradient(130deg,#fffdfa 0%,#f6ead4 100%);box-shadow:0 10px 24px rgba(60,10,17,.055);position:relative;overflow:hidden;}
.dedicated-showcase-card::after{content:"";position:absolute;top:-45%;right:-8%;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(244,230,196,.72),transparent 68%);pointer-events:none;}
.dedicated-showcase-card h3{margin-bottom:5px;}
.dedicated-showcase-card>div,.dedicated-showcase-card>ul,.dedicated-showcase-card>.btn{position:relative;z-index:1;}
.dedicated-showcase-card .btn{white-space:nowrap;}
.dedicated-badge{width:52px;height:52px;border-radius:50%;background:var(--maroon-800);color:var(--gold-100);border:1px solid rgba(228,200,138,.55);display:grid;place-items:center;font-size:1.2rem;flex:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.18);}
.dedicated-copy{min-width:210px;flex:1;}
.dedicated-points{list-style:none;padding:0;margin:0;display:grid;gap:6px;min-width:220px;font-size:.78rem;color:var(--charcoal-700);}
.dedicated-points li{position:relative;padding-left:16px;}
.dedicated-points li::before{content:"✓";position:absolute;left:0;color:var(--gold-700);font-weight:800;}
.mini-check-list{margin:10px 0 0;padding-left:18px;color:var(--charcoal-700);font-size:.85rem;}

.trust-section{background:linear-gradient(180deg,var(--ivory),#f6ede0);}
.trust-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;}
.trust-icon svg{width:23px;height:23px;}
.trust-item{text-align:center;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:.9rem;}
.trust-icon{width:48px;height:48px;border-radius:50%;border:1.5px solid var(--gold-500);color:var(--gold-700);display:grid;place-items:center;font-size:1.35rem;background:rgba(255,255,255,.55);font-family:var(--font-head);font-weight:700;}
.success-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.success-card{border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:22px;box-shadow:var(--shadow-xs);transition:transform var(--dur-med) var(--ease),box-shadow var(--dur-med) var(--ease),border-color var(--dur-med) var(--ease);}
.success-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm);border-color:var(--line-strong);}
.success-label{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--gold-100);color:var(--maroon-800);font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:12px;}
.success-card h3{font-size:1.1rem;margin-bottom:10px;}
.success-card p{font-family:var(--font-head);font-size:1.05rem;color:var(--charcoal-700);}
.success-meta{font-size:.72rem;color:var(--charcoal-400);display:block;margin-top:12px;}

.promotion-dashboard-card{position:relative;overflow:hidden;}
.story-progress{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-top:8px;}
.story-progress>div{display:flex;flex-direction:column;gap:2px;}
.price-chip{display:inline-flex;padding:7px 10px;border-radius:999px;background:var(--gold-premium);color:var(--maroon-900);font-weight:800;font-size:.78rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.5);}
.story-progress-bar{height:7px;background:var(--ivory-deep);border-radius:999px;overflow:hidden;border:1px solid var(--line);}
.story-progress-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--maroon-700),var(--gold-500));border-radius:999px;}
.preference-grid{display:grid;gap:12px;}
.preference-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--ivory);cursor:pointer;}
.preference-row span{display:flex;flex-direction:column;gap:2px;}
.preference-row strong{font-size:.94rem;}
.preference-row small{color:var(--charcoal-600);font-size:.76rem;}
.preference-row select{min-width:180px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper);padding:9px 12px;font:inherit;color:var(--charcoal-900);}
.dedicated-flow-card{border:1px solid rgba(192,151,63,.38);border-radius:18px;padding:22px;background:linear-gradient(135deg,#fffdfa,#f7ead7);box-shadow:var(--shadow-sm);}
.dedicated-flow-top{display:flex;gap:16px;align-items:flex-start;}
.dedicated-mini-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--maroon-800);color:var(--gold-100);border:1px solid rgba(228,200,138,.55);font-size:1.1rem;flex:none;}

/* Secure chat polish */
.chat-avatar-img{display:block;border-radius:50%;object-fit:cover;border:1.5px solid var(--gold-300);background:var(--gold-100);flex:none;}
.chat-avatar-img.size-sm{width:40px;height:40px;}
.chat-avatar-img.size-md{width:52px;height:52px;}
.chat-avatar-wrap{position:relative;flex:none;}
.presence-dot{position:absolute;right:0;bottom:1px;width:9px;height:9px;border-radius:50%;background:#4f8f5e;border:2px solid var(--paper);}
.unread-count{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--maroon-700);color:#fff;font-size:.7rem;font-weight:700;}
.chat-head-name{font-weight:700;font-size:1rem;}
.secure-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5c8b63;vertical-align:middle;margin-right:4px;}
.chat-day-divider{text-align:center;margin:-2px 0 4px;color:var(--charcoal-400);font-size:.72rem;}
.chat-day-divider span{display:inline-flex;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.82);border:1px solid var(--line);}
.chat-ticks{margin-left:4px;font-weight:700;letter-spacing:-.12em;}
.chat-ticks.is-read{color:var(--gold-700);}
.bubble-text{display:inline;}
.emoji-tray{display:flex;gap:6px;padding:0 16px 8px;background:var(--paper);max-height:0;overflow:hidden;opacity:0;transition:max-height var(--dur-fast) var(--ease),opacity var(--dur-fast) var(--ease),padding var(--dur-fast) var(--ease);}
.emoji-tray.open{max-height:48px;opacity:1;padding-top:8px;}
.emoji-tray button{border:1px solid var(--line);background:var(--ivory);border-radius:10px;padding:6px 8px;cursor:pointer;font-size:1rem;}
.secure-rules-modal{max-width:540px;}
.secure-rules-list{display:grid;gap:10px;}
.secure-rules-list>div{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--ivory);font-size:.88rem;}

@media(max-width:760px){
  .dedicated-points{width:100%;}
  .hero-v2{padding-top:28px;padding-bottom:42px;}
  .hero-v2 .hero-grid{gap:28px;}
  .hero-visual{min-height:380px;}
  .hero-logo-card{width:min(66%,250px);}
  .hero-private-card{left:14px;right:14px;bottom:14px;padding:14px;}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .success-grid{grid-template-columns:1fr;}
  .dedicated-showcase-card{flex-direction:column;align-items:flex-start;}
  .dedicated-showcase-card .btn{width:100%;}
  .story-progress{flex-direction:column;align-items:flex-start;}
  .preference-row{flex-direction:column;align-items:flex-start;}
  .preference-row select{min-width:0;width:100%;}
}
@media(max-width:520px){
  .trust-grid{grid-template-columns:1fr;}
  .hero-private-card strong{font-size:.92rem;}
  }


/* =========================================================
   FINAL VISUAL REFINEMENT — LOCKED POINTS 1–7
   Asset replacement + premium cream/maroon/gold contrast.
   Motion/transition system intentionally preserved.
========================================================= */
:root{
  --ivory:#FCF8F1;
  --ivory-deep:#F2E8D9;
  --paper:#FFFDF8;
  --maroon-900:#3A0710;
  --maroon-800:#4D0A15;
  --maroon-700:#6F1224;
  --maroon-600:#831B31;
  --gold-700:#A96E12;
  --gold-500:#C58B25;
  --gold-300:#E6C985;
  --gold-100:#F7E8C7;
  --gold-premium:linear-gradient(135deg,#F6D57F 0%,#D9A437 48%,#B97810 100%);
  --line:#E7DCCB;
  --line-strong:#D9C7A3;
}

body{
  background:
    radial-gradient(circle at 8% -6%, rgba(246,213,127,.10), transparent 28%),
    radial-gradient(circle at 95% 12%, rgba(111,18,36,.035), transparent 24%),
    var(--ivory);
}

/* Point 1 — responsive banner using the supplied master image. */
.hero-banner-section{padding:30px 0 28px;}
.hero-banner-shell{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(197,139,37,.38);
  background:var(--paper);
  box-shadow:0 20px 48px rgba(58,7,16,.10);
  isolation:isolate;
}
.hero-banner-shell::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(255,255,255,.015),transparent 32%,rgba(255,255,255,.045));
  pointer-events:none;
}
.hero-banner-shell img{width:100%;height:auto;display:block;}
.hero-banner-ctas{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px auto 0;}

/* Point 4 — premium feature strip. */
.feature-strip-section{padding-top:8px;padding-bottom:28px;}
.feature-strip-section .container{max-width:1180px;}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  background:var(--paper);
  border:1px solid var(--line-strong);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(58,7,16,.06);
}
.feature-item{
  position:relative;
  min-height:126px;
  padding:20px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feature-item:not(:last-child)::after{
  content:"";
  position:absolute;
  top:18px;bottom:18px;right:0;width:1px;
  background:var(--line);
}
.feature-item:hover{background:linear-gradient(180deg,#fffefa,#fbf4e8);border-color:transparent;transform:none;box-shadow:none;}
.feature-item .ic{
  width:54px;height:54px;
  background:#FFFAF0;
  color:var(--gold-700);
  border-color:var(--gold-500);
  margin:0 auto 10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.feature-item h4{font-size:.9rem;line-height:1.22;margin:0;color:var(--maroon-900);}

/* Point 5 — premium How It Works container + balanced responsive layout. */
.home-how-section{padding-top:28px;}
.how-works-shell{
  background:var(--paper);
  border:1px solid var(--line-strong);
  border-radius:20px;
  padding:28px 22px 26px;
  box-shadow:0 14px 34px rgba(58,7,16,.06);
}
.how-works-shell .section-head{margin-bottom:22px;}
.how-works-shell .steps-grid-v2{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.how-works-shell .step-card{
  position:relative;
  min-width:0;
  padding:4px 8px 8px;
  border:0;
  border-radius:0;
  background:transparent;
}
.how-works-shell .step-card:hover{background:transparent;border-color:transparent;transform:none;box-shadow:none;}
.how-works-shell .step-card .num-circle{
  width:42px;height:42px;
  margin:0 auto 10px;
  background:var(--maroon-800);
  color:#fff9ef;
  box-shadow:0 7px 14px rgba(58,7,16,.12);
}
.how-works-shell .step-card .step-icon{
  width:74px;height:74px;
  margin:0 auto 12px;
  background:#FFFCF7;
  border-color:var(--line);
  color:var(--maroon-700);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 7px 18px rgba(58,7,16,.05);
}
.how-works-shell .step-card h4{font-size:.92rem;color:var(--maroon-900);margin-bottom:5px;}
.how-works-shell .step-card p{font-size:.78rem;color:var(--charcoal-600);margin:0 auto;max-width:170px;}
.how-works-shell .step-card:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-7px;
  top:86px;
  color:var(--gold-500);
  font-size:1.3rem;
  font-weight:700;
}

/* Point 6 — reference-style membership cards. */
.pricing-section{padding-top:34px;padding-bottom:48px;}
.pricing-shell{
  background:var(--paper);
  border:1px solid var(--line-strong);
  border-radius:22px;
  padding:28px 22px 26px;
  box-shadow:0 16px 40px rgba(58,7,16,.06);
}
.pricing-shell .section-head{margin-bottom:26px;}
.pricing-grid{gap:34px;align-items:stretch;}
.price-card{
  overflow:visible;
  border:1px solid var(--line-strong);
  border-radius:16px;
  background:#FFFEFA;
  padding-top:0;
  box-shadow:0 8px 22px rgba(58,7,16,.055);
}
.price-card.featured{border-color:var(--gold-500);}
.price-flag{
  position:relative;
  width:56%;
  min-height:34px;
  margin:-15px auto 4px;
  padding:7px 12px;
  border-radius:10px 10px 7px 7px;
  background:var(--gold-premium);
  color:var(--maroon-900);
  font-size:.74rem;
  font-weight:800;
  box-shadow:0 5px 14px rgba(126,82,12,.14),inset 0 1px 0 rgba(255,255,255,.5);
  z-index:2;
}
.price-head{margin:0 10px;border-radius:12px;background:linear-gradient(145deg,var(--maroon-900),var(--maroon-700));padding:14px 18px;}
.price-head h3{font-size:1.03rem;color:#fff;margin:0;text-align:center;}
.price-body{padding:20px 22px 20px;}
.price-amount{font-size:2.55rem;color:var(--maroon-800);font-weight:700;line-height:1.02;}
.price-per{color:var(--charcoal-600);font-size:.86rem;margin-bottom:17px;}
.price-list{gap:10px;margin-bottom:20px;}
.price-list li{font-size:.88rem;}
.price-list li .ic{color:var(--maroon-700);}
.price-list li .sub{font-size:.77rem;color:var(--charcoal-600);margin-top:2px;}
.price-card .btn{min-height:46px;border-radius:10px;}

/* Point 2 — simplified Dedicated Profile Reel card. */
.dedicated-showcase-card{
  margin-top:34px !important;
  display:grid;
  grid-template-columns:auto minmax(0,1.25fr) minmax(220px,.9fr) auto;
  gap:20px;
  align-items:center;
  padding:22px 24px;
  border:1px solid var(--gold-300);
  border-radius:18px;
  background:linear-gradient(140deg,#fffefa 0%,#fbf3e5 100%);
  box-shadow:0 10px 28px rgba(58,7,16,.055);
}
.dedicated-showcase-card::after{background:radial-gradient(circle,rgba(247,232,199,.62),transparent 68%);}
.dedicated-showcase-card h3{font-size:1.26rem;margin:0 0 5px;color:var(--maroon-900);}
.dedicated-price-line{display:flex;align-items:baseline;gap:10px;margin:0 0 5px;color:var(--charcoal-700);}
.dedicated-price-line strong{font-size:1.05rem;color:var(--maroon-900);}
.dedicated-price-line span{font-size:.92rem;color:var(--charcoal-600);}
.dedicated-points{min-width:0;gap:7px;font-size:.78rem;}
.dedicated-points li{padding-left:17px;}
.dedicated-showcase-card .btn{min-height:44px;padding:11px 18px;}

/* Point 7A — premium Interest Add-on card. */
.addon-strip{
  margin-top:22px !important;
  display:grid;
  grid-template-columns:minmax(220px,.95fr) minmax(260px,1.2fr) auto;
  gap:24px;
  align-items:center;
  border:1px solid var(--line-strong);
  border-radius:16px;
  padding:20px 24px;
  background:linear-gradient(135deg,#fffefa 0%,#fbf4e7 100%);
  box-shadow:0 8px 22px rgba(58,7,16,.045);
}
.addon-left{display:flex;gap:14px;align-items:center;}
.addon-badge{width:58px;height:58px;border-radius:50%;background:var(--maroon-800);color:var(--gold-100);border:1px solid var(--gold-300);font-size:1.05rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.16);}
.addon-left h4{color:var(--maroon-900);font-size:1.04rem;}
.addon-price{font-family:var(--font-head);font-size:1.75rem;font-weight:700;color:var(--maroon-800);line-height:1.05;margin:3px 0 1px;}
.addon-terms-inline{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.78rem;color:var(--charcoal-700);}
.addon-terms-inline li{position:relative;padding-left:18px;}
.addon-terms-inline li::before{content:"✓";position:absolute;left:0;color:var(--gold-700);font-weight:900;}
.addon-strip .btn{white-space:nowrap;min-height:46px;}

/* Point 7B — reference-style Trust section. */
.trust-section{background:var(--ivory);padding-top:26px;}
.trust-shell{
  background:var(--paper);
  border:1px solid var(--line-strong);
  border-radius:20px;
  box-shadow:0 12px 30px rgba(58,7,16,.05);
  padding:22px 18px 18px;
}
.trust-shell .section-head{margin-bottom:10px;}
.trust-shell .section-head h2{font-size:clamp(1.55rem,1.3rem + 1vw,2rem);color:var(--maroon-900);margin:0;}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  border-top:0;
  border-bottom:0;
  padding:14px 0 4px;
}
.trust-item{position:relative;min-height:102px;padding:12px 12px;gap:10px;}
.trust-item:not(:last-child)::after{content:"";position:absolute;top:16px;bottom:16px;right:0;width:1px;background:var(--line);}
.trust-icon{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--gold-500);color:var(--gold-700);background:#FFFBF3;box-shadow:inset 0 1px 0 rgba(255,255,255,.85);}
.trust-item strong{font-size:.9rem;color:var(--maroon-900);line-height:1.25;text-align:center;}

/* Success Stories keep existing motion, but align with premium cream/maroon/gold system. */
.success-stories-section{background:linear-gradient(180deg,var(--ivory),#FBF4E8);}
.success-card{background:var(--paper);border-color:var(--line-strong);}
.success-label{background:var(--gold-100);color:var(--maroon-900);}

@media (max-width: 979px){
  .how-works-shell .steps-grid-v2{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px;}
  .how-works-shell .step-card:not(:last-child)::after{display:none;}
  .dedicated-showcase-card{grid-template-columns:auto 1fr;}
  .dedicated-showcase-card .dedicated-points{grid-column:1 / -1;}
  .dedicated-showcase-card .btn{grid-column:1 / -1;justify-self:start;}
  .addon-strip{grid-template-columns:1fr auto;}
  .addon-terms-inline{grid-column:1 / -1;grid-row:2;}
}
@media (max-width: 760px){
  .hero-banner-section{padding:22px 0 20px;}
  .hero-banner-shell{border-radius:18px;}
  .hero-banner-ctas{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px;}
  .hero-banner-ctas .btn{width:100%;}
  .feature-strip-section{padding-top:6px;padding-bottom:24px;}
  .feature-grid{grid-template-columns:repeat(2,1fr);border-radius:16px;}
  .feature-item{min-height:116px;padding:16px 10px;}
  .feature-item:nth-child(2n)::after{display:none;}
  .feature-item:nth-child(5){grid-column:1/-1;border-top:1px solid var(--line);}
  .feature-item:nth-child(5)::after{display:none;}
  .how-works-shell{padding:22px 12px 20px;border-radius:18px;}
  .how-works-shell .steps-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px;}
  .how-works-shell .step-card{padding:4px 4px 8px;}
  .how-works-shell .step-card .step-icon{width:66px;height:66px;}
  .how-works-shell .step-card .step-icon svg{width:30px;height:30px;}
  .pricing-shell{padding:24px 12px 18px;border-radius:18px;}
  .pricing-grid{gap:30px;}
  .price-card{border-radius:15px;}
  .price-flag{width:62%;}
  .price-head{margin:0 8px;border-radius:11px;}
  .price-body{padding:20px 18px 18px;}
  .dedicated-showcase-card{grid-template-columns:auto 1fr;gap:14px;padding:20px 18px;border-radius:16px;}
  .dedicated-showcase-card .dedicated-copy{grid-column:2;}
  .dedicated-showcase-card .dedicated-points{grid-column:1/-1;}
  .dedicated-showcase-card .btn{grid-column:1/-1;width:100%;}
  .addon-strip{grid-template-columns:1fr;gap:16px;padding:18px;border-radius:15px;}
  .addon-terms-inline{grid-column:auto;}
  .addon-strip .btn{width:100%;}
  .trust-shell{padding:20px 10px 14px;border-radius:18px;}
  .trust-grid{grid-template-columns:repeat(2,1fr);padding-top:8px;}
  .trust-item{min-height:98px;}
  .trust-item:nth-child(2n)::after{display:none;}
  .trust-item:nth-child(5){grid-column:1/-1;border-top:1px solid var(--line);}
  .trust-item:nth-child(5)::after{display:none;}
}
@media (max-width:520px){
  .feature-item .ic{width:50px;height:50px;}
  .feature-item h4{font-size:.86rem;}
  .how-works-shell .section-head h2{font-size:1.55rem;}
  .price-flag{width:64%;font-size:.72rem;}
  .price-amount{font-size:2.35rem;}
  .trust-shell .section-head h2{font-size:1.55rem;}
}


/* =========================================================
   FINAL UI POLISH — POINTS 8–15
   Visual-only refinements. Motion/transition foundation preserved.
========================================================= */
.brand-logo{object-fit:cover;object-position:center;}
.icon-btn{padding:0;line-height:0;}
.icon-btn > svg{display:block;flex:none;}
.section-head.center h1,.section-head.center h2,.section-head.center h3,.section-head.center p{margin-left:auto;margin-right:auto;text-align:center;}
.ornamental-head h1,.ornamental-head h2,.ornamental-head h3{text-wrap:balance;}
main > section + section{margin-top:20px;}
.site-footer{margin-top:30px;}
.find-match-section{padding-top:28px;padding-bottom:28px;}
.find-match-shell{background:var(--paper);border:1px solid var(--line-strong);border-radius:22px;box-shadow:0 14px 34px rgba(58,7,16,.055);padding:34px 38px;}
.find-match-copy{max-width:820px;margin:0 auto;text-align:center;}
.find-match-copy h1{font-size:clamp(2.2rem,1.75rem + 2.4vw,3.3rem);margin-bottom:.34em;}
.find-match-copy .lead{max-width:700px;margin:0 auto;color:var(--charcoal-700);font-size:1.04rem;}
.find-match-actions{justify-content:center;margin-top:20px;}
.find-match-copy .hero-badges{justify-content:center;margin-top:16px;}
.dashboard-dedicated-card{margin-top:20px;}
.dashboard-quick-actions{margin-top:20px;}
.dashboard-addon-label{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:8px;}
.dashboard-addon-badge{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border-radius:999px;background:var(--gold-premium);border:1px solid #C08A22;color:var(--maroon-900);font-weight:800;font-size:.78rem;line-height:1.15;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 5px 14px rgba(126,82,12,.10);}
.dashboard-dedicated-card h3{margin-bottom:6px;}
.dashboard-dedicated-card .text-muted{max-width:58ch;}
.dashboard-addon-points{list-style:none;margin:12px 0 16px;padding:0;display:grid;gap:7px;color:var(--charcoal-700);font-size:.83rem;}
.dashboard-addon-points li{position:relative;padding-left:17px;}
.dashboard-addon-points li::before{content:"✓";position:absolute;left:0;color:var(--gold-700);font-weight:900;}
.site-header a.icon-btn[aria-label="Notifications"]{display:flex;align-items:center;justify-content:center;}
.site-header a.icon-btn[aria-label="Notifications"] svg{width:18px;height:18px;transform:translateY(0);}
@media (max-width:760px){
 .section-head.center,.find-match-copy,.how-works-shell .section-head,.pricing-shell .section-head,.trust-shell .section-head,.success-stories-section .section-head{text-align:center;}
 .find-match-shell{padding:26px 18px;}
 .find-match-copy h1{font-size:clamp(2rem,8vw,2.65rem);}
 .find-match-actions{display:grid;grid-template-columns:1fr;}
 .find-match-actions .btn{width:100%;}
 .find-match-copy .hero-badges{justify-content:center;}
 .dashboard-addon-label{align-items:flex-start;}
 .dashboard-addon-badge{max-width:118px;}
}
@media (max-width:520px){main > section + section{margin-top:16px;}.find-match-shell{border-radius:18px;}.find-match-copy .hero-badges{gap:10px 14px;}}


/* =========================================================
   FINAL POLISH — POINTS 16–20
   Responsive centering, consistent card spacing, global logo
   consistency, premium alerts, footer breathing room and
   professional chat icon treatment. Motion preserved.
========================================================= */

/* Point 19 — shared surface spacing */
main .card + .card:not([class*=" mt-"]){ margin-top:22px; }
main .panel + .panel:not([class*=" mt-"]){ margin-top:22px; }
main > section + section{ margin-top:30px; }
@media (max-width:760px){
  main > section + section{ margin-top:24px; }
  main .card + .card:not([class*=" mt-"]){ margin-top:18px; }
  main .panel + .panel:not([class*=" mt-"]){ margin-top:18px; }
}

/* Point 16 — centered headings and copy should remain visually centered */
.section-head.center,
.section-head.center h1,
.section-head.center h2,
.section-head.center h3,
.section-head.center p,
.success-stories-section .section-head,
.success-stories-section .section-head h2,
.success-stories-section .section-head p{
  text-align:center;
}
.section-head.center h1,
.section-head.center h2,
.section-head.center h3{
  width:100%;
  margin-left:auto;
  margin-right:auto;
  text-wrap:balance;
}
.section-head.center p{
  margin-left:auto;
  margin-right:auto;
  text-wrap:balance;
}
.ornamental-head h2{
  position:relative;
  display:block;
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
  padding:0 68px;
  text-wrap:balance;
}
.ornamental-head h2::before,
.ornamental-head h2::after{
  position:absolute;
  top:.72em;
  width:48px;
  height:1px;
  margin:0;
}
.ornamental-head h2::before{ left:0; }
.ornamental-head h2::after{ right:0; }
@media (max-width:640px){
  .ornamental-head h2{ padding:0 52px; }
  .ornamental-head h2::before,.ornamental-head h2::after{ width:34px; }
}

/* Point 10/16 — clean, symmetrical Secure Chat icon */
.rs-chat-icon path.rs-chat-box{ fill:none; }
.rs-chat-icon circle{ fill:currentColor; stroke:none; }

/* Point 15 — optical centering for notification bell */
.site-header a.icon-btn[aria-label="Notifications"] svg{
  width:18px;
  height:18px;
  display:block;
  margin:auto;
  transform:translateY(1px);
}

/* Point 20 — warm, on-brand information states; no cool blue boxes */
:root{
  --info-bg:#FBF4E7;
  --info-fg:#6F531B;
  --info-ln:#DCC58F;
}
.state-banner.info{
  background:linear-gradient(135deg,#FFF9EF 0%,#FBF1DE 100%);
  border-color:var(--info-ln);
  color:var(--info-fg);
  box-shadow:0 8px 20px rgba(156,118,41,.08), inset 0 1px 0 rgba(255,255,255,.8);
}
.badge-info{
  background:#FBF4E7;
  color:#6F531B;
  border-color:#DCC58F;
}
.privacy-note{
  background:linear-gradient(135deg,#FFF9EF 0%,#FBF1DE 100%);
  border-color:var(--info-ln);
  color:var(--info-fg);
  box-shadow:0 8px 20px rgba(156,118,41,.07);
}

/* Point 11/17/19 — premium breathing room around major footer CTA */
.site-footer{ margin-top:56px; }
.footer-cta{ margin-top:0; }

/* Point 14/19 — dashboard cards use one consistent stack rhythm */
.dashboard-dedicated-card{ margin-top:20px !important; }
.dashboard-quick-actions{ margin-top:20px !important; }
.dash-grid > div{ display:flex; flex-direction:column; gap:20px; }
.dash-grid > div .card{ margin-top:0 !important; }
.dash-grid > div .card.mb-20{ margin-bottom:0 !important; }

/* Point 13 — dashboard Dedicated Profile Reel card */
.dashboard-addon-label{
  display:block;
  margin-bottom:8px;
}
.dashboard-addon-badge{
  display:inline-flex;
  min-height:0;
  margin-top:8px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--gold-premium);
  border:1px solid #C08A22;
  color:var(--maroon-900);
  font-weight:800;
  font-size:.78rem;
  line-height:1.15;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 4px 12px rgba(126,82,12,.08);
}
.dashboard-dedicated-card h3{ margin-bottom:7px; }

/* Point 10 — refined Step 6 visual balance */
.how-works-shell .step-icon svg.rs-chat-icon{ width:34px; height:34px; }
@media (max-width:760px){
  .how-works-shell .step-icon svg.rs-chat-icon{ width:30px; height:30px; }
}

/* Point 18 — guest sidebar gets two clear actions */
.drawer-foot .guest-actions{ display:flex; flex-direction:column; gap:10px; }
.drawer-foot .guest-actions .btn{ width:100%; }

.auth-logo-mark{ width:48px!important;height:48px!important; }


/* =========================================================
   FINAL POLISH — POINTS 21–23
   Login card cleanup, stronger dashboard card rhythm and
   theme-aligned high-visibility information notices.
========================================================= */

/* Point 21 — login card: brand logo belongs to the global header,
   not inside the authentication form card. */
.auth-card > .center.mb-16 .auth-logo-mark{ display:none; }

/* Point 22 — dashboard card rhythm: make stacked dashboard modules
   visibly separated and give the Received Interests module its own
   breathable internal rhythm. */
#dashboardRoot{ margin-bottom:28px !important; }
.dash-grid{ gap:26px; }
.dash-grid > div{ gap:26px; }
.received-interests-card{ padding:24px; }
.received-interests-card .list-row{ padding:15px 0; }
@media (max-width:760px){
  #dashboardRoot{ margin-bottom:24px !important; }
  .dash-grid{ gap:22px; }
  .dash-grid > div{ gap:22px; }
  .received-interests-card{ padding:22px; }
  .received-interests-card .list-row{ padding:14px 0; }
}

/* Point 23 — informational notices: clearly identifiable without
   breaking the warm cream / deep maroon / premium-gold system. */
.state-banner.info{
  position:relative;
  background:linear-gradient(135deg,#FFF8E9 0%,#F9E9C9 100%);
  border:1px solid #C59A45;
  border-left:4px solid var(--maroon-800);
  color:#5D1A22;
  box-shadow:0 10px 24px rgba(78,24,31,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.state-banner.info svg{
  flex:none;
  width:30px !important;
  height:30px !important;
  padding:6px;
  border-radius:50%;
  color:var(--maroon-800);
  background:rgba(255,255,255,.72);
  border:1px solid rgba(197,154,69,.55);
  box-sizing:border-box;
  margin-top:1px;
}
.state-banner.info span{ font-weight:600; color:#5D1A22; }



/* =========================================================
   ADMIN RESPONSIVE + SIDEBAR FIX — POINT 27
   Mobile viewport fit, functional drawer on mobile, and
   collapsible sidebar on desktop.
========================================================= */
.admin-shell .card,
.admin-shell .panel,
.admin-shell .admin-stat-grid > *{ min-width:0; }
.admin-shell .dash-grid{ width:100%; min-width:0; }
@media (max-width:979px){
  .admin-shell .admin-sidebar{
    width:min(286px, 84vw);
    max-width:84vw;
    box-shadow:10px 0 30px rgba(36,31,27,.16);
  }
  .admin-shell .admin-sidebar.open{ transform:translateX(0); }
  .admin-sidebar .brand{ flex:none; }
  .admin-nav{ min-width:0; overflow:auto; }
  .admin-nav a{ min-height:44px; }
  .admin-shell .dash-grid{ grid-template-columns:1fr; }
}
@media (min-width:980px){
  .admin-shell.admin-sidebar-collapsed .admin-main{ width:100%; }
  .admin-shell.admin-sidebar-collapsed .admin-sidebar{
    border-right:0;
  }
}
@media (max-width:420px){
  .admin-content{ padding-left:14px; padding-right:14px; }
  .admin-stat-grid{ gap:12px; }
}


/* =========================================================
   FINAL RESPONSIVE NAV + PAGE ALIGNMENT — POINTS 25–26
========================================================= */
.chat-page .back-row,
.chat-page > .container.section-tight{
  width:100%;
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
  padding-left:clamp(18px,var(--gutter),40px);
  padding-right:clamp(18px,var(--gutter),40px);
}
.chat-page .chat-shell{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
  width:calc(100% - 36px);
}
@media (min-width:780px){
  .chat-page .chat-shell{ width:calc(100% - 80px); }
}
@media (max-width:760px){
  .chat-page .back-row{ padding-top:14px; }
  .chat-page .section-head{ padding-top:2px; }
  .chat-page .state-banner.info{ margin-top:6px; }
}

/* =========================================================
   SECURE CHAT — FIXED APP LAYOUT / SCROLL-ONLY MESSAGES
   POINT 38
   On mobile, the outer chat page stays fixed while only the
   conversation viewport scrolls. The composer remains anchored
   above the global user bottom navigation.
========================================================= */
@media (max-width:819px){
  .chat-page{
    display:flex;
    flex-direction:column;
    min-height:0;
    height:calc(100dvh - var(--header-h) - 84px);
    max-height:calc(100dvh - var(--header-h) - 84px);
    overflow:hidden;
    padding-bottom:0 !important;
  }
  .chat-page .back-row,
  .chat-page > .container.section-tight{
    flex:none;
  }
  .chat-page .chat-shell{
    flex:1 1 auto;
    min-height:0;
    height:auto;
    max-height:none;
    margin-bottom:0;
    overflow:hidden;
    display:flex;
  }
  .chat-page .chat-list-pane,
  .chat-page .chat-thread-pane{
    min-height:0;
  }
  .chat-page .chat-thread-pane{
    height:100%;
    overflow:hidden;
  }
  .chat-page .chat-head,
  .chat-page .chat-composer{
    flex:none;
  }
  .chat-page .chat-messages{
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .chat-page .chat-composer{
    position:relative;
    z-index:3;
  }
}

.user-bottom-nav,
.admin-bottom-nav{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:180;
  display:none;
  background:rgba(255,252,246,.96);
  backdrop-filter:blur(12px);
  border-top:1px solid var(--line-strong);
  box-shadow:0 -8px 26px rgba(58,7,16,.08);
  padding:6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
}
.user-bottom-nav{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.admin-bottom-nav{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.user-bottom-nav a,
.admin-bottom-nav a,
.admin-bottom-nav button{
  min-width:0;
  min-height:52px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  position:relative;
  border:0;
  background:none;
  text-decoration:none;
  color:var(--charcoal-600);
  font:600 .64rem/1.1 var(--font-body);
  cursor:pointer;
  padding:4px 2px;
}
.user-bottom-nav svg,
.admin-bottom-nav svg{ width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.user-bottom-nav a.active,
.admin-bottom-nav a.active,
.admin-bottom-nav button.active{ color:var(--maroon-700); }
.user-bottom-nav a:active,
.admin-bottom-nav a:active,
.admin-bottom-nav button:active{ transform:translateY(1px); }
.bottom-nav-badge{
  position:absolute;
  top:2px;
  right:18%;
  min-width:16px;height:16px;padding:0 4px;
  display:flex;align-items:center;justify-content:center;
  border-radius:999px;
  background:var(--maroon-700);
  color:#fff;
  border:2px solid var(--paper);
  font:700 .58rem/1 var(--font-body);
}
.has-user-bottom-nav main{ padding-bottom:78px; }
.has-user-bottom-nav .site-footer{ padding-bottom:78px; }
.has-admin-bottom-nav .admin-content{ padding-bottom:102px; }
@media (max-width:979px){
  .has-user-bottom-nav .user-bottom-nav{ display:grid; }
  .has-admin-bottom-nav .admin-bottom-nav{ display:grid; }
}
@media (min-width:980px){
  .user-bottom-nav,.admin-bottom-nav{ display:none !important; }
}


/* =========================================================
   FINAL APP NAVIGATION + MOBILE FIT — POINTS 28–32
========================================================= */
html, body{ max-width:100%; overflow-x:hidden; }
img, video, canvas{ max-width:100%; }

.auth-app-page .site-footer{ display:none; }
.auth-app-page main{ padding-bottom:82px; }
.auth-app-page .site-footer{ padding-bottom:0; }

.footer-text-button{
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  font-size:.87rem;
  padding:0;
  cursor:pointer;
  text-align:left;
  opacity:.86;
}
.footer-text-button:hover{ opacity:1; text-decoration:underline; }

.user-bottom-nav,
.admin-bottom-nav{ box-sizing:border-box; width:100%; max-width:100vw; }
.user-bottom-nav a,
.admin-bottom-nav a,
.admin-bottom-nav button{ box-sizing:border-box; }

/* Keep authenticated content safely above the fixed bars on every app page. */
.has-user-bottom-nav main{ padding-bottom:84px !important; }
.has-admin-bottom-nav .admin-content{ padding-bottom:108px !important; }

@media (max-width:979px){
  .user-bottom-nav,
  .admin-bottom-nav{ min-height:64px; }
  .user-bottom-nav a,
  .admin-bottom-nav a,
  .admin-bottom-nav button{ min-height:54px; }
  .user-bottom-nav svg,
  .admin-bottom-nav svg{ width:18px; height:18px; }
}

@media (max-width:420px){
  .user-bottom-nav,
  .admin-bottom-nav{
    padding-left:max(6px, env(safe-area-inset-left));
    padding-right:max(6px, env(safe-area-inset-right));
  }
  .user-bottom-nav a,
  .admin-bottom-nav a,
  .admin-bottom-nav button{ font-size:.62rem; padding-left:1px; padding-right:1px; }
  .user-bottom-nav .bottom-nav-badge{ right:14%; }
}

/* Preserve a little more breathing room on small screens without creating overflow. */
@media (max-width:760px){
  .container{ width:100%; box-sizing:border-box; }
  .auth-app-page .container{ max-width:100%; }
  .auth-app-page .card,
  .auth-app-page .panel,
  .auth-app-page .section-tight > .container > .card{ max-width:100%; box-sizing:border-box; }
  .chat-page .chat-shell{ width:calc(100% - 32px); max-width:1180px; box-sizing:border-box; }
}


/* POINT 39 — persistent drawer logout */
.drawer nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.drawer-foot{flex:0 0 auto;margin-top:16px;position:sticky;bottom:0;background:var(--ivory);padding-top:12px;padding-bottom:max(2px,env(safe-area-inset-bottom));z-index:2;}
/* POINT 40 — redundant homepage trust grid removed */
.home-page .feature-strip-section{display:none !important;}
/* POINTS 41–43 legacy block removed; final chat behavior is defined below. */

/* POINT 48 — compact homepage section rhythm; internal card padding/typography unchanged */
.home-page main > section + section{ margin-top:18px !important; }
@media (max-width:760px){.home-page main > section + section{ margin-top:14px !important; }}

/* POINTS 44–47 — Secure Chat full-page app viewport + keyboard-safe composer */
.chat-entry-notice{position:fixed;top:calc(var(--header-h) + 10px);left:50%;transform:translate(-50%,-12px);z-index:260;max-width:min(92vw,520px);padding:11px 16px;border:1px solid var(--gold-300);border-left:3px solid var(--maroon-700);border-radius:14px;background:rgba(255,248,232,.97);box-shadow:0 10px 30px rgba(58,7,16,.16);color:var(--maroon-900);font:600 .82rem/1.45 var(--font-body);opacity:0;visibility:hidden;transition:opacity .22s ease,transform .22s ease;backdrop-filter:blur(10px);}
.chat-entry-notice.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0);}

@media (max-width:819px){
  html.chat-lock,html.chat-lock body{overflow:hidden!important;height:100dvh!important;}
  body.chat-thread-active-page{overflow:hidden!important;height:100dvh!important;min-height:100dvh!important;overscroll-behavior:none;}

  /* Fixed app viewport: header remains outside; this shell owns the visible chat space. */
  .chat-thread-active-page .chat-page{
    position:fixed!important;left:0!important;right:0!important;top:var(--header-h)!important;bottom:0!important;
    height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;
    overflow:hidden!important;z-index:20;display:flex!important;flex-direction:column!important;
  }
  .chat-thread-active-page .chat-page .back-row{
    flex:0 0 44px;padding:10px 16px!important;height:44px;box-sizing:border-box;
  }
  .chat-thread-active-page .chat-page .chat-shell{
    flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;
    margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
  }
  .chat-thread-active-page .chat-page .chat-thread-pane{
    display:flex!important;position:relative!important;flex:1 1 auto!important;height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  .chat-thread-active-page .chat-list-pane{display:none!important;}
  .chat-thread-active-page .chat-head{flex:0 0 auto!important;padding:12px 16px!important;min-height:84px;}
  .chat-thread-active-page .chat-messages{
    flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;padding:18px 16px 92px!important;scrollbar-gutter:stable;
  }
  .chat-thread-active-page .chat-composer{
    position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:30!important;flex:none!important;
    margin:0!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;
    background:rgba(255,252,246,.99)!important;border-top:1px solid var(--line-strong)!important;
    box-shadow:0 -8px 26px rgba(58,7,16,.08)!important;
  }
  .chat-thread-active-page .chat-composer input{min-width:0;}

  /* Keyboard open: browser dynamic viewport becomes the chat viewport; bottom nav is temporarily hidden. */
  .chat-keyboard-open .user-bottom-nav{
    opacity:0!important;pointer-events:none!important;transform:translateY(110%)!important;
    transition:opacity var(--dur-fast) var(--ease),transform var(--dur-med) var(--ease);
  }
  .chat-keyboard-open .chat-page{bottom:0!important;height:auto!important;}
  .chat-keyboard-open .chat-messages{padding-bottom:92px!important;}
}

@media (min-width:820px){
  .chat-thread-active-page .chat-page .chat-shell{width:100%;max-width:none;margin:0;border-left:0;border-right:0;border-radius:0;}
}

/* Functional profile-photo viewer; preserves the frozen visual language. */
.photo-view-trigger{padding:0;cursor:pointer;appearance:none;-webkit-appearance:none;background:transparent;}
.photo-view-trigger:focus-visible{outline:none;box-shadow:var(--ring-gold);}
.photo-viewer-shell{position:relative;width:min(92vw,900px);height:min(88vh,900px);display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(20,12,10,.92);border:1px solid rgba(228,200,138,.45);border-radius:18px;box-shadow:0 22px 60px rgba(0,0,0,.35);}
.photo-viewer-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:12px;display:block;}
.photo-viewer-close{color:#fff;background:rgba(0,0,0,.28);z-index:2;}
.photo-viewer-close:hover{background:rgba(255,255,255,.14);color:#fff;}
@media(max-width:639px){.photo-viewer-shell{width:100vw;height:100vh;border:none;border-radius:0;padding:22px 14px;background:rgba(20,12,10,.96);}.photo-viewer-image{max-height:90vh;}}
