/* ==========================================================================
   MULTI-BRAND GAMIFICATION PLATFORM: VICE BET (NEON) & RON BET (ROYAL GOLD)
   ========================================================================== */

:root {
  --g-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 230px;
}

/* VICE BET THEME (Miami Neon Luxury) */
.brand-vice {
  --g-bg-main: #07090e;
  --g-bg-card: rgba(16, 20, 31, 0.85);
  --g-bg-card-hover: rgba(26, 32, 48, 0.95);
  --g-border: rgba(255, 45, 146, 0.25);
  --g-border-glow: rgba(0, 240, 255, 0.35);
  --g-neon-pink: #ff2d92;
  --g-neon-blue: #00f0ff;
  --g-neon-purple: #9d4edd;
  --g-accent-gold: #f59e0b;
  --g-text-main: #f8fafc;
  --g-text-muted: #94a3b8;
  --g-btn-gradient: linear-gradient(135deg, #ff2d92 0%, #9d4edd 100%);
  --g-btn-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --g-badge-active: #ff2d92;
}

/* RON BET THEME (Royal Crown Luxury) */
.brand-ron {
  --g-bg-main: #06070a;
  --g-bg-card: rgba(18, 16, 22, 0.9);
  --g-bg-card-hover: rgba(28, 24, 34, 0.98);
  --g-border: rgba(245, 158, 11, 0.25);
  --g-border-glow: rgba(245, 158, 11, 0.45);
  --g-neon-pink: #d97706;
  --g-neon-blue: #3b82f6;
  --g-neon-purple: #b45309;
  --g-accent-gold: #f59e0b;
  --g-text-main: #fffdfa;
  --g-text-muted: #a3a3a3;
  --g-btn-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --g-btn-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --g-badge-active: #f59e0b;
}

/* GLOBAL PERSISTENT SIDEBAR LAYOUT */
.gamification-shell {
  display: flex;
  min-height: calc(100vh - 70px);
  background: var(--g-bg-main);
  color: var(--g-text-main);
  font-family: var(--g-font);
}

.gamification-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(10, 12, 18, 0.95);
  border-right: 1px solid var(--g-border);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 90;
}

.gamification-sidebar .sb-search {
  margin-bottom: 14px;
}
.gamification-sidebar .sb-search input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
}
.gamification-sidebar .sb-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-text-muted);
  margin: 12px 8px 6px;
}

.gamification-sidebar .sb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--g-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 3px;
}
.gamification-sidebar .sb-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.gamification-sidebar .sb-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255,45,146,0.2) 0%, rgba(157,78,221,0.1) 100%);
  border-left: 3px solid var(--g-badge-active);
  font-weight: 700;
}
.brand-ron .gamification-sidebar .sb-nav-item.active {
  background: linear-gradient(90deg, rgba(245,158,11,0.2) 0%, rgba(180,83,9,0.1) 100%);
}

.gamification-sidebar .sb-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--g-badge-active);
  color: #000;
}

.gamification-sidebar .sb-promo-box {
  margin-top: auto;
  padding: 14px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(255,45,146,0.15) 100%);
  border: 1px solid var(--g-border);
  text-align: center;
}
.gamification-sidebar .sb-promo-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--g-accent-gold);
  margin: 0 0 4px;
}
.gamification-sidebar .sb-promo-box p {
  font-size: 11px;
  color: var(--g-text-muted);
  margin: 0 0 8px;
}
.gamification-sidebar .sb-promo-box a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--g-btn-gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

/* MAIN CONTENT AREA */
.gamification-main {
  flex: 1;
  padding: 24px 28px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* HERO BANNERS */
.g-hero {
  position: relative;
  border-radius: 20px;
  padding: 34px 40px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #111422 0%, #1e1430 50%, #0d0e18 100%);
  border: 1px solid var(--g-border);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.brand-ron .g-hero {
  background: linear-gradient(135deg, #16120c 0%, #2b1f11 50%, #0f0c08 100%);
}
.g-hero-text h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #fff 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g-hero-text p {
  font-size: 15px;
  color: var(--g-text-muted);
  margin: 0;
}

/* COLLECTION PROGRESS SUMMARY BAR */
.g-collection-bar {
  background: var(--g-bg-card);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.g-collection-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.g-collection-bar-head h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g-accent-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-collection-bar-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--g-neon-blue);
  text-decoration: none;
}
.g-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.g-col-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.g-col-item:hover {
  transform: translateY(-2px);
  border-color: var(--g-border-glow);
}
.g-col-icon {
  font-size: 26px;
  line-height: 1;
}
.g-col-info {
  flex: 1;
}
.g-col-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.g-col-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--g-accent-gold);
}
.g-col-bar {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-top: 5px;
  overflow: hidden;
}
.g-col-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--g-btn-gold);
  transition: width 0.4s ease;
}

/* TABS */
.g-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
  overflow-x: auto;
}
.g-tab-btn {
  padding: 9px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--g-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.g-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.g-tab-btn.active {
  color: #fff;
  background: var(--g-btn-gradient);
  box-shadow: 0 4px 14px rgba(255,45,146,0.3);
}
.brand-ron .g-tab-btn.active {
  background: var(--g-btn-gold);
  color: #000;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

/* TASKS GRID */
.g-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.g-task-card {
  background: var(--g-bg-card);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g-task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.g-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.g-task-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,45,146,0.2);
  color: var(--g-neon-pink);
  border: 1px solid var(--g-neon-pink);
}
.brand-ron .g-task-badge {
  background: rgba(245,158,11,0.2);
  color: var(--g-accent-gold);
  border: 1px solid var(--g-accent-gold);
}
.g-task-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}
.g-task-desc {
  font-size: 13px;
  color: var(--g-text-muted);
  line-height: 1.4;
  margin: 0 0 14px;
}
.g-task-progress-box {
  margin-top: auto;
  margin-bottom: 14px;
}
.g-task-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--g-text-muted);
  margin-bottom: 6px;
}
.g-task-progress-labels span:last-child {
  color: var(--g-accent-gold);
}
.g-task-progress-bar {
  height: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.g-task-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--g-btn-gold);
  transition: width 0.4s ease;
}
.g-task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.g-task-reward-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--g-accent-gold);
}
.g-task-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.g-task-btn.play {
  background: var(--g-btn-gradient);
  color: #fff;
}
.brand-ron .g-task-btn.play {
  background: var(--g-btn-gold);
  color: #000;
}
.g-task-btn.claim {
  background: #10b981;
  color: #fff;
  animation: pulse-green 1.5s infinite;
}
.g-task-btn.claimed {
  background: rgba(255,255,255,0.1);
  color: var(--g-text-muted);
  cursor: default;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ==========================================================================
   WHEEL OF FORTUNE (CANVAS + 3D LUXURY RIM)
   ========================================================================== */
.g-wheel-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.g-wheel-stage {
  background: var(--g-bg-card);
  border: 1px solid var(--g-border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.g-wheel-box {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 10px 0 24px;
}
.g-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 20px var(--g-border-glow);
  transform: rotate(0deg);
  transition: transform 6s cubic-bezier(0.12, 0.9, 0.18, 1);
}
.g-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 48px;
  z-index: 20;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.g-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a163a 0%, #11081a 100%);
  border: 4px solid var(--g-accent-gold);
  box-shadow: 0 0 15px rgba(245,158,11,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  text-align: center;
}
.brand-ron .g-wheel-center {
  background: radial-gradient(circle, #38240f 0%, #170d04 100%);
}
.g-spin-btn {
  padding: 16px 48px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--g-btn-gold);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245,158,11,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g-spin-btn:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(245,158,11,0.6);
}
.g-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* WHEEL SIDEBAR CARDS */
.g-wheel-info-card {
  background: var(--g-bg-card);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
}
.g-wheel-tokens-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0;
}
.g-wheel-tokens-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--g-accent-gold);
}

.g-winners-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 12.5px;
}
.g-winner-name {
  color: #fff;
  font-weight: 600;
}
.g-winner-prize {
  color: var(--g-accent-gold);
  font-weight: 800;
}

/* ==========================================================================
   COLLECTIONS PAGE (/collections)
   ========================================================================== */
.g-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.g-collection-card {
  background: var(--g-bg-card);
  border: 1px solid var(--g-border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s;
}
.g-collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--g-border-glow);
}
.g-card-symbol-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(245,158,11,0.5));
}
.g-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
}
.g-card-progress {
  font-size: 22px;
  font-weight: 900;
  color: var(--g-accent-gold);
  margin-bottom: 12px;
}
.g-card-reward-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--g-text-muted);
  text-transform: uppercase;
}
.g-card-reward-amt {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0 16px;
}
.g-claim-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--g-text-muted);
}
.g-claim-btn.ready {
  background: var(--g-btn-gold);
  color: #000;
  cursor: pointer;
  animation: pulse-green 1.5s infinite;
}

/* MODAL OVERLAY */
.g-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.g-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.g-modal {
  background: #111422;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  padding: 34px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.15, 0.9, 0.2, 1);
}
.brand-ron .g-modal {
  background: #16120c;
}
.g-modal-overlay.active .g-modal {
  transform: scale(1);
}
.g-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--g-text-muted);
  font-size: 24px;
  cursor: pointer;
}
.g-modal h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--g-accent-gold);
  margin: 0 0 10px;
}
.g-modal p {
  font-size: 14px;
  color: var(--g-text-muted);
  margin-bottom: 24px;
}
