@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cinzel:wght@400;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg:           #080810;
  --surface:      #10101e;
  --surface2:     #181828;
  --ink:          #f0edff;
  --ink2:         #8a84b0;
  --accent:       #9f7aea;
  --accent2:      #f6a623;
  --accent3:      #e85d9a;
  --accent-light: #1e1635;
  --gold:         #f6a623;
  --danger:       #f87171;
  --success:      #34d399;
  --border:       #1e1c35;
  --border2:      #2a2750;
  --radius:       14px;
  --max-w:        860px;
  --nav-h:        62px;
}

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

/* ─── PHOENIX BACKGROUND ─── */
body {
  background-color: var(--bg);
  background-image:
    /* Stars top */
    radial-gradient(1px 1px at 15% 8%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 12%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 3%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    /* Phoenix purple/blue aura — top left */
    radial-gradient(ellipse 70% 55% at -5% -5%, rgba(100,60,200,0.55) 0%, rgba(80,40,160,0.3) 35%, transparent 65%),
    /* Phoenix orange/fire — bottom right */
    radial-gradient(ellipse 65% 50% at 105% 105%, rgba(220,100,20,0.5) 0%, rgba(180,60,10,0.25) 35%, transparent 65%),
    /* Mid fire glow center-right */
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(200,80,30,0.2) 0%, transparent 60%),
    /* Deep blue wing shimmer — left mid */
    radial-gradient(ellipse 35% 40% at -2% 55%, rgba(60,80,220,0.22) 0%, transparent 60%),
    /* Subtle pink center */
    radial-gradient(ellipse 50% 30% at 50% 45%, rgba(160,50,130,0.08) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(100,60,200,0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  box-shadow: 0 1px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(159,122,234,0.4);
}
.nav-logo span {
  background: linear-gradient(135deg, #9f7aea, #f6a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 0.2rem; list-style: none; }
.nav-links a {
  color: var(--ink2); text-decoration: none;
  font-size: 0.83rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 8px;
  transition: all 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); background: rgba(159,122,234,0.08); }
.nav-links a.active {
  background: rgba(159,122,234,0.12); color: var(--accent); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(159,122,234,0.2);
}
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.store-pill {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; padding: 0.28rem 0.75rem;
  border-radius: 100px;
  background: rgba(52,211,153,0.1); color: var(--success);
  border: 1px solid rgba(52,211,153,0.2);
  transition: all 0.2s;
}
.store-pill.closed { background: rgba(248,113,113,0.1); color: var(--danger); border-color: rgba(248,113,113,0.2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.btn-wa {
  display: flex; align-items: center; gap: 0.35rem;
  background: linear-gradient(135deg, #6d28d9, #9f7aea);
  color: #fff; text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.38rem 1rem; border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 14px rgba(109,40,217,0.35);
  letter-spacing: 0.01em;
}
.btn-wa:hover { box-shadow: 0 4px 20px rgba(109,40,217,0.5); transform: translateY(-1px); }

/* ─── LAYOUT ─── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 1.5rem 5rem;
}

/* ─── CLOSED BANNER ─── */
#closed-banner {
  display: none;
  background: linear-gradient(135deg, #7c2020, #991b1b);
  color: #fff; text-align: center;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.45rem 1rem;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90;
  border-bottom: 1px solid rgba(248,113,113,0.3);
}

/* ─── PAGE HEADER ─── */
.page-header { margin-bottom: 2.5rem; }
.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600; line-height: 1.25;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f0edff 0%, #c4b5fd 40%, #f6a623 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header p { color: var(--ink2); font-size: 0.9rem; line-height: 1.7; }
.page-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(159,122,234,0.1); color: var(--accent);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.22rem 0.75rem; border-radius: 100px; margin-bottom: 0.75rem;
  border: 1px solid rgba(159,122,234,0.2);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 0.62rem 1.35rem; border-radius: 10px;
  border: none; cursor: pointer; transition: all 0.18s;
  text-decoration: none; letter-spacing: 0.01em;
}
.btn-accent {
  background: linear-gradient(135deg, #6d28d9, #9f7aea);
  color: #fff; box-shadow: 0 4px 22px rgba(109,40,217,0.4);
}
.btn-accent:hover { box-shadow: 0 6px 28px rgba(109,40,217,0.6); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--ink2);
  border: 1px solid var(--border2); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--ink); border-color: rgba(159,122,234,0.3); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.78rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; padding: 0.85rem; font-size: 0.93rem; }

/* ─── CARDS ─── */
.card {
  background: rgba(16,16,30,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.card:hover { border-color: rgba(159,122,234,0.3); box-shadow: 0 6px 30px rgba(0,0,0,0.3); }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--ink2); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
input, select, textarea {
  width: 100%; background: rgba(24,24,40,0.9);
  border: 1.5px solid var(--border2);
  border-radius: 10px; padding: 0.65rem 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; color: var(--ink); outline: none;
  transition: all 0.18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); background: rgba(159,122,234,0.06);
  box-shadow: 0 0 0 3px rgba(159,122,234,0.12);
}
textarea { resize: vertical; min-height: 70px; }

/* ─── MODAL ─── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(4,4,12,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.overlay.open { display: flex; animation: fadeIn 0.18s ease; }
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 20px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.modal-close {
  background: var(--surface2); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 0.95rem; color: var(--ink2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--border2); color: var(--danger); }
.modal-body { padding: 1.4rem; }

/* ─── TOGGLE SWITCH ─── */
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--border2); border-radius: 100px; cursor: pointer; transition: background 0.2s;
}
.toggle-track::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; top: 3px; left: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.toggle input:checked ~ .toggle-track { background: linear-gradient(135deg, #6d28d9, #9f7aea); }
.toggle input:checked ~ .toggle-track::after { transform: translateX(18px); }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(159,122,234,0.12);
  color: var(--ink2); font-size: 0.8rem;
  background: rgba(6,6,14,0.6);
}
footer strong {
  background: linear-gradient(135deg, #9f7aea, #f6a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 700;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(18px);opacity:0} to{transform:translateY(0);opacity:1} }
.fade-up { opacity:0; transform:translateY(18px); animation: slideUp 0.45s ease forwards; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .page-wrap { padding: calc(var(--nav-h) + 1.5rem) 1rem 3rem; }
}
