/* ============================================================
   PayCollect — Premium Redesign
   Mobile-First · Colorful · Animated · Dynamic
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:       #0a0a17;
  --bg2:      #10101f;
  --bg3:      #181830;
  --teal:     #14f0c2;
  --teal2:    #00c49a;
  --purple:   #8b5cf6;
  --pink:     #f472b6;
  --gold:     #fbbf24;
  --blue:     #60a5fa;
  --green:    #22d3a3;
  --red:      #f87171;
  --text:     #f5f5ff;
  --text2:    #d4d8f0;
  --muted:    #8b91a8;
  --border:   rgba(255,255,255,0.09);
  --glass:    rgba(255,255,255,0.05);
  --shadow:   0 24px 70px rgba(0,0,0,.6);
  --r:        18px;
  --r2:       14px;
  --t:        all .28s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-tap-highlight-color:transparent; }
body {
  font-family:'Inter','Hind Siliguri',sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  line-height:1.6;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}

/* ── Animated Background ── */
body::before {
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 15%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(0,229,179,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(236,72,153,.06) 0%, transparent 70%);
}
body::after {
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:36px 36px;
}

/* ── Layout ── */
.wrap { position:relative; z-index:1; }
.container { max-width:480px; margin:0 auto; padding:16px 14px 100px; position:relative; z-index:1; }

/* ── Header ── */
.site-header {
  text-align:center;
  padding:28px 16px 16px;
  position:relative; z-index:1;
  animation:fadeDown .6s ease;
}
.logo-pill {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:50px;
  padding:8px 18px 8px 10px;
  margin-bottom:8px;
}
.logo-icon {
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(135deg,var(--purple),var(--teal));
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
  box-shadow:0 0 20px rgba(124,58,237,.4);
}
.logo-pill h1 {
  font-size:20px; font-weight:800;
  background:linear-gradient(90deg,var(--teal),var(--purple));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.tagline { font-size:12px; color:var(--muted); letter-spacing:.5px; }

/* ── Steps ── */
.steps {
  display:flex; align-items:center; justify-content:center;
  margin:0 0 20px; padding:0 10px;
}
.step { display:flex; align-items:center; flex:1; }
.step-dot {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800;
  border:2px solid var(--border);
  background:var(--bg3);
  color:var(--muted);
  flex-shrink:0;
  transition:var(--t);
  font-family:'Inter',sans-serif;
}
.step.active .step-dot { border-color:var(--teal); color:var(--teal); background:rgba(0,229,179,.1); box-shadow:0 0 16px rgba(0,229,179,.25); }
.step.done .step-dot   { border-color:var(--teal); background:var(--teal); color:var(--bg); }
.step-line { flex:1; height:2px; background:var(--border); transition:var(--t); }
.step.done .step-line  { background:linear-gradient(90deg,var(--teal),var(--purple)); }

/* ── Cards ── */
.card {
  background:var(--bg3);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:22px 18px;
  animation:fadeUp .45s ease;
  position:relative; overflow:hidden;
}
.card::before {
  content:''; position:absolute; inset:0; border-radius:var(--r); pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.02) 0%, transparent 60%);
}
.card + .card { margin-top:14px; }

.card-title {
  display:flex; align-items:center; gap:10px;
  font-size:16px; font-weight:700;
  margin-bottom:18px; color:var(--text);
}
.card-icon {
  width:34px; height:34px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px;
  background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(0,229,179,.15));
  border:1px solid rgba(124,58,237,.25);
}

/* ── Notice Banner ── */
.notice {
  background:linear-gradient(135deg,rgba(124,58,237,.1),rgba(0,229,179,.07));
  border:1px solid rgba(124,58,237,.2);
  border-radius:var(--r2);
  padding:16px 18px 16px 22px;
  margin-bottom:16px;
  font-size:13.5px; color:var(--text2); line-height:1.7;
  animation:fadeUp .4s ease;
  position:relative;
}
.notice::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; border-radius:3px 0 0 3px; background:linear-gradient(180deg,var(--purple),var(--teal)); }
.notice-title { font-weight:700; color:var(--teal); font-size:13px; margin-bottom:5px; display:flex; align-items:center; gap:5px; }

/* ── Amount Display ── */
.amount-card {
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(0,229,179,.08));
  border:1px solid rgba(124,58,237,.2);
  border-radius:var(--r2);
  padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px;
}
.amount-label { font-size:12px; color:var(--muted); font-weight:500; }
.amount-sub   { font-size:11px; color:var(--muted); margin-top:3px; }
.amount-value {
  font-family:'Inter',sans-serif; font-size:28px; font-weight:800;
  background:linear-gradient(90deg,var(--teal),var(--purple));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* ── Form Elements ── */
.fg { margin-bottom:16px; }
.fl {
  display:block; font-size:11.5px; font-weight:700;
  color:var(--muted); margin-bottom:7px;
  text-transform:uppercase; letter-spacing:.6px;
}
.fl .req { color:var(--pink); margin-left:3px; }
.fi-wrap { position:relative; }
.fi-pre  { position:absolute; left:13px; top:50%; transform:translateY(-50%); font-size:14px; color:var(--muted); pointer-events:none; }
.fi {
  width:100%;
  background:rgba(255,255,255,.04);
  border:1.5px solid var(--border);
  border-radius:var(--r2);
  padding:13px 14px 13px 13px;
  color:var(--text);
  font-family:'Inter','Hind Siliguri',sans-serif;
  font-size:15px; outline:none;
  transition:var(--t);
  -webkit-appearance:none;
}
.fi.has-pre { padding-left:38px; }
.fi::placeholder { color:rgba(107,114,128,.45); font-size:14px; }
.fi:focus { border-color:var(--teal); background:rgba(0,229,179,.04); box-shadow:0 0 0 3px rgba(0,229,179,.1); }
.fi.err   { border-color:var(--red); }
textarea.fi { resize:none; }
select.fi   { cursor:pointer; }
.f-hint  { font-size:11px; color:var(--muted); margin-top:4px; }
.f-err   { font-size:11px; color:var(--red); margin-top:4px; display:none; }
.f-err.show { display:block; }

/* ── Optional divider ── */
.sec-divider {
  display:flex; align-items:center; gap:10px; margin:18px 0 14px;
  font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; font-weight:600;
}
.sec-divider::before,.sec-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 22px; border-radius:var(--r2);
  font-family:'Inter','Hind Siliguri',sans-serif;
  font-size:15px; font-weight:700; cursor:pointer; border:none; outline:none;
  transition:var(--t); position:relative; overflow:hidden; text-decoration:none;
  -webkit-tap-highlight-color:transparent; letter-spacing:.2px;
}
.btn-full { width:100%; }
.btn-primary {
  background:linear-gradient(135deg,var(--teal),var(--purple));
  color:#fff;
  box-shadow:0 8px 28px rgba(124,58,237,.35);
}
.btn-primary:hover  { transform:translateY(-2px); box-shadow:0 12px 36px rgba(124,58,237,.5); }
.btn-primary:active { transform:translateY(0); }
.btn-outline {
  background:transparent;
  border:1.5px solid var(--border);
  color:var(--muted);
}
.btn-outline:hover { border-color:var(--teal); color:var(--teal); }
.btn-sm { padding:9px 16px; font-size:13px; border-radius:10px; }

/* ── Payment Method Cards ── */
.pm-section-label {
  font-size:11px; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:1.2px;
  margin:18px 0 10px; display:flex; align-items:center; gap:8px;
}
.pm-section-label::after { content:''; flex:1; height:1px; background:var(--border); }
.pm-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pm-card {
  background:rgba(255,255,255,.03);
  border:1.5px solid var(--border);
  border-radius:var(--r2);
  padding:16px 12px 14px;
  text-align:center; cursor:pointer;
  transition:var(--t); position:relative; overflow:hidden;
  -webkit-tap-highlight-color:transparent;
}
.pm-card:hover  { border-color:rgba(0,229,179,.35); background:rgba(0,229,179,.05); transform:translateY(-2px); }
.pm-card.sel    { border-color:var(--teal); background:rgba(0,229,179,.08); box-shadow:0 0 0 3px rgba(0,229,179,.15); }
.pm-logo {
  width:52px; height:52px; border-radius:14px; margin:0 auto 10px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:26px;
  overflow:hidden;
}
.pm-logo img { width:100%; height:100%; object-fit:cover; border-radius:13px; }
.pm-name { font-size:12px; font-weight:700; color:var(--text); line-height:1.3; }
.pm-badge {
  position:absolute; top:7px; right:7px;
  font-size:9px; font-weight:700; padding:2px 6px; border-radius:20px;
  background:rgba(124,58,237,.2); color:#a5b4fc; border:1px solid rgba(124,58,237,.25);
  text-transform:uppercase; letter-spacing:.5px;
}

/* ── Info Rows ── */
.info-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid var(--border);
  font-size:13.5px;
}
.info-row:last-child { border-bottom:none; }
.info-row .lbl { color:var(--muted); }
.info-row .val { color:var(--text); font-weight:600; text-align:right; max-width:62%; word-break:break-all; }

/* ── Status Badge ── */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 12px; border-radius:20px;
  font-size:12px; font-weight:700;
}
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ── Timeline ── */
.timeline { position:relative; padding-left:26px; }
.timeline::before { content:''; position:absolute; left:8px; top:8px; bottom:8px; width:2px; background:var(--border); }
.tl-item { position:relative; padding-bottom:22px; }
.tl-item:last-child { padding-bottom:0; }
.tl-dot {
  position:absolute; left:-22px; top:3px;
  width:16px; height:16px; border-radius:50%;
  border:2px solid var(--border); background:var(--bg2);
  display:flex; align-items:center; justify-content:center; font-size:7px;
}
.tl-dot.done { background:var(--teal); border-color:var(--teal); color:var(--bg); }
.tl-label { font-size:14px; font-weight:700; }
.tl-time  { font-size:11px; color:var(--muted); margin-top:2px; }
.tl-msg   { font-size:12.5px; color:var(--text2); margin-top:4px; }

/* ── Alerts ── */
.alert {
  padding:13px 16px; border-radius:var(--r2); font-size:13px;
  margin-bottom:14px; display:flex; align-items:flex-start; gap:9px;
  animation:fadeUp .3s ease; line-height:1.5;
}
.alert-success { background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25); color:#6ee7b7; }
.alert-error   { background:rgba(239,68,68,.1);  border:1px solid rgba(239,68,68,.25);  color:#fca5a5; }
.alert-info    { background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.25); color:#93c5fd; }
.alert-warning { background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.25); color:#fcd34d; }

/* ── Number Display Block ── */
.num-block {
  border-radius:var(--r2); padding:20px 18px; text-align:center; margin-bottom:16px;
  background:linear-gradient(135deg,rgba(0,229,179,.08),rgba(124,58,237,.06));
  border:1px solid rgba(0,229,179,.2);
}
.num-type  { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:7px; font-weight:600; }
.num-value { font-family:'Inter',sans-serif; font-size:26px; font-weight:800; color:var(--text); letter-spacing:3px; }

/* ── Result Pages ── */
.result-wrap { text-align:center; padding:10px 0 20px; }
.result-icon {
  width:82px; height:82px; border-radius:50%; margin:0 auto 20px;
  display:flex; align-items:center; justify-content:center; font-size:36px;
  animation:popIn .55s cubic-bezier(.175,.885,.32,1.275);
}
.result-icon.ok  { background:rgba(16,185,129,.12); border:2px solid rgba(16,185,129,.35); }
.result-icon.err { background:rgba(239,68,68,.12);  border:2px solid rgba(239,68,68,.35); }
.result-icon.pnd { background:rgba(245,158,11,.12); border:2px solid rgba(245,158,11,.35); }
.result-title { font-family:'Inter',sans-serif; font-size:22px; font-weight:800; margin-bottom:8px; }
.result-sub   { font-size:14px; color:var(--text2); line-height:1.7; margin-bottom:22px; }

/* ── Tracking ID block ── */
.tid-block {
  background:linear-gradient(135deg,rgba(245,158,11,.08),rgba(124,58,237,.06));
  border:1px solid rgba(245,158,11,.2); border-radius:var(--r2);
  padding:18px; margin-bottom:18px; text-align:center;
}
.tid-label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:6px; font-weight:600; }
.tid-value { font-family:'Inter',sans-serif; font-size:22px; font-weight:800; color:#fcd34d; letter-spacing:3px; }

/* ── Track Search ── */
.track-hero { text-align:center; padding:20px 0 6px; font-size:56px; animation:float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Float Support ── */
.float-sup { position:fixed; bottom:22px; right:18px; z-index:1000; }
.float-btn {
  width:54px; height:54px; border-radius:50%;
  background:linear-gradient(135deg,var(--teal),var(--purple));
  display:flex; align-items:center; justify-content:center; font-size:22px;
  cursor:pointer; box-shadow:0 8px 30px rgba(124,58,237,.5);
  transition:var(--t); border:none; color:#fff;
  animation:gpulse 2.5s ease infinite;
}
.float-btn:hover { transform:scale(1.1); }
@keyframes gpulse { 0%,100%{box-shadow:0 8px 30px rgba(124,58,237,.5)} 50%{box-shadow:0 8px 50px rgba(124,58,237,.8),0 0 80px rgba(0,229,179,.2)} }
.sup-popup {
  position:absolute; bottom:66px; right:0;
  background:var(--bg3); border:1px solid var(--border);
  border-radius:var(--r); padding:14px; min-width:188px;
  box-shadow:var(--shadow); display:none; animation:popIn .2s ease;
}
.sup-popup.open { display:block; }
.sup-item {
  display:flex; align-items:center; gap:12px;
  padding:10px 11px; border-radius:10px;
  text-decoration:none; color:var(--text);
  font-size:14px; font-weight:500; transition:var(--t);
}
.sup-item:hover { background:rgba(255,255,255,.05); }
.sup-sicon { width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; }

/* ── Footer ── */
.site-footer {
  text-align:center; padding:18px 16px 24px;
  font-size:12px; color:var(--muted); position:relative; z-index:1;
}
.site-footer a { color:var(--teal); text-decoration:none; }

/* ── Spinner / Skeleton ── */
.spinner {
  width:32px; height:32px; border-radius:50%;
  border:3px solid rgba(0,229,179,.2); border-top-color:var(--teal);
  animation:spin .75s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.skeleton {
  background:linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.07) 50%,rgba(255,255,255,.04) 75%);
  background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Animations ── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:translateY(0)} }
@keyframes popIn    { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }

/* ── Ripple ── */
@keyframes ripple { to{transform:translate(-50%,-50%) scale(4);opacity:0} }

/* ── Copy Button ── */
.copy-btn {
  display:inline-flex; align-items:center; gap:5px;
  background:rgba(0,229,179,.1); border:1px solid rgba(0,229,179,.25);
  color:var(--teal); border-radius:8px; padding:6px 14px;
  font-size:12px; font-weight:600; cursor:pointer; transition:var(--t); margin-top:10px;
}
.copy-btn:hover { background:rgba(0,229,179,.18); }

/* ── Toggle (Admin reuse) ── */
.toggle { position:relative; display:inline-flex; align-items:center; cursor:pointer; gap:10px; }
.toggle input { opacity:0; width:0; height:0; position:absolute; }
.toggle-track { width:44px; height:24px; background:rgba(255,255,255,.08); border-radius:12px; transition:var(--t); border:1px solid var(--border); position:relative; flex-shrink:0; }
.toggle input:checked + .toggle-track { background:rgba(0,229,179,.25); border-color:var(--teal); }
.toggle-thumb { position:absolute; left:3px; top:3px; width:18px; height:18px; background:var(--muted); border-radius:50%; transition:var(--t); }
.toggle input:checked ~ .toggle-thumb { left:23px; background:var(--teal); }
.toggle-label { font-size:14px; color:var(--text); }

/* ── Responsive ── */
@media(max-width:380px) {
  .pm-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .pm-logo { width:44px; height:44px; font-size:22px; }
  .pm-name { font-size:11px; }
  .amount-value { font-size:24px; }
  .card { padding:18px 14px; }
  .num-value { font-size:22px; letter-spacing:2px; }
}
@media(max-width:320px) {
  .pm-grid { grid-template-columns:1fr 1fr; }
  .container { padding:12px 10px 90px; }
}

/* ============================================================
   LIGHT THEME (default)
   ============================================================ */
:root[data-theme="light"] {
  --bg:       #eef2ff;
  --bg2:      #ffffff;
  --bg3:      #ffffff;
  --teal:     #0ea672;
  --teal2:    #047857;
  --purple:   #6d28d9;
  --pink:     #db2777;
  --gold:     #d97706;
  --blue:     #2563eb;
  --green:    #059669;
  --red:      #dc2626;
  --text:     #0b1220;
  --text2:    #1f2937;
  --muted:    #475569;
  --border:   rgba(15,23,42,0.10);
  --glass:    rgba(255,255,255,0.65);
  --shadow:   0 20px 60px rgba(80,52,180,.18);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at -10% -10%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #fce7f3 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 120%, #ccfbf1 0%, transparent 60%),
    linear-gradient(180deg, #f5f3ff 0%, #eff6ff 100%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 55% 45% at 12% 14%, rgba(124,58,237,.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 86%, rgba(14,166,114,.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 50% 50%, rgba(236,72,153,.10) 0%, transparent 70%);
}
:root[data-theme="light"] body::after {
  background-image:radial-gradient(rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size:32px 32px;
  opacity:.7;
}
:root[data-theme="light"] .site-header { animation: fadeDown .6s ease; }
:root[data-theme="light"] .logo-pill {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(124,58,237,0.18);
  box-shadow: 0 10px 30px rgba(80,52,180,.12);
  backdrop-filter: blur(8px);
}
:root[data-theme="light"] .logo-icon {
  box-shadow: 0 6px 20px rgba(124,58,237,.45), 0 0 0 4px rgba(124,58,237,.10);
}
:root[data-theme="light"] .tagline { color:#475569; }

:root[data-theme="light"] .card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid rgba(124,58,237,0.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 18px 50px -18px rgba(80,52,180,.25),
    0 4px 14px rgba(15,23,42,.05);
}
:root[data-theme="light"] .card::before {
  background: linear-gradient(135deg, rgba(124,58,237,.05) 0%, rgba(14,166,114,.03) 60%, transparent 100%);
}
:root[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(14,166,114,.14));
  border: 1px solid rgba(124,58,237,.20);
  color:#4c1d95;
}
:root[data-theme="light"] .card-title { color:#0b1220; }

:root[data-theme="light"] .notice {
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(14,166,114,.08));
  border: 1px solid rgba(124,58,237,.18);
  color:#1f2937;
}
:root[data-theme="light"] .notice-title { color:#6d28d9; }

:root[data-theme="light"] .amount-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  border: 1px solid rgba(124,58,237,.18);
  box-shadow: 0 10px 30px -12px rgba(124,58,237,.30);
}

:root[data-theme="light"] .fl { color:#475569; }
:root[data-theme="light"] .fi {
  background:#ffffff;
  border: 1.5px solid rgba(15,23,42,0.12);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
:root[data-theme="light"] .fi:focus {
  border-color: var(--teal);
  background:#ffffff;
  box-shadow: 0 0 0 4px rgba(14,166,114,.15), 0 6px 18px -6px rgba(14,166,114,.25);
}
:root[data-theme="light"] .fi::placeholder { color:#9ca3af; }

:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #0ea672 100%);
  box-shadow: 0 12px 30px -8px rgba(124,58,237,.55), 0 6px 18px -6px rgba(236,72,153,.35);
}
:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 18px 40px -10px rgba(124,58,237,.65), 0 8px 22px -8px rgba(236,72,153,.45);
}
:root[data-theme="light"] .btn-outline { color:#4c1d95; border-color: rgba(124,58,237,.25); }
:root[data-theme="light"] .btn-outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(14,166,114,.06); }

:root[data-theme="light"] .pm-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1.5px solid rgba(15,23,42,0.10);
  box-shadow: 0 6px 18px -8px rgba(80,52,180,.18);
}
:root[data-theme="light"] .pm-card:hover {
  border-color: rgba(14,166,114,.45);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}
:root[data-theme="light"] .pm-card.sel {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,166,114,.22), 0 14px 30px -10px rgba(14,166,114,.30);
}
:root[data-theme="light"] .pm-logo {
  background: linear-gradient(135deg, #f5f3ff, #ecfeff);
  border-color: rgba(124,58,237,.18);
}

:root[data-theme="light"] .step-dot { background:#ffffff; }
:root[data-theme="light"] .step.active .step-dot {
  background: linear-gradient(135deg, #ecfeff, #f5f3ff);
  box-shadow: 0 0 0 4px rgba(14,166,114,.15);
}

:root[data-theme="light"] .num-value,
:root[data-theme="light"] .amount-value {
  background: linear-gradient(90deg, #6d28d9, #ec4899, #0ea672);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

:root[data-theme="light"] .site-footer { color:#64748b; }
:root[data-theme="light"] .site-footer a { color:#6d28d9; }
:root[data-theme="light"] .theme-toggle {
  background:#ffffff;
  border:1px solid rgba(124,58,237,.18);
  box-shadow: 0 6px 16px -6px rgba(80,52,180,.30);
}

/* ── Entry Popup Modal ── */
.entry-popup-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(8, 8, 24, 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0;
  animation: epFadeIn .35s ease forwards;
}
:root[data-theme="light"] .entry-popup-overlay {
  background: rgba(30, 18, 80, 0.45);
}
.entry-popup-overlay.closing { animation: epFadeOut .25s ease forwards; }
@keyframes epFadeIn  { to { opacity:1; } }
@keyframes epFadeOut { to { opacity:0; } }

.entry-popup {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 22px;
  max-width: 440px; width: 100%;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: scale(.85) translateY(20px); opacity: 0;
  animation: epPopIn .45s cubic-bezier(.175,.885,.32,1.275) .05s forwards;
  max-height: 86vh; overflow: auto;
}
:root[data-theme="light"] .entry-popup {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid rgba(124,58,237,.18);
  box-shadow: 0 30px 80px -10px rgba(80,52,180,.45);
}
@keyframes epPopIn { to { transform: scale(1) translateY(0); opacity:1; } }

.entry-popup-head {
  display:flex; align-items:center; gap:12px;
  margin-bottom: 14px;
}
.entry-popup-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  box-shadow: 0 8px 22px -6px rgba(124,58,237,.55);
}
.entry-popup-title {
  font-size: 18px; font-weight: 800;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.entry-popup-body {
  font-size: 14px; line-height: 1.75;
  color: var(--text2);
}
.entry-popup-body p { margin: 0 0 8px; }
.entry-popup-body a { color: var(--teal); text-decoration: underline; }
.entry-popup-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text); cursor: pointer; font-size: 16px;
  display:inline-flex; align-items:center; justify-content:center;
  transition: var(--t);
}
.entry-popup-close:hover { transform: rotate(90deg); border-color: var(--red); color: var(--red); }
.entry-popup-actions { margin-top: 16px; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  position:absolute; top:14px; right:14px;
  width:38px; height:38px; border-radius:50%;
  background:var(--glass); border:1px solid var(--border);
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  font-size:16px; transition:var(--t); color:var(--text);
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }
.tt-icon { display:none; }
:root[data-theme="light"] .tt-moon { display:inline; }
:root[data-theme="dark"]  .tt-sun  { display:inline; }
.site-header { position:relative; }

/* ============================================================
   PAYMENT METHOD CARD — animated check + active highlight
   ============================================================ */
.pm-card { transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .2s, background .2s, box-shadow .2s; }
.pm-card .pm-check {
  position:absolute; top:7px; left:7px;
  width:22px; height:22px; border-radius:50%;
  background:var(--teal); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800;
  transform:scale(0); transition:transform .25s cubic-bezier(.175,.885,.32,1.275);
  box-shadow:0 0 0 4px rgba(0,229,179,.18);
}
.pm-card.sel .pm-check { transform:scale(1); }
.pm-card.sel { transform:translateY(-3px) scale(1.02); box-shadow:0 0 0 3px rgba(0,229,179,.25), 0 12px 30px rgba(0,229,179,.18); }
.pm-card.sel .pm-logo { animation:pulseLogo .6s ease; }
@keyframes pulseLogo { 0%{transform:scale(1)} 50%{transform:scale(1.12)} 100%{transform:scale(1)} }

/* ============================================================
   SUCCESS PAGE — confetti, animated check, QR
   ============================================================ */
.success-card { overflow:visible; }
.success-circle {
  width:100px; height:100px; border-radius:50%; margin:0 auto 18px;
  background:linear-gradient(135deg, rgba(16,185,129,.12), rgba(0,229,179,.18));
  border:3px solid rgba(16,185,129,.4);
  display:flex; align-items:center; justify-content:center;
  animation:popIn .55s cubic-bezier(.175,.885,.32,1.275);
  box-shadow:0 0 0 8px rgba(16,185,129,.08), 0 0 40px rgba(16,185,129,.25);
}
.checkmark { width:54px; height:54px; }
.checkmark-circle {
  stroke:var(--green); stroke-width:3; stroke-dasharray:166; stroke-dashoffset:166;
  animation: drawCircle .7s ease forwards;
}
.checkmark-check {
  stroke:var(--green); stroke-width:4; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:48; stroke-dashoffset:48;
  animation: drawCheck .35s .55s ease forwards;
}
@keyframes drawCircle { to{stroke-dashoffset:0} }
@keyframes drawCheck  { to{stroke-dashoffset:0} }

.qr-box {
  background:#fff; border-radius:16px; padding:14px;
  margin: 8px auto 18px; display:inline-block;
  box-shadow:0 8px 30px rgba(0,0,0,.12);
  animation:fadeUp .5s .4s ease both;
}
.qr-box img { display:block; width:200px; height:200px; }
.qr-cap { font-size:12px; color:var(--muted); margin-top:8px; font-weight:600; }

/* Confetti */
.confetti-wrap { position:fixed; inset:0; pointer-events:none; z-index:50; overflow:hidden; }
.confetti {
  position:absolute; top:-20px; left:50%;
  width:10px; height:14px; background:var(--c);
  border-radius:2px; opacity:0;
  animation: confettiFall 2.4s var(--d) ease-out forwards;
  transform:translateX(var(--x));
}
@keyframes confettiFall {
  0%   { transform: translate(0,0) rotate(0); opacity:1; }
  100% { transform: translate(var(--x), 105vh) rotate(720deg); opacity:0; }
}

/* ============================================================
   ADMIN — Mark / Bulk SMS controls
   ============================================================ */
.mark-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 10px; border-radius:8px; font-size:11px; font-weight:700;
  cursor:pointer; border:1px solid var(--border); background:transparent;
  color:var(--muted); transition:var(--t);
}
.mark-btn:hover { border-color:var(--gold); color:var(--gold); }
.mark-btn.marked { background:rgba(245,158,11,.18); border-color:var(--gold); color:var(--gold); }
tr.is-marked { background:rgba(245,158,11,.05); }


/* ============================================================
   HOME REDESIGN — hero, CTAs, video, steps
   ============================================================ */
.home-hero{position:relative;overflow:hidden;border-radius:24px;padding:34px 22px 30px;margin-bottom:18px;
  background:linear-gradient(135deg,rgba(20,240,194,.12),rgba(139,92,246,.18) 60%,rgba(96,165,250,.14));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 70px rgba(0,0,0,.45);text-align:center;
  animation:hh-fade .7s ease both;}
.home-hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(800px 300px at 50% -10%,rgba(20,240,194,.18),transparent 60%);pointer-events:none}
.hh-orb{position:absolute;border-radius:50%;filter:blur(40px);opacity:.55;pointer-events:none;
  animation:hh-float 9s ease-in-out infinite}
.hh-orb-1{width:180px;height:180px;background:#14f0c2;top:-40px;left:-30px}
.hh-orb-2{width:160px;height:160px;background:#8b5cf6;bottom:-60px;right:-30px;animation-delay:-3s}
.hh-orb-3{width:120px;height:120px;background:#fbbf24;top:40%;right:20%;opacity:.35;animation-delay:-6s}
@keyframes hh-float{0%,100%{transform:translateY(0) translateX(0) scale(1)}50%{transform:translateY(-18px) translateX(8px) scale(1.06)}}
@keyframes hh-fade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.hh-pill{position:relative;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.5px;
  padding:6px 14px;border-radius:999px;background:rgba(20,240,194,.14);color:#14f0c2;
  border:1px solid rgba(20,240,194,.35);margin-bottom:14px}
.hh-dot{width:7px;height:7px;border-radius:50%;background:#14f0c2;box-shadow:0 0 10px #14f0c2;animation:hh-pulse 1.6s infinite}
@keyframes hh-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.6}}
.hh-title{position:relative;font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;font-size:30px;line-height:1.25;font-weight:800;
  background:linear-gradient(120deg,#14f0c2 0%,#a78bfa 50%,#60a5fa 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;margin:0 0 10px}
.hh-sub{position:relative;font-size:14.5px;line-height:1.75;color:rgba(255,255,255,.78);margin:0 auto;max-width:560px}

/* CTA grid */
.cta-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px}
@media(min-width:560px){.cta-grid{grid-template-columns:repeat(3,1fr)}}
.cta-card{position:relative;display:flex;align-items:center;gap:14px;padding:18px 16px;border-radius:18px;
  text-decoration:none;color:#fff;overflow:hidden;cursor:pointer;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s;
  animation:cta-in .55s ease both}
.cta-card:nth-child(1){animation-delay:.05s}
.cta-card:nth-child(2){animation-delay:.15s}
.cta-card:nth-child(3){animation-delay:.25s}
@keyframes cta-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.cta-card::before{content:"";position:absolute;inset:0;opacity:.85;z-index:0;transition:opacity .25s}
.cta-card>*{position:relative;z-index:1}
.cta-pay::before{background:linear-gradient(135deg,#14f0c2 0%,#0d9488 100%)}
.cta-track::before{background:linear-gradient(135deg,#8b5cf6 0%,#6366f1 100%)}
.cta-comp::before{background:linear-gradient(135deg,#fb923c 0%,#ef4444 100%)}
.cta-card:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(0,0,0,.5);border-color:rgba(255,255,255,.25)}
.cta-emoji{font-size:32px;width:54px;height:54px;display:flex;align-items:center;justify-content:center;
  border-radius:14px;background:rgba(0,0,0,.25);backdrop-filter:blur(4px);flex:0 0 auto}
.cta-text{flex:1;min-width:0}
.cta-title{font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;font-size:16px;font-weight:800;line-height:1.3;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.3)}
.cta-sub{font-size:12px;color:rgba(255,255,255,.85);margin-top:2px}
.cta-arrow{font-size:22px;font-weight:800;color:#fff;opacity:.9;transition:transform .25s}
.cta-card:hover .cta-arrow{transform:translateX(4px)}

/* Tutorial video */
.video-card{border-radius:18px;overflow:hidden;margin-bottom:16px;animation:cta-in .55s .35s ease both;
  border:1px solid rgba(255,255,255,.09);box-shadow:0 20px 50px rgba(0,0,0,.4)}
.video-thumb{position:relative;display:block;width:100%;padding:0;border:0;background:#000;cursor:pointer}
.video-thumb img{width:100%;display:block;opacity:.78;transition:opacity .25s}
.video-thumb:hover img{opacity:.95}
.video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:64px;height:64px;border-radius:50%;background:rgba(255,0,40,.9);color:#fff;font-size:24px;
  display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(255,0,40,.5);
  animation:vplay 2s ease-in-out infinite}
@keyframes vplay{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.1)}}
.video-caption{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;color:#fff;text-align:left;
  background:linear-gradient(0deg,rgba(0,0,0,.85),transparent)}
.video-tag{display:inline-block;font-size:10px;letter-spacing:1px;font-weight:800;padding:3px 9px;border-radius:999px;
  background:#ff0028;color:#fff;margin-bottom:4px;text-transform:uppercase}
.video-title{display:block;font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;font-size:14.5px;font-weight:700}

/* Video modal */
.video-modal{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.video-modal-inner{position:relative;width:100%;max-width:900px}
.video-close{position:absolute;top:-44px;right:0;background:rgba(255,255,255,.15);border:0;color:#fff;
  width:38px;height:38px;border-radius:50%;cursor:pointer;font-size:16px}
.video-frame{position:relative;width:100%;padding-bottom:56.25%;border-radius:14px;overflow:hidden;background:#000}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Steps card */
.steps-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;
  padding:20px 18px;margin-bottom:16px;animation:cta-in .55s .45s ease both}
.steps-html{font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;font-size:14.5px;line-height:1.85;color:rgba(255,255,255,.88)}
.steps-html ol,.steps-html ul{padding-left:22px;margin:6px 0}
.steps-html li{margin-bottom:6px}
.steps-html strong{color:#14f0c2}

/* data-table for admin complaints */
.data-table{border-collapse:collapse;font-size:13px}
.data-table th,.data-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
.data-table th{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}
:root[data-theme="light"] .home-hero{background:linear-gradient(135deg,rgba(20,240,194,.10),rgba(139,92,246,.10) 60%,rgba(96,165,250,.10));box-shadow:0 18px 50px rgba(15,23,42,.10)}
:root[data-theme="light"] .hh-sub{color:#475569}
:root[data-theme="light"] .steps-html{color:#1f2937}
:root[data-theme="light"] .data-table th,
:root[data-theme="light"] .data-table td{border-color:rgba(15,23,42,.08)}

/* ============================================================
   v2.3 PATCHES
   - PC responsive (wider container on desktop, real grid for CTAs)
   - Light-mode contrast fixes (text/bg pairs that were unreadable)
   - Auto-fetch invoice UI (skeleton, banner, mini spinner, badge)
   - Top page-progress bar for nav loads
   ============================================================ */

/* Desktop: widen the whole site instead of staying mobile-only 480px */
@media (min-width: 720px){
  .container{ max-width: 760px; padding:20px 22px 110px; }
}
@media (min-width: 1024px){
  .container{ max-width: 980px; padding:24px 28px 120px; }
  .home-hero{ padding:48px 40px 44px; border-radius:28px; }
  .hh-title{ font-size:42px; }
  .hh-sub{ font-size:16px; }
  .card{ padding:28px 26px; border-radius:22px; }
  .card-title{ font-size:18px; }
}
@media (min-width: 1280px){
  .container{ max-width: 1120px; }
}

/* CTA grid: real responsive grid that uses the full width on PC */
.cta-grid{ display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:18px; }
@media (min-width: 600px){
  .cta-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
}
.cta-card{ padding:20px 22px; border-radius:20px; }
@media (min-width: 1024px){
  .cta-card{ padding:26px 24px; min-height:120px; }
  .cta-emoji{ font-size:36px; width:64px; height:64px; border-radius:16px; }
  .cta-title{ font-size:18px; }
  .cta-sub{ font-size:13.5px; }
  .cta-arrow{ font-size:26px; }
}

/* The form card on desktop becomes a centered, comfortable column */
@media (min-width: 1024px){
  #payForm{ max-width:680px; margin-left:auto; margin-right:auto; }
  .video-card{ max-width:880px; margin-left:auto; margin-right:auto; }
  .steps-card{ max-width:880px; margin-left:auto; margin-right:auto; }
}

/* Header logo image */
.logo-img{ height:38px; border-radius:50%; object-fit:cover; background:#fff; padding:2px; }

/* Theme toggle position on wide screens */
@media (min-width: 720px){
  .theme-toggle{ top:18px; right:22px; }
}

/* ── Light-mode CONTRAST fixes ── */
:root[data-theme="light"]{
  --bg:       #f4f6fb;
  --bg2:      #ffffff;
  --bg3:      #ffffff;
  --text:     #0b1220;   /* near-black */
  --text2:    #1f2937;
  --muted:    #475569;
  --border:   rgba(15,23,42,0.14);
  --glass:    rgba(255,255,255,0.85);
}
:root[data-theme="light"] body{ color:var(--text); }
:root[data-theme="light"] .tagline{ color:#475569; }
:root[data-theme="light"] .hh-title{
  background:linear-gradient(120deg,#0d9488 0%,#6d28d9 50%,#2563eb 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
:root[data-theme="light"] .hh-sub{ color:#1f2937; }
:root[data-theme="light"] .hh-pill{
  background:rgba(13,148,136,.12); color:#0d9488; border-color:rgba(13,148,136,.35);
}
/* CTAs already have white text on color → keep, but raise contrast on hover */
:root[data-theme="light"] .cta-card{ box-shadow:0 10px 28px -10px rgba(15,23,42,.18); }
:root[data-theme="light"] .cta-card:hover{ box-shadow:0 20px 40px -10px rgba(15,23,42,.28); }
:root[data-theme="light"] .cta-title{ color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.30); }
:root[data-theme="light"] .cta-sub{ color:rgba(255,255,255,.95); }

/* Steps card readable in light */
:root[data-theme="light"] .steps-card{
  background:#ffffff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 14px 36px -16px rgba(80,52,180,.20);
}
:root[data-theme="light"] .steps-html{ color:#1f2937; }
:root[data-theme="light"] .steps-html strong{ color:#0d9488; }

/* Notice card */
:root[data-theme="light"] .notice{ color:#0b1220; }
:root[data-theme="light"] .notice-title{ color:#6d28d9; }

/* Section divider visible */
:root[data-theme="light"] .sec-divider{ color:#475569; }
:root[data-theme="light"] .sec-divider::before,
:root[data-theme="light"] .sec-divider::after{ background:rgba(15,23,42,.12); }

/* Form label & hint */
:root[data-theme="light"] .fl{ color:#374151; }
:root[data-theme="light"] .f-hint{ color:#475569; }
:root[data-theme="light"] .fi{ color:#0b1220; }
:root[data-theme="light"] .fi::placeholder{ color:#94a3b8; }
:root[data-theme="light"] .fi-pre{ color:#475569; }

/* Info row labels readable */
:root[data-theme="light"] .info-row{ border-color:rgba(15,23,42,.08); }
:root[data-theme="light"] .info-row .lbl,
:root[data-theme="light"] .info-row .label{ color:#475569; }
:root[data-theme="light"] .info-row .val,
:root[data-theme="light"] .info-row .value{ color:#0b1220; }

/* Track / amount values */
:root[data-theme="light"] .tid-value{ color:#b45309; }
:root[data-theme="light"] .num-value{ color:#0b1220; }

/* Alerts: ensure body text dark enough on the light tinted bg */
:root[data-theme="light"] .alert-success{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
:root[data-theme="light"] .alert-error  { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
:root[data-theme="light"] .alert-info   { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
:root[data-theme="light"] .alert-warning{ background:#fffbeb; border-color:#fde68a; color:#92400e; }

/* PM cards & names */
:root[data-theme="light"] .pm-name{ color:#0b1220; }
:root[data-theme="light"] .pm-section-label{ color:#475569; }
:root[data-theme="light"] .pm-section-label::after{ background:rgba(15,23,42,.12); }

/* Footer */
:root[data-theme="light"] .site-footer{ color:#475569; }

/* Track-page hero icon visible on light */
:root[data-theme="light"] .track-hero{ filter:none; }

/* ── Page top progress bar (visible during link clicks / fetches) ── */
.page-progress{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:10000;
  background:linear-gradient(90deg,var(--teal),var(--purple),var(--pink),var(--teal));
  background-size:300% 100%;
  transform:scaleX(0); transform-origin:left center;
  transition:transform .25s ease, opacity .35s ease;
  opacity:0; pointer-events:none;
}
.page-progress.active{ opacity:1; animation:ppShift 1.4s linear infinite; }
.page-progress.start { transform:scaleX(.35); }
.page-progress.mid   { transform:scaleX(.75); }
.page-progress.done  { transform:scaleX(1); }
@keyframes ppShift{ to{ background-position:300% 0; } }

/* ── Mini spinner for inline input loading ── */
.spinner-mini{
  display:inline-block; width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(20,240,194,.25); border-top-color:var(--teal);
  animation:spin .7s linear infinite;
}
.fi-loading{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  display:inline-flex;
}

/* ── Auto-fetch result banner ── */
.auto-result{
  border-radius:14px; padding:14px 16px; margin-bottom:14px;
  font-size:13.5px; line-height:1.7; animation:fadeUp .3s ease;
}
.auto-result-ok {
  background:linear-gradient(135deg,rgba(16,185,129,.12),rgba(20,240,194,.10));
  border:1px solid rgba(16,185,129,.32);
  color:#065f46;
}
:root[data-theme="dark"] .auto-result-ok{ color:#a7f3d0; }
.auto-result-err{
  background:rgba(239,68,68,.10); border:1px solid rgba(239,68,68,.30); color:#991b1b;
}
:root[data-theme="dark"] .auto-result-err{ color:#fca5a5; }

.auto-badge{
  margin-left:auto; font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px;
  background:linear-gradient(135deg,var(--teal),var(--purple)); color:#fff;
  text-transform:uppercase; letter-spacing:.6px; box-shadow:0 4px 14px -4px rgba(124,58,237,.5);
}

/* Skeleton (slightly richer for visible spaces) */
.skeleton{ border-radius:12px; }
:root[data-theme="light"] .skeleton{
  background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 50%,#eef2f7 75%);
  background-size:200% 100%;
}

/* Admin data table — light readable */
:root[data-theme="light"] .data-table th{ color:#475569; background:rgba(15,23,42,.03); }
:root[data-theme="light"] .data-table td{ color:#0b1220; }
:root[data-theme="light"] .details-row td{ background:rgba(13,148,136,.05) !important; }

/* ============================================================
   v2.4 — Mode Switch, Total Info, Status Dropdowns, Mark Fade
   ============================================================ */

/* Mode toggle (Auto / Manual) */
.mode-switch-wrap{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 16px;margin-bottom:16px;border-radius:16px;
  background:linear-gradient(135deg,rgba(20,240,194,.10),rgba(124,58,237,.12));
  border:1px solid rgba(20,240,194,.28);
  box-shadow:0 8px 28px -14px rgba(20,240,194,.35);
  position:relative;overflow:hidden;
  animation:fadeUp .35s ease both;
}
.mode-switch-wrap::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(420px 120px at 0% 0%,rgba(20,240,194,.18),transparent 60%);
  pointer-events:none;
}
.mode-switch-info{display:flex;flex-direction:column;gap:2px;min-width:0;position:relative;z-index:1}
.mode-switch-title{font-weight:800;font-size:14px;color:var(--text);letter-spacing:.2px}
.mode-switch-sub{font-size:12px;color:var(--muted);line-height:1.5}
.mode-switch{position:relative;display:inline-block;width:54px;height:30px;flex-shrink:0;cursor:pointer;z-index:1}
.mode-switch input{position:absolute;opacity:0;width:0;height:0}
.mode-switch-slider{
  position:absolute;inset:0;border-radius:999px;
  background:rgba(120,120,140,.35);
  transition:background .25s cubic-bezier(.4,.0,.2,1);
}
.mode-switch-thumb{
  position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;
  background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:transform .28s cubic-bezier(.4,.0,.2,1), box-shadow .25s;
}
.mode-switch input:checked + .mode-switch-slider{
  background:linear-gradient(135deg,var(--teal),var(--purple));
  box-shadow:0 0 0 4px rgba(20,240,194,.15), inset 0 0 12px rgba(255,255,255,.15);
}
.mode-switch input:checked + .mode-switch-slider .mode-switch-thumb{
  transform:translateX(24px);box-shadow:0 4px 14px rgba(20,240,194,.45);
}
.mode-switch:focus-within .mode-switch-slider{outline:2px solid rgba(20,240,194,.55);outline-offset:2px}

/* Total Order Value (info-only) */
.total-info{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 14px;border-radius:14px;margin-bottom:14px;
  background:linear-gradient(135deg,rgba(124,58,237,.10),rgba(96,165,250,.10));
  border:1px dashed rgba(124,58,237,.35);
  animation:fadeUp .3s ease both;
}
.total-info-label{font-size:13px;font-weight:700;color:var(--muted)}
.total-info-val{font-family:'Syne',sans-serif;font-size:18px;font-weight:800;color:var(--purple,#a78bfa)}

/* Status dropdown readability — both modes */
select.form-control, select.fi{
  appearance:none;-webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),
                   linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat;
  padding-right:34px;
}
select.form-control option, select.fi option{
  background:#0f172a;color:#f0f4ff;padding:8px;
}
:root[data-theme="light"] select.form-control option,
:root[data-theme="light"] select.fi option{
  background:#ffffff;color:#0b1220;
}

/* Marked row fade */
tr.is-marked{
  background:rgba(245,158,11,.05);
  opacity:.55;
  transition:opacity .35s ease, background .35s ease, filter .35s ease;
  filter:grayscale(.35);
}
tr.is-marked:hover{opacity:.9;filter:none}
.mark-btn{transition:all .25s ease, transform .15s ease}
.mark-btn:active{transform:scale(.94)}
.mark-btn.marked{box-shadow:0 0 0 3px rgba(245,158,11,.18)}


/* ── Auto Payment cards — animated/highlighted to invite click ── */
.pm-instant-tag{display:inline-block;margin-left:6px;font-size:10px;font-weight:800;padding:2px 8px;border-radius:8px;background:linear-gradient(90deg,#fbbf24,#f59e0b);color:#1a1300;letter-spacing:.6px;animation:tagPulse 1.6s ease-in-out infinite}
@keyframes tagPulse{0%,100%{box-shadow:0 0 0 0 rgba(251,191,36,.55)}50%{box-shadow:0 0 0 8px rgba(251,191,36,0)}}
.pm-card-auto{position:relative;overflow:hidden;border:1.5px solid rgba(0,229,179,.45)!important;background:linear-gradient(135deg,rgba(0,229,179,.10),rgba(99,102,241,.08))!important;box-shadow:0 0 0 0 rgba(0,229,179,.4);animation:autoGlow 2.4s ease-in-out infinite}
.pm-card-auto:hover{transform:translateY(-4px) scale(1.03);border-color:var(--teal)!important;box-shadow:0 12px 36px rgba(0,229,179,.35),0 0 0 3px rgba(0,229,179,.25)!important}
.pm-card-auto .pm-logo{animation:autoBob 2.2s ease-in-out infinite}
.pm-badge-auto{background:linear-gradient(90deg,#00e5b3,#10b981)!important;color:#06120f!important;font-weight:900!important;letter-spacing:.4px;box-shadow:0 4px 14px rgba(0,229,179,.45)}
.pm-shine{position:absolute;top:0;left:-60%;width:50%;height:100%;background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.18) 50%,transparent 100%);transform:skewX(-22deg);pointer-events:none;animation:autoShine 3.4s ease-in-out infinite}
@keyframes autoGlow{0%,100%{box-shadow:0 0 0 0 rgba(0,229,179,.0),0 4px 14px rgba(0,229,179,.15)}50%{box-shadow:0 0 0 4px rgba(0,229,179,.25),0 10px 26px rgba(0,229,179,.35)}}
@keyframes autoBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes autoShine{0%{left:-60%}60%,100%{left:130%}}
