/* ==========================================================
   ClassicPayz — design system
   ========================================================== */
:root {
  --bg: #0b0b14;
  --bg-2: #11111d;
  --surface: #161625;
  --surface-2: #1d1d30;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f3f3f8;
  --muted: #a3a3b8;
  --faint: #6c6c84;

  --primary: #16a34a;
  --primary-light: #4ade80;
  --teal: #2dd4bf;
  --gold: #ffc53d;
  --gold-2: #ff9f1c;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --amber: #f59e0b;

  --grad: linear-gradient(135deg, #16a34a, #059669 55%, #0f766e);
  --grad-light: linear-gradient(135deg, var(--primary-light), var(--teal));
  --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-2));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.grad-text { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 400px at 10% -5%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(600px 400px at 95% 10%, rgba(20, 184, 166, .12), transparent 60%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .6); }
.btn-gold { background: var(--grad-gold); color: #241600; box-shadow: 0 10px 30px -10px rgba(255, 159, 28, .55); }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-danger { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--font); cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 20, .75); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--text); }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--grad);
  display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: .5rem 20px 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-links > form { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .nav-links > a.btn { margin-top: .75rem; border-bottom: 0; }
}

.notice-bar { background: linear-gradient(90deg, rgba(255, 197, 61, .15), rgba(34, 197, 94, .12)); border-bottom: 1px solid var(--border); padding: .6rem 0; font-size: .9rem; text-align: center; position: relative; z-index: 1; }

/* ---------- Alerts ---------- */
.flash-wrap { margin-top: 1rem; position: relative; z-index: 2; }
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: .75rem; font-size: .95rem; }
.alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #86efac; }
.alert-error   { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.alert-info    { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .35); color: #93c5fd; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .04); font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-card {
  position: relative; border-radius: 24px; padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none;
}
.coin-stack { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.coin-big {
  width: 72px; height: 72px; border-radius: 50%; background: var(--grad-gold);
  display: grid; place-items: center; box-shadow: 0 0 40px rgba(255, 197, 61, .45);
  animation: float 4s ease-in-out infinite;
}
.coin-big img { width: 72px; height: 72px; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.hero-card li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34, 197, 94, .15); color: var(--green);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: 2px;
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--muted); }

/* ---------- Packages ---------- */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pkg:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pkg.featured { border-color: rgba(255, 197, 61, .5); background: linear-gradient(180deg, rgba(255, 197, 61, .08), var(--surface) 55%); }
.pkg-badge {
  position: absolute; top: -11px; right: 16px; padding: .25rem .7rem; border-radius: 999px;
  background: var(--grad-gold); color: #241600; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.pkg-coins { display: flex; align-items: center; gap: .6rem; font-size: 1.9rem; font-weight: 800; }
.pkg-coins img { width: 34px; height: 34px; }
.pkg-label { color: var(--muted); font-size: .85rem; margin-top: -.2rem; }
.pkg-price { margin: .8rem 0 1.1rem; display: flex; align-items: baseline; gap: .6rem; }
.pkg-price strong { font-size: 1.6rem; font-weight: 800; }
.pkg-price s { color: var(--faint); font-size: .95rem; }
.pkg .btn { margin-top: auto; }
.empty-state { text-align: center; padding: 50px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text);
  font: 500 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix {
  display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); font-weight: 600;
}
.input-group .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.field-error { color: #fca5a5; font-size: .82rem; }
.input.has-error { border-color: rgba(239, 68, 68, .6); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  padding: .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-2);
  font-weight: 600; color: var(--muted); transition: .15s;
}
.segmented input:checked + label { border-color: var(--primary); color: var(--text); background: rgba(34, 197, 94, .1); }
.segmented input:focus-visible + label { box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.segmented svg { width: 20px; height: 20px; }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; place-items: center; padding: 60px 0 80px; }
.auth-card {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-foot { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: var(--primary-light); font-weight: 600; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 .8rem var(--font); padding: .4rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 10, .72); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow); animation: pop .22s ease-out;
}
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, .12); }
.order-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px 16px; border-radius: var(--radius-sm); margin: 1rem 0 1.4rem;
  background: linear-gradient(135deg, rgba(255, 197, 61, .12), rgba(255, 159, 28, .05)); border: 1px solid rgba(255, 197, 61, .3);
}
.order-summary .coins { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; }
.order-summary .coins img { width: 28px; height: 28px; }
.order-summary .price { font-weight: 800; font-size: 1.25rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Success page ---------- */
.success-card { text-align: center; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: var(--green);
  font-size: 2.4rem; box-shadow: 0 0 0 10px rgba(34, 197, 94, .06);
}
.timer-box { margin: 1.4rem 0; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.timer-box strong { font-size: 2rem; font-weight: 800; display: block; }
.kv { display: grid; gap: .6rem; text-align: left; margin: 1.2rem 0; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.kv div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.kv span { color: var(--muted); }
.kv strong { text-align: right; word-break: break-all; }

/* ---------- Status pills (dashboard/admin) ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-pending    { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.pill-processing { color: #93c5fd; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .3); }
.pill-completed  { color: #86efac; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); }
.pill-cancelled  { color: #fca5a5; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 48px 0 24px; background: var(--bg-2); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: .9rem; }
.footer-link { display: block; color: var(--muted); margin-bottom: .5rem; font-size: .92rem; }
.footer-link:hover { color: var(--text); }
.footer-grid .brand { margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Floating support button ---------- */
.float-support {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.float-support:hover { transform: scale(1.06); }
.float-support svg { width: 28px; height: 28px; }

/* ==========================================================
   Dashboard (user + admin shared)
   ========================================================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px; align-items: center;
}
.stat-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-icon.green { background: rgba(34, 197, 94, .14); color: var(--primary-light); }
.stat-icon.gold  { background: rgba(255, 197, 61, .14); color: var(--gold); }
.stat-icon.blue  { background: rgba(59, 130, 246, .14); color: #93c5fd; }
.stat-icon.amber { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.stat-icon.red   { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.stat .label { color: var(--muted); font-size: .82rem; }
.stat .value { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
@media (max-width: 960px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 20px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .mono { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.coin-cell { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.coin-cell img { width: 18px; height: 18px; }

/* Mobile: tables become cards */
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table.stack td { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 0; border: 0; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .85rem; font-weight: 600; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .4); color: var(--primary-light); }
.tab .count { opacity: .7; margin-left: .25rem; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); font-size: .88rem; padding: 0 .6rem; }
.pagination .current { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }

.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); position: relative; transition: .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + .track { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .track::after { left: 20px; background: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Admin layout
   ========================================================== */
.admin-body { flex-direction: row; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; width: 248px; flex: none;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px; z-index: 40;
}
.admin-sidebar .brand { padding: 0 8px 20px; }
.admin-sidebar .tagline { display: block; font-size: .7rem; font-weight: 600; color: var(--primary-light); text-transform: uppercase; letter-spacing: .08em; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: .93rem;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.admin-nav a.active { background: rgba(34, 197, 94, .12); color: var(--primary-light); }
.admin-nav svg { width: 18px; height: 18px; flex: none; }
.admin-nav .badge { margin-left: auto; background: var(--amber); color: #241600; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; }
.admin-sidebar .bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 4px; }
.admin-main { flex: 1; min-width: 0; padding: 28px 32px 60px; position: relative; z-index: 1; }
.admin-topbar { display: none; }

@media (max-width: 900px) {
  .admin-body { flex-direction: column; }
  .admin-topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 45;
    padding: 12px 20px; background: rgba(11, 11, 20, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  }
  .admin-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .admin-sidebar.open { transform: none; }
  .admin-main { padding: 20px; }
}
button.pill { font-family: inherit; }
details > summary::-webkit-details-marker { display: none; }

/* Mobile: 2 package cards per row */
@media (max-width: 600px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pkg { padding: 18px 12px 12px; gap: .2rem; }
  .pkg:hover { transform: none; }
  .pkg-coins { font-size: 1.35rem; gap: .4rem; }
  .pkg-coins img { width: 24px; height: 24px; }
  .pkg-label { font-size: .75rem; }
  .pkg-price { margin: .5rem 0 .8rem; flex-wrap: wrap; gap: .1rem .4rem; }
  .pkg-price strong { font-size: 1.2rem; }
  .pkg-price s { font-size: .8rem; }
  .pkg-badge { right: 8px; font-size: .62rem; padding: .2rem .5rem; }
  .pkg .btn { padding: .65rem .5rem; font-size: .85rem; }
  .float-support { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ---------- Services ---------- */
.svc-icon { display: inline-grid; place-items: center; flex: none; border-radius: 10px; object-fit: contain; }
.svc-letter { color: #fff; font-weight: 800; }
.svc-emoji { line-height: 1; }
.svc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-tile {
  display: flex; align-items: center; gap: .65rem; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); transition: .15s;
}
.svc-tile:hover { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.svc-tile strong { display: block; font-size: .92rem; line-height: 1.2; }
.svc-tile small { color: var(--muted); font-size: .75rem; }
.svc-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.svc-filter .tab { background: none; cursor: pointer; font-family: inherit; }
.svc-block { margin-bottom: 2.6rem; scroll-margin-top: 90px; }
.svc-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.svc-head h3 { margin: 0; font-size: 1.3rem; }
.svc-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.pkg-coins span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pkg-coins { font-size: 1.15rem; }
  .pkg-coins .svc-icon { width: 24px !important; height: 24px !important; }
  .svc-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 1.4rem; }
  .svc-filter .tab { flex: none; }
}

/* ==========================================================
   Final theme: Midnight Navy — lightweight & professional
   (no blur filters, no fixed-attachment backgrounds, no
    looping animations except the small live dot)
   ========================================================== */
:root {
  --bg: #050b1d;
  --bg-2: #081230;
  --surface: #0c1838;
  --surface-2: #112147;
  --border: rgba(140, 170, 255, .12);
  --border-strong: rgba(140, 170, 255, .22);
  --text: #f2f5ff;
  --muted: #aab6dc;
  --faint: #7684b0;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
  --radius: 14px;
}
html { background: var(--bg); scroll-padding-top: 76px; }
body { background: var(--bg); }
* { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

/* Static background: one fixed layer, painted once */
.bg-glow {
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(56, 189, 248, .12), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(99, 102, 241, .14), transparent 60%),
    linear-gradient(180deg, #071233 0%, #050b1d 55%, #040918 100%);
}

/* Spacing scale: 8 / 16 / 24 / 32 / 48 / 64 */
.container { width: min(1140px, 100% - 40px); }
.hero { padding: 64px 0 48px; }
.hero-grid { gap: 40px; }
.hero-cta { margin: 24px 0; }
.section { padding: 64px 0; }
.section + .section { padding-top: 32px; }
.section-head { margin: 0 auto 32px; }
.section-head p { margin: 0; }
.svc-block { margin-bottom: 40px; }
.svc-block:last-child { margin-bottom: 0; }
.svc-head { margin-bottom: 16px; }
.packages-grid, .steps-grid { gap: 16px; }
.pkg { padding: 20px; }
.step { padding: 20px; }
.hero-card { padding: 24px; }
.faq { gap: 8px; }
.site-footer { margin-top: 48px; padding: 40px 0 24px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; }

@media (max-width: 900px) {
  .hero { padding: 32px 0 24px; }
  .hero-grid { gap: 24px; }
}
@media (max-width: 600px) {
  .container { width: min(1140px, 100% - 32px); }
  .section { padding: 40px 0; }
  .section + .section { padding-top: 24px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-cta { margin: 20px 0; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 20px; }
  .hero-stats strong { font-size: 1.1rem; }
  .hero-stats span { font-size: .75rem; }
  .hero-card { padding: 16px; border-radius: 16px; }
  .svc-block { margin-bottom: 32px; }
  .svc-head h3 { font-size: 1.15rem; }
  .pkg { padding: 16px 12px 12px; }
  .step { padding: 16px; }
  .auth-wrap { padding: 32px 0 48px; }
  .auth-card { padding: 24px 20px; }
  .site-footer { margin-top: 32px; padding: 32px 0 88px; }
  .modal { padding: 12px; }
  .modal-card { padding: 24px 16px; }
}

/* Header */
.site-header { background: rgba(5, 11, 29, .96); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--border); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .8); }
.admin-topbar { background: #060e26; backdrop-filter: none; }

/* Mobile menu: solid, quick fade, hamburger -> X */
.nav-toggle span { transition: transform .2s, opacity .15s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-links {
    display: flex; top: 100%; background: #071029; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
  .nav-links > a, .nav-links > form { padding: 14px 0; }
}

/* Cards: solid surfaces (no blur) */
.pkg, .step, .faq details, .panel, .stat, .auth-card, .hero-card, .svc-tile {
  background: var(--surface); border-color: var(--border); box-shadow: var(--shadow);
}
.pkg { transition: transform .2s, border-color .2s; }
.pkg:hover { transform: translateY(-3px); border-color: rgba(125, 211, 252, .4); box-shadow: var(--shadow); }
.pkg.featured { background: linear-gradient(180deg, rgba(255, 197, 61, .10), var(--surface) 55%); border-color: rgba(255, 197, 61, .5); }
.svc-tile:hover { border-color: rgba(74, 222, 128, .45); background: var(--surface-2); }
.faq details[open] { border-color: rgba(56, 189, 248, .3); }
.step::before { background: linear-gradient(135deg, #22c55e, #0ea5e9); }

/* Forms / modal */
.input, select.input, textarea.input, .segmented label { background: var(--bg-2); border-color: var(--border-strong); }
.input-group .prefix { background: var(--surface-2); border-color: var(--border-strong); }
.kv, .timer-box { background: var(--bg-2); border-color: var(--border); }
.modal-card { background: var(--surface); border-color: var(--border-strong); }
.modal-backdrop { background: rgba(2, 5, 15, .8); backdrop-filter: none; }

/* Tables / admin */
.table th, .table td { border-bottom-color: var(--border); }
.table tbody tr:hover { background: rgba(140, 170, 255, .04); }
.site-footer { background: #040918; border-top-color: var(--border); }
.admin-sidebar { background: #060e26; border-right-color: var(--border); }

/* Buttons */
.btn:active { transform: scale(.98); }
.btn-ghost { background: rgba(140, 170, 255, .08); border-color: var(--border-strong); }
.btn-primary { background: linear-gradient(135deg, #22c55e, #0ea5e9); box-shadow: 0 8px 20px -10px rgba(34, 197, 94, .6); }
.grad-text { background: linear-gradient(135deg, #4ade80, #38bdf8); -webkit-background-clip: text; background-clip: text; }
.eyebrow { background: rgba(140, 170, 255, .08); border-color: var(--border-strong); color: var(--text); }
.tab.active { background: rgba(34, 197, 94, .16); }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 12px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

/* Small blinking live dot (opacity only = cheap) */
.eyebrow .dot { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .9); animation: live-blink 1.2s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } html { scroll-behavior: auto; } }
.svc-filter { scrollbar-width: none; }
.svc-filter::-webkit-scrollbar { display: none; }

/* ---------- Trust section ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.trust-card h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.trust-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.trust-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; font-weight: 800;
  background: rgba(34, 197, 94, .14); color: #4ade80;
}
.trust-card-gold { border-color: rgba(255, 197, 61, .45); background: linear-gradient(180deg, rgba(255, 197, 61, .10), var(--surface) 60%); }
.trust-card-gold .trust-icon { background: rgba(255, 197, 61, .16); color: var(--gold); }
.trust-links { text-align: center; margin: 24px 0 0; color: var(--faint); font-size: .9rem; }
.trust-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.trust-links a:hover { color: var(--text); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } .trust-card { padding: 16px; } }

/* ---------- Policy pages ---------- */
.policy-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.policy-nav { position: sticky; top: 88px; display: grid; gap: 4px; }
.policy-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; border: 1px solid transparent; }
.policy-nav a:hover { color: var(--text); background: var(--surface); }
.policy-nav a.active { color: #4ade80; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); }
.policy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 820px; }
.policy-kicker { color: #38bdf8; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.policy h1 { font-size: 1.8rem; margin: 0 0 4px; }
.policy h2 { font-size: 1.1rem; margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.policy p, .policy li { color: var(--muted); line-height: 1.75; }
.policy strong { color: var(--text); }
.policy ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.policy li { margin-bottom: 6px; }
.policy a { color: #4ade80; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .policy-wrap { grid-template-columns: 1fr; gap: 16px; }
  .policy-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .policy-nav::-webkit-scrollbar { display: none; }
  .policy-nav a { flex: none; padding: 8px 12px; font-size: .9rem; border-color: var(--border); }
  .policy { padding: 20px 16px; }
  .policy h1 { font-size: 1.45rem; }
}

/* Footer: 4 columns */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero breathing room + service tiles (update 13) ---------- */
.eyebrow { margin-bottom: 24px; }
.hero h1 { line-height: 1.25; margin-bottom: 20px; }
.hero p.lead { line-height: 1.8; margin-bottom: 0; }
.hero-cta { margin: 32px 0; }
.hero-stats { gap: 16px 40px; }
.hero-stats strong { margin-bottom: 4px; }
.hero-card > strong { margin-bottom: 16px !important; }
.hero-card ul { margin-top: 20px !important; gap: 12px; }

.svc-tiles { gap: 10px; }
.svc-tile { padding: 8px 10px; gap: 10px; }
.svc-tile strong { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.svc-tile small { font-size: .78rem; }

@media (max-width: 600px) {
  .hero { padding: 36px 0 28px; }
  .eyebrow { margin-bottom: 20px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-cta { margin: 24px 0; }
  .hero-stats { gap: 14px 24px; }
  .hero-card { padding: 18px 14px; }
  .svc-tile { padding: 8px; gap: 8px; }
  .svc-tile strong { font-size: 1rem; }
}

/* ---------- Update 14: live badge, compact package cards, service dividers, contact ---------- */
/* Bigger "service is live" badge */
.eyebrow { font-size: 1rem; font-weight: 600; padding: 8px 16px; gap: 10px; }
.eyebrow .dot { width: 10px; height: 10px; }
@media (max-width: 600px) { .eyebrow { font-size: .92rem; padding: 7px 14px; } }

/* Package card content a little smaller */
.pkg-coins { font-size: 1.55rem; }
.pkg-label { font-size: .8rem; }
.pkg-price { margin: 10px 0 14px; }
.pkg-price strong { font-size: 1.35rem; }
.pkg-price s { font-size: .85rem; }
@media (max-width: 600px) {
  .pkg-coins { font-size: 1.05rem; }
  .pkg-label { font-size: .72rem; }
  .pkg-price strong { font-size: 1.08rem; }
  .pkg-price s { font-size: .75rem; }
}

/* Divider between services when several are visible ("সব" tab) */
.svc-block:not([style*="none"]) ~ .svc-block:not([style*="none"]) {
  border-top: 1px solid var(--border-strong);
  padding-top: 32px;
}
@media (max-width: 600px) {
  .svc-block:not([style*="none"]) ~ .svc-block:not([style*="none"]) { padding-top: 24px; }
}

/* Contact page */
.contact-wrap { max-width: 760px; }
.contact-grid { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: rgba(125, 211, 252, .4); transform: translateY(-2px); }
.contact-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.contact-text small { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-text strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-text em { font-style: normal; color: var(--muted); font-size: .85rem; }
.contact-go { flex: none; font-weight: 600; font-size: .9rem; color: #4ade80; }
.contact-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 24px 0 0; }
@media (max-width: 600px) {
  .contact-card { padding: 14px; gap: 12px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-text strong { font-size: 1rem; }
  .contact-go { display: none; }
}

/* Desktop nav: keep 8 items on one line */
@media (min-width: 821px) and (max-width: 1100px) { .nav-links { gap: 1rem; } .nav-links > a:not(.btn) { font-size: .9rem; } }
