/* =====================================================
   TopUpZone - Premium Dark Glassmorphism Theme
   ===================================================== */

:root {
  --bg-1: #0b0e1a;
  --bg-2: #12172b;
  --bg-3: #171d33;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff5ca8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-1: #f1f3fb;
  --text-2: #a6acc6;
  --text-3: #6c7290;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* Aliases for pages still using the old theme's variable names */
  --primary: var(--accent);
  --primary-dark: #5b3df0;
  --primary-light: rgba(124, 92, 255, 0.16);
  --navy: var(--text-1);
  --bg-page: var(--bg-2);
  --card-bg: var(--glass-bg);
  --border: var(--glass-border);
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100vw;
  touch-action: pan-y;
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 0%, #2a1a5e 0%, transparent 48%),
              radial-gradient(circle at 95% 8%, #1a2a6e 0%, transparent 42%),
              radial-gradient(circle at 85% 55%, #3a1550 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, #1a2050 0%, transparent 45%),
              radial-gradient(circle at 50% 100%, #2a1350 0%, transparent 55%),
              var(--bg-1);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; padding: 24px; max-width: 100%; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 14, 26, 0.75);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* .navbar itself is the anchor for the mobile dropdown menu (see .nav-links in the 640px media query) */

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.brand span.highlight { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* "TopUpZon.shop" navbar brand — dashboard page only. Ribbon TZ mark +
   wordmark styled after the promo poster (blue/white "Top", green "Up",
   white "Zon", green ".shop" pill), animated the same way the Minute Pack
   header animates (packIconPulse glow + packTitleShine moving shimmer). */
.brand-tz { gap: 8px; animation: packFadeIn .5s ease both; transition: transform .22s ease; }
.brand-tz:hover { transform: translateY(-2px); }
.brand-tz-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  animation: tzIconGlow 3.2s ease-in-out infinite;
}
.brand-tz-icon::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  transform: translate(-50%,-50%);
  background:
    radial-gradient(circle at 18% 22%, #ff2f9c 0%, #ff2f9c 20%, transparent 44%),
    radial-gradient(circle at 82% 18%, #ffcc33 0%, #ffcc33 18%, transparent 42%),
    radial-gradient(circle at 12% 78%, #22c3f0 0%, #22c3f0 20%, transparent 44%),
    radial-gradient(circle at 85% 80%, #ff8a00 0%, #ff8a00 18%, transparent 42%),
    radial-gradient(circle at 50% 94%, #2ee68a 0%, #2ee68a 18%, transparent 42%),
    radial-gradient(circle at 50% 6%, #ff3d81 0%, #ff3d81 20%, transparent 44%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: splash-pulse 3.5s ease-in-out infinite;
}
.brand-tz-icon img { width: 44px; height: 44px; position: relative; z-index: 1; }
@keyframes splash-pulse {
  0%, 100% { opacity: .8; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
}
@keyframes tzIconGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 47, 156, 0.35)); }
  50% { filter: drop-shadow(0 0 9px rgba(255, 47, 156, 0.65)); }
}
.brand-tz-word { display: inline-flex; align-items: baseline; font-size: 27px; font-weight: 800; letter-spacing: .2px; font-style: italic; transform: skewX(-2deg); }
.brand-tz-top {
  background: linear-gradient(90deg, #d4ff5e, #3ddc59);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: packTitleShine 5s linear infinite;
}
.brand-tz-up { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.brand-tz-zon {
  background: linear-gradient(90deg, #ffffff, #7cc9ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: packTitleShine 5s linear infinite;
}
.brand-tz-shop {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  color: #0b3d1f;
  background: linear-gradient(160deg, #7bff5c, #2fbf4f);
  box-shadow: 0 3px 10px rgba(10, 163, 74, 0.45);
  transform: translateY(-3px) skewX(2deg);
}
@media (max-width: 480px) {
  .brand-tz-word { font-size: 21px; }
  .brand-tz-icon { width: 36px; height: 36px; }
  .brand-tz-icon img { width: 36px; height: 36px; }
  .brand-tz-shop { font-size: 11.5px; padding: 2px 8px; }
}

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 14px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; color: var(--text-1); font-size: 22px; cursor: pointer; }

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle-btn .lt-opt {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}
.lang-toggle-btn .lt-opt.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b3df0); color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(124, 92, 255, 0.5); }
.btn-accent { background: linear-gradient(135deg, var(--accent-2), #0ea5c4); color: #062229; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-1); }
.btn-outline:hover { background: var(--glass-bg); }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Persistent "last tapped" button highlight: whichever button was tapped
   most recently keeps this amber highlight until a different button is
   tapped anywhere on the page — see the tzTouchTracker script in main.js. */
.btn.tz-touched,
button.tz-touched {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #1a1200 !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45) !important;
}

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=file], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(124, 92, 255, 0.08); }
textarea { resize: vertical; min-height: 90px; font-family: inherit; }

select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6acc6' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.input-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.input-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; position: relative; overflow: hidden; }

/* Rigid, app-like viewport lock for the login page: navbar pinned at top,
   card centered in the exact remaining space, footer pinned at the bottom.
   Nothing scrolls or slides, and the auth-sub text can no longer creep up
   behind the sticky navbar. */
body.auth-page-fixed {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.auth-page-fixed .navbar { flex-shrink: 0; }
body.auth-page-fixed .main-content {
  flex: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body.auth-page-fixed .main-content .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
body.auth-page-fixed .auth-wrap {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
body.auth-page-fixed .site-footer { flex-shrink: 0; }
.auth-wrap::before {
  content: ""; position: absolute; top: -10%; left: 50%; width: 480px; height: 480px;
  transform: translateX(-50%); background: radial-gradient(circle, rgba(124,92,255,.28), transparent 65%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%; max-width: 420px; padding: 40px 32px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--glass-bg);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
}

/* Register page: the old "locked, non-scrolling" viewport (auth-page-fixed)
   clipped the form on real devices because there are too many fields
   (name, email, phone, 2x password, 2x pin) to ever fit one screen.
   Register now uses a normal scrollable layout instead — see
   body.auth-page-scroll below — so every field is always reachable. */
body.auth-page-scroll { min-height: 100vh; min-height: 100dvh; }
body.auth-page-scroll .auth-wrap {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 48px;
  overflow: visible;
}

.auth-help-btn { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); color: var(--accent-2); font-size: 12px; font-weight: 700; text-align: center; }

/* ===== Register card redesign — distinct emerald/gold theme ===== */
.auth-card-register {
  --reg-accent: #10b981;
  --reg-accent-2: #34d399;
  --reg-gold: #fbbf24;
  padding: 34px 26px 30px;
}
.auth-card-register::before {
  background: linear-gradient(135deg, rgba(16,185,129,.65), rgba(52,211,153,.35) 45%, rgba(251,191,36,.55));
}
.auth-card-register .auth-logo::before {
  background: radial-gradient(circle, rgba(16,185,129,.4), transparent 70%);
}
.auth-card-register .auth-logo-badge {
  background: linear-gradient(150deg, #0f3d33, #0a1f1c);
  box-shadow: 0 14px 26px rgba(16,185,129,.4), inset 0 1.5px 0 rgba(255,255,255,.18), inset 0 -8px 14px rgba(0,0,0,.4);
}
.auth-card-register .auth-title {
  background: linear-gradient(90deg, #f1f3fb, #a7f3d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-card-register .auth-sub { margin-bottom: 22px; }
.auth-card-register .section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--reg-accent-2); margin: 20px 0 12px; display: flex; align-items: center; gap: 8px;
}
.auth-card-register .section-label:first-of-type { margin-top: 2px; }
.auth-card-register .section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(52,211,153,.35), transparent); }
.auth-card-register .form-group { margin-bottom: 14px; }
.auth-card-register .form-row { display: flex; gap: 10px; }
.auth-card-register .form-row .form-group { flex: 1; min-width: 0; }
.auth-card-register input[type=text], .auth-card-register input[type=email], .auth-card-register input[type=password], .auth-card-register input[type=tel] {
  border-radius: 12px;
}
.auth-card-register input:focus {
  border-color: var(--reg-accent) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.4), 0 0 0 3px rgba(16,185,129,.22) !important;
}
.auth-card-register .btn-primary {
  background: linear-gradient(135deg, var(--reg-accent), var(--reg-accent-2));
  box-shadow: 0 12px 28px rgba(16,185,129,.4), inset 0 1.5px 0 rgba(255,255,255,.25), inset 0 -3px 6px rgba(0,0,0,.2);
}
.auth-card-register .btn-primary:active { box-shadow: 0 6px 16px rgba(16,185,129,.4), inset 0 2px 6px rgba(0,0,0,.3); }
.auth-card-register .auth-footer a { color: var(--reg-accent-2); }
.auth-card-register .auth-help-btn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: var(--reg-gold); }
.auth-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1.5px;
  background: linear-gradient(135deg, rgba(139,92,246,.65), rgba(99,102,241,.35) 45%, rgba(34,211,238,.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.auth-logo { position: relative; text-align: center; margin-bottom: 22px; }
.auth-logo::before {
  content: ""; position: absolute; left: 50%; top: 4px; width: 90px; height: 90px;
  transform: translateX(-50%); background: radial-gradient(circle, rgba(124,92,255,.4), transparent 70%);
  pointer-events: none;
}
.auth-logo-badge {
  position: relative; width: 74px; height: 74px; margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(150deg, #322a68, #14102f);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 14px 26px rgba(124, 92, 255, 0.4),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 14px rgba(0, 0, 0, 0.4);
}
.auth-logo-badge img { width: 42px; height: 42px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }

.auth-title { text-align: center; font-size: 23px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 13.5px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-footer a { color: var(--accent-2); font-weight: 600; }

.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=tel] {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.auth-card input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.auth-card .btn-primary {
  box-shadow:
    0 12px 28px rgba(124, 92, 255, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}
.auth-card .btn-primary:active { transform: scale(.97) translateY(1px); box-shadow: 0 6px 16px rgba(124, 92, 255, 0.4), inset 0 2px 6px rgba(0,0,0,.3); }

.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-approved { background: rgba(34, 197, 94, 0.15); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.35); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-processing { background: rgba(34, 211, 238, 0.15); color: var(--accent-2); border: 1px solid rgba(34, 211, 238, 0.35); }

.alert { padding: 13px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.alert-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.alert-info { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.35); color: #a5f3fc; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat-card { padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.purple { background: linear-gradient(135deg, #7c5cff33, #7c5cff11); color: var(--accent); }
.stat-icon.cyan { background: linear-gradient(135deg, #22d3ee33, #22d3ee11); color: var(--accent-2); }
.stat-icon.pink { background: linear-gradient(135deg, #ff5ca833, #ff5ca811); color: var(--accent-3); }
.stat-icon.green { background: linear-gradient(135deg, #22c55e33, #22c55e11); color: var(--success); }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
thead th { text-align: left; padding: 12px 14px; color: var(--text-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--glass-border); }
tbody td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
tbody tr:last-child td { border-bottom: none; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: rgba(11, 14, 26, 0.85);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(7px);
  padding: 20px 14px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.sidebar .brand { padding: 0 8px 22px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 4px; transition: all .15s; }
.sidebar-link:hover { background: var(--glass-bg); color: var(--text-1); }
.sidebar-link.active { background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.12)); color: var(--text-1); border: 1px solid rgba(124,92,255,.3); }
.sidebar-link .ic { width: 18px; text-align: center; }

.offer-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s; }
.offer-card:hover { transform: translateY(-4px); }
.offer-operator { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.offer-name { font-size: 17px; font-weight: 700; }
.offer-desc { font-size: 13px; color: var(--text-2); flex: 1; }
.offer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-3); }
.offer-price { font-size: 20px; font-weight: 800; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wallet-card {
  padding: 26px;
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.1));
  border: 1px solid rgba(124,92,255,.35);
  position: relative;
  overflow: hidden;
}
.wallet-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(124,92,255,.35), transparent 70%); border-radius: 50%; }
.wallet-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.wallet-amount { font-size: 34px; font-weight: 800; }

.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-link { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-2); background: var(--glass-bg); border: 1px solid var(--glass-border); transition: background .15s, color .15s; }
.tab-link:hover { color: var(--text-1); }
.tab-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Simple colorful list-cards for Admin > Offer/SIM Management — a
   plain, easy-to-scan alternative to a dense data table, styled with
   the same operator color accents used on the user-facing pack pages. */
.offer-cards { display: flex; flex-direction: column; gap: 10px; }
.offer-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), var(--bg-3);
  border: 1px solid color-mix(in srgb, var(--op-color, var(--accent)) 45%, transparent);
  border-left: 4px solid var(--op-color, var(--accent));
}
.offer-card-top { display: flex; align-items: center; gap: 10px; }
.offer-op-pill {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--op-color, var(--accent)), var(--op-color2, var(--accent-2)));
}
.offer-card-main { flex: 1; min-width: 0; }
.offer-card-name { font-weight: 700; font-size: 14.5px; color: var(--text-1); }
.offer-card-meta { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.offer-card-price { font-weight: 800; font-size: 15px; color: var(--op-color, var(--accent)); flex-shrink: 0; }
.offer-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }
.modal-overlay { position: fixed; inset: 0; background: rgba(5, 7, 15, 0.7); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { width: 100%; max-width: 440px; padding: 26px; max-height: 90vh; overflow-y: auto; }
.modal-close { float: right; cursor: pointer; color: var(--text-2); font-size: 20px; }

/* ---- PWA install banner + button ----
   Note: the banner is `position: fixed`, so once it is shown it stays
   put at the same spot on screen - it does not float, drift, or
   re-animate. Only a single, short fade/pop-in plays the moment it
   appears; after that it is completely static until dismissed. */
.pwa-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 500;
  max-width: 460px; margin: 0 auto;
  background: var(--glass-bg-strong); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px; display: none; align-items: center; gap: 12px;
  opacity: 0; transition: opacity .25s ease;
}
.pwa-install-banner.show { display: flex; opacity: 1; }
.pwa-install-banner.pwa-install-banner-with-navbar { bottom: 86px; }
.pwa-install-banner .pib-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(124,92,255,.35); }
.pwa-install-banner .pib-body { flex: 1; min-width: 0; overflow: hidden; }
.pwa-install-banner .pib-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pwa-install-banner .pib-install { padding: 8px 14px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #5b3df0); color: #fff; font-size: 12.5px; font-weight: 700; border: 0; cursor: pointer; white-space: nowrap; }
.pwa-install-banner .pib-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--text-3); font-size: 16px; cursor: pointer; padding: 4px; line-height: 1; }
.pwa-install-banner .pib-skip { font-size: 11px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }

/* The banner box itself is `position: fixed` and never moves. Only the
   text inside scrolls, like a news ticker, so the visitor can read the
   full message even though it doesn't fit on one line. */
.pib-ticker { overflow: hidden; white-space: nowrap; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pib-ticker-track { display: inline-flex; white-space: nowrap; animation: pibTickerScroll 10s linear infinite; }
.pib-ticker-seg { display: inline-flex; align-items: center; gap: 6px; padding-right: 48px; font-size: 12.5px; color: var(--text-1); }
.pib-ticker-seg strong { font-weight: 800; }
@keyframes pibTickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bigger, more prominent variant shown automatically on page load */
.pwa-install-banner.pwa-install-banner-big { padding: 20px; gap: 16px; border-radius: 20px; border-width: 1.5px; }
.pwa-install-banner.pwa-install-banner-big .pib-icon { width: 64px; height: 64px; border-radius: 16px; }
.pwa-install-banner.pwa-install-banner-big .pib-ticker-seg { font-size: 15px; padding-right: 56px; }
.pwa-install-banner.pwa-install-banner-big .pib-install { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.pwa-install-banner.pwa-install-banner-big .pib-skip { font-size: 12px; }
.pwa-install-banner.pwa-install-banner-big .pib-close { top: 8px; right: 10px; font-size: 20px; }

.pwa-install-nav-btn { display: inline-flex; align-items: center; gap: 6px; }
.pwa-install-nav-btn img { width: 16px; height: 16px; border-radius: 4px; }

.pwa-ios-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pwa-ios-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); }
.pwa-ios-steps .pis-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--accent); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* Only one of these step lists is shown at a time - whichever matches
   the visitor's actual device, chosen by assets/js/pwa-install.js */
.pwa-ios-steps.pwa-steps-android { display: none; }
.pwa-ios-steps.pwa-steps-ios { display: none; }
#pwaIosModal.is-android .pwa-steps-android { display: flex; }
#pwaIosModal.is-ios .pwa-steps-ios { display: flex; }

@media (max-width: 480px) {
  .pwa-install-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px; }
  .pib-ticker-seg { font-size: 11.5px; }
  .pwa-install-banner.pwa-install-banner-big { padding: 16px; }
  .pwa-install-banner.pwa-install-banner-big .pib-icon { width: 54px; height: 54px; }
  .pwa-install-banner.pwa-install-banner-big .pib-ticker-seg { font-size: 13.5px; }
}

.loader-overlay { position: fixed; inset: 0; background: var(--bg-1); display: flex; align-items: center; justify-content: center; z-index: 999; flex-direction: column; gap: 16px; }
.loader-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(124,92,255,.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner-slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); }
.banner-slide { display: none; width: 100%; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: auto; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }

.site-footer { text-align: center; padding: 26px 16px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--glass-border); margin-top: 40px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-muted { color: var(--text-2); } .text-small { font-size: 12.5px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state .ic { font-size: 40px; margin-bottom: 12px; opacity: .6; }

.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: fixed; left: -270px; top: 0; height: 100vh; z-index: 150; transition: left .25s; }
  .sidebar.open { left: 0; }
  .app-layout { display: block; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(78vw, 300px);
    background: rgba(15, 18, 34, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 0 20px;
    display: none;
    gap: 14px;
    z-index: 60;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .nav-actions .btn { display: none; }
  .navbar { padding: 12px 16px; }
  .brand span { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
  .main-content { padding: 16px; }
}

/* =====================================================
   Dashboard-specific components (merged to match the
   Premium Dark Glassmorphism theme above)
   ===================================================== */

.hero-banner {
  background: linear-gradient(135deg, rgba(124,92,255,0.35), rgba(34,211,238,0.18)),
              radial-gradient(circle at 15% -10%, rgba(255,255,255,0.12), transparent 45%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  color: var(--text-1);
  padding: 16px 18px 18px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.hero-user-block { display: flex; align-items: center; gap: 10px; }
.hero-user-avatar, .hero-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--glass-bg);
  border: 1px solid var(--glass-border); display: flex; align-items: center;
  justify-content: center; font-size: 15px; flex-shrink: 0; position: relative; color: var(--text-1);
}
.hero-icon-btn .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); border: 2px solid var(--bg-1); }
.hero-username { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.hero-username .hi { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-2); margin-bottom: 1px; }
.hero-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; position: relative; z-index: 2; }
.hero-balance-pill {
  display: inline-flex; align-items: center; gap: 9px; background: var(--glass-bg-strong);
  color: var(--text-1); font-weight: 800; font-size: 14px; padding: 10px 18px;
  border-radius: 26px; border: 1px solid var(--glass-border); cursor: pointer; user-select: none;
}
.hero-balance-pill .hb-ic { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.hero-cta-link { font-size: 11.5px; font-weight: 700; color: var(--text-1); background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 8px 14px; border-radius: 20px; white-space: nowrap; }
.hero-clock { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .4px; position: relative; z-index: 2; }
.hero-stats-row { display: flex; gap: 7px; margin-top: 14px; position: relative; z-index: 2; }
.hero-stat-chip { flex: 1; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 13px; padding: 7px 4px; text-align: center; min-width: 0; }
.hero-stat-chip .hs-n { display: block; font-size: 12.5px; font-weight: 800; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat-chip .hs-l { display: block; font-size: 8.7px; font-weight: 600; color: var(--text-2); margin-top: 2px; text-transform: uppercase; letter-spacing: .3px; }

.hero-banner-compact { padding: 14px 18px 16px; border-radius: 0 0 20px 20px; }
.hero-top-right { display: flex; align-items: center; gap: 10px; }
.hero-banner-compact .hero-clock { margin-top: 0; }
.hero-cta-row { display: flex; justify-content: flex-end; margin-top: 12px; position: relative; z-index: 2; }

.notice-ticker { display: flex; align-items: stretch; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.notice-tag { flex-shrink: 0; display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; font-weight: 800; font-size: 12.5px; padding: 12px 18px; white-space: nowrap; }
.notice-track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.notice-content { display: inline-flex; white-space: nowrap; animation: ticker-scroll 24s linear infinite; padding-left: 2%; }
.notice-track:hover .notice-content { animation-play-state: paused; }
.notice-item { font-size: 13px; color: var(--text-1); font-weight: 600; }
.notice-sep { margin: 0 26px; color: var(--text-3); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.gtile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.gtile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 16px;
  padding: 10px 4px 12px;
  text-align: center;
  transition: transform .15s ease;
  position: relative;
  z-index: 0;
  overflow: hidden;      /* clips the oversized rotating layer to this rounded-rect shape */
  isolation: isolate;    /* keeps the rotating layer/glow contained to this tile only */
}
.gtile:hover { transform: translateY(-2px); }

/* Layer 1 (bottom): slow-spinning conic gradient — this produces the moving neon colour;
   the tile shape itself never moves, only the colour underneath rotates. */
.gtile::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, #22d3ee, #3b82f6, #a855f7, #ec4899, #22d3ee);
  z-index: 0;
  pointer-events: none;
}
/* Layer 2 (middle): the tile's real dark background, inset exactly 2px so only a thin
   neon ring is visible at the edge and the inside stays flat dark. */
.gtile::after {
  content: "";
  position: absolute;
  inset: 1.4px;
  border-radius: 14px;
  background: #181C2A;
  z-index: 1;
  pointer-events: none;
}
@keyframes gtile-snake { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gtile::before { animation: none; }
}
.gtile-badge { z-index: 3; }
/* 3D raised/glossy button look: a bright top highlight, a soft inner
   top sheen, and a deeper drop shadow give the icon a pressed-glass,
   pop-off-the-page feel instead of a flat colored circle. */
.gtile-icon {
  width: 42px; height: 42px; min-width: 42px; min-height: 42px; max-width: 42px; max-height: 42px;
  flex: 0 0 42px; border-radius: 50%; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 18px; position: relative; z-index: 2; overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #f472b6); box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,.45);
  border-left: 1px solid rgba(255,255,255,.22);
  border-right: 1px solid rgba(0,0,0,.2);
  border-bottom: 2px solid rgba(0,0,0,.32);
  box-shadow: 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gtile-icon::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.08) 60%, transparent 100%);
  border-radius: 50% 50% 60% 60%; pointer-events: none; z-index: 1;
}
.gtile-icon::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30%;
  background: rgba(0,0,0,.22); pointer-events: none;
}
.gtile:active .gtile-icon { transform: translateY(1px) scale(.94); box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15); }
.gtile-icon svg { width: 22px !important; height: 22px !important; flex: 0 0 auto; position: relative; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }

/* Quick Services icon colors — festive "Holi" palette, each icon now glows in its own colour */
.gtile-icon.c1  { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 8px 1px rgba(255,47,156,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Watch & Earn - pink */
.gtile-icon.c2  { background: linear-gradient(135deg, #ffb870, #ff8a00); box-shadow: 0 0 8px 1px rgba(255,138,0,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Data Pack - orange */
.gtile-icon.c3  { background: linear-gradient(135deg, #ff8b96, #ff4d5e); box-shadow: 0 0 8px 1px rgba(255,77,94,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Minute Pack - red */
.gtile-icon.c4  { background: linear-gradient(135deg, #ffb870, #ff8a00); box-shadow: 0 0 8px 1px rgba(255,138,0,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Pay Bill - orange */
.gtile-icon.c5  { background: linear-gradient(135deg, #7fe3ff, #22c3f0); box-shadow: 0 0 8px 1px rgba(34,195,240,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Add Balance - cyan */
.gtile-icon.c6  { background: linear-gradient(135deg, #7fe3ff, #22c3f0); box-shadow: 0 0 8px 1px rgba(34,195,240,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Withdraw - cyan */
.gtile-icon.c7  { background: linear-gradient(135deg, #8bffc9, #2ee68a); box-shadow: 0 0 8px 1px rgba(46,230,138,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Game Top-up - green */
.gtile-icon.c8  { background: linear-gradient(135deg, #b28bff, #7b3dff); box-shadow: 0 0 8px 1px rgba(123,61,255,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Orders - purple */
.gtile-icon.c9  { background: linear-gradient(135deg, #b28bff, #7b3dff); box-shadow: 0 0 8px 1px rgba(123,61,255,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* History - purple */
.gtile-icon.c10 { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 8px 1px rgba(255,47,156,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Profile - pink */
.gtile-icon.c11 { background: linear-gradient(135deg, #6fa3ff, #3d7bff); box-shadow: 0 0 8px 1px rgba(61,123,255,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Support - blue */
.gtile-icon.c12 { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 8px 1px rgba(255,47,156,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Alerts - pink */
.gtile-icon.c13 { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 8px 1px rgba(255,47,156,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Recharge Pack - pink */
.gtile-icon.c14 { background: linear-gradient(135deg, #8bffc9, #2ee68a); box-shadow: 0 0 8px 1px rgba(46,230,138,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Bundle Offer - green */
.gtile-icon.c15 { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 8px 1px rgba(255,47,156,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* Savings - pink */
.gtile-icon.c16 { background: linear-gradient(135deg, #ffe08a, #ffcc33); box-shadow: 0 0 8px 1px rgba(255,204,51,.75), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); } /* VIP Plan - gold */
.gtile-text { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 100%; position: relative; z-index: 2; }
.gtile-label { font-size: 10px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gtile-sub { font-size: 8.5px; font-weight: 500; color: rgba(255,255,255,.5); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gtile-badge { position: absolute; top: 4px; right: 6px; background: var(--accent-3); color: #fff; font-size: 9px; font-weight: 800; min-width: 15px; height: 15px; border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }

/* Static per-service border colour (matches the tile's icon colour instead of the
   rotating rainbow ring) — applied when the same c1-c15 class is put on the .gtile itself. */
.gtile.c1::before  { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); animation: none; }
.gtile.c2::before  { background: linear-gradient(135deg, #ffb870, #ff8a00); animation: none; }
.gtile.c3::before  { background: linear-gradient(135deg, #ff8b96, #ff4d5e); animation: none; }
.gtile.c4::before  { background: linear-gradient(135deg, #ffb870, #ff8a00); animation: none; }
.gtile.c5::before  { background: linear-gradient(135deg, #7fe3ff, #22c3f0); animation: none; }
.gtile.c6::before  { background: linear-gradient(135deg, #7fe3ff, #22c3f0); animation: none; }
.gtile.c7::before  { background: linear-gradient(135deg, #8bffc9, #2ee68a); animation: none; }
.gtile.c8::before  { background: linear-gradient(135deg, #b28bff, #7b3dff); animation: none; }
.gtile.c9::before  { background: linear-gradient(135deg, #b28bff, #7b3dff); animation: none; }
.gtile.c10::before { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); animation: none; }
.gtile.c11::before { background: linear-gradient(135deg, #6fa3ff, #3d7bff); animation: none; }
.gtile.c12::before { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); animation: none; }
.gtile.c13::before { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); animation: none; }
.gtile.c14::before { background: linear-gradient(135deg, #8bffc9, #2ee68a); animation: none; }
.gtile.c15::before { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); animation: none; }
.gtile.c16::before { background: linear-gradient(135deg, #ffe08a, #ffcc33); animation: none; }

.list-panel { margin: 0 14px 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; backdrop-filter: blur(7px); }
.list-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.list-panel-title { font-size: 14.5px; font-weight: 800; color: var(--text-1); }
.list-panel-more { font-size: 12px; color: var(--accent-2); font-weight: 700; }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--glass-border); gap: 10px; }
.list-row:last-child { border-bottom: none; }
.list-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-row-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--glass-bg-strong); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.list-row-title { font-size: 13px; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-sub { font-size: 11px; color: var(--text-3); }

.promo-panel { margin: 0 14px 18px; }
.promo-carousel { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); }
.promo-track { display: flex; transition: transform .5s ease; }
.promo-slide { flex: 0 0 100%; min-width: 100%; position: relative; aspect-ratio: 16/7; background: linear-gradient(120deg, var(--bg-2), var(--bg-3)); overflow: hidden; }
.promo-slide img, .promo-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-slide-link { position: absolute; inset: 0; display: block; }
.promo-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); color: #fff; font-size: 13px; font-weight: 700; }
.promo-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.promo-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.promo-dot.active { background: #fff; width: 16px; border-radius: 4px; }

/* ---------------- Premium Wallet Balance Card — "Neon Vault" theme ---------------- */
.wallet-card {
  position: relative;
  margin: 14px 14px 4px;
  border-radius: 26px;
  overflow: hidden;      /* clips the oversized spinning ring-layer to this card's shape */
  isolation: isolate;
  color: #fff;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  z-index: 0;
  padding: 0;            /* reset legacy .wallet-card padding above so it doesn't show as a gap */
  background: none;      /* reset legacy .wallet-card gradient background above */
  border: none;          /* reset legacy .wallet-card border above */
  box-shadow: 0 0 30px rgba(255,157,0,.25), 0 0 50px rgba(0,229,255,.2);
}
/* Ring restored to match the Quick Services tile ring 100% — same gradient colours,
   same 2px thickness, same animation speed. */
.wc-border {
  position: absolute; inset: -60%;
  background: conic-gradient(from 180deg, #ff9d00, #ff9d00 25%, #00e5ff 55%, #00e5ff 75%, #ff9d00);
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 12px rgba(255,157,0,.4)) drop-shadow(0 0 12px rgba(0,229,255,.35));
}
@media (prefers-reduced-motion: reduce) {
  .wc-border { animation: none; }
}
.wc-inner {
  position: relative;
  margin: 2px;
  border-radius: 24px;
  padding: 22px 20px 18px;
  overflow: hidden;
  z-index: 1;
}
.wallet-card-glow {
  background: linear-gradient(160deg, #241f52 0%, #171041 45%, #0e0c2a 100%);
}
.wc-glow-blob {
  position: absolute; top: -30%; left: 10%; width: 70%; height: 90%;
  background: radial-gradient(circle, rgba(124,92,255,.28), transparent 65%);
  pointer-events: none; z-index: 0;
}
.wallet-card::after { content: none; }  /* neutralize legacy glow blob above; .wc-glow-blob replaces it */

.wallet-card-main { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wallet-card-left { min-width: 0; }
.wallet-card-label { font-size: 13px; font-weight: 500; color: rgba(214, 210, 250, 0.75); }
.wallet-card-amount {
  font-size: 34px; font-weight: 800; letter-spacing: .3px; margin-top: 8px;
  font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.wc-eye-btn {
  flex-shrink: 0; margin-top: 34px;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0; transition: background .15s ease, transform .15s ease;
  position: relative; z-index: 2;
}
.wc-eye-btn:active { transform: scale(.9); }
.wc-eye-icon svg { display: block; }
.wc-wallet-art {
  position: absolute; right: -6px; top: 4px; width: 118px; height: 118px;
  filter: drop-shadow(0 10px 26px rgba(124,92,255,.5));
  z-index: 1; pointer-events: none;
}

.wallet-card-chips {
  position: relative; z-index: 2; display: flex; align-items: center;
  margin-top: 20px; padding: 14px 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; backdrop-filter: blur(3px);
}
.wc-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.wc-chip-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.12); margin: 0 10px; }
.wc-chip-ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wc-ic-purple { background: linear-gradient(135deg, #ff8bb8, #ff2f9c); box-shadow: 0 0 9px 2px rgba(255,47,156,.6); }
.wc-ic-blue   { background: linear-gradient(135deg, #6fa3ff, #3d7bff); box-shadow: 0 0 9px 2px rgba(61,123,255,.6); }
.wc-ic-teal   { background: linear-gradient(135deg, #7fe3ff, #22c3f0); box-shadow: 0 0 9px 2px rgba(34,195,240,.6); }
.wc-chip-text { display: flex; flex-direction: column; min-width: 0; }
.wc-chip-l { font-size: 10.5px; font-weight: 500; color: rgba(214, 210, 250, 0.7); white-space: nowrap; }
.wc-chip-n { font-size: 14px; font-weight: 800; color: #fff; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 480px) {
  .wc-wallet-art { width: 138px; height: 138px; right: 6px; top: 0; }
}

/* On narrow phones the three chips (Commission / Orders / Pending) used to squeeze so
   tightly in one row that the Commission amount could get clipped down to nothing by the
   ellipsis. Give Commission its own full-width row so the number is always fully visible,
   no matter how long it is, and put Orders/Pending in a row underneath. */
@media (max-width: 380px) {
  .wallet-card-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .wc-chip-divider { display: none; }
  .wc-chip:nth-child(1) { grid-column: 1 / -1; }
  .wc-chip-n { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; }
}

.bottom-navbar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(9,10,22,.97); border-top: 1px solid rgba(167,139,250,.18); box-shadow: 0 -8px 28px rgba(0,0,0,.4); display: flex; justify-content: space-around; padding: 8px 0 10px; z-index: 40; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.bottom-nav-item.active { background: linear-gradient(135deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bottom-nav-item .bn-ic { font-size: 19px; }
.bottom-nav-item.active .bn-ic { filter: drop-shadow(0 0 6px rgba(124,92,255,.6)); }

/* ---------------- Missed dashboard bits ---------------- */
.section-title { font-size: 15.5px; font-weight: 800; color: var(--text-1); margin: 24px 20px 14px; display: flex; align-items: center; gap: 8px; }
.list-row-right { text-align: right; flex-shrink: 0; }

/* Deposit History — compact single-line rows, no side/horizontal scroll */
.dh-list-panel { padding: 10px 14px; }
.dh-row { padding: 9px 0; gap: 8px; }
.dh-row-info { min-width: 0; flex: 1; }
.dh-row-info .list-row-title { font-size: 12.5px; }
.dh-row-info .list-row-sub { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }

/* =====================================================
   Home / Landing page (index.php) — "np-" prefixed blocks
   ===================================================== */
.np-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.np-header-left { display: flex; align-items: center; gap: 12px; }
.np-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.np-hello { font-size: 15px; font-weight: 700; color: var(--text-1); }
.np-sub { font-size: 12px; color: var(--text-2); }
.np-bell { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.np-bell .badge { position: absolute; top: -2px; right: -2px; background: var(--accent-3); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.np-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 14px 0; padding: 22px 20px; border-radius: 22px; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(34,211,238,.15)); border: 1px solid var(--glass-border); overflow: hidden; position: relative; }
.np-banner-balance { background: linear-gradient(135deg, rgba(124,92,255,.4), rgba(255,92,168,.15)); }
.np-banner-text { position: relative; z-index: 2; }
.np-banner-tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--accent-2); }
.np-banner-amount, .np-banner-title { font-size: 26px; font-weight: 800; color: var(--text-1); margin: 4px 0; }
.np-banner-title .accent { background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.np-banner-sub { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.np-banner-btn { display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); padding: 10px 18px; border-radius: 20px; }
.np-banner-media { flex-shrink: 0; width: 90px; opacity: .9; }
.np-banner-media img { width: 100%; }

.np-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.np-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--glass-border); display: inline-block; }
.np-dots span.active { background: var(--accent-2); width: 16px; border-radius: 4px; }

.np-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.np-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px 4px; text-align: center; position: relative; transition: transform .15s ease; }
.np-tile:hover { transform: translateY(-2px); }
.np-tile-icon { width: 42px; height: 42px; border-radius: 13px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 5px 12px rgba(0,0,0,.35); background: linear-gradient(150deg, var(--accent), var(--accent-2)); }
.np-tile-icon.t1 { background: linear-gradient(150deg,#60A5FA,#2563EB); }
.np-tile-icon.t2 { background: linear-gradient(150deg,#22D3EE,#0891B2); }
.np-tile-icon.t3 { background: linear-gradient(150deg,#34D399,#059669); }
.np-tile-icon.t4 { background: linear-gradient(150deg,#F472B6,#DB2777); }
.np-tile-icon.t5 { background: linear-gradient(150deg,#FDE047,#CA8A04); }
.np-tile-icon.t6 { background: linear-gradient(150deg,#C084FC,#7E22CE); }
.np-tile-icon.t7 { background: linear-gradient(150deg,#FB923C,#C2410C); }
.np-tile-icon.t8 { background: linear-gradient(150deg,#818CF8,#4338CA); }
.np-tile-label { font-size: 10.5px; font-weight: 700; color: var(--text-1); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.np-tile-badge { position: absolute; top: 4px; right: 6px; background: var(--accent-3); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 8px; }
.np-tile-badge.blue { background: var(--accent-2); color: #062229; }
.np-tile-badge.green { background: var(--success); }

.np-section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 20px 12px; }
.np-section-title { font-size: 15.5px; font-weight: 800; color: var(--text-1); }
.np-view-all { font-size: 12px; color: var(--accent-2); font-weight: 700; }

.np-offers { display: flex; gap: 12px; padding: 0 14px; overflow-x: auto; }
.np-offer-card { flex: 0 0 200px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; }
.np-offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.np-offer-logo { font-size: 11px; font-weight: 800; color: var(--text-1); text-transform: uppercase; }
.np-offer-pill { font-size: 10px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 10px; background: var(--accent); }
.np-offer-cash { font-size: 16px; font-weight: 800; color: var(--text-1); }
.np-offer-desc { font-size: 11.5px; color: var(--text-2); margin-bottom: 10px; }
.np-offer-code { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--accent-2); border: 1px dashed var(--glass-border); padding: 3px 10px; border-radius: 8px; margin-bottom: 10px; }
.np-offer-btn { display: block; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 9px; border-radius: 10px; }
.np-offer-card.gp .gp-pill, .np-offer-card.gp .gp-logo, .np-offer-card.gp .gp-code { color: #4ade80; }
.np-offer-card.gp .gp-pill { background: #16a34a; color: #fff; }
.np-offer-card.gp .gp-btn { background: linear-gradient(135deg, #22c55e, #16a34a); }
.np-offer-card.robi .robi-pill { background: #dc2626; color: #fff; }
.np-offer-card.robi .robi-logo, .np-offer-card.robi .robi-code { color: #f87171; }
.np-offer-card.robi .robi-btn { background: linear-gradient(135deg, #f87171, #dc2626); }

.promo-strip { display: flex; gap: 12px; padding: 0 14px 4px; overflow-x: auto; }
.promo-item { flex: 0 0 260px; padding: 0; overflow: hidden; }
.promo-item img { width: 100%; display: block; border-radius: 16px; }

.np-secure { display: flex; align-items: center; gap: 14px; margin: 20px 14px; padding: 16px 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; }
.np-secure-ic { font-size: 22px; }
.np-secure-title { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.np-secure-sub { font-size: 11.5px; color: var(--text-2); }
.np-secure-arrow { margin-left: auto; font-size: 20px; color: var(--text-3); }

.np-bottomnav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(11,14,26,.97); border-top: 1px solid var(--glass-border); display: flex; justify-content: space-around; padding: 8px 0 10px; z-index: 40; }
.np-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.np-nav-item .ic { font-size: 19px; }
.np-nav-item.active { color: var(--accent-2); }

/* ==================================================================
   HOME PAGE REDESIGN v2 (space / planet theme, matches design brief)
   ================================================================== */
.hp-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.hp-brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--text-1); }
.hp-brand img { width: 30px; height: 30px; }
.hp-brand .hl { background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hp-user-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 4px; }
.hp-user-left { display: flex; align-items: center; gap: 12px; }
.hp-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 16px rgba(124,92,255,.35); }
.hp-hello { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.hp-username { font-size: 19px; font-weight: 800; color: var(--text-1); margin-top: 1px; line-height: 1.15; }
.hp-wallet-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 7px 8px 7px 12px; border-radius: 20px; font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.hp-wallet-chip svg { color: #facc15; flex-shrink: 0; }
.hp-wallet-chip .chip-arrow { color: var(--text-3); margin-left: 2px; }
.hp-bell { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-1); }
.hp-bell .badge { position: absolute; top: -3px; right: -3px; background: linear-gradient(135deg,#f43f5e,#ec4899); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--bg-1); }

.hp-hero { position: relative; margin: 16px 14px 0; border-radius: 22px; overflow: hidden; background: #0a0a18; border: 1px solid var(--glass-border); padding: 18px 18px 16px; max-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.hp-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: right center; }
.hp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, #070712 0%, rgba(9,8,22,.94) 32%, rgba(9,8,22,.55) 55%, rgba(9,8,22,.08) 78%, transparent 100%); }
.hp-hero-content { position: relative; z-index: 2; max-width: 66%; }
.hp-hero-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.1px; color: #dcaaff; text-transform: uppercase; }
.hp-hero-title { font-size: 21px; font-weight: 800; color: #fff; margin: 6px 0 3px; line-height: 1.08; white-space: nowrap; }
.hp-hero-title .accent { background: linear-gradient(90deg, #c471ff, #ff5ca8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-hero-sub { font-size: 11.5px; color: #c7c9de; margin-bottom: 10px; }
.hp-hero-code { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: #e9e9f5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 20px; }
.hp-hero-code b { color: #ff8fd0; letter-spacing: .5px; }
.hp-hero-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); padding: 10px 16px; border-radius: 13px; box-shadow: 0 10px 22px rgba(180,60,200,.35); white-space: nowrap; }
.hp-hero-cta-row { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin-top: 10px; }

/* Single static promo box — the dot row is a plain visual indicator only
   (no swipe/slide behaviour exists), so only one dot is shown active and
   the box itself never scrolls internally; it always fits within its
   own fixed max-height above. */
.hp-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 14px; }
.hp-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--glass-border); display: inline-block; }
.hp-dots span.active { background: linear-gradient(90deg, var(--accent), var(--accent-3)); width: 18px; border-radius: 4px; }

@media (max-width: 380px) {
  .hp-hero { max-height: 172px; padding: 15px 16px 14px; }
  .hp-hero-title { font-size: 18px; }
}

.hp-commission-strip { display: flex; align-items: center; gap: 10px; margin: 0 14px 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(120deg, rgba(234,179,8,.16), rgba(234,179,8,.05)); border: 1px solid rgba(234,179,8,.3); }
.hp-commission-ic { font-size: 18px; flex-shrink: 0; }
.hp-commission-text { font-size: 12.5px; color: var(--text-1); line-height: 1.35; }
.hp-commission-text b { color: #facc15; }

.hp-ticker { display: flex; align-items: stretch; margin: 0 14px 20px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.hp-ticker-tag { flex-shrink: 0; display: flex; align-items: center; font-weight: 800; font-size: 12px; letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, #c026d3, #ec4899); padding: 0 16px; }
.hp-ticker-track { flex: 1; display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #22309c, #16205c); padding: 0 14px; overflow: hidden; }
.hp-ticker-icon { flex-shrink: 0; color: #fff; opacity: .85; }
.hp-ticker-content { flex: 1; overflow: hidden; white-space: nowrap; }
.hp-ticker-content span { display: inline-block; padding-left: 100%; animation: ticker-scroll2 18s linear infinite; color: #fff; font-size: 12.5px; font-weight: 600; }
@keyframes ticker-scroll2 { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.hp-ticker-viewall { flex-shrink: 0; display: flex; align-items: center; gap: 3px; color: #fff; font-size: 12px; font-weight: 700; padding: 0 16px; background: #16205c; white-space: nowrap; }

/* Login/Register segmented toggle, sits right under the hero banner.
   Tapping a pill switches it to the pink→blue gradient and it STAYS that
   way (a real toggle state, not a fading ripple) until the other pill is
   tapped — handled in main.js via the .hp-auth-pill.active class, which
   is also remembered in sessionStorage so it survives a back-navigation. */
.hp-auth-toggle { display: flex; gap: 6px; margin: 14px 14px 6px; padding: 5px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px; }
.hp-auth-pill { flex: 1; text-align: center; padding: 11px 10px; border-radius: 14px; font-size: 13.5px; font-weight: 700; color: var(--text-2); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.hp-auth-pill.active {
  color: #fff;
  background: linear-gradient(120deg, #ec4899, #a855f7 55%, #3b82f6);
  box-shadow: 0 8px 20px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255,255,255,.25);
}

.hp-services { margin: 4px 14px 0; }
.hp-section-title { font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; color: var(--text-2); margin: 0 2px 12px; text-transform: uppercase; }
.hp-services-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px; padding: 16px 4px 13px; text-align: center; transition: transform .15s ease; }
.hp-tile:hover { transform: translateY(-3px); }
.hp-tile svg { width: 27px; height: 27px; display: block; }
.hp-tile-label { font-size: 10.3px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.hp-ic-blue { color: #3b82f6; filter: drop-shadow(0 0 7px rgba(59,130,246,.55)); }
.hp-ic-cyan { color: #22d3ee; filter: drop-shadow(0 0 7px rgba(34,211,238,.55)); }
.hp-ic-green { color: #22c55e; filter: drop-shadow(0 0 7px rgba(34,197,94,.55)); }
.hp-ic-orange { color: #f97316; filter: drop-shadow(0 0 7px rgba(249,115,22,.55)); }
.hp-ic-purple { color: #a855f7; filter: drop-shadow(0 0 7px rgba(168,85,247,.55)); }
.hp-ic-gold { color: #eab308; filter: drop-shadow(0 0 7px rgba(234,179,8,.55)); }
.hp-ic-pink { color: #ec4899; filter: drop-shadow(0 0 7px rgba(236,72,153,.55)); }
.hp-ic-teal { color: #2dd4bf; filter: drop-shadow(0 0 7px rgba(45,212,191,.55)); }

.hp-offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 14px; }
.hp-offer-card { border-radius: 20px; padding: 18px 16px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.hp-offer-card.gp { background: linear-gradient(165deg, #0a3fae, #031a5c 75%); }
.hp-offer-card.robi { background: linear-gradient(165deg, #d61f3f, #500712 75%); }
.hp-offer-card.bl { background: linear-gradient(165deg, #e0791f, #6e2705 75%); }
.hp-offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 8px; }
.hp-offer-logo { height: 24px; display: flex; align-items: center; }
.hp-offer-logo img { height: 100%; width: auto; display: block; object-fit: contain; }
.hp-offer-pill { flex-shrink: 0; font-size: 10px; font-weight: 800; color: #fff; background: rgba(255,255,255,.16); padding: 4px 9px; border-radius: 10px; white-space: nowrap; }
.hp-offer-pct { font-size: 32px; font-weight: 800; line-height: 1; }
.hp-offer-cash { font-size: 12.5px; font-weight: 800; color: #fff; letter-spacing: .5px; margin-top: 3px; text-transform: uppercase; }
.hp-offer-desc { font-size: 11.5px; color: rgba(255,255,255,.7); margin: 6px 0 16px; }
.hp-offer-btn { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 10px; border-radius: 12px; }
.hp-offer-card.gp .hp-offer-pct { color: #62c8ff; }
.hp-offer-card.robi .hp-offer-pct { color: #ff8296; }
.hp-offer-card.bl .hp-offer-pct { color: #ffb35c; }
.hp-offer-card.gp .hp-offer-btn { background: linear-gradient(135deg, #1a7bff, #0a3fae); color: #fff; }
.hp-offer-card.robi .hp-offer-btn { background: linear-gradient(135deg, #ff3b57, #d61f3f); color: #fff; }
.hp-offer-card.bl .hp-offer-btn { background: linear-gradient(135deg, #ff9d3d, #e0791f); color: #fff; }

.hp-nav-item .ic svg { width: 21px; height: 21px; display: block; }

@media (max-width: 480px) {
  .hp-hero-content { max-width: 78%; }
  .hp-hero-title { font-size: 24px; }
  .hp-services-grid { gap: 7px; }
  .hp-tile { padding: 12px 2px 10px; border-radius: 15px; }
  .hp-tile svg { width: 22px; height: 22px; }
  .hp-tile-label { font-size: 9px; }
  .hp-offers-grid { gap: 8px; }
  .hp-offer-card { padding: 12px 10px; }
  .hp-offer-pct { font-size: 24px; }
}
@media (max-width: 340px) {
  .hp-services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hp-offers-grid { grid-template-columns: 1fr; }
}

/* ---------------- Services page (services.php uses np-tile grid) ---------------- */
.svc-title { font-size: 19px; font-weight: 800; color: var(--text-1); margin: 4px 0 4px; }
.svc-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.svc-section { font-size: 13.5px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; margin: 26px 0 12px; }
.svc-section:first-of-type { margin-top: 6px; }

/* =====================================================
   Premium Glowing Header (navbar / wallet-topbar / hero-banner)
   Blue -> royal blue -> sky blue -> purple, animated, mobile-first
   ===================================================== */
.glow-surface {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #071230 0%, #0d2a6b 16%, #1e3a8a 34%, #2563eb 54%, #38bdf8 76%, #7c3aed 100%) !important;
  background-size: 240% 240% !important;
  animation: pgFlow 16s ease-in-out infinite;
}
.glow-surface::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 18% 22%, rgba(56,189,248,.55), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(124,58,237,.55), transparent 46%),
    radial-gradient(circle at 50% 95%, rgba(37,99,235,.5), transparent 46%);
  filter: blur(13px);
  z-index: 0;
  pointer-events: none;
}
.glow-surface::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.24), transparent);
  transform: skewX(-16deg);
  z-index: 1;
  pointer-events: none;
}
.glow-surface > *:not(.glow-particles) { position: relative; z-index: 2; }
.glow-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.75) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 1.6px);
  background-size: 70px 70px, 100px 100px, 46px 46px;
  background-position: 8px 16px, 55px 65px, 28px 8px;
  opacity: .55;
}
@keyframes pgFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pgOrbit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pgStreak { 0% { left: -60%; } 45% { left: 130%; } 100% { left: 130%; } }
@keyframes pgTwinkle { 0% { opacity: .28; } 100% { opacity: .68; } }

/* =====================================================
   Deposit Page - Gateway Selection Cards
   ===================================================== */
.dep-step-card { margin-bottom: 16px; }
.dep-step-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text-1); margin-bottom: 14px; }
.dep-step-num { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-card {
  position: relative;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pg-card:active { transform: scale(.97); }
.pg-badge { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
.pg-card.pg-bkash .pg-badge { background: linear-gradient(135deg, #e2136e, #b8105a); }
.pg-card.pg-nagad .pg-badge { background: linear-gradient(135deg, #f7941d, #ec6608); }
.pg-card.pg-rocket .pg-badge { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.pg-name { font-size: 12.5px; font-weight: 700; color: var(--text-1); }
.pg-check { position: absolute; top: 6px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; font-size: 10px; display: none; align-items: center; justify-content: center; }
.pg-card.selected { border-color: var(--accent-2); background: var(--glass-bg-strong); box-shadow: 0 0 0 2px rgba(34,211,238,.25); }
.pg-card.selected .pg-check { display: flex; }
.pg-card.pg-disabled { opacity: .4; cursor: not-allowed; }
.pg-soon { font-size: 8.5px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: .3px; }

.pg-numbers-panel { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--glass-border); }
.pg-numbers-title { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; }
.pg-number-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--bg-page); border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--glass-border); }
.pg-number-type { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.pg-number-value { font-size: 16px; font-weight: 800; letter-spacing: .5px; color: var(--text-1); }
.pg-copy-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-1); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.pg-copy-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------------- Two-Step Deposit Wizard ---------------- */
.wiz-progress { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; padding: 0 2px; }
.wiz-step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; opacity: .5; transition: opacity .2s ease; }
.wiz-step.active { opacity: 1; }
.wiz-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--glass-bg); border: 1.5px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; color: var(--text-2); flex-shrink: 0; }
.wiz-step.active .wiz-dot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.wiz-label { font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.wiz-step.active .wiz-label { color: var(--text-1); }
.wiz-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--glass-border); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }

.wiz-back { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-1); font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(124,92,255,.18), rgba(34,211,238,.10)); border: 1px solid var(--glass-border); margin-bottom: 14px; flex-wrap: wrap; }
.pay-summary-gw { font-size: 13px; font-weight: 800; color: var(--text-1); }
.pay-summary-amt { font-size: 13px; color: var(--text-2); }
.pay-summary-amt strong { color: var(--accent-2); font-size: 15px; }
.pay-instruction { margin-top: 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; background: var(--bg-page); border-radius: 12px; padding: 12px 14px; }

/* =====================================================
   Drag & Drop Upload
   ===================================================== */
.upload-dropzone {
  position: relative;
  border: 1.5px dashed var(--glass-border);
  border-radius: 14px;
  background: var(--bg-page);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload-dropzone.dragover { border-color: var(--accent-2); background: rgba(34,211,238,.08); }
.upload-dropzone.has-file { padding: 8px; }
.upload-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-dz-icon { font-size: 26px; margin-bottom: 6px; }
.upload-dz-text { font-size: 13.5px; font-weight: 700; color: var(--text-1); }
.upload-dz-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.upload-dropzone img#ssPreview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; }

/* =====================================================
   Gradient Submit Button with Loading State
   ===================================================== */
.btn-gradient-submit {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s ease;
  position: relative;
  overflow: hidden;
}
.btn-gradient-submit::after {
  content: '';
  position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.2s ease-in-out infinite;
}
@keyframes btnShine { 0% { left: -75%; } 55% { left: 130%; } 100% { left: 130%; } }
.btn-gradient-submit.is-loading { opacity: .8; cursor: not-allowed; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* =====================================================
   Custom Flexiload — Account Type Toggle / Operator Badges / Amount Chips
   ===================================================== */
.flexi-card { position: relative; }

.acct-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.acct-opt {
  padding: 10px 6px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.acct-opt.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}

.op-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.op-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.op-badge:hover { transform: translateY(-2px); }
.op-badge.selected {
  border-color: var(--op-color, var(--accent));
  background: color-mix(in srgb, var(--op-color, var(--accent)) 14%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--op-color, var(--accent)) 22%, transparent);
}
.op-badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--op-color, var(--accent)); }
.op-badge-label { font-size: 12.5px; font-weight: 700; }

/* Operator "logo" avatar (2-letter mark) used in the redesigned Flexiload grid */
.op-badge-logo {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--op-color, var(--accent)), var(--op-color2, var(--accent-2)));
  box-shadow: 0 5px 14px rgba(0,0,0,.35);
}
.op-badge.selected .op-badge-logo { box-shadow: 0 0 0 3px color-mix(in srgb, var(--op-color, var(--accent)) 30%, transparent), 0 5px 14px rgba(0,0,0,.35); }

.amt-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.amt-chip {
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.amt-chip:hover { color: var(--text-1); border-color: rgba(255,255,255,.25); }
.amt-chip.active {
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-2);
}

.hint-ok { color: var(--success) !important; }
.hint-bad { color: var(--danger) !important; }

.flexi-summary {
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.flexi-summary strong { color: var(--text-1); }

/* =====================================================
   Purchase Pages — Animated Filter Transitions
   ===================================================== */
.offer-grid-wrap { position: relative; }
.offer-card {
  transition: opacity .28s ease, transform .28s ease;
}
.offer-card.fx-hide,
.pack-card.fx-hide {
  opacity: 0;
  transform: scale(.94);
  position: absolute;
  pointer-events: none;
  visibility: hidden;
}
.offer-card.fx-show,
.pack-card.fx-show {
  opacity: 1;
  transform: scale(1);
}
.pack-card { transition: opacity .28s ease, transform .28s ease; }
.btn.filter-pill { transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn.filter-pill:active { transform: scale(.96); }

/* =====================================================
   Add Balance — Premium single-page deposit UI
   ===================================================== */
.ab-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.ab-hero-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.ab-hero-sub { color: var(--text-2); font-size: 13.5px; max-width: 360px; }
.ab-hero-art { flex-shrink: 0; filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.45)); }

.ab-card { margin-bottom: 16px; }
.ab-card-label { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; }

/* Single compact card: all deposit steps in one continuous form, no scattered cards */
.ab-single-card { padding: 22px; }
.ab-section { padding: 0; }
.ab-section + .ab-section { margin-top: 0; }
.ab-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--glass-border);
}
@media (max-width: 480px) {
  .ab-single-card { padding: 18px 16px; }
  .ab-divider { margin: 16px 0; }
}

.ab-amount-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
}
.ab-amount-currency { font-size: 26px; color: var(--text-3); font-weight: 700; }
.ab-amount-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 26px;
  font-weight: 700;
  min-width: 0;
}
.ab-amount-box input::placeholder { color: var(--text-3); }
.ab-amount-badge {
  background: rgba(124, 92, 255, 0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  letter-spacing: .4px;
}

/* Payment method selectable cards */
.pg-card2 {
  position: relative;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 18px 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.pg-card2:active { transform: scale(.97); }
.pg-radio {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pg-card2.selected .pg-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.pg-badge2 {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-card2.pg-bkash .pg-badge2 { background: linear-gradient(135deg, #e2136e, #b8105a); box-shadow: 0 4px 16px rgba(226, 19, 110, 0.35); }
.pg-card2.pg-nagad .pg-badge2 { background: linear-gradient(135deg, #f7941d, #ec6608); box-shadow: 0 4px 16px rgba(247, 148, 29, 0.35); }
.pg-card2.pg-rocket .pg-badge2 { background: linear-gradient(135deg, #8b5cf6, #4c1d95); box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35); }
.pg-name2 { font-size: 14px; font-weight: 800; color: var(--text-1); }
.pg-sub2 { font-size: 11px; font-weight: 600; margin-top: 2px; }
.pg-card2.pg-bkash .pg-sub2 { color: #f472a8; }
.pg-card2.pg-nagad .pg-sub2 { color: #fbae42; }
.pg-card2.pg-rocket .pg-sub2 { color: #a78bfa; }
.pg-card2.selected {
  border-color: var(--accent);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(124, 92, 255, 0.25);
}
.pg-card2.pg-disabled { opacity: .4; cursor: not-allowed; }

@keyframes abRevealIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pg-reveal-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.3);
  animation: abRevealIn .35s ease;
}
.pg-reveal-title { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }

.ab-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.ab-input-icon { color: var(--text-3); flex-shrink: 0; display: flex; }
.ab-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 15px;
  min-width: 0;
}
.ab-input-box input::placeholder { color: var(--text-3); }
.ab-input-box + .ab-input-box { margin-top: 10px; }

.ab-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.ab-warning-ic { flex-shrink: 0; }

.ab-submit {
  margin-top: 18px;
  font-size: 16px;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--accent), #5b3df0);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}
.ab-submit-ic { font-size: 16px; }

.ab-trust {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 14px;
}
.ab-trust strong { color: var(--accent); }

/* =====================================================
   Custom Flexiload — Premium 3D Redesign (clean, single card)
   ===================================================== */
.flexi3d-wrap { max-width: 480px; margin: 0 auto; padding: 8px 0 28px; }

.flexi3d-header { text-align: center; margin-bottom: 22px; }
.flexi3d-illust {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.flexi3d-illust-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(124,92,255,.45), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  animation: flexi3dPulse 3.2s ease-in-out infinite;
}
.flexi3d-illust-badge {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 24px;
  background: linear-gradient(150deg, #372d78, #14102f);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  box-shadow:
    0 18px 34px rgba(124, 92, 255, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4);
  animation: flexi3dFloat 3.2s ease-in-out infinite;
}
.flexi3d-illust-bolt {
  position: absolute; bottom: -4px; right: -8px;
  font-size: 22px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}
@keyframes flexi3dFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes flexi3dPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.flexi3d-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.flexi3d-subtitle { font-size: 13.5px; color: var(--text-2); margin: 0; }

.flexi3d-card {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--bg-3);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
  overflow: hidden;
}
.flexi3d-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1.5px;
  background: linear-gradient(135deg, rgba(139,92,246,.6), rgba(99,102,241,.3) 45%, rgba(34,211,238,.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.flexi3d-field { margin-bottom: 18px; position: relative; z-index: 1; }
.flexi3d-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }

.flexi3d-input-wrap { position: relative; display: flex; align-items: center; }
.flexi3d-icon {
  position: absolute; left: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); pointer-events: none;
}
.flexi3d-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.flexi3d-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.flexi3d-input-wrap input::placeholder { color: var(--text-3); font-weight: 500; }

.flexi3d-amount-wrap { position: relative; display: flex; align-items: center; }
.flexi3d-currency {
  position: absolute; left: 16px;
  font-size: 22px; font-weight: 800; color: var(--accent-2);
  pointer-events: none;
}
.flexi3d-amount-wrap input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.flexi3d-amount-wrap input:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}
.flexi3d-amount-wrap input::placeholder { color: var(--text-3); font-weight: 700; }

/* 6-column base grid: a normal operator badge spans 2 columns (3 per row);
   the last two badges (Airtel, Teletalk when there are 5 operators) span 3
   columns each so they stretch to fill the final row — this reproduces the
   "3 on top, 2 wider on the bottom" layout used across the app. */
.flexi3d-op-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flexi3d-op-badge {
  grid-column: span 2;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--text-1);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.flexi3d-op-badge:nth-last-child(-n+2) { grid-column: span 3; }
.flexi3d-op-badge:hover { transform: translateY(-2px); }
.flexi3d-op-badge.selected {
  border-color: var(--op-color, var(--accent));
  background: color-mix(in srgb, var(--op-color, var(--accent)) 12%, transparent);
  box-shadow:
    0 0 0 1px var(--op-color, var(--accent)),
    0 0 14px 1px color-mix(in srgb, var(--op-color, var(--accent)) 45%, transparent);
}
.flexi3d-op-logo {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--op-color, var(--accent)), var(--op-color2, var(--accent-2)));
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.flexi3d-op-logo svg { width: 100%; height: 100%; display: block; }
.flexi3d-op-badge.selected .flexi3d-op-logo {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--op-color, var(--accent)) 40%, transparent), 0 3px 8px rgba(0,0,0,.35);
}
.flexi3d-op-name { font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.flexi3d-op-badge.selected .flexi3d-op-name { color: var(--text-1); }

.flexi3d-submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #5b3df0 55%, var(--accent-3));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.flexi3d-submit:hover { box-shadow: 0 18px 40px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,.25); }
.flexi3d-submit:active { transform: scale(.98); }

.flexi3d-history { margin-top: 22px; }
.flexi3d-history-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; padding: 0 2px; }

@media (max-width: 380px) {
  .flexi3d-op-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .flexi3d-op-name { font-size: 11px; }
}

/* =====================================================
   Data Pack / Minute Pack / Mixed Bundle / Recharge
   Premium Neon Telecom Purchase Pages
   ===================================================== */
.pack-page { max-width: 720px; margin: 0 auto; position: relative; }

/* Galaxy / glow ambient backdrop behind the whole page */
.pack-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 8%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 44%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 78%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(circle at 15% 0%, rgba(124,92,255,.20) 0%, transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(34,211,238,.14) 0%, transparent 38%);
  background-repeat: no-repeat;
  opacity: .9;
}

@keyframes packFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- Header: glow icon + title + balance ---------------- */
.pack-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  animation: packFadeIn .5s ease both;
}
.pack-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pack-icon-glow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(160deg, rgba(124,92,255,.28), rgba(34,211,238,.14));
  border: 1px solid rgba(124,92,255,.5);
  box-shadow: 0 0 0 1px rgba(124,92,255,.15) inset,
              0 8px 22px rgba(124,92,255,.35),
              0 0 26px rgba(124,92,255,.35);
  animation: packIconPulse 3.2s ease-in-out infinite;
}
@keyframes packIconPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(124,92,255,.15) inset, 0 8px 22px rgba(124,92,255,.35), 0 0 22px rgba(124,92,255,.30); }
  50% { box-shadow: 0 0 0 1px rgba(124,92,255,.2) inset, 0 8px 26px rgba(124,92,255,.5), 0 0 38px rgba(124,92,255,.55); }
}
.pack-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 3px;
  background: linear-gradient(90deg, #fff, #cfd1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pack-sub { font-size: 12px; color: var(--text-2); }
.pack-daily-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffd27a;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 10px 0 14px;
}

.pack-balance-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,.4);
  background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(255,255,255,.03));
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(124,92,255,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pack-balance-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124,92,255,.35); }
.pack-balance-ic { font-size: 14px; }

/* ---------------- Slim topbar (title + balance only, no icon/subtitle) ---------------- */
.pack-topbar-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(124,92,255,.22);
  animation: packFadeIn .5s ease both;
}
.pack-title-slim {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #ff9a3c, #ff5ea8 35%, #7c5cff 70%, #22d3ee);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: packTitleShine 5s linear infinite;
}
@keyframes packTitleShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ---------------- Full-screen Recharge page (buy.php) ---------------- */
body.buy-fullscreen .main-content { padding: 0; }
body.buy-fullscreen .main-content .container { max-width: 100%; padding: 0; }

/* ---------------- Full-screen form pages: Withdraw / Flexiload / Savings ----------------
   These pages used to render their form card as a narrow 480px "sub-screen" box floating
   inside the wide page container. Locking .formpage-fullscreen removes that inner box and
   lets the form use the full device width edge-to-edge.

   .wd-app-screen goes further: it locks the header + balance + form into exactly the space
   between the top navbar and the bottom nav bar, like a native app screen — so filling in
   the form and hitting Submit never requires scrolling. Any history/table list is rendered
   OUTSIDE .wd-app-screen (as a normal sibling below it), so it's still reachable by scrolling
   further down, without affecting the no-scroll form screen above it. */
body.formpage-fullscreen .main-content { padding: 0; }
body.formpage-fullscreen .main-content .container { max-width: 100%; padding: 0 14px; }

body.formpage-fullscreen .wd-app-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 128px);
  min-height: calc(100dvh - 128px);
  gap: 5px;
  padding: 4px 0;
}

body.formpage-fullscreen .page-header { margin: 0 0 3px; }
body.formpage-fullscreen .page-header .page-title { font-size: 15px; }
body.formpage-fullscreen .page-header .page-sub { display: none; }

body.formpage-fullscreen .wd3d-wrap,
body.formpage-fullscreen .flexi3d-wrap {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.formpage-fullscreen .wd3d-balance-card { padding: 12px 16px; margin-bottom: 8px; }
body.formpage-fullscreen .wd3d-balance-label { font-size: 11px; margin-bottom: 2px; }
body.formpage-fullscreen .wd3d-balance-amount { font-size: 22px; }

body.formpage-fullscreen .flexi3d-header { margin-bottom: 8px; }
body.formpage-fullscreen .flexi3d-illust { width: 46px; height: 46px; margin: 0 auto 6px; }
body.formpage-fullscreen .flexi3d-illust-badge { width: 44px; height: 44px; font-size: 20px; border-radius: 14px; }
body.formpage-fullscreen .flexi3d-illust-bolt { font-size: 14px; }
body.formpage-fullscreen .flexi3d-title { font-size: 17px; margin: 0 0 2px; }
body.formpage-fullscreen .flexi3d-subtitle { font-size: 11px; }

/* Much tighter, smaller form copy so the whole thing fits one screen */
body.formpage-fullscreen .alert { padding: 6px 10px; font-size: 11px; margin-bottom: 6px; }

body.formpage-fullscreen .wd3d-field,
body.formpage-fullscreen .flexi3d-field { margin-bottom: 6px; }

body.formpage-fullscreen .wd3d-field label,
body.formpage-fullscreen .flexi3d-field label { font-size: 11px; margin-bottom: 3px; }

body.formpage-fullscreen .wd3d-method-grid,
body.formpage-fullscreen .flexi3d-op-grid { gap: 6px; }
body.formpage-fullscreen .wd3d-method-pill { padding: 8px 4px; font-size: 12px; }
body.formpage-fullscreen .wd3d-method-pill svg { width: 14px; height: 14px; }
body.formpage-fullscreen .wd3d-coin-stack { width: 30px; gap: 2px; }
body.formpage-fullscreen .wd3d-coin-stack div { height: 5px; }
body.formpage-fullscreen .wd3d-pin-grid { gap: 7px; }
body.formpage-fullscreen .wd3d-pin-cell { font-size: 16px; border-radius: 10px; max-height: 40px; }
body.formpage-fullscreen .flexi3d-op-badge { padding: 7px 4px; gap: 3px; border-radius: 10px; }
body.formpage-fullscreen .flexi3d-op-logo { width: 26px; height: 26px; font-size: 10px; }
body.formpage-fullscreen .flexi3d-op-name { font-size: 10px; }

body.formpage-fullscreen .wd3d-input-wrap input,
body.formpage-fullscreen .flexi3d-input-wrap input { font-size: 13px; padding: 9px 12px 9px 36px; }

body.formpage-fullscreen .wd3d-amount-wrap input,
body.formpage-fullscreen .flexi3d-amount-wrap input { font-size: 14px; padding: 10px 12px 10px 36px; }

body.formpage-fullscreen .wd3d-icon,
body.formpage-fullscreen .flexi3d-icon { left: 11px; }
body.formpage-fullscreen .wd3d-icon svg,
body.formpage-fullscreen .flexi3d-icon svg { width: 15px; height: 15px; }
body.formpage-fullscreen .wd3d-currency,
body.formpage-fullscreen .flexi3d-currency { left: 12px; font-size: 17px; }

body.formpage-fullscreen .input-hint { font-size: 9.5px; margin-top: 2px; }
body.formpage-fullscreen .wd3d-card,
body.formpage-fullscreen .flexi3d-card { padding: 12px 14px 12px; border-radius: 18px; }
body.formpage-fullscreen .wd3d-submit,
body.formpage-fullscreen .flexi3d-submit { font-size: 13.5px; padding: 11px; margin-top: 2px; }

@media (min-width: 720px) {
  /* On tablets/desktops, cap the form itself (not the page) so inputs don't stretch
     absurdly wide, while the page background/header still uses the full screen. */
  body.formpage-fullscreen .wd3d-card,
  body.formpage-fullscreen .flexi3d-card,
  body.formpage-fullscreen .wd3d-balance-card,
  body.formpage-fullscreen .flexi3d-header,
  body.formpage-fullscreen .page-header {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* History lists sit outside .wd-app-screen so they never affect the no-scroll form above */
body.formpage-fullscreen .wd3d-history,
body.formpage-fullscreen .flexi3d-history { padding: 0 0 24px; }
@media (min-width: 720px) {
  body.formpage-fullscreen .wd3d-history,
  body.formpage-fullscreen .flexi3d-history { max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* Savings "active plan" summary card — same compaction treatment */
body.formpage-fullscreen .sv3d-stats { gap: 6px; margin-bottom: 8px; }
body.formpage-fullscreen .sv3d-stat { padding: 8px 10px; border-radius: 10px; }
body.formpage-fullscreen .sv3d-stat-label { font-size: 9.5px; margin-bottom: 2px; }
body.formpage-fullscreen .sv3d-stat-value { font-size: 15px; }
body.formpage-fullscreen .sv3d-meta-row { padding: 5px 2px; font-size: 11px; }
body.formpage-fullscreen .sv3d-close-btn { margin-top: 8px; padding: 11px; font-size: 12.5px; }
body.formpage-fullscreen .sv3d-lock-note { font-size: 10px; margin-top: 4px; }

/* Add Balance (deposit.php) — same compact, no-scroll treatment */
body.formpage-fullscreen .ab-single-card { padding: 14px; border-radius: 18px; }
body.formpage-fullscreen .ab-card-label { font-size: 11.5px; margin-bottom: 6px; }
body.formpage-fullscreen .ab-divider { margin: 10px 0; }
body.formpage-fullscreen .ab-amount-box { padding: 10px 12px; }
body.formpage-fullscreen .ab-amount-currency { font-size: 19px; }
body.formpage-fullscreen .ab-amount-box input { font-size: 18px; }
body.formpage-fullscreen .ab-amount-badge { font-size: 10.5px; padding: 3px 8px; }
body.formpage-fullscreen .input-hint { font-size: 10px; margin-top: 3px; }
body.formpage-fullscreen .fd-bonus-box { padding: 8px 10px; font-size: 10.5px; margin-top: 8px; }
body.formpage-fullscreen .pg-grid { gap: 6px; }
body.formpage-fullscreen .pg-card2 { padding: 8px 4px; border-radius: 12px; }
body.formpage-fullscreen .pg-badge2 { width: 30px; height: 30px; margin-bottom: 4px; }
body.formpage-fullscreen .pg-name2 { font-size: 11px; }
body.formpage-fullscreen .pg-sub2 { font-size: 9px; margin-top: 1px; }
body.formpage-fullscreen .pg-reveal-card { padding: 10px 12px; margin-top: 8px; }
body.formpage-fullscreen .pg-reveal-title { font-size: 10.5px; margin-bottom: 6px; }
body.formpage-fullscreen .pg-number-row { padding: 8px 10px; margin-bottom: 6px; }
body.formpage-fullscreen .pay-instruction { font-size: 10.5px; margin-top: 8px; padding: 8px 10px; }
body.formpage-fullscreen .ab-input-box { padding: 9px 12px 9px 36px; }
body.formpage-fullscreen .ab-input-box input { font-size: 13px; }
body.formpage-fullscreen .ab-card-label + .ab-input-box,
body.formpage-fullscreen .ab-input-box + .ab-input-box { margin-top: 6px; }
body.formpage-fullscreen .ab-warning { padding: 8px 10px; font-size: 10.5px; margin-top: 8px; }
body.formpage-fullscreen .ab-submit { padding: 11px; font-size: 13.5px; margin-top: 8px; }
body.formpage-fullscreen .ab-trust { font-size: 10px; margin-top: 6px; }
@media (min-width: 720px) {
  body.formpage-fullscreen .ab-single-card { max-width: 480px; margin-left: auto; margin-right: auto; }
}
body.buy-fullscreen .pack-page-full {
  max-width: 100%;
  margin: 0;
  padding: 16px 16px 28px;
  position: relative;
}
body.buy-fullscreen .pack-page-full::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff9a3c, #ff5ea8, #7c5cff, #22d3ee, #22e08f);
  background-size: 300% auto;
  animation: packTitleShine 6s linear infinite;
}
.pack-balance-float-row { display: flex; justify-content: flex-end; margin: 14px 0; }
.pack-balance-float {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,.4);
  background: linear-gradient(160deg, rgba(124,92,255,.2), rgba(34,211,238,.08));
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(124,92,255,.25);
}

/* ---------------- Category filter pills ---------------- */
.pack-op-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
  animation: packFadeIn .5s ease .05s both;
}
.pack-op-scroll::-webkit-scrollbar { display: none; }
.pack-op-pill {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.pack-op-pill:hover { color: var(--text-1); border-color: rgba(124,92,255,.4); transform: translateY(-1px); }
.pack-op-pill:active { transform: scale(.95); }
.pack-op-pill.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #5b3df0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124,92,255,.25), 0 8px 20px rgba(124, 92, 255, 0.5), 0 0 22px rgba(124,92,255,.5);
}

/* ---------------- Offer grid: compact 2-per-row cards, pink neon theme ---------------- */
:root {
  --pink: #ff4fa3;
  --pink-2: #ff8fc7;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
}
@media (max-width: 300px) {
  .pack-grid { grid-template-columns: 1fr; }
}

.pack-card {
  position: relative;
  padding: 11px 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), rgba(18, 23, 43, 0.55);
  border: 1.5px solid color-mix(in srgb, var(--op-color, #ff4fa3) 55%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--op-color, #ff4fa3) 12%, transparent) inset,
              0 8px 22px rgba(0,0,0,.4),
              0 0 18px color-mix(in srgb, var(--op-color, #ff4fa3) 28%, transparent);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .28s ease;
  animation: packFadeIn .5s ease both;
  overflow: hidden;
}
.pack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--op-color2, #ff8fc7) 20%, transparent), transparent 55%);
  pointer-events: none;
}
.pack-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--op-color, #ff4fa3) 85%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--op-color, #ff4fa3) 22%, transparent) inset,
              0 12px 28px rgba(0,0,0,.45),
              0 0 26px color-mix(in srgb, var(--op-color, #ff4fa3) 50%, transparent);
}
.pack-card:nth-of-type(1) { animation-delay: .02s; }
.pack-card:nth-of-type(2) { animation-delay: .05s; }
.pack-card:nth-of-type(3) { animation-delay: .08s; }
.pack-card:nth-of-type(4) { animation-delay: .11s; }
.pack-card:nth-of-type(5) { animation-delay: .14s; }
.pack-card:nth-of-type(6) { animation-delay: .17s; }
.pack-card:nth-of-type(n+7) { animation-delay: .2s; }

/* Row 1: round pink-ringed logo + operator name + price */
.pack-card-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.pack-op-logo-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--op-color, var(--accent)), var(--op-color2, var(--accent-2)));
  border: 2px solid var(--pink);
  box-shadow: 0 3px 10px rgba(0,0,0,.4), 0 0 12px rgba(255,79,163,.55);
}
.pack-op-logo-lg svg { width: 100%; height: 100%; display: block; }
.pack-card-row1-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.pack-op-name-lg { font-size: 11px; font-weight: 700; color: var(--text-2); }
.pack-card-price-lg {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-2);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(34,211,238,.4);
}

/* Line 1: title. Line 2: type + validity — kept to two compact lines */
.pack-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 1;
}
.pack-card-title-lg {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  z-index: 1;
}
.pack-card-daily-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(16,185,129,.12));
  border: 1px solid rgba(34,197,94,.45);
  color: #4ade80;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34,197,94,.2);
}
.pack-card-meta-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}
.pack-card-type {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: .9;
  flex-shrink: 0;
}
.pack-card-meta-dot { color: var(--text-3); flex-shrink: 0; }
.pack-card-validity-lg {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pack-card-desc-lg { display: none; } /* hidden in compact mode to keep cards to 2 lines */

/* Footer row: cashback badge + buy button, side by side */
.pack-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  z-index: 1;
}
.pack-cashback-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(16,185,129,.12));
  border: 1px solid rgba(34,197,94,.45);
  color: #4ade80;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(34,197,94,.22);
  flex-shrink: 0;
}
.pack-buy-btn-lg {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pack-buy-btn-lg:hover { box-shadow: 0 8px 20px rgba(124, 92, 255, 0.55); transform: translateY(-1px); }
.pack-buy-btn-lg:active { transform: scale(.94); }

@media (max-width: 340px) {
  .pack-card { padding: 9px 8px; }
  .pack-op-logo-lg { width: 32px; height: 32px; font-size: 10px; }
  .pack-card-title-lg { font-size: 12px; }
  .pack-buy-btn-lg { font-size: 10px; padding: 7px 8px; }
}

/* Legacy small-card classes kept for any other page still referencing them */
.pack-card-top { display: flex; align-items: center; gap: 6px; }
.pack-op-logo {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--op-color, var(--accent)), var(--op-color2, var(--accent-2)));
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.pack-op-name { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.pack-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.pack-card-price { font-size: 15px; font-weight: 800; color: var(--accent-2); }
.pack-buy-btn {
  padding: 7px 13px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #5b3df0);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pack-buy-btn:hover { box-shadow: 0 8px 20px rgba(124, 92, 255, 0.55); }
.pack-buy-btn:active { transform: scale(.96); }

/* Recharge page (buy.php) — reuse the same premium pill glow on its
   type/operator filter links without touching their markup or JS */
.pack-page .btn.filter-pill {
  border-radius: 999px !important;
  padding: 7px 13px;
  font-size: 11.5px;
}
.pack-page .op-filter-badge {
  width: 34px; height: 34px; padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0;
  color: #fff !important;
}
.pack-page .op-filter-badge.btn-outline {
  background: linear-gradient(135deg, var(--op-color, #3B82F6), var(--op-color2, #3B82F6));
  opacity: .45;
  border-color: transparent;
}
.pack-page .op-filter-badge.btn-primary {
  background: linear-gradient(135deg, var(--op-color, #7c5cff), var(--op-color2, #5b3df0)) !important;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 6px 16px rgba(0,0,0,.4) !important;
}
.pack-page .flexi3d-field label { font-size: 12px; }
.pack-page .op-filter-badge:hover { opacity: .75; }
.pack-page .btn.filter-pill.btn-outline {
  background: rgba(255,255,255,.03);
  border-color: var(--glass-border);
  color: var(--text-2);
}
.pack-page .btn.filter-pill.btn-outline:hover {
  border-color: rgba(124,92,255,.4);
  color: var(--text-1);
  transform: translateY(-1px);
}
.pack-page .btn.filter-pill.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #5b3df0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(124,92,255,.25), 0 8px 20px rgba(124, 92, 255, 0.5), 0 0 22px rgba(124,92,255,.5);
}
/* Kill the wobble / white-flash bounce on the Recharge page frame itself.
   The offer list below is genuinely long, so — unlike the login/register
   screens — vertical scroll stays on; only the rubber-band flash is removed. */
.pack-page { overscroll-behavior-y: contain; }

/* =====================================================
   Withdraw Commission — Premium 3D Neon Glassmorphic Form
   ===================================================== */
.wd3d-wrap { max-width: 480px; margin: 0 auto; }

.wd3d-balance-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px;
  border-radius: 22px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(34,211,238,.06)), var(--bg-3);
  border: 1px solid rgba(124, 92, 255, 0.35);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(124, 92, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.wd3d-balance-glow {
  position: absolute; top: -40%; right: -20%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,92,255,.35), transparent 70%);
  pointer-events: none;
}
.wd3d-balance-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(124,92,255,.10) 41%, transparent 43%),
    linear-gradient(115deg, transparent 55%, rgba(34,211,238,.08) 56%, transparent 58%),
    radial-gradient(1.5px 1.5px at 18% 20%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 26% 32%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 46%, rgba(255,255,255,.3), transparent 60%);
  pointer-events: none;
}
.wd3d-balance-text { position: relative; z-index: 2; min-width: 0; }
.wd3d-coin-stack {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  display: flex; flex-direction: column; gap: 3px;
  pointer-events: none;
  z-index: 1;
}
.wd3d-coin-stack div { height: 7px; border: 1px solid rgba(180, 140, 255, .32); border-radius: 50%; }
.wd3d-balance-label { position: relative; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; z-index: 2; }
.wd3d-balance-amount { position: relative; font-size: 32px; font-weight: 800; z-index: 2; filter: drop-shadow(0 0 14px rgba(124,92,255,.35)); }
.wd3d-balance-amount .amt-c1 { background: linear-gradient(90deg, #5fe3ff, #5aa6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd3d-balance-amount .amt-c2 { background: linear-gradient(90deg, #9b7bff, #ff5ca8); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wd3d-card {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--bg-3);
  border: 1px solid rgba(139, 92, 246, .35);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
  overflow: hidden;
  margin-bottom: 20px;
}
.wd3d-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(99,102,241,.5) 45%, rgba(34,211,238,.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.wd3d-field { margin-bottom: 18px; position: relative; z-index: 1; }
.wd3d-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }

.wd3d-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wd3d-method-pill {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 4px;
  border-radius: 14px;
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.wd3d-method-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.wd3d-method-pill:hover { transform: translateY(-2px); }
.wd3d-method-pill.selected {
  border-color: var(--m-color, var(--accent));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  box-shadow: 0 0 14px color-mix(in srgb, var(--m-color, var(--accent)) 45%, transparent);
}
.wd3d-method-check {
  position: absolute; top: -7px; right: -7px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-3);
  color: #fff; font-size: 10px; font-weight: 900;
  display: none; align-items: center; justify-content: center;
}
.wd3d-method-pill.selected .wd3d-method-check { display: flex; }

.wd3d-input-wrap { position: relative; display: flex; align-items: center; }
.wd3d-icon {
  position: absolute; left: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); pointer-events: none;
}
.wd3d-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wd3d-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.wd3d-input-wrap input::placeholder { color: var(--text-3); font-weight: 500; }

.wd3d-amount-wrap { position: relative; display: flex; align-items: center; }
.wd3d-currency {
  position: absolute; left: 16px;
  font-size: 22px; font-weight: 800; color: var(--accent-2);
  pointer-events: none;
}
.wd3d-amount-wrap input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--text-1);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wd3d-amount-wrap input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(34, 211, 238, 0.16);
}
.wd3d-amount-wrap input::placeholder { color: var(--text-3); font-weight: 700; }

.wd3d-pin-grid { display: flex; gap: 10px; }
.wd3d-pin-cell {
  flex: 1;
  aspect-ratio: 1 / 1;
  max-height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
  color: var(--text-1);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wd3d-pin-cell:focus {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 92, 168, 0.18);
}
.wd3d-pin-cell.filled { border-color: var(--accent-3); box-shadow: 0 0 10px rgba(255, 92, 168, 0.3); }

.wd3d-submit {
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #5b3df0 55%, var(--accent-3));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wd3d-submit:hover { box-shadow: 0 18px 40px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,.25); }
.wd3d-submit:active { transform: scale(.97); }
.wd3d-submit:disabled {
  background: linear-gradient(135deg, #4a4a5e, #35354a);
  color: rgba(241, 243, 251, 0.55);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

/* This page's buttons already have their own selected/gradient look —
   exclude them from the site-wide "last tapped button" amber highlight
   (see assets/js/main.js tzTouchTracker), which otherwise punches through
   with !important and makes the text unreadable. */
.wd3d-submit.tz-touched,
button.wd3d-submit.tz-touched {
  background: linear-gradient(135deg, var(--accent), #5b3df0 55%, var(--accent-3)) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.wd3d-method-pill.tz-touched,
button.wd3d-method-pill.tz-touched {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-2) !important;
  border-color: var(--glass-border) !important;
}
.wd3d-method-pill.selected.tz-touched,
button.wd3d-method-pill.selected.tz-touched {
  border-color: var(--m-color, var(--accent)) !important;
  color: var(--text-1) !important;
}

.wd3d-history { margin-top: 4px; }
.wd3d-history-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; padding: 0 2px; }

/* ---------------------------------------------------------------
   Global tactile color flash / ripple effect (see main.js).
   .flash-host is added dynamically the first time an element is
   tapped so ANY button/link on the site gets contained ripples
   without needing to touch every existing selector.
--------------------------------------------------------------- */
.flash-host { position: relative; overflow: hidden; }

.flash-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: .6;
  z-index: 3;
  animation: flashPulse 1s cubic-bezier(.22, .8, .35, 1) forwards;
}

.flash-blue { background: radial-gradient(circle, rgba(124, 92, 255, .9) 0%, rgba(124, 92, 255, 0) 68%); }
.flash-gold { background: radial-gradient(circle, rgba(245, 176, 45, .9) 0%, rgba(245, 176, 45, 0) 68%); }
.flash-red  { background: radial-gradient(circle, rgba(239, 68, 68, .9) 0%, rgba(239, 68, 68, 0) 68%); }

@keyframes flashPulse {
  0%   { transform: scale(0);    opacity: .65; }
  55%  { transform: scale(.85); opacity: .45; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* Recharge quick-form panel inside Buy Offer (shares .flexi3d-* card styles) */
.recharge-panel { max-width: 480px; margin: 0 auto 20px; }

/* ---------------------------------------------------------------
   Savings Plan summary card (shares .flexi3d-* form styles above)
--------------------------------------------------------------- */
.sv3d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.sv3d-stat {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}
.sv3d-stat-label { font-size: 11.5px; color: var(--text-2); font-weight: 700; margin-bottom: 4px; }
.sv3d-stat-value { font-size: 19px; font-weight: 800; color: var(--text-1); }
.sv3d-stat.gold { border-color: rgba(245, 176, 45, .4); background: rgba(245, 176, 45, .07); }
.sv3d-stat.gold .sv3d-stat-value { color: #f5b02d; }

.sv3d-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 2px; font-size: 13px; color: var(--text-2);
  border-bottom: 1px dashed var(--glass-border);
}
.sv3d-meta-row:last-child { border-bottom: none; }
.sv3d-meta-row strong { color: var(--text-1); }

.sv3d-close-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, .45);
  border-radius: 14px;
  background: rgba(239, 68, 68, .1);
  color: #ff8080;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.sv3d-close-btn:hover { background: rgba(239, 68, 68, .18); }
.sv3d-close-btn:disabled { opacity: .45; cursor: not-allowed; }
.sv3d-lock-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* ---------------------------------------------------------------
   Gem / Diamond icon alignment (replaces plain emoji)
--------------------------------------------------------------- */
.pt-gem-ic { display: inline-flex; align-items: center; vertical-align: -4px; margin-right: 2px; }
.np-tile-icon svg, .gtile-icon svg { display: block; margin: 0 auto; }

/* ---------------------------------------------------------------
   Cashback badge shown on every offer / product card
--------------------------------------------------------------- */
.pack-cashback-badge, .offer-cashback-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0a7d42;
  background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(16, 185, 129, .1));
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 6px;
  width: fit-content;
}
.pack-cashback-badge .ic, .offer-cashback-badge .ic { font-size: 12px; }

/* ---------------------------------------------------------------
   First-deposit bonus live calculator (deposit.php)
--------------------------------------------------------------- */
.fd-bonus-box {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 176, 45, .16), rgba(124, 92, 255, .1));
  border: 1px solid rgba(245, 176, 45, .4);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-1, #1c1c28);
}
.fd-bonus-box.show { display: block; animation: fdBonusIn .3s ease; }
.fd-bonus-box .fd-bonus-title { font-weight: 800; color: #b8720c; margin-bottom: 2px; }
.fd-bonus-box .fd-bonus-total { font-weight: 800; color: #0a7d42; }
@keyframes fdBonusIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------
   Bottom-of-site quick links row (App Download / Facebook / Telegram)
--------------------------------------------------------------- */
.quick-links-row {
  display: flex;
  gap: 8px;
  margin: 14px 12px 8px;
}
.ql-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.ql-btn:active { transform: scale(0.96); }
.ql-btn .ql-ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ql-btn .ql-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ql-btn .ql-ic svg { width: 12px; height: 12px; }
.ql-btn .ql-label { font-size: 9.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.ql-app { background: linear-gradient(135deg, var(--accent), #5b3df0); }
.ql-fb  { background: linear-gradient(135deg, #1877f2, #0e5ec4); }
.ql-tg  { background: linear-gradient(135deg, #34a9e8, #1e88c7); }

@media (max-width: 380px) {
  .quick-links-row { gap: 6px; }
  .ql-btn { padding: 6px 3px; }
  .ql-btn .ql-ic { width: 19px; height: 19px; }
  .ql-btn .ql-label { font-size: 8.5px; }
}

/* =====================================================
   Admin Panel - Compact Global Overrides
   Applies to every page rendered through admin.70/includes/header.php
   Goal: no left/right scrolling, smaller forms/cards/text, fits in view.
   ===================================================== */
.admin-panel, .admin-panel body { overflow-x: hidden; max-width: 100vw; }
.admin-panel .main-content { padding: 14px; max-width: 100%; overflow-x: hidden; }
.admin-panel .container { padding: 0 10px; max-width: 100%; }

.admin-panel .card { padding: 14px; border-radius: 12px; }
.admin-panel .page-header { margin-bottom: 12px; }
.admin-panel .page-title { font-size: 17px; }
.admin-panel .page-sub { font-size: 11.5px; }

.admin-panel .form-group { margin-bottom: 10px; }
.admin-panel label { font-size: 12px; margin-bottom: 4px; }
.admin-panel input[type=text], .admin-panel input[type=email], .admin-panel input[type=password],
.admin-panel input[type=number], .admin-panel input[type=tel], .admin-panel input[type=file],
.admin-panel select, .admin-panel textarea {
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.admin-panel textarea { min-height: 60px; }
.admin-panel .input-hint, .admin-panel .input-error { font-size: 10.5px; margin-top: 3px; }

.admin-panel .flex { flex-wrap: wrap; }
.admin-panel .btn, .admin-panel .btn-sm { padding: 7px 12px; font-size: 11.5px; border-radius: 8px; min-width: 0; }
.admin-panel .btn-block { width: 100%; }

.admin-panel .table-wrap { overflow-x: hidden; max-width: 100%; }
.admin-panel table { font-size: 12px; width: 100%; table-layout: fixed; }
.admin-panel table th, .admin-panel table td { padding: 7px 8px; white-space: normal; word-break: break-word; }

/* Below 700px: stack each table row into a card instead of scrolling
   sideways. JS (main.js) copies each <th> label onto its column's
   <td data-label="..."> so the label can still show next to the value. */
@media (max-width: 700px) {
  .admin-panel table, .admin-panel tbody, .admin-panel tr, .admin-panel td { display: block; width: 100%; }
  .admin-panel table thead { display: none; }
  .admin-panel table tr {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.02);
  }
  .admin-panel table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 7px 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: right;
  }
  .admin-panel table td:last-child { border-bottom: none; }
  .admin-panel table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    color: var(--text-2);
    text-align: left;
    flex-shrink: 0;
  }
  .admin-panel table td:empty { display: none; }
}

.admin-panel .sidebar-link { padding: 7px 10px; font-size: 11.5px; }
.admin-panel .sidebar .brand { padding: 0 6px 10px; }
.admin-panel .brand { font-size: 14px; gap: 6px; }
.admin-panel .brand img { width: 22px; height: 22px; }
.admin-panel .sidebar-link .ic { width: 15px; font-size: 12px; }
.admin-panel .sidebar { width: 210px; padding: 14px 10px; }

/* Locks the background page and dims it while the mobile menu is open,
   so no part of the page behind the sidebar is visible or scrollable. */
body.sidebar-locked { overflow: hidden; height: 100vh; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,7,15,0.6);
  z-index: 140;
}
.sidebar-backdrop.open { display: block; }

.admin-panel .modal-box { padding: 16px; max-width: 380px; }
.admin-panel .alert { padding: 10px 12px; font-size: 12.5px; }

.admin-panel img, .admin-panel svg { max-width: 100%; height: auto; }
.admin-panel * { min-width: 0; }

@media (max-width: 480px) {
  .admin-panel .main-content { padding: 10px; }
  .admin-panel .card { padding: 10px; }
  .admin-panel .page-title { font-size: 15px; }
  .admin-panel table { font-size: 11px; }
}

/* =====================================================================
   Site-wide animation disable (colors/layout untouched).
   Four exceptions are kept animating everywhere:
   1) Data Pack / Minute Pack / Bundle Pack pages — via the "pack-anim-ok"
      body class set in data_pack.php, minute_pack.php, bundle_pack.php.
   2) The "TopUpZon.shop" navbar brand headline (.brand-tz and its
      children) — its color-shifting shimmer stays on on every page.
   3) The scrolling "Install App" notice text inside the PWA install
      banner (.pib-ticker-track and its children) — it must keep
      scrolling so the full message is readable.
   4) The dashboard Notice ticker (.notice-content and its children) —
      this is what actually scrolls the notice text sideways; without
      this exception the site-wide rule above silently kills its
      animation, which is why it used to freeze/cut off instead of
      scrolling.
   ===================================================================== */
body:not(.pack-anim-ok) *:not(.brand-tz):not(.brand-tz *):not(.pib-ticker-track):not(.pib-ticker-track *):not(.notice-content):not(.notice-content *),
body:not(.pack-anim-ok) *:not(.brand-tz):not(.brand-tz *):not(.pib-ticker-track):not(.pib-ticker-track *):not(.notice-content):not(.notice-content *)::before,
body:not(.pack-anim-ok) *:not(.brand-tz):not(.brand-tz *):not(.pib-ticker-track):not(.pib-ticker-track *):not(.notice-content):not(.notice-content *)::after {
  animation: none !important;
  animation-duration: 0s !important;
  transition: none !important;
}

/* Belt-and-braces: force the ticker's animation back on explicitly too,
   in case any other rule on the page tries to disable it. */
.pib-ticker-track {
  animation: pibTickerScroll 10s linear infinite !important;
}

/* Belt-and-braces for the dashboard Notice ticker — same reasoning. */
.notice-content {
  animation: ticker-scroll 24s linear infinite !important;
}
