/* SMTOK Casino — Gold & Black Luxury PWA */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a24;
  --bg-input: #16161f;
  --gold: #d4a017;
  --gold-light: #f0c14b;
  --gold-bright: #ffd700;
  --gold-dark: #a67c00;
  --gold-gradient: linear-gradient(135deg, #f0c14b 0%, #d4a017 50%, #a67c00 100%);
  --gold-border: rgba(212, 160, 23, 0.35);
  --text: #f5f5f7;
  --text-muted: #9a9aab;
  --text-dim: #6b6b7b;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
}

/* ===== Top Header ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, #12121a 0%, rgba(10,10,15,0.95) 100%);
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(12px);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-area .crown {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 5px 12px 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}
.balance-pill .icon { font-size: 0.9rem; }
.menu-btn, .back-btn, .search-btn, .bell-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.menu-btn:active, .back-btn:active, .search-btn:active, .bell-btn:active {
  background: var(--bg-elevated);
  color: var(--gold);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(0deg, #0e0e14 0%, #12121a 100%);
  border-top: 1px solid var(--gold-border);
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.nav-item.active {
  color: var(--gold);
}
.nav-item .nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(212,160,23,0.5));
}
.nav-item.center {
  position: relative;
}
.nav-item.center .center-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 16px rgba(212,160,23,0.45);
  color: #0a0a0f;
  font-size: 1.35rem;
  border: 3px solid var(--bg);
}

/* ===== Cards & Surfaces ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-elevated {
  background: linear-gradient(160deg, #1a1a24 0%, #12121a 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ===== Welcome Banner ===== */
.welcome-banner {
  position: relative;
  margin: 12px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, #1a1408 0%, #0f0c08 50%, #1a1206 100%);
  min-height: 140px;
}
.welcome-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.welcome-banner .banner-content {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.welcome-banner .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212,160,23,0.2);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.welcome-banner h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-banner .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.btn-claim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 22px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(212,160,23,0.35);
}
.btn-claim:active { transform: scale(0.97); }

/* ===== Jackpot ===== */
.jackpot-bar {
  margin: 0 14px 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #1a1408, #12121a, #1a1408);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jackpot-bar .label {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jackpot-bar .amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

/* ===== Section Headers ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  margin-top: 6px;
}
.section-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-head .view-all {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

/* ===== Provider Grid ===== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px 16px;
}
.provider-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s;
}
.provider-card:active {
  border-color: var(--gold);
  transform: scale(0.96);
}
.provider-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.provider-card .name {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Game Grid ===== */
.game-scroll {
  display: flex;
  gap: 10px;
  padding: 0 14px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.game-scroll::-webkit-scrollbar { display: none; }
.game-card {
  flex: 0 0 110px;
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.game-card .title {
  padding: 6px 8px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Buttons ===== */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(212,160,23,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.12);
}
.form-input::placeholder { color: var(--text-dim); }

/* ===== Payment Methods ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.payment-card {
  background: var(--bg-elevated);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s;
}
.payment-card.selected {
  border-color: var(--gold);
  background: rgba(212,160,23,0.08);
}
.payment-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.payment-card .name {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Amount Chips ===== */
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.chip.selected {
  background: rgba(212,160,23,0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ===== Profile ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--bg-elevated);
}
.profile-info .name {
  font-size: 1.1rem;
  font-weight: 700;
}
.profile-info .id {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212,160,23,0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}
.menu-list {
  margin: 0 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg-elevated); }
.menu-item .icon {
  width: 22px;
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
}
.menu-item .arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon { color: var(--danger); }

/* ===== Bonus Screen ===== */
.bonus-hero {
  margin: 12px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  position: relative;
  min-height: 200px;
  background: linear-gradient(160deg, #1a1408, #0f0c08);
}
.bonus-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bonus-hero .overlay {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(0deg, rgba(10,10,15,0.85) 0%, transparent 60%);
  min-height: 200px;
  justify-content: flex-end;
}
.bonus-details {
  margin: 0 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 4px 0;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .icon { color: var(--gold); width: 20px; text-align: center; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { margin-left: auto; font-weight: 600; color: var(--text); }

/* ===== Login Screen ===== */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: radial-gradient(ellipse at 50% 0%, #1a1408 0%, #0a0a0f 55%);
  padding-bottom: 24px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .brand {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo .tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 4px;
  text-transform: uppercase;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #16161f 0%, #0f0f15 100%);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.remember-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.remember-row input[type=checkbox] { accent-color: var(--gold); }

/* ===== Utility ===== */
.page-content { padding-bottom: 8px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.px-14 { padding-left: 14px; padding-right: 14px; }
.fallback-img {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.7rem;
}

@media (min-width: 431px) {
  .app-shell { box-shadow: 0 0 40px rgba(0,0,0,0.6); }
}
