/* =========================================================
   SKYWARD HORIZON - PREMIUM MOBILE WEBAPP STYLESHEET
   Aesthetics: Deep Dark, Electric Cyan/Azure, Sun Gold, Glassmorphism
   ========================================================= */

:root {
  --primary-blue: #00d2ff;
  --secondary-blue: #0077ff;
  --accent-gold: #ffb800;
  --accent-amber: #ff8400;
  --accent-cyan: #00f0ff;
  --accent-emerald: #00ffaa;
  --accent-magenta: #ff0077;
  
  --bg-dark: #070c18;
  --bg-surface: rgba(12, 23, 48, 0.72);
  --bg-surface-hover: rgba(22, 38, 75, 0.85);
  
  --glass-border: rgba(0, 210, 255, 0.28);
  --glass-border-gold: rgba(255, 184, 0, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  
  --text-main: #f3f8ff;
  --text-muted: #8ba2c4;
  --text-dim: #50678d;

  --shadow-neon-blue: 0 0 25px rgba(0, 210, 255, 0.4);
  --shadow-neon-gold: 0 0 25px rgba(255, 184, 0, 0.45);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.5);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  background: url('bg.jpg') center center / cover no-repeat;
  position: relative;
}

/* Background overlay with smooth dark glass gradient */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.75) 0%, rgba(6, 12, 24, 0.55) 40%, rgba(4, 9, 19, 0.88) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

/* Mobile App Container */
.mobile-app-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  background: rgba(8, 16, 32, 0.45);
}

/* Glassmorphism Panel Class */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), inset 0 1px 1px var(--glass-highlight);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Top App Header */
.app-header {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin: 10px 14px 0 14px;
  border-radius: var(--radius-lg);
  z-index: 50;
  transition: all 0.3s ease;
}

.header-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon-coin {
  color: var(--accent-gold);
  font-size: 16px;
  filter: drop-shadow(0 0 6px var(--accent-gold));
  animation: pulse-glow 2s infinite ease-in-out;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.header-title-container {
  flex: 1;
  text-align: center;
}

.header-app-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, var(--primary-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screens Container */
.screens-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 14px 16px 80px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.screen-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Screen Sub-headers */
.sub-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sub-screen-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.back-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s transform;
}

.back-btn:active {
  transform: scale(0.92);
}

.spacer-40 {
  width: 40px;
}

.sub-screen-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Buttons System */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  overflow: hidden;
  outline: none;
}

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

.primary-btn {
  background: linear-gradient(135deg, #00d2ff 0%, #0062ff 50%, #7928ca 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.secondary-btn {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(255, 132, 0, 0.25));
  border: 1px solid var(--glass-border-gold);
  color: #ffdf70;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.2);
}

.secondary-btn:hover {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 132, 0, 0.35));
}

.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.large-btn {
  padding: 18px 24px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shine-sweep 3.5s infinite;
}

/* Welcome Screen */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 100%;
  padding: 10px 0;
}

.welcome-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
}

.welcome-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  border: 2px solid var(--primary-blue);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.welcome-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-gold);
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--glass-border-gold);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-blue) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 24px;
}

.onboarding-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.onboarding-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
}

.card-icon {
  font-size: 26px;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.card-text h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.card-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Home Screen */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.hero-logo-box {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 12px;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  border: 2px solid rgba(0, 210, 255, 0.6);
  box-shadow: var(--shadow-neon-blue);
}

.hero-aura {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.4) 0%, transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

.player-title-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Stats Card */
.stats-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 10px;
  margin-bottom: 22px;
  border-color: rgba(0, 210, 255, 0.25);
}

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

.cell-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.cell-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.gold-text {
  color: var(--accent-gold) !important;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.cyan-text {
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* Menu Actions Grid */
.menu-action-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Game Runner Screen */
#gameScreen {
  padding: 0;
  overflow: hidden;
}

.game-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 40;
  border-radius: var(--radius-md);
}

.hud-item {
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.hud-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.hud-pause-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.powerup-hud-bar {
  position: absolute;
  top: 70px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
}

.powerup-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  animation: pulse-glow 1s infinite alternate;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#runnerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Game Touch Overlay */
.game-touch-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  z-index: 40;
}

.touch-lane-btn {
  height: 60px;
  background: rgba(8, 20, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.touch-lane-btn:active {
  background: rgba(0, 210, 255, 0.3);
  border-color: var(--accent-cyan);
  transform: scale(0.95);
}

#touchDashBtn {
  border-color: var(--glass-border-gold);
  background: rgba(40, 28, 6, 0.65);
  color: #ffdf70;
}

#touchDashBtn:active {
  background: rgba(255, 184, 0, 0.35);
}

/* Modals */
.game-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease;
}

.game-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-color: rgba(0, 210, 255, 0.4);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  color: #fff;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.game-over-header {
  margin-bottom: 14px;
}

.crest-icon {
  font-size: 40px;
  margin-bottom: 6px;
}

.run-results-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.result-row strong {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #fff;
}

.highlight-row {
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 13px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 184, 0, 0.3);
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  pointer-events: none;
}

.countdown-overlay.hidden {
  display: none;
}

#countdownNumber {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: 0 0 30px var(--accent-cyan);
  animation: pop-scale 0.8s ease-out;
}

/* Levels Screen (30 Levels Grid) */
.levels-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 20px;
}

.level-node {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}

.level-node:active {
  transform: scale(0.94);
}

.level-node.unlocked {
  border-color: var(--glass-border);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 102, 255, 0.25));
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.2);
}

.level-node.current {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 132, 0, 0.3));
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
  animation: pulse-border 2s infinite ease-in-out;
}

.level-node.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.level-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

.level-status-icon {
  font-size: 12px;
}

.level-target {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Achievements Screen */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  position: relative;
}

.achieve-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.achieve-info {
  flex: 1;
}

.achieve-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.achieve-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.achieve-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.achieve-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.achieve-reward-btn {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  border-radius: 10px;
  border: 1px solid var(--glass-border-gold);
  background: rgba(255, 184, 0, 0.2);
  color: #ffdf70;
  cursor: pointer;
  white-space: nowrap;
}

.achieve-reward-btn:disabled {
  opacity: 0.5;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* Skins Shop Screen */
.skins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  text-align: center;
  position: relative;
}

.skin-avatar-box {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.2s ease;
}

.skin-card:hover .skin-avatar-box {
  transform: scale(1.08);
}

.skin-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.skin-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 28px;
}

.skin-action-btn {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: 0.2s all;
}

.skin-action-btn.equip {
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid var(--primary-blue);
  color: var(--accent-cyan);
}

.skin-action-btn.equipped {
  background: var(--accent-emerald);
  color: #042114;
  font-weight: 900;
}

.skin-action-btn.buy {
  background: linear-gradient(135deg, #ffb800, #ff8400);
  color: #1a0f00;
  font-weight: 900;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  border-radius: 24px 24px 0 0;
  border-bottom: none;
  z-index: 50;
  background: rgba(6, 14, 30, 0.88);
}

.nav-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
  flex: 1;
}

.nav-tab .nav-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nav-tab .nav-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-tab.active {
  color: var(--primary-blue);
}

.nav-tab.active .nav-icon {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 0 8px var(--primary-blue));
}

/* Toast Notifications */
.toast-notification {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 18, 38, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

/* Animations */
@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-gold)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 12px var(--accent-gold)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-gold)); }
}

@keyframes pulse-border {
  0% { border-color: rgba(255, 184, 0, 0.4); }
  50% { border-color: rgba(255, 184, 0, 1); box-shadow: 0 0 25px rgba(255, 184, 0, 0.6); }
  100% { border-color: rgba(255, 184, 0, 0.4); }
}

@keyframes float-animation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float-animation 3.5s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

@keyframes pop-scale {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
