*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter',sans-serif;
  background:#050a14;
  color:#fff;
  min-height:100vh;
  overflow-x:hidden;
}

/* Canvas + cursor */
#particleCanvas { position:fixed; inset:0; width:100vw; height:100vh; z-index:0; pointer-events:none; }
.cursor-glow {
  position:fixed; top:0; left:0; width:300px; height:300px; border-radius:50%;
  background:radial-gradient(circle,rgba(0,160,255,.10) 0%,transparent 70%);
  pointer-events:none; z-index:1; will-change:transform;
}
@media(hover:none){.cursor-glow{display:none;}}

/* BG */
body::before {
  content:''; position:fixed; inset:0;
  background:url('2b6a1e00235359395c85443d3d4f225f.jpg') center/cover;
  opacity:.07; z-index:0; pointer-events:none;
}

nav, .smm-layout, .toast { position:relative; z-index:2; }

/* ── NAVBAR ── */
.navbar {
  position:fixed; top:0; left:0; right:0;
  padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:rgba(5,10,20,.75); backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:100;
}
.nav-brand {
  font-size:17px; font-weight:800; color:#00bfff;
  letter-spacing:3px; text-decoration:none;
  text-shadow:0 0 12px rgba(0,191,255,.6);
}
.nav-center {
  font-size:15px; font-weight:700; color:#e2e8f0; letter-spacing:1px;
}
.nav-btn-otp {
  background:linear-gradient(135deg,#065f46,#10b981);
  color:#fff; text-decoration:none; font-size:13px; font-weight:600;
  padding:7px 16px; border-radius:20px;
  border:1px solid rgba(16,185,129,.4);
  transition:all .3s;
}
.nav-btn-otp:hover { box-shadow:0 0 18px rgba(16,185,129,.5); transform:translateY(-1px); }

/* ── LAYOUT ── */
.smm-layout {
  display:flex; gap:0;
  padding-top:62px;
  min-height:100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width:280px; flex-shrink:0;
  background:rgba(255,255,255,.03);
  border-right:1px solid rgba(255,255,255,.07);
  padding:24px 18px;
  display:flex; flex-direction:column; gap:20px;
  min-height:calc(100vh - 62px);
  position:sticky; top:62px; height:calc(100vh - 62px);
  overflow-y:auto;
}
.sidebar-label {
  font-size:10px; font-weight:700; letter-spacing:2px;
  color:#3b82f6; text-transform:uppercase; margin-bottom:8px;
}
.sidebar-section { display:flex; flex-direction:column; gap:8px; }

/* ── INPUTS ── */
.api-input {
  width:100%; padding:9px 12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px; color:#fff; font-size:13px;
  font-family:'Inter',sans-serif;
  transition:border-color .3s;
  outline:none;
}
.api-input:focus { border-color:rgba(0,160,255,.5); }
.api-input::placeholder { color:#475569; }

.smm-select {
  width:100%; padding:9px 12px;
  background:rgba(10,20,40,.9);
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px; color:#fff; font-size:13px;
  font-family:'Inter',sans-serif; outline:none; cursor:pointer;
  transition:border-color .3s;
}
.smm-select:focus { border-color:rgba(0,160,255,.5); }
.smm-select option { background:#0d1b2e; }

/* ── BUTTONS ── */
.btn-primary {
  padding:10px 18px; border-radius:10px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#1d4ed8,#3b82f6);
  color:#fff; font-size:13px; font-weight:600;
  font-family:'Inter',sans-serif;
  transition:all .3s; width:100%;
}
.btn-primary:hover { box-shadow:0 0 18px rgba(59,130,246,.5); transform:translateY(-1px); }

.btn-secondary {
  padding:9px 16px; border-radius:10px; border:none; cursor:pointer;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  color:#cbd5e1; font-size:13px; font-weight:500;
  font-family:'Inter',sans-serif;
  transition:all .3s; width:100%;
}
.btn-secondary:hover { background:rgba(255,255,255,.12); }

.btn-sm {
  padding:5px 12px; border-radius:8px; border:none; cursor:pointer;
  background:rgba(0,160,255,.15);
  border:1px solid rgba(0,160,255,.3);
  color:#7dd3fc; font-size:12px; font-weight:600;
  font-family:'Inter',sans-serif; transition:all .3s;
}
.btn-sm:hover { background:rgba(0,160,255,.28); }

.btn-select {
  background:rgba(59,130,246,.15);
  border-color:rgba(59,130,246,.3);
  color:#93c5fd;
}
.btn-select:hover { background:rgba(59,130,246,.3); }

/* ── BALANCE BOX ── */
.balance-box {
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(0,160,255,.08);
  border:1px solid rgba(0,160,255,.2);
  border-radius:10px; padding:10px 14px;
}
#balanceVal { font-size:16px; font-weight:700; color:#00bfff; }

/* ── STATUS RESULT ── */
.status-result { margin-top:4px; }
.status-card {
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px; padding:12px;
  display:flex; flex-direction:column; gap:8px;
}
.status-row {
  display:flex; justify-content:space-between;
  font-size:12px; color:#94a3b8;
}
.status-row span:last-child { color:#e2e8f0; font-weight:600; }

/* ── MAIN ── */
.smm-main {
  flex:1; padding:28px 28px 60px;
  display:flex; flex-direction:column; gap:28px;
  overflow-x:hidden;
}

/* ── PANEL CARDS ── */
.order-panel, .services-panel {
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px; padding:28px;
  backdrop-filter:blur(10px);
}
.panel-title {
  font-size:18px; font-weight:700; color:#fff; margin-bottom:20px;
}

/* ── ORDER FORM ── */
.form-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px;
}
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:12px; font-weight:600; color:#64748b; letter-spacing:.5px; }
.hint { font-size:11px; color:#475569; margin-top:2px; }
.cost-box {
  padding:9px 12px;
  background:rgba(0,160,255,.08);
  border:1px solid rgba(0,160,255,.2);
  border-radius:10px;
  font-size:18px; font-weight:800; color:#00bfff;
  text-shadow:0 0 10px rgba(0,191,255,.5);
}
.btn-order { width:auto; padding:12px 36px; font-size:15px; border-radius:12px; }
.order-result { margin-top:14px; font-size:14px; }
.ok  { color:#10b981; font-weight:600; }
.err { color:#f87171; font-weight:600; }
.loading { color:#94a3b8; }

/* ── SERVICES TABLE ── */
.services-header {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;
}
.services-header .panel-title { margin-bottom:0; }
.service-count {
  font-size:12px; color:#475569; font-weight:600;
  background:rgba(255,255,255,.05);
  padding:4px 12px; border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
}
.table-wrap { overflow-x:auto; border-radius:12px; }
.services-table {
  width:100%; border-collapse:collapse; font-size:13px;
}
.services-table thead tr {
  background:rgba(0,160,255,.08);
  border-bottom:1px solid rgba(0,160,255,.15);
}
.services-table th {
  padding:12px 14px; text-align:left;
  font-size:11px; font-weight:700; letter-spacing:1px;
  color:#3b82f6; text-transform:uppercase; white-space:nowrap;
}
.services-table td { padding:11px 14px; border-bottom:1px solid rgba(255,255,255,.04); }
.svc-row { cursor:pointer; transition:background .2s; }
.svc-row:hover { background:rgba(0,160,255,.06); }
.svc-id {
  background:rgba(59,130,246,.15); color:#93c5fd;
  padding:2px 8px; border-radius:6px; font-size:12px; font-weight:700;
}
.svc-name { color:#e2e8f0; max-width:280px; }
.svc-cat {
  background:rgba(255,255,255,.06); color:#94a3b8;
  padding:2px 8px; border-radius:6px; font-size:11px; white-space:nowrap;
}
.svc-rate { color:#00bfff; font-weight:700; }
.empty-row { text-align:center; color:#475569; padding:40px; }

/* ── TOAST ── */
.toast {
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px);
  padding:12px 24px; border-radius:12px; font-size:14px; font-weight:600;
  opacity:0; transition:all .3s; z-index:999; pointer-events:none;
  backdrop-filter:blur(12px); white-space:nowrap;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success { background:rgba(16,185,129,.2); border:1px solid rgba(16,185,129,.4); color:#6ee7b7; }
.toast.error   { background:rgba(248,113,113,.15); border:1px solid rgba(248,113,113,.4); color:#fca5a5; }
.toast.info    { background:rgba(59,130,246,.15); border:1px solid rgba(59,130,246,.4); color:#93c5fd; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .smm-layout { flex-direction:column; }
  .sidebar {
    width:100%; position:static; height:auto;
    border-right:none; border-bottom:1px solid rgba(255,255,255,.07);
  }
  .form-grid { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .smm-main { padding:16px 14px 50px; }
  .order-panel, .services-panel { padding:18px 14px; }
}

/* ── ADD BALANCE BUTTON ── */
.btn-add-balance {
  padding:9px 16px; border-radius:10px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#065f46,#10b981);
  color:#fff; font-size:13px; font-weight:600;
  font-family:'Inter',sans-serif; transition:all .3s; width:100%;
  margin-top:4px;
}
.btn-add-balance:hover { box-shadow:0 0 16px rgba(16,185,129,.5); transform:translateY(-1px); }

/* ── TOPUP MODAL ── */
.modal-overlay {
  position:fixed; inset:0; z-index:500;
  background:rgba(0,0,0,.75); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.modal-overlay.show { opacity:1; pointer-events:all; }
.modal {
  background:#0d1b2e; border:1px solid rgba(59,130,246,.25);
  border-radius:20px; padding:30px; width:min(460px,92vw);
  position:relative; box-shadow:0 20px 60px rgba(0,0,0,.6);
  animation:modalIn .3s ease;
}
@keyframes modalIn { from{transform:scale(.92);opacity:0} to{transform:scale(1);opacity:1} }
.modal-close {
  position:absolute; top:14px; right:16px;
  background:rgba(255,255,255,.08); border:none; color:#94a3b8;
  width:30px; height:30px; border-radius:50%; cursor:pointer;
  font-size:14px; transition:all .2s;
}
.modal-close:hover { background:rgba(255,255,255,.16); color:#fff; }
.modal-title { font-size:20px; font-weight:700; margin-bottom:6px; }
.modal-sub { font-size:13px; color:#64748b; margin-bottom:20px; }

/* Amount chips */
.topup-amounts {
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px;
}
.amt-chip {
  padding:10px; border-radius:10px; border:none; cursor:pointer;
  background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.25);
  color:#93c5fd; font-size:14px; font-weight:700;
  font-family:'Inter',sans-serif; transition:all .25s;
}
.amt-chip:hover { background:rgba(59,130,246,.25); transform:translateY(-1px); }

.topup-custom { margin-bottom:20px; }
.topup-custom label { font-size:12px; font-weight:600; color:#64748b; display:block; margin-bottom:6px; }

/* Pay button */
.btn-pay {
  width:100%; padding:14px; border-radius:12px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff; font-size:15px; font-weight:700;
  font-family:'Inter',sans-serif; transition:all .3s;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.btn-pay:hover { box-shadow:0 0 24px rgba(139,92,246,.5); transform:translateY(-1px); }
.btn-pay:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.stripe-note {
  text-align:center; font-size:12px; color:#475569; margin-top:12px;
}

/* Order success */
.order-success {
  background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.25);
  border-radius:10px; padding:14px 16px;
  display:flex; flex-direction:column; gap:4px;
  font-size:14px; color:#6ee7b7;
}
.order-success strong { color:#10b981; }

/* ══════════════════════════════════════
   MAINTENANCE OVERLAY
══════════════════════════════════════ */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.97);
  backdrop-filter: blur(16px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.6s ease both;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.maintenance-box {
  text-align: center;
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 28px;
  max-width: 420px;
  width: 90%;
  animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  box-shadow: 0 0 60px rgba(59,130,246,0.1);
}
@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.maint-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: spin 4s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(20deg); }
  40%  { transform: rotate(-20deg); }
  60%  { transform: rotate(10deg); }
  80%  { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

.maint-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.maint-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.maint-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.maint-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.maint-dots span:nth-child(2) { animation-delay: 0.2s; background: #6366f1; }
.maint-dots span:nth-child(3) { animation-delay: 0.4s; background: #8b5cf6; }
@keyframes dotPulse {
  0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
  40%          { transform: scale(1.2); opacity: 1; }
}

.maint-back {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}
.maint-back:hover {
  background: rgba(59,130,246,0.25);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   NAVBAR HAMBURGER (smm/otp pages)
══════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 300;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #7dd3fc;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in nav */
.nav-links-mob {
  position: fixed;
  top: 0; right: -100%;
  height: 100dvh;
  width: min(240px, 75vw);
  background: rgba(5,10,20,0.98);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 24px 40px;
  gap: 10px;
  border-left: 1px solid rgba(0,191,255,0.12);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
  display: flex;
}
.nav-links-mob.open { right: 0; }
.nav-links-mob a {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  width: 100%;
  border: 1px solid rgba(125,211,252,0.15);
  transition: all 0.25s;
}
.nav-links-mob a:hover,
.nav-links-mob a.active-link {
  background: rgba(0,160,255,0.12);
  border-color: rgba(0,160,255,0.35);
  color: #fff;
}

/* ══════════════════════════════════════
   BORDER RADIUS POLISH
══════════════════════════════════════ */
.api-input, .smm-select { border-radius: 12px !important; }
.btn-primary, .btn-secondary { border-radius: 12px !important; }
.sidebar { border-radius: 0 16px 16px 0; }
.order-panel, .services-panel { border-radius: 20px !important; }
.services-table { border-radius: 14px; overflow: hidden; }
.svc-id { border-radius: 8px !important; }
.svc-cat { border-radius: 8px !important; }

/* ══════════════════════════════════════
   RESPONSIVE NAVBAR SHOW HAMBURGER
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-btn-otp, .nav-btn-smm { display: none; }
  .nav-center { font-size: 14px; }
  .navbar { padding: 12px 18px; }
}
