*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a12;
  --bg-card: #14141f;
  --bg-card-hover: #1c1c2a;
  --pink: #ff00b2;
  --blue: #5f72ff;
  --gold: #fbbf24;
  --text: #f0f0f5;
  --muted: #8888a0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --header-h: 52px;
  --nav-h: 60px;
  --banner-ratio: 1920 / 613;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Rajdhani', sans-serif;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 2px);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.page-wrap {
  width: 100%;
  min-height: 100vh;
}

.container {
  width: 100%;
  padding: 0 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #9a006e 0%, #6b004d 100%);
  backdrop-filter: blur(12px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  animation: logo-float 2.4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo img { animation: none; }
}

.header-rtp {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-rtp img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c8008f);
  color: #fff;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 14px;
  border-radius: 8px;
  width: 100%;
}

.btn-glow { box-shadow: 0 0 18px rgba(255, 0, 178, 0.3); }

.btn-play {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: linear-gradient(135deg, var(--pink), #a8007a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Banner */
.hero-banner { width: 100%; }

.banner-slider { position: relative; width: 100%; }

.banner-viewport {
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--banner-ratio);
  background: #0a0a12;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a12;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-arrow--prev { left: 8px; }
.banner-arrow--next { right: 8px; }
.banner-arrow svg { width: 16px; height: 16px; pointer-events: none; }

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
}

.banner-dot.active { background: var(--pink); }

/* Banner action buttons */
.banner-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 12px rgba(255, 255, 255, 0.12);
}

.banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 8px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s;
  text-align: center;
  color: #fff;
}

.banner-btn:active {
  opacity: 0.88;
  filter: brightness(0.95);
}

.banner-btn--login,
.banner-btn--link {
  background: var(--pink);
  color: #fff;
}

.banner-btn--daftar,
.banner-btn--rtp {
  background: linear-gradient(90deg, #00c8f0 0%, var(--blue) 52%, #8b5cf6 100%);
  color: #fff;
}

/* Game search */
.game-search {
  padding: 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.game-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.game-search-field:focus-within {
  border-color: rgba(255, 0, 178, 0.45);
}

.game-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}

.game-search-input {
  flex: 1;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.game-search-input::placeholder {
  color: var(--muted);
}

.game-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.game-search-empty {
  margin-top: 16px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.game-card.is-hidden {
  display: none;
}

/* Section */
.section { padding: 16px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.section-title--gold { color: var(--gold); }

.section-link {
  font-size: 11px;
  color: var(--pink);
  font-weight: 500;
}

/* Games grid with COBA MAIN */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.game-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-body { padding: 0; }

.game-card--more {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.game-card--more:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.game-card-thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.game-card-thumb--more svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.game-card--more .game-name {
  color: var(--gold);
  padding-bottom: 8px;
}

.game-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: 6px 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Partner */
.partner-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Provider resmi */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.provider-logo-item {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  overflow: hidden;
}

.provider-logo-item img {
  position: absolute;
  max-width: 88%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.provider-logo-item .logo-active { opacity: 0; }
.provider-logo-item:hover .logo-default { opacity: 0; }
.provider-logo-item:hover .logo-active { opacity: 1; }
.provider-logo-item:hover {
  border-color: rgba(255, 0, 178, 0.25);
  background: rgba(255, 0, 178, 0.04);
}

/* SEO content — like competitor footer article */
.seo-content {
  padding: 20px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.seo-content h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--pink);
  text-align: center;
}

.seo-content h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 22px 0 10px;
  color: var(--gold);
}

.seo-content h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 16px 0 8px;
  color: var(--text);
}

.seo-content em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
  background: var(--bg);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.65;
}

.seo-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.seo-content p:last-child { margin-bottom: 0; }

.seo-content strong { color: var(--text); }

/* SEO Bullet List */
.seo-bullet-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-bullet-list li {
  position: relative;
  padding: 10px 14px 10px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.seo-bullet-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* SEO Numbered List */
.seo-numbered-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-numbered-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 10px 14px 10px 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #a8007a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}

.seo-numbered-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* SEO Table */
.seo-table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  min-width: 460px;
}

.seo-table thead {
  background: linear-gradient(135deg, rgba(255, 0, 178, 0.15), rgba(95, 114, 255, 0.12));
}

.seo-table th {
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.seo-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.seo-table tbody tr:hover {
  background: rgba(255, 0, 178, 0.04);
}

.seo-table td strong {
  color: var(--text);
  font-weight: 600;
}

.seo-content a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-link-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-link-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.seo-link-list a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--gold);
}

.seo-link-list .link-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.seo-link-list .link-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.seo-faq-item a {
  color: var(--gold);
  font-weight: 600;
}

.seo-faq {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.seo-faq-item summary {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  line-height: 1.45;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--gold);
  font-weight: 700;
}

.seo-faq-item[open] summary::after { content: '−'; }

.seo-faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}

.seo-faq-item p {
  padding: 12px 14px 14px;
  margin-bottom: 0;
  font-size: 12px;
}

/* Site footer */
.site-footer {
  padding: 16px 12px 14px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-certs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}

.cert-item {
  position: relative;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.cert-item span {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.cert-item img {
  height: 100%;
  max-height: 28px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.cert-item .logo-active {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.cert-item:hover .logo-default { opacity: 0; }
.cert-item:hover .logo-active { opacity: 1; }

.cert-item--dmca {
  height: auto;
}

.cert-item--dmca a {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.cert-item--dmca img {
  height: 28px;
  width: auto;
  max-height: 28px;
  object-fit: contain;
}

.site-footer p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.footer-responsible {
  margin-top: 8px !important;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.footer-heart {
  color: #ef4444;
}

/* Toast */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #7a0058;
  height: var(--nav-h);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  padding: 6px 0;
}

.nav-item img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.nav-item span {
  font-family: var(--font-display);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-item.active img { opacity: 1; }
.nav-item.active span { color: #fff; font-weight: 700; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #000;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.text-center { text-align: center; }

/* Responsive — full width, scale content on larger screens */
@media (min-width: 640px) {
  .container { padding: 0 16px; }
  .header-top { padding: 8px 16px; }
  .seo-content { padding: 20px 16px; }
  .seo-content h1 { font-size: 22px; }
}

@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .banner-actions { gap: 2px; }
  .game-search { padding: 12px 16px; }
  .game-name { font-size: 14px; padding: 8px 6px 0; }
  .btn-play { font-size: 14px; padding: 9px 0; }

  .logo img { height: 32px; }
  .header-rtp img { height: 42px; max-width: 200px; }
  .btn { font-size: 13px; padding: 8px 16px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  .header-top { padding: 10px 24px; }
}
