:root {
  --bg-midnight: #070e1b;
  --bg-header: #0b172a;
  --bg-card: #0d1a2d;
  --bg-card-elevated: #13243f;
  --bg-gradient-hero: linear-gradient(135deg, #0f213d 0%, #071224 100%);
  --accent-orange: #ff5e00;
  --accent-orange-hover: #ff7a24;
  --accent-orange-glow: rgba(255, 94, 0, 0.45);
  --accent-cyan: #00d9ff;
  --accent-gold: #ffc700;
  --text-primary: #ffffff;
  --text-secondary: #a2b5d0;
  --border-blue: rgba(0, 180, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --max-width: 1120px;
}

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

body {
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(0, 180, 255, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 94, 0, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(180deg, var(--bg-midnight) 0%, #03060d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 3rem;
}

/* Site Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Logo styles from validator fix */
.logo img {
  max-height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.header-logo-badge {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-register {
  background: linear-gradient(135deg, #ff5e00 0%, #ff8800 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.6);
}

/* Main Content Sections Fix */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  width: calc(100% - 2rem);
}

/* Hero Banner Style */
.hero-banner {
  background: var(--bg-gradient-hero);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 94, 0, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* All Headings Centered */
.general-h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.general-h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
}

.general-h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 1.5rem 0 0.85rem;
  text-align: center;
}

.hero-banner .general-p {
  font-size: 1.05rem;
  color: #b0c4de;
  margin-bottom: 1.75rem;
  max-width: 95ch;
  margin-left: auto;
  margin-right: auto;
}

/* Centered Hero Mirror Button */
.hero-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5e00 0%, #ff8800 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px var(--accent-orange-glow);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 94, 0, 0.6);
}

/* Framed Box for H4 APK Section */
.apk-framed-box {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.06) 0%,
    rgba(13, 26, 45, 0.95) 100%
  );
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.08);
}

.general-h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.general-p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 0.975rem;
  line-height: 1.68;
}

.general-p:last-child {
  margin-bottom: 0;
}

/* Section Panels */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Clean Unordered Lists */
.general-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding-left: 0;
  display: grid;
  gap: 0.65rem;
}

ul.general-list li {
  position: relative;
  background: rgba(7, 14, 27, 0.6);
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.95rem;
}

ul.general-list li::before {
  content: "★";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 0.8rem;
}

/* Clean Ordered Lists */
ol.general-list {
  counter-reset: step-counter;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

ol.general-list li {
  counter-increment: step-counter;
  position: relative;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.85rem 3.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

ol.general-list li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(0, 217, 255, 0.12);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Slots Provider Cards Grid */
.slots-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 1.35rem 0;
}

.provider-card {
  background: linear-gradient(145deg, #12243e 0%, #091425 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.provider-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.provider-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 199, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

.provider-slots-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.provider-slots-list li {
  font-size: 0.925rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.25rem;
}

.provider-slots-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--accent-orange);
  font-size: 1.1rem;
  line-height: 1;
}

/* Tournaments Grid */
ul.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

ul.tournaments-grid li {
  background: linear-gradient(145deg, #132542 0%, #091424 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

ul.tournaments-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

/* Bonus Cards Grid */
ul.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

ul.bonuses-grid li {
  background: linear-gradient(
    135deg,
    rgba(255, 94, 0, 0.12) 0%,
    rgba(19, 34, 58, 0.95) 100%
  );
  border: 1px solid rgba(255, 94, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

/* iGaming Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-blue);
  background: var(--bg-card-elevated);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.general-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  min-width: 480px;
}

.general-table th,
.general-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.general-table th {
  background: #081120;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(0, 180, 255, 0.25);
}

.general-table tr:last-child td {
  border-bottom: none;
}

.general-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.general-table tr:hover {
  background: rgba(0, 217, 255, 0.04);
}

.general-table th[scope="row"] {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  width: 35%;
}

/* FAQ Collapsible Cards */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.12);
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent-orange);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-cyan);
}

.faq-content {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}

.faq-content .general-p {
  margin-top: 0.85rem;
  color: var(--text-secondary);
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: #637898;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
  .header-container {
    padding: 0.65rem 0.75rem;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .btn-login,
  .btn-register {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
  }

  .section {
    width: calc(100% - 1rem);
  }

  .hero-banner {
    padding: 1.5rem 1rem;
  }

  .hero-cta-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .content-section {
    padding: 1.15rem;
    margin-bottom: 1.15rem;
  }

  .slots-provider-grid,
  ul.tournaments-grid,
  ul.bonuses-grid {
    grid-template-columns: 1fr;
  }

  ul.general-list li {
    padding: 0.65rem 0.85rem 0.65rem 2rem;
    font-size: 0.9rem;
  }

  ol.general-list li {
    padding: 0.75rem 0.85rem 0.75rem 2.85rem;
    font-size: 0.9rem;
  }

  .faq-item summary {
    padding: 0.95rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 1.15rem 0.95rem;
  }

  .general-table th,
  .general-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
}

@media prefers-reduced-motion: reduce {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
