@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-dark: #0a0a12;
  --bg-card: #12121e;
  --bg-card2: #1a1a2e;
  --gold: #f5c518;
  --gold2: #e6a817;
  --red: #e63946;
  --green: #2ecc71;
  --blue: #3a86ff;
  --purple: #7b2ff7;
  --border: rgba(245,197,24,0.2);
  --text: #e8e8f0;
  --text-dim: #888;
  --glow-gold: 0 0 20px rgba(245,197,24,0.5);
  --glow-red: 0 0 20px rgba(230,57,70,0.5);
  --glow-green: 0 0 20px rgba(46,204,113,0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Particles */
.particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 20px rgba(245,197,24,0.3);
  padding: 0 20px;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; }
.logo-text { font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 900; color: var(--gold); letter-spacing: 2px; }
.logo-accent { color: #fff; }
.header-right { display: flex; align-items: center; gap: 20px; }
.jackpot-ticker {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(230,57,70,0.15); border: 1px solid var(--red);
  border-radius: 8px; padding: 6px 14px;
}
.ticker-label { font-size: 0.65rem; font-weight: 700; color: var(--red); letter-spacing: 2px; }
.ticker-value { font-family: 'Orbitron', monospace; font-size: 0.95rem; color: var(--gold); font-weight: 700; }
.user-balance-header {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(245,197,24,0.1); border: 1px solid var(--gold);
  border-radius: 8px; padding: 6px 14px;
}
.bal-label { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.bal-value { font-family: 'Orbitron', monospace; font-size: 1rem; color: #fff; font-weight: 700; }

/* Warning Banner */
.warning-banner {
  background: linear-gradient(90deg, #7b2ff7, #e63946, #7b2ff7);
  background-size: 200% auto;
  animation: bannerMove 3s linear infinite;
  color: #fff; text-align: center;
  padding: 8px; font-size: 0.82rem; letter-spacing: 1px;
  position: relative; z-index: 10;
}
@keyframes bannerMove { 0%{background-position:0%} 100%{background-position:200%} }

/* Layout */
.main-layout {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr 260px;
  gap: 18px; padding: 18px; position: relative; z-index: 1;
}

/* Panels */
.left-panel, .right-panel { display: flex; flex-direction: column; gap: 14px; }
.panel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.panel-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
.stat-row span:last-child { font-family: 'Orbitron', monospace; font-size: 0.85rem; }
.stat-row.win span:last-child { color: var(--green); }
.stat-row.loss span:last-child { color: var(--red); }
.stat-row.profit span:last-child { color: var(--gold); font-weight: 700; }

.combo-list { display: flex; flex-direction: column; gap: 6px; }
.combo-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.03); border-radius: 6px; padding: 6px 10px;
  font-size: 1.1rem;
}
.combo-multi { font-family: 'Orbitron', monospace; font-size: 0.75rem; color: var(--gold); font-weight: 700; }
.jackpot-combo { border: 1px solid var(--gold); background: rgba(245,197,24,0.08); }
.jackpot-combo .combo-multi { color: var(--red); animation: pulse 1s ease-in-out infinite; }

.danger-card { border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.05); }
.fact-text { font-size: 0.83rem; line-height: 1.6; color: #ccc; margin-bottom: 10px; min-height: 60px; }
.fact-btn {
  width: 100%; padding: 8px; background: rgba(230,57,70,0.2);
  border: 1px solid var(--red); color: var(--red); border-radius: 6px;
  cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
}
.fact-btn:hover { background: var(--red); color: #fff; }

/* Log */
.log-area {
  max-height: 280px; overflow-y: auto; display: flex;
  flex-direction: column; gap: 4px; margin-bottom: 10px;
}
.log-area::-webkit-scrollbar { width: 4px; }
.log-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.log-area::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.log-empty { color: var(--text-dim); font-size: 0.8rem; text-align: center; padding: 20px 0; }
.log-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; border-radius: 5px; font-size: 0.78rem;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.log-item.win { background: rgba(46,204,113,0.12); border-left: 3px solid var(--green); }
.log-item.loss { background: rgba(230,57,70,0.12); border-left: 3px solid var(--red); }
.log-item.jackpot { background: rgba(245,197,24,0.15); border-left: 3px solid var(--gold); }
.log-amount { font-family: 'Orbitron', monospace; font-size: 0.75rem; }
.log-amount.plus { color: var(--green); }
.log-amount.minus { color: var(--red); }
.clear-log-btn {
  width: 100%; padding: 7px; background: transparent;
  border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim);
  border-radius: 6px; cursor: pointer; font-size: 0.78rem; transition: all 0.2s;
}
.clear-log-btn:hover { border-color: var(--red); color: var(--red); }
.bigwin-list { display: flex; flex-direction: column; gap: 5px; max-height: 180px; overflow-y: auto; }
.bigwin-item {
  background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.2);
  border-radius: 6px; padding: 6px 10px; font-size: 0.78rem;
  display: flex; justify-content: space-between;
}
.bigwin-amount { color: var(--gold); font-family: 'Orbitron', monospace; font-size: 0.75rem; }

/* ===== SLOT MACHINE ===== */
.slot-center { display: flex; flex-direction: column; gap: 16px; }

.slot-machine {
  background: linear-gradient(180deg, #1e1e35 0%, #12121e 100%);
  border: 2px solid var(--gold); border-radius: 20px;
  padding: 20px; box-shadow: var(--glow-gold), inset 0 0 40px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.slot-machine::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { 0%{left:-100%} 100%{left:200%} }

.machine-top { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.machine-title {
  font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900;
  color: var(--gold); letter-spacing: 6px; text-shadow: var(--glow-gold);
}
.machine-lights { display: flex; gap: 10px; margin-top: 10px; }
.light {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: var(--glow-gold);
  animation: blink 0.8s ease-in-out infinite alternate;
}
.light:nth-child(2) { animation-delay: 0.16s; }
.light:nth-child(3) { animation-delay: 0.32s; }
.light:nth-child(4) { animation-delay: 0.48s; }
.light:nth-child(5) { animation-delay: 0.64s; }
@keyframes blink { 0%{opacity:1} 100%{opacity:0.2} }

/* Reels */
.reels-container {
  display: flex; gap: 10px; justify-content: center;
  background: #070711; border: 3px solid rgba(245,197,24,0.3);
  border-radius: 14px; padding: 10px; margin-bottom: 12px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}
.reel-wrapper {
  flex: 1; max-width: 160px;
  background: #0d0d1a; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(245,197,24,0.2);
  height: 90px; position: relative;
  display: flex; align-items: center; justify-content: center;
}

.reel { width: 100%; height: 100%; overflow: hidden; position: relative; }
.reel-strip {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.reel-symbol {
  width: 100%; height: 90px; display: flex;
  align-items: center; justify-content: center;
  font-size: 3rem; user-select: none;
  flex-shrink: 0;
}

/* Payline */
.win-line {
  height: 3px; background: transparent; border-radius: 2px;
  margin: -6px 0 6px; transition: all 0.3s;
}
.win-line.active { background: var(--gold); box-shadow: var(--glow-gold); }

/* Result */
.result-display {
  text-align: center; padding: 10px;
  background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}
.result-text { font-family: 'Orbitron', monospace; font-size: 0.95rem; color: var(--text); }
.result-text.win { color: var(--green); text-shadow: var(--glow-green); }
.result-text.loss { color: var(--red); }
.result-text.jackpot { color: var(--gold); text-shadow: var(--glow-gold); animation: pulse 0.5s ease-in-out infinite; }

/* Bet Area */
.bet-area { margin-bottom: 12px; }
.bet-selector {
  display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 8px;
}
.bet-minus, .bet-plus {
  width: 44px; height: 44px; border: 2px solid var(--gold); background: rgba(245,197,24,0.1);
  color: var(--gold); font-size: 1.4rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.bet-minus { border-radius: 8px 0 0 8px; }
.bet-plus { border-radius: 0 8px 8px 0; }
.bet-minus:hover, .bet-plus:hover { background: var(--gold); color: #000; }
.bet-display {
  flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center;
  padding: 6px 16px; background: rgba(0,0,0,0.4); border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.bet-label { font-size: 0.6rem; letter-spacing: 3px; color: var(--text-dim); }
.bet-amount { font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.bet-coin { font-size: 0.65rem; color: var(--text-dim); }
.bet-presets { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.preset-btn {
  padding: 5px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); border-radius: 20px; cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
}
.preset-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,197,24,0.1); }
.preset-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* Spin Buttons */
.spin-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.btn-spin {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 8px; border-radius: 12px; cursor: pointer; transition: all 0.2s;
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #1e3a1e, #2ecc71);
  border: 2px solid var(--green); color: #fff; gap: 4px;
  box-shadow: 0 4px 15px rgba(46,204,113,0.3);
}
.btn-spin:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,204,113,0.5); }
.btn-spin:active { transform: translateY(0); }
.btn-spin:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-spin-multi { background: linear-gradient(135deg, #1e1e3a, #3a86ff); border-color: var(--blue); box-shadow: 0 4px 15px rgba(58,134,255,0.3); }
.btn-spin-multi:hover { box-shadow: 0 6px 20px rgba(58,134,255,0.5); }
.btn-spin-max { background: linear-gradient(135deg, #3a1e1e, #e63946); border-color: var(--red); box-shadow: 0 4px 15px rgba(230,57,70,0.3); }
.btn-spin-max:hover { box-shadow: 0 6px 20px rgba(230,57,70,0.5); }
.spin-icon { font-size: 1.3rem; }

/* Auto Spin */
.auto-spin-area { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 12px; }
.auto-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--text-dim); }
.auto-btn {
  padding: 5px 12px; background: rgba(123,47,247,0.15); border: 1px solid rgba(123,47,247,0.4);
  color: #a78bfa; border-radius: 20px; cursor: pointer; font-size: 0.78rem; transition: all 0.2s;
}
.auto-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.auto-stop { background: rgba(230,57,70,0.15); border-color: var(--red); color: var(--red); }
.auto-stop:hover { background: var(--red); color: #fff; }
.machine-bottom { display: flex; justify-content: center; margin-top: 8px; }
.rtp-info { font-size: 0.75rem; color: var(--text-dim); }
.rtp-info span { color: var(--gold); font-family: 'Orbitron', monospace; }

/* Saldo Card */
.saldo-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.saldo-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.saldo-info { flex: 1; min-width: 140px; }
.saldo-label { font-size: 0.7rem; letter-spacing: 3px; color: var(--text-dim); }
.saldo-amount {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  color: var(--gold); text-shadow: var(--glow-gold); line-height: 1.1;
  word-break: break-all; overflow-wrap: anywhere;
}
.saldo-koin { font-size: 0.75rem; color: var(--text-dim); }
.saldo-actions { flex: 2; min-width: 240px; }
.topup-row { display: flex; gap: 8px; margin-bottom: 8px; }
.topup-input {
  flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #fff; font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.topup-input:focus { border-color: var(--gold); }
.topup-input::placeholder { color: var(--text-dim); }
.btn-topup {
  padding: 10px 18px; background: linear-gradient(135deg, #1e3a1e, #2ecc71);
  border: 2px solid var(--green); color: #fff; border-radius: 8px;
  cursor: pointer; font-weight: 700; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap;
}
.btn-topup:hover { box-shadow: var(--glow-green); transform: translateY(-1px); }
.quick-topup { display: flex; gap: 8px; flex-wrap: wrap; }
.qtop-btn {
  padding: 6px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); border-radius: 20px; cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
}
.qtop-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,197,24,0.1); }
.danger-btn:hover { border-color: var(--red) !important; color: var(--red) !important; background: rgba(230,57,70,0.1) !important; }

/* Zeus / Image Symbol */
.symbol-img {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: 8px; display: block;
}

/* Win Chance Card */
.winchance-card { border-color: rgba(245,197,24,0.25); }
.wc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
}
.wc-val {
  font-family: 'Orbitron', monospace; font-size: 0.8rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.wc-val.low  { background: rgba(230,57,70,0.2);   color: #e63946; }
.wc-val.mid  { background: rgba(255,159,28,0.2);  color: #ff9f1c; }
.wc-val.high { background: rgba(245,197,24,0.2);  color: var(--gold); }
.wc-val.max  { background: rgba(46,204,113,0.2);  color: var(--green); }
.wc-warning  { font-size: 0.75rem; color: var(--gold); margin-top: 8px; text-align: center; }
.wc-myth     { font-size: 0.68rem; color: var(--red); text-align: center; }


/* Jackpot Overlay */
.jackpot-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85); align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.jackpot-overlay.show { display: flex; }
.jackpot-content {
  text-align: center; padding: 50px 40px;
  background: linear-gradient(135deg, #1a1a00, #2a2000);
  border: 3px solid var(--gold); border-radius: 24px;
  box-shadow: var(--glow-gold), 0 0 60px rgba(245,197,24,0.3);
  animation: jackpotPop 0.5s ease;
}
@keyframes jackpotPop { from{transform:scale(0.5);opacity:0} to{transform:scale(1);opacity:1} }
.jackpot-emoji { font-size: 5rem; animation: spin 0.5s linear infinite; }
@keyframes spin { from{transform:rotateY(0)} to{transform:rotateY(360deg)} }
.jackpot-title {
  font-family: 'Orbitron', monospace; font-size: 3rem; font-weight: 900;
  color: var(--gold); text-shadow: var(--glow-gold); letter-spacing: 6px; margin: 10px 0;
  animation: pulse 0.5s ease-in-out infinite;
}
.jackpot-amount { font-family: 'Orbitron', monospace; font-size: 2rem; color: #fff; margin-bottom: 24px; }
.jackpot-close {
  padding: 14px 40px; background: linear-gradient(135deg, var(--gold), var(--gold2));
  border: none; border-radius: 10px; color: #000; font-weight: 900;
  font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
}
.jackpot-close:hover { transform: scale(1.05); box-shadow: var(--glow-gold); }

/* Confetti */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti-piece {
  position: absolute; width: 10px; height: 10px; top: -10px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Spinning reel effect */
.reel-spinning-effect {
  filter: blur(1px) brightness(1.2);
}

/* ===== ZEUS MASCOT ===== */
.zeus-mascot {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  cursor: pointer; user-select: none;
  animation: zeusFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(245,197,24,0.6));
  transition: transform 0.2s;
}
.zeus-mascot:hover { transform: scale(1.08); }
.zeus-img {
  width: 130px; height: auto; object-fit: contain;
  border-radius: 0; border: none; box-shadow: none;
  display: block; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}
.zeus-bubble {
  position: absolute; bottom: 130px; right: 0px;
  background: linear-gradient(135deg, #1a1a2e, #2a2a50);
  border: 2px solid var(--gold); border-radius: 12px 12px 0 12px;
  padding: 8px 14px; font-size: 0.82rem; white-space: nowrap;
  color: var(--gold); font-weight: 600;
  box-shadow: 0 0 12px rgba(245,197,24,0.3);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.zeus-bubble.show { opacity: 1; }
.zeus-bubble::after {
  content: ''; position: absolute; bottom: -12px; right: 14px;
  border: 6px solid transparent; border-top-color: var(--gold);
}
@keyframes zeusFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; }
  .left-panel, .right-panel { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .left-panel, .right-panel { grid-template-columns: 1fr; }
  .spin-controls { grid-template-columns: 1fr 1fr; }
  .btn-spin-max { grid-column: span 2; }
  .saldo-main { flex-direction: column; }
  .header-right { gap: 8px; }
  .ticker-value { font-size: 0.75rem; }
  .logo-text { font-size: 1.1rem; }
  .machine-title { font-size: 1rem; letter-spacing: 3px; }
}