/* Theme inspired by Stake.com: dark, clean, responsive */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #050814;
  color: #f5f7ff;
  line-height: 1.6;
}

a {
  color: #26ff8a;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: radial-gradient(circle at top left, #1b3153 0, #050814 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.primary-menu a {
  font-size: 0.95rem;
  color: #d4ddff;
}

.primary-menu a:hover {
  color: #ffffff;
}

/* ── Dropdown: Best Bonuses ─────────────────────── */
.menu-item-has-children {
  position: relative;
}

.menu-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(38, 255, 138, 0.08);
  border: 1px solid rgba(38, 255, 138, 0.2);
  color: #26ff8a !important;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.menu-dropdown-toggle:hover,
.menu-item-has-children.is-open .menu-dropdown-toggle {
  background: rgba(38, 255, 138, 0.18);
  border-color: rgba(38, 255, 138, 0.45);
  text-decoration: none !important;
  color: #fff !important;
}

.menu-dropdown-arrow {
  font-size: 0.65rem;
  display: inline-block;
  transition: transform 0.2s ease;
  line-height: 1;
}

.menu-item-has-children.is-open .menu-dropdown-arrow {
  transform: rotate(180deg);
}

/* Sub-menu panel – hidden by default via visibility trick so transitions work */
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 215px;
  background: #111525;
  border: 1px solid rgba(38, 255, 138, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  /* z-index ABOVE the sticky header (1000) */
  z-index: 2000;
  /* hidden state */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

/* Arrow pointer */
.sub-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  width: 10px;
  height: 10px;
  background: #111525;
  border-left: 1px solid rgba(38, 255, 138, 0.22);
  border-top: 1px solid rgba(38, 255, 138, 0.22);
  transform: rotate(45deg);
}

/* Shown via hover (desktop) OR .is-open (JS / touch) */
.menu-item-has-children:hover .sub-menu,
.menu-item-has-children.is-open .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.sub-menu li a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  color: #c8d0e8;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  text-decoration: none !important;
}

.sub-menu li a:hover {
  background: rgba(38, 255, 138, 0.1);
  color: #26ff8a;
}

.sub-menu li:first-child a { border-radius: 8px 8px 0 0; }
.sub-menu li:last-child  a { border-radius: 0 0 8px 8px; }

.header-lang {
  position: relative;
}

.header-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: #141424;
  border: 1px solid rgba(164, 178, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  color: #f5f7ff;
  font-size: 0.8rem;
  cursor: pointer;
}

.header-lang-toggle-icon {
  font-size: 0.9rem;
}

.header-lang-toggle-code {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-lang-toggle-arrow {
  font-size: 0.65rem;
  opacity: 0.9;
}

.header-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: #111322;
  border-radius: 12px;
  border: 1px solid rgba(164, 178, 255, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0;
  display: none;
  z-index: 1200;
}

.header-lang-menu a {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #a4b2ff;
  text-decoration: none;
  gap: 0.4rem;
}

.header-lang-menu a:hover {
  background: rgba(38, 255, 138, 0.12);
  color: #ffffff;
}

.header-lang-menu a.active {
  color: #ffffff;
  font-weight: 600;
}

.header-lang.is-open .header-lang-menu {
  display: block;
}

.header-lang.is-open .header-lang-toggle-arrow {
  transform: translateY(1px) rotate(180deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #29d4ff, #26ff8a);
  color: #050814;
  box-shadow: 0 0 18px rgba(41, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(41, 212, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: #d4ddff;
  border: 1px solid rgba(212, 221, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  color: #ffffff;
  font-size: 0.85rem;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-media {
    order: -1;
  }
  .hero-copy {
    order: 1;
  }
}

.hero-copy h1 {
  font-size: 2.4rem;
  margin: 0 0 1rem;
}

.hero-copy h1 span {
  color: #26ff8a;
}

.hero-lead {
  font-size: 1.05rem;
  color: #d4ddff;
  max-width: 38rem;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(41, 212, 255, 0.08);
  color: #a9b6ff;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.promo-pill-code {
  font-weight: 600;
  color: #ffffff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  color: #9ca9e8;
}

.hero-media {
  background: radial-gradient(circle at top, #2a355a, #060918);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-media a {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero-media a:hover {
  transform: scale(1.02);
}
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.hero-media-inner {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.badge-top-right {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(5, 8, 20, 0.85);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: #d4ddff;
}

.section {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

.section-intro {
  color: #a7b4ff;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(135deg, #050814, #0a1023);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-title {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card-meta {
  font-size: 0.8rem;
  color: #909bd5;
  margin-bottom: 0.5rem;
}

.card ul {
  padding-left: 1.15rem;
  margin: 0.35rem 0 0;
}

.card li {
  margin: 0.2rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(38, 255, 138, 0.09);
  color: #adffd0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 178, 255, 0.35);
  color: #a4b2ff;
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.game-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(41, 212, 255, 0.08);
  color: #d4ddff;
  font-size: 0.8rem;
}

.games-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 1rem;
}

.game-card {
  background: radial-gradient(circle at top, #162644, #050814);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.game-card-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.game-card-meta {
  font-size: 0.78rem;
  color: #9aa4db;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

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

.table th {
  text-align: left;
  color: #a7b4ff;
  font-weight: 500;
  background: rgba(10, 16, 35, 0.85);
}

.note {
  font-size: 0.8rem;
  color: #8f9ad4;
  margin-top: 0.35rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: #ffb8b8;
  margin-top: 1rem;
}

.disclaimer a {
  color: #ffdf88;
}

.page-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.page-title {
  margin: 0 0 0.4rem;
}

.page-meta {
  font-size: 0.82rem;
  color: #9ca8e1;
}

.content-narrow {
  max-width: 760px;
}

.content-narrow h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.content-narrow p {
  margin-top: 0.55rem;
}

.content-narrow ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050814;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.75rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #a4b2ff;
}

.footer-brand {
  max-width: 420px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-column-title {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #dce4ff;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.25rem;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.language-switcher a {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 178, 255, 0.3);
}

.language-switcher a.active {
  background: rgba(38, 255, 138, 0.16);
  border-color: rgba(38, 255, 138, 0.7);
  color: #f5f7ff;
}

.copyright {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #7f8ad1;
}

.promo-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000;
  background: radial-gradient(circle at top left, #1b3153, #050814);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  max-width: 320px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.promo-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.promo-popup-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.promo-popup-close {
  background: none;
  border: none;
  color: #a4b2ff;
  cursor: pointer;
  font-size: 0.85rem;
}

.promo-popup-body {
  font-size: 0.8rem;
  color: #c5d2ff;
}

.promo-popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.promo-popup-code {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.75);
  border: 1px dashed rgba(164, 178, 255, 0.55);
  cursor: pointer;
}

.promo-popup-footer {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.promo-popup-footer small {
  font-size: 0.72rem;
  color: #909bd5;
}

.promo-popup .btn {
  width: 100%;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .primary-navigation {
    position: fixed;
    inset: 58px 0 auto 0;
    background: rgba(5, 8, 20, 0.99);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 1rem 0.9rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    transition: all 0.18s ease-in-out;
  }

  .primary-navigation.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0.55rem;
  }

  /* Mobile dropdown: stacked accordion */
  .menu-item-has-children {
    width: 100%;
  }

  .menu-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
  }

  /* Override visibility trick — use max-height accordion instead on mobile */
  .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    max-height: 0;
    overflow: hidden;
    border: none;
    border-left: 2px solid rgba(38, 255, 138, 0.3);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    /* hide via max-height, not visibility */
    display: block !important;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .sub-menu::before {
    display: none;
  }

  .menu-item-has-children.is-open .sub-menu {
    max-height: 400px;
    padding: 0.3rem 0 0.3rem 0.8rem;
  }

  .sub-menu li a {
    padding: 0.38rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: normal;
  }

  .header-cta {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta .btn {
    flex: 1;
  }

  .header-lang {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .promo-popup {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}

/* ── Promo usage counter ─────────────────────── */
.promo-counter-box {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  padding: .55rem 1.1rem;
  background: rgba(38,255,138,.08);
  border: 1px solid rgba(38,255,138,.25);
  border-radius: 50px;
  font-size: .92rem;
  color: #c8d0e8;
}
.promo-counter-box strong {
  color: #26ff8a;
  font-size: 1rem;
}
.promo-counter-icon {
  font-size: 1.1rem;
}

/* ── Registration form mockup ─────────────────── */
.reg-form-mockup {
  max-width: 460px;
  margin: 0 auto 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  background: #0e1120;
}
.reg-form-topbar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: #1a1e30;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.reg-form-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.reg-form-url {
  margin-left: .5rem;
  font-size: .72rem;
  color: #666;
  flex: 1;
  background: #111421;
  padding: .2rem .7rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.reg-form-body {
  padding: 1.8rem 1.6rem 1.4rem;
}
.reg-form-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.reg-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f7ff;
  margin: 0 0 1.25rem;
}
.reg-form-field {
  margin-bottom: 1rem;
}
.reg-form-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #8892aa;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.reg-form-optional {
  font-weight: 400;
  text-transform: none;
  color: #555d75;
}
.reg-form-input-wrap {
  position: relative;
}
.reg-form-input-wrap input {
  width: 100%;
  padding: .65rem .9rem;
  background: #141729;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #c8d0e8;
  font-size: .9rem;
  box-sizing: border-box;
  outline: none;
  pointer-events: none;
}
.reg-form-input-highlight input.reg-form-code-input {
  background: rgba(38,255,138,.06);
  border-color: #26ff8a;
  color: #26ff8a;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 1rem;
  padding-right: 8.5rem;
}
.reg-form-check {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 700;
  color: #26ff8a;
  background: rgba(38,255,138,.12);
  border-radius: 20px;
  padding: .15rem .55rem;
  white-space: nowrap;
}
.reg-form-hint {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: #26ff8a;
  opacity: .85;
}
