/* ============================================
   KELINCIGAMING v3.1 - Main Stylesheet
   ============================================ */
:root {
  --bg-dark:     #0d0d1a;
  --bg-card:     #141428;
  --bg-card2:    #1a1a35;
  --bg-input:    #1e1e38;
  --primary:     #ff6b00;
  --primary-dark:#cc5500;
  --primary-glow:rgba(255,107,0,0.35);
  --gold:        #ffd700;
  --gold-dark:   #ccac00;
  --accent-blue: #4fc3f7;
  --accent-purple:#9c27b0;
  --green:       #00e676;
  --red:         #ff1744;
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --text-light:  #ffffff;
  --border:      rgba(255,255,255,0.08);
  --border-glow: rgba(255,107,0,0.3);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(255,107,0,0.3);
  --transition:  all 0.3s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), #ff8c00, var(--primary));
  background-size: 200% 100%;
  animation: marqueeGlow 3s linear infinite;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 100;
}
.announcement-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding: 0 40px;
  font-weight: 600;
  color: #fff;
  font-size: 13px;
}
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes marqueeGlow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ HEADER ============ */
.site-header {
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}
.logo span { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}
.nav-item:hover, .nav-item.active {
  color: var(--text-light);
  background: rgba(255,107,0,0.1);
}
.nav-item.active { color: var(--primary); }
.nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 20px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8c00);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffaa00);
  color: #000;
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.btn-gold:hover { transform: translateY(-1px); color: #000; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,107,0,0.05); }
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #000; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-muted); font-size: 13px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--red); margin-top: 4px; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 40px; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-group .input-append {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}
.input-group .input-append:hover { color: var(--text); }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3, .card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.card-glow { box-shadow: 0 0 30px rgba(255,107,0,0.1); border-color: rgba(255,107,0,0.2); }

/* ============ STAT CARDS ============ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.orange { background: rgba(255,107,0,0.15); }
.stat-icon.gold { background: rgba(255,215,0,0.15); }
.stat-icon.green { background: rgba(0,230,118,0.15); }
.stat-icon.blue { background: rgba(79,195,247,0.15); }
.stat-icon.purple { background: rgba(156,39,176,0.15); }
.stat-icon.red { background: rgba(255,23,68,0.15); }
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text-light); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-change { font-size: 11px; margin-top: 4px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table .actions { display: flex; gap: 6px; }

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: rgba(0,230,118,0.15); color: var(--green); }
.badge-danger  { background: rgba(255,23,68,0.15);  color: var(--red); }
.badge-warning { background: rgba(255,215,0,0.15);  color: var(--gold); }
.badge-info    { background: rgba(79,195,247,0.15); color: var(--accent-blue); }
.badge-primary { background: rgba(255,107,0,0.15); color: var(--primary); }
.badge-secondary { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-purple { background: rgba(156,39,176,0.15); color: #ce93d8; }

/* ============ ALERTS ============ */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.2); color: #69f0ae; }
.alert-danger  { background: rgba(255,23,68,0.1);  border: 1px solid rgba(255,23,68,0.2);  color: #ff8a80; }
.alert-warning { background: rgba(255,215,0,0.1);  border: 1px solid rgba(255,215,0,0.2);  color: #ffd740; }
.alert-info    { background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.2); color: #80d8ff; }
.alert-close { margin-left: auto; cursor: pointer; opacity: 0.7; }
.alert-close:hover { opacity: 1; }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { transform: scale(0.9) translateY(-20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-light); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--red); background: rgba(255,23,68,0.1); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============ GAME CARDS ============ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.game-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.game-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-overlay .btn { transform: translateY(10px); transition: var(--transition); }
.game-card:hover .game-card-overlay .btn { transform: translateY(0); }
.game-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.game-card-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-provider { font-size: 10px; color: var(--text-muted); }
.game-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.game-tag, .badge-hot, .badge-new, .badge-jackpot, .badge-promo {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hot,  .tag-hot      { background: var(--red);    color: #fff; }
.badge-new,  .tag-new      { background: var(--green);  color: #000; }
.badge-jackpot, .tag-jackpot { background: var(--gold); color: #000; }
.badge-promo, .tag-promo   { background: var(--primary); color: #fff; }
.tag-exclusive { background: var(--accent-purple); color: #fff; }
.game-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-input));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}
.game-card-img > .game-placeholder { position: absolute; inset: 0; }

/* ============ SECTION HEADER ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-light);
}
.section-title .icon { font-size: 22px; }
.section-divider {
  height: 3px;
  width: 40px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
  margin-top: 4px;
}

/* ============ TABS ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  background: none;
  transition: var(--transition);
  padding: 0 10px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============ JACKPOT DISPLAY ============ */
.jackpot-bar {
  background: linear-gradient(135deg, #1a0a00, #2d1500);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius);
  padding: 12px 20px;
  overflow: hidden;
}
.jackpot-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  row-gap: 8px;
}
.jackpot-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 12px;
}
.jackpot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-left: 1px solid rgba(255,215,0,0.2);
  flex-shrink: 0;
}
.jackpot-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}
.jackpot-amount {
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.jackpot-item.grand .jackpot-amount,
.jackpot-item.jackpot-grand .jackpot-amount { font-size: 20px; }

/* ============ BALANCE DISPLAY ============ */
.balance-widget {
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,215,0,0.05));
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.balance-amount { font-size: 16px; font-weight: 800; color: var(--gold); }
.balance-label { font-size: 11px; color: var(--text-muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: #080815;
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text-light); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-providers { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.provider-badge {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.age-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ LOADING / SPINNER ============ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.loading-overlay.active { display: flex; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn 0.3s ease;
  box-shadow: var(--shadow);
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut { to { transform: translateX(100%); opacity: 0; } }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 13px; color: var(--text-light); }
.toast-message { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--green); }
.toast-error   .toast-icon { color: var(--red); }
.toast-warning .toast-icon { color: var(--gold); }
.toast-info    .toast-icon { color: var(--accent-blue); }

/* ============ DROPDOWN ============ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  display: none;
  animation: dropdownIn 0.2s ease;
}
.dropdown-menu.active { display: block; }
@keyframes dropdownIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text-light); }
.dropdown-item.danger:hover { background: rgba(255,23,68,0.1); color: var(--red); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ============ NOTIFICATION BELL ============ */
.notif-btn { position: relative; }
.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,107,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(255,215,0,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 16px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 28px; font-weight: 900; color: var(--gold); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============ PROVIDER SCROLL ============ */
.provider-scroll-wrap { overflow: hidden; position: relative; }
.provider-scroll-wrap::before,
.provider-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.provider-scroll-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.provider-scroll-wrap::after  { right:0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.provider-scroll {
  display: flex;
  gap: 12px;
  animation: scrollProviders 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.provider-scroll:hover { animation-play-state: paused; }
@keyframes scrollProviders { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.provider-chip:hover { border-color: var(--primary); color: var(--text); }
.provider-chip.active { border-color: var(--primary); color: var(--primary); background: rgba(255,107,0,0.08); }

/* ============ CATEGORY TABS ============ */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 70px;
  font-size: 11px;
  font-weight: 600;
}
.cat-btn .cat-icon { font-size: 22px; }
.cat-btn:hover { border-color: var(--primary); color: var(--text); }
.cat-btn.active { background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,215,0,0.05)); border-color: var(--primary); color: var(--primary); }

/* ============ SEARCH ============ */
.search-box {
  position: relative;
  max-width: 400px;
}
.search-box input {
  padding-left: 40px;
  padding-right: 40px;
  background: var(--bg-card2);
  border-color: var(--border);
  border-radius: 10px;
}
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-box .search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}
.search-box input:not(:placeholder-shown) ~ .search-clear { display: block; }

/* ============ CONTAINER ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-sm { padding: 20px 0; }

/* ============ GRID ============ */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ FLEX UTILS ============ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }

/* ============ TEXT UTILS ============ */
.text-gold   { color: var(--gold); }
.text-primary { color: var(--primary); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.fw-900      { font-weight: 900; }
.fs-12       { font-size: 12px; }
.fs-13       { font-size: 13px; }
.fs-14       { font-size: 14px; }
.fs-16       { font-size: 16px; }
.fs-18       { font-size: 18px; }
.fs-20       { font-size: 20px; }
.fs-24       { font-size: 24px; }

/* ============ SPACING UTILS ============ */
.mt-4  { margin-top:4px;  } .mt-8  { margin-top:8px;  } .mt-12 { margin-top:12px; }
.mt-16 { margin-top:16px; } .mt-20 { margin-top:20px; } .mt-30 { margin-top:30px; }
.mb-4  { margin-bottom:4px;  } .mb-8  { margin-bottom:8px;  } .mb-12 { margin-bottom:12px; }
.mb-16 { margin-bottom:16px; } .mb-20 { margin-bottom:20px; } .mb-30 { margin-bottom:30px; }
.p-0   { padding:0; } .p-16  { padding:16px; } .p-20  { padding:20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .jackpot-bar { gap: 8px; }
  .jackpot-item.grand .jackpot-amount { font-size: 18px; }
  .section { padding: 24px 0; }
  .header-inner { padding: 10px 16px; }
  .modal-box { max-height: 95vh; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero { padding: 40px 0 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ============ MOBILE NAV ============ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 999;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.mobile-nav-items { display: flex; }
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.mobile-nav-item .icon { font-size: 20px; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.play-btn { color: var(--text-light); }
.mobile-nav-item.play-btn .icon-wrap {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-top: -12px;
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}
@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 60px; }
}

/* ─── Category Tabs ──────────────────────────────────────────── */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cat-tab:hover {
  background: rgba(255,107,0,0.12);
  border-color: rgba(255,107,0,0.4);
  color: var(--text-light);
}
.cat-tab.active {
  background: rgba(255,107,0,0.18);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
