/* Seka Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:     #080808;
  --bg-surface:  #141414;
  --bg-card:     #1e1e1e;
  --bg-card2:    #1a1a1a;
  --violet:      #eab308;
  --violet-lite: #fcd34d;
  --violet-glow: rgba(234,179,8,.35);
  --green:       #22c55e;
  --green-dark:  #16a34a;
  --orange:      #a16207;
  --orange-dark: #713f12;
  --red:         #ef4444;
  --gold:        #fcd34d;
  --text:        #f3f4f6;
  --text-muted:  #9ca3af;
  --border:      rgba(255,255,255,.1);
  --radius:      12px;
  --shadow:      0 8px 32px rgba(0,0,0,.6);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: radial-gradient(circle at center, #1a1a1a 0%, #080808 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* ── Utilities ──────────────────────────────────────────── */
.hidden  { display: none !important; }
.flex    { display: flex; }
.center  { align-items: center; justify-content: center; }
.col     { flex-direction: column; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #eab308, #a16207);
  color: #fff;
  box-shadow: 0 4px 18px rgba(234,179,8,.35);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn-red {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,.35);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-lite); }

/* ── Inputs ─────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow);
}
.input::placeholder { color: var(--text-muted); }

/* ── Modal overlay ──────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  width: min(460px, 92vw);
  box-shadow: var(--shadow);
  animation: slideUp .25s ease;
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--violet-lite);
}

/* ── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  animation: slideInRight .3s ease;
  box-shadow: var(--shadow);
  max-width: 320px;
}
.toast-success { background: var(--green-dark); color: #fff; }
.toast-error   { background: #7f1d1d; color: #fca5a5; }
.toast-info    { background: #312e81; color: #a5b4fc; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0 }       to { opacity: 1 } }
@keyframes slideUp   { from { transform: translateY(24px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes slideInRight { from { transform: translateX(80px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
@keyframes pulse     { 0%,100% { opacity: 1 } 50% { opacity: .5 } }
@keyframes chipFly   { from { transform: scale(.4) translate(0,0); opacity: 0 } to { transform: scale(1) translate(var(--tx), var(--ty)); opacity: 1 } }
@keyframes cardFlip  { 0% { transform: rotateY(90deg) } 100% { transform: rotateY(0deg) } }
@keyframes spin      { to { transform: rotate(360deg) } }
@keyframes glowPulse { 0%,100%{ box-shadow: 0 0 12px var(--violet-glow) } 50%{ box-shadow: 0 0 32px var(--violet), 0 0 60px var(--violet-glow) } }

/* ── Card suit colors ───────────────────────────────────── */
.suit-red   { color: #ef4444; }
.suit-black { color: #e2e8f0; }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-green  { background: rgba(34,197,94,.15);  color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.badge-orange { background: rgba(249,115,22,.15); color: var(--orange); border: 1px solid rgba(249,115,22,.3); }
.badge-violet { background: rgba(234,179,8,.15); color: var(--violet-lite); border: 1px solid var(--border); }

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  width: 28px; height: 28px;
  border: 3px solid rgba(234,179,8,.25);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .modal { padding: 22px; }
  .btn   { padding: 9px 16px; font-size: .82rem; }
}

/* ── Casino Spinning Dice Animation (Attention Grabbing) ─────────────────── */
.nav-item#nav-casino {
  position: relative;
}
.nav-item#nav-casino .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.live-dice-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}
.live-dice-wrap svg {
  transition: filter 0.3s ease;
  animation: diceAttentionSpin 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center center;
  color: #f7cb53 !important;
  stroke: #f7cb53 !important;
}

@keyframes diceAttentionSpin {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 3px rgba(247, 203, 83, 0.4));
  }
  15% {
    transform: rotate(-18deg) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(247, 203, 83, 0.9));
  }
  35% {
    transform: rotate(360deg) scale(1.18);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1)) drop-shadow(0 0 20px rgba(230, 126, 34, 0.8));
  }
  50% {
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 4px rgba(247, 203, 83, 0.5));
  }
  65% {
    transform: rotate(342deg) scale(1.12);
    filter: drop-shadow(0 0 8px rgba(247, 203, 83, 0.8));
  }
  80% {
    transform: rotate(0deg) scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
  }
  100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 3px rgba(247, 203, 83, 0.4));
  }
}
