*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0e17;
  --bg-card: #121a2b;
  --bg-card-hover: #1a2540;
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --border: #1e2d4a;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* ── Top Links Bar (JS injected) ── */
.top-links-bar {
  background: linear-gradient(90deg, #0d1525, #151f35);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.top-links-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.top-links-bar a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.top-links-bar a:hover,
.top-links-bar a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
}

/* ── Header ── */
.site-header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(0, 212, 255, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Main Content ── */
main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ── */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  margin-left: 12px;
}

.btn-outline:hover { background: rgba(0, 212, 255, 0.1); color: #fff; }

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#hero-custom-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#hero-custom-btn .hero-custom-button {
  min-width: 200px;
}

.hero-default-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Sections ── */
.section {
  padding: 60px 20px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Game Cards ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 212, 255, 0.3);
}

.game-thumb {
  height: 180px;
  background: linear-gradient(135deg, #1a2540, #0d1525);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.game-card-body { padding: 20px; }

.game-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.game-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border-radius: 6px;
  margin-right: 6px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Content Pages ── */
.page-header {
  padding: 50px 20px 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.1), transparent);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.page-header p { color: var(--text-muted); }

.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.content-page h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--accent);
}

.content-page h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.content-page p, .content-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-page ul, .content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page li { margin-bottom: 6px; }

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── FAQ ── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

.faq-item.open .faq-question { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: #060a12;
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }

.business-trust {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.business-trust p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.business-trust strong { color: var(--text); }

.trust-notice {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-notice strong { color: var(--success); }

.trust-bar {
  background: #0d1525;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-bar strong { color: var(--text); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.info-table th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  width: 35%;
}

.info-table td { color: var(--text-muted); }

.business-glance {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.glance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.glance-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.glance-card p {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 200px;
}

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-buttons .btn { padding: 10px 20px; font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; }

  .main-nav a { display: block; padding: 12px; }

  .hero { padding: 50px 20px 40px; }

  .hero-default-btns {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-default-btns .btn {
    width: 100%;
    margin-left: 0;
  }

  #hero-custom-btn .hero-custom-button {
    width: 100%;
    min-width: 0;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
    display: block;
  }

  .top-links-bar a {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
