/* ── TOKENS ─────────────────────────────────────────────────────────────────── */
:root {
  --bg-page:      #080D22;
  --bg-surface-1: #0F1840;
  --bg-surface-2: #14205C;
  --bg-card:      #0C1540;
  --bg-header:    #0A1030;
  --bg-sidebar:   #060B1C;
  --orange:       #FF6B2B;
  --orange-d:     #CC4400;
  --gold:         #F5A623;
  --grad-cta:     linear-gradient(135deg, #FF6B2B 0%, #FF3C00 100%);
  --grad-accent:  linear-gradient(135deg, #F5A623 0%, #FF6B2B 100%);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted:   rgba(255,255,255,0.35);
  --border:       rgba(255,255,255,0.07);
  --border-bright:rgba(255,255,255,0.15);
  --sidebar-w:    220px;
  --header-h:     56px;
  --radius:       10px;
  --radius-sm:    7px;
  --radius-xs:    5px;
}

/* ── RESET ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── APP LAYOUT ──────────────────────────────────────────────────────────────── */
.app.Manekispin { min-height: 100vh; }

/* ── SIDEBAR OVERLAY ─────────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 199;
}
.sidebar-overlay.visible { display: block; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(0);
  transition: transform .28s ease;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h); padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); font-size: 18px;
  color: var(--text-secondary); line-height: 1;
}
.sidebar-close:hover { background: rgba(255,255,255,.12); }

.sidebar-nav { padding: 8px 0; flex: 1; }
.sidebar-nav-section { padding-top: 8px; }
.sidebar-nav-section + .sidebar-nav-section {
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--radius-xs);
  margin: 2px 8px;
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  transition: background .18s, color .18s;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: rgba(255,107,43,.15); color: var(--orange);
}
.sidebar-nav-item svg { flex-shrink: 0; width: 20px; height: 20px; }
.sidebar-nav-item img { flex-shrink: 0; width: 20px; height: 20px; object-fit: contain; }

.sidebar-footer { padding: 12px 0; border-top: 1px solid var(--border); }

/* ── MAIN WRAPPER ────────────────────────────────────────────────────────────── */
.main-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ── DESKTOP layout (pure CSS, no JS class needed) ───────────────────────────── */
@media (min-width: 769px) {
  .main-wrapper { margin-left: var(--sidebar-w); }
  .sidebar { transform: translateX(0); }
  .sidebar-close { display: none; }
  .sidebar-overlay { display: none !important; }
}

/* ── MOBILE layout ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .main-wrapper { margin-left: 0; }
  /* sidebar open state toggled by JS */
  .sidebar.open { transform: translateX(0); }
}

/* ── HEADER ──────────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.header-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 10px;
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  flex-shrink: 0;
}
.header-toggle:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.header-toggle span {
  display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 1px; transition: opacity .2s;
}
@media (min-width: 769px) { .header-toggle { display: none; } }

.header-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.header-logo img { height: 28px; width: auto; flex-shrink: 0; }
.header-logo__text { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hide logo text on narrow mobile to save space */
@media (max-width: 480px) { .header-logo__text { display: none; } }

.header-tabs {
  display: flex; gap: 2px; margin: 0 auto;
  background: rgba(255,255,255,.07); border-radius: 20px; padding: 3px;
  flex-shrink: 0;
}
.header-tab {
  padding: 5px 14px; border-radius: 17px; font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); transition: background .18s, color .18s;
  white-space: nowrap;
}
.header-tab.active,
.header-tab:hover { background: var(--grad-cta); color: #fff; }

/* hide tabs on mobile — they're in the sidebar nav */
@media (max-width: 768px) { .header-tabs { display: none; } }

.header-right { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* hide Login button on mobile to save space */
@media (max-width: 768px) { .header-right .btn-login { display: none; } }

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 20px; font-size: .875rem; font-weight: 600;
  white-space: nowrap; transition: opacity .18s;
}
.btn:hover { opacity: .88; }
.btn-login {
  background: rgba(255,255,255,.1); color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-signup { background: var(--grad-cta); color: #fff; }
.btn-cta {
  background: var(--grad-cta); color: #fff;
  padding: 12px 32px; border-radius: 24px; font-size: 1rem;
}

/* ── MAIN ────────────────────────────────────────────────────────────────────── */
.main { flex: 1; }

/* ── H1 ──────────────────────────────────────────────────────────────────────── */
.page-h1 {
  font-size: 1.25rem; font-weight: 700;
  padding: 12px 20px 0;
  color: var(--text-primary);
}
@media (min-width: 769px) {
  .page-h1 { font-size: 1.5rem; padding: 16px 24px 0; }
}

/* ── HERO BANNER ─────────────────────────────────────────────────────────────── */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(6,10,30,.92) 0%, rgba(6,10,30,.6) 55%, rgba(6,10,30,.15) 100%);
  padding-top: 112.5%;
}
@media (min-width: 769px) { .hero-banner { padding-top: 42.22%; } }

.hero-banner__picture {
  position: absolute; inset: 0; display: block;
}
.hero-banner__picture img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,10,30,.92) 0%, rgba(6,10,30,.6) 55%, rgba(6,10,30,.15) 100%);
}
.hero-banner__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 28px;
  max-width: 520px;
}
.hero-banner__label {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.hero-banner__title {
  font-size: 2rem; font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hero-banner__title span { display: block; }
.hero-banner__title .title-line2 { color: var(--gold); }
@media (min-width: 769px) {
  .hero-banner__content { padding: 40px 48px; }
  .hero-banner__title { font-size: 2.8rem; }
}

/* ── SECTION LAYOUT ──────────────────────────────────────────────────────────── */
.section { padding: 24px 16px; }
@media (min-width: 769px) { .section { padding: 32px 24px; } }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.1rem; font-weight: 700;
}
@media (min-width: 769px) { .section-title { font-size: 1.25rem; } }

.btn-text {
  font-size: .85rem; font-weight: 600; color: var(--orange);
  padding: 6px 14px; border: 1px solid rgba(255,107,43,.4);
  border-radius: 16px; transition: background .18s;
}
.btn-text:hover { background: rgba(255,107,43,.12); }

/* ── PROVIDER FILTER TABS ────────────────────────────────────────────────────── */
.provider-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.provider-tabs::-webkit-scrollbar { display: none; }
.provider-tab {
  flex-shrink: 0; padding: 7px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.07); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: background .18s, color .18s, border-color .18s;
}
.provider-tab.active,
.provider-tab:hover {
  background: rgba(255,107,43,.18); color: var(--orange);
  border-color: rgba(255,107,43,.4);
}

/* ── GAME CARDS ──────────────────────────────────────────────────────────────── */
.games-wrapper { position: relative; }
.games-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.games-track::-webkit-scrollbar { display: none; }

.game-card {
  flex-shrink: 0; width: 160px; border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
  transition: transform .2s;
  position: relative;
}
.game-card:hover { transform: translateY(-3px); }

.game-card__img-wrap {
  width: 160px; height: 267px; overflow: hidden;
  background: var(--bg-surface-2);
}
.game-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.game-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; transition: opacity .2s;
}
.game-card:hover .game-card__overlay { opacity: 1; }
.game-card__btn {
  width: 120px; padding: 8px 0; border-radius: 18px; font-size: .8rem; font-weight: 700;
  text-align: center;
}
.game-card__btn--play { background: var(--grad-cta); color: #fff; }
.game-card__btn--demo {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.game-card__info {
  padding: 8px; background: var(--bg-card);
}
.game-card__title {
  font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.game-card__provider { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

.scroll-controls {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px;
}
.scroll-btn {
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem;
  background: rgba(255,255,255,.1); color: var(--text-primary);
  border: 1px solid var(--border-bright); display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.scroll-btn:hover { background: rgba(255,107,43,.3); color: var(--orange); }

/* ── GAMIFICATION ────────────────────────────────────────────────────────────── */
.gamification-section {
  background: var(--bg-surface-1);
  border-radius: var(--radius);
  margin: 0 16px 8px;
  padding: 28px 20px;
}
@media (min-width: 769px) { .gamification-section { margin: 0 24px 12px; padding: 36px 32px; } }

.gamification-main {
  display: flex; align-items: center; gap: 24px;
  flex-direction: column;
}
@media (min-width: 769px) {
  .gamification-main { flex-direction: row; }
}
.gamification-text { flex: 1; }
.gamification-title {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 10px;
  line-height: 1.2;
}
@media (min-width: 769px) { .gamification-title { font-size: 1.6rem; } }
.gamification-desc {
  color: var(--text-secondary); font-size: .9rem; margin-bottom: 20px; line-height: 1.6;
}
.gamification-img { flex-shrink: 0; }
.gamification-img img { width: 220px; height: auto; }
@media (min-width: 769px) { .gamification-img img { width: 280px; } }

.gamification-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 24px;
}
@media (max-width: 500px) { .gamification-cards { grid-template-columns: 1fr; } }
.gamif-card {
  background: var(--bg-surface-2); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.gamif-card img { width: 40px; height: 40px; object-fit: contain; }
.gamif-card__title { font-size: .88rem; font-weight: 700; }
.gamif-card__desc { font-size: .78rem; color: var(--text-secondary); line-height: 1.5; }

/* ── FEATURES ────────────────────────────────────────────────────────────────── */
.features-section { background: var(--bg-page); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-surface-1); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center;
}
.feature-icon img { width: 48px; height: 48px; object-fit: contain; }
.feature-title { font-size: .78rem; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }

/* ── SUPPORT ─────────────────────────────────────────────────────────────────── */
.support-section { background: var(--bg-surface-1); }
.support-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 16px;
}
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--bg-surface-2); border-radius: var(--radius);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 10px;
}
.support-card img { width: 40px; height: 40px; object-fit: contain; }
.support-card__title { font-size: .9rem; font-weight: 700; }
.support-card__desc { font-size: .8rem; color: var(--text-secondary); line-height: 1.55; }

/* ── PAYMENTS ────────────────────────────────────────────────────────────────── */
.payments-section { background: var(--bg-page); }
.payments-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 14px;
}
.payment-icon {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
}
.payment-icon img { height: 22px; width: auto; }

/* ── SEO SECTION ─────────────────────────────────────────────────────────────── */
.seo-section {
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
}
@media (min-width: 769px) { .seo-section { padding: 32px 24px 48px; } }

.seo-content h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 14px; }
.seo-content h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--gold); }
.seo-content h3 { font-size: 1rem; font-weight: 600; margin: 18px 0 8px; }
.seo-content h4 { font-size: .95rem; font-weight: 600; margin: 16px 0 6px; }
.seo-content h5 { font-size: .9rem; font-weight: 600; margin: 14px 0 6px; }
.seo-content h6 { font-size: .85rem; font-weight: 600; margin: 12px 0 4px; color: var(--text-secondary); }
.seo-content p  { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.seo-content a  { color: var(--orange); }
.seo-content a:hover { text-decoration: underline; }
.seo-content strong, .seo-content b { color: var(--text-primary); font-weight: 700; }
.seo-content em, .seo-content i { font-style: italic; }
.seo-content ul, .seo-content ol { padding-left: 20px; margin-bottom: 12px; }
.seo-content ul { list-style: disc; }
.seo-content ol { list-style: decimal; }
.seo-content li { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }
.seo-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .82rem; }
.seo-content th { background: var(--bg-surface-2); padding: 8px 12px; text-align: left; font-weight: 600; border: 1px solid var(--border); }
.seo-content td { padding: 7px 12px; border: 1px solid var(--border); color: var(--text-secondary); }
.seo-content tr:nth-child(even) td { background: rgba(255,255,255,.03); }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-sidebar); border-top: 1px solid var(--border);
  padding: 24px 16px;
}
.footer-brand { margin-bottom: 16px; }
.footer-logo img { height: 28px; width: auto; }
@media (min-width: 769px) { .footer { padding: 28px 24px; } }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px;
}
.footer-links a {
  font-size: .78rem; color: var(--text-muted); transition: color .18s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom { display: flex; flex-direction: column; gap: 6px; }
.footer-disclaimer { font-size: .75rem; color: var(--text-muted); line-height: 1.6; }

.footer-ssl { margin-top: 16px; }
.footer-ssl img { height: 28px; width: auto; opacity: .6; }
.footer-copy { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.footer-copy span { font-size: .72rem; color: var(--text-muted); }
