/* =========================================================
   GamblerUnion – Global Style
   ========================================================= */

/* Reset / Base */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #050505;
  color: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================================================
   Topbar / Header
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #242424;
}

.logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .4px;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0b0b;
  border: 1px solid #242424;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.wallet a {
  text-decoration: underline;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

footer {
  border-top: 1px solid #242424;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #a1a1aa;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  border: 1px solid #242424;
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #0b0b0b, #050505);
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.hero p {
  margin-top: 8px;
  color: #a1a1aa;
  max-width: 680px;
}

.hero .meta {
  margin-top: 6px;
  font-size: 13px;
  color: #9ca3af;
}

/* =========================================================
   Buttons
   ========================================================= */
button {
  font-family: inherit;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cta {
  display: inline-block;
  margin-top: 14px;
  background: #22c55e;
  color: #022c22;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
}

.cta.secondary {
  background: #0b0b0b;
  color: #fff;
  border: 1px solid #242424;
}

/* =========================================================
   Cards / Grid
   ========================================================= */
.grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #0b0b0b;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 18px;
  transition: border .2s ease, transform .1s ease;
}

.card:hover {
  border-color: #22c55e;
  transform: translateY(-1px);
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card p {
  margin: 6px 0 12px;
  color: #a1a1aa;
  font-size: 14px;
}

.thumb {
  height: 120px;
  background: #050505;
  border-radius: 14px;
  border: 1px solid #242424;
  margin-bottom: 12px;
}

/* =========================================================
   Forms
   ========================================================= */
input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #242424;
  background: #050505;
  color: #ffffff;
  font-size: 14px;
}

input::placeholder {
  color: #6b7280;
}

label {
  font-size: 13px;
  color: #d4d4d8;
}

/* =========================================================
   Slot Game
   ========================================================= */
.slot-wrap {
  text-align: center;
}

.slot {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
}

.reel {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: #050505;
  border: 1px solid #242424;
  border-radius: 18px;
}

.spin-btn {
  margin-top: 10px;
  padding: 14px 26px;
  border-radius: 16px;
  border: 0;
  background: #22c55e;
  color: #022c22;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

.status {
  margin-top: 12px;
  font-weight: 700;
}

/* =========================================================
   Tables / Lists (Admin, Wallet, Leaderboard)
   ========================================================= */
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #242424;
}

.row small {
  color: #9ca3af;
}

/* =========================================================
   Bottom Navigation (Mobile)
   ========================================================= */
.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  border-top: 1px solid #242424;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  z-index: 9999;
}

.bottomnav a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #a1a1aa;
}

.bottomnav a b {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 780px) {
  .bottomnav {
    display: flex;
    gap: 6px;
  }

  body {
    padding-bottom: 74px;
  }

  .hero h1 {
    font-size: 26px;
  }
}
/* =========================
   Onboarding Spotlight
   ========================= */
.spotlight {
  position: relative;
  z-index: 1001;
  box-shadow:
    0 0 0 4px #22c55e,
    0 0 0 9999px rgba(0,0,0,.75);
  border-radius: 18px;
}

.onboarding-hint {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b0b0b;
  border: 1px solid #22c55e;
  padding: 14px 18px;
  border-radius: 16px;
  z-index: 1002;
  font-weight: 700;
}
/* ===== High-level UI polish ===== */
.hero {
  background: radial-gradient(1200px 500px at 10% -10%, rgba(34,197,94,.22), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(56,189,248,.18), transparent 55%),
              linear-gradient(135deg, #0b0b0b, #050505);
}

.card {
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(34,197,94,.10), transparent 60%),
    radial-gradient(700px 220px at 80% 0%, rgba(56,189,248,.08), transparent 60%),
    #0b0b0b;
}

button, .cta {
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #242424;
  background:#050505;
  font-size:12px;
  color:#d4d4d8;
}

.badge-dot {
  width:8px;height:8px;border-radius:999px;background:#22c55e;
}

.bottomnav a.active b { transform: translateY(-1px); }
.bottomnav a.active { color:#fff; }
/* ====== Colorful UX Add-ons ====== */
.notice-green{
  border:1px solid #22c55e;
  background: rgba(34,197,94,.08);
  color:#d1fae5;
  padding:12px 14px;
  border-radius:16px;
  font-weight:800;
}

.h2{
  margin:28px 0 12px;
  font-size:18px;
  font-weight:900;
}

.card.grad-1{ background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(11,11,11,1)); }
.card.grad-2{ background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(11,11,11,1)); }
.card.grad-3{ background: linear-gradient(135deg, rgba(168,85,247,.14), rgba(11,11,11,1)); }
.card.grad-4{ background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(11,11,11,1)); }

.btn{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid #242424;
  background:#050505;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.btn:hover{ border-color:#22c55e; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #242424;
  background:#0b0b0b;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:#d4d4d8;
}
.badge.green{ border-color:#22c55e; color:#d1fae5; }
.badge.blue{ border-color:#38bdf8; color:#dbeafe; }
.badge.purple{ border-color:#a855f7; color:#f3e8ff; }
.badge.gold{ border-color:#fbbf24; color:#fff7ed; }
