/* ===========================
   CasinoOnlineBono.space
   Dark Mode + Glassmorphism
   =========================== */

/* ========== VARIABLES ========== */
:root {
  --bg-body: #0f172a;
  --bg-body-alt: #020617;
  --bg-glass: rgba(15, 23, 42, 0.8);
  --bg-glass-soft: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(148, 163, 184, 0.35);

  --color-primary: #22c55e;
  /* neon green */
  --color-primary-soft: rgba(34, 197, 94, 0.2);
  --color-accent: #0ea5e9;
  /* neon blue */
  --color-accent-soft: rgba(14, 165, 233, 0.25);

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-heading: #f9fafb;
  --text-danger: #f97373;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --shadow-chip: 0 0 0 1px rgba(148, 163, 184, 0.4);

  --container-width: 1120px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background:
    radial-gradient(circle at top left, #1e293b 0, transparent 55%),
    radial-gradient(circle at bottom right, #020617 0, transparent 55%),
    linear-gradient(160deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

p {
  padding-bottom: 1rem;
}

ul {
  list-style: none;
}

/* Scrollbar (desktop only) */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #020617;
  }

  ::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #374151;
  }
}

/* Global containers & sections */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-gray {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
}

/* Typography helpers */
h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

p {
  color: var(--text-main);
  font-size: 0.975rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== HEADER & NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 0, #22c55e 0, transparent 60%),
    radial-gradient(circle at 80% 100%, #0ea5e9 0, transparent 55%),
    linear-gradient(135deg, #020617, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
}

.logo-icon span {
  font-size: 1.05rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Nav */
.navbar {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-heading);
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.nav-link.active {
  color: #ecfeff;
  background: radial-gradient(circle at 0 0, var(--color-primary) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, var(--color-accent) 0, transparent 55%);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

/* === MOBILE MENU BURGER === */
.menu-toggle {
  display: none;
  width: 36px;
  height: 32px;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  /* белые полоски на тёмном фоне */
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Animation when menu is active === */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  /* hide nav-menu on mobile by default (your open/close logic already exists) */
  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* ========== HERO ========== */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-badge span {
  color: var(--color-primary);
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title span {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--color-accent);
}

/* Hero side card / highlight */
.hero-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem 1.1rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.72rem;
  color: var(--color-accent);
}

.hero-card-title {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.hero-card-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-medium), border var(--transition-medium), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #16a34a);
  border-color: rgba(22, 163, 74, 0.8);
  color: #022c22;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.48);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.6);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #1d4ed8);
  border-color: rgba(37, 99, 235, 0.8);
  color: #e0f2fe;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
}

.btn-accent:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-heading);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* ========== CARDS & GRIDS ========== */
.card {
  background: var(--bg-glass-soft);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.1rem;
}

.card h3,
.card h4 {
  margin-bottom: 0.4rem;
}

.card p+p {
  margin-top: 0.4rem;
}

/* Icons */
.icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: radial-gradient(circle at 0 0, var(--color-accent-soft), transparent 60%),
    radial-gradient(circle at 100% 100%, var(--color-primary-soft), transparent 60%);
  box-shadow: var(--shadow-chip);
  margin-bottom: 0.6rem;
}

.icon-lg {
  width: 52px;
  height: 52px;
  font-size: 1.35rem;
}

/* Grid system */
.grid {
  display: grid;
  gap: 1.3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========== TABLES ========== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-responsive thead {
  background:
    linear-gradient(120deg, rgba(34, 197, 94, 0.25), rgba(14, 165, 233, 0.25));
}

.table-responsive th,
.table-responsive td {
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  text-align: left;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table-responsive th {
  font-weight: 600;
  color: #e5e7eb;
}

.table-responsive tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.85);
}

.table-responsive tbody tr:hover {
  background: rgba(30, 64, 175, 0.4);
}

/* Ranking badge in tables */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: radial-gradient(circle at 30% 0, var(--color-primary), transparent 55%),
    radial-gradient(circle at 80% 100%, var(--color-accent), transparent 55%);
  color: #020617;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.badge-info {
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
}

/* Rating text */
.rating {
  color: #fde68a;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--bg-glass-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 0.9rem 1rem;
  cursor: pointer;
  position: relative;
  font-size: 0.9rem;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: max-height var(--transition-medium), padding-bottom var(--transition-medium);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 0.9rem;
}

/* ========== FORMS (Contacto, etc.) ========== */
.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-control,
textarea,
select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control:focus,
textarea:focus,
select:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0.85rem;
  right: 0.85rem;
  left: 0.85rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 50;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-content {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.8rem;
}

.cookie-text p:first-child {
  font-weight: 600;
  color: var(--text-heading);
}

.cookie-text p+p {
  color: var(--text-muted);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.cookie-buttons .btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
}

.cookie-container h2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
/* ========== FOOTER ========== */
.footer-columns {
  display: flex;
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column-reverse;
}

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.6rem 0 2.2rem;
  background: #020617;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== SVG WRAPPER FOR STEPS ========== */
.step-illustration {
  margin-bottom: 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    padding: 0.5rem 1.5rem 0.9rem;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(30, 64, 175, 0.5);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
  }

  .nav-menu.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .footer-columns {
    flex-direction: column;
  }

  .footer-columns div {
    margin-bottom: 1rem;
  }
}