/* ============================================
   SKYVEST CAPITAL — GLOBAL STYLES
============================================ */

:root {
  --navy: #0A1A3C;
  --navy-light: #0F2A4A;
  --navy-dark: #06122A;
  --gold: #D4A643;
  --gold-light: #F0C158;
  --green: #0F5132;
  --green-light: #1A6B47;
  --purple: #3D2C8D;
  --cream: #F5F0E6;
  --white: #FFFFFF;
  --text-light: #B8C5D6;
  --danger: #DC3545;
  --success: #28A745;
  --warning: #FFC107;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #0B1220;
  color: var(--white);
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================
   APP CONTAINER
============================================ */
.app-container {
  max-width: 100%;
  margin: 0 auto;
  background: var(--navy);
  min-height: 100vh;
  position: relative;
  padding-bottom: 90px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { background: #060B14; }
  .app-container {
    max-width: 1200px;
    padding-bottom: 0;
  }
}

/* ============================================
   HEADER
============================================ */
.app-header {
  background: var(--navy);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .app-header { padding: 20px 40px; }
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 34px;
  height: 34px;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo-icon { width: 42px; height: 42px; }
}

.logo-text { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--white); }
.logo-sub { font-size: 9px; letter-spacing: 2px; color: var(--text-light); text-transform: uppercase; }

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

.header-btn {
  background: transparent;
  color: var(--white);
  font-size: 20px;
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.header-btn:hover { background: rgba(255, 255, 255, 0.08); }

.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content { max-width: 100%; }

@media (min-width: 768px) {
  .main-content { padding: 0 40px; }
}

/* ============================================
   GREETING
============================================ */
.greeting {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .greeting { padding: 30px 0; }
}

.greeting-text small { color: var(--text-light); font-size: 13px; }
.greeting-text h2 { font-size: 22px; margin-top: 4px; font-weight: 600; }

@media (min-width: 768px) {
  .greeting-text h2 { font-size: 28px; }
}

.greeting-text p { color: var(--text-light); font-size: 12px; margin-top: 2px; }

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
}

/* ============================================
   HERO BANNER
============================================ */
.hero-banner {
  margin: 0 20px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1E4A8F 0%, #0A1A3C 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
}

.hero-banner:hover { transform: scale(1.01); }

@media (min-width: 768px) {
  .hero-banner {
    margin: 0 0 24px;
    height: 260px;
    padding: 30px;
  }
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,26,60,0.1) 0%, rgba(10,26,60,0.9) 100%);
  z-index: 0;
}

.hero-text { position: relative; z-index: 1; }
.hero-text h3 { font-size: 18px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

@media (min-width: 768px) {
  .hero-text h3 { font-size: 30px; }
}

.hero-text p { font-size: 12px; color: #E0E5EC; margin: 4px 0 12px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

@media (min-width: 768px) {
  .hero-text p { font-size: 15px; }
}

.btn-explore {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
  box-shadow: 0 4px 12px rgba(212,166,67,0.4);
}

.hero-banner:hover .btn-explore { transform: translateY(-2px); }

@media (min-width: 768px) {
  .btn-explore { padding: 14px 26px; font-size: 14px; }
}

/* ============================================
   STAT CARDS
============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin-bottom: 20px;
  }
}

.stat-card {
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}

@media (min-width: 768px) {
  .stat-card { padding: 24px; }
}

.stat-card:hover { transform: translateY(-2px); }
.stat-card .icon { font-size: 22px; margin-bottom: 8px; }

@media (min-width: 768px) {
  .stat-card .icon { font-size: 28px; margin-bottom: 12px; }
}

.stat-card .label { font-size: 12px; color: rgba(255, 255, 255, 0.75); margin-bottom: 6px; }

@media (min-width: 768px) {
  .stat-card .label { font-size: 13px; }
}

.stat-card .value { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

@media (min-width: 768px) {
  .stat-card .value { font-size: 24px; }
}

.stat-card .arrow { position: absolute; top: 16px; right: 16px; opacity: 0.6; font-size: 14px; }

.card-navy { background: var(--navy-light); }
.card-green { background: var(--green); }
.card-purple { background: var(--purple); }
.card-gold { background: var(--gold); color: var(--navy); }
.card-gold .label, .card-gold .arrow { color: rgba(10, 26, 60, 0.7); }
.card-cream { background: var(--cream); color: var(--navy); }
.card-cream .label, .card-cream .arrow { color: rgba(10, 26, 60, 0.7); }

.stat-full {
  margin: 0 20px 20px;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

@media (min-width: 768px) {
  .stat-full { margin: 0 0 24px; padding: 24px; }
}

.stat-full .left .icon { font-size: 20px; margin-bottom: 6px; }
.stat-full .left .label { font-size: 12px; opacity: 0.75; }
.stat-full .left .value { font-size: 22px; font-weight: 700; }

@media (min-width: 768px) {
  .stat-full .left .value { font-size: 28px; }
}

/* ============================================
   ACTION BUTTONS
============================================ */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .action-row { gap: 20px; padding: 0; margin-bottom: 24px; }
}

.action-btn {
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: transform 0.15s;
}

@media (min-width: 768px) {
  .action-btn { padding: 22px; font-size: 16px; gap: 14px; }
}

.action-btn:hover { transform: translateY(-2px); }

.action-btn .icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}

.action-btn small { display: block; font-size: 10px; font-weight: 400; opacity: 0.7; margin-top: 2px; }

.btn-recharge { background: linear-gradient(135deg, #1E4A8F, #0F2A4A); color: white; }
.btn-withdraw { background: var(--gold); color: var(--navy); }
.btn-withdraw .icon { background: rgba(10, 26, 60, 0.15); }

/* ============================================
   WHATSAPP BANNER
============================================ */
.whatsapp-banner {
  margin: 0 20px 20px;
  background: linear-gradient(135deg, #128C7E, #075E54);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .whatsapp-banner { margin: 0 0 24px; padding: 20px; }
}

.whatsapp-banner .wa-icon { font-size: 32px; }
.whatsapp-banner .wa-text { flex: 1; }
.whatsapp-banner .wa-text strong { display: block; font-size: 14px; }
.whatsapp-banner .wa-text small { font-size: 11px; opacity: 0.8; }

/* ============================================
   BOTTOM NAV
============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 12px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 10px;
  padding: 4px 12px;
  transition: color 0.2s;
}

.nav-item .nav-icon { font-size: 20px; }
.nav-item.active { color: var(--gold); }

@media (min-width: 768px) {
  .bottom-nav {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    justify-content: flex-end;
    gap: 20px;
  }
  .nav-item {
    flex-direction: row;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
  }
  .nav-item:hover { background: rgba(255,255,255,0.05); }
  .nav-item .nav-icon { font-size: 16px; }
}

/* ============================================
   FOOTER
============================================ */
.app-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 20px 20px;
  margin-top: 20px;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .app-footer { padding: 50px 40px 30px; margin-top: 40px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-brand .brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.footer-brand .brand-name { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--white); }
.footer-brand .brand-sub { font-size: 9px; letter-spacing: 2px; color: var(--text-light); text-transform: uppercase; }
.footer-brand p { font-size: 12px; line-height: 1.7; opacity: 0.8; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 11px;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-tagline {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .app-footer { padding-bottom: 100px; }
}

/* ============================================
   UTILITIES
============================================ */
.loading { display: flex; justify-content: center; padding: 40px; color: var(--text-light); }

.spinner {
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }