/* =====================================================
   CORGIBET CASINO — MAIN STYLESHEET  (app.css)
   ===================================================== */

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0b1231;
  color: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── VARIABLES ──────────────────────────────────────── */
:root {
  --sidebar-w:       44px;
  --sidebar-w-open:  220px;
  --header-h:        60px;
  --gold:            #f0bc52;
  --gold2:           #ffd166;
  --gold-dark:       #c9871c;
  --dark:            #0b1231;
  --dark2:           #101740;
  --dark3:           #131b3a;
  --dark4:           #1a2347;
  --transition:      .28s cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================
   PULSE ANIMATIONS
   ===================================================== */
@keyframes pulse-glow {
  0%   { box-shadow: 0 4px 18px rgba(240,188,82,.35); }
  50%  { box-shadow: 0 4px 30px rgba(240,188,82,.80), 0 0 0 6px rgba(240,188,82,.13); }
  100% { box-shadow: 0 4px 18px rgba(240,188,82,.35); }
}
@keyframes pulse-glow-hero {
  0%   { box-shadow: 0 6px 26px rgba(240,188,82,.4); }
  50%  { box-shadow: 0 6px 46px rgba(240,188,82,.90), 0 0 0 12px rgba(240,188,82,.11); }
  100% { box-shadow: 0 6px 26px rgba(240,188,82,.4); }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--dark2);
  display: flex;
  align-items: center;
  padding: 0 14px 0 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 8px;
}

/* Burger — ЗАВЖДИ перший і поверх усього */
.header__burger {
  width: 44px;
  min-width: 44px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  z-index: 210;
  transition: background var(--transition);
}
.header__burger:hover { background: rgba(255,255,255,.07); }

.header__burger .bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  position: relative;
  transition: all var(--transition);
}
.header__burger .bar::before,
.header__burger .bar::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all var(--transition);
}
.header__burger .bar::before { top: -7px; }
.header__burger .bar::after  { top:  7px; }

body.nav-open .header__burger .bar         { background: transparent; }
body.nav-open .header__burger .bar::before { transform: rotate(45deg);  top: 0; }
body.nav-open .header__burger .bar::after  { transform: rotate(-45deg); top: 0; }

/* Logo */
.header__logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.header__logo span { color: #fff; }
.header__logo-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* Tabs */
.header__tabs {
  display: flex; gap: 4px;
  margin-right: auto;
  flex-shrink: 0;
}
.header__tab {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition);
  color: rgba(255,255,255,.65);
  background: none; border: none;
}
.header__tab.active,
.header__tab:hover { background: rgba(255,255,255,.10); color: #fff; }

/* Actions */
.header__actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.header__search {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff; flex-shrink: 0;
  transition: background var(--transition);
}
.header__search:hover { background: rgba(255,255,255,.15); }

.btn-login {
  padding: 8px 20px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.30);
  background: transparent; color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.btn-login:hover { background: rgba(255,255,255,.10); }

/* Sign up — пульсуюча */
.btn-signup {
  padding: 8px 20px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #f5cb55);
  color: #111;
  font-size: 14px; font-weight: 800;
  cursor: pointer; border: none; white-space: nowrap;
  animation: pulse-glow 2.4s ease-in-out infinite;
  transition: transform var(--transition), filter var(--transition);
}
.btn-signup:hover {
  transform: translateY(-1px); filter: brightness(1.1);
  animation-play-state: paused;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--dark2);
  z-index: 150; overflow: hidden;
  transition: width var(--transition);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
body.nav-open .sidebar { width: var(--sidebar-w-open); }

.sidebar__item {
  display: flex; align-items: center;
  height: 52px; padding: 0 12px;
  cursor: pointer; gap: 14px;
  transition: background var(--transition);
  white-space: nowrap; overflow: hidden;
  position: relative;
}
.sidebar__item:hover  { background: rgba(255,255,255,.07); }
.sidebar__item.active { background: rgba(240,188,82,.12); }
.sidebar__item.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.sidebar__icon {
  min-width: 20px; width: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: .75; flex-shrink: 0;
}
.sidebar__item:hover .sidebar__icon,
.sidebar__item.active .sidebar__icon { opacity: 1; }

.sidebar__label {
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity var(--transition);
  color: rgba(255,255,255,.85);
}
body.nav-open .sidebar__label        { opacity: 1; }
.sidebar__item.active .sidebar__label { color: var(--gold); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0,0,0,.55);
}
body.nav-open .nav-overlay { display: block; }

/* =====================================================
   MAIN WRAPPER
   ===================================================== */
.main {
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
  min-height: calc(100vh - var(--header-h));
  transition: margin-left var(--transition);
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero {
  position: relative;
  width: 100%; min-height: 420px;

  /* ── БАНЕР: поклади файл поруч з index.html і назви banner.jpg ── */
  background-color: #0d183a;
  background-image: url('../banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,18,49,.88) 0%,
    rgba(11,18,49,.52) 55%,
    transparent 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  padding: 60px 48px; max-width: 760px;
}
.hero__label {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.65); text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__title {
  max-width: 720px;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 900; line-height: 1.12;
  text-transform: uppercase; letter-spacing: .4px;
  text-wrap: balance;
  margin-bottom: 32px;
}
.hero__title .accent { color: var(--gold); }

/* GET BONUS — велика пульсуюча кнопка */
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px;
  background: linear-gradient(135deg, var(--gold), #f5cb55, var(--gold-dark));
  color: #111;
  font-size: 17px; font-weight: 900;
  border-radius: 12px; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
  animation: pulse-glow-hero 2.2s ease-in-out infinite;
  transition: transform var(--transition), filter var(--transition);
}
.hero__cta:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.12);
  animation-play-state: paused;
}

/* =====================================================
   SECTION TITLE
   ===================================================== */
.section-title {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900; letter-spacing: 3px;
  text-transform: uppercase; color: #fff;
  margin-bottom: 28px;
}
.section-title::before,
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25));
}
.section-title::after {
  background: linear-gradient(270deg, transparent, rgba(255,255,255,.25));
}

/* =====================================================
   GAMES SECTION
   ===================================================== */
.games-section { padding: 48px 32px 40px; background: var(--dark); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.game-card {
  position: relative; border-radius: 10px;
  overflow: hidden; background: var(--dark4);
  cursor: pointer; aspect-ratio: 1 / 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 2;
}
.game-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter var(--transition);
}
.game-card:hover img { filter: brightness(1.1); }

.game-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px;
}
.game-card__name {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
}
.game-card__provider {
  font-size: 9px; font-weight: 600;
  color: var(--gold); letter-spacing: .5px; margin-top: 2px;
}

.game-card__heart {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; border: none;
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition);
}
.game-card__heart:hover,
.game-card__heart.liked { background: rgba(220,50,50,.7); color: #fff; }

.game-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  background: rgba(11,18,49,.3);
}
.game-card:hover .game-card__play { opacity: 1; }
.game-card__play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #111;
  box-shadow: 0 4px 16px rgba(240,188,82,.55);
}

/* =====================================================
   CASHBACK SECTION
   ===================================================== */
.cashback-section {
  background: var(--dark3);
  padding: 60px 48px;
  display: flex; align-items: center; gap: 48px;
}
.cashback-section__content { flex: 1; }
.cashback-section__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 16px;
}
.cashback-section__title .accent { color: var(--gold); }
.cashback-section__subtitle {
  font-size: 15px; color: rgba(255,255,255,.65);
  line-height: 1.6; max-width: 420px; margin-bottom: 28px;
}
.cashback-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  border: 1px solid rgba(240,188,82,.3);
  border-radius: 14px; padding: 18px 28px;
}
.cashback-badge__label { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; }
.cashback-badge__value { font-size: 42px; font-weight: 900; color: var(--gold); line-height: 1; }
.cashback-section__img { flex-shrink: 0; font-size: 120px; line-height: 1; }

/* =====================================================
   PAYMENTS BAR
   ===================================================== */
.payments-bar {
  background: linear-gradient(135deg, #b8861a, #8a6010, #b8861a);
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.payments-bar__item {
  font-size: 15px; font-weight: 800;
  color: rgba(255,255,255,.9); letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 44px 48px 28px;
}
.footer__top { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 36px; }
.footer__brand { min-width: 140px; }
.footer__logo { font-size: 22px; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.footer__lang {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
}
.footer__cols { flex: 1; display: flex; gap: 32px; flex-wrap: wrap; }
.footer__col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 12px;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer__badges { display: flex; align-items: center; gap: 12px; }
.footer__badge {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.08); border-radius: 6px;
  padding: 4px 10px; color: rgba(255,255,255,.55);
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--dark2); }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

/* =====================================================
   RESPONSIVE — TABLET (≤1100px)
   ===================================================== */
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --sidebar-w:      0px;
    --sidebar-w-open: 240px;
  }

  .sidebar {
    width: 0; top: 0; height: 100vh;
    z-index: 300; border-right: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
  body.nav-open .sidebar        { width: var(--sidebar-w-open); }
  .sidebar__label               { opacity: 0; }
  body.nav-open .sidebar__label { opacity: 1; }

  .main { margin-left: 0; }

  /* Header */
  .header { padding: 0 10px 0 0; gap: 6px; }
  .header__burger { width: 44px; min-width: 44px; }
  .header__logo   { font-size: 16px; }
  .header__logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .header__tabs   { display: none; }
  .btn-login      { display: none; }
  .header__actions { gap: 6px; }
  .btn-signup     { padding: 7px 12px; font-size: 12px; }

  /* Hero */
  .hero { min-height: 300px; }
  .hero__content { padding: 36px 20px; }
  .hero__cta { padding: 13px 30px; font-size: 15px; }

  /* Games */
  .games-section { padding: 32px 14px 24px; }
  .games-grid    { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* Cashback */
  .cashback-section { flex-direction: column; padding: 40px 20px; text-align: center; }
  .cashback-section__img { font-size: 80px; }

  /* Payments */
  .payments-bar { padding: 16px 20px; gap: 20px; }

  /* Footer */
  .footer       { padding: 32px 20px 20px; }
  .footer__top  { gap: 28px; }
  .footer__cols { gap: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .games-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 24px; }
}

/* =====================================================
   CONTENT SECTION — text, tables, FAQ
   ===================================================== */
.content-section {
  background: var(--dark);
  padding: 56px 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.content-section h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: #fff;
  margin: 40px 0 14px;
  line-height: 1.25;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(240,188,82,.25);
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 10px;
  line-height: 1.3;
}
.content-section p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  margin-bottom: 16px;
}
.content-section strong { color: #fff; }
.content-section ul,
.content-section ol {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-section ul li,
.content-section ol li {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.content-section ul li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold); font-size: 12px;
  top: 2px;
}
.content-section ol { counter-reset: ol-counter; }
.content-section ol li::before {
  content: counter(ol-counter) '.';
  counter-increment: ol-counter;
  position: absolute; left: 0;
  color: var(--gold); font-size: 13px; font-weight: 700;
}

/* Tables */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.content-section table tr:first-child td,
.content-section table th {
  background: linear-gradient(135deg, #1e2d56, #162044);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(240,188,82,.3);
  text-align: left;
}
.content-section table td {
  padding: 11px 16px;
  color: rgba(255,255,255,.80);
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
  line-height: 1.5;
}
.content-section table tr:nth-child(even) td {
  background: rgba(255,255,255,.025);
}
.content-section table tr:hover td {
  background: rgba(240,188,82,.04);
}
.content-section table td p { margin: 0; font-size: 14px; }
.content-section table td p strong { color: var(--gold); }

/* Table wrapper for overflow on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

/* ── FAQ ACCORDION ─────────────────────────────────── */
.faq-section {
  background: var(--dark3);
  padding: 56px 48px 64px;
}
.faq-section .section-title { margin-bottom: 36px; }

.faq-list { max-width: 1100px; margin: 0 auto; }

.faq-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--dark2);
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item.open { border-color: rgba(240,188,82,.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-item.open .faq-question { background: rgba(240,188,82,.07); }

.faq-question__text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.faq-question__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(240,188,82,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition);
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  background: rgba(240,188,82,.25);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}
.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* ── Responsive content ────────────────────────────── */
@media (max-width: 768px) {
  .content-section { padding: 36px 18px 44px; }
  .faq-section      { padding: 36px 16px 44px; }
  .content-section table { font-size: 13px; }
  .content-section table td,
  .content-section table th,
  .content-section table tr:first-child td { padding: 9px 12px; }
}
