/* ============================================================
   RECHARGEZONE - GLOBAL STYLESHEET
   Dark Cyberpunk/3D Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg-primary: #08081A;
  --bg-secondary: #0D0D24;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --purple: #7B2FFF;
  --purple-light: #9B5FFF;
  --cyan: #00E5FF;
  --cyan-dark: #00B4CC;
  --pink: #FF3E9A;
  --gold: #FFD700;
  --green: #00E676;
  --red: #FF1744;
  --orange: #FF6D00;
  --text-primary: #E8E8FF;
  --text-secondary: #8888BB;
  --text-muted: #555577;
  --border: rgba(123, 47, 255, 0.2);
  --border-hover: rgba(0, 229, 255, 0.4);
  --glow-purple: 0 0 20px rgba(123, 47, 255, 0.5);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.5);
  --glow-pink: 0 0 20px rgba(255, 62, 154, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(123, 47, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 62, 154, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(123, 47, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple-light); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: 'Exo 2', sans-serif; font-weight: 700; line-height: 1.2; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.orbitron { font-family: 'Orbitron', sans-serif; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.section { padding: 60px 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.navbar-brand span { color: var(--pink); -webkit-text-fill-color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--cyan); background: rgba(0, 229, 255, 0.08); }

.nav-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  -webkit-text-fill-color: white;
}

.nav-btn:hover { transform: translateY(-1px); box-shadow: var(--glow-purple); color: white; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO / BANNER SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 30px 0 20px;
}

.banner-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow-purple);
}

.banner-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active { opacity: 1; position: relative; }

.banner-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  height: 280px;
  background: linear-gradient(135deg, rgba(123,47,255,0.3), rgba(0,229,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.banner-placeholder::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(123,47,255,0.1), transparent);
  animation: rotateBanner 8s linear infinite;
}

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

.banner-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 30px 20px;
  background: linear-gradient(to top, rgba(8,8,26,0.95) 0%, transparent 100%);
}

.banner-title { font-size: 1.8rem; margin-bottom: 4px; }
.banner-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

.banner-dots {
  position: absolute;
  bottom: 12px; right: 16px;
  display: flex; gap: 6px;
}

.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.banner-dot.active { background: var(--cyan); box-shadow: var(--glow-cyan); width: 20px; border-radius: 4px; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

.title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ============================================================
   APP CARDS GRID
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-cyan);
  color: inherit;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.app-card:hover::before { left: 100%; }

.app-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.app-card-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.app-card-body {
  padding: 16px;
}

.app-card-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.app-card-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.app-card-btn:hover { box-shadow: var(--glow-purple); transform: translateY(-1px); }

.app-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: var(--purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

/* ============================================================
   RECHARGE PLANS PAGE
   ============================================================ */
.recharge-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0 20px;
}

.recharge-app-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: var(--glow-purple);
}

.recharge-app-name {
  font-size: 2rem;
  margin-bottom: 4px;
}

.user-id-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 30px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-label span { color: var(--cyan); }

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.03);
}

.form-input::placeholder { color: var(--text-muted); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  transform-style: preserve-3d;
}

.plan-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
}

.plan-card.selected {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: var(--glow-cyan);
}

.plan-card.popular {
  border-color: var(--pink);
}

.plan-card.popular::before {
  content: '🔥 POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.plan-card.best-value::before {
  content: '⭐ BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.plan-coins {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-coins-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.plan-bonus {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

.plan-price {
  margin-top: 12px;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--glow-cyan);
}

.plan-card.selected .plan-check { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  -webkit-text-fill-color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-purple); color: white; }

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: #000;
  -webkit-text-fill-color: #000;
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); color: #000; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-light); -webkit-text-fill-color: var(--purple-light); }

.btn-danger {
  background: linear-gradient(135deg, #B71C1C, #F44336);
  color: white; -webkit-text-fill-color: white;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(244,67,54,0.5); }

.btn-success {
  background: linear-gradient(135deg, #1B5E20, #4CAF50);
  color: white; -webkit-text-fill-color: white;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(76,175,80,0.5); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ============================================================
   PAYMENT PAGE
   ============================================================ */
.payment-container {
  max-width: 520px;
  margin: 40px auto;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.payment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}

.order-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.95rem;
}

.order-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

.upi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #1a5f2a, #2e7d32);
  border: 1px solid #4CAF50;
  border-radius: var(--radius-md);
  color: white;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
  -webkit-text-fill-color: white;
}

.upi-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
  color: white;
}

.upi-logo {
  width: 36px; height: 36px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #5C2D91;
  font-size: 0.7rem;
}

.coupon-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.coupon-input { flex: 1; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-pending { background: rgba(255, 152, 0, 0.15); color: #FF9800; border: 1px solid rgba(255,152,0,0.3); }
.badge-success { background: rgba(76, 175, 80, 0.15); color: #4CAF50; border: 1px solid rgba(76,175,80,0.3); }
.badge-danger  { background: rgba(244, 67, 54, 0.15); color: #F44336; border: 1px solid rgba(244,67,54,0.3); }
.badge-hold    { background: rgba(33, 150, 243, 0.15); color: #2196F3; border: 1px solid rgba(33,150,243,0.3); }

/* ============================================================
   CARDS / GLASS
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.glass-card:hover { border-color: var(--border-hover); }

/* ============================================================
   USER PROFILE
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, rgba(123,47,255,0.2), rgba(0,229,255,0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
}

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  box-shadow: var(--glow-cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name { font-size: 1.8rem; margin-bottom: 4px; }
.profile-email { color: var(--text-secondary); margin-bottom: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
}

.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   TRANSACTION TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.txn-table th {
  background: rgba(123,47,255,0.1);
  padding: 14px 16px;
  text-align: left;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.txn-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(123,47,255,0.05);
  vertical-align: middle;
  white-space: nowrap;
}

.txn-table tr:hover td { background: rgba(255,255,255,0.02); }
.txn-table tr:last-child td { border-bottom: none; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }

.form-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 600;
  animation: slideDown 0.3s ease;
  position: relative;
  z-index: 1;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.flash-icon { font-size: 1.2rem; flex-shrink: 0; }
.flash-success { background: rgba(76,175,80,0.15); border: 1px solid rgba(76,175,80,0.3); color: #66BB6A; }
.flash-error   { background: rgba(244,67,54,0.15); border: 1px solid rgba(244,67,54,0.3); color: #EF5350; }
.flash-warning { background: rgba(255,152,0,0.15); border: 1px solid rgba(255,152,0,0.3); color: #FFA726; }
.flash-info    { background: rgba(33,150,243,0.15); border: 1px solid rgba(33,150,243,0.3); color: #42A5F5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; margin-bottom: 12px; }
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.footer-heading { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active { opacity: 1; pointer-events: all; }

.loading-spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-text { font-size: 1rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover, .page-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  -webkit-text-fill-color: white;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(123,47,255,0.3); }
  50% { box-shadow: 0 0 30px rgba(123,47,255,0.7), 0 0 60px rgba(123,47,255,0.3); }
}

.float-anim { animation: float 3s ease-in-out infinite; }
.pulse-anim { animation: pulse-glow 2s ease-in-out infinite; }

.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .profile-hero { flex-direction: column; text-align: center; }
  .hamburger { display: flex; }
  .nav-links { 
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .banner-slide img, .banner-placeholder { height: 180px; }
  .recharge-header { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
}
