/* ============================================================
   NyxGG — main.css
   Design tokens, reset, layout, typography, nav, hero,
   trust cards, footer, contact bar.
   ============================================================ */

/* ----------------------------------------------------------
   RESET + TOKENS
   ---------------------------------------------------------- */

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

:root {
  --bg:       #080810;
  --bg2:      #0f0f1a;
  --bg3:      #151523;
  --accent:   #7c5cfc;
  --accent2:  #a78bfa;
  --accent3:  #c4b5fd;
  --text:     #f0eeff;
  --muted:    #8b8aad;
  --border:   #1e1e35;
  --card:     #0f0f1c;
  --success:  #22c55e;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --glow:     rgba(124, 92, 252, 0.3);
  --radius:       14px;
  --radius-lg:    18px;
  --radius-full:  50px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

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

::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: var(--bg); }
::-webkit-scrollbar-thumb        { background: var(--accent); border-radius: 2px; }

/* ----------------------------------------------------------
   CANVAS BACKGROUND
   ---------------------------------------------------------- */

#bgCanvas {
  position:      fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index:       0;
  pointer-events: none;
  opacity:       0.4;
}

.wrap { position: relative; z-index: 1; }

/* ----------------------------------------------------------
   NAV
   ---------------------------------------------------------- */

nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0.85rem 1.2rem;
  border-bottom:   1px solid var(--border);
  position:        sticky;
  top:             0;
  background:      rgba(8, 8, 16, 0.93);
  backdrop-filter: blur(20px);
  z-index:         100;
}

.logo {
  display:         flex;
  align-items:     center;
  gap:             0.6rem;
  text-decoration: none;
  cursor:          pointer;
}

.logo-icon {
  width:  36px;
  height: 36px;
  filter: drop-shadow(0 0 8px var(--glow));
}

.logo-name {
  font-size:      1.2rem;
  font-weight:    900;
  letter-spacing: -0.02em;
  color:          var(--text);
}

.logo-name span {
  background:              linear-gradient(135deg, #a78bfa, #7c5cfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions { display: flex; gap: 0.5rem; }

.nav-btn {
  background:    rgba(124, 92, 252, 0.1);
  border:        1px solid var(--border);
  color:         var(--accent2);
  padding:       6px 14px;
  border-radius: var(--radius-full);
  font-size:     0.72rem;
  font-weight:   600;
  cursor:        pointer;
  transition:    all var(--transition);
  font-family:   inherit;
}

.nav-btn:hover {
  background:    rgba(124, 92, 252, 0.2);
  border-color:  var(--accent);
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

.hero {
  padding:    1.4rem 1.2rem 0.7rem;
  text-align: center;
}

.hero-eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           0.4rem;
  background:    rgba(124, 92, 252, 0.12);
  border:        1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius-full);
  padding:       4px 14px;
  font-size:     0.7rem;
  font-weight:   600;
  color:         var(--accent2);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size:      1.8rem;
  font-weight:    900;
  line-height:    1.15;
  letter-spacing: -0.03em;
  margin-bottom:  0.5rem;
}

.hero h1 .grad {
  background:              linear-gradient(135deg, #c4b5fd 0%, #7c5cfc 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color:         var(--muted);
  font-size:     0.82rem;
  line-height:   1.6;
  margin-bottom: 1.2rem;
}

.hero-steps { display: flex; justify-content: center; }

.hero-step {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.25rem;
  flex:           1;
  max-width:      75px;
}

.hero-step-icon {
  width:         34px;
  height:        34px;
  background:    var(--bg3);
  border:        1px solid var(--border);
  border-radius: 10px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     0.9rem;
}

.hero-step-label {
  font-size:   0.58rem;
  color:       var(--muted);
  text-align:  center;
  line-height: 1.3;
}

.hero-step-arrow {
  color:        var(--border);
  font-size:    0.75rem;
  align-self:   center;
  margin:       0 0.1rem;
  padding-bottom: 8px;
}

/* ----------------------------------------------------------
   TRUST CARDS
   ---------------------------------------------------------- */

.trust-row {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   0.5rem;
  padding:               0.6rem 1.2rem 1rem;
}

.trust-card {
  background:  linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(15, 15, 28, 0.8));
  border:      1px solid var(--border);
  border-radius: var(--radius);
  padding:     0.8rem 0.7rem;
  display:     flex;
  align-items: center;
  gap:         0.6rem;
  transition:  border-color var(--transition);
}

.trust-card:hover { border-color: rgba(124, 92, 252, 0.3); }

.trust-icon  { font-size: 1.25rem; flex-shrink: 0; }
.trust-title { font-size: 0.72rem; font-weight: 700; }
.trust-sub   { font-size: 0.6rem;  color: var(--muted); }

/* ----------------------------------------------------------
   SECTION HEADER
   ---------------------------------------------------------- */

.section { padding: 0 1.2rem 1.2rem; }

.section-head {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  margin-bottom: 0.85rem;
}

.section-label {
  font-size:      0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--muted);
  font-weight:    600;
  white-space:    nowrap;
}

.section-line { flex: 1; height: 1px; background: var(--border); }

/* ----------------------------------------------------------
   CONTACT BAR
   ---------------------------------------------------------- */

.contact-bar {
  background:      var(--bg2);
  border-top:      1px solid var(--border);
  padding:         1rem 1.2rem;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}

.cb-info strong { display: block; font-size: 0.77rem; font-weight: 700; }
.cb-info span   { font-size: 0.63rem; color: var(--muted); }

.cb-wa {
  background:    linear-gradient(135deg, #25d366, #1da851);
  color:         #fff;
  border:        none;
  border-radius: var(--radius-full);
  padding:       7px 16px;
  font-size:     0.74rem;
  font-weight:   700;
  cursor:        pointer;
  font-family:   inherit;
  text-decoration: none;
  display:       inline-block;
  transition:    all var(--transition);
}

.cb-wa:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); }

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

footer {
  background:  var(--bg2);
  border-top:  1px solid var(--border);
  padding:     1.1rem;
  text-align:  center;
}

.footer-links {
  display:         flex;
  justify-content: center;
  gap:             1.4rem;
  margin-bottom:   0.5rem;
  flex-wrap:       wrap;
}

.footer-links a {
  color:           var(--muted);
  font-size:       0.7rem;
  text-decoration: none;
  cursor:          pointer;
  transition:      color var(--transition);
}

.footer-links a:hover { color: var(--accent2); }

.footer-copy       { font-size: 0.62rem; color: var(--muted); }
.footer-copy span  { color: var(--accent2); }

/* ----------------------------------------------------------
   TOAST
   ---------------------------------------------------------- */

#nyx-toast {
  position:      fixed;
  bottom:        1.5rem;
  right:         1rem;
  background:    var(--bg2);
  border:        1px solid var(--border);
  border-radius: 12px;
  padding:       0.7rem 1rem;
  font-size:     0.78rem;
  font-weight:   500;
  color:         var(--text);
  display:       none;
  align-items:   center;
  gap:           0.5rem;
  z-index:       9999;
  box-shadow:    0 4px 20px rgba(0, 0, 0, 0.4);
  max-width:     280px;
}

#nyx-toast.toast-success { border-color: rgba(34, 197, 94, 0.4); }
#nyx-toast.toast-error   { border-color: rgba(239, 68, 68, 0.4); }

/* ----------------------------------------------------------
   PULSE DOT
   ---------------------------------------------------------- */

.pulse-dot {
  width:         7px;
  height:        7px;
  background:    #22c55e;
  border-radius: 50%;
  display:       inline-block;
  animation:     pulse 2s ease-in-out infinite;
}

/* ----------------------------------------------------------
   MOBILE RESPONSIVE
   ---------------------------------------------------------- */

/* Small phones (< 380px) */
@media (max-width: 380px) {
  nav { padding: 0.7rem 0.9rem; }
  .logo-name { font-size: 1.05rem; }
  .hero h1   { font-size: 1.5rem; }
  .hero p    { font-size: 0.78rem; }
  .hero-step { max-width: 60px; }
  .hero-step-label { font-size: 0.52rem; }
  .section { padding: 0 0.9rem 1rem; }
  .trust-row { padding: 0.5rem 0.9rem 0.8rem; gap: 0.4rem; }
  #nyx-toast { right: 0.5rem; left: 0.5rem; max-width: none; }
}

/* Tablets and up (≥ 600px) — wider layout */
@media (min-width: 600px) {
  nav { padding: 1rem 1.8rem; }
  .hero { padding: 2rem 1.8rem 1rem; }
  .hero h1 { font-size: 2.4rem; }
  .trust-row { grid-template-columns: repeat(4, 1fr); padding: 0.8rem 1.8rem 1.2rem; }
  .section { padding: 0 1.8rem 1.4rem; }
  .slider-wrap { margin: 0 1.8rem 1.4rem; }
  #banner-slider { height: 220px; }
  .contact-bar { padding: 1.2rem 1.8rem; }
  .uid-section { padding: 0 1.8rem 1.2rem; }
  .pay-wrap    { padding: 0 1.8rem 2rem; }
  .confirm-page,
  .track-page,
  .admin-page  { padding: 2rem 1.8rem; }
}

/* Desktop (≥ 900px) — centered max-width container */
@media (min-width: 900px) {
  .wrap { max-width: 480px; margin: 0 auto; }
  nav   { max-width: 480px; margin: 0 auto; left: 0; right: 0; }
  body  { background: #040408; }
  .wrap { box-shadow: 0 0 60px rgba(124, 92, 252, 0.08); background: var(--bg); }
}
