@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Bebas+Neue&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary:   #060a12;
  --bg-secondary: #0c1320;
  --bg-card:      #0f1826;
  --bg-elevated:  #1a2742;

  --accent:       #32a8ea;
  --accent-light: #6cc5f5;
  --accent-dark:  #1e78b8;
  --accent-cyan:  #22d3ee;

  --text:         #f1f5fb;
  --text-dim:     #a0b4cc;
  --text-muted:   #6b7f99;

  --border:       rgba(100, 170, 230, 0.1);
  --border-glow:  rgba(50, 168, 234, 0.35);

  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #32a8ea 55%, #4a90ff 100%);
  --grad-accent:  linear-gradient(135deg, #32a8ea 0%, #22d3ee 100%);
  --grad-shine:   linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg: 0 10px 50px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 40px rgba(50,168,234,0.25);
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg-primary);
  min-height: 100vh;
  padding-bottom: 70px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(50,168,234,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(34,211,238,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(50,168,234,0.1) 0%, transparent 55%),
    linear-gradient(180deg, #060a12 0%, #0a1120 50%, #060a12 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none; z-index: -1;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(10,18,32,0.3); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(50,168,234,0.4), rgba(34,211,238,0.3)); border-radius: 10px; }

.main-container { padding-top: 90px; }

/* ============ Big CTA buttons (LOGIN / DAFTAR) ============ */
.cta-row { margin: 18px 0 22px; }

.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: 0.3s;
  color: #fff;
}
.btn-cta i { font-size: 18px; }
.btn-cta::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: var(--grad-shine);
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
  pointer-events: none;
}
.btn-cta:hover::before { left: 160%; }

.btn-login {
  background: linear-gradient(135deg, rgba(50,168,234,0.12), rgba(34,211,238,0.06)), var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 25px rgba(50,168,234,0.2), inset 0 0 24px rgba(50,168,234,0.08);
}
.btn-login:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(50,168,234,0.3), rgba(34,211,238,0.18)), var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(50,168,234,0.4);
}

.btn-daftar {
  background: var(--grad-primary);
  background-size: 200% 200%;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 28px rgba(50,168,234,0.55), 0 0 50px rgba(34,211,238,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: pulseGlowCTA 2.6s ease-in-out infinite, gradShift 7s ease infinite;
}
.btn-daftar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 45px rgba(50,168,234,0.75), 0 0 70px rgba(34,211,238,0.5);
}

@keyframes pulseGlowCTA {
  0%,100% { box-shadow: 0 8px 28px rgba(50,168,234,0.55), 0 0 50px rgba(34,211,238,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
  50%     { box-shadow: 0 12px 40px rgba(50,168,234,0.8), 0 0 70px rgba(34,211,238,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ============ Provider pills row ============ */
.icon-prov {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 4px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  background: linear-gradient(180deg, rgba(50,168,234,0.04) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.icon-prov::-webkit-scrollbar { height: 6px; }
.icon-prov::-webkit-scrollbar-thumb { background: rgba(50,168,234,0.3); border-radius: 6px; }

.icon-card-bg {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(50,168,234,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: 0.3s;
  min-width: 90px;
  color: var(--text-dim);
}
.icon-card-bg img { width: 42px; height: 42px; object-fit: contain; }
.icon-card-bg p { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; white-space: nowrap; }
.icon-card-bg:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(50,168,234,0.15), rgba(34,211,238,0.05));
  color: #fff;
  box-shadow: 0 6px 20px rgba(50,168,234,0.3);
}
.icon-card-bg.active {
  border-color: var(--accent);
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(50,168,234,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ============ Section header ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), transparent);
  box-shadow: 0 0 10px rgba(50,168,234,0.5);
}

.title-game {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; font-family: 'JetBrains Mono', monospace; }
.section-sub i { color: var(--accent); }

.section-badge {
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(50,168,234,0.2), rgba(34,211,238,0.08));
  border: 1px solid var(--border-glow);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(50,168,234,0.15);
}

/* ============ Game grid card wrapper ============ */
.game-grid { padding-bottom: 40px; }

.empty-games {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-games p { margin-top: 12px; font-size: 14px; }

/* ============ Game search ============ */
.game-search {
  margin: 0 0 18px;
  display: flex;
  justify-content: flex-end;  /* rata kanan di desktop */
}
.game-search__wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;           /* desktop/tablet lebih pendek */
  background: linear-gradient(135deg, rgba(50,168,234,0.08), rgba(10,18,32,0.6));
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  transition: 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (max-width: 767px) {
  .game-search { justify-content: stretch; }
  .game-search__wrap { max-width: 100%; }  /* mobile: full width seperti sebelumnya */
}
.game-search__wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(50,168,234,0.15), 0 4px 20px rgba(50,168,234,0.3);
  background: linear-gradient(135deg, rgba(50,168,234,0.12), rgba(10,18,32,0.7));
}
.game-search__icon {
  color: var(--accent-light);
  font-size: 18px;
  margin-right: 10px;
  filter: drop-shadow(0 0 6px rgba(50,168,234,0.4));
}
.game-search__input {
  flex: 1;
  min-width: 0;
  padding: 11px 8px 11px 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.game-search__input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.game-search__clear {
  background: linear-gradient(135deg, rgba(50,168,234,0.2), rgba(34,211,238,0.08));
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
  margin-left: 8px;
}
.game-search__clear:hover {
  background: linear-gradient(135deg, rgba(50,168,234,0.4), rgba(34,211,238,0.15));
  color: #fff;
  transform: rotate(90deg);
}

/* ============ Search empty state ============ */
.search-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.search-empty i { color: var(--accent); }
.search-empty h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 14px;
  color: var(--text);
}
.search-empty p { font-size: 14px; margin-top: 6px; color: var(--text-muted); }
.search-empty__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(50,168,234,0.14), rgba(34,211,238,0.06));
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-light);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}
.search-empty__reset:hover {
  background: linear-gradient(135deg, rgba(50,168,234,0.3), rgba(34,211,238,0.15));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50,168,234,0.4);
}

/* ============ Running text ============ */
.running-text-lampiontoto {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(50,168,234,0.14), rgba(34,211,238,0.08) 50%, rgba(50,168,234,0.14)),
    linear-gradient(180deg, #0f1826 0%, #0a1120 100%);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(50,168,234,0.1);
}
.running-text-lampiontoto__content {
  display: flex;
  width: fit-content;
  animation: rtScroll 25s linear infinite;
}
.running-text-lampiontoto:hover .running-text-lampiontoto__content { animation-play-state: paused; }
@keyframes rtScroll {
  from { transform: translateX(0); } to { transform: translateX(-50%); }
}
.running-text-lampiontoto__content span {
  display: inline-block;
  white-space: nowrap;
  padding: 0 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(50,168,234,0.4);
}

/* ============ Bottom nav & up button ============ */
.btn-up {
  display: none;
  position: fixed;
  bottom: 85px;
  right: 15px;
  z-index: 99;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(50,168,234,0.5);
  font-size: 18px;
}

.nav-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 11;
  background: linear-gradient(180deg, rgba(10,18,32,0.98), rgba(6,10,18,1));
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.item-nav-bottom {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.3s;
  cursor: pointer;
  border-right: 1px solid var(--border);
}
.item-nav-bottom:last-child { border-right: none; }
.item-nav-bottom i { display: block; font-size: 20px; margin-bottom: 2px; color: var(--accent); }
.item-nav-bottom p { margin: 0; }
.item-nav-bottom:hover { background: rgba(50,168,234,0.1); color: #fff; }

/* ============ Banner carousel ============ */
.banner-wrap { margin-bottom: 18px; }
.banner-swiper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(50,168,234,0.08);
}
.banner-swiper .swiper-slide { aspect-ratio: 1920/650; overflow: hidden; background: #000; }
.banner-swiper .swiper-slide a { display: block; width: 100%; height: 100%; }
.banner-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-swiper__nav {
  width: 36px !important; height: 36px !important;
  background: linear-gradient(135deg, rgba(50,168,234,0.4), rgba(34,211,238,0.2));
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(50,168,234,0.4);
  backdrop-filter: blur(10px);
  --swiper-navigation-size: 14px;
}
.banner-swiper__nav::after { font-size: 14px !important; font-weight: 800; color: #fff; }
.banner-swiper__pagination { bottom: 10px !important; }
.banner-swiper__pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  width: 8px; height: 8px;
  opacity: 1;
  transition: 0.3s;
}
.banner-swiper__pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #32a8ea, #22d3ee);
  box-shadow: 0 0 10px rgba(50,168,234,0.7);
  width: 24px;
  border-radius: 4px;
}

/* ============ Footer — polished, no wasted space ============ */
.site-footer {
  margin: 32px 0 90px;
  padding: 0;
  background: transparent;
}
.site-footer__inner {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(50,168,234,0.08), transparent 55%),
    linear-gradient(180deg, #0f1826 0%, #0a1120 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.footer-article {
  padding: 24px 28px 20px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.75;
}
.footer-article h1,
.footer-article h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.footer-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-light);
  margin: 16px 0 8px;
}
.footer-article p { margin: 0 0 10px; color: var(--text-dim); }
.footer-article p:last-child { margin-bottom: 0; }
.footer-article a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.footer-article a:hover { color: var(--accent-cyan); }
.footer-article ul, .footer-article ol { margin: 0 0 10px 20px; color: var(--text-dim); }
.footer-article strong { color: var(--text); font-weight: 700; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.5);
  font-size: 12px;
  color: var(--text-muted);
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
}
.footer-brand__logo {
  height: 22px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(50,168,234,0.3));
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links a {
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-sep { color: var(--text-muted); opacity: 0.5; }

@media (max-width: 640px) {
  .footer-article { padding: 20px 20px 16px; font-size: 12px; }
  .footer-article h1, .footer-article h2 { font-size: 16px; }
  .footer-bottom { padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============ Contact modal ============ */
.modal-content {
  background: linear-gradient(180deg, #0f1826 0%, #0a1120 100%);
  border: 1px solid var(--border-glow);
  color: var(--text);
}
.modal-header { border-bottom: 1px solid var(--border); }
.modal-body a { color: var(--accent-light); }
.modal-body a:hover { color: var(--accent-cyan); text-decoration: underline; }
.modal-body i { color: var(--accent); margin-right: 8px; }
.btn-close { filter: invert(1); }

@media (max-width: 1200px) {
  .container { max-width: 1100px !important; }
}
@media (max-width: 640px) {
  .title-game { font-size: 24px; }
  .main-container { padding-top: 85px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
