/* ════════════════════════════════════════
   BDG WIN — styles.css
   ════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold:        #FFD700;
  --gold-dark:   #c8960c;
  --gold-deep:   #b8860b;
  --bg-main:     #12121f;
  --bg-card:     #1a1a2e;
  --bg-nav:      #0e0e1e;
  --text-dim:    #888;
  --text-muted:  #555;
  --red:         #e74c3c;
  --radius:      14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  font-family: 'Arial', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
  color: #fff;
}

/* ════════════════════════════════════════
   HEADER
   ════════════════════════════════════════ */
.header {
  background: var(--bg-main);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  backdrop-filter: blur(10px);
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 5px;
  margin-bottom: 2px;
}

.logo-main {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}

.header-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  font-size: 17px;
  transition: background 0.2s, transform 0.1s;
}

.icon-btn:hover  { background: rgba(255, 215, 0, 0.12); }
.icon-btn:active { transform: scale(0.93); }

.badge {
  position: absolute;
  top: 6px;
  right: 7px;
  background: var(--red);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-main);
  animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
  50%       { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0); }
}

/* ════════════════════════════════════════
   TOAST
   ════════════════════════════════════════ */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════
   BANNER SLIDER
   ════════════════════════════════════════ */
.banner {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide-1 { background: linear-gradient(135deg, #1a0540 0%, #2d1464 45%, #0d0d1a 100%); }
.slide-2 { background: linear-gradient(135deg, #0a3a0a 0%, #1a6e1a 45%, #0d1a0d 100%); }
.slide-3 { background: linear-gradient(135deg, #1a0a0a 0%, #6e1a1a 45%, #1a0d0d 100%); }

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,215,0,0.14) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 50%, rgba(150,0,255,0.13) 0%, transparent 65%);
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.banner-title {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.banner-sub {
  font-size: 12.5px;
  color: rgba(255, 215, 0, 0.75);
  margin-top: 6px;
  letter-spacing: 1px;
}

.banner-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border: none;
  padding: 8px 26px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(255, 215, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.banner-cta:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.45); }
.banner-cta:active { transform: scale(0.95); }

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* Arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slide-arrow:hover    { background: rgba(255,215,0,0.2); }
.slide-arrow.left     { left: 10px; }
.slide-arrow.right    { right: 10px; }

/* ════════════════════════════════════════
   ANNOUNCEMENT
   ════════════════════════════════════════ */
.announcement {
  background: #0c0c1a;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  overflow: hidden;
}

.speaker {
  font-size: 20px;
  flex-shrink: 0;
  animation: speakerPulse 1.8s infinite;
}

@keyframes speakerPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18) rotate(-5deg); }
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
  font-size: 12.5px;
  color: #ddd;
}

.ticker-track span { flex-shrink: 0; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.detail-btn {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-dark));
  border: none;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #1a1a2e;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  transition: transform 0.15s;
}

.detail-btn:active { transform: scale(0.94); }

/* ════════════════════════════════════════
   WALLET STRIP
   ════════════════════════════════════════ */
.wallet-strip {
  background: linear-gradient(135deg, #1a1438 0%, #2a1a50 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-label {
  font-size: 10px;
  color: var(--text-dim);
}

.w-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.w-value.gold { color: var(--gold); }

.wallet-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 215, 0, 0.15);
}

.wallet-btn {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
  transition: transform 0.15s;
}

.wallet-btn:active { transform: scale(0.95); }

/* ════════════════════════════════════════
   SECTION TITLE
   ════════════════════════════════════════ */
.section-title {
  padding: 12px 12px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-bar {
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  border-radius: 2px;
  flex-shrink: 0;
}

.title-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.see-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.see-all:hover { opacity: 1; }

/* ════════════════════════════════════════
   CATEGORIES
   ════════════════════════════════════════ */
.categories { padding: 4px 10px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

/* ── Square Card ── */
.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}

.cat-card:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.cat-card:active { transform: scale(0.95); }

/* Shine overlay */
.cat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.13), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.card-icon-area {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  transition: transform 0.25s;
}

.cat-card:hover .card-icon-area { transform: scale(1.12) translateY(-4px); }

.card-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(0,0,0,0.28);
}

.card-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.card-tag {
  font-size: 9px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-tag.live {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  animation: liveBlink 1.2s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── Wide Card ── */
.cat-card-wide {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.cat-card-wide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.11), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.cat-card-wide:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.cat-card-wide:active { transform: scale(0.96); }

.card-icon-wide {
  font-size: 50px;
  line-height: 1;
  transition: transform 0.25s;
}

.cat-card-wide:hover .card-icon-wide { transform: scale(1.12) rotate(-6deg); }

.card-wide-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.card-name-wide {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.card-wide-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}

/* ── Card Colour Themes ── */
.c-popular  { background: linear-gradient(150deg, #5b1fa0 0%, #7d3ac1 45%, #b8860b 100%); }
.c-lottery  { background: linear-gradient(150deg, #c8960c 0%, #FFD700 55%, #e8a000 100%); }
.c-slots    { background: linear-gradient(150deg, #e8a000 0%, #FFD700 50%, #c8700c 100%); }
.c-sports   { background: linear-gradient(150deg, #0d5c1a 0%, #1a8e2e 55%, #c87000 100%); }
.c-casino   { background: linear-gradient(150deg, #6e0000 0%, #c00 55%, #6e0000 100%); }
.c-rummy    { background: linear-gradient(150deg, #1a1a3a 0%, #3a2060 50%, #c8960c 100%); }
.c-fishing  { background: linear-gradient(150deg, #0a5080 0%, #1a8090 50%, #c8960c 100%); }
.c-original { background: linear-gradient(150deg, #c8600c 0%, #e87000 50%, #FFD700 100%); }

/* ════════════════════════════════════════
   SLOTS PREVIEW
   ════════════════════════════════════════ */
.slots-preview {
  padding: 0 10px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-thumb {
  border-radius: 10px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s;
}

.slot-thumb:hover  { transform: translateY(-3px); }
.slot-thumb:active { transform: scale(0.95); }

.slot-icon  { font-size: 34px; margin-bottom: 6px; }
.slot-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85); text-align: center; }

.s1 { background: linear-gradient(135deg, #2d1b69, #9b59b6); }
.s2 { background: linear-gradient(135deg, #0d4f8b, #1a8adb); }
.s3 { background: linear-gradient(135deg, #6e0000, #e74c3c); }
.s4 { background: linear-gradient(135deg, #0a3a5c, #0f6e9e); }
.s5 { background: linear-gradient(135deg, #1a5e20, #4CAF50); }
.s6 { background: linear-gradient(135deg, #5c4400, #c8960c); }

/* ════════════════════════════════════════
   WINNERS LIST
   ════════════════════════════════════════ */
.winners-list {
  padding: 0 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winner-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
  flex-shrink: 0;
}

.winner-info { flex: 1; }

.winner-name {
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}

.winner-game {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.winner-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

/* ════════════════════════════════════════
   BOTTOM NAVIGATION
   ════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-nav);
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 0 10px;
  z-index: 1000;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding-top: 4px;
  transition: opacity 0.15s;
}

.nav-item:active { opacity: 0.7; }

.nav-icon  { font-size: 22px; color: var(--text-muted); transition: color 0.2s; }
.nav-label { font-size: 10.5px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }

.nav-item.active .nav-icon,
.nav-item.active .nav-label { color: var(--gold); }

/* Center Promotion */
.nav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-top: -22px;
}

.nav-center-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
  border: 3px solid var(--bg-nav);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-center:hover .nav-center-btn {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(255,215,0,0.65);
}

.nav-center-label {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 3px;
  font-weight: 500;
}

/* ════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════ */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 4px; }
