:root {
  --bg-main: #000000;
  --bg-surface: #02061788;
  --bg-card: #17212b;

  --border-soft: rgba(148, 163, 184, 0.15);
  --border-glass: rgba(255, 255, 255, 0.08);

  --text-main: #e5e7eb;
  --text-muted: #94a3b8;

  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --gold: #ffdf00;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 30px 80px rgba(56, 189, 248, 0.25);

  --blur-glass: blur(14px);
}

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

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =====================
   BASE
===================== */
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 24px 12px;
}

@media (max-width: 1024px) {
  .container {
    padding: 64px 12px 2px 12px;
  }
}

/* =====================
   HEADER (GLASS)
===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease;
  background-color: var(--bg-surface);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  box-shadow: var(--shadow-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}

.logo-com {
  color: var(--gold);
}

.dice {
  width: 100px;
}

/* =====================
   NAV
===================== */
.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.nav-dropdown-btn:hover {
  color: var(--accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);

  width: 1246px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;

  backdrop-filter: blur(50px);
  box-shadow: var(--shadow-soft);
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-30%) translateY(0);
}

/* =====================
   HERO
===================== */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-main {
  display: flex;
  gap: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 20px;
}

.hero-flag {
  width: 62px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.6px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-banner {
    display: none;
  }
}

/* =====================
   BANNERS
===================== */
.main-banner {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 40px;
  /* box-shadow: var(--shadow-hover);
  border-radius: var(--radius-lg); */
  margin-bottom: 20px;
}

.title-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  gap: 20px;
}

/* =====================
   CONTENT
===================== */

.intro {
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* =====================
   CARDS (PREMIUM)
===================== */

.cards-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  .casino-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.casino-card {
  display: flex;
  height: 300px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  gap: 8px;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (max-width: 768px) {
  .casino-card {
    padding: 10px;
  }
}

.casino-card img {
  max-width: 80%;
}

.card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}

.casino-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.casino-image {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.casino-card h3 {
  font-size: 20px;
}

.casino-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* =====================
   CTA
===================== */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  background: var(--gold);
  color: #020617;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.45);
}

/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 24px;
  background: rgba(2, 6, 23, 0.6);
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero p {
    font-size: 16px;
  }
}

.content {
  display: flex;
  flex-direction: column;
}

.content-article {
  margin-top: 32px;
  position: relative;
  padding: 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .content-article {
    margin-top: 22px;
    padding: 12px;
    border-radius: 0px;
  }
}

.content-article h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 20px;
  z-index: 100;
}

.content-article p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-list {
  color: var(--text-muted);
}

/* ===================== ALL COUNTRIES CLOUD ===================== */

.all-countries {
  margin-top: 20px;
}

.countries-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px;
  margin-top: 20px;
}

.countries-cloud a {
  font-size: clamp(12px, 1.2vw, 16px);
  color: #e5e7eb;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.5);
}

.countries-cloud a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
  .countries-cloud {
    gap: 12px;
  }
}

/* =====================
   VIEW ALL LINK - CARD STYLE
===================== */

.view-all-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;

  color: var(--text-main);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(255, 223, 0, 0.08));

  border: 1px solid var(--border-glass);

  backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-soft);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

/* hover state */
.view-all:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(255, 223, 0, 0.15));
}

.view-all:hover::after {
  transform: translateX(4px);
}

/* mobile */
@media (max-width: 768px) {
  .view-all {
    padding: 10px 22px;
    font-size: 14px;
  }
}

/* =====================
   BURGER MENU
===================== */

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 120;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ACTIVE STATE */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =====================
   MOBILE MENU
===================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(40px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;

  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);

  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
}

.mobile-menu-inner h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.mobile-menu-inner a {
  padding: 4px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.mobile-menu-inner a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

/* =====================
   MOBILE BREAKPOINT
===================== */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* =====================
   MAIN LAYOUT WITH SIDEBAR
===================== */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: start;
}

/* =====================
   CONTENT AREA
===================== */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

.country-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.flag {
  width: 22px;
  flex-shrink: 0;
}

/* =====================
   FEATURES GRID (Why Choose & Highlights)
===================== */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  color: var(--text-main);
  line-height: 1.6;
}

.feature-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.feature-card span {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* =====================
   BONUS CARD
===================== */
.bonus-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
  color: var(--text-main);
  line-height: 1.6;
}

/* =====================
   PLAYER REVIEW GRID
===================== */
.player-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.player-review > div {
  padding: 18px 0;
}

.player-review > div strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.player-review > div span {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* =====================
   FEATURED GAMES GRID
===================== */
.casino-grid-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.casino-card-review {
  padding: 18px 0;
}

.casino-card-review .card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.casino-card-review h3 {
  font-size: 20px;
}

.casino-card-review p {
  font-size: 16px;
  color: var(--text-muted);
}

.hero-review {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.brand-logo-container {
  padding: 60px;
}

.brand-logo {
  width: 200px;
}

/* =====================
   GLOBAL LOADER
===================== */
#globalLoader {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#globalLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.payment-icons img {
  height: 14px;
  width: auto;
  flex-shrink: 0;
}

.payment-more {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.countries-container {
  display: flex;
  gap: 30px;
  margin-top: 18px;
}

.flag-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.payments-container {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

.payments img {
  height: 20px;
}
