/* ============================================================================
   CLICK RISHTA — DESIGN SYSTEM
   clickrishta.css · v1.0

   Single source of truth for tokens and shared components across every page.
   Link it before any page-specific <style> block:

       <link rel="stylesheet" href="clickrishta.css">

   Page-specific layout (hero compositions, one-off grids) stays in the page.
   Anything used on two or more pages belongs here.

   CONTENTS
     1.  Tokens — light
     2.  Tokens — dark
     3.  Reset & base
     4.  Layout
     5.  Typography helpers
     6.  Buttons
     7.  Forms
     8.  Cards & surfaces
     9.  Avatars & media
     10. Badges, chips, tags
     11. Navigation
     12. Feedback — toast, empty, skeleton, alerts
     13. Motion
     14. Utilities
   ============================================================================ */


/* ============================================================================
   1. TOKENS — LIGHT
   Brand values are fixed by the brief. Everything else derives from them.
   ============================================================================ */
:root{
  /* Brand */
  --primary:#C2185B;
  --secondary:#F8BBD0;
  --accent:#E91E63;

  /* Teal — sampled from the logo. Used for secondary emphasis and the
     wordmark's "Click". Deliberately not used for CTAs: one action colour. */
  --teal:#054A4D;
  --teal-soft:#0B6B6F;

  /* Semantic */
  --success:#16A34A;
  --warning:#F59E0B;
  --error:#DC2626;
  --info:#0EA5E9;

  /* Surfaces */
  --bg:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#FDF4F7;
  --surface-3:#FAFAFB;
  --tint:#FFF5F8;

  /* Borders */
  --line:#EDE7EA;
  --line-strong:#DCD3D8;

  /* Ink */
  --text:#1F2937;
  --text-2:#5B6472;
  --text-3:#8A93A1;
  --on-primary:#FFFFFF;

  /* Effects */
  --glass:rgba(255,255,255,.78);
  --glass-line:rgba(194,24,91,.10);
  --shadow-sm:0 1px 2px rgba(31,41,55,.05), 0 1px 3px rgba(31,41,55,.06);
  --shadow-md:0 4px 12px rgba(31,41,55,.06), 0 12px 28px rgba(31,41,55,.07);
  --shadow-lg:0 8px 24px rgba(194,24,91,.08), 0 32px 64px rgba(31,41,55,.10);
  --glow:0 10px 26px rgba(194,24,91,.26);

  /* Radii */
  --r-sm:10px; --r-md:14px; --r-lg:22px; --r-xl:30px; --r-full:999px;

  /* Type scale — fluid, no media queries needed */
  --display:clamp(2.6rem,1.4rem + 4.2vw,4.6rem);
  --h1:clamp(2.1rem,1.4rem + 2.6vw,3.3rem);
  --h2:clamp(1.6rem,1.2rem + 1.5vw,2.35rem);
  --h3:1.18rem;
  --body:1rem;
  --small:.875rem;
  --micro:.75rem;

  /* Rhythm */
  --gutter:clamp(20px,5vw,48px);
  --section:clamp(72px,9vw,128px);
  --pad:clamp(18px,2.4vw,34px);
  --max:1200px;

  /* App shell */
  --side:250px;
  --tab-h:0px;   /* raised by .has-tabs on small screens */
  --cta-h:0px;   /* raised by .has-cta on small screens  */

  /* Fonts */
  --font-display:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}


/* ============================================================================
   2. TOKENS — DARK
   Applied via <html data-theme="dark">. Only surfaces and ink change;
   brand hues stay constant so the identity holds across modes.
   ============================================================================ */
[data-theme="dark"]{
  --bg:#0F172A;
  --surface:#161F35;
  --surface-2:#1C2740;
  --surface-3:#131C30;
  --tint:#1A1330;
  --line:#26314A;
  --line-strong:#33405C;
  --text:#EEF2F8;
  --text-2:#A3AEC2;
  --text-3:#78849A;
  --secondary:#7A3355;
  --teal:#4FD1C5;
  --teal-soft:#2C9C97;
  --glass:rgba(22,31,53,.78);
  --glass-line:rgba(233,30,99,.18);
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);
  --shadow-md:0 4px 14px rgba(0,0,0,.35), 0 16px 32px rgba(0,0,0,.30);
  --shadow-lg:0 12px 32px rgba(0,0,0,.45), 0 40px 72px rgba(0,0,0,.40);
  --glow:0 10px 30px rgba(233,30,99,.30);
}


/* ============================================================================
   3. RESET & BASE
   ============================================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:var(--body);
  line-height:1.62;
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(var(--tab-h) + var(--cta-h));
  transition:background .35s ease, color .35s ease;
}
body.locked{overflow:hidden}

h1,h2,h3,h4,h5,legend,.font-display{
  font-family:var(--font-display);
  line-height:1.16;
  letter-spacing:-.028em;
  margin:0;
}
p{margin:0}
img,svg,video{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; cursor:pointer; border:0; background:none; color:inherit}
:focus-visible{outline:3px solid var(--accent); outline-offset:3px; border-radius:6px}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}


/* ============================================================================
   4. LAYOUT
   ============================================================================ */
.wrap{max-width:var(--max); margin-inline:auto; padding-inline:var(--gutter)}
.sec{padding-block:var(--section)}
.sec-alt{background:var(--surface-3)}
.stack{display:grid; gap:clamp(14px,1.8vw,22px)}

/* App shell — sidebar + main. Used on dashboard, search, messages, admin. */
.app{display:grid; grid-template-columns:var(--side) minmax(0,1fr); min-height:100vh}
.app-main{padding:var(--pad); max-width:1180px; width:100%}
@media(max-width:960px){
  .app{grid-template-columns:1fr}
  .app-side{display:none}
}

/* Two-column content + rail */
.cols{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(16px,2vw,26px); align-items:start}
@media(max-width:1140px){ .cols{grid-template-columns:1fr} }

.split{display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,5vw,72px); align-items:center}
@media(max-width:880px){ .split{grid-template-columns:1fr} }

.row{display:grid; grid-template-columns:1fr 1fr; gap:16px}
@media(max-width:560px){ .row{grid-template-columns:1fr} }


/* ============================================================================
   5. TYPOGRAPHY HELPERS
   ============================================================================ */
.eyebrow{
  font-size:var(--micro); font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--primary); display:flex; align-items:center; gap:10px; margin-bottom:16px;
}
.eyebrow::before{content:""; width:24px; height:2px; background:var(--primary); border-radius:2px}

.lede{color:var(--text-2); font-size:1.05rem; max-width:56ch}
.muted{color:var(--text-2)}
.faint{color:var(--text-3); font-size:var(--micro)}

.sec-head{max-width:640px; margin-bottom:clamp(36px,4vw,56px)}
.sec-head h2{font-size:var(--h2); font-weight:600; margin-bottom:14px}

/* Gradient emphasis for hero headlines */
.em{
  background:linear-gradient(96deg,var(--accent),var(--primary) 62%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}


/* ============================================================================
   6. BUTTONS
   ============================================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 26px; border-radius:var(--r-full);
  font-weight:600; font-size:.94rem; white-space:nowrap;
  transition:transform .18s cubic-bezier(.34,1.4,.64,1),
             box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn-primary{background:var(--primary); color:var(--on-primary); box-shadow:var(--glow)}
.btn-primary:hover:not([disabled]){background:var(--accent); transform:translateY(-2px); box-shadow:0 16px 40px rgba(233,30,99,.36)}
.btn-primary[disabled]{opacity:.55; cursor:not-allowed; box-shadow:none}

.btn-ghost{border:1.5px solid var(--line-strong); color:var(--text); background:var(--surface)}
.btn-ghost:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-2px)}

.btn-ok{background:var(--success); color:#fff}
.btn-ok:hover{filter:brightness(1.08)}
.btn-no{background:var(--error); color:#fff}
.btn-no:hover{filter:brightness(1.08)}
.btn-quiet{color:var(--text-3)}
.btn-quiet:hover{color:var(--error)}

/* Locked — an action that exists but isn't available yet. Never hide it;
   showing the reason teaches the model and sells the upgrade. */
.btn-locked{border:1.5px dashed var(--line-strong); color:var(--text-3); background:var(--surface)}
.btn-locked:hover{border-color:var(--primary); color:var(--primary)}

.btn-sm{padding:10px 20px; font-size:.875rem}
.btn-lg{padding:16px 30px; font-size:1rem}
.btn-block{width:100%}

.btn.loading{pointer-events:none; opacity:.85}
.spin{
  width:15px; height:15px; border-radius:50%;
  border:2px solid rgba(255,255,255,.35); border-top-color:#fff;
  animation:cr-spin .7s linear infinite;
}
@keyframes cr-spin{to{transform:rotate(360deg)}}

/* Icon button */
.icon-btn{
  width:40px; height:40px; border-radius:var(--r-full); display:grid; place-items:center;
  border:1px solid var(--line); color:var(--text-2); background:var(--surface); flex:none;
  transition:border-color .18s, color .18s, transform .18s;
}
.icon-btn:hover{border-color:var(--primary); color:var(--primary)}
.icon-btn.warn:hover{border-color:var(--error); color:var(--error)}
.icon-btn-sm{width:36px; height:36px}


/* ============================================================================
   7. FORMS
   ============================================================================ */
fieldset{border:0; padding:0; margin:0 0 24px}
legend{font-size:.9rem; font-weight:600; margin-bottom:11px; padding:0}

.field{margin-bottom:20px}
.field > label{display:block; font-size:.89rem; font-weight:600; margin-bottom:8px}
.hint{font-size:.78rem; color:var(--text-3); margin-top:7px}

.control{
  width:100%; padding:14px 16px; border-radius:var(--r-md);
  font:inherit; font-size:1rem;
  background:var(--surface); color:var(--text);
  border:1.5px solid var(--line-strong);
  transition:border-color .18s, box-shadow .18s;
}
.control:hover{border-color:var(--text-3)}
.control:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(194,24,91,.12)}
.control.bad{border-color:var(--error); box-shadow:0 0 0 4px rgba(220,38,38,.10)}

select.control{
  cursor:pointer; appearance:none; padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A93A1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center;
}
textarea.control{resize:none; line-height:1.55}

/* Password reveal */
.pw-wrap{position:relative}
.pw-wrap .control{padding-right:48px}
.pw-toggle{position:absolute; right:12px; top:50%; transform:translateY(-50%); padding:6px; color:var(--text-3)}
.pw-toggle:hover{color:var(--primary)}

/* Inline field error */
.err-line{display:none; align-items:center; gap:7px; font-size:.82rem; color:var(--error); margin-top:8px; font-weight:500}
.err-line.show{display:flex}

/* Choice tiles — larger tap targets than radios, better on mobile */
.tiles{display:grid; grid-template-columns:1fr 1fr; gap:11px}
.tiles-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:560px){ .tiles-3{grid-template-columns:1fr 1fr} }
.tile{position:relative}
.tile input{position:absolute; opacity:0; width:0; height:0}
.tile span{
  display:flex; align-items:center; justify-content:center; gap:9px; text-align:center;
  padding:16px 14px; border-radius:var(--r-md); border:1.5px solid var(--line-strong);
  font-weight:500; font-size:.95rem; cursor:pointer; background:var(--surface);
  transition:border-color .18s, background .18s, color .18s, transform .18s;
}
.tile span:hover{border-color:var(--primary); transform:translateY(-2px)}
.tile input:checked + span{border-color:var(--primary); background:var(--tint); color:var(--primary); font-weight:600}
.tile input:focus-visible + span{outline:3px solid var(--accent); outline-offset:3px}

/* Pill options — compact multi-select for filters */
.opts{display:flex; flex-wrap:wrap; gap:7px}
.opt{position:relative}
.opt input{position:absolute; opacity:0; width:0; height:0}
.opt span{
  display:inline-flex; padding:8px 14px; border-radius:var(--r-full);
  border:1.5px solid var(--line-strong); font-size:var(--small); font-weight:500;
  cursor:pointer; transition:all .16s;
}
.opt span:hover{border-color:var(--primary)}
.opt input:checked + span{border-color:var(--primary); background:var(--tint); color:var(--primary); font-weight:600}
.opt input:focus-visible + span{outline:3px solid var(--accent); outline-offset:3px}

/* Checkbox */
.check{display:flex; align-items:center; gap:9px; font-size:var(--small); color:var(--text-2); cursor:pointer}
.check input{position:absolute; opacity:0; width:0; height:0}
.check .box{
  width:19px; height:19px; border-radius:6px; border:1.5px solid var(--line-strong); flex:none;
  display:grid; place-items:center; color:#fff; transition:background .16s, border-color .16s;
}
.check input:checked + .box{background:var(--primary); border-color:var(--primary)}
.check input:focus-visible + .box{outline:3px solid var(--accent); outline-offset:3px}
.check .box svg{opacity:0; transition:opacity .16s}
.check input:checked + .box svg{opacity:1}

/* Switch */
.sw{
  width:44px; height:25px; border-radius:var(--r-full); background:var(--line-strong);
  position:relative; flex:none; transition:background .2s; cursor:pointer;
}
.sw::after{
  content:""; position:absolute; top:3px; left:3px; width:19px; height:19px;
  border-radius:var(--r-full); background:#fff; box-shadow:var(--shadow-sm);
  transition:transform .22s cubic-bezier(.34,1.4,.64,1);
}
.sw[aria-checked="true"]{background:var(--primary)}
.sw[aria-checked="true"]::after{transform:translateX(19px)}

/* OTP entry */
.otp{display:grid; grid-template-columns:repeat(6,1fr); gap:10px; max-width:340px}
.otp input{
  width:100%; aspect-ratio:1/1.15; text-align:center;
  font-family:var(--font-display); font-weight:600; font-size:1.35rem;
  border-radius:var(--r-md); border:1.5px solid var(--line-strong);
  background:var(--surface); color:var(--text);
  transition:border-color .18s, box-shadow .18s;
}
.otp input:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(194,24,91,.12)}
.otp.bad input{border-color:var(--error)}

.linkbtn{color:var(--primary); font-weight:600; text-decoration:underline; text-underline-offset:3px}
.linkbtn[disabled]{color:var(--text-3); text-decoration:none; cursor:default}


/* ============================================================================
   8. CARDS & SURFACES
   ============================================================================ */
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-xl); padding:clamp(18px,2vw,26px);
}
.card-lift{transition:transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s}
.card-lift:hover{transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--secondary)}
.card-hd{display:flex; align-items:center; gap:12px; margin-bottom:18px}
.card-hd h2{font-size:1.05rem; font-weight:600}
.card-hd .more{margin-left:auto; font-size:var(--small); color:var(--primary); font-weight:600}

.panel{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-xl); padding:clamp(24px,3vw,34px); box-shadow:var(--shadow-md);
}

/* Definition list — used for every profile detail block */
.dl{display:grid; grid-template-columns:auto 1fr; gap:11px 22px; font-size:.92rem}
.dl dt{color:var(--text-3); white-space:nowrap}
.dl dd{margin:0; font-weight:500}
@media(max-width:480px){
  .dl{grid-template-columns:1fr; gap:2px 0}
  .dl dd{margin-bottom:12px}
}

/* Upgrade block */
.upsell{
  background:linear-gradient(150deg,var(--primary),var(--accent) 82%); color:#fff;
  border-radius:var(--r-xl); padding:24px; box-shadow:var(--glow);
}
.upsell h3{font-size:1.02rem; font-weight:600; margin-bottom:7px}
.upsell p{font-size:var(--small); opacity:.93; margin-bottom:16px}
.upsell .btn{background:#fff; color:var(--primary); width:100%; box-shadow:none}
.upsell .btn:hover{background:#fff}

/* Paywall — blurred content with an overlay offer */
.paywall{position:relative; border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line)}
.paywall-blur{display:flex; gap:12px; padding:18px; filter:blur(6px); pointer-events:none; user-select:none}
.paywall-over{
  position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:10px;
  text-align:center; padding:20px; background:color-mix(in srgb, var(--surface) 72%, transparent);
}


/* ============================================================================
   9. AVATARS & MEDIA
   Photos are placeholder gradients until real images exist. The lock overlay
   is production behaviour, not a placeholder: it renders whenever
   photos.visibility = 'on_request'.
   ============================================================================ */
.av{
  border-radius:var(--r-full); flex:none; display:grid; place-items:center;
  color:#fff; font-family:var(--font-display); font-weight:600;
  overflow:hidden; position:relative;
}
.av-28{width:28px;height:28px;font-size:.7rem}
.av-32{width:32px;height:32px;font-size:.78rem}
.av-40{width:40px;height:40px;font-size:.88rem}
.av-44{width:44px;height:44px;font-size:.95rem}
.av-46{width:46px;height:46px;font-size:.95rem}

/* Gradient set — assign by index so repeated lists stay visually varied */
.g1{background:linear-gradient(150deg,#F8BBD0,#E91E63)}
.g2{background:linear-gradient(150deg,#C2185B,#7C1D45)}
.g3{background:linear-gradient(150deg,#F59E0B,#E91E63)}
.g4{background:linear-gradient(150deg,#818CF8,#C2185B)}
.g5{background:linear-gradient(150deg,#34D399,#0EA5E9)}
.g6{background:linear-gradient(150deg,#FB7185,#7C1D45)}

/* Privacy veil */
.lock{
  position:absolute; inset:0; display:grid; place-items:center; gap:8px; align-content:center;
  background:rgba(255,255,255,.16);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  color:#fff; text-align:center; padding:14px;
}
.lock span{font-size:var(--small); font-weight:500; max-width:22ch; line-height:1.4; text-shadow:0 1px 6px rgba(0,0,0,.28)}

/* Presence */
.presence{
  position:absolute; bottom:0; right:0; width:11px; height:11px; border-radius:var(--r-full);
  background:#4ADE80; border:2px solid var(--surface);
}
.online-pill{
  display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:var(--r-full);
  background:rgba(15,23,42,.6); color:#fff; font-size:.62rem; font-weight:600;
}
.online-pill i{width:6px; height:6px; border-radius:var(--r-full); background:#4ADE80}

/* Compatibility ring — set stroke-dashoffset in JS: C - (C * pct) */
.ring{position:relative; flex:none}
.ring svg{transform:rotate(-90deg); width:100%; height:100%}
.ring-track{fill:none; stroke:var(--line)}
.ring-fill{fill:none; stroke:var(--primary); stroke-linecap:round; transition:stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1)}
.ring-val{
  position:absolute; inset:0; display:grid; place-items:center; align-content:center;
  font-family:var(--font-display); font-weight:700; color:var(--primary); line-height:1;
}

/* Factor bars — the compatibility breakdown */
.factor{display:grid; grid-template-columns:1fr auto; gap:6px 14px; align-items:center;
  padding:14px 0; border-bottom:1px solid var(--line)}
.factor:last-of-type{border-bottom:0}
.factor-name{font-weight:500; font-size:.94rem}
.factor-val{font-family:var(--font-display); font-weight:600; font-size:var(--small); color:var(--primary)}
.factor-bar{grid-column:1/-1; height:5px; border-radius:var(--r-full); background:var(--line); overflow:hidden}
.factor-bar i{
  display:block; height:100%; border-radius:var(--r-full); width:0;
  background:linear-gradient(90deg,var(--accent),var(--primary));
  transition:width 1.1s cubic-bezier(.22,1,.36,1);
}


/* ============================================================================
   10. BADGES, CHIPS, TAGS
   ============================================================================ */
.badge{
  min-width:21px; height:21px; padding:0 6px; border-radius:var(--r-full);
  background:var(--primary); color:#fff; font-size:.7rem; font-weight:700;
  display:grid; place-items:center; font-family:var(--font-display);
}
.badge-hot{background:var(--error)}

.chip{
  display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:var(--r-full);
  background:var(--tint); border:1px solid var(--glass-line); color:var(--primary);
  font-size:var(--small); font-weight:500;
}
.chip-clear{background:none; border:1px dashed var(--line-strong); color:var(--text-3)}

.tag{
  font-size:var(--micro); padding:4px 10px; border-radius:var(--r-full);
  background:var(--surface-3); color:var(--text-2); border:1px solid var(--line);
}

.pill{font-size:.66rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding:3px 9px; border-radius:var(--r-full)}
.pill-done{background:color-mix(in srgb, var(--success) 15%, transparent); color:var(--success)}
.pill-todo{background:var(--surface-3); color:var(--text-3); border:1px solid var(--line)}
.pill-high{background:color-mix(in srgb, var(--error) 14%, transparent); color:var(--error)}
.pill-med{background:color-mix(in srgb, var(--warning) 16%, transparent); color:var(--warning)}

/* Verified marks */
.vchip{
  display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:var(--r-full);
  background:color-mix(in srgb, var(--success) 14%, transparent); color:var(--success);
  font-size:var(--micro); font-weight:600;
}
.vdot{
  width:15px; height:15px; border-radius:var(--r-full); background:var(--success);
  display:grid; place-items:center; color:#fff; flex:none;
}
.tick{
  width:20px; height:20px; border-radius:var(--r-full); flex:none; display:grid; place-items:center;
  background:color-mix(in srgb, var(--success) 16%, transparent); color:var(--success);
}


/* ============================================================================
   11. NAVIGATION
   ============================================================================ */

/* Marketing header */
.nav{
  position:sticky; top:0; z-index:60; background:var(--glass);
  backdrop-filter:blur(18px) saturate(1.6); -webkit-backdrop-filter:blur(18px) saturate(1.6);
  border-bottom:1px solid var(--line);
}
.nav-in{display:flex; align-items:center; gap:14px; height:72px}
.nav-links{display:flex; gap:2px; margin-left:18px; flex-wrap:nowrap}
.nav-links a{
  padding:9px 12px; border-radius:var(--r-full); font-size:.875rem; font-weight:500;
  white-space:nowrap; color:var(--text-2); transition:background .18s, color .18s;
}
.nav-links a:hover{background:var(--tint); color:var(--primary)}
.nav-right{margin-left:auto; display:flex; align-items:center; gap:10px}

/* Logo — brand mark image plus an HTML wordmark.
   Keeping the wordmark as text means it stays crisp at any size, remains
   selectable and readable to screen readers, and needs no @2x asset. */
.logo{display:flex; align-items:center; gap:9px; font-family:var(--font-display);
  font-weight:700; font-size:1.16rem; letter-spacing:-.03em; white-space:nowrap}
.logo img{width:44px; height:44px; flex:none; display:block}
.logo .wd-click{color:var(--teal)}
.logo .wd-rishta{color:var(--primary)}
.logo .wd-tld{font-family:var(--font-body); font-weight:600; font-size:.62em;
  color:var(--text-3); vertical-align:super; margin-left:1px}
.logo-sm{font-size:1.06rem}
.logo-sm img{width:38px; height:38px}
/* On the dark admin chrome the teal needs lifting */
[data-theme="dark"] .logo .wd-click{color:var(--teal)}

/* App sidebar */
.app-side{
  position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:8px;
  padding:20px 14px; background:var(--surface); border-right:1px solid var(--line); overflow-y:auto;
}
.snav{display:grid; gap:2px}
.snav a{
  display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:var(--r-md);
  font-size:.92rem; font-weight:500; color:var(--text-2); transition:background .16s, color .16s;
}
.snav a:hover{background:var(--surface-3); color:var(--text)}
.snav a.on{background:var(--tint); color:var(--primary); font-weight:600}
.snav svg{flex:none}
.snav .badge{margin-left:auto}
.side-sep{height:1px; background:var(--line); margin:12px}
.side-me{
  margin-top:auto; display:flex; align-items:center; gap:11px;
  padding:11px 12px; border-radius:var(--r-md); background:var(--surface-3);
}
.side-me b{display:block; font-size:.88rem; font-weight:600; line-height:1.3}
.side-me span{font-size:var(--micro); color:var(--text-3)}

/* Slide-in drawer / sheet */
.scrim{
  position:fixed; inset:0; z-index:80; background:rgba(15,23,42,.5);
  opacity:0; pointer-events:none; transition:opacity .28s ease;
  backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
}
.scrim.open{opacity:1; pointer-events:auto}

.drawer{
  position:fixed; top:0; bottom:0; z-index:90; width:min(340px,86vw);
  background:var(--surface); box-shadow:-16px 0 48px rgba(15,23,42,.18);
  transition:transform .32s cubic-bezier(.22,1,.36,1);
  display:flex; flex-direction:column; overflow-y:auto;
  padding:20px 22px calc(24px + env(safe-area-inset-bottom));
}
.drawer-right{right:0; border-left:1px solid var(--line); transform:translateX(102%)}
.drawer-left{left:0; border-right:1px solid var(--line); transform:translateX(-102%); width:min(380px,90vw); padding:0}
.drawer.open{transform:translateX(0)}
.drawer-top{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:26px}
.drawer nav{display:grid; gap:2px; margin-bottom:26px}
.drawer nav a{
  padding:14px 16px; border-radius:var(--r-md); font-family:var(--font-display);
  font-weight:500; font-size:1.02rem; color:var(--text); transition:background .18s, color .18s;
}
.drawer nav a:hover{background:var(--tint); color:var(--primary)}
.drawer-actions{display:grid; gap:10px; margin-top:auto; padding-top:22px; border-top:1px solid var(--line)}

/* Bottom tab bar */
.tabs{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:40;
  background:var(--glass); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom);
}
.tabs-in{display:grid; grid-template-columns:repeat(5,1fr)}
.tabs a{
  display:grid; justify-items:center; gap:3px; padding:11px 4px 9px;
  font-size:.62rem; font-weight:500; color:var(--text-3); position:relative;
}
.tabs a.on{color:var(--primary)}
@media(max-width:960px){
  .tabs{display:block}
  .has-tabs{--tab-h:68px}
}

/* Sticky mobile CTA */
.mobile-cta{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:70;
  padding:12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  gap:10px; align-items:center; background:var(--glass);
  backdrop-filter:blur(18px) saturate(1.6); -webkit-backdrop-filter:blur(18px) saturate(1.6);
  border-top:1px solid var(--line);
}
.mobile-cta .btn-primary{flex:1}
@media(max-width:760px){
  .mobile-cta{display:flex}
  .has-cta{--cta-h:84px}
}

/* Segmented control */
.segmented{display:flex; gap:4px; padding:4px; border-radius:var(--r-full);
  background:var(--surface-3); border:1px solid var(--line)}
.segmented button{padding:6px 13px; border-radius:var(--r-full); font-size:var(--micro);
  font-weight:600; color:var(--text-2)}
.segmented button.on{background:var(--surface); color:var(--primary); box-shadow:var(--shadow-sm)}


/* ============================================================================
   12. FEEDBACK
   ============================================================================ */

/* Toast */
.toast{
  position:fixed; left:50%; bottom:calc(var(--cta-h) + var(--tab-h) + 22px);
  transform:translate(-50%,14px); z-index:100;
  padding:12px 20px; border-radius:var(--r-full);
  background:var(--text); color:var(--bg);
  font-size:var(--small); font-weight:500; box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none; max-width:calc(100vw - 40px);
  transition:opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
  display:flex; align-items:center; gap:14px;
}
.toast.show{opacity:1; transform:translate(-50%,0); pointer-events:auto}
.toast button{font-weight:700; color:var(--accent); padding:4px 10px;
  border-radius:var(--r-full); background:rgba(255,255,255,.1)}

/* Alerts */
.alert{display:flex; align-items:flex-start; gap:10px; padding:13px 15px;
  border-radius:var(--r-md); font-size:var(--small); color:var(--text-2)}
.alert svg{flex:none; margin-top:2px}
.alert b{display:block; color:var(--text); font-weight:600; margin-bottom:2px}
.alert-error{background:color-mix(in srgb,var(--error) 9%,transparent);
  border:1px solid color-mix(in srgb,var(--error) 34%,transparent)}
.alert-error svg{color:var(--error)}
.alert-warn{background:color-mix(in srgb,var(--warning) 11%,transparent);
  border:1px solid color-mix(in srgb,var(--warning) 38%,transparent)}
.alert-warn svg{color:var(--warning)}
.alert-ok{background:color-mix(in srgb,var(--success) 10%,transparent);
  border:1px solid color-mix(in srgb,var(--success) 34%,transparent)}
.alert-ok svg{color:var(--success)}
.alert-info{background:var(--surface); border:1px solid var(--line)}
.alert-info svg{color:var(--primary)}

/* Empty state — always argue a case and offer a specific next action.
   Never ship a bare "nothing here". */
.empty{text-align:center; padding:40px 20px}
.empty-ico{
  width:58px; height:58px; border-radius:var(--r-full); margin:0 auto 16px;
  display:grid; place-items:center; background:var(--tint); color:var(--primary);
}
.empty h3{font-size:1.04rem; font-weight:600; margin-bottom:8px}
.empty p{font-size:var(--small); color:var(--text-2); max-width:40ch; margin:0 auto 18px}
.empty-alts{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:18px}

/* Skeletons */
.sk{
  border-radius:var(--r-sm);
  background:linear-gradient(90deg,var(--surface-3) 25%,var(--line) 50%,var(--surface-3) 75%);
  background-size:200% 100%; animation:cr-shimmer 1.3s linear infinite;
}
@keyframes cr-shimmer{to{background-position:-200% 0}}
.sk-row{display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line)}
.sk-row:last-child{border-bottom:0}
.sk-circle{width:44px; height:44px; border-radius:var(--r-full); flex:none}
.sk-lines{flex:1; display:grid; gap:7px}
.sk-card{border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden}
.sk-card-body{padding:13px 14px 15px; display:grid; gap:7px}


/* ============================================================================
   13. MOTION
   ============================================================================ */
.reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in{opacity:1; transform:none}

.step-in{animation:cr-step .38s cubic-bezier(.22,1,.36,1)}
@keyframes cr-step{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}

.pop-in{animation:cr-pop .28s cubic-bezier(.22,1,.36,1)}
@keyframes cr-pop{from{opacity:0; transform:translateY(7px)} to{opacity:1; transform:none}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-delay:0s !important;
    transition-duration:.001ms !important;
  }
  html{scroll-behavior:auto}
  .reveal{opacity:1; transform:none}
  .sk{animation:none}
}


/* Hero media — photograph with the verification card overlaid.
   The photo does the emotional work; the card does the product argument. */
.hero-media{position:relative}
.hero-media picture{display:block; border-radius:var(--r-xl); overflow:hidden;
  box-shadow:var(--shadow-lg); background:var(--surface-2)}
.hero-media img{width:100%; height:auto; display:block; aspect-ratio:940/1024; object-fit:cover}
.hero-media .float-card{position:absolute; left:-22px; bottom:26px; width:min(268px,74%); z-index:2}
@media(max-width:940px){
  .hero-media img{aspect-ratio:16/11; object-position:center 22%}
  .hero-media .float-card{position:static; width:100%; margin-top:16px}
}

/* ============================================================================
   14. UTILITIES
   ============================================================================ */
.grow{margin-left:auto}
.center{text-align:center}
.flex{display:flex; align-items:center; gap:10px}
.wrap-flex{display:flex; flex-wrap:wrap; align-items:center; gap:10px}
.mt-0{margin-top:0} .mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:26px}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:26px}
.hide{display:none !important}
@media(max-width:760px){ .hide-mobile{display:none !important} }
@media(min-width:761px){ .hide-desktop{display:none !important} }
