/* ============================================
   PokerOK Modern UI — CSS Custom Properties
   ============================================ */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #10b981;
  --accent-hover: #059669;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --glass: rgba(22, 33, 62, 0.6);
  --glass-border: rgba(167, 139, 250, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Disclaimer Bar
   ============================================ */
.disclaimer-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  text-align: center;
}

.disclaimer-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.disclaimer-bar__icon {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.disclaimer-bar__text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  flex-shrink: 1;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch__btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.lang-switch__btn--active {
  background: var(--primary);
  color: #fff;
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
  color: var(--text-primary);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
  color: #fff;
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1035 40%, var(--bg-secondary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__p2p {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__p2p img {
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.hero__p2p img:hover {
  transform: scale(1.02);
}

/* ============================================
   Features Cards
   ============================================ */
.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.feature-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  transition: all var(--transition);
}

.feature-card__cta:hover {
  color: var(--accent);
  gap: 12px;
}

.feature-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.feature-card__cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Posters / Promo Grid — Compact masonry
   ============================================ */
.promos {
  padding: 60px 0;
}

.promos__title {
  text-align: center;
  margin-bottom: 40px;
}

.promos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.promo-section {
  display: contents;
}

.promo-section__label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 20px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.promo-section__label:first-child {
  margin-top: 0;
}

.promo-img {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  aspect-ratio: auto;
}

.promo-img:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Span modifiers for different image sizes */
.promo-img--wide {
  grid-column: span 2;
}

.promo-img--tall {
  grid-row: span 2;
}

.promo-img--full {
  grid-column: span 4;
}

/* ============================================
   Advantages
   ============================================ */
.advantages {
  padding: 80px 0;
}

.advantages__title {
  text-align: center;
  margin-bottom: 48px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.advantage-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.advantage-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.advantage-item__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   SEO Text Sections (Accordion)
   ============================================ */
.seo-content {
  padding: 60px 0;
}

.seo-section {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

.seo-section__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  transition: background var(--transition);
}

.seo-section__header:hover {
  background: rgba(124, 58, 237, 0.05);
}

.seo-section__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.seo-section.active .seo-section__chevron {
  transform: rotate(180deg);
}

.seo-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.seo-section.active .seo-section__body {
  max-height: 2000px;
}

.seo-section__content {
  padding: 0 24px 24px;
}

.seo-section__content p {
  margin-bottom: 12px;
}

.seo-section__content h4 {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: var(--primary-light);
}

.seo-section__content ul,
.seo-section__content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.seo-section__content li {
  list-style: disc;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 15px;
}

.seo-section__content ol li {
  list-style: decimal;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  padding: 80px 0;
}

.faq__title {
  text-align: center;
  margin-bottom: 48px;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
}

.faq-item__question:hover {
  background: rgba(124, 58, 237, 0.05);
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   Support CTA
   ============================================ */
.support-cta {
  padding: 80px 0;
}

.support-cta__inner {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1035 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}

.support-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.support-cta__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.support-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 12px 28px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all var(--transition);
}

.support-cta__link:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--primary);
  color: #fff;
}

.support-cta__link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.footer__disclaimer-icon {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.footer__disclaimer-text {
  font-size: 12px;
  color: var(--text-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--primary-light);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__copyright {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

/* ============================================
   Download page specific: Steps
   ============================================ */
.steps {
  padding: 80px 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  counter-increment: step;
  position: relative;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 28px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  margin-top: 12px;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .promo-img--wide {
    grid-column: span 2;
  }

  .promo-img--full {
    grid-column: span 2;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav.active {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    max-width: 300px;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .promo-img--wide,
  .promo-img--full {
    grid-column: span 2;
  }

  .support-cta__inner {
    padding: 40px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .header__actions .btn {
    display: none;
  }

  .header__actions .btn--sm.btn--accent {
    display: inline-flex;
  }
}

/* ============================================
   Utility classes
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* Responsible gaming badge */
.responsible-badge {
  padding: 40px 0;
  text-align: center;
}

.responsible-badge__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.responsible-badge__icon {
  font-size: 24px;
}

.responsible-badge__text {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
