/* =========================================================
   AVIATOR GAMER SIGNAL PREDICTOR STYLESHEET
   Futuristic Cyber Radar, Holographic Neon & Provably Fair UI
   ========================================================= */

:root {
  --bg-dark: #07090e;
  --bg-panel: #0d111b;
  --bg-card: #121826;
  --bg-input: #080a10;
  
  --border-neon-cyan: rgba(0, 242, 254, 0.3);
  --border-subtle: #1c2438;

  --color-cyan: #00f2fe;
  --color-cyan-glow: rgba(0, 242, 254, 0.4);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.4);
  --color-magenta: #ff0055;
  --color-gold: #ffb703;

  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-orbitron: 'Orbitron', monospace, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Effects */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow.cyan {
  top: -100px;
  left: -100px;
  background: #00f2fe;
}

.ambient-glow.pink {
  bottom: -100px;
  right: -100px;
  background: #ff0055;
}

/* App Wrapper */
.predictor-app {
  width: 540px;
  max-width: 95vw;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  padding: 20px 0;
}

/* -----------------------------------------
   Header
   ----------------------------------------- */
.predictor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-logo-pulse {
  width: 38px;
  height: 38px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--color-cyan-glow);
}

.brand-text h1 {
  font-family: var(--font-orbitron);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.version-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

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

.client-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-cyan);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(229, 25, 55, 0.4);
  color: #ff4d6d;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(229, 25, 55, 0.2);
}

/* -----------------------------------------
   License Activation Gate (Locked Screen)
   ----------------------------------------- */
.auth-gate-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-neon-cyan);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.15);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.lock-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 2px solid var(--color-cyan);
  box-shadow: 0 0 25px var(--color-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
}

.auth-card h2 {
  font-family: var(--font-orbitron);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.license-input-wrap input {
  width: 100%;
  height: 52px;
  background: var(--bg-input);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 12px;
  padding: 0 16px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cyan);
  text-align: center;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.2s;
}

.license-input-wrap input:focus {
  box-shadow: 0 0 20px var(--color-cyan-glow);
  border-color: #00f2fe;
}

.btn-unlock-glow {
  height: 52px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border: none;
  border-radius: 12px;
  color: #030814;
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--color-cyan-glow);
  transition: all 0.2s;
}

.btn-unlock-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.7);
}

.auth-error-msg {
  font-size: 12px;
  font-weight: 600;
  color: #ff4d6d;
  min-height: 18px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  width: 100%;
}

/* -----------------------------------------
   Section 2: Predictor Cockpit
   ----------------------------------------- */
.predictor-cockpit-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hologram-radar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-neon-cyan);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.radar-top-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-neon-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-orbitron);
  color: var(--color-cyan);
  letter-spacing: 0.5px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulseRadar 1.2s infinite alternate;
}

@keyframes pulseRadar {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 1; }
}

.round-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  color: var(--text-dim);
}

.round-indicator strong {
  font-family: var(--font-orbitron);
  font-size: 14px;
  color: #ffffff;
}

/* Radar Dial Core */
.radar-core-visual {
  position: relative;
  margin: 10px 0;
}

.radar-dial-outer {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(8, 10, 16, 0.95) 75%);
  border: 2px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.25), inset 0 0 30px rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(0, 242, 254, 0.25) 0deg, transparent 60deg, transparent 360deg);
  animation: rotateSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes rotateSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.pred-label {
  font-family: var(--font-orbitron);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.pred-multiplier-value {
  font-family: var(--font-orbitron);
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px var(--color-cyan-glow), 0 0 40px rgba(0, 242, 254, 0.3);
  letter-spacing: 1px;
}

.accuracy-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Safe Cashout Advisory */
.cashout-advisory-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advisory-icon {
  font-size: 26px;
}

.advisory-info {
  display: flex;
  flex-direction: column;
}

.adv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-emerald);
}

.adv-mult {
  font-family: var(--font-orbitron);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.adv-tag {
  font-size: 10px;
  font-weight: 800;
  background: var(--color-emerald);
  color: #052e16;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Round Status & Progress */
.round-status-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.status-title {
  color: var(--text-dim);
}

.status-countdown {
  font-family: var(--font-orbitron);
  font-weight: 700;
  color: var(--color-cyan);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  box-shadow: 0 0 10px var(--color-cyan-glow);
  transition: width 0.1s linear;
}

/* Cryptography Hash Bar */
.crypto-hash-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.hash-label {
  color: var(--text-dim);
}

.hash-value {
  color: var(--color-cyan);
}

/* -----------------------------------------
   Lower Intel Grid
   ----------------------------------------- */
.predictor-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sub-intel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.upcoming-preview-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preview-mult {
  font-family: var(--font-orbitron);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-gold);
}

.preview-note {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
}

.recent-multipliers-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.history-chip, .hist-badge {
  font-family: var(--font-orbitron);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #141b2b;
  border: 1px solid #1f293d;
  color: #38bdf8;
}

.history-chip.chip-purple, .hist-badge.purple {
  background: #231433;
  border-color: #3b1f59;
  color: #c084fc;
}

.history-chip.chip-pink, .hist-badge.pink {
  background: #331422;
  border-color: #591f3b;
  color: #f472b6;
}

@media (max-width: 580px) {
  .predictor-app {
    width: 100vw;
    padding: 12px;
  }
  .predictor-lower-grid {
    grid-template-columns: 1fr;
  }
}
