/* =====================================================================
   Saptapadi — design system
   Large, readable type and big tap targets (many users are parents on phones).
   ===================================================================== */
:root {
  --brand: #7b1734;
  --brand-d: #5c0f26;
  --brand-l: #f9ecf0;
  --gold: #f2b632;
  --gold-d: #d99a12;
  --gold-l: #fff6e0;
  --ink: #23161d;
  --ink-2: #4a3a43;
  --muted: #6b5d66;
  --bg: #fbf7f2;
  --card: #ffffff;
  --line: #ece1e4;
  --ok: #157a3a;
  --ok-l: #e5f5eb;
  --bad: #b42318;
  --bad-l: #fdecea;
  --warn: #a95304;
  --warn-l: #fff3e0;
  --blue: #1677c9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 20, 35, .05), 0 6px 20px rgba(60, 20, 35, .07);
  --shadow-lg: 0 14px 40px rgba(60, 20, 35, .16);
  --topbar-h: 68px;
  --bottom-h: 66px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px;
  font-family: 'Noto Sans', 'Noto Sans Kannada', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.lang-kn { font-family: 'Noto Sans Kannada', 'Noto Sans', system-ui, sans-serif; }
body.lang-hi { font-family: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); font-weight: 800; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
small { font-size: .85rem; }
code { background: #f4ecef; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.tiny { max-width: 460px; margin-left: auto; margin-right: auto; }
.tiny-wide { max-width: 580px; }
.section { padding-top: 28px; padding-bottom: 44px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.inline { display: inline; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2.top { align-items: start; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.icon-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.icon-line .ic { width: 17px; height: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 19px; height: 19px; }
.btn-sm { min-height: 38px; padding: 6px 15px; font-size: .92rem; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-gold { background: var(--gold); color: #3b2500 !important; }
.btn-gold:hover { background: var(--gold-d); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-ghost-dark { background: #fff; color: var(--brand); border: 1.5px solid #d9c3ca; }
.btn-ghost-dark:hover { border-color: var(--brand); background: var(--brand-l); }
.btn-ghost-dark.is-on { background: var(--brand-l); border-color: var(--brand); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1db955; }
.linkbtn { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; color: inherit; }

/* ---------- badges / alerts / toasts ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: #efe9ec; color: #4f4249; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }
.badge-gold { background: var(--gold-l); color: #8a5a00; }
.badge-ok { background: var(--ok-l); color: var(--ok); }
.badge-bad { background: var(--bad-l); color: var(--bad); }
.badge-warn { background: var(--warn-l); color: var(--warn); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin: 14px 0; }
.alert .ic { margin-top: 2px; }
.alert-success { background: var(--ok-l); color: #0f5b2b; border: 1px solid #bfe3cd; }
.alert-error { background: var(--bad-l); color: #8b1e14; border: 1px solid #f5c2bc; }
.alert-info { background: var(--warn-l); color: #6b3d00; border: 1px solid #f3d7a9; }
.toast {
  position: fixed; top: calc(var(--topbar-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100% - 24px)); width: max-content;
  padding: 12px 12px 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; font-weight: 600;
  animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s;
}
.toast.hide { opacity: 0; transform: translate(-50%, -10px); }
.toast-success { border-left: 5px solid var(--ok); }
.toast-success > .ic { color: var(--ok); }
.toast-error { border-left: 5px solid var(--bad); }
.toast-error > .ic { color: var(--bad); }
.toast-x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; }
.toast-x:hover { background: #f4eef0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: var(--topbar-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-svg { width: 42px; height: 42px; flex: none; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: 'Noto Serif', 'Noto Sans Kannada', 'Noto Sans Devanagari', serif; font-size: 1.35rem; color: var(--brand); letter-spacing: .01em; }
.lang-kn .brand b, .lang-hi .brand b { font-family: inherit; font-weight: 800; }
.brand small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.mainnav { display: flex; gap: 4px; margin-left: 12px; }
.mainnav a { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.mainnav a:hover { background: #f5eef1; color: var(--brand); }
.mainnav a.on { background: var(--brand-l); color: var(--brand); }
.mainnav .ic { width: 18px; height: 18px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* dropdowns (details/summary) */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-btn { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; }
.dd-btn:hover, .dd[open] > .dd-btn { border-color: #d9c3ca; background: #faf5f7; }
.acct-btn { padding: 4px 10px 4px 4px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f1e8eb; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 6px; z-index: 50; animation: toast-in .15s ease-out;
}
.dd-right { right: 0; }
.dd-menu a, .dd-item-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-item-btn:hover { background: #f6eff2; }
.dd-menu a.on { color: var(--brand); font-weight: 700; }
.dd-menu a .ic:last-child:not(:first-child) { margin-left: auto; }
.dd-menu .ic { color: var(--muted); }
.dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.dd-head small { color: var(--muted); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 52px 0 70px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242,182,50,.35), transparent 60%), linear-gradient(135deg, #5c0f26 0%, #7b1734 55%, #9b2a4b 100%); }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Ccircle cx='45' cy='45' r='20'/%3E%3Cpath d='M45 12 L51 39 L78 45 L51 51 L45 78 L39 51 L12 45 L39 39Z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.hero h1 { color: #fff; font-family: 'Noto Serif', 'Noto Sans Kannada', 'Noto Sans Devanagari', serif; font-size: 2.6rem; }
.lang-kn .hero h1, .lang-hi .hero h1 { font-family: inherit; font-weight: 800; font-size: 2.3rem; }
.hero p { font-size: 1.12rem; opacity: .93; max-width: 580px; }
.kicker { color: #ffd98a; font-weight: 700; font-size: .95rem !important; opacity: 1 !important; margin-bottom: 8px; }
.seven { display: flex; gap: 8px; margin-bottom: 14px; }
.seven i { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); opacity: .35; animation: step 3.5s infinite; }
.seven i:nth-child(2) { animation-delay: .3s; } .seven i:nth-child(3) { animation-delay: .6s; } .seven i:nth-child(4) { animation-delay: .9s; }
.seven i:nth-child(5) { animation-delay: 1.2s; } .seven i:nth-child(6) { animation-delay: 1.5s; } .seven i:nth-child(7) { animation-delay: 1.8s; }
@keyframes step { 0%, 100% { opacity: .35; transform: scale(1); } 30% { opacity: 1; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .seven i { animation: none; opacity: .9; } html { scroll-behavior: auto; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
.hero-trust li { display: flex; align-items: center; gap: 6px; opacity: .95; }
.hero-trust .ic { color: var(--gold); }
.search-box { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.search-box h3 { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.seven-line { text-align: center; color: var(--muted); font-style: italic; margin: 18px auto 0; }

/* segmented control */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f4edf0; border-radius: 999px; padding: 4px; margin: 4px 0 14px; }
.seg.seg3 { grid-template-columns: 1fr 1fr 1fr; }
.seg label { margin: 0; text-align: center; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 9px 6px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(123,23,52,.3); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }

/* ---------- home sections ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 2; }
.stats div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.stats b { display: block; font-size: 1.8rem; color: var(--brand); line-height: 1.2; }
.stats span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.band { background: #f5eaee; }
.sub-h { margin-top: 28px; color: var(--muted); font-size: 1rem; }
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; margin-top: 18px; }
.district { display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; padding: 16px; border-radius: var(--radius);
  text-decoration: none; color: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; background: linear-gradient(135deg, var(--brand), #b23a5b); }
.district:nth-child(3n+2) { background: linear-gradient(135deg, #8a3a10, #c96a2b); }
.district:nth-child(3n) { background: linear-gradient(135deg, #3d2a6b, #7a4fa8); }
.district:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.district b { font-size: 1.18rem; }
.district small { opacity: .88; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.chip-links.left { justify-content: flex-start; }
.chip-links a { background: #fff; border: 1.5px solid var(--line); padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.chip-links a:hover { border-color: var(--brand); color: var(--brand); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { background: #fff; padding: 24px 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.step p { color: var(--muted); margin: 0; }
.step-n, .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; font-weight: 800; font-size: 1.25rem; }
.icon .ic { width: 24px; height: 24px; }
.why { background: #f5eaee; padding: 44px 0; }
.faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; padding: 16px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.cta-band { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; padding: 48px 0; margin-top: 10px; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; }

/* stories */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0; }
.story { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.story img, .story-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-l), var(--gold-l)); color: var(--brand); }
.story-ph .ic { width: 54px; height: 54px; }
.story-body { padding: 16px 18px; }
.story-body p { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- search / browse ---------- */
.landing-hero { background: linear-gradient(120deg, var(--brand-d), var(--brand)); color: #fff; padding: 30px 0 34px; }
.landing-hero h1 { color: #fff; }
.landing-hero p { opacity: .92; max-width: 720px; }
.crumbs { font-size: .88rem; opacity: .85; }
.crumbs a { color: #fff; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h1 { margin-bottom: 2px; }
.results-count { margin: 0; font-weight: 600; }
.inline-label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.inline-label select { width: auto; margin: 0; min-height: 42px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 16px; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 999px; background: var(--brand-l); color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; }
.achip .ic { width: 15px; height: 15px; }
.achip:hover { background: #f2d9e1; }
.clear-all { font-size: .9rem; font-weight: 600; margin-left: 4px; }
.browse { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.filter-box > summary { list-style: none; display: none; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box { position: sticky; top: calc(var(--topbar-h) + 14px); }
.filters h3 { margin-bottom: 12px; }
.more-filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 14px; padding: 8px 0; }
.more-filters summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; }
.id-search { padding: 16px 18px; }
.input-btn { display: flex; gap: 8px; margin-top: 6px; }
.input-btn input { margin: 0; text-transform: uppercase; }
.upsell { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--gold-l); border: 1px solid #f3dca2; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.upsell-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #9a6400; flex: none; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0 24px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.pager a.on { background: var(--brand); color: #fff; }

/* empty states */
.empty { text-align: center; padding: 36px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.empty-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--brand-l); color: var(--brand); }
.empty-ic .ic { width: 32px; height: 32px; }
.empty p { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- profile cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; height: 100%; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-img { position: relative; aspect-ratio: 5 / 6; background: #f3eaee; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.lock-badge { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand); }
.lock-badge .ic { width: 16px; height: 16px; }
.score-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(21,122,58,.94); color: #fff; font-size: .82rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.score-badge .ic { width: 14px; height: 14px; }
.pcard-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.08rem; }
.pcard-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-sub { color: var(--ink-2); font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
.pcard-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; }
.pcard-meta .ic { width: 16px; height: 16px; color: #a88f99; }
.pcard-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.pcard-id { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.pcard-cta { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-weight: 700; font-size: .88rem; }
.pcard-cta .ic { width: 16px; height: 16px; }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.tick .ic { width: 13px; height: 13px; stroke-width: 3; }
.card-wrap { display: flex; flex-direction: column; }
.card-wrap .pcard { flex: 1; }
.card-actions { display: flex; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.card-actions form { flex: 1; }
.card-actions .btn { width: 100%; }

/* ---------- profile page ---------- */
.page-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 8px 12px 8px 4px; }
.jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.profile { display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: start; }
.profile-side { position: sticky; top: calc(var(--topbar-h) + 14px); }
.profile-photo img { width: 100%; border-radius: 12px; aspect-ratio: 5 / 6; object-fit: cover; margin-bottom: 10px; background: #f3eaee; }
.pname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verified-pill { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; background: #e8f2fc; color: #0d5a99; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: .88rem; }
.details { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; word-break: break-word; }
.grid2 .details { grid-template-columns: minmax(100px, 42%) 1fr; }
.about { white-space: pre-line; }
.contact { position: relative; overflow: hidden; }
.contact.locked .blurred { filter: blur(6px); user-select: none; }
.lock-msg { text-align: center; padding: 14px 10px 4px; }
.lock-ic { width: 60px; height: 60px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-l); color: #9a6400; }
.lock-ic .ic { width: 28px; height: 28px; }
.lock-msg p { color: var(--muted); }
.match-panel .ring { position: relative; width: 120px; margin: 0 auto 8px; }
.ring svg { width: 100%; }
.ring path { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.ring .bg { stroke: #f0e4e8; }
.ring .fg { stroke: var(--ok); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--ok); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .92rem; }
.checklist li { display: flex; align-items: center; gap: 6px; }
.checklist .ic { width: 16px; height: 16px; }
.checklist .ok { color: var(--ok); }
.checklist .no { color: var(--bad); }

/* ---------- dashboard ---------- */
.dash-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
.dash-me { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.dash-me h1 { font-size: 1.5rem; margin-bottom: 2px; }
.avatar-wrap { position: relative; flex: none; }
.avatar { width: 96px; height: 116px; object-fit: cover; border-radius: 12px; background: #f3eaee; }
.avatar-add { position: absolute; right: -8px; bottom: -8px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick a { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; min-height: 60px; }
.quick a:hover { box-shadow: var(--shadow-lg); color: var(--brand); }
.quick .ic { color: var(--brand); width: 22px; height: 22px; }
.ic-wrap { position: relative; display: inline-grid; }
.dot { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-style: normal; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.meter { margin: 8px 0 2px; max-width: 360px; }
.meter small { display: block; margin-top: 2px; }
.meter-label { font-size: .85rem; font-weight: 600; }
progress { width: 100%; height: 9px; appearance: none; border: 0; border-radius: 999px; background: #f0e4e8; overflow: hidden; }
progress::-webkit-progress-bar { background: #f0e4e8; border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--brand); }
.next-steps { padding: 0; overflow: hidden; }
.next-steps > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; cursor: pointer; }
.next-steps > summary::-webkit-details-marker { display: none; }
.next-steps[open] > summary .ic { transform: rotate(180deg); }
.next-steps summary small { display: block; }
.steps-list { list-style: none; margin: 0; padding: 0 22px 14px; }
.steps-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps-list li small { display: block; color: var(--muted); }
.steps-list li.done { opacity: .6; }
.step-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); }
.steps-list li.done .step-ic { background: var(--ok-l); color: var(--ok); }
.tabs { display: flex; gap: 6px; margin: 22px 0 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 700; white-space: nowrap; font-size: .94rem; }
.tabs a .ic { width: 17px; height: 17px; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs a small { opacity: .8; }

/* menu hub */
.menu-head { display: flex; gap: 16px; align-items: center; }
.menu-head h1 { font-size: 1.35rem; margin: 0; }
.menu-head .avatar { width: 76px; height: 90px; }
.menu-cta { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--gold-l), #fff); border: 1px solid #f3dca2; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; text-decoration: none; color: var(--ink); }
.menu-cta > .ic:first-child { color: #9a6400; width: 26px; height: 26px; }
.menu-cta span { flex: 1; display: flex; flex-direction: column; }
.menu-cta small { color: var(--muted); }
.menu-list { padding: 4px 0; }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 15px 20px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a span { flex: 1; }
.menu-list a > .ic:first-child { color: var(--brand); }
.menu-list a > .ic:last-child { color: #b9a9b0; }
.menu-list a:hover { background: #fbf6f8; }
.menu-h { margin: 22px 4px 10px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lang-kn .menu-h, .lang-hi .menu-h { text-transform: none; letter-spacing: 0; }
.lang-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lang-tiles a { display: grid; place-items: center; min-height: 56px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.lang-tiles a.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand); }

/* ---------- forms ---------- */
.form { display: block; }
label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 14px; color: var(--ink-2); }
.label { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin: 4px 0 8px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 11px 14px; font: inherit; font-weight: 400; font-size: 1rem;
  border: 1.5px solid #ddd0d5; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b5d66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(123,23,52,.12); }
input[type=file] { padding: 10px; min-height: auto; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 20px; margin: 2px 0 0; flex: none; }
small.muted { display: block; font-weight: 400; margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
.form-sec { color: var(--brand); font-size: 1.08rem; border-bottom: 2px solid var(--brand-l); padding-bottom: 8px; margin: 22px 0 16px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 80px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; background: #f4edf0; border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .82rem; font-weight: 700; color: var(--brand); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { margin: 0; font-weight: 500; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1.5px solid #ddd0d5; border-radius: 999px; cursor: pointer; background: #fff; font-size: .92rem; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:checked + span::before { content: '✓ '; margin-right: 4px; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }
details.more { border: 1.5px dashed #ddd0d5; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-preview { width: 84px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: st; gap: 6px; }
.stepper li { flex: 1; font-size: .82rem; color: var(--muted); text-align: center; position: relative; padding-top: 38px; counter-increment: st; font-weight: 600; }
.stepper li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f0e4e8; font-weight: 800; color: var(--muted); z-index: 1; }
.stepper li:not(:first-child)::after { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #f0e4e8; }
.stepper li.on, .stepper li.done { color: var(--brand); }
.stepper li.on::before { background: var(--brand); color: #fff; }
.stepper li.done::before { content: '✓'; background: var(--ok); color: #fff; }
.stepper li.on::after, .stepper li.done::after { background: var(--brand); }
form:not(.js-steps) .stepper { display: none; }
form:not(.js-steps) [data-step-prev], form:not(.js-steps) [data-step-next] { display: none; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; margin: 20px 0 8px; }
.step-nav [data-step-next], .step-nav [data-step-submit] { margin-left: auto; }
form:not(.js-steps) .step-nav [data-step-submit] { width: 100%; }
.sticky-save { position: sticky; bottom: 14px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.danger-zone { border: 1.5px solid #f5c2bc; }

/* ---------- payment ---------- */
.price-tag { text-align: center; margin: 10px 0 20px; }
.price-tag span { display: block; font-size: 3.2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.price-tag small { color: var(--muted); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding: 7px 0 7px 32px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-l); color: var(--ok); font-weight: 800; font-size: .8rem; }
.pay-box { border: 1.5px dashed #ddd0d5; border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.upi { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.upi img { border: 1px solid var(--line); border-radius: 10px; }
.upi-id { font-family: ui-monospace, monospace; font-size: 1.15rem; font-weight: 700; background: #f6eff1; padding: 6px 10px; border-radius: 8px; display: inline-block; word-break: break-all; }
.mobile-only { display: none; }

/* ---------- legal / prose ---------- */
.prose h3 { margin-top: 1.4em; color: var(--brand); }
.prose li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer { background: #26121b; color: #dccbd2; padding: 36px 0 20px; margin-top: 30px; }
.footer a { color: #f3e1e8; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-about { font-size: .92rem; opacity: .9; max-width: 420px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; }
.social a { margin-right: 14px; }

/* WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 700; }
.wa-float .ic { width: 24px; height: 24px; }
.bottom-nav { display: none; }

/* ---------- biodata (printable) ---------- */
.biodata-page { background: #eee; }
.biodata-tools { max-width: 800px; margin: 16px auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 0 16px; flex-wrap: wrap; }
.langs-dark a { margin: 0 4px; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.langs-dark a.on { background: var(--brand); color: #fff; }
.biodata { max-width: 800px; margin: 0 auto 30px; background: #fff; padding: 36px 44px; border: 6px double #b98a2f; }
.invocation { text-align: center; color: #b98a2f; font-weight: 700; font-size: 1.1rem; }
.biodata h1 { text-align: center; color: var(--brand); letter-spacing: .04em; margin: 6px 0 18px; }
.bd-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 2px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.bd-head h2 { margin: 0; }
.bd-head img { width: 140px; height: 168px; object-fit: cover; border: 3px solid #f0e4e8; border-radius: 6px; }
.bd-table { width: 100%; border-collapse: collapse; }
.bd-table th, .bd-table td { text-align: left; padding: 5px 8px; vertical-align: top; font-size: .95rem; }
.bd-table th { width: 38%; color: #5a4250; font-weight: 600; }
.bd-table tr.sec td { background: #f7eff2; color: var(--brand); font-weight: 700; padding-top: 8px; }
.bd-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 18px; }
@media print {
  .no-print, .wa-float, .bottom-nav, .topbar, .toast { display: none !important; }
  .biodata-page { background: #fff; }
  .biodata { margin: 0; border-width: 4px; padding: 24px 30px; }
  @page { size: A4; margin: 12mm; }
}
.offline-icon { font-size: 3rem; }

/* =====================================================================
   Owner / staff panel
   ===================================================================== */
body.admin { background: #f6f2f4; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #26121b; color: #e8d8de; padding: 18px 12px; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #fff; }
.side-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.side-logo b { font-size: 1.15rem; }
.side-logo small { color: #c9b2bb; font-size: .78rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-btn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #e8d8de; text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.side-nav a:hover, .side-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav a.on { background: var(--brand); color: #fff; }
.side-nav a span:not(.count) { flex: 1; }
.side-nav .count { margin-left: auto; }
.side-h { margin: 16px 12px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #a8909a; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-content { padding: 26px 28px 60px; max-width: 1400px; }
.admin-plain .admin-content { padding: 40px 16px; }
.admin .toast { top: 14px; }
.admin-login { margin-top: 40px; }
.login-card .logo-svg { width: 64px; height: 64px; margin: 0 auto 8px; }
.dash-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dash-head { display: flex; gap: 20px; align-items: center; }
.todo { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.todo-item { flex: 1; min-width: 240px; background: #fff; border-left: 5px solid var(--brand); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.todo-item.warn { border-left-color: var(--warn); background: #fffaf2; }
.kpi-h { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 24px 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi a { text-decoration: none; color: inherit; display: block; }
.kpi span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.65rem; color: var(--brand); line-height: 1.3; }
.kpi.big b { font-size: 2rem; }
.kpi.warn b { color: var(--warn); }
.kpi small { display: block; color: var(--muted); font-size: .8rem; }
.bars { width: 100%; height: auto; }
.bars rect { fill: var(--brand); }
.bars rect.gold { fill: var(--gold-d); }
.bars text { font-size: 8px; fill: var(--ink); }
.bars text.axis { fill: var(--muted); font-size: 7px; }
.hbars { list-style: none; padding: 0; margin: 0; }
.hbars li { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .9rem; }
.hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { width: 100%; height: 10px; background: #f3eaed; border-radius: 3px; }
.hb-track rect { fill: var(--brand); }
.hb-n { white-space: nowrap; text-align: right; }
.hb-n small { display: inline; }
.small-link { float: right; font-size: .82rem; font-weight: 500; }
.queue { list-style: none; padding: 0; margin: 0; }
.queue li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.queue img { width: 44px; height: 52px; object-fit: cover; border-radius: 8px; background: #f3eaee; }
.log { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #f8f1f4; color: #5a4250; font-weight: 700; white-space: nowrap; }
.table tr:hover td { background: #fcf8fa; }
.thumb { width: 40px; height: 48px; object-fit: cover; border-radius: 6px; background: #f3eaee; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; margin: 0; min-height: 42px; }
.toolbar input { flex: 1; min-width: 220px; }
.note-input { display: inline-block; width: 160px; margin: 0 4px; min-height: 38px; padding: 6px 10px; font-size: .88rem; }
.big-code { font-size: 1.2rem; }
.cred-box dl { margin: 10px 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-form .note-input { margin: 0; }
.inline-form form, .actions form { margin: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .mainnav a { padding: 8px 10px; }
  .mainnav .ic { display: none; }
  .brand small { display: none; }
}
@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr; }
  .steps.four { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-hero { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-in, .profile, .grid2.top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .browse { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .filter-box > summary { display: flex; margin-bottom: 12px; }
  .filter-box:not([open]) { margin-bottom: 4px; }
  .profile-side { position: static; }
  .profile-photo { max-width: 340px; margin: 0 auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; padding: 8px 10px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side-logo { padding: 0 6px 0 0; flex: none; }
  .side-logo span, .side-h { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-nav a, .side-btn { white-space: nowrap; padding: 9px 12px; width: auto; }
  .side-nav form { flex: none; }
  .admin-content { padding: 18px 14px 50px; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 60px; }
  body { font-size: 16px; }
  h1 { font-size: 1.45rem; }
  .mainnav, .hide-sm { display: none !important; }
  .brand b { font-size: 1.2rem; }
  .logo-svg { width: 36px; height: 36px; }
  .topbar-in { gap: 10px; }
  .top-actions { gap: 8px; }
  .dd-btn .dd-label { display: none; }
  .dd-btn { padding: 6px 10px; }
  .acct-btn { padding: 4px; }
  .hero { padding: 34px 0 60px; }
  .hero h1, .lang-kn .hero h1, .lang-hi .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid2, .row2.wide { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
  .grid2 .details { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 10px 12px; }
  .pcard-name { font-size: 1rem; }
  .pcard-meta { font-size: .84rem; }
  .pcard-cta { display: none; }
  .panel { padding: 18px; }
  .dash-me { padding: 16px; gap: 14px; }
  .avatar { width: 78px; height: 94px; }
  .dash-me h1 { font-size: 1.25rem; }
  .checklist { grid-template-columns: 1fr; }
  .upi { flex-direction: column; align-items: flex-start; }
  .mobile-only { display: inline-flex; }
  .stepper li { font-size: 0; }
  .biodata { padding: 20px; border-width: 4px; }
  .bd-head { flex-direction: column-reverse; }
  .bd-table th { width: 45%; }
  .hbars li { grid-template-columns: 100px 1fr auto; }
  .results-head { align-items: center; }
  .page-top .jump { width: 100%; }

  /* app-style bottom navigation */
  body.has-bottom-nav { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--bottom-h); font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--muted); }
  .bottom-nav a .ic { width: 24px; height: 24px; }
  .bottom-nav a.on { color: var(--brand); }
  .bottom-nav a.on .ic { stroke-width: 2.4; }
  .bottom-nav a.cta { color: var(--brand); font-weight: 800; }
  .bottom-nav a.cta .ic { background: var(--brand); color: #fff; border-radius: 50%; padding: 3px; width: 28px; height: 28px; }
  .wa-float { bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); right: 14px; padding: 13px; }
  .wa-float span { display: none; }
  .action-bar {
    position: sticky; bottom: calc(var(--bottom-h) + 8px + env(safe-area-inset-bottom)); z-index: 20; background: rgba(255,255,255,.97);
    margin: 14px -8px 0; padding: 10px; border-radius: 16px; box-shadow: var(--shadow-lg);
  }
  .action-bar .btn, .action-bar form { flex: 1; }
  .action-bar form .btn { width: 100%; }
  .sticky-save { bottom: calc(var(--bottom-h) + 10px); }
  .toast { top: calc(var(--topbar-h) + 8px); }
}
@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
  .brand b { font-size: 1.05rem; }
}
.dot-n { background: var(--brand); }
.quick a span:last-child { line-height: 1.3; }
@media (max-width: 760px) {
  .steps-list li { flex-wrap: wrap; gap: 10px 12px; }
  .steps-list li .grow { flex-basis: calc(100% - 56px); }
  .steps-list li .btn, .steps-list li > .badge { margin-left: 52px; }
  .next-steps > summary { padding: 16px; }
  .steps-list { padding: 0 16px 12px; }
  .quick a { padding: 12px; font-size: .9rem; gap: 8px; }
}
@media (max-width: 760px) {
  .upsell .grow { flex-basis: calc(100% - 52px); }
  .upsell .btn { width: 100%; }
  .results-head .sort-form { width: 100%; }
  .inline-label select { flex: 1; }
}

/* ---------- language switch ---------- */
.lang-switch { display: flex; background: #f4edf0; border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch a { display: grid; place-items: center; min-height: 36px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.lang-switch a:hover { color: var(--brand); background: #fff; }
.lang-switch a.on { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(123,23,52,.3); }
.lang-switch .ls-short { display: none; }
.lang-bar { background: var(--gold-l); border-bottom: 1px solid #f3dca2; }
.lang-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.lang-bar-q { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #6b4300; }
.lang-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-langs { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 22px; }
.footer-langs a { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.footer-langs a.on { background: #fff; color: var(--brand); font-weight: 700; }
@media (max-width: 1100px) { .lang-switch .ls-full { display: none; } .lang-switch .ls-short { display: inline; } }
@media (max-width: 760px) {
  .lang-switch a { min-width: 36px; padding: 0 8px; min-height: 34px; }
  .lang-bar-btns { width: 100%; }
  .lang-bar-btns .btn { flex: 1; }
}
