/* ============================================================
   app.css — mobile app theme (reference-photo exact layout,
   professional flat indigo/blue branding)
   Loaded AFTER style.css by layouts/app.php
   ============================================================ */

:root{
  --ap:#4f46e5; --ap2:#4338ca; --ap-blue:#3b82f6; --ap-blue2:#60a5fa;
  --ap-soft:rgba(79,70,229,.10); --ap-line:rgba(79,70,229,.22);
  --ap-glow:rgba(79,70,229,.35);
  --abg:#f1f2f7;
  --agreen:#16a34a; --agreen2:#15803d;
  --awa:#25d366;
  --anav-h:76px;
}

/* V17: emerald + royal — pehle app area me sirf dark/white kaam karta tha.
   Ab ye dono themes bhi poore app (buttons, pills, nav, cards) me apply hoti hain. */
body[data-theme="emerald"]{
  --ap:#059669; --ap2:#0d9488; --ap-blue:#0d9488; --ap-blue2:#34d399;
  --ap-soft:rgba(5,150,105,.10); --ap-line:rgba(5,150,105,.25);
  --ap-glow:rgba(5,150,105,.32);
}
body[data-theme="royal"]{
  --ap:#7c3aed; --ap2:#db2777; --ap-blue:#a855f7; --ap-blue2:#c4b5fd;
  --ap-soft:rgba(124,58,237,.10); --ap-line:rgba(124,58,237,.25);
  --ap-glow:rgba(124,58,237,.32);
}

/* ---------- App frame + flat light background (photo style) ---------- */
body.app-body{
  background:var(--abg);
  min-height:100vh;
  padding-bottom:calc(var(--anav-h) + 18px);
}
.app-frame{width:100%;max-width:560px;margin:0 auto;padding:14px 16px 8px;position:relative}

/* ---------- Header: dark logo chip + indigo balance pill (photo header) ---------- */
.apphead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0 16px}
.logo-chip{display:inline-flex;align-items:center;gap:7px;background:#111827;color:#fff;font-weight:800;
  font-size:18px;padding:11px 18px;border-radius:14px;letter-spacing:.2px;box-shadow:0 6px 16px rgba(17,24,39,.18);line-height:1.2;max-width:62%}
.logo-chip .star{color:#facc15;font-size:17px}
.logo-chip.sm{font-size:15px;padding:8px 13px;border-radius:12px}
.balance-pill{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--ap-blue2),var(--ap));
  color:#fff;font-weight:800;font-size:15.5px;padding:11px 16px;border-radius:99px;box-shadow:0 6px 16px var(--ap-glow);white-space:nowrap}
.balance-pill svg{width:19px;height:19px}
.apphead .hright{display:flex;align-items:center;gap:8px}
.icon-btn{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;font-size:17px;
  box-shadow:0 2px 8px rgba(17,24,39,.06);border:1px solid var(--line,#e8eaf1);position:relative;color:#374151}
.icon-btn .dot-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:99px;background:#ef4444;color:#fff;
  font-size:10.5px;font-weight:800;display:grid;place-items:center;padding:0 4px;border:2px solid #fff}

/* ---------- Page title with back arrow ---------- */
.app-title{display:flex;align-items:center;gap:8px;margin:2px 0 16px;min-height:40px}
.app-title .back{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#111827;font-size:20px;font-weight:800;
  background:#fff;border:1px solid #e8eaf1;box-shadow:0 2px 8px rgba(17,24,39,.05)}
.app-title h1{font-size:clamp(18px,4.8vw,23px);font-weight:800;color:#111827;letter-spacing:-.01em;flex:1;text-align:center}
.app-title .spacer38{width:38px;flex:0 0 auto}
@media(max-width:420px){.app-title h1{font-size:17.5px}}

/* ---------- White rounded cards (list rows) ---------- */
.acard{background:#fff;border-radius:14px;padding:12.5px 15px;box-shadow:0 2px 10px rgba(17,24,39,.05);
  border:1px solid #eceef4;margin-bottom:10px}
a.acard,label.acard{display:flex;align-items:center;gap:11px;color:#111827;transition:transform .16s ease,box-shadow .16s ease}
a.acard:hover,label.acard:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(17,24,39,.09)}
a.acard:active{transform:scale(.985)}
.acard .ttl{font-weight:800;font-size:14px;line-height:1.35;flex:1;min-width:0;word-wrap:break-word}
.acard .ttl small{display:block;font-weight:600;font-size:11px;color:#9ca3af;margin-top:2px}
.acard .price{font-weight:800;font-size:13.5px;color:#111827;white-space:nowrap}
.acard .chev{color:#c7cad6;flex:0 0 auto}
.acard.selected{outline:2.5px solid var(--ap);outline-offset:-2.5px;background:#f8f8ff}

/* ---------- Select Quantity cards ---------- */
.qty-card{cursor:pointer;user-select:none;position:relative}
.qty-card .price{color:var(--ap)}
.qty-card input{position:absolute;opacity:0;pointer-events:none}
/* V52 — package title stays on ONE line: custom quantities (e.g. 320) or long
   names no longer wrap onto a second line; overflow shows a clean ellipsis. */
.qty-card .ttl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qty-card .ttl small{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* ---------- Big CTA button (V18: theme gradient — theme change par ye bhi badalta hai) ---------- */
.btn-submit{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(135deg,var(--ap-blue2),var(--ap));color:#fff;font-weight:800;font-size:17px;letter-spacing:.4px;
  padding:17px 20px;border-radius:14px;border:0;cursor:pointer;box-shadow:0 8px 20px var(--ap-glow);
  transition:transform .15s ease,filter .15s ease;text-transform:uppercase}
.btn-submit:hover{filter:brightness(1.06)}
.btn-submit:active{transform:scale(.98)}
.btn-submit[disabled]{opacity:.6}

/* ---------- Order summary (green box) ---------- */
.osummary{background:#f0fdf5;border:1.5px solid #bbf7d0;border-radius:14px;padding:15px 18px;font-size:15.5px;color:#12251a;margin:4px 0 16px}
.osummary b{font-size:16.5px}
.osummary .row{display:flex;justify-content:space-between;gap:6px;padding:2.5px 0}
.sdetails{background:#fff;border:1.5px solid #e8eaf1;border-radius:14px;padding:14px 16px;font-size:14.5px;color:#1f2937;
  white-space:pre-line;word-wrap:break-word;margin-bottom:16px;max-height:230px;overflow:auto}
.sdetails .lbl{font-weight:800;font-size:16px;margin-bottom:8px;color:#111827}

/* ---------- Filter chips (My Orders) ---------- */
.ochips{display:flex;gap:9px;overflow-x:auto;padding:2px 0 10px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ochips::-webkit-scrollbar{display:none}
.ochip{flex:0 0 auto;background:#fff;border:1.5px solid #e8eaf1;color:#4b5563;font-weight:800;font-size:13.5px;
  padding:9px 16px;border-radius:99px;box-shadow:0 2px 6px rgba(17,24,39,.04)}
.ochip.on{background:linear-gradient(135deg,var(--ap-blue2),var(--ap-blue));border-color:transparent;color:#fff;box-shadow:0 5px 14px var(--ap-glow)}
.osearch{display:flex;gap:8px;background:#fff;border-radius:99px;padding:6px 6px 6px 16px;align-items:center;
  box-shadow:0 2px 10px rgba(17,24,39,.05);margin-bottom:14px;border:1px solid #eceef4}
.osearch input{flex:1;border:0;outline:0;font-size:14.5px;background:transparent;color:#111827;min-width:0}
.osearch .go{background:linear-gradient(135deg,var(--ap-blue2),var(--ap-blue));color:#fff;font-weight:700;font-size:13.5px;
  border:0;border-radius:99px;padding:10px 18px;cursor:pointer}

/* ---------- Order rows ---------- */
.orow .st{font-size:12px;font-weight:800;padding:4px 11px;border-radius:99px;white-space:nowrap}
.st-pending{background:#fef3c7;color:#92400e}
.st-processing,.st-in_progress{background:#dbeafe;color:#1d4ed8}
.st-completed{background:#dcfce7;color:#15803d}
.st-partial{background:#ffedd5;color:#c2410c}
.st-canceled,.st-failed{background:#fee2e2;color:#b91c1c}

/* ---------- Empty state ---------- */
.aempty{text-align:center;padding:52px 20px 40px;color:#6b7280}
.aempty .big{font-size:44px;margin-bottom:10px;opacity:.85}
.aempty b{display:block;font-size:20px;color:#111827;margin-bottom:5px}
.aempty p{font-size:14px;color:#6b7280}

/* ---------- Menu rows ---------- */
.ucard{background:#fff;border-radius:18px;padding:16px;display:flex;align-items:center;gap:13px;
  box-shadow:0 2px 10px rgba(17,24,39,.05);border:1px solid #eceef4;margin-bottom:15px}
.ucard .avatar-lg{width:62px;height:62px;border-radius:50%;background:conic-gradient(from 210deg,var(--ap),var(--ap-blue),var(--ap2),var(--ap),var(--ap));
  display:grid;place-items:center;flex:0 0 auto}
.ucard .avatar-lg span{width:52px;height:52px;border-radius:50%;background:#fff;display:grid;place-items:center;font-weight:800;
  font-size:22px;color:var(--ap)}
.ucard .uid-lbl{font-size:11px;font-weight:800;letter-spacing:.14em;color:#9ca3af;text-transform:uppercase}
.ucard .uid{font-size:21px;font-weight:800;color:#111827;letter-spacing:.04em}
.mrow{display:flex;align-items:center;gap:13px;background:#fff;border-radius:14px;padding:15px 16px;margin-bottom:12px;
  box-shadow:0 2px 8px rgba(17,24,39,.04);border:1px solid #eceef4;color:#111827;font-weight:800;font-size:15.5px}
.mrow:hover{transform:translateY(-1px)}
.mrow .mic{width:34px;height:34px;border-radius:10px;background:var(--ap-soft);display:grid;place-items:center;color:var(--ap);font-size:16px;flex:0 0 auto}
.mrow .chev{margin-left:auto;color:#c7cad6}
.mrow.wa{color:#128C4A}
.mrow.wa .mic{background:#e7f9ee;color:#1fa855}
form.mrow{width:100%;border:0;text-align:left;cursor:pointer}
form.mrow .mic{color:#dc2626;background:#fee9e9}
.mrow.ref{background:#f0fdf5;border-color:#bbf7d0;color:#15803d}
.mrow.ref .mic{background:#dcfce7;color:#15803d}

/* ---------- WhatsApp float (V11 redesign: ring + pulse + online dot) ---------- */
.wa-float{position:fixed;right:16px;bottom:calc(var(--anav-h) + 16px);z-index:800;width:56px;height:56px;border-radius:50%;
  background:linear-gradient(145deg,#3ddc78,#12a84a);display:grid;place-items:center;
  box-shadow:0 10px 26px rgba(18,140,70,.45), inset 0 1px 0 rgba(255,255,255,.35);
  border:3px solid #fff;
  transition:transform .15s ease,box-shadow .15s ease;
  animation:wa-pulse 2.4s ease-out infinite}
@keyframes wa-pulse{
  0%{box-shadow:0 10px 26px rgba(18,140,70,.45), 0 0 0 0 rgba(37,211,102,.45)}
  70%{box-shadow:0 10px 26px rgba(18,140,70,.45), 0 0 0 14px rgba(37,211,102,0)}
  100%{box-shadow:0 10px 26px rgba(18,140,70,.45), 0 0 0 0 rgba(37,211,102,0)}
}
.wa-float:hover{transform:scale(1.08);animation-play-state:paused}
.wa-float svg{width:30px;height:30px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.18))}
.wa-float .wa-dot{position:absolute;top:-1px;right:-1px;min-width:16px;height:16px;border-radius:99px;background:#25D366;color:#fff;
  font-size:10px;font-weight:800;display:grid;place-items:center;border:2.5px solid #fff;padding:0 3px;
  box-shadow:0 1px 4px rgba(0,0,0,.18)}
.wa-float .wa-dot::after{content:"";display:block;width:6px;height:6px;border-radius:50%;background:#fff}
/* guest page variant: float sits lower (no bottom nav) */
body.app-guest .wa-float{bottom:20px}
@media (prefers-reduced-motion: reduce){.wa-float{animation:none}}

/* ---------- V18: WhatsApp position (left/right) + Telegram float ---------- */
.wa-float.pos-left{right:auto;left:16px}
.tg-float{position:fixed;z-index:800;width:52px;height:52px;border-radius:50%;
  background:linear-gradient(145deg,#41b9ea,#1c86c7);display:grid;place-items:center;
  border:3px solid #fff;box-shadow:0 10px 24px rgba(28,134,199,.42);transition:transform .15s ease;
  bottom:calc(var(--anav-h) + 86px)}
.tg-float:hover{transform:scale(1.08)}
.tg-float svg{width:26px;height:26px}
.tg-float.pos-right{right:16px}
.tg-float.pos-left{left:16px}
.tg-float.standalone-right{bottom:calc(var(--anav-h) + 16px)}
.tg-float.standalone-left{bottom:calc(var(--anav-h) + 16px)}
body.app-guest .tg-float{bottom:88px}
body.app-guest .tg-float.standalone-right,body.app-guest .tg-float.standalone-left{bottom:20px}

/* ---------- Bottom nav (My Orders | Create Order | Menu) ---------- */
.appnav{position:fixed;left:0;right:0;bottom:0;z-index:700;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);
  border-top:1px solid #e8eaf1;padding:8px 6px calc(9px + env(safe-area-inset-bottom))}
.appnav .in{max-width:560px;margin:0 auto;display:flex;align-items:flex-end;justify-content:space-between;padding:0 14px}
.appnav a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:800;color:#6b7280;
  min-width:74px;padding:4px 2px;border-radius:12px}
.appnav a svg{width:24px;height:24px}
.appnav a.on{color:var(--ap)}
.appnav .cta{margin-top:-30px;background:#fff;border-radius:99px;padding:5px;box-shadow:0 6px 18px rgba(17,24,39,.14)}
.appnav .cta .pill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:118px;height:62px;
  border-radius:99px;background:linear-gradient(135deg,var(--ap-blue2),var(--ap));color:#fff;font-size:14px;font-weight:800;
  box-shadow:0 6px 16px var(--ap-glow)}
.appnav .cta .pill svg{width:21px;height:21px}

/* ---------- Auth card (homepage / login / signup) ---------- */
.auth-hero{padding:12px 0 6px;text-align:center}
.auth-hero .logo-chip{font-size:21px;padding:13px 24px;margin:8px auto 18px}
.auth-tabs{display:flex;background:#e8eaf1;border-radius:99px;padding:5px;margin:0 6px 18px}
.auth-tabs button{flex:1;border:0;background:transparent;font-weight:800;font-size:14.5px;color:#6b7280;padding:11px 6px;border-radius:99px;cursor:pointer;transition:.2s}
.auth-tabs button.on{background:#fff;color:#111827;box-shadow:0 3px 10px rgba(17,24,39,.10)}
.auth-card2{background:#fff;border-radius:20px;padding:22px 20px;box-shadow:0 8px 30px rgba(17,24,39,.08);border:1px solid #eceef4}
.auth-card2 h2{font-size:19px;color:#111827;margin-bottom:4px}
.auth-card2 .sub{font-size:13.5px;color:#6b7280;margin-bottom:16px}
.auth-card2 .input{padding:14px 15px;border-radius:13px;font-size:15.5px;background:#fafafc;border-color:#e8eaf1}
.auth-card2 .input:focus{background:#fff}
.auth-card2 .btn-primary{background:linear-gradient(135deg,var(--ap-blue2),var(--ap));padding:15px;border-radius:13px;font-size:15.5px;box-shadow:0 8px 20px var(--ap-glow)}
.auth-alt{text-align:center;font-size:13.5px;color:#6b7280;margin-top:15px}
.auth-alt b a{color:var(--ap)}
.auth-foot{text-align:center;font-size:12.5px;color:#9ca3af;margin-top:22px}
.auth-foot a{color:#6b7280}

/* ---------- Wallet / Add funds ---------- */
.amt-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.amt-chip{background:#fff;border:1.5px solid #e8eaf1;border-radius:13px;text-align:center;font-weight:800;
  padding:13px 6px;font-size:15px;color:#111827;cursor:pointer;box-shadow:0 2px 6px rgba(17,24,39,.04)}
.amt-chip.on{border-color:var(--ap);background:#f8f8ff;color:var(--ap);outline:1.5px solid var(--ap)}
.pay-hint{background:#fffbea;border:1.5px solid #f5e3a6;color:#776425;border-radius:13px;padding:12px 14px;font-size:13.5px;margin-bottom:14px}
.upi-box{background:#fff;border-radius:14px;padding:15px 16px;box-shadow:0 2px 8px rgba(17,24,39,.04);margin-bottom:14px;
  border:1px solid #eceef4}
.upi-box .lbl{font-size:11.5px;font-weight:800;letter-spacing:.1em;color:#9ca3af;text-transform:uppercase;margin-bottom:3px}
.upi-box .val{font-weight:800;font-size:16.5px;color:#111827;word-break:break-all}

/* ---------- History rows ---------- */
.txrow{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:13px 15px;margin-bottom:10px;
  box-shadow:0 2px 6px rgba(17,24,39,.04);border:1px solid #eceef4}
.txrow .tic{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:16px;flex:0 0 auto}
.txrow .tic.plus{background:#e5f8ec;color:#15803d}
.txrow .tic.minus{background:#fee9e9;color:#dc2626}
.txrow .tmeta{flex:1;min-width:0}
.txrow .tmeta b{display:block;font-size:14px;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txrow .tmeta span{font-size:11.5px;color:#9ca3af}
.txrow .amt{font-weight:800;font-size:14.5px;white-space:nowrap}
.txrow .amt.plus{color:#15803d}
.txrow .amt.minus{color:#dc2626}

/* ---------- Generic app form ---------- */
.aform .field label{color:#374151}
.aform .input,.aform .select,.aform .textarea{border-radius:13px;background:#fff;border-color:#e8eaf1;padding:13px 14px;font-size:15px}
.aform .input:focus,.aform .select:focus,.aform .textarea:focus{border-color:var(--ap);box-shadow:0 0 0 4px var(--ap-soft)}

/* ---------- V18: Indian mobile field (+91 prefix chip) ---------- */
.mob-field{display:flex;align-items:stretch}
.mob-field .mob-cc{display:grid;place-items:center;padding:0 13px;background:#eef0f6;border:1.5px solid #e8eaf1;
  border-right:0;border-radius:13px 0 0 13px;font-weight:800;font-size:14.5px;color:#374151;white-space:nowrap}
.mob-field .input{flex:1;border-radius:0 13px 13px 0;min-width:0}
[data-theme="dark"],body[data-theme="sunset"] .mob-field .mob-cc{background:#0f1526;border-color:#232d4d;color:#c3cae0}

/* ---------- Announce strip ---------- */
.app-announce{max-width:560px;margin:0 auto;padding:0 16px}
.app-announce>div{background:linear-gradient(135deg,var(--ap2),var(--ap));color:#fff;border-radius:13px;padding:10px 15px;
  font-size:13px;font-weight:600;box-shadow:0 6px 16px var(--ap-glow);margin-bottom:14px}

/* flash toasts reuse #toasts from style.css */

/* ---------- Desktop niceties ---------- */
@media(min-width:720px){
  .app-frame{padding-top:22px}
  .apphead{padding-top:10px}
}
/* keep old .card usable inside app pages */
body.app-body .card{border-radius:16px;border-color:#eceef4}
body.app-body .pill-tabs a{border-radius:99px}

/* ---------- V16: logout button-row (form me submit button missing tha) ---------- */
form.mrow-wrap{margin:0;padding:0;display:block}
button.mrow{width:100%;border:1px solid #eceef4;background:#fff;font-family:inherit;font-size:15.5px;font-weight:800;
  color:#111827;text-align:left;cursor:pointer}
button.mrow:hover{transform:translateY(-1px)}
button.mrow .mic{color:#dc2626;background:#fee9e9}

/* ---------- V16: DARK MODE (app ke andar bhi sach me dark) ---------- */
body[data-theme="dark"].app-body{
  --abg:#0b1020;
  --ap-soft:rgba(129,140,248,.14);
  --ap-line:rgba(129,140,248,.30);
  background:var(--abg);
  color:#e8ecf8;
}
body[data-theme="dark"],body[data-theme="sunset"] .logo-chip{background:#1b2337;box-shadow:0 6px 16px rgba(0,0,0,.45)}
body[data-theme="dark"],body[data-theme="sunset"] .icon-btn{background:#151b2e;border-color:#232d4d;color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .icon-btn .dot-badge{border-color:#151b2e}
body[data-theme="dark"],body[data-theme="sunset"] .app-title .back{background:#151b2e;border-color:#232d4d;color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .app-title h1{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .acard{background:#121a30;border-color:#232d4d;box-shadow:0 2px 10px rgba(0,0,0,.35);color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] a.acard,body[data-theme="dark"],body[data-theme="sunset"] label.acard{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .acard .ttl,body[data-theme="dark"],body[data-theme="sunset"] .acard .price{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .acard .ttl small{color:#7c86a6}
body[data-theme="dark"],body[data-theme="sunset"] .acard.selected{background:#161f38}
body[data-theme="dark"],body[data-theme="sunset"] .ucard{background:#121a30;border-color:#232d4d;box-shadow:0 2px 10px rgba(0,0,0,.35)}
body[data-theme="dark"],body[data-theme="sunset"] .ucard .avatar-lg span{background:#1b2337;color:#a5b4fc}
body[data-theme="dark"],body[data-theme="sunset"] .ucard .uid{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .mrow{background:#121a30;border-color:#232d4d;box-shadow:0 2px 8px rgba(0,0,0,.3);color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] button.mrow{background:#121a30;border-color:#232d4d;color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .mrow.ref{background:#0e2418;border-color:#1d4630;color:#6ee7a0}
body[data-theme="dark"],body[data-theme="sunset"] .mrow.ref .mic{background:#123322;color:#6ee7a0}
body[data-theme="dark"],body[data-theme="sunset"] .mrow.wa{color:#4ade80}
body[data-theme="dark"],body[data-theme="sunset"] .txrow{background:#121a30;border-color:#232d4d;box-shadow:0 2px 6px rgba(0,0,0,.3)}
body[data-theme="dark"],body[data-theme="sunset"] .txrow .tmeta b{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .txrow .tmeta span{color:#7c86a6}
body[data-theme="dark"],body[data-theme="sunset"] .appnav{background:rgba(13,18,34,.94);border-top-color:#232d4d}
body[data-theme="dark"],body[data-theme="sunset"] .appnav .cta{background:#151b2e}
body[data-theme="dark"],body[data-theme="sunset"] .osearch{background:#121a30;border-color:#232d4d}
body[data-theme="dark"],body[data-theme="sunset"] .osearch input{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .ochip{background:#121a30;border-color:#232d4d;color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .amt-chip{background:#121a30;border-color:#232d4d;color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .amt-chip.on{background:#161f38}
body[data-theme="dark"],body[data-theme="sunset"] .upi-box{background:#121a30;border-color:#232d4d}
body[data-theme="dark"],body[data-theme="sunset"] .upi-box .val{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .osummary{background:#0e2418;border-color:#1d4630;color:#d3f5e2}
body[data-theme="dark"],body[data-theme="sunset"] .sdetails{background:#121a30;border-color:#232d4d;color:#d6dcef}
body[data-theme="dark"],body[data-theme="sunset"] .sdetails .lbl{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .aform .field label{color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .aform .input,body[data-theme="dark"],body[data-theme="sunset"] .aform .select,body[data-theme="dark"],body[data-theme="sunset"] .aform .textarea{
  background:#0f1526;border-color:#232d4d;color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .aform .input:focus,body[data-theme="dark"],body[data-theme="sunset"] .aform .select:focus,body[data-theme="dark"],body[data-theme="sunset"] .aform .textarea:focus{background:#121a30}
body[data-theme="dark"],body[data-theme="sunset"] .auth-tabs{background:#1b2337}
body[data-theme="dark"],body[data-theme="sunset"] .auth-tabs button{color:#8b94b3}
body[data-theme="dark"],body[data-theme="sunset"] .auth-tabs button.on{background:#242e4d;color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .auth-card2{background:#121a30;border-color:#232d4d}
body[data-theme="dark"],body[data-theme="sunset"] .auth-card2 h2{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .aempty b{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .wa-float{border-color:#0b1020}

/* ============================================================
   V23 — 3D animated menu tiles (Refer & Earn + Install App)
   JS pointer tilt (--rx/--ry) + idle float + shine sweep
   ============================================================ */
.tile3d-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 14px;perspective:900px}
.tile3d{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;
  padding:16px 14px 14px;border-radius:18px;text-decoration:none;overflow:hidden;
  transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .18s ease,box-shadow .25s ease;
  will-change:transform,translate;
  animation:t3-float 3.6s ease-in-out infinite}
.tile3d:nth-child(2){animation-delay:1.1s}
.tile3d:active{transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(.97)}
.tile3d b{font-size:14.5px;font-weight:800;letter-spacing:.01em;transform:translateZ(26px);position:relative}
.tile3d small{font-size:11.5px;line-height:1.35;opacity:.85;transform:translateZ(18px);position:relative}
.tile3d .t3-ico{font-size:24px;line-height:1;margin-bottom:7px;transform:translateZ(34px);
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.22));position:relative;
  animation:t3-pop 3.6s ease-in-out infinite}
.tile3d .t3-shine{position:absolute;inset:-40% -60%;pointer-events:none;opacity:0;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.45) 50%,transparent 58%);
  transform:translateX(-70%)}
.tile3d:hover .t3-shine{opacity:1;animation:t3-shine .9s ease forwards}
.tile3d.tile-ref{color:#0b6b39;background:
  radial-gradient(120% 120% at 15% 12%,rgba(255,255,255,.28),transparent 45%),
  linear-gradient(135deg,#34d399,#0f9d58 55%,#0b7a44);
  box-shadow:0 10px 22px rgba(15,157,88,.32),inset 0 1px 0 rgba(255,255,255,.35)}
.tile3d.tile-ref:hover{box-shadow:0 16px 30px rgba(15,157,88,.42),inset 0 1px 0 rgba(255,255,255,.4)}
.tile3d.tile-app{color:#231a63;background:
  radial-gradient(120% 120% at 15% 12%,rgba(255,255,255,.3),transparent 45%),
  linear-gradient(135deg,#8b7cf8,var(--ap) 55%,#5b21b6);
  box-shadow:0 10px 22px var(--ap-glow),inset 0 1px 0 rgba(255,255,255,.35)}
.tile3d.tile-app:hover{box-shadow:0 16px 30px var(--ap-glow),inset 0 1px 0 rgba(255,255,255,.4)}
@keyframes t3-float{0%,100%{translate:0 0}50%{translate:0 -4px}}
@keyframes t3-pop{0%,100%{transform:translateZ(34px) rotate(0)}50%{transform:translateZ(40px) rotate(-5deg)}}
@keyframes t3-shine{0%{transform:translateX(-70%)}100%{transform:translateX(70%)}}
@media (prefers-reduced-motion: reduce){
  .tile3d,.tile3d .t3-ico{animation:none}
  .tile3d{transition:none}
}
body[data-theme="dark"],body[data-theme="sunset"] .tile3d.tile-ref{color:#eafff3;background:
  radial-gradient(120% 120% at 15% 12%,rgba(255,255,255,.14),transparent 45%),
  linear-gradient(135deg,#15803d,#0b5c33)}
body[data-theme="dark"],body[data-theme="sunset"] .tile3d.tile-app{color:#f1edff;background:
  radial-gradient(120% 120% at 15% 12%,rgba(255,255,255,.14),transparent 45%),
  linear-gradient(135deg,#5b3fc4,#3b1d8f)}

/* ============================================================
   V23 — Install App page (photo-matched card + notifications)
   ============================================================ */
.ia-wrap{display:flex;flex-direction:column;align-items:center;gap:18px;padding:26px 6px 30px}
.ia-card{width:100%;max-width:400px;background:#fff;border-radius:28px;padding:40px 26px 26px;
  box-shadow:0 18px 50px rgba(17,24,39,.10),0 2px 8px rgba(17,24,39,.05);
  text-align:center;position:relative;animation:ia-in .45s cubic-bezier(.2,.8,.25,1) both}
@keyframes ia-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.ia-icon-wrap{width:104px;height:104px;margin:0 auto 18px;border-radius:32px;background:#fff;
  box-shadow:0 10px 26px rgba(17,24,39,.14),0 2px 6px rgba(17,24,39,.08);
  display:grid;place-items:center}
.ia-icon{width:88px;height:88px;border-radius:24px;object-fit:cover;display:block;
  animation:ia-bob 4s ease-in-out infinite}
@keyframes ia-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion: reduce){.ia-icon{animation:none}}
.ia-name{font-size:30px;font-weight:800;color:#111827;letter-spacing:-.02em;margin:0 0 8px}
.ia-verified{display:flex;align-items:center;justify-content:center;gap:7px;font-size:14.5px;
  color:#3c4257;font-weight:600;margin-bottom:26px}
.ia-install{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;
  padding:16px 20px;border:0;border-radius:999px;cursor:pointer;
  background:#0b8a53;color:#fff;font-size:16px;font-weight:800;letter-spacing:.06em;font-family:inherit;
  box-shadow:0 10px 24px rgba(11,138,83,.35);transition:transform .15s ease,box-shadow .2s ease,background .2s}
.ia-install:hover{background:#0a7c4b;box-shadow:0 12px 28px rgba(11,138,83,.45)}
.ia-install:active{transform:scale(.98)}
.ia-install.installed{background:#0b8a53;opacity:.92}
.ia-trust{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:16px;
  font-size:12.5px;color:#8a90a4;font-weight:500}
.ia-ios{margin-top:18px;text-align:left;background:#f5f7fb;border:1px solid #e3e8f2;border-radius:14px;
  padding:14px 16px;font-size:13.5px;color:#3c4257}
.ia-ios ol{margin:8px 0 0;padding-left:20px;display:grid;gap:6px}
.hidden{display:none!important}
/* notifications card */
.ia-card.ia-notif{padding:20px 20px 18px;text-align:left}
.ia-notif-head{display:flex;align-items:center;gap:12px}
.ia-bell{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#fef3c7,#fde68a);
  display:grid;place-items:center;font-size:19px;flex:0 0 auto}
.ia-notif-head b{display:block;font-size:14.5px;color:#111827}
.ia-notif-head small{display:block;font-size:11.5px;color:#8a90a4;margin-top:2px}
.ia-dot{width:10px;height:10px;border-radius:50%;background:#c7cad6;margin-left:auto;flex:0 0 auto}
.ia-dot.on{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.ia-dot.off{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.15)}
.ia-dot.warn{background:#94a3b8}
.ia-notif-sub{font-size:13px;color:#5b6272;margin:12px 0 14px;line-height:1.45}
.ia-notif-actions{display:flex;gap:10px}
.ia-enable{flex:1;padding:13px 14px;border:0;border-radius:13px;cursor:pointer;
  background:linear-gradient(135deg,var(--ap-blue2,#4f46e5),var(--ap,#6d28d9));color:#fff;
  font-size:14.5px;font-weight:800;font-family:inherit;box-shadow:0 8px 18px var(--ap-glow)}
.ia-enable:active{transform:scale(.98)}
.ia-enable.dim{opacity:.55;cursor:not-allowed}
.ia-disable{padding:13px 16px;border:1px solid #e5e7f0;background:#fff;border-radius:13px;
  color:#6b7280;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer}
.ia-hint-warn{margin-top:12px;font-size:12px;color:#b45309;background:#fffbeb;
  border:1px solid #fde68a;border-radius:10px;padding:9px 12px;line-height:1.5}
.ia-back{font-size:13.5px;color:#6d6f8a;text-decoration:none;font-weight:600}
body[data-theme="dark"],body[data-theme="sunset"] .ia-card{background:#121a30;box-shadow:0 18px 50px rgba(0,0,0,.45)}
body[data-theme="dark"],body[data-theme="sunset"] .ia-name{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .ia-verified{color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .ia-trust{color:#7c86a6}
body[data-theme="dark"],body[data-theme="sunset"] .ia-card.ia-notif{background:#121a30}
body[data-theme="dark"],body[data-theme="sunset"] .ia-notif-head b{color:#e8ecf8}
body[data-theme="dark"],body[data-theme="sunset"] .ia-notif-sub{color:#a7b0cc}
body[data-theme="dark"],body[data-theme="sunset"] .ia-bell{background:#3a2f12}
body[data-theme="dark"],body[data-theme="sunset"] .ia-disable{background:#121a30;border-color:#232d4d;color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .ia-ios{background:#0f1526;border-color:#232d4d;color:#c3cae0}
body[data-theme="dark"],body[data-theme="sunset"] .ia-hint-warn{background:#241b06;border-color:#5b4708;color:#fbbf24}
body[data-theme="dark"],body[data-theme="sunset"] .ia-back{color:#8b94b3}

/* ============================================================
   V23 — Homepage Only code container + auto YouTube embed
   ============================================================ */
.int-home-wrap{width:100%;margin:0 0 14px;font-size:14px;line-height:1.55}
.int-home-wrap iframe{max-width:100%;border-radius:12px}
.int-home-wrap img{max-width:100%;height:auto}
.int-embed{display:block;position:relative;width:100%;padding-bottom:56.25%;height:0;
  border-radius:14px;overflow:hidden;margin:10px 0;background:#000;
  box-shadow:0 10px 26px rgba(17,24,39,.18)}
.int-embed iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
.int-home-wrap a{color:var(--ap,#6d28d9);word-break:break-all}

/* ---------- V41.15 — 3D themes (Sky Float/Candy Hearts/Mint Pop/Sunset): app accents + transparent body ---------- */
body[data-theme="skyfloat"]{
  --ap:#0ea5e9; --ap2:#0284c7; --ap-blue:#38bdf8; --ap-blue2:#7dd3fc;
  --ap-soft:rgba(14,165,233,.12); --ap-line:rgba(14,165,233,.26); --ap-glow:rgba(14,165,233,.30);
}
body[data-theme="candyhearts"]{
  --ap:#ec4899; --ap2:#db2777; --ap-blue:#fb7185; --ap-blue2:#fda4af;
  --ap-soft:rgba(236,72,153,.11); --ap-line:rgba(236,72,153,.25); --ap-glow:rgba(236,72,153,.28);
}
body[data-theme="mintpop"]{
  --ap:#14b8a6; --ap2:#0d9488; --ap-blue:#34d399; --ap-blue2:#6ee7b7;
  --ap-soft:rgba(20,184,166,.11); --ap-line:rgba(20,184,166,.25); --ap-glow:rgba(20,184,166,.28);
}
body[data-theme="sunset"]{
  --ap:#fb7185; --ap2:#f43f5e; --ap-blue:#fbbf24; --ap-blue2:#fcd34d;
  --ap-soft:rgba(251,113,133,.13); --ap-line:rgba(251,113,133,.28); --ap-glow:rgba(251,113,133,.35);
}
/* app-body apna opaque bg hata deta hai — html base color + .t3d-bg animated layer dikhti hai */
body[data-theme="sunset"].app-body,body[data-theme="skyfloat"].app-body,body[data-theme="candyhearts"].app-body,body[data-theme="mintpop"].app-body{
  --abg:transparent;background:transparent;
}

/* ============ V42 — order rows: copy ID + order again actions ============ */
.oacts{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;align-self:center}
.oact{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;
  border:1.5px solid var(--line);background:#fff;color:#6f6a92;cursor:pointer;transition:.15s;padding:0}
.oact:hover{border-color:var(--ap);color:var(--ap);transform:translateY(-1px)}
.oact:active{transform:scale(.94)}
.oact-again{color:#0b8a53;border-color:#b7e4d0;background:#f0fdf7;text-decoration:none}
.oact-again:hover{border-color:#10b981;color:#0b8a53;background:#e3faf0}
[data-theme="dark"] .oact{background:#1c2030;border-color:#2c3248;color:#9aa3b2}
[data-theme="dark"] .oact-again{background:#0c2a1e;border-color:#1d4630;color:#4ade80}
/* V42 fix — order rows ab DIV hai (actions ke saath): flex layout do */
div.acard.orow{display:flex;align-items:center;gap:11px}
div.acard.orow>a:first-child{flex:1;min-width:0}
