:root {
  --bg: #06080d;
  --bg-2: #0b1018;
  --panel: rgba(8, 12, 18, 0.88);
  --panel-2: rgba(13, 19, 28, 0.92);
  --gold: #ffd22f;
  --gold-soft: rgba(255, 210, 47, 0.2);
  --gold-line: rgba(255, 210, 47, 0.35);
  --green: #19ff87;
  --red: #ff5858;
  --orange: #ffb21a;
  --blue: #4aa3ff;
  --text: #f5f7fb;
  --muted: #97a3b7;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 80%, rgba(0,255,153,0.16), transparent 24%),
    radial-gradient(circle at 90% 5%, rgba(255,210,47,0.15), transparent 20%),
    linear-gradient(180deg, #040608 0%, #06080d 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 210, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 210, 47, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.06));
}

.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}
.glow-left { background: #00ff8c; left: -90px; bottom: 20px; }
.glow-right { background: #ffd22f; right: -120px; top: -80px; }

.container { width: min(1400px, calc(100% - 32px)); margin: 0 auto; }
.panel {
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.92), rgba(7, 11, 17, 0.86));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.neon-outline { position: relative; overflow: hidden; }
.neon-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,210,47,0.08), transparent);
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0 10px;
}
.brand-box {
  padding: 16px 10px;
}
.brand-logo { width: 100%; max-width: 230px; display: block; }
.main-nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.nav-btn, .icon-btn, .login-btn, .view-btn, .filter-pill, .pattern-btn {
  border: 1px solid var(--gold-line);
  background: rgba(12, 17, 25, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}
.nav-btn {
  border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 0.95rem;
}
.nav-btn.active, .nav-btn:hover { color: var(--gold); box-shadow: 0 0 20px rgba(255,210,47,0.12) inset; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 16px; font-size: 1.2rem;
}
.login-btn {
  padding: 14px 18px; border-radius: 16px; color: var(--gold); font-weight: 800;
}

.main-layout { padding-bottom: 24px; }
.hero-panel {
  display: grid; grid-template-columns: 440px 1fr; gap: 18px; padding: 24px; margin-top: 12px;
}
.big-card {
  padding: 24px; min-height: 190px;
  background: radial-gradient(circle at 20% 20%, rgba(255,210,47,0.08), transparent 38%), #071019;
  border: 1px solid rgba(0, 255, 153, 0.35);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.big-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,210,47,0.18);
  border-radius: 20px;
  pointer-events: none;
}
.card-label {
  display: inline-block; background: rgba(0,255,153,0.12); color: var(--green);
  font-size: 0.78rem; font-weight: 800; border: 1px solid rgba(0,255,153,0.25);
  padding: 8px 12px; border-radius: 999px; margin-bottom: 14px;
}
.big-card h1 {
  margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1;
  letter-spacing: 0.06em; color: var(--gold);
  text-shadow: 0 0 15px rgba(255,210,47,0.3);
}
.big-card h1 span {
  display: block; font-size: 1.15rem; letter-spacing: 0.42em; margin-top: 10px; color: #f8eaab;
}
.big-card p { color: var(--muted); margin: 18px 0 14px; }
.server-time { font-size: 1rem; color: #dce5f5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.server-time strong { color: var(--green); }
.dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat-card {
  background: rgba(9, 14, 22, 0.86); border: 1px solid rgba(255,210,47,0.18); border-radius: 20px;
  padding: 18px; display: flex; align-items: center; gap: 14px;
}
.stat-card small { display: block; color: #d1d7e2; margin-bottom: 6px; }
.stat-card strong { display: block; font-size: 2rem; color: #fff; }
.stat-card span { color: var(--gold); font-size: 0.92rem; }
.stat-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.stat-icon.purple { color: #d78cff; }
.stat-icon.blue { color: #56b0ff; }
.stat-icon.red { color: #ff5c5c; }
.stat-icon.green { color: #19ff87; }
.stat-icon.gold { color: var(--gold); }

.announcement {
  margin-top: 16px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.ann-icon, .ann-next { color: var(--gold); font-size: 1.6rem; }
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-text { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; color: #dce3ef; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.toolbar { margin-top: 16px; padding: 18px; }
.toolbar-top {
  display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(190px, 0.55fr) auto auto; gap: 14px; align-items: center;
}
.search-wrap {
  display: flex; align-items: center; gap: 12px; background: rgba(12, 16, 23, 0.95);
  border: 1px solid var(--gold-line); border-radius: 16px; padding: 0 16px;
}
.search-wrap input {
  width: 100%; height: 56px; background: transparent; border: none; outline: none; color: var(--text); font-size: 1rem;
}
.search-icon { color: var(--gold); }
.select-box {
  height: 56px; background: rgba(12, 16, 23, 0.95); border: 1px solid var(--gold-line);
  border-radius: 16px; color: var(--text); padding: 0 16px; font-size: 1rem; outline: none;
}
.status-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  padding: 12px 16px; border-radius: 14px; font-weight: 800; font-size: 0.92rem;
}
.filter-pill.active, .filter-pill:hover { box-shadow: 0 0 20px rgba(255, 210, 47, 0.12) inset; }
.filter-pill.super-hot { color: #ff6161; }
.filter-pill.hot { color: #ffb01f; }
.filter-pill.stable { color: #19ff87; }
.filter-pill.normal { color: #80b0ff; }
.view-actions { display: flex; gap: 10px; justify-content: flex-end; }
.view-btn { width: 54px; height: 54px; border-radius: 14px; font-size: 1.25rem; }
.view-btn.active { color: var(--gold); }

.content-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 18px; align-items: start;
}
.providers { padding: 16px; position: sticky; top: 16px; }
.sidebar-title { font-weight: 900; margin-bottom: 12px; color: #fff; letter-spacing: 0.04em; }
.provider-list { display: flex; flex-direction: column; gap: 6px; max-height: 740px; overflow: auto; }
.provider-item {
  display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px;
  color: #dce5f1; cursor: pointer; border: 1px solid transparent; transition: 0.2s ease;
}
.provider-item:hover, .provider-item.active {
  background: linear-gradient(90deg, rgba(255,210,47,0.20), rgba(255,210,47,0.05));
  border-color: rgba(255,210,47,0.22); color: var(--gold);
}
.provider-item span:last-child { color: #f2f5fc; }

.games-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.game-card { position: relative; overflow: hidden; padding: 10px; }
.status-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.8rem; font-weight: 900;
  padding: 7px 11px; border-radius: 999px; color: white;
}
.status-chip.super-hot { background: var(--red); }
.status-chip.hot { background: var(--orange); color: #111; }
.status-chip.stable { background: var(--green); color: #042b16; }
.status-chip.normal { background: #818691; }
.favorite-btn {
  position: absolute; top: 10px; right: 12px; z-index: 2; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(8,12,18,0.72); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
}
.thumb-wrap {
  border-radius: 18px; overflow: hidden; background: #0d1219; height: 148px; border: 1px solid rgba(255,210,47,0.12);
}
.game-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-body { padding: 12px 4px 6px; }
.game-title { font-size: 1.6rem; margin: 0 0 6px; }
.game-provider { color: var(--muted); margin-bottom: 12px; }
.rtp-meta { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.label { font-size: 0.78rem; color: #cbd4e2; display: block; margin-bottom: 4px; }
.game-rtp { display: block; font-size: 2rem; color: var(--green); }
.sparkline { width: 88px; height: 34px; }
.volatility-row { display: flex; justify-content: space-between; margin: 12px 0 10px; color: var(--muted); }
.volatility-row strong.low { color: #19ff87; }
.volatility-row strong.medium { color: #ffbd2f; }
.volatility-row strong.high { color: #ff4b4b; }
.progress-bar {
  width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 14px;
}
.progress-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #19ff87, #ffd22f 60%, #ff4b4b);
  border-radius: inherit;
}
.pattern-btn {
  width: 100%; height: 48px; border-radius: 16px; font-weight: 900; font-size: 1rem; color: var(--gold);
  background: linear-gradient(90deg, rgba(255,210,47,0.14), rgba(255,210,47,0.22));
}

.footer {
  margin: 18px auto 30px; padding: 18px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.footer-logo { width: 180px; display: block; }
.footer-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-item {
  display: flex; gap: 10px; align-items: center; color: #dde5f2;
}
.feature-item span {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold);
}
.feature-item strong { display: block; font-size: 0.95rem; }
.feature-item small { color: var(--muted); }
.footer-copy { text-align: right; color: var(--muted); }

.providers ::-webkit-scrollbar { width: 8px; }
.providers ::-webkit-scrollbar-thumb { background: rgba(255,210,47,0.24); border-radius: 999px; }

@media (max-width: 1280px) {
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr; }
  .main-nav, .topbar-actions { justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .toolbar-top { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .providers { position: static; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 18px, 1400px); }
  .hero-panel, .toolbar, .announcement, .footer { padding: 14px; }
  .big-card { padding: 18px; }
  .big-card h1 { font-size: 2.4rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .games-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-features { grid-template-columns: 1fr; }
}
