/* ============================================================
   Magical Spin — Split-Screen Magic / Magical Glass UI
   Color Palette 3: Dark Purple + Neon Magenta + Glowing Gold
   Prefix: .mgs-
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --mgs-bg-dark: #0D0514;
  --mgs-bg-purple-deep: #1D0B2B;
  --mgs-bg-purple-mid: #2A1040;
  --mgs-bg-purple-light: #3B1454;
  --mgs-magenta: #D400FF;
  --mgs-magenta-glow: rgba(212, 0, 255, 0.4);
  --mgs-gold: #FFD700;
  --mgs-gold-glow: rgba(255, 215, 0, 0.35);
  --mgs-white: #FFFFFF;
  --mgs-lilac: #D4C4E8;
  --mgs-lilac-light: #E8DFF5;
  --mgs-text: #C9B8E0;
  --mgs-text-muted: #8B7AAA;
  --mgs-glass-bg: rgba(59, 20, 84, 0.35);
  --mgs-glass-border: rgba(212, 0, 255, 0.18);
  --mgs-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --mgs-radius: 16px;
  --mgs-radius-sm: 10px;
  --mgs-radius-xs: 6px;
  --mgs-font-display: 'Cinzel', Georgia, serif;
  --mgs-font-body: 'Outfit', system-ui, sans-serif;
  --mgs-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mgs-max-width: 900px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--mgs-magenta) var(--mgs-bg-purple-deep);
}

body {
  font-family: var(--mgs-font-body);
  background: var(--mgs-bg-dark);
  color: var(--mgs-text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--mgs-bg-purple-deep); }
::-webkit-scrollbar-thumb { background: var(--mgs-bg-purple-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--mgs-magenta); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--mgs-font-display);
  color: var(--mgs-white);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--mgs-magenta);
  text-decoration: none;
  transition: color var(--mgs-transition);
}
a:hover { color: var(--mgs-gold); }

strong { color: var(--mgs-lilac-light); }
img { max-width: 100%; display: block; }

/* --- Utility --- */
.mgs-container {
  width: 100%;
  max-width: var(--mgs-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mgs-section {
  padding: 3rem 0;
  position: relative;
}

.mgs-section + .mgs-section {
  border-top: 1px solid rgba(212, 0, 255, 0.08);
}

/* Glass Card */
.mgs-glass {
  background: var(--mgs-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--mgs-glass-border);
  border-radius: var(--mgs-radius);
  box-shadow: var(--mgs-glass-shadow);
}

/* --- CTA Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--mgs-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--mgs-transition);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--mgs-gold), #FFC200, #FFE066);
  color: #1D0B2B;
  box-shadow: 0 0 20px var(--mgs-gold-glow), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px var(--mgs-gold-glow), 0 6px 25px rgba(0,0,0,0.4);
  color: #1D0B2B;
}

.btn-magenta {
  background: linear-gradient(135deg, var(--mgs-magenta), #A000CC);
  color: var(--mgs-white);
  box-shadow: 0 0 18px var(--mgs-magenta-glow);
}
.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--mgs-magenta-glow);
  color: var(--mgs-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--mgs-magenta);
  color: var(--mgs-magenta);
}
.btn-outline:hover {
  background: var(--mgs-magenta);
  color: var(--mgs-white);
}

.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
}

/* Pulse animation for hero CTA */
@keyframes mgs-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--mgs-gold-glow), 0 4px 15px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 40px var(--mgs-gold-glow), 0 0 60px rgba(255,215,0,0.2), 0 4px 15px rgba(0,0,0,0.3); }
}

.mgs-pulse { animation: mgs-pulse 2s ease-in-out infinite; }

/* ============================================================
   HEADER
   ============================================================ */
.mgs-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 5, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 0, 255, 0.12);
  transition: background var(--mgs-transition);
}

.mgs-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mgs-logo {
  font-family: var(--mgs-font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--mgs-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mgs-logo span { color: var(--mgs-magenta); }
.mgs-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--mgs-magenta), var(--mgs-gold));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mgs-nav { display: flex; align-items: center; gap: 0; }

.mgs-nav-link {
  color: var(--mgs-lilac);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--mgs-radius-xs);
  transition: all var(--mgs-transition);
  position: relative;
}
.mgs-nav-link:hover { color: var(--mgs-white); background: rgba(212, 0, 255, 0.1); }

/* Dropdown */
.mgs-dropdown { position: relative; }
.mgs-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--mgs-bg-purple-mid);
  border: 1px solid var(--mgs-glass-border);
  border-radius: var(--mgs-radius-sm);
  padding: 0.5rem 0;
  box-shadow: var(--mgs-glass-shadow);
  z-index: 100;
}
.mgs-dropdown:hover .mgs-dropdown-menu { display: block; }
.mgs-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--mgs-lilac);
  font-size: 0.85rem;
}
.mgs-dropdown-menu a:hover {
  background: rgba(212, 0, 255, 0.1);
  color: var(--mgs-white);
}

.mgs-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Burger */
.mgs-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.mgs-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mgs-white);
  border-radius: 2px;
  transition: all var(--mgs-transition);
}

/* Mobile nav */
.mgs-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 5, 20, 0.97);
  z-index: 999;
  padding: 80px 2rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mgs-mobile-nav.active { display: flex; }
.mgs-mobile-nav a {
  color: var(--mgs-lilac);
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 0, 255, 0.08);
}
.mgs-mobile-nav a:hover { color: var(--mgs-gold); }

/* ============================================================
   HERO — Split-Screen Magic
   ============================================================ */
.mgs-hero {
  padding-top: 64px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left sticky panel */
.mgs-sticky-offer {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 30% 40%, var(--mgs-bg-purple-light), var(--mgs-bg-purple-deep) 70%);
  overflow: hidden;
}

.mgs-sticky-offer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--mgs-magenta-glow) 0%, transparent 50%);
  opacity: 0.3;
  animation: mgs-rotate-glow 20s linear infinite;
}

@keyframes mgs-rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mgs-sticky-inner {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.mgs-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--mgs-magenta), #A000CC);
  color: var(--mgs-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.mgs-hero-logo-text {
  font-family: var(--mgs-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mgs-white);
  margin-bottom: 0.5rem;
}
.mgs-hero-logo-text span { color: var(--mgs-magenta); }

.mgs-hero-bonus-big {
  font-family: var(--mgs-font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--mgs-gold), #FFC200, #FFE066, var(--mgs-gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mgs-shimmer 3s ease-in-out infinite;
}

@keyframes mgs-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mgs-hero-spins {
  font-family: var(--mgs-font-display);
  font-size: 1.3rem;
  color: var(--mgs-gold);
  margin-bottom: 0.5rem;
}

.mgs-hero-subtitle {
  font-size: 0.95rem;
  color: var(--mgs-lilac);
  margin-bottom: 2rem;
}

.mgs-hero-terms {
  font-size: 0.72rem;
  color: var(--mgs-text-muted);
  margin-top: 1rem;
}

/* Right scroll panel */
.mgs-scroll-content {
  background: var(--mgs-bg-dark);
  padding: 2rem 2.5rem;
  min-height: 100%;
}

/* ============================================================
   CATEGORIES BAR
   ============================================================ */
.mgs-categories {
  padding: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mgs-categories-inner {
  display: flex;
  gap: 0.5rem;
  min-width: max-content;
}

.mgs-pill {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mgs-lilac);
  background: rgba(59, 20, 84, 0.4);
  border: 1px solid rgba(212, 0, 255, 0.12);
  border-radius: 50px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--mgs-transition);
}
.mgs-pill:hover, .mgs-pill.active {
  background: var(--mgs-magenta);
  color: var(--mgs-white);
  border-color: var(--mgs-magenta);
}

/* ============================================================
   CONTENT SECTIONS (inside scroll column & below hero)
   ============================================================ */
.mgs-content-area {
  max-width: var(--mgs-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mgs-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.mgs-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--mgs-magenta), var(--mgs-gold));
  border-radius: 2px;
}

/* Ordered / Unordered lists */
.mgs-section ol, .mgs-section ul {
  margin: 1rem 0 1.25rem 1.5rem;
}
.mgs-section li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.mgs-section ol li::marker { color: var(--mgs-magenta); font-weight: 700; }
.mgs-section ul li::marker { color: var(--mgs-gold); }

/* --- Bonus Cards --- */
.mgs-bonus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.mgs-bonus-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--mgs-transition);
}
.mgs-bonus-card:hover { transform: translateY(-4px); }

.mgs-bonus-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(212, 0, 255, 0.2), rgba(255, 215, 0, 0.15));
}

.mgs-bonus-card h3 {
  font-family: var(--mgs-font-display);
  color: var(--mgs-gold);
  font-size: 1rem;
}
.mgs-bonus-card p { font-size: 0.88rem; color: var(--mgs-text); }

/* --- Tables --- */
.mgs-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--mgs-radius-sm);
  border: 1px solid var(--mgs-glass-border);
}

.mgs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mgs-table th {
  background: var(--mgs-bg-purple-mid);
  color: var(--mgs-lilac-light);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.mgs-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(212, 0, 255, 0.06);
  color: var(--mgs-text);
}
.mgs-table tbody tr:hover { background: rgba(212, 0, 255, 0.05); }

/* --- FAQ --- */
.mgs-faq-list { margin-top: 1rem; }
.mgs-faq-list dt {
  font-weight: 600;
  color: var(--mgs-lilac-light);
  padding: 0.85rem 0 0.35rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 0, 255, 0.08);
}
.mgs-faq-list dt::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--mgs-magenta);
  transition: transform var(--mgs-transition);
}
.mgs-faq-list dt.open::after { content: '−'; }
.mgs-faq-list dd {
  display: none;
  padding: 0.75rem 0 1rem;
  color: var(--mgs-text);
  font-size: 0.92rem;
  line-height: 1.7;
}
.mgs-faq-list dd.open { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.mgs-footer {
  background: var(--mgs-bg-purple-deep);
  border-top: 1px solid rgba(212, 0, 255, 0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.mgs-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.mgs-footer-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mgs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--mgs-lilac);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(212, 0, 255, 0.15);
  border-radius: 50px;
}

.mgs-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mgs-footer-links a {
  color: var(--mgs-text-muted);
  font-size: 0.82rem;
}
.mgs-footer-links a:hover { color: var(--mgs-magenta); }

.mgs-footer-disclaimer {
  font-size: 0.78rem;
  color: var(--mgs-text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.mgs-footer-copy {
  font-size: 0.75rem;
  color: var(--mgs-text-muted);
  opacity: 0.7;
}

/* ============================================================
   MODAL (Terms, Privacy, Wheel)
   ============================================================ */
.mgs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.mgs-modal-overlay.active { display: flex; }

.mgs-modal {
  background: var(--mgs-bg-purple-deep);
  border: 1px solid var(--mgs-glass-border);
  border-radius: var(--mgs-radius);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.mgs-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(212, 0, 255, 0.15);
  border: none;
  color: var(--mgs-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--mgs-transition);
}
.mgs-modal-close:hover { background: var(--mgs-magenta); }

.mgs-modal h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.mgs-modal h3 { font-size: 1.05rem; color: var(--mgs-lilac-light); margin-top: 1.25rem; }
.mgs-modal p, .mgs-modal li { font-size: 0.88rem; color: var(--mgs-text); }
.mgs-modal ul { margin: 0.5rem 0 1rem 1.25rem; }

/* Wheel modal special */
#wheel-modal .mgs-modal {
  text-align: center;
  max-width: 480px;
  padding: 2.5rem;
}
#wheel-modal .mgs-modal-promo-text {
  font-family: var(--mgs-font-display);
  font-size: 1.5rem;
  color: var(--mgs-gold);
  margin-bottom: 0.75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mgs-hero {
    grid-template-columns: 1fr;
  }
  .mgs-sticky-offer {
    position: relative;
    top: auto;
    height: auto;
    padding: 4rem 2rem 3rem;
    min-height: 70vh;
  }
  .mgs-scroll-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .mgs-nav { display: none; }
  .mgs-nav-actions .btn { display: none; }
  .mgs-burger { display: flex; }

  .mgs-bonus-cards {
    grid-template-columns: 1fr;
  }

  .mgs-sticky-offer {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .mgs-hero-bonus-big {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .mgs-section {
    padding: 2rem 0;
  }

  .mgs-modal {
    padding: 1.5rem;
    margin: 1rem;
  }

  .mgs-table { font-size: 0.8rem; }
  .mgs-table th, .mgs-table td { padding: 0.5rem 0.7rem; }
}

@media (max-width: 480px) {
  .mgs-header-inner { height: 56px; }
  .mgs-logo { font-size: 1.1rem; }
  .mgs-hero-bonus-big { font-size: 2.5rem; }
  .mgs-pill { font-size: 0.75rem; padding: 0.4rem 0.85rem; }
}

/* --- Animations --- */
@keyframes mgs-fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.mgs-animate {
  opacity: 0;
  animation: mgs-fade-in-up 0.6s ease forwards;
}

.mgs-delay-1 { animation-delay: 0.1s; }
.mgs-delay-2 { animation-delay: 0.2s; }
.mgs-delay-3 { animation-delay: 0.3s; }
.mgs-delay-4 { animation-delay: 0.4s; }

/* Sparkle particles on hero (generated by JS) */
.mgs-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  animation: mgs-float 6s ease-in-out infinite;
}

@keyframes mgs-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}
