/* Updated to dim purple theme */
:root {
  --bg: #2a2438;          /* dark purple background */
  --bg-soft: #3e354d;     /* softer dark purple */
  --text: #e4e1f0;        /* light text */
  --muted: #a89bbf;       /* muted lavender */
  --accent: #9d4edd;      /* vibrant purple */
  --accent-2: #c084fc;    /* soft violet */
  --accent-3: #d8b4fe;    /* pastel violet */
  --card: #3b3054;        /* card background */
  --link: #d8b4fe;        /* pastel violet link */
  --bg-light: #44375e;    /* slightly lighter purple */
  --bg-dark: #241b33;     /* deep purple */
  --text-light: #b3a6d1;  /* muted light text */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif; /* Updated font shape and design */
  color: var(--text);
  background-color: var(--bg-light); /* Match the main background color to the hero page */
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(157,78,221,0.06), transparent),
    radial-gradient(800px 380px at 110% 10%, rgba(192,132,252,0.04), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Push Content Down */
main {
  padding-top: 100px;
  background-color: var(--bg-light); /* Match the background color between header and hero section to the hero section */
}

/* Nav */
.header {
  position: static; /* Make the header behave like a normal block element */
  top: 0;
  left: 0;
  transform: none; /* Remove the floating effect */
  width: 100%; /* Ensure the header spans the full width of the screen */
  border-radius: 0; /* Remove rounded corners */
  box-shadow: none; /* Remove the floating shadow */
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid rgba(102,51,153,0.08);
  padding: 10px 22px;
  z-index: 1000;
}
.header .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.header .nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 14px;
  transition: background-color 0.18s ease, transform 0.12s ease;
  background-color: transparent;
}
.header .nav a:hover {
  background-color: rgba(255,255,255,0.1);
}
.header .nav a.active {
  background-color: transparent; /* remove active background */
  color: #fff;                   /* keep header text white */
  box-shadow: none;              /* remove any shadow/highlight */
  font-weight: 600;              /* keep readable weight */
}
/* ensure hover still subtle but not identical to active */
.header .nav a:hover {
  background-color: rgba(8, 55, 77, 0.06);
  color: #ffffff;
}
/* also prevent .nav generic rule from forcing link color change for .active elsewhere */
.nav a.active { color: inherit; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: 0.3px; color: #fff; text-decoration: none;
}
.brand-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), conic-gradient(from 160deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 4px 18px rgba(86,28,139,0.12);
}
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav .links { display: flex; gap: 18px; }
.nav a:hover, .nav a.active { color: var(--link); }

/* --- HERO (attractive, moved from inline) --- */
.hero {
  /* Enhanced background with multiple gradients */
  background: 
    radial-gradient(circle at 80% 10%, rgba(157,78,221,0.4), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(192,132,252,0.3), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(216,180,254,0.2), transparent 70%),
    var(--bg-dark);
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
  margin-top: -50px; /* Push the hero content upwards */
  border-bottom: 2px solid rgba(157,78,221,0.3);
}
.hero .hero-decor{
  position: absolute;
  right: -80px;
  top: -60px;
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle at 30% 30%, rgba(167,139,250,0.25), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(109,40,217,0.20), transparent 35%);
  filter: blur(30px);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
}
.hero .container.inner {
  display: grid;
  grid-template-columns: 1fr; /* Full width for content since we removed the image */
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 24px;
  justify-content: center;
}
.hero-badge-img { width:64px; height:64px; border-radius:12px; box-shadow:0 10px 30px rgba(15,45,80,0.06); display:block; }
.hero-badge .site-name { font-size:1.35rem; font-weight:900; color:#fff; letter-spacing:0.01em; }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--accent-3);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text);
  font-size: 1.2rem;
  max-width: 70ch;
  margin: 0 auto 30px;
  line-height: 1.7;
  text-align: center;
  font-weight: 400;
}
.hero-ctas { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  margin-bottom: 16px;
  justify-content: center;
}
.btn-play {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color:#fff;
  border:0;
  padding:1rem 1.6em;
  border-radius:14px;
  font-weight:800;
  box-shadow:0 12px 30px rgba(86,28,139,0.12);
  text-decoration:none;
  font-size:1.03rem;
}
.btn-soft { background:transparent; border:1px solid rgba(15,45,80,0.08); padding:0.65em 1.1em; border-radius:10px; text-decoration:none; color:inherit; }
.hero-flag {
  color: var(--muted);
  font-weight: 600;
}
.hero-flag { 
  display: flex; 
  gap: 16px; 
  margin-top: 20px; 
  align-items: center; 
  flex-wrap: wrap;
  justify-content: center;
}
.pill { background:#fff; padding:10px 14px; border-radius:999px; box-shadow:0 8px 30px rgba(86,28,139,0.06); font-weight:800; color:var(--accent); }
/* Removed .hero-visual img styles since we removed the image */

/* responsive */
@media (max-width:900px){
  .hero { padding: clamp(40px, 6vw, 80px) 0; }
  .hero .hero-decor { display:none; }
}
/* ensure hero buttons inherit site btn styles where needed */
.btn { display:inline-flex; align-items:center; justify-content:center; }

/* --- end hero --- */

/* Optional images */
.media-frame { border: 1px dashed rgba(2,6,23,0.12); border-radius: 14px; padding: 10px; display: grid; place-items: center; min-height: 160px; background: var(--bg-soft); }
.media-frame img { max-width: 100%; height: auto; border-radius: 10px; }
.media-note { color: var(--muted); font-size: 12px; margin-top: 8px; text-align: center; }

/* Features */
.features { padding: 28px 0 10px; background: var(--bg-dark);}
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature {
  background: var(--card); border: 1px solid rgba(2,6,23,0.06);
  border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px;
}
.feature .ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(109,40,217,0.12); color: var(--text); }
.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Fix feature card paragraph stacking */
.features-grid,
.feature {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: var(--card);
  border-radius: 1em;
  padding: 1.2em;
  box-shadow: 0 2px 8px rgba(122, 200, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.feature h3 {
  color: var(--accent);
  font-size: 1.2em;
  font-weight: 700;
  margin: 0;
}
.feature p {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Feature Cards Hover Effect */
.features-grid .feature {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.features-grid .feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Padding for Feature Game Cards */
.features-grid .feature {
  padding-top: 20px;
}

/* Game embeds */
.games { padding: 22px 0 36px; }
.game-embed { display: grid; gap: 16px; }
.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto; /* Center align */
}
.game-frame iframe { width: 100%; height: 100%; border: 0; background: #000; display: block; }

/* Increase Spacing Between Game Screen and Feature Cards */
.game-embed + .features-grid {
  margin-top: 40px;
}

/* Content pages */
.section { padding: 36px 0; }
.section h2 {
  font-size: 2rem;
}
.section p, .section li { color: var(--muted); }

/* ===== ABOUT SECTION STYLES ===== */
#about {
  padding: 60px 0;
  background: var(--bg-dark);}

#about .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  
}

#about h2 {
  font-size: 2.2em;
  text-align: center;
  font-weight: 800;
  color: #2176ae;
  margin-bottom: 0.2em;
  border-bottom: 3px solid #7ac8ff;
  display: inline-block;
  padding-bottom: 0.2em;
  width: 100%;
}

#about p {
  font-size: 1.15em;
  margin-bottom: 1em;
  line-height: 1.6;
  color: var(--text);
}

#about p:nth-of-type(2) {
  color: var(--accent);
}
/* Footer */

/* ===== DISCLAIMER SECTION STYLES ===== */
#disclaimer {
  padding: 60px 0;
  background-color:var(--bg-dark);

}

#disclaimer .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

#disclaimer h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 1em;
  border-bottom: 3px solid var(--accent-2);
  display: inline-block;
  padding-bottom: 0.2em;
  width: 100%;
}

#disclaimer .legal-card {
  /* Remove card design */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

#disclaimer .legal-card p {
  font-size: 1.1em;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5em;
}

#disclaimer .btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.7em 1.5em;
  border-radius: 0.6em;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

#disclaimer .btn:hover {
  background-color: var(--accent-3);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 30px 18px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--accent); /* Add a line to separate the footer */
  font-size: 16px;
  margin-top: auto;
  text-align: center;
}
footer a {
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px;
}
footer a:hover {
  color: var(--bg-dark);
}
footer p {
  margin: 0;
  font-size: 15px;
  text-align: center;
}

.footer .disclaimer,
.footer .cols {
  text-align: center;
  margin: 30px 0;
}
.footer nav.links {
  margin-bottom: 30px;
}

/* Footer styling */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 28px 0 18px 0;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  box-shadow: 0 -10px 30px rgba(54,19,89,0.08);
}
.footer .brandline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.footer .brand {
  font-size: 1.1em;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer .links a {
  color: #fff;
  text-decoration: none;
  margin-right: 16px;
  font-weight: 700; /* Slightly bolder */
  opacity: 0.95;
}
.footer .links a:hover {
  opacity: 1;
  text-decoration: none;
}
.footer .disclaimer,
.footer .cols,
.footer small {
  color: rgba(255,255,255,0.95);
  font-size: 1em;
  font-weight: 600; /* Slightly bolder */
  opacity: 0.98;
}
.footer .grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Optional: Center footer elements vertically */
.footer .container > * {
  margin-bottom: 10px;
}

/* Scroll-Up Button */
.scroll-up-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.scroll-up-btn:hover {
  background: var(--accent-2);
}
.scroll-up-btn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background:var(--accent-3); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal { width: min(560px, 92%); background: #ffffff; border: 1px solid rgba(2,6,23,0.08); border-radius: 14px; padding: 18px; }
.modal h3 { margin: 0 0 6px; }
.modal p { margin: 6px 0 12px; color: var(--muted); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Contact Form */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, rgba(62,53,77,0.9), rgba(59,48,72,0.9));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}
.contact-form label {
  font-weight: 600;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
}
.contact-form textarea { min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.contact-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
}
.contact-form button:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* Contact Form Input Fields */
.contact-form input:required { background-color: #fff; }

/* Alternate Section Backgrounds */
/* Sections alternate lightly */
.section:nth-of-type(odd),
#featured-game { background-color: var(--bg-light); }
.section:nth-of-type(even) { background-color: #ffffff; }

/* Section Styling */
.section {
  padding: 40px 20px;
  text-align: center;
}

/* Headings */
.section h2 {
  font-size: 2.2em;
  text-align: center;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.2em;
  border-bottom: 3px solid var(--accent-2);
  display: inline-block;
  padding-bottom: 0.2em;
  width: 100%;
}

/* Paragraphs */
.section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Buttons */
.section .btn {
  display: inline-block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.section .btn:hover {
  background: var(--accent-2);
}

/* Featured Game Heading */
#featured-game h2 {
  font-size: 2rem;
  text-align: center;
}

/* Game Name Heading */
#featured-game h3 {
  text-align: center;
}

/* Disclaimer and About Section Headings */
#disclaimer h2,
#about h2 {
  font-size: 2rem;
  text-align: center;
}

/* Gradient Font Color for Section Headings */
.section h2, #home h1, #featured-game h2 {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Home Section Padding */
#home {
  padding-top: 100px;
}

/* Home Section Button Hover Effect */
#home .btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#home .btn:hover {
  background-color: var(--accent-2);
  transform: scale(1.05);
}

/* Sticky Footer */
main {
  flex: 1;
}

/* --- Legal pages styling --- */

/* --- Modern Centered Legal Card --- */
.legal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light) 80%, var(--accent-3) 100%);
  box-shadow: 0 4px 32px rgba(157,78,221,0.10);
  border-radius: 1.5em;
  padding: 2.5em 2em;
  margin: 3em auto;
  max-width: 650px;
  width: 100%;
  text-align: center;
  font-family: 'Poppins', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  color: var(--text);
  border: 2px solid var(--accent-2);
}
.legal-card h1 {
  color: var(--accent);
  font-size: 2.3em;
  margin-bottom: 0.8em;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
}
.legal-card h2 {
  color: var(--accent-2);
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
  text-align: center;
}
.legal-card ul {
  list-style: disc inside;
  margin: 1em 0 1em 0;
  padding: 0;
  text-align: left;
}
.legal-card li {
  margin-bottom: 0.7em;
  font-size: 1.08em;
  color: var(--text-light);
}
.legal-card p {
  font-size: 1.13em;
  margin-bottom: 1.2em;
  color: var(--text-light);
}
.legal-card strong {
  color: var(--accent);
}

@media (max-width: 700px) {
  .legal-card {
    padding: 1.2em 0.7em;
    max-width: 98vw;
  }
  .legal-card h1 {
    font-size: 1.5em;
  }
}

.about-section p {
  font-size: 1.15em;
  color: #234;
  margin-bottom: 1em;
  line-height: 1.6;
}
.about-section p.highlight {
  color: #2176ae;
}

.brand-centered {
  justify-content: center;
}

/* Responsive tweaks */
@media (min-width: 760px) {
  .hero .inner { grid-template-columns: 1.1fr 0.9fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .grid { grid-template-columns: 2fr 1fr; }
}

/* Responsive Header Adjustments */
@media (max-width: 768px) {
  .header {
    top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
  }
  .header .nav {
    flex-direction: column;
    gap: 10px;
  }
  .header .nav a {
    font-size: 14px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .header {
    top: 5px;
    padding: 6px 12px;
    border-radius: 15px;
  }
  .header .nav {
    flex-direction: column;
    gap: 8px;
  }
  .header .nav a {
    font-size: 12px;
    padding: 4px 6px;
  }
}

/* Responsive feature cards */
.features-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: var(--card);
  border-radius: 1em;
  padding: 1.2em;
  box-shadow: 0 2px 8px rgba(122, 200, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* Stack cards vertically on small screens */
@media (max-width: 800px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .feature {
    max-width: 95vw;
    width: 100%;
    margin-bottom: 0;
  }
}

/* Remove dark-only overrides for body/header/footer */

/* Game-frame must be positioned for overlay */
.game-frame { position: relative; overflow: hidden; }

.game-frame iframe {
  width: 100%;
  border: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
  background: transparent;
}

/* when JS sets .visible, iframe fades in */
.game-frame iframe.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease;
}

/* overlay contains only the loading icon, no opaque background */
.game-frame .loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* fully transparent so no screen fill */
  z-index: 30;
  transition: opacity .28s ease, visibility .28s;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.game-frame .loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* loading image styling */
.game-frame .loading-overlay img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,45,80,0.08);
  background: white;
  padding: 8px;
}

/* smaller screens */
@media (max-width:420px) {
  .game-frame .loading-overlay img { width: 72px; height: 72px; }
}

/* Ensure consistent background for all sections */
.section, html, body {
  background: var(--bg); /* Single shade of dark purple */
}

/* Modal Styles - New Design */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 27, 51, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal {
  background: linear-gradient(145deg, var(--bg-soft), var(--card));
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(157, 78, 221, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modal-backdrop.visible .modal {
  transform: scale(1);
}

.modal-backdrop.hidden .modal {
  transform: scale(0.9);
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 24px 24px 0 0;
}

.modal h3 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.modal p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  text-align: center;
}

.modal .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal .btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal .btn:not(.alt) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.modal .btn:not(.alt):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}

.modal .btn.alt {
  background: var(--bg-dark);
  color: var(--muted);
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.modal .btn.alt:hover {
  background: var(--bg-soft);
  color: var(--text-light);
  border-color: rgba(157, 78, 221, 0.3);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .modal {
    padding: 32px 24px;
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .modal .actions {
    flex-direction: column;
  }
  
  .modal .btn {
    width: 100%;
  }
}

/* Utilities */
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mt-0 { margin-top: 0; }
.m-0 { margin: 0; }
.text-left { text-align: left; }
.minh-120 { min-height: 120px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
