/* ==============================================================================
   🎯 NUMBER PREDICTION PANEL - VIP CSS STYLESHEET
   Matching VeerGame / AR-Lottery Official WinGo Aesthetics with High-End Polish
   ============================================================================== */

:root {
  --primary-red: #fe4f44;
  --primary-red-dark: #e02830;
  --primary-red-light: #ff766d;
  --bg-top-gradient: linear-gradient(180deg, #ff655b 0%, #fe4f44 140px, #f5f6fa 200px);
  --bg-page: #f5f6fa;
  --card-bg: #ffffff;
  
  --color-green: #1cb45d;
  --color-violet: #b05bff;
  --color-red: #fd565c;
  --color-big: #fea843;
  --color-small: #6ea9f7;
  
  --text-dark: #1e2229;
  --text-muted: #7e8794;
  --text-light: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow-red: 0 6px 20px rgba(254, 79, 68, 0.35);
  --shadow-glow-gold: 0 6px 20px rgba(254, 168, 67, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 30px;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-top-gradient);
  background-repeat: no-repeat;
  background-size: 100% 280px;
  background-color: var(--bg-page);
  padding: 12px 14px;
  position: relative;
}

/* ==============================================================================
   1. APP HEADER
   ============================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 14px 4px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.brand-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.header-right {
  display: flex;
  align-items: center;
}

.trial-pill {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trial-icon {
  font-size: 13px;
  animation: flash-bolt 2s infinite ease-in-out;
}

@keyframes flash-bolt {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* ==============================================================================
   2. GAME TABS (MATCHING SCREENSHOT)
   ============================================================================== */
.game-tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #727a85;
}

.tab-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.clock-icon {
  width: 20px;
  height: 20px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.tab-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Active Tab (Vibrant Gradient Pill) */
.tab-item.active {
  background: linear-gradient(135deg, #ff7167 0%, #fe4f44 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(254, 79, 68, 0.45);
  transform: translateY(-1px);
}

.tab-item.active .clock-icon {
  opacity: 1;
  transform: rotate(360deg);
  transition: transform 0.6s ease;
}

/* ==============================================================================
   3. GAME INFO CARD (TIMER + PERIOD + BALLS)
   ============================================================================== */
.game-info-card {
  background: linear-gradient(135deg, #ff7167 0%, #fe4f44 100%);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  box-shadow: var(--shadow-glow-red);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.game-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.card-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.how-to-play-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.how-to-play-btn:active {
  background: rgba(255, 255, 255, 0.35);
}

.current-game-title {
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 5 Recent Winning Balls */
.recent-balls-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ball {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.6);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ball-green {
  background: radial-gradient(circle at 35% 35%, #4ae38a, #149c4f 70%, #0d6e36);
}

.ball-red {
  background: radial-gradient(circle at 35% 35%, #ff7c82, #fe4f44 70%, #c92429);
}

.ball-violet-red {
  background: linear-gradient(135deg, #fd565c 50%, #b05bff 50%);
}

.ball-violet-green {
  background: linear-gradient(135deg, #1cb45d 50%, #b05bff 50%);
}

/* Card Right Side: Timer & Period */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.time-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

/* Flip Clock Digital Display */
.timer-box {
  display: flex;
  align-items: center;
  gap: 3px;
}

.timer-tile {
  width: 26px;
  height: 34px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-red-dark);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.2s;
}

.timer-box.urgent .timer-tile {
  background: #fff;
  color: #ff0000;
  animation: urgent-pulse 0.8s infinite alternate;
}

@keyframes urgent-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.timer-sep {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  padding: 0 1px;
}

.period-display {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.period-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   4. LIVE AI PREDICTION PANEL (THE HERO SECTION)
   ============================================================================== */
.prediction-panel-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(254, 79, 68, 0.15);
  position: relative;
  overflow: hidden;
}

.prediction-panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1cb45d, #fea843, #fe4f44, #b05bff, #1cb45d);
  background-size: 300% 100%;
  animation: gradient-scroll 4s linear infinite;
}

@keyframes gradient-scroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

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

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.4px;
}

.ai-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fe4f44;
  box-shadow: 0 0 10px #fe4f44;
  animation: beacon-blink 1.2s infinite ease-in-out;
}

@keyframes beacon-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.3); }
}

.confidence-tag {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.target-period-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 7px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px dashed #cbd5e1;
}

.target-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.target-period-number {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-red);
}

/* Universal Visibility Utility */
.hidden,
.prediction-idle-container.hidden,
.prediction-live-container.hidden,
.prediction-locked-container.hidden {
  display: none !important;
}

/* 1. IDLE CONTAINER: Big Start Bet Button */
.prediction-idle-container {
  padding: 6px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.idle-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.idle-period-badge b {
  font-family: var(--font-mono);
  color: var(--primary-red);
  font-size: 13.5px;
}

.click-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px dashed #fda4af;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.1);
  animation: bounceGuide 1.4s infinite ease-in-out;
}

@keyframes bounceGuide {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.finger-pointer {
  font-size: 16px;
  display: inline-block;
  animation: fingerTap 0.8s infinite alternate ease-in-out;
}

@keyframes fingerTap {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.25) translateY(2px); }
}

.btn-start-bet-big {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 45%, #f97316 100%);
  border: none;
  border-radius: 20px;
  padding: 18px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 75, 43, 0.45), 0 3px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: btnPulseBlink 1.8s infinite ease-in-out;
}

@keyframes btnPulseBlink {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(255, 75, 43, 0.45), 0 0 0 0 rgba(255, 65, 108, 0.6);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 14px 34px rgba(255, 75, 43, 0.75), 0 0 22px 5px rgba(255, 65, 108, 0.55);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(255, 75, 43, 0.45), 0 0 0 0 rgba(255, 65, 108, 0);
  }
}

.btn-start-bet-big:hover,
.btn-start-bet-big:active {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 75, 43, 0.6);
}

.btn-start-bet-big::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shine-sweep 2.2s infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  45%, 100% { left: 160%; }
}

.btn-start-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: pulse-icon 1.5s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(6deg); }
}

.btn-start-text {
  flex: 1;
  text-align: left;
  padding: 0 12px;
}

.btn-title-main {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-title-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
}

.btn-arrow-right {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s;
}

.btn-start-bet-big:active .btn-arrow-right {
  transform: translateX(4px);
}

/* 2. LOCKED BANNER (Shown when minimized after 5 predictions) */
.prediction-locked-container {
  padding: 18px 14px;
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1.5px solid #fecdd3;
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.1);
  animation: fadeIn 0.3s ease;
}

.lock-shield-icon {
  font-size: 38px;
  animation: lock-wobble 2s infinite ease-in-out;
}

.locked-title-text {
  font-size: 17px;
  font-weight: 900;
  color: #9f1239;
  letter-spacing: 0.6px;
}

.locked-desc-text {
  font-size: 12.5px;
  color: #881337;
  font-weight: 600;
  margin: 0;
}

.btn-unlock-vip-cta {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.35);
  transition: transform 0.2s;
}

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

/* Center Prediction Showcase Grid */
.prediction-center-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* BIG / SMALL Card */
.pred-outcome-card {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(254, 168, 67, 0.12);
  transition: all 0.3s ease;
}

.pred-type-label {
  font-size: 10px;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pred-outcome-val {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 4px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.pred-outcome-val.big-val {
  color: #ea580c;
}

.pred-outcome-val.small-val {
  color: #2563eb;
}

.pred-range-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #78350f;
  margin-top: 2px;
}

/* NUMBER BET Card */
.pred-number-card {
  background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(254, 79, 68, 0.12);
}

.pred-ball-wrapper {
  margin: 4px 0;
}

.pred-lottery-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: ball-bob 2.5s infinite ease-in-out;
}

@keyframes ball-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pred-color-tag {
  font-size: 11px;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: 0.3px;
}

/* Strategy Footer */
.strategy-footer {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strategy-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

.strat-icon {
  font-size: 12px;
}

/* ==============================================================================
   5. HISTORY / CHART SECTION (MATCHING SCREENSHOT)
   ============================================================================== */
.history-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.history-tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.h-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.h-tab.active {
  background: linear-gradient(135deg, #ff7167 0%, #fe4f44 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(254, 79, 68, 0.3);
}

/* History Table */
.table-container {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.history-table th {
  padding: 10px 8px;
  background: #ff5247;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  font-size: 12px;
}

.history-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  text-align: left;
  padding-left: 12px;
}

.history-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.history-table td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid #f8fafc;
}

.td-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-align: left !important;
  padding-left: 12px !important;
}

.td-number {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
}

.num-red { color: #fe4f44; }
.num-green { color: #1cb45d; }
.num-violet { color: #9333ea; }

.td-bs {
  font-weight: 600;
  color: #334155;
  font-size: 12px;
}

.td-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dot-red { background-color: #fe4f44; }
.dot-green { background-color: #1cb45d; }
.dot-violet { background-color: #a855f7; }

/* Chart View */
.chart-container {
  padding: 10px 0;
}

.chart-header {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
  text-align: center;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 130px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 12px;
}

.trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.trend-bar-fill {
  width: 16px;
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

.trend-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

/* Strategy View */
.strategy-view-container {
  padding: 10px 4px;
}

.strat-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 14px;
}

.strat-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
}

.strat-card p {
  font-size: 11.5px;
  color: #b45309;
  line-height: 1.5;
  margin-bottom: 10px;
}

.strat-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-pill {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #78350f;
  border: 1px solid #fde68a;
}

/* Bottom Disclaimer */
.bottom-disclaimer {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 14px;
  padding: 0 10px;
}

/* ==============================================================================
   6. MODAL OVERLAYS (ACTIVATION, LOCKED, HOW TO PLAY)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
}

@keyframes slideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.modal-close-x:hover,
.modal-close-x:active {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.1);
}

.modal-badge-vip {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
}

.activation-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.step-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fe4f44;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  font-size: 12.5px;
  color: #1e293b;
  display: block;
}

.step-content p {
  font-size: 11px;
  color: #64748b;
}

.vip-action-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.btn-vip-join-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.38);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-vip-join-hero:hover,
.btn-vip-join-hero:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.5);
}

.vip-join-icon {
  font-size: 28px;
  margin-right: 12px;
}

.vip-join-info {
  flex: 1;
  text-align: left;
}

.vip-join-heading {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.vip-join-hint {
  display: block;
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.vip-free-tag {
  background: #fef08a;
  color: #854d0e;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.btn-verify-unlock-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-verify-unlock-hero:hover,
.btn-verify-unlock-hero:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.45);
}

.btn-verify-unlock-hero:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.modal-warning-box {
  background: #fee2e2;
  border: 1.5px solid #ef4444;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: #991b1b;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left;
}

.modal-warning-box .warning-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
  color: #b91c1c;
}

.modal-warning-box .warning-desc {
  font-size: 11.5px;
  color: #7f1d1d;
  line-height: 1.45;
}

.modal-success-box {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: #065f46;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.modal-success-box .success-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
  color: #059669;
}

.modal-success-box .success-desc {
  font-size: 11.5px;
  color: #047857;
  line-height: 1.45;
}

.shake-anim {
  animation: shakeBox 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeBox {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.vip-auto-detect-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 7px 12px;
  border-radius: 12px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: dotPulse 1.2s infinite ease-in-out;
}

@keyframes dotPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #10b981; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==============================================================================
   7. SYSTEM LOCKED PAYWALL MODAL
   ============================================================================== */
.lock-card {
  border: 2px solid #fe4f44;
}

.lock-icon-animated {
  font-size: 46px;
  margin-bottom: 6px;
  animation: lock-wobble 2s infinite ease-in-out;
}

@keyframes lock-wobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-8deg); }
  75% { transform: scale(1.1) rotate(8deg); }
}

.lock-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.lock-title {
  font-size: 21px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 6px;
}

.lock-subtitle {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

.locked-steps-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.lock-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lock-step-icon {
  font-size: 16px;
  margin-top: 1px;
}

.lock-step-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
}

.lock-step-text b {
  color: #0f172a;
  display: block;
}

.lock-step-text code {
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
}

.lock-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-primary-btn {
  display: block;
  background: linear-gradient(135deg, #fe4f44 0%, #dc2626 100%);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
  letter-spacing: 0.3px;
  transition: transform 0.2s;
}

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

.lock-secondary-btn {
  display: block;
  background: #0ea5e9;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.invite-code-pill {
  margin-top: 12px;
  font-size: 11.5px;
  color: #64748b;
}

/* ==============================================================================
   8. HOW TO PLAY MODAL
   ============================================================================== */
.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-header-row h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
}

.close-modal-btn {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.guide-content {
  text-align: left;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-content ul {
  padding-left: 18px;
  font-size: 12px;
}

/* Channel Verification Badges & Animations */
.status-pill {
  transition: all 0.25s ease;
  font-weight: 800 !important;
  font-size: 10px !important;
  padding: 4px 9px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.status-pill.verified {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2) !important;
}

.status-pill.pending {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.btn-vip-join-hero.missing-highlight {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
  animation: shakeBox 0.5s ease;
}
