/* HeliotTLS — Premium quantum-glassmorphism theme */

:root {
  --bg-0: #060816;
  --bg-1: #0a0e27;
  --bg-2: #11163a;
  --ink-0: #f1f4ff;
  --ink-1: #cdd5f5;
  --ink-2: #8a93c2;
  --ink-3: #5a6498;
  --line: rgba(140, 160, 230, 0.14);
  --line-strong: rgba(140, 160, 230, 0.28);
  --cyan: #5cf6ff;
  --cyan-2: #00d9ff;
  --violet: #a06bff;
  --violet-2: #8b5cf6;
  --pink: #ff6bd8;
  --green: #51e6a3;
  --amber: #ffc46b;
  --red: #ff6b8a;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink-1);
  background: var(--bg-0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Animated gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(160, 107, 255, 0.30), transparent 60%),
    radial-gradient(50vw 60vw at 100% 30%, rgba(0, 217, 255, 0.22), transparent 65%),
    radial-gradient(40vw 50vw at 30% 110%, rgba(255, 107, 216, 0.15), transparent 60%),
    linear-gradient(180deg, #060816 0%, #060816 60%, #08081a 100%);
  filter: saturate(1.05);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(140, 160, 230, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { color: var(--ink-0); margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }

p { line-height: 1.65; color: var(--ink-1); margin: 0; }
small { color: var(--ink-2); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 11, 30, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, var(--cyan) 30%, var(--violet) 80%);
  box-shadow: 0 0 20px rgba(0,217,255,0.45), inset 0 0 12px rgba(255,255,255,0.4);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a { color: var(--ink-1); font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--ink-0);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(140,160,230,0.5); background: var(--glass-strong); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-2), var(--violet-2));
  border-color: transparent;
  color: #061226;
  box-shadow: 0 12px 30px -12px rgba(0,217,255,0.6), 0 0 0 0 transparent;
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(0,217,255,0.8); color: #061226; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 64px 0 80px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--ink-1);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
}
.hero h1 .grad {
  background: linear-gradient(120deg, #fff 0%, var(--cyan) 50%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-1);
  max-width: 660px;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.stat-card .label { color: var(--ink-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-card .value { color: #fff; font-size: 1.5rem; font-weight: 700; margin-top: 6px; font-family: var(--font-mono); }

/* Decorative orb */
.orb {
  position: absolute;
  right: -120px;
  top: 30px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.95;
}
.orb svg { width: 100%; height: 100%; }

/* Section */
.section { padding: 80px 0; position: relative; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head .label {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Cards grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--glass-strong); }
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,217,255,0.18), rgba(160,107,255,0.18));
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
  color: var(--cyan);
}
.feature h3 { color: #fff; margin-bottom: 8px; }
.feature p { color: var(--ink-1); font-size: 0.96rem; }

/* Specs table */
.specs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.specs .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.specs .row:last-child { border-bottom: none; }
.specs .row .k { color: var(--ink-2); font-weight: 500; }
.specs .row .v { color: #fff; font-family: var(--font-mono); font-size: 0.92rem; }

/* Pricing */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.price-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(0,217,255,0.12), transparent 50%),
    radial-gradient(100% 120% at 100% 100%, rgba(160,107,255,0.12), transparent 50%),
    rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,217,255,0.5), rgba(160,107,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.price-card .name { font-weight: 700; color: #fff; font-size: 1.2rem; }
.price-card .desc { color: var(--ink-1); margin-top: 8px; }
.price-card .price {
  margin: 28px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-card .price .amt {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.price-card .price .ccy { color: var(--ink-2); font-size: 1.1rem; }
.price-card .pay-list {
  display: flex; gap: 8px; margin: 16px 0 26px; flex-wrap: wrap;
}
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-1);
}
.coin-pill .icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  color: #061226;
}
.coin-btc { background: #f7931a; color: #fff; }
.coin-ltc { background: #345d9d; color: #fff; }
.coin-xmr { background: #ff6600; color: #fff; }

.checklist { padding: 0; margin: 16px 0; list-style: none; }
.checklist li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-1);
}
.checklist li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-2), var(--violet-2));
  flex: 0 0 18px;
  position: relative;
}
.checklist li::after {
  content: '';
  width: 6px; height: 10px;
  border-right: 2px solid #061226;
  border-bottom: 2px solid #061226;
  transform: rotate(45deg) translate(-22px, -16px);
}

/* FAQ */
.faq {
  display: grid; gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--cyan);
  font-size: 1.4rem;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 22px; color: var(--ink-1); }

/* Footer */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer a { color: var(--ink-1); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.85rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #fff;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: rgba(255,255,255,0.06); }

.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.coin-tile {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, transform .15s, background .2s;
}
.coin-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.coin-tile.active {
  border-color: var(--cyan);
  background: rgba(0,217,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.12) inset;
}
.coin-tile .ico-coin {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.coin-tile .name { color: #fff; font-weight: 600; }
.coin-tile .est { color: var(--ink-2); font-size: 0.82rem; margin-top: 4px; font-family: var(--font-mono); }

/* Code/copy box */
.code-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.code-box .copy {
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  color: var(--ink-0);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
}
.code-box .copy:hover { background: rgba(255,255,255,0.12); }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line);
}
.status-pending { color: var(--amber); background: rgba(255,196,107,0.08); border-color: rgba(255,196,107,0.3); }
.status-paid    { color: var(--green); background: rgba(81,230,163,0.08);  border-color: rgba(81,230,163,0.3); }
.status-expired,
.status-cancelled { color: var(--red); background: rgba(255,107,138,0.08); border-color: rgba(255,107,138,0.3); }

/* Spinner */
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* QR */
.qr-wrap {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  display: inline-block;
}

/* Tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  overflow: hidden;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.tbl th, table.tbl td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
}
table.tbl th { color: var(--ink-2); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em; background: rgba(255,255,255,0.03); }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td.mono { font-family: var(--font-mono); color: #fff; font-size: 0.84rem; }
table.tbl tr:hover td { background: rgba(255,255,255,0.02); }

/* Toasts */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(20,30,60,0.92); border: 1px solid var(--line-strong);
  color: #fff; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Utility */
.muted { color: var(--ink-2); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.gap-lg { gap: 24px; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; } .mt-6 { margin-top: 40px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-features { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .orb { display: none; }
  .nav-links { display: none; }
  .nav-links.show { display: flex; }
}
@media (max-width: 600px) {
  .grid-features { grid-template-columns: 1fr; }
  .specs .row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Auth/admin */
.center-wrap { min-height: 80vh; display: grid; place-items: center; }
.auth-card {
  width: 100%; max-width: 420px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.admin-shell { padding: 28px 0 60px; }
.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.admin-side {
  position: sticky; top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 14px;
}
.admin-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-1);
}
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,0.06); color: #fff; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 22px;
}
.panel + .panel { margin-top: 18px; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
