/* ========================================================
   CTM - Columbia Trailer Movie Premium Mobile Casino UI Theme
   Palette: Luxury Casino Obsidian Slate & Royal Gold
   ======================================================== */

:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-gradient: linear-gradient(135deg, #ffd700 0%, #ff8800 50%, #cc5500 100%);
  --gold: #ffd700;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #b45309 100%);
  --vip1-color: #38bdf8;
  --vip2-color: #818cf8;
  --vip3-color: #ffd700;
  --bg-body: #070b14;
  --app-bg: #0d1424;
  --card-bg: #141d30;
  --card-inner: #1a253c;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 215, 0, 0.12);
  --border-gold: rgba(255, 215, 0, 0.35);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.6);
  --gold-glow: 0 0 18px rgba(255, 215, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* Mobile Container - Centers on Desktop like a Phone */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--app-bg);
  color: var(--text-main);
  position: relative;
  padding-bottom: 75px; /* Dock padding */
  box-shadow: 0 0 50px rgba(0,0,0,0.7);
  contain: none !important;
  transform: none !important;
}

/* ==========================================
   Header (Luxury Dark & Gold Trim)
   ========================================== */
.ctm-header {
  background: linear-gradient(135deg, #162035 0%, #0d1424 100%);
  color: #fff;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  box-sizing: border-box !important;
}

.ctm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctm-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.ctm-logo-img, img.ctm-logo-img, .ctm-brand img {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 48px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.45)) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

@media (max-width: 360px) {
  .ctm-logo-img, img.ctm-logo-img, .ctm-brand img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 40px !important;
  }
}

.ctm-brand h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
  margin: 0;
}

.ctm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctm-header-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffd700;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ==========================================
   Banner Slider
   ========================================== */
.banner-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 180px;
  background: #000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideBanner 12s infinite ease-in-out;
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 10, 20, 0.95));
  padding: 16px 16px 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

@keyframes slideBanner {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.333%); }
  66%, 95% { transform: translateX(-66.666%); }
  100% { transform: translateX(0); }
}

/* ==========================================
   Marquee Ticker (Casino Neon)
   ========================================== */
.ctm-ticker {
  background: #101726;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  font-size: 13px;
  color: #94a3b8;
}

.ticker-icon {
  color: #ffd700;
  font-size: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 24s linear infinite;
  color: #e2e8f0;
  font-weight: 600;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================
   Navigation Grid (5 Casino Chips)
   ========================================== */
.ctm-nav-grid {
  background: var(--card-bg);
  margin: 12px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  gap: 6px;
}

.nav-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.2s ease;
}

.nav-item:active .nav-icon-circle {
  transform: scale(0.92);
}

.icon-company { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.icon-video { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.icon-download { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.icon-recharge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-withdraw { background: linear-gradient(135deg, #10b981, #059669); }

.nav-title {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}


/* ==========================================
   Section Title & VIP Diamond Filter
   ========================================== */
.section-header {
  padding: 16px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px #ffd700;
}

.vip-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scrollbar-width: none;
}

.vip-filters::-webkit-scrollbar {
  display: none;
}

.vip-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card-bg);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 215, 0, 0.15);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vip-pill.active {
  background: var(--gold-gradient);
  color: #0b0f19;
  font-weight: 900;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
  transform: translateY(-1px);
}

/* ==========================================
   2-Column Movie Poster Grid (Casino Cards)
   ========================================== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 14px 20px;
}

.movie-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.14);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.movie-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.poster-wrap {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  position: relative;
  background: #090e1a;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.vip-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(6px);
  color: #ffd700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.vip-badge-tag.v1 { border-left: 3px solid var(--vip1-color); color: var(--vip1-color); }
.vip-badge-tag.v2 { border-left: 3px solid var(--vip2-color); color: var(--vip2-color); }
.vip-badge-tag.v3 { border-left: 3px solid var(--vip3-color); color: var(--vip3-color); }

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.7);
  transition: transform 0.2s;
}

.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #e2e8f0;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.15);
}

.movie-info {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card-bg);
}

.movie-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.movie-cat {
  font-size: 11px;
  color: #94a3b8;
}

.reward-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.movie-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.reward-badge {
  background: #ecfdf5;
  color: #059669;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

.reward-badge.completed {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

/* ==========================================
   VIP Subscription Cards (VIP Page)
   ========================================== */
.vip-card-box {
  background: linear-gradient(145deg, #131c31 0%, #0c1424 100%);
  margin: 14px;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vip-card-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.15);
}

.vip-card-box.active-tier {
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
  background: linear-gradient(145deg, #1b2640 0%, #10192e 100%);
}

.vip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vip-level-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.vip-price {
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.vip-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.1);
  padding: 12px 8px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  text-align: center;
  gap: 4px;
}

.vip-spec-item {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.spec-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.vip-btn {
  width: 100%;
  padding: 13px;
  border-radius: 25px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35);
  text-align: center;
  text-decoration: none;
  display: block;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.vip-btn:active {
  transform: scale(0.98);
}

.vip-btn.current {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  pointer-events: none;
}

/* ==========================================
   Watch Trailer Player (30s Strict Anti-Cheat)
   ========================================== */
.player-container {
  padding: 14px;
}

.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* Disables right click and manual seek */
}

.timer-ribbon {
  background: #0f172a;
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  text-align: center;
}

.timer-circle {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  margin: 6px 0;
  font-family: monospace;
}

.timer-sub {
  font-size: 12px;
  color: #94a3b8;
}

.complete-claim-btn {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  background: #cbd5e1;
  color: #64748b;
  font-size: 16px;
  font-weight: 800;
  border: none;
  margin-top: 16px;
  cursor: not-allowed;
  transition: all 0.3s;
}

.complete-claim-btn.unlocked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ==========================================
   User Profile Screen (6 Boxes Grid)
   ========================================== */
.profile-card {
  background: linear-gradient(135deg, #1b2848 0%, #0d1527 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  color: #fff;
  padding: 22px 16px 28px;
  position: relative;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45);
}

.profile-info h3 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}

.profile-info p {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.profile-wallet-balance {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.balance-title {
  font-size: 12px;
  color: #cbd5e1;
}

.balance-val {
  font-size: 26px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.wallet-actions {
  display: flex;
  gap: 8px;
}

.btn-recharge, .btn-withdraw {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-recharge {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.35);
}

.btn-withdraw {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 6 Boxes Earnings Grid */
.earnings-grid {
  margin: -16px 14px 14px;
  background: linear-gradient(145deg, #131c31 0%, #0d1527 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.earning-box {
  display: flex;
  flex-direction: column;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
}

.earning-box:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.earn-val {
  font-size: 15px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.earn-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Menu List (Casino Dark Glass) */
.menu-card-list {
  background: var(--card-bg);
  margin: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 215, 0, 0.12);
  overflow: hidden;
}

.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  text-decoration: none;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.menu-list-item:hover, .menu-list-item:active {
  background: rgba(255, 215, 0, 0.05);
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  font-size: 18px;
  color: #ffd700;
  width: 24px;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.chevron {
  color: #64748b;
  font-size: 12px;
}

/* ==========================================
   Fixed Bottom Navigation Dock (5 Tabs Casino)
   ========================================== */
.bottom-dock {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 64px !important;
  background: rgba(9, 14, 28, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-top: 1px solid rgba(255, 215, 0, 0.25) !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  z-index: 999999 !important;
  box-shadow: 0 -6px 25px rgba(0,0,0,0.7) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  gap: 3px;
  flex: 1;
  transition: all 0.2s;
}

.dock-icon {
  font-size: 20px;
}

.dock-label {
  font-size: 11px;
  font-weight: 700;
}

.dock-item.active {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.dock-item.active .dock-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

/* PWA Install Banner */
.pwa-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 12px 14px;
  margin: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.pwa-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pwa-text h4 {
  font-size: 13px;
  font-weight: 700;
}

.pwa-text p {
  font-size: 11px;
  color: #94a3b8;
}

.pwa-install-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================
   Casino Universal Components & Form System
   ========================================== */
.casino-card {
  background: linear-gradient(145deg, #131c31 0%, #0c1424 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.casino-card-gold-trim {
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.08), 0 4px 15px rgba(0,0,0,0.6);
}

.casino-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.casino-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Casino Input Fields */
.form-card {
  background: linear-gradient(145deg, #131c31 0%, #0c1424 100%);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.form-group-item {
  margin-bottom: 16px;
}

.form-label, .input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-input-wrap, .input-field-wrap {
  display: flex;
  align-items: center;
  background: #090e1c;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 12px;
  padding: 0 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  transition: all 0.2s;
}

.form-input-wrap:focus-within, .input-field-wrap:focus-within {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25), inset 0 2px 6px rgba(0,0,0,0.5);
}

.form-input-wrap input, .form-input-wrap select, .input-field-wrap input {
  width: 100%;
  padding: 13px 0;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: #fff;
}

.form-input-wrap input::placeholder, .input-field-wrap input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.form-input-wrap select {
  color: #fff;
  cursor: pointer;
}

.form-input-wrap select option {
  background: #0d1424;
  color: #fff;
}

.input-icon {
  font-size: 18px;
  color: #ffd700;
  margin-right: 10px;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
}

.toggle-pass-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* Casino Auth Screens */
.auth-box {
  padding: 20px 18px 30px;
}

.auth-logo-header {
  text-align: center;
  margin: 16px 0 24px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  letter-spacing: 0.5px;
}

.auth-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.auth-submit-btn, .casino-btn-gold {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  margin-top: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.auth-submit-btn:active, .casino-btn-gold:active {
  transform: scale(0.98);
}

.login-prompt-box {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-muted);
}

.login-prompt-box a {
  color: #ffd700;
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}

/* OTP Button & Row */
.otp-btn {
  background: var(--gold-gradient);
  color: #000;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  transition: opacity 0.2s;
}

.otp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Casino Stats & Badges */
.casino-badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

.casino-badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ==========================================
   Luxury Casino Modal & Dialog Box
   ========================================== */
.ctm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.ctm-modal-backdrop.show {
  opacity: 1;
}

.ctm-modal-dialog {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.ctm-modal-dialog.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ctm-modal-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(150deg, #17223b 0%, #0d1527 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.ctm-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.ctm-modal-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.ctm-modal-icon-wrap.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.ctm-modal-icon-wrap.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.ctm-modal-icon-wrap.vip, .ctm-modal-icon-wrap.reward {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.ctm-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.ctm-modal-body {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.ctm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ctm-modal-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ctm-modal-btn:active {
  transform: scale(0.97);
}

.ctm-btn-gold {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
}

.ctm-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
}

/* Casino Toast Container */
.ctm-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  z-index: 100000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctm-toast {
  background: linear-gradient(135deg, #1b2848 0%, #0d1527 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.ctm-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   High-Tech Live Activity Ticker Bar
   ========================================== */
.live-activity-bar {
  background: #090f1e;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: liveBlink 1.2s infinite;
}

@keyframes liveBlink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.live-ticker-scroll {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.live-ticker-inner {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  animation: ctmMarquee 35s linear infinite;
}

@keyframes ctmMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   VIP 0 (Free Trial / Restricted) Card
   ========================================== */
.vip0-restricted-card {
  margin: 12px 14px;
  background: linear-gradient(145deg, #1f1418 0%, #110d18 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.vip0-restricted-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.vip0-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vip0-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vip0-nudge-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 6px 0 12px;
}

.vip0-upgrade-cta {
  background: var(--gold-gradient);
  color: #000;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.4px;
}

/* ==========================================
   4 Fixed VIP Cards Matrix (Home & VIP Hall)
   ========================================== */
.vip-matrix-grid {
  margin: 12px 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vip-matrix-card {
  background: linear-gradient(150deg, #152038 0%, #0d1527 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.vip-matrix-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.5);
}

.vip-matrix-card.active-plan {
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  background: linear-gradient(150deg, #1d2a4a 0%, #10192e 100%);
}

.vip-matrix-card.tier-1 { border-top: 3px solid #38bdf8; }
.vip-matrix-card.tier-2 { border-top: 3px solid #818cf8; }
.vip-matrix-card.tier-3 { border-top: 3px solid #ffd700; }
.vip-matrix-card.tier-4 { border-top: 3px solid #f43f5e; }

.matrix-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.matrix-tier-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.matrix-tier-price {
  font-size: 16px;
  font-weight: 900;
  color: #ffd700;
}

.matrix-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.matrix-spec-val {
  font-weight: 800;
  color: #f8fafc;
}

.matrix-daily-income {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  margin: 10px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matrix-income-val {
  font-size: 14px;
  font-weight: 900;
  color: #10b981;
}

.matrix-join-btn {
  background: var(--gold-gradient);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
  display: block;
}

.matrix-join-btn.current {
  background: #10b981;
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  pointer-events: none;
}

.live-activity-bar:hover .live-ticker-inner {
  animation-play-state: paused;
}




/* ==========================================
   Instant SPA Navigation & Ultra-Fast Touch
   ========================================== */
@keyframes spaFadeOnly {
  from {
    opacity: 0.82;
  }
  to {
    opacity: 1;
  }
}

.app-container.spa-enter {
  animation: spaFadeOnly 0.1s ease-out forwards;
}

/* Instant Touch Feedback on Bottom Dock */
.bottom-dock .dock-item {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}

.bottom-dock .dock-item:active {
  transform: scale(0.92);
  transition: transform 0.05s ease;
}

.bottom-dock .dock-item.active {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.bottom-dock .dock-item.active .dock-icon {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  transition: transform 0.15s ease, filter 0.15s ease;
}
