/* ============================================================
   Number Buy Website — global styles (dark theme)
   ============================================================ */
:root {
  --bg:        #0b1020;
  --bg-soft:   #111731;
  --card:      #151d3b;
  --card-2:    #1a2348;
  --border:    #263159;
  --text:      #e8ecff;
  --text-muted:#8b93b8;
  --primary:   #6c7bff;
  --primary-2: #5563f0;
  --accent:    #38d39f;
  --success:   #2ecc8f;
  --danger:    #ff5c7a;
  --warning:   #ffb648;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(108,123,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(56,211,159,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: rgba(108,123,255,.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

/* ---------- layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 26px;
}

.card h2 { margin: 0 0 6px; font-size: 21px; }
h1, h2, h3 { color: var(--text); }

.sub { color: var(--text-muted); font-size: 13.5px; margin: 2px 0 16px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- navbar ---------- */
.navbar {
  background: rgba(11,16,32,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18px; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(108,123,255,.8);
}
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-balance {
  background: rgba(46,204,143,.12);
  border: 1px solid rgba(46,204,143,.35);
  color: var(--success);
  padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: 13px;
}
@media (max-width: 720px) {
  .nav-inner { height: auto; padding: 10px 0; flex-direction: column; align-items: flex-start; }
}

/* ---------- stats ---------- */
.stat {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.stat .label { color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 6px; }

/* ---------- number cards ---------- */
.num-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.num-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.num-card .num { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.num-card .meta { color: var(--text-muted); font-size: 12.5px; }
.num-card .price {
  font-size: 22px; font-weight: 800; color: var(--accent);
  margin: 4px 0 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px;
  transition: filter .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary); }
.btn-danger  { background: linear-gradient(135deg, #ff5c7a, #e04160); }
.btn-sm      { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block   { width: 100%; }

/* ---------- alerts ---------- */
.alert {
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 14px; border: 1px solid transparent;
}
.alert-info    { background: rgba(108,123,255,.10);  border-color: rgba(108,123,255,.4);  color: #c3caff; }
.alert-success { background: rgba(46,204,143,.10);   border-color: rgba(46,204,143,.4);   color: #8ff0c8; }
.alert-error   { background: rgba(255,92,122,.10);   border-color: rgba(255,92,122,.4);   color: #ffb3c2; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.badge-success { background: rgba(46,204,143,.14); color: var(--success); border: 1px solid rgba(46,204,143,.4); }
.badge-pending { background: rgba(255,182,72,.14); color: var(--warning); border: 1px solid rgba(255,182,72,.4); }
.badge-failed  { background: rgba(255,92,122,.14); color: var(--danger);  border: 1px solid rgba(255,92,122,.4); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table tr:hover td { background: rgba(108,123,255,.05); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: #0d1329;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input::placeholder { color: #5a6288; }
.form-group { margin-bottom: 16px; }

/* ---------- OTP / QR modal ---------- */
.nb-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,8,20,.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.nb-modal {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%; max-width: 460px;
  padding: 26px;
  position: relative;
  animation: nb-pop .18s ease;
}
@keyframes nb-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nb-modal h3 { margin: 0 0 4px; }
.nb-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.nb-close:hover { color: var(--text); }
.nb-otp-box {
  font-size: 40px; font-weight: 900; text-align: center;
  letter-spacing: .25em;
  background: rgba(46,204,143,.08);
  border: 1px dashed rgba(46,204,143,.5);
  color: var(--success);
  border-radius: 12px; padding: 18px 10px;
  margin: 14px 0;
  user-select: all;
}
.nb-waiting { text-align: center; color: var(--text-muted); padding: 18px 0; }
.nb-spinner {
  width: 34px; height: 34px; margin: 0 auto 10px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%;
  animation: nb-spin .8s linear infinite;
}
@keyframes nb-spin { to { transform: rotate(360deg); } }
.nb-countdown { text-align: center; color: var(--warning); font-weight: 700; font-size: 13px; }
.nb-copy {
  margin-top: 10px; width: 100%;
}

/* ---------- QR block ---------- */
.nb-qr-wrap { text-align: center; margin: 16px 0; }
.nb-qr-wrap img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.nb-upi-string {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--text-muted); word-break: break-all; margin-top: 8px;
}

/* ---------- footer ---------- */
.footer {
  text-align: center; color: var(--text-muted);
  font-size: 12.5px; padding: 26px 0 34px;
}
