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

:root {
  --bg-deep: #0b0b1a;
  --bg-mid: #120f2e;
  --bg-light: #1a1445;
  --cta-start: #ff2d7a;
  --cta-end: #ff6a9f;
  --purple: #6c3bff;
  --purple-light: #7b61ff;
  --neon-start: #00cfff;
  --neon-end: #3ad1ff;
  --gold: #ffc107;
  --gold-light: #ffd54f;
  --white: #ffffff;
  --text-secondary: #b0b3c7;
  --text-muted: #8a8fa3;
  --card-bg: #1c1f3a;
  --card-bg-alt: #23264a;
  --card-hover: #2e3270;
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 72px) + 16px);
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-light) 100%);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(108, 59, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 45, 122, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 207, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--neon-start);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-header.is-pinned {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.55);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255, 45, 122, 0.5));
  color: var(--white);
}

.logo img {
  height: 42px;
  width: 42px;
  filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.35));
}

.logo-text {
  background: linear-gradient(90deg, var(--neon-start), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn-register,
.btn-login,
.btn-cta {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-register,
.btn-cta {
  background: linear-gradient(90deg, var(--cta-start), var(--cta-end));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 45, 122, 0.4);
}

.btn-register:hover,
.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(255, 45, 122, 0.55);
  color: var(--white);
}

.btn-login {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(108, 59, 255, 0.6);
  box-shadow: 0 0 12px rgba(108, 59, 255, 0.2);
}

.btn-login:hover {
  background: rgba(108, 59, 255, 0.15);
  border-color: var(--purple-light);
  box-shadow: 0 0 16px rgba(108, 59, 255, 0.4);
  transform: translateY(-2px);
  color: var(--white);
}

.hero {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 45, 122, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(255, 45, 122, 0.25);
}

.hero-highlight {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--neon-start);
}

.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.15);
}

.breadcrumbs .current {
  color: var(--cta-start);
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.content-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-alt) 100%);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cta-start), var(--purple), var(--neon-start));
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  position: relative;
  padding-left: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--cta-start), var(--neon-start));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 45, 122, 0.5);
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--neon-start);
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.prose ol,
.prose ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--cta-start);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  align-items: start;
  grid-auto-rows: min-content;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Widgets always below the feature row, never inside a column */
.prose .widget-panel {
  display: block;
  width: 100%;
  clear: both;
  grid-column: 1 / -1;
}

.feature-card:hover {
  transform: scale(1.02);
  background: var(--card-hover);
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-card strong {
  display: block;
  color: var(--neon-start);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.feature-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.data-table caption {
  caption-side: top;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}

.data-table th {
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: var(--white);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.data-table td {
  padding: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--card-hover);
}

.data-table td b {
  color: var(--gold-light);
}

.widget-panel {
  display: block;
  width: 100%;
  clear: both;
  background: linear-gradient(145deg, #151829 0%, #1a1f38 100%);
  border: 1px solid rgba(108, 59, 255, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 0 24px rgba(108, 59, 255, 0.12);
}

.widget-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--gold-light);
  padding-left: 0;
}

.widget-panel h2::before {
  display: none;
}

.widget-panel .btn-widget {
  margin-top: 0.75rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-panel .btn-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 59, 255, 0.45);
}

.widget-panel input[type='range'] {
  width: 100%;
  max-width: 320px;
  margin: 0.5rem 0;
  accent-color: var(--cta-start);
}

.widget-panel label {
  display: block;
  color: var(--text-secondary);
  margin: 0.35rem 0;
  cursor: pointer;
}

.widget-panel .result {
  margin-top: 0.75rem;
  color: var(--neon-start);
  font-weight: 600;
  font-size: 0.95rem;
}

.meter {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cta-start), var(--gold));
  transition: width 0.35s ease;
  border-radius: 99px;
}

.slots-lobby {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.slot-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}

.slot-card .thumb {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.slot-card strong {
  display: block;
  font-size: 0.8rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.slot-card .btn-widget {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.75rem;
}

.app-bonus {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 45, 122, 0.08) 100%);
}

.app-bonus p {
  margin: 0;
  color: var(--text-secondary);
}

.app-bonus b {
  color: var(--gold-light);
}

.cta-block {
  text-align: center;
  margin: 2.5rem 0 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-alt) 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.cta-block h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: rgba(11, 11, 26, 0.95);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--neon-start);
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pay-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  clip: auto;
  z-index: 10000;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
}

@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .header-inner {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    font-size: 1rem;
  }

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

  .header-buttons {
    width: 100%;
    justify-content: center;
  }

  .btn-register,
  .btn-login,
  .btn-cta {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    min-height: 42px;
  }

  .hero {
    padding: 1.5rem 1rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .content-card {
    padding: 1.15rem 1rem;
    border-radius: 14px;
    margin: 1rem 0;
  }

  .container {
    padding: 0 0.85rem 1.5rem;
  }

  .breadcrumbs {
    padding: 0.6rem 0.85rem 0;
    font-size: 0.72rem;
  }

  .prose h2 {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    margin: 1.5rem 0 0.65rem;
    padding-left: 1rem;
  }

  .prose h2::before {
    width: 3px;
  }

  .prose h3 {
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
  }

  .prose p,
  .prose li {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .prose ol,
  .prose ul {
    margin: 0.65rem 0 0.85rem;
    padding-left: 1.2rem;
  }

  .feature-grid {
    gap: 0.65rem;
    margin: 0.85rem 0;
  }

  .feature-card {
    padding: 0.85rem;
  }

  .feature-card strong {
    font-size: 0.85rem;
  }

  .feature-card span {
    font-size: 0.8rem;
  }

  .app-bonus {
    padding: 0.75rem 0.9rem;
    margin: 0.85rem 0;
  }

  .app-bonus p {
    font-size: 0.8rem;
  }

  .widget-panel {
    padding: 1rem;
    margin: 1.25rem 0;
  }

  .widget-panel h2 {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .widget-panel p,
  .widget-panel label,
  .widget-panel .result {
    font-size: 0.8rem;
  }

  .widget-panel .btn-widget {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .cta-block {
    padding: 1.25rem 1rem;
    margin: 1.25rem 0 0.75rem;
  }

  .cta-block h2 {
    font-size: 1.15rem;
  }

  .cta-block p,
  .cta-note {
    font-size: 0.8rem;
  }

  .site-footer p {
    font-size: 0.75rem;
  }

  .pay-chip {
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
  }

  .data-table {
    min-width: 0;
  }

  .table-wrapper {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: block;
  }

  .data-table tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }

  .data-table td:last-child {
    border-bottom: none;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    text-align: left;
    color: var(--text-muted);
    flex: 1;
    font-size: 0.72rem;
  }

  .data-table caption {
    padding: 0 0 0.4rem;
    font-size: 0.72rem;
  }

  .slots-lobby {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .slot-card {
    padding: 0.55rem;
  }

  .slot-card .thumb {
    font-size: 1.35rem;
  }

  .slot-card strong {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 0.8125rem;
  }

  .hero h1 {
    font-size: 1.2rem;
  }

  .prose h2 {
    font-size: 1rem;
  }

  .prose p,
  .prose li {
    font-size: 0.8125rem;
  }
}
