/* LocalMart – green glass theme */
:root { --g1:#4ade80; --g2:#15803d; --tx:#000; --red:#dc2626; }
* { box-sizing: border-box; }
html, body { margin:0; }
body {
  min-height:100vh; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--tx);
  background: linear-gradient(160deg,#dcfce7,#86efac) fixed;
  padding-bottom: 120px;
  padding-top: env(safe-area-inset-top, 0px);
}
body.has-nav { padding-bottom: 120px; }
a { color:inherit; text-decoration:none; }
h1,h2 { color:#000; }
h2 { margin:8px 0 12px; font-size:20px; }
svg.ic { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }

.wrap { max-width:1000px; margin:0 auto; padding:16px; }
.glass { background:rgba(255,255,255,.85); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.9); border-radius:18px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:18px; margin-bottom:16px; }

/* Top bar */
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; padding:12px 16px;
  background:rgba(255,255,255,.7); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid rgba(0,0,0,.08); }
.logo { font-weight:800; font-size:20px; display:flex; align-items:center; gap:8px; }
.logo img { width:36px; height:36px; object-fit:contain; border-radius:10px; background:#fff; }
.round { width:40px; height:40px; border-radius:50%; border:1px solid rgba(0,0,0,.12); background:#fff; display:flex; align-items:center; justify-content:center; }

/* Buttons */
.btn { background:linear-gradient(135deg,var(--g1),var(--g2)); color:#000; border:0; border-radius:999px; padding:12px 18px; font-size:15px; font-weight:700;
  box-shadow:0 6px 16px rgba(21,128,61,.3); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn.full { width:100%; }
.btn.light { background:#fff; box-shadow:none; border:1px solid #15803d; }
.btn.sm { padding:6px 12px; font-size:13px; box-shadow:none; }
.btn.red { background:linear-gradient(135deg,#fca5a5,#f87171); box-shadow:none; }

/* Forms */
input, textarea { width:100%; padding:12px 14px; border:1px solid rgba(0,0,0,.2); border-radius:12px; font-size:15px; margin:6px 0 12px; font-family:inherit; background:#fff; color:#000; }
input::placeholder, textarea::placeholder { color:#222; opacity:1; }
label { font-size:14px; font-weight:600; color:#000; }
form { margin:0; }
.alert { padding:12px 14px; border-radius:12px; margin:12px 0; font-weight:600; }
.alert.ok { background:#dcfce7; color:#000; border:1px solid #15803d; }
.alert.err { background:#fee2e2; color:#000; border:1px solid #dc2626; }

/* Banner & quick links */
.banner { display:block; border-radius:20px; overflow:hidden; border:1px solid #15803d; box-shadow:0 10px 30px rgba(0,0,0,.12); margin-bottom:16px; aspect-ratio:1774/887; background:#fff; }
.banner img { width:100%; height:100%; object-fit:cover; display:block; }
.quick { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:24px; }
.quick a { padding:14px 4px; display:flex; flex-direction:column; align-items:center; gap:8px; font-size:13px; font-weight:700; color:#000; text-align:center;
  border-radius:18px; border:2px solid transparent; background:linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#86efac,#15803d) border-box; box-shadow:0 6px 16px rgba(0,0,0,.1); }
.quick .qi { width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,var(--g1),var(--g2)); display:flex; align-items:center; justify-content:center; }

/* Products */
.grid { display:grid; grid-template-columns:1fr; gap:14px; }
.prod { padding:0; overflow:hidden; display:flex; flex-direction:column; margin-bottom:0; }
.pimg { height:150px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#f0fdf4,#dcfce7); color:#15803d; }
.pimg svg.ic { width:64px; height:64px; stroke-width:1.5; }
.pimg img { width:100%; height:100%; object-fit:cover; }
.pbody { padding:12px; display:flex; flex-direction:column; gap:6px; flex:1; }
.pbody small { color:#222; display:flex; align-items:center; gap:6px; }
.pbody small svg.ic { width:16px; height:16px; }
.pbody .btn { margin-top:auto; }
.price { font-weight:800; font-size:18px; }
.badge { display:inline-flex; align-items:center; gap:6px; background:#dcfce7; font-size:12px; padding:3px 9px; border-radius:99px; align-self:flex-start; font-weight:700; }
.badge svg.ic { width:14px; height:14px; }

/* Rows & cards */
.row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.1); }
.row small { display:block; color:#222; font-weight:400; }
.balance, .refbox { background:linear-gradient(135deg,var(--g1),var(--g2)); border-radius:18px; padding:18px; margin:12px 0; }
.balance small, .refbox small { font-weight:600; display:block; }
.balance strong, .refbox strong { display:block; font-size:28px; margin:4px 0 10px; letter-spacing:1px; }
.refbox strong.wrapword { font-size:14px; letter-spacing:0; word-break:break-all; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.note { color:#000; font-weight:600; margin:14px 0 0; }
.contact { display:flex; align-items:center; gap:10px; font-weight:600; margin:8px 0; }
.menu-item { width:100%; text-align:left; display:flex; justify-content:space-between; align-items:center; background:transparent; border:0; border-bottom:1px solid rgba(0,0,0,.1);
  padding:14px 4px; font-size:16px; color:#000; font-weight:600; cursor:pointer; font-family:inherit; }
.menu-item span { display:flex; align-items:center; gap:12px; }
.menu-item.danger { color:#b91c1c; }

/* Sign in / sign up */
.auth { min-height:80vh; display:flex; flex-direction:column; align-items:center; padding:24px 0; }
.ahead { text-align:center; margin:12px 0 8px; }
.alogo { width:88px; height:88px; border-radius:22px; background:#fff; margin:0 auto 10px; box-shadow:0 10px 30px rgba(0,0,0,.18); overflow:hidden; }
.alogo img { width:100%; height:100%; object-fit:contain; }
.ahead h1 { margin:0; font-size:26px; }
.ahead p { margin:4px 0 0; font-size:14px; }
.acard { width:100%; max-width:420px; background:rgba(255,255,255,.8); border-radius:28px; padding:24px 20px 28px; box-shadow:0 12px 30px rgba(0,0,0,.15); }
.atabs { display:flex; justify-content:space-around; margin-bottom:20px; }
.atabs a { font-size:17px; font-weight:800; color:#666; padding:6px 8px; position:relative; letter-spacing:.5px; }
.atabs a.on { color:#000; }
.atabs a.on::after { content:""; position:absolute; left:20%; right:20%; bottom:-6px; height:4px; border-radius:4px; background:#22c55e; }
.field { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.5); border:1px solid #9ca3af; border-radius:999px; padding:6px 14px 6px 6px; margin-bottom:12px; }
.field .ico { width:42px; height:42px; flex:0 0 42px; border-radius:50%; background:linear-gradient(135deg,var(--g1),var(--g2)); display:flex; align-items:center; justify-content:center; }
.field .ico svg.ic { width:20px; height:20px; }
.field .pre { font-weight:800; font-size:17px; padding:0 12px 0 10px; display:flex; align-items:center; gap:10px; }
.field .pre::after { content:""; width:2px; height:24px; background:#000; display:block; }
.field input { border:0; background:transparent; margin:0; padding:12px 4px; flex:1; min-width:0; outline:none; box-shadow:none; font-weight:500; }
.field .eye { width:40px; height:40px; flex:0 0 40px; border:0; background:transparent; cursor:pointer; color:#000; display:flex; align-items:center; justify-content:center; padding:0; }
.abtn { width:100%; margin-top:6px; background:linear-gradient(135deg,var(--g1),var(--g2)); color:#000; border:0; border-radius:999px; padding:15px; font-size:16px; font-weight:800; letter-spacing:.5px; cursor:pointer; box-shadow:0 8px 20px rgba(21,128,61,.3); }

/* Floating bottom nav */
.bnav { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); z-index:30; display:flex; justify-content:space-between; align-items:center; gap:4px; padding:8px;
  border-radius:999px; background:rgba(255,255,255,.45); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,.7); box-shadow:0 12px 30px rgba(0,0,0,.15); }
.bnav a { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; color:#000; font-size:12px; font-weight:700; padding:8px 0; border-radius:999px; }
.bnav a.on { background:linear-gradient(135deg,var(--g1),var(--g2)); box-shadow:0 6px 16px rgba(21,128,61,.35); }

@media (max-width:640px) { .quick a { font-size:12px; } }
.pending { color:#b45309; font-weight:800; }
.paid { color:#15803d; font-weight:800; }
.rejected { color:#b91c1c; font-weight:800; }

[hidden] { display:none !important; }
.pname { margin:6px 0 4px; font-size:22px; font-weight:800; color:#000; line-height:1.25; }
.pricebox { margin:10px 0 6px; border:2px solid #15803d; border-radius:18px; padding:12px 14px; background:linear-gradient(135deg,#ffffff,#ecfdf5);
  box-shadow:0 12px 26px rgba(21,128,61,.22), 0 2px 6px rgba(0,0,0,.08); }
.pb-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:9px 0; border-bottom:1px dashed rgba(21,128,61,.35); font-size:14px; }
.pb-row:last-child { border-bottom:0; }
.pb-row span { font-weight:700; color:#14532d; white-space:nowrap; }
.pb-row b { text-align:right; font-weight:700; color:#000; }
.pb-benefits { font-size:13px; line-height:1.45; }
.pb-price b { font-size:22px; font-weight:900; color:#15803d; text-shadow:0 2px 4px rgba(21,128,61,.2); }
.buy-btn, .save-btn { width:100%; margin-top:8px; padding:14px; border:0; border-radius:999px; background:linear-gradient(135deg,#4ade80,#15803d); color:#000;
  font-size:16px; font-weight:800; letter-spacing:.3px; box-shadow:0 10px 22px rgba(21,128,61,.35), inset 0 1px 0 rgba(255,255,255,.5); cursor:pointer; font-family:inherit; }
.save-btn:hover, .buy-btn:hover { filter:brightness(1.05); }
.bank-card { background:linear-gradient(135deg,#bbf7d0,#4ade80); color:#000; border-radius:18px; padding:16px; margin:6px 0 14px;
  box-shadow:0 12px 24px rgba(21,128,61,.25), inset 0 1px 0 rgba(255,255,255,.6); }
.bank-card small { font-weight:700; }
.bank-card strong { display:block; font-size:20px; margin:4px 0 8px; }
.bank-line { display:flex; justify-content:space-between; font-size:14px; padding:4px 0; }
.bank-line span { font-weight:700; }
.note { color:#000; font-weight:600; margin:10px 0; }
.acct-form label { display:block; margin-top:8px; }
.smodal { position:fixed; inset:0; background:rgba(5,46,22,.45); display:flex; align-items:center; justify-content:center; padding:18px; z-index:60; backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.smodal-box { position:relative; width:100%; max-width:380px; background:linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#4ade80,#15803d,#4ade80) border-box;
  border:3px solid transparent; border-radius:24px; padding:26px 20px 22px; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.smodal-x { position:absolute; right:12px; top:10px; width:36px; height:36px; border-radius:50%; border:1px solid rgba(0,0,0,.12); background:#fff; font-size:22px; line-height:1; cursor:pointer; color:#000; }
.smodal-head { text-align:center; margin-bottom:14px; }
.smodal-head h2 { margin:10px 0 4px; }
.smodal-head p { margin:0; font-size:14px; color:#222; }
.smodal-ic { width:60px; height:60px; border-radius:50%; margin:0 auto; display:flex; align-items:center; justify-content:center; color:#000;
  background:linear-gradient(135deg,#4ade80,#15803d); box-shadow:0 10px 22px rgba(21,128,61,.35); }
.support-btn { display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:18px; margin-top:12px; color:#000; background:#fff;
  border:1px solid rgba(0,0,0,.08); box-shadow:0 10px 24px rgba(0,0,0,.12); }
.support-btn .sb-ic { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; flex:0 0 46px; }
.support-btn .sb-ic svg { stroke:#fff; }
.support-btn.tg .sb-ic { background:linear-gradient(135deg,#38bdf8,#0284c7); }
.support-btn.wa .sb-ic { background:linear-gradient(135deg,#4ade80,#16a34a); }
.support-btn .sb-txt { display:flex; flex-direction:column; }
.support-btn small { font-size:13px; color:#333; }
.support-btn.off { opacity:.55; pointer-events:none; }
.hamburger { cursor:pointer; }


/* ===== Withdrawal account form ===== */
.bank-setup { padding:20px; }
.bs-head { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.bs-head h3 { margin:0; font-size:19px; color:#000; }
.bs-head p { margin:2px 0 0; font-size:13px; color:#222; }
.bs-ic { width:52px; height:52px; flex:0 0 52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#4ade80,#15803d); color:#000; box-shadow:0 10px 20px rgba(21,128,61,.3); }
.bs-ic svg { width:26px; height:26px; }
.bs-form { display:flex; flex-direction:column; gap:16px; margin-top:6px; }
.bs-field label { display:block; font-size:12px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:#14532d; margin:0 0 7px 4px; }
.bs-form input { width:100%; height:52px; margin:0; padding:0 16px; border:1px solid #cbd5e1; border-radius:14px; background:#fff; font-size:16px; color:#000;
  box-shadow:inset 0 2px 4px rgba(0,0,0,.04); transition:border-color .2s, box-shadow .2s; font-family:inherit; }
.bs-form input::placeholder { color:#555; opacity:1; }
.bs-form input:focus { outline:none; border-color:#16a34a; box-shadow:0 0 0 4px rgba(34,197,94,.2); }
.bs-form input[name="ifsc"] { text-transform:uppercase; letter-spacing:1px; }
.bs-pass { position:relative; }
.bs-pass input { padding-right:56px; }
.eye-abs { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:38px; height:38px; border:0; border-radius:50%;
  background:#f0fdf4; color:#000; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.eye-abs svg { width:20px; height:20px; }
.bs-note { display:flex; align-items:center; gap:8px; font-size:13px; color:#14532d; font-weight:600; margin:2px 0 0; }
.bs-note svg { width:18px; height:18px; flex:0 0 18px; }
.bs-form .save-btn { height:54px; font-size:16px; margin-top:4px; }

/* ===== Profile page ===== */
.pf-hero { background:linear-gradient(160deg,#dcfce7 0%,#86efac 55%,#4ade80 100%); border-radius:22px; padding:20px 18px 16px; margin:4px 0 18px;
  box-shadow:0 14px 30px rgba(21,128,61,.22); border:1px solid rgba(255,255,255,.8); }
.pf-top { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.pf-avatar { width:68px; height:68px; flex:0 0 68px; border-radius:50%; background:#fff; padding:4px; box-shadow:0 8px 18px rgba(0,0,0,.18); }
.pf-avatar img { width:100%; height:100%; object-fit:contain; border-radius:50%; }
.pf-who { display:flex; flex-direction:column; gap:6px; min-width:0; }
.pf-phone { font-size:19px; color:#000; word-break:break-all; }
.pf-id { align-self:flex-start; background:#fff; color:#000; font-size:12px; font-weight:800; padding:4px 12px; border-radius:999px; box-shadow:0 4px 10px rgba(0,0,0,.1); }
.pf-stats { display:grid; grid-template-columns:repeat(3,1fr); background:rgba(255,255,255,.55); border-radius:18px; padding:14px 6px; }
.pf-stats > div { display:flex; flex-direction:column; align-items:center; gap:4px; position:relative; }
.pf-stats > div + div::before { content:""; position:absolute; left:0; top:10%; bottom:10%; width:1px; background:rgba(0,0,0,.18); }
.pf-stats b { font-size:16px; color:#000; font-weight:800; }
.pf-stats small { font-size:12px; color:#14532d; font-weight:700; }
.pf-menu { display:flex; flex-direction:column; gap:10px; }
.pf-item { display:flex; align-items:center; gap:14px; width:100%; padding:14px 16px; border-radius:18px; background:#fff; color:#000; border:0; text-align:left;
  box-shadow:0 6px 16px rgba(0,0,0,.07); font:inherit; cursor:pointer; }
.pf-ic { width:44px; height:44px; flex:0 0 44px; border-radius:14px; background:linear-gradient(135deg,#dcfce7,#bbf7d0); display:flex; align-items:center; justify-content:center; color:#14532d; }
.pf-ic svg { width:22px; height:22px; }
.pf-label { flex:1; font-size:16px; font-weight:700; }
.pf-chev { color:#14532d; display:flex; }
.pf-chev svg { width:20px; height:20px; }
.pf-danger .pf-ic { background:linear-gradient(135deg,#fee2e2,#fecaca); color:#b91c1c; }
.pf-danger .pf-label { color:#b91c1c; }
.pf-form { margin:0; }
.pf-subhead { display:flex; align-items:center; gap:12px; margin:4px 0 16px; }
.pf-subhead h2 { margin:0; }
.pf-back { width:40px; height:40px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px rgba(0,0,0,.1); }
.pf-back svg { transform:rotate(180deg); width:20px; height:20px; }

/* ===== Withdrawal history cards ===== */
.wd-card { padding:16px; margin-bottom:12px; }
.wd-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.wd-amount { font-size:20px; color:#000; }
.wd-status { font-size:12px; font-weight:800; padding:5px 12px; border-radius:999px; background:#fff; border:1px solid currentColor; }
.wd-status.pending { color:#b45309; background:#fef3c7; }
.wd-status.paid { color:#15803d; background:#dcfce7; }
.wd-status.rejected { color:#b91c1c; background:#fee2e2; }
.wd-meta { display:flex; justify-content:space-between; gap:10px; margin-top:10px; font-size:14px; font-weight:600; color:#000; }
.wd-date { margin-top:8px; font-size:12px; color:#222; }

/* ===== Home quick links (four circles row) ===== */
.qk-card { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; background:#fff; border-radius:24px; padding:18px 6px 16px; margin-bottom:24px;
  box-shadow:0 12px 28px rgba(0,0,0,.08); }
.qk-card a { display:flex; flex-direction:column; align-items:center; gap:10px; color:#000; font-weight:700; font-size:14px; text-align:center; }
.qk-ic { width:70px; height:70px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 12px 22px rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.35); }
.qk-ic svg { width:30px; height:30px; stroke:#fff; }
.qk-green { background:linear-gradient(135deg,#6ee7b7,#22c55e); box-shadow:0 12px 22px rgba(34,197,94,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.qk-orange { background:linear-gradient(135deg,#fdba74,#f97316); box-shadow:0 12px 22px rgba(249,115,22,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.qk-blue { background:linear-gradient(135deg,#93c5fd,#2563eb); box-shadow:0 12px 22px rgba(37,99,235,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.qk-purple { background:linear-gradient(135deg,#c4b5fd,#7c3aed); box-shadow:0 12px 22px rgba(124,58,237,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.qk-rupee { font-size:34px; font-weight:800; line-height:1; }
