/* AGRI design system – tokens → base → components → views
   Primary: Deep Emerald · Secondary: Fresh Agri Green · Accent: Vibrant Orange · Royal Blue · Yellow · White */
:root {
  --em-900: #04392B; --em-800: #064E3B; --em-700: #065F46; --em-600: #0B7A55; --em-100: #DDF3E8; --em-50: #F0FAF4;
  --leaf: #3FAE45; --leaf-100: #E3F5E1;
  --orange: #F57C1F; --orange-600: #DF650B; --orange-100: #FFEBD9;
  --blue: #1D4ED8; --blue-100: #E2EAFD; --yellow: #FFC233; --yellow-100: #FFF5D6;
  --red: #D93A3A; --red-100: #FDE6E6;
  --bg: #F4F8F5; --surface: #FFFFFF; --soft: #F8FBF9; --line: #DFE9E2; --ink: #0F2A1F; --muted: #557064;
  --grad-hero: linear-gradient(140deg, #04392B 0%, #065F46 38%, #0B7A55 68%, #2F9E4C 100%);
  --grad-cta: linear-gradient(135deg, #FF9A3C 0%, #F57C1F 50%, #E8600E 100%);
  --grad-blue: linear-gradient(135deg, #1D4ED8, #3B82F6);
  --shadow-1: 0 1px 2px rgba(6, 78, 59, .06), 0 4px 14px rgba(6, 78, 59, .06);
  --shadow-2: 0 18px 44px rgba(6, 78, 59, .14);
  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --f-d: 'Baloo 2', 'Noto Sans Devanagari', system-ui, sans-serif;
  --f-b: 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-tag: 'Tiro Devanagari Marathi', 'Noto Sans Devanagari', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07140F; --surface: #0E2019; --soft: #0B1A14; --line: #1C3A2E; --ink: #E7F4EC; --muted: #93B3A3;
  --em-100: #12352A; --em-50: #0C1D17; --leaf-100: #15301A; --orange-100: #3A230F; --blue-100: #14224A;
  --yellow-100: #352B0E; --red-100: #3A1414;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25); --shadow-2: 0 18px 44px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-b); overflow-x: hidden; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--em-600); text-decoration: none; }
:root[data-theme="dark"] a { color: #6FD3A0; }
h1, h2, h3, h4 { font-family: var(--f-d); line-height: 1.18; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 65%, transparent); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--grad-hero); transition: opacity .35s, visibility .35s; }
#splash img { width: 112px; height: 112px; animation: splash 1.4s ease-in-out infinite; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35)); }
#splash p { color: #fff; font: 700 15px var(--f-d); margin-top: 14px; opacity: .9; text-align: center; letter-spacing: .5px; }
#splash.gone { opacity: 0; visibility: hidden; }
@keyframes splash { 50% { transform: scale(1.07) rotate(-4deg); } }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink) !important; }
.brand img { width: 40px; height: 40px; }
.brand b { font: 800 22px/1 var(--f-d); letter-spacing: .5px; color: var(--em-700); }
:root[data-theme="dark"] .brand b { color: #7FE0AE; }
.brand small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex-shrink: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.lang-sel, .loc-chip { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-weight: 700; font-size: 14px; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 150px; }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .brand small, .loc-chip span { display: none; } .loc-chip { width: 40px; justify-content: center; padding: 0; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border-radius: 14px; font-weight: 700; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; text-align: center; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14.5px; border-radius: 12px; }
.btn-xs { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-cta { color: #fff !important; background: var(--grad-cta); box-shadow: 0 10px 24px rgba(245, 124, 31, .35); overflow: hidden; font-family: var(--f-d); font-size: 17px; }
.btn-cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.4s ease-in-out 1.5s infinite; }
.btn-em { color: #fff !important; background: var(--em-700); box-shadow: 0 8px 20px rgba(6, 95, 70, .28); }
.btn-ghost { color: var(--em-700) !important; background: color-mix(in srgb, var(--em-600) 9%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--em-600) 30%, transparent); }
:root[data-theme="dark"] .btn-ghost { color: #8BE5B5 !important; }
.btn-light { color: var(--em-800) !important; background: #fff; }
.btn-wa { color: #fff !important; background: #1FA855; }
.btn-danger { color: #fff !important; background: var(--red); }
.btn-plain { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- common ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.pad { padding: 18px; }
.kicker { color: var(--orange-600); font-weight: 800; font-size: 13.5px; letter-spacing: .4px; text-transform: uppercase; }
.h2 { font-size: clamp(26px, 4.8vw, 38px); font-weight: 800; margin-top: 4px; }
.sub { color: var(--muted); margin-top: 8px; max-width: 42em; }
section.block { padding-block: 44px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 30px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.b-verified { background: var(--em-100); color: var(--em-700); }
:root[data-theme="dark"] .b-verified { color: #8BE5B5; }
.b-pending { background: var(--yellow-100); color: #8A6200; }
:root[data-theme="dark"] .b-pending { color: #F3CB5C; }
.b-rejected, .b-suspended, .b-blocked { background: var(--red-100); color: var(--red); }
.b-type { background: var(--blue-100); color: var(--blue); }
:root[data-theme="dark"] .b-type { color: #8EAEFF; }
.b-soon { background: var(--orange-100); color: var(--orange-600); }
.b-live { background: var(--leaf-100); color: #23863A; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .ill { font-size: 44px; }
.empty h3 { color: var(--ink); font-size: 20px; margin-top: 8px; }
.preview-bar { background: var(--yellow); color: #3A2A00; font-weight: 700; font-size: 13.5px; text-align: center; padding: 6px 12px; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--line) 25%, var(--soft) 50%, var(--line) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--grad-hero); padding-block: 34px 70px; }
.hero::before { content: ""; position: absolute; inset: -35% -25% auto auto; width: 75vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 194, 51, .28), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 46px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }
.hero .wrap { position: relative; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.08fr .92fr; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 30px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: 13.5px; }
.hero h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; letter-spacing: -.3px; margin-top: 14px; }
.hero h1 .hl { color: var(--yellow); }
.hero .tagline { font: 400 18px/1.4 var(--f-tag); color: #CFF1DE; margin-top: 10px; }
.hero .lead { margin-top: 12px; font-size: clamp(16px, 2.3vw, 18.5px); color: rgba(255, 255, 255, .86); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* hero: connect stage (illustrative) */
.stage { position: relative; min-height: 430px; display: grid; place-items: center; }
.ex-tag { position: absolute; top: 0; right: 0; z-index: 3; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: rgba(0, 0, 0, .25); }
.node { position: absolute; z-index: 2; width: min(220px, 56vw); padding: 12px 14px; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .25); animation: float 5s ease-in-out infinite; }
.node .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.node b { display: block; font: 800 16.5px/1.25 var(--f-d); margin-top: 2px; }
.node .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.node .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.node .top-row { display: flex; gap: 10px; align-items: center; }
.node.n1 { top: 34px; left: 0; }
.node.n2 { bottom: 26px; right: 0; animation-delay: -2.5s; }
.node.n3 { top: 50%; left: 50%; width: auto; padding: 10px 14px; transform: translate(-50%, -50%); animation: pop 4s ease-in-out infinite; background: var(--grad-cta); color: #fff; font: 800 15px var(--f-d); border-radius: 40px; }
.node.n3 span { display: flex; gap: 8px; align-items: center; }
.link-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.link-svg path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.5; stroke-dasharray: 7 9; animation: dash 1.6s linear infinite; }
.pulse-dot { position: absolute; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 194, 51, .6); animation: ping 1.8s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pop { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(255, 194, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); } }

/* search card overlapping hero */
.search-card { position: relative; z-index: 5; margin-top: -40px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row .inp-wrap { flex: 1 1 200px; position: relative; }
.search-row .inp-wrap svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.search-row input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 14px 0 44px; font-size: 16px; }
.search-row select { height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 12px; flex: 1 1 150px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex-shrink: 0; padding: 6px 12px; border-radius: 20px; background: var(--em-50); border: 1px solid var(--em-100); font-size: 13.5px; font-weight: 600; }

/* categories */
.cat-grid { display: grid; gap: 8px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(min(30%, 150px), 1fr)); }
.cat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink) !important; transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 96px; }
@media (max-width: 560px) { .cat { padding: 10px; } .cat b { font-size: 13.5px; } .cat .ci { width: 40px; height: 40px; font-size: 21px; } }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--em-600) 35%, var(--line)); }
.cat .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.cat:nth-child(4n+1) .ci { background: var(--em-100); } .cat:nth-child(4n+2) .ci { background: var(--orange-100); }
.cat:nth-child(4n+3) .ci { background: var(--blue-100); } .cat:nth-child(4n+4) .ci { background: var(--yellow-100); }
.cat b { font-size: 15px; line-height: 1.3; }

/* steps */
.steps { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step .n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 800 21px var(--f-d); }
.step:nth-child(1) .n { background: var(--em-700); } .step:nth-child(2) .n { background: var(--blue); } .step:nth-child(3) .n { background: var(--orange); }
.step h3 { font-size: 20px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* role tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 20px; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: 9px 16px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.tab[aria-selected="true"] { color: #fff; background: var(--em-700); border-color: var(--em-700); }
.panel { margin-top: 12px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.panel h3 { font-size: 21px; }
.panel ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media (min-width: 760px) { .panel ul { grid-template-columns: 1fr 1fr; } }
.panel li { display: flex; gap: 10px; align-items: flex-start; }
.panel li .tk { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.panel li .tk.live { color: #fff; background: var(--leaf); } .panel li .tk.soon { color: var(--orange-600); background: var(--orange-100); }
.panel.swap { animation: slidein .35s ease both; }
@keyframes slidein { from { opacity: .3; transform: translateX(14px); } }

/* stats */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 800 32px/1.1 var(--f-d); color: var(--em-700); }
:root[data-theme="dark"] .stat b { color: #7FE0AE; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.stat:nth-child(2) b { color: var(--blue); } .stat:nth-child(3) b { color: var(--orange-600); }

/* business cards */
.biz-grid { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.biz { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink) !important; transition: transform .2s, box-shadow .2s; }
.biz:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.biz .av { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 800 22px var(--f-d); flex-shrink: 0; }
.av.t-manufacturer { background: linear-gradient(135deg, #065F46, #2F9E4C); } .av.t-wholesaler { background: var(--grad-blue); } .av.t-retailer { background: var(--grad-cta); }
.biz h3 { font-size: 18px; }
.biz .loc { font-size: 13.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; }

/* roadmap */
.road { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(5, 1fr); } }
.ph { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; }
.ph.now { border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 22%, transparent); }
.ph small { font-weight: 800; color: var(--muted); font-size: 12px; }
.ph h4 { font-size: 17px; margin-top: 2px; }
.ph p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* trust strip */
.trust { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); color: #fff; background: var(--grad-hero); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { display: grid; gap: 4px; }
.trust b { font: 800 18px var(--f-d); }
.trust span { opacity: .86; font-size: 14px; }

/* install + faq */
.guide { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 760px) { .guide { grid-template-columns: 1fr 1fr; } }
.guide ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 18px; }
.faq summary { padding: 15px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--muted); }
.final { position: relative; overflow: hidden; text-align: center; padding: 38px 20px; border-radius: 30px; background: var(--em-900); color: #fff; }
.final img { width: 84px; height: 84px; margin: 0 auto 12px; animation: bob 3s ease-in-out infinite; }
.final h2 { font-size: clamp(26px, 5.4vw, 40px); }
.final p { opacity: .82; margin: 10px auto 0; max-width: 32em; }
.final .cta { justify-content: center; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

footer.foot { padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; text-align: center; display: grid; gap: 8px; }
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
footer.foot img { height: 42px; width: auto; margin: 0 auto; }

/* ---------- forms ---------- */
.page { padding-block: 22px 60px; }
.page-narrow { max-width: 560px; }
.page-mid { max-width: 820px; }
.page h1 { font-size: clamp(26px, 5vw, 34px); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--soft); padding: 10px 14px; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--em-600); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--em-600) 16%, transparent); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); }
.field .msg { font-size: 13px; color: var(--red); font-weight: 600; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.type-pick { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick .tp { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); transition: border-color .2s, transform .15s; height: 100%; }
.type-pick .tp span { font-size: 28px; }
.type-pick .tp b { font-size: 14.5px; }
.type-pick input:checked + .tp { border-color: var(--em-600); background: var(--em-50); transform: translateY(-2px); }
.type-pick input:focus-visible + .tp { outline: 3px solid var(--orange); }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick label { cursor: pointer; }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick span { display: inline-flex; gap: 6px; padding: 8px 12px; border-radius: 30px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.cat-pick input:checked + span { background: var(--em-700); color: #fff; border-color: var(--em-700); }
.cat-pick input:focus-visible + span { outline: 3px solid var(--orange); }
.form-sec { margin-top: 18px; padding: 18px; }
.form-sec h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.otp-input { letter-spacing: 12px; text-align: center; font: 800 26px var(--f-d) !important; }
.alert { padding: 12px 14px; border-radius: 13px; font-size: 14.5px; font-weight: 600; margin-top: 14px; }
.alert.err { background: var(--red-100); color: var(--red); }
.alert.ok { background: var(--em-100); color: var(--em-700); }
.alert.warn { background: var(--yellow-100); color: #7A5600; }
:root[data-theme="dark"] .alert.warn { color: #F3CB5C; }
:root[data-theme="dark"] .alert.ok { color: #8BE5B5; }
.sticky-act { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); margin-top: 10px; }

/* ---------- dashboard ---------- */
.dash-head { padding: 22px; border-radius: var(--r-lg); color: #fff; background: var(--grad-hero); position: relative; overflow: hidden; }
.dash-head h1 { font-size: clamp(24px, 5vw, 32px); }
.dash-head p { opacity: .85; }
.tiles { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); }
.tile { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink) !important; position: relative; }
.tile .ti { font-size: 26px; }
.tile b { font-size: 15.5px; }
.tile.locked { opacity: .72; }
.tile .badge { position: absolute; top: 10px; right: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 10px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- profile ---------- */
.pro-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pro-head .av { width: 74px; height: 74px; border-radius: 22px; font-size: 32px; display: grid; place-items: center; color: #fff; font-family: var(--f-d); font-weight: 800; }
.contact-lock { padding: 16px; border-radius: 16px; background: var(--orange-100); display: grid; gap: 10px; }

/* ---------- admin ---------- */
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; position: sticky; top: 62px; z-index: 20; background: var(--bg); }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex-shrink: 0; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.adm-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { display: grid; gap: 10px; margin-top: 12px; }
.item { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.item h4 { font-size: 16.5px; }
.bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--em-600), var(--leaf)); }
.bars { display: grid; gap: 8px; margin-top: 10px; }
.bars .r { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 40px; gap: 8px; align-items: center; font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.filters input, .filters select { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 12px; flex: 1 1 140px; min-width: 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- bottom sheet / dialog ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(4, 20, 14, .5); opacity: 0; transition: opacity .25s; }
.sheet-bg.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); max-width: 640px; margin: 0 auto; }
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 20px; }
.dist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 12px; }
.dist-list button { padding: 10px; border-radius: 12px; border: 1px solid var(--line); text-align: left; font-size: 14.5px; background: var(--soft); }
.dist-list button.on { background: var(--em-700); color: #fff; border-color: var(--em-700); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: #0F2A1F; color: #fff; font-weight: 600; transition: transform .25s, opacity .25s; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* page transition + reveal */
#view.enter { animation: pagein .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } }
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2, .8, .3, 1), transform .6s cubic-bezier(.2, .8, .3, 1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }
.foot-logo { height: 42px; width: auto; }
/* mobile overflow guard: grid/flex children inputs कधीही viewport पेक्षा रुंद होऊ नयेत */
.field, .grid2 > *, .search-row > *, .filters > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
.card, .item, .biz { min-width: 0; overflow-wrap: anywhere; }
.type-pick label, .cat-pick label { position: relative; }
.type-pick input, .cat-pick input, .field .cat-pick input { position: absolute; inset: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0; margin: 0; opacity: 0; }
/* v1.1 login */
.btn-google { width: 100%; margin-top: 16px; background: var(--surface); color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: var(--shadow-1); font-size: 16.5px; }
.btn-google .g-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 15px/1 var(--f-d);
  background: var(--blue); }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.seg button { min-height: 42px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--em-700); box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .seg button[aria-selected="true"] { color: #8BE5B5; }
.pin-input { letter-spacing: 10px; text-align: center; font: 800 22px var(--f-d) !important; }
.temp-pin { font: 800 42px/1.2 var(--f-d); letter-spacing: 8px; text-align: center; margin: 14px 0; color: var(--em-700); }
:root[data-theme="dark"] .temp-pin { color: #8BE5B5; }
