/* ============================================================
   SCRAPY XITER — Premium Redesign
   Dark · Red · Glass · Professional
   ============================================================ */
:root {
  --red: #ff2e4d;
  --red-hot: #ff5c33;
  --red-dim: #c81e38;
  --red-glow: rgba(255, 46, 77, 0.35);
  --red-subtle: rgba(255, 46, 77, 0.09);
  --grad: linear-gradient(135deg, #ff2e4d 0%, #ff5c33 100%);
  --success: #2ee6a8;
  --warning: #ffb547;
  --danger: #ff4d6a;
  --bg0: #08070a;
  --bg1: #0e0b10;
  --glass: rgba(20, 15, 20, 0.66);
  --glass2: rgba(28, 20, 26, 0.82);
  --card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #f6f2f4;
  --text-dim: #9b93a0;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Rajdhani', system-ui, sans-serif;
  background: var(--bg0);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Proper document flow: visible page stretches, footer always sits
   AFTER the active page's content — never overlaps. */
.page { flex: 1 0 auto; }
footer { flex-shrink: 0; }

::selection { background: rgba(255, 46, 77, 0.4); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #3a2a31; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Animated background ─────────────────────────────────── */
#bgLayer {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 46, 77, 0.13), transparent 60%),
    radial-gradient(900px 550px at -10% 110%, rgba(255, 92, 51, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.bg-orb.o1 { width: 480px; height: 480px; top: -140px; right: -100px; background: rgba(255, 46, 77, 0.20); }
.bg-orb.o2 { width: 380px; height: 380px; bottom: -120px; left: -110px; background: rgba(255, 92, 51, 0.14); animation-delay: -6s; }
.bg-orb.o3 { width: 260px; height: 260px; top: 40%; left: 55%; background: rgba(255, 46, 77, 0.10); animation-delay: -11s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 46px) scale(1.12); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

/* ── Pages / routing ─────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.6rem 1.25rem; border-radius: 11px; border: none; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.84rem;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 22px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 46, 77, 0.5); text-decoration: none; }
.btn-outline {
  background: transparent; border: 1px solid rgba(255, 46, 77, 0.55); color: #ff8296;
}
.btn-outline:hover { background: var(--red-subtle); border-color: var(--red); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.btn-success { background: linear-gradient(135deg, #17c98a, #2ee6a8); color: #04120c; box-shadow: 0 6px 20px rgba(46, 230, 168, 0.28); }
.btn-success:hover { transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #ff2e4d, #d91636); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.36rem 0.75rem; font-size: 0.7rem; border-radius: 8px; }
.btn-full { width: 100%; }
.btn.hx-loading { pointer-events: none; opacity: 0.8; }
.hx-spinner {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite; margin-right: 6px; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 0.95rem; display: flex; flex-direction: column; }
.form-group label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.45rem;
}
input, select, textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); padding: 0.62rem 0.9rem; border-radius: 11px; outline: none;
  font-family: 'Inter', sans-serif; font-size: 0.86rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: #6c6470; }
input:focus, select:focus, textarea:focus {
  border-color: var(--red); background: rgba(255, 46, 77, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.14);
}
select option { background: #17121a; color: var(--text); }
input[type='checkbox'] { width: auto; accent-color: var(--red); cursor: pointer; }
input[type='color'] { padding: 4px; height: 46px; cursor: pointer; }
textarea { resize: vertical; min-height: 80px; }

/* ── Cards / badges ──────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem; margin-bottom: 1.3rem; backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card-title {
  font-family: 'Rajdhani', sans-serif; font-size: 0.92rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem;
}
.card-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--grad);
  box-shadow: 0 0 12px var(--red-glow);
}
.badge {
  display: inline-block; padding: 0.18rem 0.6rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
}
.badge-active   { background: rgba(46, 230, 168, 0.12); color: var(--success); border: 1px solid rgba(46, 230, 168, 0.35); }
.badge-pending  { background: rgba(255, 181, 71, 0.12); color: var(--warning); border: 1px solid rgba(255, 181, 71, 0.35); }
.badge-rejected { background: rgba(255, 77, 106, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 106, 0.35); }
.badge-banned   { background: rgba(255, 46, 77, 0.16); color: #ff8296; border: 1px solid rgba(255, 46, 77, 0.45); }
.badge-neutral  { background: rgba(255, 255, 255, 0.06); color: var(--text-dim); border: 1px solid var(--border); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead th {
  text-align: left; padding: 0.62rem 0.9rem; font-family: 'Rajdhani', sans-serif;
  font-size: 0.66rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 0.6rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255, 46, 77, 0.045); }
tbody tr:last-child td { border-bottom: none; }
.key-cell { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 0.74rem; color: #ffb3c0; letter-spacing: 0.5px; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex;
  flex-direction: column; gap: 10px; max-width: min(360px, 90vw);
}
.toast {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.72rem 1rem;
  background: var(--glass2); border: 1px solid var(--border-bright); border-radius: 12px;
  box-shadow: var(--shadow); backdrop-filter: blur(18px); font-size: 0.8rem;
  animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1); position: relative; overflow: hidden;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.hx-toast-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); transform-origin: left; animation: hxBar linear forwards;
}
@keyframes hxBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ════════════════════ LANDING ═══════════════════════════ */
.hx-hero {
  max-width: 1080px; margin: 0 auto; padding: 3.6rem 1.5rem 2.6rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.36rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255, 46, 77, 0.35); background: var(--red-subtle);
  font-family: 'Rajdhani', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase; color: #ff96a6;
}
.hx-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px var(--red); animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 50% { opacity: 0.35; transform: scale(0.8); } }

.logo-wrap { position: relative; margin: 2rem 0 1.3rem; width: 118px; height: 118px; }
.logo-wrap img {
  width: 118px; height: 118px; border-radius: 30px; object-fit: cover; position: relative; z-index: 2;
  box-shadow: 0 14px 44px rgba(255, 46, 77, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.logo-ring {
  position: absolute; inset: -14px; border-radius: 38px; z-index: 1;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg0), var(--bg0)) padding-box,
    conic-gradient(from 0deg, transparent 10%, var(--red) 30%, var(--red-hot) 50%, transparent 70%) border-box;
  animation: ringSpin 5.5s linear infinite; opacity: 0.9;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.hx-brand-name {
  font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 6px;
  font-size: clamp(1.7rem, 5.4vw, 2.9rem); line-height: 1.1;
  background: linear-gradient(120deg, #fff 20%, #ff8296 55%, var(--red) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hx-brand-sub {
  font-family: 'Rajdhani', sans-serif; font-weight: 600; letter-spacing: 4.5px;
  text-transform: uppercase; color: var(--text-dim); margin-top: 0.5rem; font-size: 0.85rem;
}
.hx-brand-line {
  width: 84px; height: 3px; margin: 1.2rem auto 0; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 16px var(--red-glow);
}
.hx-subtitle { max-width: 640px; color: var(--text-dim); margin-top: 1.3rem; font-size: 0.92rem; line-height: 1.7; }

.landing-cards { display: grid; grid-template-columns: repeat(2, minmax(220px, 300px)); gap: 1.3rem; margin-top: 2.6rem; width: 100%; max-width: 660px; }
.landing-card {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem 1.4rem; backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.landing-card:hover {
  transform: translateY(-5px); border-color: rgba(255, 46, 77, 0.55);
  box-shadow: 0 16px 44px rgba(255, 46, 77, 0.22);
}
.landing-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.5rem;
  color: var(--text);
}
.landing-card p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.55; }
.landing-card::after {
  content: '→'; position: absolute; right: 1.3rem; bottom: 1.1rem; font-size: 1.2rem;
  color: var(--red); opacity: 0; transform: translateX(-8px); transition: 0.25s;
}
.landing-card:hover::after { opacity: 1; transform: none; }
.ripple {
  position: absolute; border-radius: 50%; background: rgba(255, 46, 77, 0.28);
  transform: scale(0); animation: ripple 0.65s ease-out forwards; pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.info-sections { width: 100%; margin-top: 3.6rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; text-align: left; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s;
}
.info-card:hover { border-color: rgba(255, 46, 77, 0.4); }
.info-card.hx-inview { opacity: 1; transform: none; }
.info-card h4 {
  font-family: 'Rajdhani', sans-serif; letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.8rem; color: var(--red); margin-bottom: 0.9rem;
}
.info-card ul, .info-card ol { padding-left: 1.1rem; color: var(--text-dim); font-size: 0.8rem; line-height: 1.8; }
.info-card p { color: var(--text-dim); font-size: 0.8rem; line-height: 1.65; }
.info-card strong { color: var(--text); }

/* Contact strip */
.contact-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 0.76rem; font-weight: 500; transition: 0.22s;
}
.contact-chip:hover { border-color: rgba(255, 46, 77, 0.55); background: var(--red-subtle); text-decoration: none; transform: translateY(-2px); }
.contact-chip svg { width: 17px; height: 17px; fill: var(--red); }

/* Footer */
footer {
  position: relative; margin-top: 4rem; padding: 3rem 1.5rem 2rem; text-align: center;
  border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.28); overflow: hidden;
}
.footer-logo img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 22px var(--red-glow); }
.footer-name { font-family: 'Orbitron', sans-serif; letter-spacing: 4px; font-weight: 700; margin-top: 0.9rem; font-size: 0.95rem; }
#footer-text-display { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.4rem; }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.3rem; }
.footer-links a { color: var(--text-dim); font-size: 0.78rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); text-decoration: none; }
.footer-divider { width: 130px; height: 1px; background: var(--grad); margin: 1.6rem auto 1rem; opacity: 0.6; }
.footer-copy { color: #6c6470; font-size: 0.7rem; letter-spacing: 0.5px; }
.footer-particles span {
  position: absolute; bottom: -6px; border-radius: 50%; background: var(--red); opacity: 0.5;
  animation: floatUp linear infinite;
}
@keyframes floatUp { from { transform: translateY(0); opacity: 0.55; } to { transform: translateY(-110px); opacity: 0; } }

/* ════════════════════ AUTH ══════════════════════════════ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-box {
  width: 100%; max-width: 420px; background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.1rem 2rem; backdrop-filter: blur(22px); box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 1.8rem; }
.auth-logo img { width: 74px; height: 74px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 30px var(--red-glow); }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; color: #6c6470; font-size: 0.75rem; margin: 1.1rem 0; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.link-row { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.76rem; }
.link-row a { color: var(--text-dim); cursor: pointer; }
.link-row a:hover { color: var(--red); text-decoration: none; }
.fade-in { animation: pageIn 0.5s ease; }

/* ════════════════════ DASHBOARD ═════════════════════════ */
#dashboard.active { display: flex; }
.sidebar-overlay { display: none; }
.sidebar {
  width: 250px; min-height: 100vh; position: sticky; top: 0; align-self: flex-start;
  background: rgba(12, 9, 13, 0.86); border-right: 1px solid var(--border);
  backdrop-filter: blur(20px); display: flex; flex-direction: column; z-index: 50;
}
.sidebar-logo { display: flex; align-items: center; gap: 0.75rem; padding: 1.3rem 1.2rem; border-bottom: 1px solid var(--border); }
.sidebar-logo img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 16px var(--red-glow); }
.sidebar-logo h3 { font-family: 'Orbitron', sans-serif; font-size: 0.76rem; letter-spacing: 2px; line-height: 1.3; }
.sidebar-logo small { display: block; font-family: 'Rajdhani', sans-serif; color: var(--text-dim); font-size: 0.62rem; letter-spacing: 2px; }
.nav-items { flex: 1; padding: 0.9rem 0.7rem; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.56rem 0.8rem; margin-bottom: 3px;
  border-radius: 10px; color: var(--text-dim); cursor: pointer; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.8px; transition: 0.18s; user-select: none;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 46, 77, 0.18), rgba(255, 46, 77, 0.06));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 46, 77, 0.35);
}
.nav-item.active svg { color: var(--red); }
.sidebar-footer { padding: 1rem 1.2rem; border-top: 1px solid var(--border); }

.dash-main { flex: 1; padding: 1.4rem 1.8rem 2.8rem; max-width: 1180px; min-width: 0; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.dash-user { display: flex; align-items: center; gap: 0.8rem; }
.dash-avatar {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-weight: 700; color: #fff; background: var(--grad);
  box-shadow: 0 4px 16px var(--red-glow); font-size: 1rem;
}
.dash-user-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.dash-user-role { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 1.6px; text-transform: uppercase; }
.wallet-badge {
  font-family: 'Orbitron', sans-serif; font-size: 0.9rem; padding: 0.5rem 1.15rem; border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 46, 77, 0.16), rgba(255, 92, 51, 0.08));
  border: 1px solid rgba(255, 46, 77, 0.4); color: #ff96a6; box-shadow: 0 4px 20px rgba(255, 46, 77, 0.15);
}
.hamburger { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem; cursor: pointer; color: var(--text); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; margin-bottom: 1.8rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; backdrop-filter: blur(12px); position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255, 46, 77, 0.4); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0.75;
}
.stat-val { font-family: 'Orbitron', sans-serif; font-size: 1.22rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 1.8px; text-transform: uppercase; margin-top: 0.4rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

.panel { display: none; }
.panel.active { display: block; animation: pageIn 0.35s ease; }

/* Price display */
.price-display {
  background: linear-gradient(135deg, rgba(255, 46, 77, 0.12), rgba(255, 92, 51, 0.05));
  border: 1px solid rgba(255, 46, 77, 0.35); border-radius: 14px; padding: 1.2rem; text-align: center;
}
.price-label { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.price-val { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: var(--red); text-shadow: 0 0 24px var(--red-glow); margin-top: 0.3rem; }

/* Payment method cards */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pm-card {
  border: 1px solid var(--border); border-radius: 13px; padding: 0.95rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.02); transition: 0.2s; text-align: center;
}
.pm-card h5 { font-family: 'Rajdhani', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.5rem; color: var(--text); }
.pm-card p { font-size: 0.72rem; color: var(--text-dim); line-height: 1.6; }
.pm-card.selected { border-color: var(--red); background: var(--red-subtle); box-shadow: 0 0 0 3px rgba(255, 46, 77, 0.12); }

/* File drop */
.file-drop {
  border: 2px dashed rgba(255, 46, 77, 0.35); border-radius: 13px; padding: 1.5rem;
  text-align: center; cursor: pointer; transition: 0.2s; color: var(--text-dim); font-size: 0.8rem;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--red); background: var(--red-subtle); }
.file-drop input { display: none; }

/* Notifications */
.notif-item {
  display: flex; gap: 0.75rem; padding: 0.8rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); margin-bottom: 0.6rem;
  align-items: flex-start;
}
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 10px var(--red-glow); }
.notif-dot.read { background: #4a4149; box-shadow: none; }
.notif-msg { font-size: 0.82rem; line-height: 1.5; }
.notif-time { font-size: 0.66rem; color: var(--text-dim); margin-top: 0.35rem; }

/* Generated keys list */
.gen-keys-list { display: flex; flex-direction: column; gap: 0.55rem; max-height: 300px; overflow-y: auto; }
.gen-key-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: rgba(255, 46, 77, 0.06); border: 1px solid rgba(255, 46, 77, 0.28);
  border-radius: 11px; padding: 0.65rem 0.9rem;
}
.gen-key-item code { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #ffb3c0; word-break: break-all; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 3, 6, 0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--glass2); border: 1px solid var(--border-bright); border-radius: 18px;
  padding: 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 46, 77, 0.08);
  transform: translateY(16px) scale(0.98); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.95rem; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.7rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--red); }

/* ── Success / loading overlays ─────────────────────────── */
#hxSuccessOverlay, #hxLoadingOverlay {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 3, 6, 0.8); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#hxSuccessOverlay.open, #hxLoadingOverlay.open { opacity: 1; pointer-events: auto; }
.hx-success-card, .hx-loading-card {
  background: var(--glass2); border: 1px solid rgba(255, 46, 77, 0.35); border-radius: 22px;
  padding: 2.4rem 2.8rem; text-align: center; max-width: 340px; width: 88%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 46, 77, 0.12); position: relative; overflow: hidden;
}
.hx-check-wrap {
  width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 168, 0.2), transparent 70%);
  display: flex; align-items: center; justify-content: center;
}
.hx-check-wrap svg { width: 46px; height: 46px; }
.hx-check-path {
  fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.55s 0.15s ease forwards;
  filter: drop-shadow(0 0 8px rgba(46, 230, 168, 0.6));
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.hx-success-title { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: 3px; }
.hx-success-sub { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.5rem; line-height: 1.5; }
.hx-success-progress, .hx-loading-progress { height: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; margin-top: 1.5rem; overflow: hidden; }
.hx-success-progress span, .hx-loading-progress span { display: block; height: 100%; background: var(--grad); animation: hxBar2 1.9s linear forwards; }
@keyframes hxBar2 { from { width: 100%; } to { width: 0%; } }
.hx-loading-spinner-lg {
  width: 58px; height: 58px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 3px solid rgba(255, 46, 77, 0.18); border-top-color: var(--red); animation: spin 0.8s linear infinite;
}
.hx-loading-text { font-family: 'Rajdhani', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.hx-confetti-piece { position: absolute; top: -8px; width: 7px; height: 11px; border-radius: 2px; animation: confettiFall ease-in forwards; }
@keyframes confettiFall { to { transform: translateY(360px) rotate(540deg); opacity: 0; } }

/* Onboarding checklist */
.onboard-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.2rem; color: var(--text-dim); font-size: 0.82rem; }
.onboard-item .n {
  width: 24px; height: 24px; border-radius: 8px; background: var(--red-subtle); border: 1px solid rgba(255, 46, 77, 0.4);
  color: var(--red); font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); width: 260px;
  }
  .sidebar.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 40; }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .hamburger { display: inline-flex; }
  .dash-main { padding: 1.1rem 1rem 2.5rem; }
  .landing-cards { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
}

/* ═══════════ Modern Login CTA (landing) ═══════════ */
.hx-cta-wrap { margin-top: 2.6rem; width: 100%; display: flex; justify-content: center; }
.hx-login-cta {
  position: relative; display: flex; align-items: center; gap: 1.1rem;
  width: min(420px, 92vw); padding: 1.05rem 1.6rem; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  backdrop-filter: blur(16px); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hx-login-cta:hover {
  transform: translateY(-4px); border-color: var(--red);
  box-shadow: 0 18px 50px var(--red-glow), inset 0 0 0 1px var(--red-glow);
}
.hx-login-cta:active { transform: translateY(-1px) scale(0.99); }
.hx-login-cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px 80px at 20% 50%, var(--red-subtle), transparent 70%);
}
.hx-login-cta-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.hx-login-cta-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hx-login-cta-text strong {
  font-family: 'Orbitron', sans-serif; font-size: 1.06rem; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--text);
}
.hx-login-cta-text small { color: var(--text-dim); font-size: 0.74rem; margin-top: 0.25rem; letter-spacing: 0.4px; }
.hx-login-cta-arrow {
  margin-left: auto; color: var(--red); font-size: 1.25rem;
  transition: transform 0.25s ease;
}
.hx-login-cta:hover .hx-login-cta-arrow { transform: translateX(6px); }

/* ═══════════ Contact section ═══════════ */
.contact-section { width: 100%; margin-top: 3.2rem; }
.contact-head { display: flex; align-items: center; gap: 1.1rem; justify-content: center; margin-bottom: 1.6rem; }
.contact-head h3 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: 0.95rem; color: var(--text); white-space: nowrap;
}
.contact-head-line { height: 1px; width: min(120px, 22vw); background: var(--grad); opacity: 0.55; border-radius: 1px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.95rem; text-align: left;
}
.contact-tile {
  display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 15px;
  backdrop-filter: blur(12px); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.contact-tile:hover {
  transform: translateY(-4px); border-color: rgba(255,46,77,0.5);
  box-shadow: 0 12px 32px rgba(255,46,77,0.16); text-decoration: none;
}
.contact-tile-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-subtle); border: 1px solid var(--red-glow); color: var(--red);
}
.contact-tile-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-tile-icon svg[fill="none"] { fill: none; }
.contact-tile-body { display: flex; flex-direction: column; min-width: 0; }
.contact-tile-body strong { font-family: 'Rajdhani', sans-serif; font-size: 0.86rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.contact-tile-body small { color: var(--text-dim); font-size: 0.74rem; margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════ Theme swatches ═══════════ */
.theme-swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.theme-swatch {
  width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.theme-swatch:hover { transform: scale(1.12); }
.theme-swatch.active {
  border-color: #fff; box-shadow: 0 0 0 3px var(--red-glow), 0 6px 18px rgba(0,0,0,0.45);
  transform: scale(1.08);
}
.theme-swatch.active::after {
  content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ═══════════ Legal pages (terms / privacy / refunds) ═══════════ */
.legal-wrap { max-width: 880px; margin: 0 auto; padding: 2.4rem 1.2rem 3rem; }
.legal-head { text-align: center; margin-bottom: 1.6rem; }
.legal-back { display: inline-block; margin-bottom: 1.1rem; color: var(--text-dim); font-size: 0.8rem; }
.legal-back:hover { color: var(--red); text-decoration: none; }
.legal-head img { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 22px var(--red-glow); }
.legal-head h1 { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; letter-spacing: 3px; margin-top: 0.9rem; text-transform: uppercase; background: linear-gradient(120deg, #fff 30%, var(--red) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal-updated { color: var(--text-dim); font-size: 0.72rem; margin-top: 0.4rem; }
.legal-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.4rem; backdrop-filter: blur(12px); }
.legal-card h2 { font-family: 'Rajdhani', sans-serif; font-size: 0.92rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin: 1.5rem 0 0.5rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--text-dim); font-size: 0.84rem; line-height: 1.75; margin: 0.4rem 0; }
.legal-card ul { padding-left: 1.1rem; margin: 0.4rem 0; }
.legal-card li { color: var(--text-dim); font-size: 0.84rem; line-height: 1.7; }
.legal-card strong { color: var(--text); }
.legal-foot { text-align: center; color: #6c6470; font-size: 0.74rem; margin-top: 1.8rem; }
.legal-foot a { color: var(--text-dim); }
.legal-foot a:hover { color: var(--red); text-decoration: none; }
.auth-legal { margin-top: 1rem; font-size: 0.72rem; color: #6c6470; text-align: center; }
.auth-legal a { color: var(--text-dim); cursor: pointer; }
.auth-legal a:hover { color: var(--red); text-decoration: none; }

/* ═══════════ 404 ═══════════ */
.nf-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.nf-code { font-family: 'Orbitron', sans-serif; font-size: clamp(3.4rem, 14vw, 5rem); font-weight: 900; margin-top: 1.2rem; background: linear-gradient(120deg, #fff 20%, var(--red) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 28px var(--red-glow)); }
.nf-title { font-family: 'Rajdhani', sans-serif; letter-spacing: 3px; text-transform: uppercase; font-size: 1.1rem; margin-top: 0.6rem; }
.nf-sub { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.5rem; }
