/* ═══════════════════════════════════════════════════════════════
   AIDP — Main Stylesheet
   Design: Dark-premium, glassmorphism, smooth animations
═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  --bg-dark:       #0b0f1a;
  --bg-card:       #111827;
  --bg-card-2:     #1a2236;
  --bg-glass:      rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.08);
  --border-light:  rgba(255, 255, 255, 0.14);

  --accent:        #4f8ef7;
  --accent-hover:  #3a78e8;
  --accent-glow:   rgba(79, 142, 247, 0.35);
  --accent-2:      #8b5cf6;
  --accent-3:      #06d6a0;

  --text-primary:  #f0f4ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4b5563;

  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #38bdf8;

  --font:          'Inter', system-ui, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.5);
  --transition:    0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ── 3. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 9px; }

/* ── 4. Container ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 768px) {
  .container { padding: 0 12px; }
}

/* ── 5. Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.35rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.brand-logo {
  width: 40px; height: 40px;
  display: block;
  transition: transform 0.3s ease;
}
.nav-brand:hover .brand-logo {
  transform: scale(1.05) rotate(2deg);
}
.brand-text { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-nav-logout {
  color: var(--danger) !important;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
}
.btn-nav-logout:hover { background: rgba(239,68,68,0.1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 12px 28px; border-radius: 99px; border: none;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
  letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); color: #fff; }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-primary.btn-xl { padding: 16px 44px; font-size: 1.1rem; }
.btn-primary.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }
.btn-primary.float-animation {
  animation: floatVertical 3s ease-in-out infinite;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-primary); font-weight: 500; font-size: 0.95rem;
  padding: 12px 28px; border-radius: 99px;
  border: 1px solid var(--border-light);
  cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-outline.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-outline.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-outline.btn-xs { padding: 5px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn-outline.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); margin-top: 8px; }

/* Apply page cancel button */
.apply-submit-row .btn-outline {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}
.apply-submit-row .btn-outline:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.btn-success {
  display: inline-flex; align-items: center;
  background: var(--success); color: #fff; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.82rem; transition: all var(--transition);
}
.btn-success:hover { background: #16a34a; }
.btn-success.btn-full { width: 100%; justify-content: center; padding: 12px; border-radius: var(--radius); margin-top: 10px; }

.btn-danger {
  display: inline-flex; align-items: center;
  background: var(--danger); color: #fff; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.82rem; transition: all var(--transition);
}
.btn-danger:hover { background: #dc2626; }
.btn-danger.btn-full { width: 100%; justify-content: center; padding: 12px; border-radius: var(--radius); margin-top: 10px; }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text-muted); font-weight: 500;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  cursor: pointer; font-size: 0.82rem; transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }
.btn-ghost.btn-full { width: 100%; justify-content: center; padding: 10px; border-radius: var(--radius); margin-top: 10px; }

/* ── 7. Flash Messages ───────────────────────────────────── */
.flash-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px; width: 100%;
}
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--bg-card-2); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease; transition: opacity 0.6s ease;
}
.flash-success { border-left: 4px solid var(--success); }
.flash-danger  { border-left: 4px solid var(--danger); }
.flash-warning { border-left: 4px solid var(--warning); }
.flash-info    { border-left: 4px solid var(--info); }
.flash-icon { font-size: 1.1rem; flex-shrink: 0; }
.flash-text { font-size: 0.88rem; color: var(--text-primary); flex: 1; }
.flash-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 4px;
  transition: color var(--transition);
}
.flash-close:hover { color: var(--text-primary); }

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── 8. Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand-wrap {
  display: flex; align-items: center; gap: 12px; justify-content: center;
}
.footer-logo {
  width: 40px; height: 40px; display: block;
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.1) rotate(5deg);
}
.footer-brand {
  font-size: 1.4rem; font-weight: 800; margin: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy  { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-tagline { color: var(--text-secondary); font-size: 0.8rem; margin: 0; font-style: italic; }

/* ── 9. HOME ──────────────────────────────────────────────── */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, rgba(79,142,247,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.1) 0%, transparent 55%),
              var(--bg-dark);
  padding-top: 88px; /* Navbar height + small spacing */
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Abstract shapes */
.hero-shape {
  position: absolute; pointer-events: none;
}
.hero-shape-1 {
  width: 300px; height: 300px; top: 10%; left: 5%;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(139,92,246,0.1));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 250px; height: 250px; top: 60%; right: 10%;
  background: linear-gradient(45deg, rgba(6,214,160,0.12), rgba(79,142,247,0.08));
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation: morph 10s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-shape-3 {
  width: 200px; height: 200px; bottom: 15%; left: 50%;
  background: linear-gradient(225deg, rgba(139,92,246,0.1), rgba(6,214,160,0.08));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 12s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-shape-4 {
  width: 180px; height: 180px; top: 30%; right: 5%;
  background: linear-gradient(315deg, rgba(79,142,247,0.1), rgba(139,92,246,0.08));
  border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  animation: morph 9s ease-in-out infinite;
  animation-delay: -6s;
}
.hero-shape-5 {
  width: 220px; height: 220px; bottom: 20%; right: 20%;
  background: linear-gradient(135deg, rgba(6,214,160,0.1), rgba(79,142,247,0.08));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 11s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(0) rotate(0deg); }
  25% { border-radius: 58% 42% 58% 42% / 58% 58% 42% 42%; transform: translateY(-20px) rotate(90deg); }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translateY(0) rotate(180deg); }
  75% { border-radius: 42% 58% 42% 58% / 42% 42% 58% 58%; transform: translateY(20px) rotate(270deg); }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(0) rotate(360deg); }
}

.hero-orb {
  position: absolute; border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.15), transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  bottom: 0; left: -100px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,214,160,0.1), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.hero-content {
  position: relative; text-align: center;
  max-width: 780px; padding: 0 24px 40px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 20px 48px; border-radius: 99px;
  border: 2px solid rgba(79,142,247,0.7);
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(139,92,246,0.15));
  color: var(--text-primary); font-size: 1.35rem; font-weight: 800;
  margin-bottom: 24px; letter-spacing: 0.8px;
  animation: fadeUp 0.6s ease both;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(79,142,247,0.2);
  text-transform: uppercase;
  transition: all var(--transition);
}
.hero-badge:hover {
  border-color: rgba(79,142,247,0.9);
  background: linear-gradient(135deg, rgba(79,142,247,0.25), rgba(139,92,246,0.2));
  box-shadow: 0 16px 50px rgba(79,142,247,0.3);
  transform: translateY(-2px);
}
.hero-badge-logo {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: pulse-badge 2s ease-in-out infinite;
}
.hero-badge-logo img {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 0 12px rgba(79,142,247,0.4));
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.12; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.75;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  animation: fadeUp 0.6s ease 0.2s both;
}

@media (max-width: 768px) {
  .hero { min-height: 100vh; padding-top: 60px; margin-top: 0; }
  .hero-content { padding: 0 16px 16px; margin-top: 0; }
  .hero-badge { padding: 16px 28px; font-size: 1.1rem; margin-bottom: 16px; margin-top: 0; }
  .hero-badge-logo { width: 48px; height: 48px; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
  
  /* Disable floating animation on mobile to prevent overlay */
  .hero-float-btn {
    animation: none !important;
  }
  
  .btn-primary.float-animation {
    animation: none !important;
  }
  
  /* Add proper spacing between elements */
  .hero-subtitle {
    margin-bottom: 40px;
  }
  
  .hero-actions {
    margin-bottom: 24px;
    margin-top: 16px;
    gap: 12px;
  }
}
  .hero-subtitle { 
    font-size: 0.9rem; 
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 40px;
  }
  .hero-actions { margin-bottom: 24px; margin-top: 16px; gap: 12px; }
  .hero-stats { padding: 12px 20px; gap: 0; }
  .stat-item { padding: 0 12px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.65rem; }
  .hero-scroll-hint { display: none; }
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 56px;
  animation: fadeUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 40px;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: 0.78rem; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  text-align: center; color: var(--text-muted); font-size: 0.78rem;
  animation: bounce 2s ease infinite;
}
.scroll-arrow { font-size: 1.2rem; margin-top: 4px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero-float-btn { animation: floatVertical 3s ease-in-out infinite; }

/* About section */
.about-section { padding: 20px 0; }
.section-header { text-align: center; margin-bottom: 20px; }
.section-tag {
  display: inline-block; padding: 4px 14px;
  border-radius: 99px; font-size: 0.78rem; font-weight: 600;
  background: rgba(79,142,247,0.1); color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
  animation: fadeInDown 0.6s ease-out;
}
.section-title {
  font-size: 2.4rem; font-weight: 900; color: #ffffff;
  margin-bottom: 8px; line-height: 1.2;
  animation: fadeInDown 0.6s ease-out 0.1s both;
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', Georgia, serif;
}
.section-subtitle {
  color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.about-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); backdrop-filter: blur(6px);
}
.about-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px var(--accent-glow); }
.about-card-icon { font-size: 2.2rem; margin-bottom: 18px; }
.about-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.about-card p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.about-content { max-width: 900px; margin: 0 auto; }
.about-text { 
  font-size: 1rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.about-text-highlight { color: var(--accent-3); font-weight: 600; font-size: 1.05rem; }

.about-highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  margin: 16px 0;
}
.highlight-item {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  backdrop-filter: blur(6px); transition: all var(--transition);
  display: flex; flex-direction: column; gap: 12px;
  animation: slideInUp 0.6s ease-out both;
}
.highlight-item:nth-child(1) { animation-delay: 0s; }
.highlight-item:nth-child(2) { animation-delay: 0.1s; }
.highlight-item:nth-child(3) { animation-delay: 0.2s; }
.highlight-item:nth-child(4) { animation-delay: 0.3s; }
.highlight-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}
.highlight-icon { 
  font-size: 2rem; 
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  background: rgba(79,142,247,0.1);
  border-radius: var(--radius);
  animation: pulse-icon 2s ease-in-out infinite;
}
.highlight-icon-img {
  width: 32px; height: 32px;
  display: block;
  animation: pulse-icon 2s ease-in-out infinite;
}
.highlight-item:hover .highlight-icon-img {
  animation: pulse-icon-hover 0.6s ease-in-out infinite;
}
.highlight-item:hover .highlight-icon {
  animation: pulse-icon-hover 0.6s ease-in-out infinite;
}
.highlight-title { 
  font-size: 1rem; font-weight: 800; color: var(--accent);
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  letter-spacing: 0.3px;
  margin: 0;
}
.highlight-text { 
  font-size: 0.88rem; color: #ffffff; line-height: 1.7;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  margin: 0;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px var(--accent-glow);
  }
  50% {
    box-shadow: 0 8px 40px rgba(79,142,247,0.5);
  }
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    background: rgba(79,142,247,0.1);
  }
  50% {
    transform: scale(1.05);
    background: rgba(79,142,247,0.15);
  }
}

@keyframes pulse-icon-hover {
  0%, 100% {
    transform: scale(1.05);
    background: rgba(79,142,247,0.2);
  }
  50% {
    transform: scale(1.15);
    background: rgba(79,142,247,0.3);
  }
}

@media (max-width: 768px) {
  .about-section { padding: 0; }
  .about-highlights { gap: 16px; }
  .highlight-item { padding: 18px; gap: 10px; }
  .highlight-icon { width: 45px; height: 45px; font-size: 1.8rem; }
  .highlight-title { font-size: 0.95rem; font-weight: 900; color: var(--accent); }
  .highlight-text { font-size: 0.82rem; font-weight: 600; line-height: 1.8; color: #ffffff; }
}

.director-section { padding: 40px 0; background: rgba(255,255,255,0.02); }
.director-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  backdrop-filter: blur(8px); max-width: 700px; margin: 0 auto;
  animation: slideInUp 0.8s ease-out;
}
.director-image-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  width: 280px; height: 360px;
  animation: slideInLeft 0.8s ease-out;
}
.director-image {
  width: 100%; height: 100%; object-fit: cover;
  animation: zoomInOut 4s ease-in-out infinite;
}
@keyframes zoomInOut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.director-info { 
  display: flex; flex-direction: column; gap: 8px;
  animation: slideInRight 0.8s ease-out;
}
.director-name { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.director-title { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.director-contact {
  font-size: 0.8rem; color: var(--text-primary); margin: 8px 0;
  display: flex; flex-direction: column; gap: 4px; font-weight: 600;
}
.contact-phone, .contact-email { display: flex; align-items: center; gap: 6px; }
.director-bio { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.director-stats {
  display: flex; gap: 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border);
}
.director-stat { display: flex; flex-direction: column; gap: 2px; }
.director-stat .stat-value { font-size: 1rem; font-weight: 800; color: var(--accent); }
.director-stat .stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 768px) {
  .director-section { padding: 20px 0; }
  .director-card { grid-template-columns: 1fr; gap: 8px; padding: 8px; max-width: 100%; }
  .director-image-wrap { width: 150px; height: 200px; margin: 0 auto; }
  .director-info { gap: 4px; text-align: center; }
  .director-name { font-size: 0.9rem; }
  .director-title { font-size: 0.75rem; }
  .director-bio { font-size: 0.7rem; line-height: 1.4; }
  .director-stats { gap: 8px; margin-top: 6px; padding-top: 6px; justify-content: center; }
  .director-stat .stat-value { font-size: 0.8rem; }
  .director-stat .stat-label { font-size: 0.55rem; }
}

.how-section { 
  padding: 20px 0; 
  background: rgba(255,255,255,0.02); 
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    linear-gradient(135deg, rgba(79,142,247,0.08) 0%, transparent 25%),
    linear-gradient(225deg, rgba(139,92,246,0.08) 0%, transparent 25%),
    linear-gradient(315deg, rgba(6,214,160,0.06) 0%, transparent 25%),
    linear-gradient(45deg, rgba(79,142,247,0.06) 0%, transparent 25%);
  background-size: 400% 400%;
  animation: mesh-gradient 15s ease infinite;
  pointer-events: none;
  z-index: 0;
  will-change: background-position;
}

/* Parallax layers */
.parallax-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.parallax-layer-1 {
  width: 300px; height: 300px;
  top: -50px; left: 5%;
  background: radial-gradient(circle, rgba(79,142,247,0.1), transparent 70%);
  border-radius: 50%;
}
.parallax-layer-2 {
  width: 250px; height: 250px;
  bottom: -30px; right: 10%;
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
  border-radius: 50%;
}
.parallax-layer-3 {
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  background: radial-gradient(circle, rgba(6,214,160,0.06), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.how-section > .container {
  position: relative; z-index: 1;
}

@keyframes mesh-gradient {
  0% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
  25% { background-position: 50% 50%, 50% 0%, 100% 50%, 0% 50%; }
  50% { background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%; }
  75% { background-position: 50% 50%, 50% 100%, 0% 50%, 100% 50%; }
  100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
}
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  z-index: 0;
}
.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.step-marker {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.step-icon {
  font-size: 1.8rem;
  margin-top: -8px;
}
.step-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.step-content::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(79,142,247,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.step-content:hover::before {
  opacity: 1;
}
.step-content:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-4px);
}
.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  position: relative; z-index: 1;
}
.step-description {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0;
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  position: relative; z-index: 1;
}
.step-connector {
  display: none;
}

@media (max-width: 768px) {
  .process-timeline::before {
    left: 20px;
    top: 50px;
  }
  .process-step {
    gap: 20px;
    margin-bottom: 30px;
  }
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  .step-icon {
    font-size: 1.5rem;
  }
  .step-content {
    padding: 20px;
  }
  .step-title {
    font-size: 1rem;
  }
  .step-description {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
  }
}

/* CTA */
.cta-section { padding: 40px 0 60px; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: var(--radius-xl); padding: 70px 40px;
  text-align: center; backdrop-filter: blur(8px);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(79,142,247,0.08) 25%, rgba(79,142,247,0.08) 26%, transparent 27%, transparent 74%, rgba(79,142,247,0.08) 75%, rgba(79,142,247,0.08) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(79,142,247,0.08) 25%, rgba(79,142,247,0.08) 26%, transparent 27%, transparent 74%, rgba(79,142,247,0.08) 75%, rgba(79,142,247,0.08) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  animation: grid-shift 20s linear infinite;
}
.cta-card::after {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(79,142,247,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.cta-orb {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.2), transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
  z-index: 0;
}
.cta-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 36px; position: relative; z-index: 2; }

@keyframes grid-shift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ── 10. AUTH PAGES ───────────────────────────────────────── */
.auth-page {
  display: flex; min-height: 100vh;
}
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
  padding: 80px 48px;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: -150px; left: -150px;
  animation: float 8s ease-in-out infinite;
}
.auth-left::after {
  content: '';
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  bottom: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
  animation-delay: -3s;
}
.auth-left-content { position: relative; max-width: 380px; z-index: 1; }
.auth-brand { font-size: 1.8rem; font-weight: 800; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.auth-logo-img { width: 50px; height: 50px; display: block; }
.auth-brand span { color: #ffffff; font-weight: 900; }
.auth-left-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; line-height: 1.25; color: #ffffff; }
.auth-left-sub { color: #e2e8f0; font-size: 0.95rem; margin-bottom: 32px; line-height: 1.7; font-weight: 500; }
.auth-benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-benefits li { font-size: 0.92rem; color: #cbd5e0; display: flex; align-items: center; gap: 8px; font-weight: 500; }

.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 80px 48px;
  background: linear-gradient(to right, #1a1f2e 0%, #252b3d 100%);
  position: relative; overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.25), transparent 70%);
  top: -150px; right: -150px;
  animation: float 8s ease-in-out infinite;
}
.auth-right::after {
  content: '';
  position: absolute; width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
  bottom: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
  animation-delay: -4s;
}

/* Particle background */
.auth-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(34,197,94,0.6);
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}
.particle:nth-child(1) { width: 2px; height: 2px; left: 10%; top: 20%; animation: float-particle 15s infinite ease-in-out; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 20%; top: 60%; animation: float-particle 18s infinite ease-in-out; animation-delay: -2s; }
.particle:nth-child(3) { width: 2px; height: 2px; left: 30%; top: 10%; animation: float-particle 20s infinite ease-in-out; animation-delay: -4s; }
.particle:nth-child(4) { width: 4px; height: 4px; left: 40%; top: 80%; animation: float-particle 16s infinite ease-in-out; animation-delay: -6s; }
.particle:nth-child(5) { width: 2px; height: 2px; left: 50%; top: 30%; animation: float-particle 19s infinite ease-in-out; animation-delay: -8s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 60%; top: 70%; animation: float-particle 17s infinite ease-in-out; animation-delay: -10s; }
.particle:nth-child(7) { width: 2px; height: 2px; left: 70%; top: 15%; animation: float-particle 21s infinite ease-in-out; animation-delay: -12s; }
.particle:nth-child(8) { width: 4px; height: 4px; left: 80%; top: 50%; animation: float-particle 18s infinite ease-in-out; animation-delay: -14s; }
.particle:nth-child(9) { width: 2px; height: 2px; left: 90%; top: 75%; animation: float-particle 20s infinite ease-in-out; animation-delay: -16s; }
.particle:nth-child(10) { width: 3px; height: 3px; left: 15%; top: 85%; animation: float-particle 19s infinite ease-in-out; animation-delay: -18s; }
.particle:nth-child(11) { width: 2px; height: 2px; left: 25%; top: 40%; animation: float-particle 17s infinite ease-in-out; animation-delay: -20s; }
.particle:nth-child(12) { width: 4px; height: 4px; left: 75%; top: 25%; animation: float-particle 22s infinite ease-in-out; animation-delay: -22s; }
.particle:nth-child(13) { width: 2px; height: 2px; left: 35%; top: 55%; animation: float-particle 18s infinite ease-in-out; animation-delay: -24s; }
.particle:nth-child(14) { width: 3px; height: 3px; left: 65%; top: 35%; animation: float-particle 20s infinite ease-in-out; animation-delay: -26s; }
.particle:nth-child(15) { width: 2px; height: 2px; left: 85%; top: 65%; animation: float-particle 19s infinite ease-in-out; animation-delay: -28s; }

@keyframes float-particle {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0.8; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(-50px) scale(0.8); opacity: 0; }
}
.auth-card { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-card-header { display: flex; margin-bottom: 16px; }
.auth-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.3);
  color: var(--accent); cursor: pointer; transition: all var(--transition);
}
.auth-back-btn:hover { background: rgba(79,142,247,0.2); transform: translateX(-2px); }
.auth-back-btn svg { width: 18px; height: 18px; }
.auth-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; color: #ffffff; }
.auth-subtitle { color: #cbd5e0; font-size: 0.9rem; margin-bottom: 36px; font-weight: 500; }
.auth-subtitle a { color: #68d391; font-weight: 700; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 10px; color: var(--text-muted); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-admin-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* ── 11. FORMS ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.84rem; font-weight: 800;
  color: #ffffff; letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}
.form-control {
  background: rgba(255, 255, 255, 0.9); 
  border: 1.5px solid rgba(79,142,247,0.2);
  color: #000000; 
  font-size: 0.95rem; 
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 12px 16px; 
  border-radius: var(--radius);
  transition: all var(--transition); 
  outline: none; 
  width: 100%;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #ffffff;
  color: #000000;
}
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { 
  appearance: none; 
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234b5563'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; 
  background-position: right 12px center; 
  background-size: 20px;
  padding-right: 40px;
}
.form-hint { 
  font-size: 0.78rem; 
  color: #6b7280; 
  margin-top: 4px;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-right: 48px; }
.input-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.5;
  transition: opacity var(--transition); padding: 4px;
}
.input-eye:hover { opacity: 1; }

.form-check-row { display: flex; align-items: center; }
.form-check {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.88rem; color: var(--text-secondary);
}
.form-check input[type=checkbox] {
  width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--accent);
  cursor: pointer; margin: 0;
}

/* Radio groups */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.radio-option {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.radio-option input[type=radio] { display: none; }
.radio-option:hover { border-color: var(--accent); color: var(--accent); }
.radio-option.selected { border-color: var(--accent); background: rgba(79,142,247,0.1); color: var(--accent); }
.radio-text { font-size: 1rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.radio-icon { font-size: 1.1rem; }

.radio-icon-img {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 4px;
}

/* ── 12. APPLY PAGE ───────────────────────────────────────── */
.apply-page { 
  padding: 60px 0 40px; 
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
  position: relative;
}
.apply-page::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(79,142,247,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.apply-page > .container {
  position: relative; z-index: 1;
}
.apply-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(139,92,246,0.1));
  border: 1.5px solid rgba(79,142,247,0.3);
  color: var(--accent); cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(79,142,247,0.1);
}
.apply-back-btn:hover {
  background: linear-gradient(135deg, rgba(79,142,247,0.25), rgba(139,92,246,0.15));
  border-color: rgba(79,142,247,0.5);
  transform: translateX(-3px);
  box-shadow: 0 8px 20px rgba(79,142,247,0.2);
}
.apply-back-btn svg { width: 20px; height: 20px; }
.apply-header { 
  text-align: center; 
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}
.apply-title { 
  font-size: 2rem; 
  font-weight: 800; 
  margin-bottom: 10px;
  color: #000000;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}
.apply-subtitle { 
  color: #2d3748; 
  margin-bottom: 16px;
  font-weight: 500;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}
.apply-grant-range {
  display: inline-block; 
  padding: 6px 18px; 
  border-radius: 99px;
  background: rgba(6,214,160,0.1); 
  border: 1px solid rgba(6,214,160,0.3);
  color: #06d6a0; 
  font-size: 0.88rem;
}

.apply-form { 
  max-width: 860px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  max-height: 85vh; 
  overflow-y: auto; 
  padding-right: 12px;
}
.apply-form::-webkit-scrollbar { width: 6px; }
.apply-form::-webkit-scrollbar-track { background: transparent; }
.apply-form::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.apply-form::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

.form-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(79,142,247,0.15);
  border-radius: var(--radius-lg); 
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all var(--transition);
  animation: slideInUp 0.6s ease-out both;
}
.form-section:nth-child(1) { animation-delay: 0s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }
.form-section:nth-child(5) { animation-delay: 0.4s; }
.form-section:hover {
  border-color: rgba(79,142,247,0.3);
  box-shadow: 0 8px 32px rgba(79,142,247,0.1);
  transform: translateY(-2px);
}
.form-section-header {
  display: flex; 
  align-items: center; 
  gap: 14px; 
  margin-bottom: 16px;
}
.form-section-num {
  font-size: 0.7rem; 
  font-weight: 800; 
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 99px; 
  padding: 6px 12px; 
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(79,142,247,0.3);
}
.form-section-header h3 { 
  font-size: 1.05rem; 
  font-weight: 700;
  color: #000000;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-grid-2 { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px;
}

.form-declaration { 
  background: rgba(255,255,255,0.95); 
  border-style: dashed;
}
.apply-submit-row { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-top: 16px; 
  justify-content: flex-end;
}

.form-warning {
  background: rgba(245,158,11,0.08) !important; 
  border: 1px solid rgba(245,158,11,0.4) !important;
  border-left: 4px solid var(--warning) !important;
}
.form-warning .warning-icon { 
  font-size: 1.8rem; 
  margin-bottom: 12px;
}
.form-warning h3 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--warning); 
  margin-bottom: 12px;
}
.form-warning p { 
  font-size: 0.9rem; 
  color: #4b5563; 
  line-height: 1.7; 
  margin-bottom: 10px;
}
.form-warning p:last-child { margin-bottom: 0; }
.form-warning strong { 
  color: var(--warning); 
  font-weight: 600;
}

/* ── Processing Fee Info ────────────────────────────────── */
.processing-fee-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  backdrop-filter: blur(4px);
}

.fee-calculation {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fee-calculation p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 600;
}

.fee-amount-display {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
  border: 2px solid rgba(245,158,11,0.4);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--warning);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

/* ── 13. DASHBOARD ────────────────────────────────────────── */
.dashboard-page { 
  padding: 100px 0 60px; 
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 50%, #2a2f3e 100%);
  background-attachment: fixed;
  position: relative;
}
.dash-welcome {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px; padding: 28px 32px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(8px);
  flex-wrap: wrap; gap: 16px;
}
.dash-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.3);
  color: var(--accent); cursor: pointer; transition: all var(--transition);
  margin-bottom: 8px;
  margin-right: 12px;
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
  text-decoration: none;
  flex-shrink: 0;
}
.dash-back-btn:hover { background: rgba(79,142,247,0.2); transform: translateX(-2px); }
.dash-back-btn svg { width: 20px; height: 20px; pointer-events: none; display: block; }

.header-logo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  flex-shrink: 0;
}

.header-logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.header-brand-text {
  font-size: 14px;
  font-weight: 800;
  color: #4f8ef7;
  letter-spacing: 0.5px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.dash-welcome-name { font-size: 1.6rem; font-weight: 800; }
.dash-welcome-sub  { color: var(--text-secondary); font-size: 0.9rem; }

.dash-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px;
  margin-bottom: 36px;
}
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
  display: flex; align-items: flex-start; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden; transition: all var(--transition);
}
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dash-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, currentColor 0%, transparent 60%);
  opacity: 0.04;
}
.dash-card-accent-blue  { color: var(--accent); }
.dash-card-accent-green { color: var(--success); }
.dash-card-accent-purple{ color: var(--accent-2); }
.dash-card-accent-orange{ color: var(--warning); }
.dash-card-icon { font-size: 1.8rem; }
.dash-card-body { display: flex; flex-direction: column; gap: 4px; }
.dash-card-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card-value { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.dash-card-value.muted { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; }
.dash-card-link { font-size: 0.82rem; color: var(--accent); margin-top: 4px; }
.dash-card-link:hover { text-decoration: underline; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 99px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
}
.status-pending  { background: rgba(245,158,11,0.15);  color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-approved { background: rgba(34,197,94,0.15);   color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.status-rejected { background: rgba(239,68,68,0.15);   color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.status-lg { font-size: 0.9rem; padding: 6px 18px; }

/* Detail panels */
.detail-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 24px;
}
.detail-panel-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 2px solid var(--accent);
}
.detail-panel-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.detail-section-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 24px 32px; margin-bottom: 32px;
}
.detail-item { display: flex; flex-direction: column; gap: 8px; }
.detail-item-full { grid-column: 1 / -1; }
.detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; }
.detail-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.detail-value.grant-highlight { color: var(--success); font-size: 1.3rem; font-weight: 800; }

.detail-text-block { margin-top: 20px; }
.detail-text-block h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.detail-text-block p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }

/* Alert banners */
.alert-approved, .alert-rejected, .alert-pending {
  padding: 20px 24px; border-radius: var(--radius-lg);
  font-size: 0.95rem; margin-bottom: 32px; line-height: 1.7;
  border-left: 5px solid;
}
.alert-approved { background: rgba(34,197,94,0.08); border-left-color: var(--success); color: #4ade80; }
.alert-rejected { background: rgba(239,68,68,0.08); border-left-color: var(--danger); color: #f87171; }
.alert-pending { background: rgba(245,158,11,0.08); border-left-color: var(--warning); color: #fbbf24; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state.compact { padding: 30px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

/* ── 14. ADMIN LAYOUT ─────────────────────────────────────── */
.admin-page { display: flex; min-height: 100vh; padding-top: 68px; }
.admin-page:has(.admin-chat-layout) {
  padding-top: 0;
  height: 100vh;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0; position: sticky; top: 68px; height: calc(100vh - 68px);
  overflow-y: auto;
}
.admin-page:has(.admin-chat-layout) .admin-sidebar {
  top: 0;
  height: 100vh;
}
.admin-sidebar-brand {
  font-size: 1.1rem; font-weight: 800; padding: 0 20px 24px;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.admin-sidebar-brand span { color: var(--accent); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  padding-right: 32px; /* Make room for badge */
}
.admin-nav-item:hover { color: var(--text-primary); background: var(--bg-glass); }
.admin-nav-item.active { color: var(--accent); background: rgba(79,142,247,0.1); }
.admin-logout { color: var(--danger); margin-top: 16px; border-top: 1px solid var(--border); padding-top: 20px; }
.nav-ico { font-size: 1rem; }

.admin-content { flex: 1; padding: 32px; overflow-x: hidden; }
.admin-content:has(.admin-chat-layout) {
  padding: 0 !important;
  height: 100vh;
  overflow: hidden;
}

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.admin-page-title { font-size: 1.6rem; font-weight: 800; }
.admin-topbar-user { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.admin-count-badge {
  background: rgba(79,142,247,0.1); color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3); border-radius: 99px;
  padding: 4px 14px; font-size: 0.82rem; font-weight: 600;
}

/* Stat cards */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.admin-stat-card:hover { transform: translateY(-2px); }
.stat-card-link {
  cursor: pointer; text-decoration: none; color: inherit;
}
.stat-card-link:hover { border-color: currentColor; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.admin-stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; }
.stat-arrow {
  margin-left: auto; opacity: 0.6; transition: all var(--transition);
  color: currentColor; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.stat-card-link:hover .stat-arrow { opacity: 1; transform: translateX(4px); }
.stat-blue::before   { background: var(--accent); }
.stat-purple::before { background: var(--accent-2); }
.stat-yellow::before { background: var(--warning); }
.stat-green::before  { background: var(--success); }
.stat-red::before    { background: var(--danger); }
.stat-icon  { font-size: 1.6rem; }
.stat-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.stat-value { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tables */
.admin-table-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.admin-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.admin-table-header h2 { font-size: 1rem; font-weight: 700; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th {
  text-align: left; padding: 14px 18px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); font-weight: 600;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.admin-table td {
  padding: 14px 18px; font-size: 0.88rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }
.action-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Online indicators */
.online-indicator { font-size: 0.8rem; font-weight: 600; }
.online-indicator.online  { color: var(--success); }
.online-indicator.offline { color: var(--text-muted); }

/* Filter pills */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 16px; border-radius: 99px;
  border: 1px solid var(--border); font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
}
.filter-pill:hover   { border-color: var(--accent); color: var(--accent); }
.filter-pill.active  { background: rgba(79,142,247,0.15); border-color: var(--accent); color: var(--accent); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.page-btn {
  padding: 8px 18px; border-radius: 8px;
  background: var(--bg-card-2); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.85rem; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-info { font-size: 0.85rem; color: var(--text-muted); }

/* View application layout */
.view-app-grid { display: grid; grid-template-columns: 1fr 310px; gap: 24px; }
.back-link { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.back-link:hover { color: var(--accent); }
.action-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; height: fit-content;
  position: sticky; top: 100px;
}
.action-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.action-info { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.action-form { margin-top: 10px; }
.action-decided { padding: 12px; border-radius: var(--radius); background: var(--bg-card-2); font-size: 0.88rem; color: var(--text-secondary); margin-top: 10px; }
.action-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── 15. CHAT ─────────────────────────────────────────────── */
.chat-page {
  padding-top: 68px; min-height: 100vh;
  display: flex; flex-direction: column;
}
.chat-layout {
  display: grid; grid-template-columns: 300px 1fr;
  height: calc(100vh - 68px);
}
.admin-chat-layout { 
  grid-template-columns: 260px 1fr; 
  height: 100vh; /* Full height for admin chat */
}

/* Chat sidebar */
.chat-sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.chat-sidebar-header {
  padding: 16px 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 0;
}
.admin-users-sidebar .chat-sidebar-header { background: rgba(255,255,255,0.05); padding: 16px 18px; }
.chat-admin-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 700;
  position: relative; flex-shrink: 0; color: #fff;
}
.chat-sidebar-header { display: flex; align-items: center; gap: 12px; }
.chat-admin-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.chat-admin-status { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chat-sidebar-info { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-sidebar-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* Online dots */
.online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  position: absolute; bottom: 0; right: 0;
  border: 2px solid var(--bg-card);
}
.online-dot-sm {
  width: 9px; height: 9px; border-radius: 50%;
  position: absolute; bottom: 0; right: 0;
  border: 2px solid var(--bg-card);
}
.online-dot.online, .online-dot-sm.online  { background: var(--success); }
.online-dot.offline, .online-dot-sm.offline { background: var(--text-muted); }

/* User list (admin chat) */
.user-list { 
  flex: 1; 
  overflow-y: auto;
  min-height: 0; /* Allow flex shrinking */
}
.admin-users-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.admin-users-sidebar .chat-sidebar-header {
  flex-shrink: 0;
  padding: 16px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-users-sidebar .user-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  height: 100%;
  /* Ensure scrollbar is visible and styled */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}

.admin-users-sidebar .user-list::-webkit-scrollbar {
  width: 8px;
}

.admin-users-sidebar .user-list::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.admin-users-sidebar .user-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.admin-users-sidebar .user-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Back button in conversations header */
.conversations-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.conversations-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-2px);
}

.conversations-back-btn svg {
  width: 20px;
  height: 20px;
}

/* Swipe-to-delete container */
.user-list-item-container {
  position: relative;
  overflow: hidden;
}

.user-list-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
  background: var(--bg-card);
  z-index: 2;
  text-decoration: none;
  color: inherit;
  padding: 14px 18px;
  gap: 12px;
  cursor: pointer;
}

.user-list-item-wrapper:hover {
  background: var(--bg-glass);
}

.user-list-item-wrapper.active {
  background: rgba(79,142,247,0.1);
  border-left: 3px solid var(--accent);
}

.swipe-delete-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  border: none;
  outline: none;
  pointer-events: auto;
}

.swipe-delete-action:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.swipe-delete-action:active {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: scale(0.95);
}

.swipe-delete-action svg {
  width: 24px;
  height: 24px;
}

.swipe-delete-action span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh; /* Full viewport height */
  max-height: 100vh;
}
.user-list-info { flex: 1; min-width: 0; }
.user-list-name  { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list-email { display: block; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-badge {
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; border-radius: 99px;
  padding: 2px 7px; min-width: 20px; text-align: center; flex-shrink: 0;
}
.no-users-msg { padding: 24px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Chat window */
.chat-window {
  display: flex; flex-direction: column; background: var(--bg-dark);
  height: 100%; /* Ensure it fills the grid cell */
}
.chat-topbar {
  padding: 16px 24px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-topbar-left {
  display: flex; align-items: center; gap: 16px; flex: 1;
}
.chat-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #ffffff; border: none;
  color: #0b0f1a; cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.chat-back-btn:hover {
  background: #f0f4ff; transform: translateX(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.chat-back-btn svg { width: 24px; height: 24px; stroke-width: 2.5; }
.chat-topbar-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.chat-topbar-title { font-weight: 700; font-size: 1rem; display: block; }
.chat-topbar-sub   { font-size: 0.75rem; color: var(--text-muted); display: block; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-sys-msg {
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  padding: 10px 18px; background: var(--bg-glass);
  border-radius: 99px; align-self: center;
}
.chat-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--text-muted); padding: 40px;
}
.chat-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.chat-empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.chat-empty-state p  { font-size: 0.88rem; }

/* Message bubbles */
.msg-row { display: flex; }
.msg-mine    { justify-content: flex-end; }
.msg-theirs  { justify-content: flex-start; }
.msg-bubble {
  max-width: 68%; padding: 12px 16px;
  border-radius: 18px; position: relative;
}
.msg-mine .msg-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-bottom-right-radius: 4px;
}
.msg-theirs .msg-bubble {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-text  { font-size: 0.92rem; line-height: 1.55; word-break: break-word; color: #fff; }
.msg-theirs .msg-text { color: var(--text-primary); }

.msg-sender-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(79, 142, 247, 0.9);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.msg-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px;
}
.msg-time  { font-size: 0.68rem; opacity: 0.65; color: rgba(255,255,255,0.7); }
.msg-theirs .msg-time { color: var(--text-muted); }
.msg-status {
  font-size: 0.7rem; font-weight: 700; color: var(--accent);
  opacity: 0.8; letter-spacing: -1px;
}
.msg-status:hover { opacity: 1; }

/* Message status indicators (delivery & read receipts) */
.msg-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.msg-status-indicator .status-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
.msg-status-indicator.sending .status-icon {
  color: rgba(255, 255, 255, 0.5);
}
.msg-status-indicator.delivered .status-icon {
  color: rgba(255, 255, 255, 0.6);
}
.msg-status-indicator.read .status-icon {
  color: #22c55e;
}
.msg-status-indicator.read .status-icon-second {
  margin-left: -6px;
}

/* Chat input */
.chat-input-bar {
  padding: 16px 20px; background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; gap: 12px; align-items: center;
}
.chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0 18px;
  transition: all var(--transition);
}
.chat-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.chat-image-upload-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-image-upload-btn:hover {
  background: var(--bg-glass);
  color: var(--accent);
  transform: scale(1.1);
}
.chat-image-upload-btn svg {
  width: 20px;
  height: 20px;
}
.chat-input {
  flex: 1; 
  background: transparent; 
  border: none;
  color: var(--text-primary); 
  font-size: 0.95rem; 
  font-family: var(--font);
  padding: 12px 0; 
  outline: none;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Image preview in chat */
.msg-image {
  max-width: 300px;
  max-height: 400px;
  border-radius: 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.msg-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.chat-image-input {
  display: none;
}

/* ── Modern Delete Confirmation Modal ─────────────────────── */
.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.delete-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.delete-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
  border: 2px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-danger 2s ease-in-out infinite;
}

.delete-modal-icon svg {
  width: 40px;
  height: 40px;
  color: #ef4444;
  stroke-width: 2;
}

@keyframes pulse-danger {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
  }
}

.delete-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px 0;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.5px;
}

.delete-modal-message {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.delete-modal-message strong {
  color: var(--accent);
  font-weight: 700;
}

.delete-modal-warning {
  font-size: 0.875rem;
  color: #ef4444;
  text-align: center;
  margin: 0 0 32px 0;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  font-weight: 600;
}

.delete-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.delete-modal-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
}

.delete-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.delete-modal-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.delete-modal-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(239, 68, 68, 0.5);
}

.delete-modal-confirm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.delete-modal-confirm svg {
  width: 18px;
  height: 18px;
}

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

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .delete-modal-content {
    padding: 32px 24px;
    max-width: 90%;
  }
  
  .delete-modal-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }
  
  .delete-modal-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .delete-modal-title {
    font-size: 1.5rem;
  }
  
  .delete-modal-message {
    font-size: 0.9rem;
  }
  
  .delete-modal-actions {
    flex-direction: column;
  }
  
  .delete-modal-btn {
    width: 100%;
  }
}

/* ── 16. ERROR PAGES ──────────────────────────────────────── */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.error-code { font-size: 8rem; font-weight: 900; color: var(--accent); opacity: 0.15; line-height: 1; }
.error-title { font-size: 2rem; font-weight: 700; margin-top: -32px; margin-bottom: 12px; }
.error-body  { color: var(--text-secondary); margin-bottom: 32px; }

/* ── 17. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 60px 28px; }

  .view-app-grid { grid-template-columns: 1fr; }
  .action-panel { position: static; }

  .chat-layout { grid-template-columns: 240px 1fr; }

  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group-full { grid-column: unset; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-card); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .admin-sidebar { display: none; }
  .admin-page { flex-direction: column; }
  .admin-content { padding: 20px; }

  .chat-layout { 
    grid-template-columns: 1fr; 
    grid-template-rows: auto 1fr; 
    height: 100vh;
  }
  .chat-page .chat-layout {
    height: calc(100vh - 68px);
  }
  
  /* Admin chat - show scrollable conversations list on mobile */
  .admin-chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    position: relative;
  }
  
  /* Hide chat window by default on mobile */
  .admin-chat-layout .chat-window {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: var(--bg-dark);
  }
  
  /* Show chat window when conversation is selected */
  .admin-chat-layout.conversation-active .chat-window {
    display: flex;
    animation: slideInRight 0.3s ease-out;
  }
  
  /* Hide sidebar when conversation is active */
  .admin-chat-layout.conversation-active .admin-users-sidebar {
    display: none;
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  .admin-users-sidebar { 
    height: 100vh;
    max-height: 100vh !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .admin-users-sidebar .user-list {
    max-height: none !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }
  
  .chat-sidebar {
    height: auto;
    max-height: 40vh;
    overflow-y: auto;
  }
  
  .chat-window { 
    height: 100vh;
    min-height: auto;
    max-height: none;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .chat-messages {
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }
  
  .msg-bubble {
    max-width: 85%;
  }
  .chat-input-bar {
    padding: 12px 16px;
    flex-shrink: 0;
  }
  .chat-input-wrapper {
    padding: 0 12px;
  }
  .chat-send-btn {
    width: 40px;
    height: 40px;
  }
  .chat-back-btn {
    width: 40px;
    height: 40px;
  }
  
  /* Conversation list mobile adjustments */
  .user-list-item-wrapper {
    flex-wrap: nowrap;
  }
  .user-list-item {
    padding: 12px 12px 12px 12px;
    gap: 8px;
  }
  .user-list-name {
    font-size: 0.85rem;
  }
  .user-list-email {
    font-size: 0.7rem;
  }
  .user-avatar-sm {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { width: 60px; height: 1px; }

  .dash-welcome { flex-direction: column; align-items: flex-start; }

  .apply-submit-row { flex-direction: column-reverse; width: 100%; }
  .apply-submit-row .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .container { padding: 0 16px; }
  .form-section { padding: 20px 16px; }
}


/* ── DASHBOARD HEADER ─────────────────────────────────────── */
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(79,142,247,0.15) 0%, rgba(139,92,246,0.12) 50%, rgba(6,214,160,0.08) 100%);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: var(--radius-lg); backdrop-filter: blur(12px);
  flex-wrap: wrap; gap: 16px;
  box-shadow: 0 8px 32px rgba(79,142,247,0.1);
}
.header-content {
  display: flex; align-items: center; gap: 20px; flex: 1;
  position: relative;
  z-index: 5;
}
.dashboard-title {
  font-size: 1.8rem; font-weight: 800; color: var(--text-primary);
  margin: 0; line-height: 1.2;
}
.dashboard-subtitle {
  font-size: 0.9rem; color: var(--text-secondary); margin: 0;
}

/* ── DASHBOARD PAGE BACKGROUND ────────────────────────────── */
.dashboard-page {
  padding: 100px 0 60px; min-height: 100vh;
  background: 
    linear-gradient(135deg, #1a1f2e 0%, #252b3d 50%, #2a2f3e 100%),
    radial-gradient(ellipse 800px 600px at 20% 0%, rgba(79,142,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 500px at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 50%);
  background-attachment: fixed;
  position: relative;
}
.dashboard-page::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: 
    url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(79,142,247,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.dashboard-page > .container {
  position: relative; z-index: 1;
}

/* ── DASHBOARD GRID ───────────────────────────────────────── */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}
.dashboard-main { display: flex; flex-direction: column; gap: 28px; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: repeat(2, 1fr); display: grid; }
}
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .header-content { flex-direction: column; gap: 12px; }
  .dashboard-title { font-size: 1.4rem; }
}

/* ── HEADER ACTIONS ───────────────────────────────────────── */
.header-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.btn-logout {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--danger); font-weight: 600; font-size: 0.95rem;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.4);
  cursor: pointer; transition: all var(--transition);
}
.btn-logout:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.6);
  color: #ff6b6b;
}
.btn-logout:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .header-actions {
    width: 100%;
    gap: 8px;
  }
  .btn-logout {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* ── STATUS CARD ──────────────────────────────────────────── */
.status-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.status-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.status-title {
  font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
  margin: 0;
}
.status-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.status-pending {
  background: rgba(245,158,11,0.15); color: var(--warning);
  border: 1px solid rgba(245,158,11,0.3);
}
.status-badge.status-approved {
  background: rgba(34,197,94,0.15); color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
}
.status-badge.status-rejected {
  background: rgba(239,68,68,0.15); color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}

.status-message {
  display: flex; gap: 20px; padding: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.status-message.pending {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
}
.status-message.approved {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.05);
}
.status-message.rejected {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.05);
}
.message-icon {
  font-size: 2.4rem; flex-shrink: 0;
}
.message-content { flex: 1; }
.message-content h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  margin: 0 0 8px 0;
}
.message-content p {
  font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 12px 0;
  line-height: 1.6;
}

/* ── DETAILS CARD ─────────────────────────────────────────── */
.details-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.card-title {
  font-size: 1.2rem; font-weight: 800; color: var(--text-primary);
  margin: 0 0 24px 0; padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.detail-row {
  display: flex; flex-direction: column; gap: 6px;
}
.detail-label {
  font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.detail-value {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: 0.2px;
}
.detail-value.highlight {
  color: var(--accent); font-size: 1.15rem; font-weight: 900;
  text-shadow: 0 0 20px rgba(79,142,247,0.3);
}

@media (max-width: 768px) {
  .details-grid { grid-template-columns: 1fr; }
}

.text-section { margin-bottom: 20px; }
.text-section:last-child { margin-bottom: 0; }
.section-heading {
  font-size: 0.95rem; font-weight: 800; color: var(--accent);
  margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-text {
  font-size: 0.92rem; color: var(--text-primary); line-height: 1.8;
  margin: 0; font-weight: 600;
}

/* ── QUICK STATS ──────────────────────────────────────────── */
.quick-stats {
  display: flex; flex-direction: column; gap: 12px;
}
.stat-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: all var(--transition);
}
.stat-box:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-2px);
}
.stat-icon {
  font-size: 1.8rem; flex-shrink: 0;
}
.stat-info {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-secondary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.stat-value {
  font-size: 1.05rem; font-weight: 900; color: var(--text-primary);
}

/* ── ACTION CARD ──────────────────────────────────────────── */
.action-card {
  background: linear-gradient(135deg, rgba(79,142,247,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
}
.action-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.action-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  margin: 0 0 10px 0;
}
.action-text {
  font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 16px 0;
  line-height: 1.6;
}

/* ── INFO CARD ────────────────────────────────────────────── */
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.info-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  margin: 0 0 16px 0; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-item {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.info-item:last-child { margin-bottom: 0; }
.info-label {
  font-size: 0.75rem; color: var(--text-secondary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.info-value {
  font-size: 0.95rem; color: var(--text-primary); font-weight: 700;
  word-break: break-word;
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; padding: 40px 20px;
}
.empty-state {
  text-align: center; max-width: 400px;
}
.empty-icon {
  font-size: 4rem; margin-bottom: 20px;
}
.empty-state h2 {
  font-size: 1.6rem; font-weight: 800; color: var(--text-primary);
  margin: 0 0 12px 0;
}
.empty-state p {
  font-size: 0.95rem; color: var(--text-secondary); margin: 0 0 28px 0;
  line-height: 1.7;
}

/* ── RESPONSIVE DASHBOARD ─────────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-page { padding: 16px 0 40px; }
  .dashboard-header { padding: 12px 16px; }
  .dashboard-title { font-size: 1.4rem; }
  .dashboard-subtitle { font-size: 0.85rem; }
  
  .status-card, .details-card, .action-card, .info-card {
    padding: 20px;
  }
  
  .status-header { flex-direction: column; align-items: flex-start; }
  .status-message { flex-direction: column; gap: 12px; }
  .message-icon { font-size: 2rem; }
  
  .card-title { font-size: 1.05rem; margin-bottom: 16px; }
  .details-grid { gap: 16px; }
  
  .stat-box { padding: 12px; }
  .stat-icon { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-value { font-size: 0.9rem; }
  
  .action-card { padding: 18px; }
  .action-title { font-size: 0.95rem; }
  .action-text { font-size: 0.8rem; }
  
  .info-card { padding: 18px; }
  .info-title { font-size: 0.95rem; margin-bottom: 12px; }
  .info-label { font-size: 0.7rem; }
  .info-value { font-size: 0.85rem; }
}


/* ── File Upload Styles ──────────────────────────────────── */
.file-upload-wrapper {
  position: relative;
  margin-top: 12px;
}

.file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.05);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.file-upload-label:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.file-upload-label svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

.file-upload-label span {
  font-size: 14px;
  font-weight: 500;
}

.file-name-display {
  margin-top: 12px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  text-align: center;
}

.form-help-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}


/* ── Document Display Styles ─────────────────────────────── */
.document-display {
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}

.document-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}

.document-link svg {
  width: 20px;
  height: 20px;
}

.document-info {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   ELITE DASHBOARD STYLING
═══════════════════════════════════════════════════════════════ */

/* ── Dashboard Background Animation ── */
.dashboard-page {
  position: relative;
  overflow: hidden;
}

.dashboard-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-slow 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06d6a0, #4f8ef7);
  bottom: -50px;
  right: -50px;
  animation-delay: 5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #8b5cf6, #06d6a0);
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(20px, 30px); }
}

.floating-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(79, 142, 247, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(79, 142, 247, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: slide-lines 20s linear infinite;
}

@keyframes slide-lines {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ── Elite Header ── */
.elite-header {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.header-greeting {
  flex: 1;
}

.dashboard-title {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #f0f4ff, #4f8ef7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.name-highlight {
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.dynamic-subtitle {
  animation: fade-in-up 0.8s ease-out;
}

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

/* ── Text Reveal Animation ── */
.text-reveal {
  animation: text-reveal-animation 0.8s ease-out;
}

@keyframes text-reveal-animation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Journey Tracker ── */
.journey-tracker-section {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 32px;
  text-align: center;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.journey-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.1);
  border: 2px solid rgba(79, 142, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--transition);
}

.journey-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.journey-step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.journey-step.rejected .step-circle {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.step-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.journey-line {
  width: 60px;
  height: 2px;
  background: rgba(79, 142, 247, 0.2);
  transition: all var(--transition);
}

.journey-line.completed {
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
  .journey-tracker {
    flex-direction: column;
    gap: 16px;
  }
  
  .journey-line {
    width: 2px;
    height: 40px;
  }
}

/* ── Opportunity Cards ── */
.opportunity-section {
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.opportunity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.opportunity-card {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}

.opportunity-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.opportunity-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.feature-tag {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 20px;
  color: var(--accent);
  font-weight: 500;
}

.hover-lift {
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 20px 40px rgba(79, 142, 247, 0.15);
}

.floating-icon {
  animation: float-icon 3s ease-in-out infinite;
}

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

/* ── Pulse Effect ── */
.pulse-effect {
  position: relative;
  overflow: hidden;
}

.pulse-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ── Hover Glow ── */
.hover-glow {
  position: relative;
  transition: all var(--transition);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(79, 142, 247, 0.5);
  transform: translateY(-2px);
}

/* ── Social Proof Section ── */
.social-proof-section {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.proof-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  animation: fade-in-up 0.8s ease-out;
}

.proof-card:nth-child(1) { animation-delay: 0.1s; }
.proof-card:nth-child(2) { animation-delay: 0.2s; }
.proof-card:nth-child(3) { animation-delay: 0.3s; }
.proof-card:nth-child(4) { animation-delay: 0.4s; }

.proof-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 20px 40px rgba(79, 142, 247, 0.15);
}

.proof-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.proof-number {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.proof-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 32px;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 28px;
  }

  .opportunity-cards {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 24px;
  }
}


/* ── Hero Stats Icon Styling ── */
.stat-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  animation: float-icon 3s ease-in-out infinite;
}

.stat-item:nth-child(1) .stat-icon { animation-delay: 0s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 0.3s; }
.stat-item:nth-child(5) .stat-icon { animation-delay: 0.6s; }


/* ── Radial Glow Blobs ── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: blob-float 15s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4f8ef7, transparent);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: 15%;
  right: 10%;
  animation-delay: 5s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06d6a0, transparent);
  top: 50%;
  right: 5%;
  animation-delay: 10s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.05); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(30px, 50px) scale(1.05); }
}

/* ── Subtle Particles ── */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(79, 142, 247, 0.4);
  border-radius: 50%;
  animation: particle-float 20s linear infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; left: 80%; animation-delay: 2s; }
.particle-3 { top: 30%; left: 50%; animation-delay: 4s; }
.particle-4 { top: 40%; left: 20%; animation-delay: 6s; }
.particle-5 { top: 50%; left: 90%; animation-delay: 8s; }
.particle-6 { top: 60%; left: 30%; animation-delay: 10s; }
.particle-7 { top: 70%; left: 70%; animation-delay: 12s; }
.particle-8 { top: 80%; left: 15%; animation-delay: 14s; }
.particle-9 { top: 85%; left: 85%; animation-delay: 16s; }
.particle-10 { top: 25%; left: 45%; animation-delay: 18s; }

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* ── Enhanced Gradient Background ── */
.dashboard-bg-animation {
  background: linear-gradient(135deg, 
    rgba(11, 15, 26, 1) 0%,
    rgba(17, 24, 39, 0.8) 25%,
    rgba(26, 34, 54, 0.6) 50%,
    rgba(17, 24, 39, 0.8) 75%,
    rgba(11, 15, 26, 1) 100%);
  animation: gradient-shift 15s ease-in-out infinite;
}

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


/* ── Card Header with Icon ── */
.card-header-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-header-with-icon .card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.card-header-with-icon .card-title {
  margin-bottom: 0;
  flex: 1;
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM DASHBOARD GRID LAYOUT
═══════════════════════════════════════════════════════════════ */

.premium-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ── Hero Status Card ── */
.hero-status-card {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: fade-in-up 0.8s ease-out;
}

.hero-status-card.pending {
  border-color: rgba(245, 158, 11, 0.3);
}

.hero-status-card.approved {
  border-color: rgba(34, 197, 94, 0.3);
}

.hero-status-card.rejected {
  border-color: rgba(239, 68, 68, 0.3);
}

.hero-status-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-status-card.pending .hero-status-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
}

.hero-status-card.approved .hero-status-glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent);
}

.hero-status-card.rejected .hero-status-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-status-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-app-id {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-status-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.hero-amount {
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-indicator.pending .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.status-indicator.approved .status-dot {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.status-indicator.rejected .status-dot {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.status-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-status-message {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.hero-status-timeline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* ── Visual Timeline ── */
.visual-timeline-section {
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.visual-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.timeline-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.1);
  border: 2px solid rgba(79, 142, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  transition: all var(--transition);
  font-size: 20px;
}

.timeline-step.completed .timeline-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.timeline-step.active .timeline-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.5);
}

.timeline-step.rejected .timeline-circle {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.timeline-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-connector {
  width: 60px;
  height: 2px;
  background: rgba(79, 142, 247, 0.2);
  transition: all var(--transition);
}

.timeline-connector.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 142, 247, 0.4);
}

.timeline-connector.completed {
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* ── Information Cards Grid ── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start; /* Allows cards to have different heights */
}

.premium-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s ease;
  height: auto;
  min-height: fit-content;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.2);
  box-shadow: 0 12px 32px rgba(79, 142, 247, 0.1);
}

.card-fade-in {
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(139, 92, 246, 0.03));
  transition: all 0.3s ease;
}

.collapsible-header {
  cursor: pointer;
  user-select: none;
  width: 100%;
  transition: all 0.3s ease;
}

.collapsible-header:hover {
  background: rgba(79, 142, 247, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.3px;
}

.collapse-icon {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.3s ease;
  font-weight: 700;
}

.collapsible-header.expanded .collapse-icon {
  transform: rotate(180deg);
}

.card-content {
  padding: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Non-collapsible card content (like Submission Content) */
.card-content:not(.personal-info-content):not(.application-details-content):not(.financial-info-content):not(.activity-content) {
  max-height: none;
  opacity: 1;
}

.personal-info-content {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  position: relative;
}

.personal-info-content.expanded {
  max-height: 600px;
  padding: 20px;
  opacity: 1;
}

.application-details-content {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  position: relative;
}

.application-details-content.expanded {
  max-height: 400px;
  padding: 20px;
  opacity: 1;
}

.financial-info-content {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  position: relative;
}

.financial-info-content.expanded {
  max-height: 400px;
  padding: 20px;
  opacity: 1;
}

.activity-content {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  position: relative;
}

.activity-content.expanded {
  max-height: 400px;
  padding: 20px;
  opacity: 1;
}

.personal-info-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(79, 142, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.personal-info-content.expanded::before {
  opacity: 1;
}

.personal-info-content.expanded {
  max-height: 600px;
  padding: 24px 20px;
  opacity: 1;
}

/* Collapsible sections for Application Details, Financial Info, and Activity */
.application-details-content,
.financial-info-content,
.activity-panel {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.application-details-content.expanded,
.financial-info-content.expanded,
.activity-panel.expanded {
  max-height: 600px;
  padding: 24px 20px;
  opacity: 1;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.info-row:hover {
  background: rgba(79, 142, 247, 0.05);
  padding: 16px 12px;
  border-radius: 8px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.info-value {
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

/* ── Particle Network Animation ── */
@keyframes particle-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-20px) translateX(15px);
    opacity: 0.9;
  }
}

@keyframes particle-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  }
}

.personal-info-content.expanded .info-row {
  position: relative;
}

.personal-info-content.expanded .info-row::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  animation: particle-float 6s ease-in-out infinite, particle-pulse 3s ease-in-out infinite;
  z-index: 1;
}

.personal-info-content.expanded .info-row:nth-child(1)::before {
  animation-delay: 0s, 0s;
}

.personal-info-content.expanded .info-row:nth-child(2)::before {
  animation-delay: 0.5s, 0.5s;
}

.personal-info-content.expanded .info-row:nth-child(3)::before {
  animation-delay: 1s, 1s;
}

.personal-info-content.expanded .info-row:nth-child(4)::before {
  animation-delay: 1.5s, 1.5s;
}

.personal-info-content.expanded .info-row:nth-child(5)::before {
  animation-delay: 2s, 2s;
}

.personal-info-content.expanded .info-row:nth-child(6)::before {
  animation-delay: 2.5s, 2.5s;
}

/* Connecting lines between particles */
.personal-info-content.expanded .info-row::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, #1a1a1a, transparent);
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  z-index: 0;
}

.info-value.highlight {
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-value.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Text Content ── */
.text-content {
  margin-bottom: 16px;
}

.text-content:last-child {
  margin-bottom: 0;
}

.content-heading {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.content-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

/* ── Activity Panel ── */
.activity-content {
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.4);
  flex-shrink: 0;
}

.activity-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.activity-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.activity-time {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Chat Card ── */
.chat-card-content {
  text-align: center;
}

.chat-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.chat-btn {
  position: relative;
  overflow: hidden;
}

.chat-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.chat-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-status-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-status-title {
    font-size: 22px;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .visual-timeline {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-connector {
    width: 2px;
    height: 40px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .info-label {
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .info-value {
    font-size: 14px;
    font-weight: 700;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MESSAGE STATUS INDICATOR
═══════════════════════════════════════════════════════════════ */

.msg-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sending status (clock icon) */
.msg-status-indicator.sending {
  color: rgba(255, 255, 255, 0.4);
}

/* Delivered status (one grey tick) */
.msg-status-indicator.delivered {
  color: rgba(255, 255, 255, 0.6);
}

/* Read status (two blue ticks) */
.msg-status-indicator.read {
  color: #4f8ef7;
}

.status-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Second tick for read status - positioned slightly offset */
.status-icon-second {
  position: absolute;
  left: 3px;
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Animate ticks on read */
.msg-status-indicator.read .status-icon {
  animation: tick-appear 0.3s ease-out;
}

.msg-status-indicator.read .status-icon-second {
  animation: tick-appear 0.3s ease-out 0.1s both;
}

@keyframes tick-appear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Status transition animation */
.msg-status-indicator {
  animation: status-update 0.4s ease-out;
}

@keyframes status-update {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hover effect */
.msg-mine .msg-status-indicator:hover {
  transform: scale(1.15);
}

/* Message footer layout */
.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.msg-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .msg-status-indicator {
    width: 16px;
    height: 16px;
  }

  .status-icon {
    width: 12px;
    height: 12px;
  }
  
  .status-icon-second {
    width: 12px;
    height: 12px;
    left: 2px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   CHAT ADMIN STATUS INDICATOR
═══════════════════════════════════════════════════════════════ */

.chat-admin-info {
  flex: 1;
}

.chat-admin-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.chat-admin-status.online-status {
  color: #22c55e;
}

.chat-admin-status.offline-status {
  color: #6b7280;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.online-status .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-status 2s ease-in-out infinite;
}

.offline-status .status-dot {
  background: #6b7280;
}

@keyframes pulse-status {
  0%, 100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }
  50% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  }
}


/* ── White Labels on Login Page ── */
.white-label {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.form-label {
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
}


/* ═══════════════════════════════════════════════════════════════
   ELITE ADMIN DASHBOARD - WORLD-CLASS SaaS DESIGN
═══════════════════════════════════════════════════════════════ */

/* ── Animated Background Keyframes ── */
@keyframes float-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

@keyframes float-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 40px) scale(0.9); }
  66% { transform: translate(50px, -30px) scale(1.1); }
}

@keyframes float-blob-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 60px) scale(1.05); }
  66% { transform: translate(-50px, -40px) scale(0.95); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.elite-admin-dashboard {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

/* ── Animated Background Blobs ── */
.elite-admin-dashboard::before,
.elite-admin-dashboard::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.elite-admin-dashboard::before {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #8b5cf6, #4f8ef7);
  top: -200px;
  right: -100px;
  animation: float-blob-1 25s ease-in-out infinite;
}

.elite-admin-dashboard::after {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #4f8ef7, #06d6a0);
  bottom: -150px;
  left: -100px;
  animation: float-blob-2 30s ease-in-out infinite;
}

/* ── Grid Overlay ── */
.elite-admin-dashboard {
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(79, 142, 247, 0.02) 25%, rgba(79, 142, 247, 0.02) 26%, transparent 27%, transparent 74%, rgba(79, 142, 247, 0.02) 75%, rgba(79, 142, 247, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(79, 142, 247, 0.02) 25%, rgba(79, 142, 247, 0.02) 26%, transparent 27%, transparent 74%, rgba(79, 142, 247, 0.02) 75%, rgba(79, 142, 247, 0.02) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
}

/* ── Hamburger Menu ── */
.hamburger-menu {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── Sidebar Overlay (Mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Sidebar Navigation ── */
.admin-sidebar-elite {
  display: none !important; /* Hide sidebar completely */
  width: 280px;
  background: linear-gradient(180deg, #1a1f2e 0%, #252b3d 100%);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 100;
  animation: slide-in-left 0.6s ease-out;
  display: none;
  flex-direction: column;
  transition: left 0.3s ease;
}

.admin-sidebar-elite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent);
  pointer-events: none;
  border-radius: 0;
}

.sidebar-brand {
  display: none !important;
  align-items: center;
  gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  border-radius: 12px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
  transition: all 0.3s ease;
}

.brand-icon:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 6px 16px rgba(79, 142, 247, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.3px;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.brand-subtitle {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #60a5fa, #a78bfa);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-label {
  flex: 1;
}

.sidebar-footer {
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.nav-item.logout {
  color: #fca5a5;
  margin-top: 8px;
}

.nav-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

/* ── Main Content ── */
.admin-main-elite {
  flex: 1;
  margin-left: 0 !important; /* Remove sidebar margin */
  width: 100% !important; /* Full width */
  padding: 32px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  animation: fade-in-up 0.8s ease-out;
}

/* Hide navbar on user dashboard */
.dashboard-page ~ .navbar,
.dashboard-page + .navbar {
  display: none !important;
}

body:not(.admin-layout) .navbar {
  display: none !important;
}

/* ── Header ── */
.admin-header-elite {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 12px 32px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-in-up 0.8s ease-out 0.1s both;
  gap: 0;
}

.admin-header-elite .page-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  background: transparent !important;
  text-shadow: none !important;
}

.admin-header-elite .page-subtitle {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  background: transparent !important;
  text-shadow: none !important;
}

/* Additional specificity for view_application page */
.elite-admin-dashboard .admin-header-elite h1.page-title,
.elite-admin-dashboard .admin-header-elite .page-title {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.elite-admin-dashboard .admin-header-elite p.page-subtitle,
.elite-admin-dashboard .admin-header-elite .page-subtitle {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.header-left-section {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.header-center-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  width: 100%;
}

.header-spacer {
  flex: 1;
}

.header-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.admin-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  color: white;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-decoration: none;
  margin: 0;
  margin-right: 12px;
  pointer-events: auto !important;
  position: relative;
  z-index: 200 !important;
  border: none;
  padding: 0;
}

.admin-back-btn:hover {
  transform: translateX(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}

.admin-back-btn:active {
  transform: translateX(-2px) scale(0.98);
}

.admin-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  pointer-events: none;
}

.page-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff !important;
  margin: 0;
  padding: 0;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.page-subtitle {
  font-size: 12px;
  color: #ffffff !important;
  font-weight: 800;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.admin-profile:hover {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.12));
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.15);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.profile-role {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* ── KPI Summary Section ── */
.kpi-section {
  margin-bottom: 24px;
}

.kpi-cards-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-behavior: smooth;
}

.kpi-cards-container::-webkit-scrollbar {
  height: 4px;
}

.kpi-cards-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.kpi-cards-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  border-radius: 10px;
}

.kpi-card {
  flex: 0 0 180px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #4f8ef7;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.kpi-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

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

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 8px;
  animation: fadeInDown 0.6s ease-out;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4f8ef7, #8b5cf6);
  border-radius: 2px;
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.kpi-table-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fade-in-up 0.8s ease-out 0.2s both;
  transition: all 0.3s ease;
}

.kpi-table-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.kpi-table {
  width: 100%;
  border-collapse: collapse;
}

.kpi-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.kpi-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-table tbody tr {
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.kpi-table tbody tr:hover {
  background: rgba(79, 142, 247, 0.08);
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(79, 142, 247, 0.05);
}

.kpi-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: #1e293b;
}

.metric-name {
  font-weight: 600;
  color: #0f172a;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-desc {
  color: #64748b;
  font-size: 13px;
}

.metric-status {
  text-align: right;
}

/* ── Status Badges ── */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* ── Applications Section ── */
.applications-section {
  margin-bottom: 40px;
  padding: 0 32px;
}

/* ── Premium Card Scroll Container ── */
.applications-scroll-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fade-in-up 0.8s ease-out 0.3s both;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.applications-scroll-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.applications-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.applications-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.applications-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  border-radius: 10px;
}

.applications-cards-wrapper {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

/* ── Premium Application Card ── */
.application-card {
  flex: 0 0 320px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border-radius: 16px;
  border: 1px solid rgba(79, 142, 247, 0.2);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.application-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(79, 142, 247, 0.2);
  border-color: #4f8ef7;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.application-card:active {
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-id {
  font-size: 12px;
  font-weight: 800;
  color: #4f8ef7;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.1));
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(79, 142, 247, 0.08);
}

.card-row:last-child {
  border-bottom: none;
}

.card-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.card-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  flex: 1;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.card-email {
  font-size: 13px;
  color: #475569;
  word-break: break-all;
  font-weight: 600;
}

.card-amount {
  color: #22c55e;
  font-weight: 800;
  font-size: 16px;
}

.card-footer {
  border-top: 1px solid rgba(79, 142, 247, 0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.card-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4f8ef7, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: 0.3px;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 142, 247, 0.3);
}

.card-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}

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

.filter-info {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}

.filter-clear {
  margin-left: 8px;
  color: #ef4444;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.filter-clear:hover {
  color: #dc2626;
}

.btn-secondary {
  padding: 10px 16px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.applications-table-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fade-in-up 0.8s ease-out 0.3s both;
  transition: all 0.3s ease;
}

.applications-table-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.applications-table {
  width: 100%;
  border-collapse: collapse;
}

.applications-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.applications-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.applications-table tbody tr {
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.applications-table tbody tr:hover {
  background: rgba(79, 142, 247, 0.08);
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(79, 142, 247, 0.05);
}

.applications-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: #1e293b;
}

.cell-id {
  font-weight: 600;
}

.id-badge {
  background: #f1f5f9;
  color: #4f8ef7;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
}

.cell-name {
  font-weight: 600;
  color: #0f172a;
}

.cell-email {
  color: #64748b;
  font-size: 13px;
}

.cell-amount {
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cell-status {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.cell-date {
  color: #64748b;
  font-size: 13px;
}

.cell-action {
  text-align: right;
}

.btn-view {
  padding: 8px 14px;
  background: linear-gradient(135deg, #4f8ef7, #3a78e8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.btn-view:hover {
  background: linear-gradient(135deg, #3a78e8, #2d5fb8);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.4);
  transform: translateY(-2px);
}

/* ── Activity Section ── */
.activity-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 0 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  animation: fade-in-up 0.8s ease-out 0.4s both;
  transition: all 0.3s ease;
}

.activity-section:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-entry:hover {
  background: rgba(79, 142, 247, 0.08);
  transform: translateX(4px);
}

.activity-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.activity-body {
  flex: 1;
}

.activity-message {
  font-size: 14px;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.activity-timestamp {
  font-size: 12px;
  color: #64748b;
}

.activity-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.activity-badge.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-badge.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.activity-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.activity-empty {
  text-align: center;
  padding: 24px;
  color: #64748b;
  font-size: 14px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  animation: fade-in-up 0.8s ease-out;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: #64748b;
}

/* ── Detail Panel ── */
.detail-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  pointer-events: none !important;
}

.detail-panel-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}

.detail-panel-slide {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.detail-panel-slide.open {
  transform: translateY(0);
  opacity: 1;
}

.detail-panel-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.detail-panel-slide-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.detail-panel-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-panel-close:hover {
  color: #0f172a;
}

.detail-panel-content {
  padding: 16px;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #4f8ef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.btn-approve,
.btn-reject {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .admin-sidebar-elite {
    width: 220px;
  }

  .admin-main-elite {
    margin-left: 220px;
    padding: 24px;
  }

  .page-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .elite-admin-dashboard {
    flex-direction: column;
  }

  .admin-sidebar-elite {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    padding: 24px 0;
    overflow-y: auto;
  }

  .admin-sidebar-elite.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-brand {
    display: none !important;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    display: block;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .nav-item {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .nav-label {
    display: block;
  }

  .sidebar-footer {
    padding: 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    padding-top: 16px;
  }

  .admin-main-elite {
    margin-left: 0;
    padding: 16px;
  }

  /* ── Mobile Card Styling ── */
  .applications-scroll-container {
    padding: 16px;
  }

  .applications-cards-wrapper {
    gap: 12px;
  }

  .application-card {
    flex: 0 0 280px;
    padding: 16px;
  }

  .card-row {
    flex-direction: column;
    gap: 4px;
  }

  .card-label {
    min-width: auto;
  }

  .card-value {
    text-align: left;
  }

  .header-brand {
    font-size: 14px;
  }

  .page-title {
    font-size: 18px;
  }

  .admin-header-elite {
    margin-bottom: 16px;
    padding: 12px 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .kpi-section {
    margin-bottom: 20px;
  }

  .applications-section {
    margin-bottom: 20px;
  }

  .activity-section {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .nav-link {
    flex-shrink: 0;
    border-bottom: 3px solid transparent;
    border-left: none;
  }

  .nav-link:hover {
    background: transparent;
    border-bottom-color: #4f8ef7;
  }

  .nav-link.active {
    background: transparent;
    border-left: none;
    border-bottom: 3px solid #4f8ef7;
    padding-left: 16px;
  }

  .nav-label {
    display: none;
  }

  .sidebar-footer {
    padding: 0 16px;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
  }

  .nav-link.logout {
    border-bottom: 3px solid transparent;
  }

  .nav-link.logout:hover {
    background: transparent;
    border-bottom-color: #ef4444;
  }

  .admin-main-elite {
    margin-left: 0;
    padding: 16px;
  }

  .admin-header-elite {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 16px;
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(139, 92, 246, 0.1));
  }

  .header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1;
  }

  .header-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
  }

  .page-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
  }

  .page-subtitle {
    font-size: 14px;
    color: #ffffff !important;
    font-weight: 800;
  }

  .header-right {
    width: 100%;
  }

  .admin-profile {
    width: 100%;
    gap: 12px;
    padding: 12px 16px;
    justify-content: center;
  }

  .profile-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .profile-name {
    font-size: 13px;
    color: #ffffff;
  }

  .profile-role {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.9;
  }

  .admin-profile {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .kpi-table-container,
  .applications-table-container {
    overflow-x: auto;
  }

  .kpi-table,
  .applications-table {
    font-size: 12px;
    min-width: 600px;
  }

  .kpi-table th,
  .applications-table th,
  .kpi-table td,
  .applications-table td {
    padding: 12px 8px;
  }

  .metric-value {
    font-size: 20px;
  }

  .cell-name,
  .cell-email {
    display: none;
  }

  .applications-table th:nth-child(2),
  .applications-table th:nth-child(3),
  .applications-table td:nth-child(2),
  .applications-table td:nth-child(3) {
    display: none;
  }

  .detail-panel-slide {
    max-width: 100%;
  }

  .kpi-section,
  .applications-section,
  .activity-section {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .admin-main-elite {
    padding: 12px;
  }

  .page-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .kpi-table,
  .applications-table {
    font-size: 11px;
    min-width: 500px;
  }

  .kpi-table th,
  .applications-table th,
  .kpi-table td,
  .applications-table td {
    padding: 10px 6px;
  }

  .metric-value {
    font-size: 18px;
  }

  .badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .btn-view {
    padding: 6px 10px;
    font-size: 11px;
  }

  .activity-entry {
    gap: 12px;
    padding: 8px;
  }

  .activity-message {
    font-size: 13px;
  }

  .activity-timestamp {
    font-size: 11px;
  }

  .profile-name {
    font-size: 13px;
  }

  .profile-role {
    font-size: 11px;
  }
}

.premium-admin {
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 50%, #2a2f3e 100%);
}

/* ── Premium Header ── */
.premium-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 0 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
  flex: 1;
}

.premium-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.premium-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}

.admin-avatar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.avatar-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Premium KPI Grid ── */
.premium-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.kpi-card {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.kpi-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kpi-card-1 .kpi-glow { background: radial-gradient(circle, rgba(79, 142, 247, 0.15), transparent); }
.kpi-card-2 .kpi-glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent); }
.kpi-card-3 .kpi-glow { background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent); }
.kpi-card-4 .kpi-glow { background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent); }
.kpi-card-5 .kpi-glow { background: radial-gradient(circle, rgba(239, 68, 68, 0.15), transparent); }

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.kpi-card:hover .kpi-glow {
  opacity: 1;
}

.kpi-fade-in {
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-icon {
  font-size: 24px;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f0f4ff, #4f8ef7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-footer {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Premium Table Section ── */
.premium-table-section {
  margin-bottom: 40px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Segoe UI', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
}

.premium-table-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.premium-applications-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-applications-table thead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-applications-table th {
  padding: 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-applications-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.table-row-clickable {
  cursor: pointer;
}

.table-row-clickable:hover {
  background: rgba(79, 142, 247, 0.08);
}

.premium-applications-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--text-primary);
}

.cell-id {
  font-weight: 600;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

.applicant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.applicant-name {
  font-weight: 600;
  color: var(--text-primary);
}

.applicant-email {
  font-size: 12px;
  color: var(--text-secondary);
}

.cell-amount {
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cell-status {
  text-align: center;
}

.cell-action {
  text-align: right;
}

.btn-action {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-action:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.2);
}

/* ── Activity Feed ── */
.activity-feed-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.4);
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.activity-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.activity-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.activity-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-status.approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.activity-status.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.activity-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Detail Panel Slide-In Drawer ── */
.detail-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.detail-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-panel-slide {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  opacity: 0;
}

.detail-panel-slide.open {
  transform: translateY(0);
  opacity: 1;
}

.detail-panel-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.detail-panel-slide-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-panel-close:hover {
  color: var(--text-primary);
}

.detail-panel-content {
  padding: 16px;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-approve,
.btn-reject {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* ── Empty State ── */
.empty-state-premium {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── KPI Cards as Links ── */
.kpi-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.kpi-link:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.kpi-active {
  border-color: rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.08);
}

.kpi-active .kpi-glow {
  opacity: 1;
}

/* ── Applications Card Grid ── */
.premium-applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  background: #1a1f2e !important;
  border: 2px solid rgba(79, 142, 247, 0.2) !important;
  border-radius: var(--radius-lg);
  backdrop-filter: none;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-fade-in {
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.app-card-id {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-email {
  font-size: 13px;
  color: var(--text-secondary);
}

.app-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.view-details {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.2s ease;
}

.app-card:hover .view-details {
  transform: translateX(4px);
}

/* ── Filter Badge ── */
.filter-badge {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.filter-badge strong {
  color: var(--accent);
}

.clear-filter {
  margin-left: 8px;
  color: var(--danger);
  font-weight: 600;
  text-decoration: underline;
}

.clear-filter:hover {
  color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .premium-admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .premium-kpi-grid {
    grid-template-columns: 1fr;
  }

  .premium-applications-grid {
    grid-template-columns: 1fr;
  }

  .premium-applications-table {
    font-size: 12px;
  }

  .premium-applications-table td,
  .premium-applications-table th {
    padding: 12px;
  }

  .premium-title {
    font-size: 24px;
  }

  .detail-panel-slide {
    max-width: 100%;
  }

  .app-details {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM APPLICATION DETAILS VIEW - ELITE STYLING
═══════════════════════════════════════════════════════════════ */

/* ── Detail Container ── */
.premium-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(79, 142, 247, 0.1);
  overflow: hidden;
  animation: fade-in-up 0.6s ease-out;
}

/* ── Header ── */
.premium-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 28px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(139, 92, 246, 0.08));
  border-bottom: 1px solid rgba(79, 142, 247, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.btn-message-applicant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}

.btn-message-applicant:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.5);
  background: linear-gradient(135deg, #3a78e8, #7c4ee0);
}

.btn-message-applicant svg {
  flex-shrink: 0;
}

.application-id {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', Georgia, serif;
}

.status-badge-large {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #ffffff;
}

.status-badge-large.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge-large.status-approved {
  background: rgba(34, 197, 94, 0.2);
  color: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge-large.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.application-id {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

.status-badge-large {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-badge-large.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #ffffff;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge-large.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

.status-badge-large.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

/* ── Content Wrapper ── */
.premium-detail-content {
  padding: 32px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* ── Detail Cards ── */
.premium-detail-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  animation: fade-in-up 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 30%, rgba(79, 142, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-detail-card:hover::before {
  opacity: 1;
}

.premium-detail-card:nth-child(1) { animation-delay: 0.1s; }
.premium-detail-card:nth-child(2) { animation-delay: 0.2s; }
.premium-detail-card:nth-child(3) { animation-delay: 0.3s; }
.premium-detail-card:nth-child(4) { animation-delay: 0.4s; }

.premium-detail-card:hover {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 50, 0.95));
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.15);
  transform: translateY(-3px);
}

.card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(79, 142, 247, 0.3);
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Grid Layout ── */
.card-grid {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding: 0 20px 20px 20px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.08));
  border-radius: 8px;
  border: 1px solid rgba(79, 142, 247, 0.2);
  transition: all 0.3s ease;
}

.info-group:hover {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.12));
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.12);
}

.info-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ── Grant Highlight ── */
.grant-highlight {
  margin-top: 16px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.12));
  border: 2px solid rgba(79, 142, 247, 0.3);
  border-radius: 10px;
  text-align: center;
  animation: fade-in-up 0.8s ease-out 0.5s both;
}

.grant-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}

.grant-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #4ade80;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -1px;
}
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.grant-amount {
  font-size: 32px;
  font-weight: 800;
  color: #4f8ef7;
  letter-spacing: -1px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ── Content Blocks ── */
.content-block {
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.08));
  border-radius: 10px;
  border: 1px solid rgba(79, 142, 247, 0.2);
  transition: all 0.3s ease;
}

.content-block:hover {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.12));
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.12);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-subtitle {
  font-size: 0.9rem;
  font-weight: 900;
  color: #4f8ef7;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0 0 10px 0;
  padding-left: 12px;
  border-left: 3px solid #4f8ef7;
  font-family: 'Playfair Display', Georgia, serif;
}

.content-text {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.2px;
  border: 1px solid rgba(79, 142, 247, 0.15);
}

/* ── Submission Card ── */
.submission-card {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(139, 92, 246, 0.05));
}

.submission-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.submission-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 142, 247, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.submission-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 4px 0;
}

.submission-value {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* ── Action Buttons ── */
.action-buttons-container {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

.action-form {
  flex: 1;
}

.btn-action {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.btn-icon {
  font-size: 18px;
}

.btn-text {
  font-weight: 700;
}

.btn-approve-large {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.btn-approve-large:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.btn-approve-large:active {
  transform: translateY(0);
}

.btn-reject-large {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.btn-reject-large:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.2));
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.btn-reject-large:active {
  transform: translateY(0);
}

.btn-delete-large {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.15));
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete-large:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.25));
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.2);
}

.btn-delete-large:active {
  transform: translateY(0);
}

/* ── Document Preview ── */
.document-preview-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(79, 142, 247, 0.1);
}

.document-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(79, 142, 247, 0.2);
  max-height: 500px;
  object-fit: contain;
}

.document-pdf-container {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.document-pdf {
  width: 100%;
  height: 100%;
}

.document-unavailable {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.btn-download-document {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  width: fit-content;
}

.btn-download-document:hover {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.25), rgba(139, 92, 246, 0.2));
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.2);
}

.download-icon {
  font-size: 16px;
}

.download-text {
  font-weight: 600;
}

/* ── Status Decided Banner ── */
.status-decided-banner {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 12px;
  text-align: center;
  margin-top: 24px;
  animation: fade-in-up 0.8s ease-out 0.6s both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.decided-text {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

.decided-text strong {
  color: #4f8ef7;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .premium-detail-container {
    border-radius: 16px;
    max-width: 100%;
  }

  .premium-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .header-left {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .application-id {
    font-size: 24px;
  }

  .premium-detail-content {
    padding: 20px;
    max-height: calc(100vh - 180px);
  }

  .premium-detail-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .action-buttons-container {
    flex-direction: column;
    gap: 12px;
  }

  .btn-action {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .premium-detail-header {
    padding: 16px;
  }

  .application-id {
    font-size: 20px;
  }

  .status-badge-large {
    font-size: 12px;
    padding: 8px 12px;
  }

  .premium-detail-content {
    padding: 16px;
  }

  .premium-detail-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .card-title {
    font-size: 14px;
  }

  .info-value {
    font-size: 14px;
  }

  .grant-amount {
    font-size: 28px;
  }

  .btn-action {
    padding: 12px 14px;
    font-size: 13px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ELITE APPLICATIONS LIST PAGE - PREMIUM SaaS DESIGN
═══════════════════════════════════════════════════════════════ */

/* ── Back Button ── */
.back-button-elite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #4f8ef7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 16px;
  pointer-events: auto !important;
  position: relative;
  z-index: 200 !important;
  cursor: pointer !important;
  border: none;
  background: none;
}

.back-button-elite:hover {
  color: #3a78e8;
  transform: translateX(-4px);
}

.back-button-elite:active {
  transform: translateX(-4px) scale(0.98);
}

/* ── Top Bar with Filters ── */
.applications-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  animation: fade-in-up 0.8s ease-out 0.1s both;
  flex-wrap: wrap;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 10px 16px;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.filter-tab:hover {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.2);
  color: #4f8ef7;
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(79, 142, 247, 0.3);
  color: #4f8ef7;
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.2);
}

.header-stats {
  display: flex;
  gap: 12px;
}

.stat-badge {
  padding: 8px 14px;
  background: rgba(79, 142, 247, 0.1);
  color: #4f8ef7;
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Applications List Section ── */
.applications-list-section {
  padding: 0 32px 32px 32px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

/* ── Elite Table Container ── */
.applications-table-container-elite {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.applications-table-container-elite:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ── Elite Table ── */
.applications-table-elite {
  width: 100%;
  border-collapse: collapse;
}

.applications-table-elite thead {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(139, 92, 246, 0.05));
  border-bottom: 2px solid rgba(226, 232, 240, 0.5);
  position: sticky;
  top: 0;
  z-index: 10;
}

.applications-table-elite th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.applications-table-elite tbody tr {
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.applications-table-elite tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.3);
}

.applications-table-elite tbody tr:hover {
  background: rgba(79, 142, 247, 0.08);
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(79, 142, 247, 0.05);
}

.applications-table-elite td {
  padding: 16px 20px;
  font-size: 14px;
  color: #1e293b;
}

.cell-id {
  font-weight: 600;
}

.id-badge {
  background: #f1f5f9;
  color: #4f8ef7;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
}

.cell-name {
  font-weight: 600;
  color: #0f172a;
}

.cell-email {
  color: #64748b;
  font-size: 13px;
}

.cell-amount {
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cell-status {
  text-align: center;
}

.status-badge-table {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-badge-table.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge-table.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.status-badge-table.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.cell-date {
  color: #64748b;
  font-size: 13px;
}

.cell-actions {
  text-align: right;
}

/* ── Table Action Buttons ── */
.btn-table-action {
  padding: 8px 12px;
  margin-left: 6px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.btn-view {
  background: linear-gradient(135deg, #4f8ef7, #3a78e8);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.btn-view:hover {
  background: linear-gradient(135deg, #3a78e8, #2d5fb8);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.4);
  transform: scale(1.03);
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  transform: scale(1.03);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
  transform: scale(1.03);
}

/* ── Pagination ── */
.pagination-elite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.pagination-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  color: #4f8ef7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-2px);
}

.pagination-info {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

/* ── Empty State ── */
.empty-state-elite {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: #64748b;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .applications-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .filter-section {
    width: 100%;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .applications-topbar {
    padding: 12px;
    margin-bottom: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .filter-section {
    width: 100%;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-tab {
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-stats {
    width: 100%;
  }

  .stat-badge {
    font-size: 12px;
  }

  .applications-table-elite {
    font-size: 12px;
  }

  .applications-table-elite th,
  .applications-table-elite td {
    padding: 12px 10px;
  }

  .btn-table-action {
    padding: 6px 10px;
    font-size: 11px;
    margin-left: 4px;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .applications-topbar {
    padding: 12px;
  }

  .filter-section {
    flex-direction: column;
    gap: 12px;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-tabs {
    width: 100%;
    gap: 4px;
  }

  .filter-tab {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
  }

  .applications-table-elite {
    font-size: 11px;
    min-width: 600px;
  }

  .applications-table-elite th,
  .applications-table-elite td {
    padding: 10px 8px;
  }

  .btn-table-action {
    padding: 6px 8px;
    font-size: 10px;
    margin-left: 2px;
  }

  .empty-state-elite {
    padding: 40px 20px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-title {
    font-size: 18px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE APPLICATIONS PAGE - MOBILE-FIRST REFACTOR
═══════════════════════════════════════════════════════════════ */

/* ── Base Typography Fixes ── */
.page-title {
  font-weight: 700;
  font-size: 32px;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.page-subtitle {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff !important;
  margin: 0;
}

/* ── Back Button Refinement ── */
.back-button-elite {
  font-size: 13px;
  font-weight: 600;
  color: #4f8ef7;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.back-button-elite:hover {
  opacity: 1;
  transform: translateX(-3px);
}

/* ── Container Box Fixes ── */
* {
  box-sizing: border-box;
}

.applications-table-container-elite,
.applications-topbar,
.premium-detail-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Mobile-First: Card Layout for Tables ── */
@media (max-width: 768px) {
  /* Hide table structure, show cards */
  .applications-table-elite {
    display: block;
    width: 100%;
  }

  .applications-table-elite thead {
    display: none;
  }

  /* Create card layout */
  .applications-table-container-elite {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
  }

  /* Convert tbody to card grid */
  .applications-table-elite tbody {
    display: contents;
  }

  /* Style each row as a card */
  .applications-table-elite tbody tr {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fade-in-up 0.6s ease-out;
  }

  .applications-table-elite tbody tr:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(79, 142, 247, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  /* Style each cell */
  .applications-table-elite td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    font-size: 13px;
    color: #1e293b;
  }

  .applications-table-elite td:last-child {
    border-bottom: none;
  }

  /* Add labels before each cell */
  .applications-table-elite td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex: 0 0 auto;
    margin-right: 12px;
  }

  /* Cell-specific styling */
  .cell-id {
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(139, 92, 246, 0.08));
    padding: 14px 16px;
    font-weight: 600;
  }

  .cell-id::before {
    content: 'ID';
  }

  .cell-id .id-badge {
    font-weight: 700;
    font-size: 13px;
    background: #f1f5f9;
    color: #4f8ef7;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
  }

  .cell-name {
    font-weight: 600;
    color: #0f172a;
  }

  .cell-name::before {
    content: 'Name: ';
    margin-right: 4px;
  }

  .cell-email {
    display: none;
  }

  .cell-amount {
    font-weight: 700;
    background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .cell-amount::before {
    content: 'Amount';
    background: none;
    -webkit-text-fill-color: #64748b;
    color: #64748b;
  }

  .cell-status {
    text-align: right;
  }

  .cell-status::before {
    content: 'Status';
  }

  .status-badge-table {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
  }

  .cell-date {
    color: #64748b;
    font-size: 12px;
  }

  .cell-date::before {
    content: 'Date';
  }

  .cell-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.3);
    background: rgba(248, 250, 252, 0.5);
  }

  .cell-actions::before {
    display: none;
  }

  .btn-table-action {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
  }

  .cell-actions form {
    width: 100%;
  }

  .cell-actions form .btn-table-action {
    width: 100%;
  }

  .btn-table-action.btn-view {
    background: #4f8ef7;
    color: white;
  }

  .btn-table-action.btn-view:active {
    background: #3b7ae0;
  }

  .btn-table-action.btn-approve {
    background: #22c55e;
    color: white;
  }

  .btn-table-action.btn-approve:active {
    background: #16a34a;
  }

  .btn-table-action.btn-reject {
    background: #ef4444;
    color: white;
  }

  .btn-table-action.btn-reject:active {
    background: #dc2626;
  }
}

/* ── Extra Small Devices (max-width: 480px) ── */
@media (max-width: 480px) {
  .applications-table-container-elite {
    gap: 10px;
  }

  .applications-table-elite tbody tr {
    gap: 0;
  }

  .applications-table-elite td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .applications-table-elite td::before {
    font-size: 10px;
    margin-right: 8px;
  }

  .cell-id {
    padding: 12px;
  }

  .cell-id .id-badge {
    font-size: 12px;
  }

  .btn-table-action {
    padding: 8px 10px;
    font-size: 11px;
  }

  .cell-actions {
    padding: 10px 12px;
    gap: 6px;
  }
}

/* ── Desktop: Full Table Layout ── */
@media (min-width: 769px) {
  .applications-table-elite {
    display: table;
  }

  .applications-table-elite tbody tr {
    display: table-row;
  }

  .applications-table-elite td {
    display: table-cell;
  }

  .applications-table-elite td::before {
    display: none;
  }
}

/* ── Improved Table Styling (Desktop) ── */
.applications-table-elite {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.applications-table-elite thead tr {
  height: 56px;
}

.applications-table-elite tbody tr {
  height: 60px;
}

.applications-table-elite th {
  font-weight: 600;
  font-size: 12px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  text-align: left;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(139, 92, 246, 0.05));
  border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

.applications-table-elite td {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  vertical-align: middle;
}

.applications-table-elite tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.3);
}

.applications-table-elite tbody tr:hover {
  background: rgba(79, 142, 247, 0.08);
  transform: translateY(-2px);
}

/* ── Cell Typography Improvements ── */
.cell-id {
  font-weight: 700;
  font-size: 13px;
}

.cell-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.cell-email {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

.cell-amount {
  font-weight: 700;
  font-size: 14px;
}

.cell-date {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

.id-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #4f8ef7;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Action Buttons Spacing ── */
.cell-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-table-action {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-view {
  background: linear-gradient(135deg, #4f8ef7, #3a78e8);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.btn-view:hover {
  background: linear-gradient(135deg, #3a78e8, #2d5fb8);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.4);
  transform: scale(1.05);
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  transform: scale(1.05);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

/* ── Top Bar Responsive ── */
.applications-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  flex-wrap: wrap;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab:hover {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.2);
  color: #4f8ef7;
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(79, 142, 247, 0.3);
  color: #4f8ef7;
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.2);
}

.header-stats {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.stat-badge {
  padding: 8px 14px;
  background: rgba(79, 142, 247, 0.1);
  color: #4f8ef7;
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Pagination Responsive ── */
.pagination-elite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  color: #4f8ef7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.pagination-btn:hover {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-2px);
}

.pagination-info {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Empty State ── */
.empty-state-elite {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ── Mobile Adjustments ── */
@media (max-width: 768px) {
  .applications-topbar {
    padding: 16px;
    margin-bottom: 20px;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-tab {
    padding: 8px 12px;
    font-size: 11px;
  }

  .stat-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .applications-list-section {
    padding: 0 12px 12px 12px;
  }

  .empty-state-elite {
    padding: 40px 20px;
    border-radius: 12px;
  }

  .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .empty-title {
    font-size: 18px;
  }

  .empty-text {
    font-size: 13px;
  }

  .pagination-elite {
    padding: 16px;
    gap: 12px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .pagination-info {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .applications-topbar {
    padding: 12px;
    gap: 12px;
  }

  .filter-section {
    width: 100%;
    gap: 12px;
  }

  .filter-label {
    font-size: 11px;
  }

  .filter-tabs {
    width: 100%;
    gap: 4px;
  }

  .filter-tab {
    flex: 1;
    padding: 8px 10px;
    font-size: 10px;
  }

  .header-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .stat-badge {
    font-size: 10px;
    padding: 6px 10px;
  }

  .applications-table-container-elite {
    padding: 12px;
    gap: 12px;
  }

  .applications-table-elite tbody tr {
    padding: 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .applications-table-elite td {
    font-size: 13px;
  }

  .btn-table-action {
    padding: 8px 10px;
    font-size: 11px;
    min-width: 70px;
  }

  .cell-actions {
    gap: 6px;
  }

  .id-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .pagination-elite {
    padding: 12px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .pagination-info {
    font-size: 11px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM APPLICATIONS PAGE - ELITE SaaS DASHBOARD
═══════════════════════════════════════════════════════════════ */

/* ── Premium Background with Animated Blobs ── */
.elite-admin-dashboard {
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 50%, #2a2f3e 100%);
  position: relative;
  overflow: hidden;
}

/* Animated Blob 1 */
.elite-admin-dashboard::before {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent);
  filter: blur(80px);
  top: -100px;
  right: -100px;
  animation: float-blob 30s infinite ease-in-out;
  z-index: 0;
  pointer-events: none;
}

/* Animated Blob 2 */
.elite-admin-dashboard::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
  filter: blur(80px);
  bottom: -50px;
  left: -50px;
  animation: float-blob-reverse 35s infinite ease-in-out;
  z-index: 0;
  pointer-events: none;
}

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

@keyframes float-blob-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(50px); }
}

/* ── Ensure Content is Above Blobs ── */
.admin-sidebar-elite,
.admin-main-elite {
  position: relative;
  z-index: 1;
}

/* ── Premium Typography ── */
body {
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
}

/* ── Glass Table Container ── */
.applications-table-container-elite {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Elite Table Styling ── */
.applications-table-elite {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.applications-table-elite thead {
  background: transparent;
}

.applications-table-elite th {
  font-weight: 600;
  font-size: 12px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px;
  text-align: left;
  border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

.applications-table-elite tbody tr {
  background: white;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.applications-table-elite tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.applications-table-elite td {
  padding: 14px;
  font-weight: 500;
  color: #0f172a;
  font-size: 14px;
  border: none;
}

.applications-table-elite td:first-child {
  border-radius: 12px 0 0 12px;
}

.applications-table-elite td:last-child {
  border-radius: 0 12px 12px 0;
}

/* ── Cell Styling ── */
.cell-id {
  font-weight: 600;
  color: #0f172a;
}

.id-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  color: #4f46e5;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cell-name {
  font-weight: 600;
  color: #0f172a;
}

.cell-email {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

.cell-amount {
  font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cell-date {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

/* ── Status Badges (Elite) ── */
.status-badge-table {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.status-badge-table.status-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge-table.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.status-badge-table.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* ── Action Buttons (Elite) ── */
.cell-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-table-action {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-view {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-view:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

.btn-approve {
  border: 1.5px solid #22c55e;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.05);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #16a34a;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
  transform: scale(1.05);
}

.btn-reject {
  border: 1.5px solid #ef4444;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #dc2626;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

/* ── Filter Bar (Elite) ── */
.applications-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  flex-wrap: wrap;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.5);
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.5);
  text-decoration: none;
  white-space: nowrap;
}

.filter-tab:hover {
  background: rgba(79, 102, 241, 0.1);
  border-color: rgba(79, 102, 241, 0.2);
  color: #4f46e5;
}

.filter-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 102, 241, 0.3);
}

.header-stats {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.stat-badge {
  padding: 8px 14px;
  background: rgba(79, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Back Button (Premium) ── */
/* Removed duplicate - see main back-button-elite rule above */

/* ── Empty State (Premium) ── */
.empty-state-elite {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ── Pagination (Premium) ── */
.pagination-elite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  color: #4f46e5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.pagination-btn:hover {
  background: rgba(79, 102, 241, 0.1);
  border-color: rgba(79, 102, 241, 0.3);
  transform: translateY(-2px);
}

.pagination-info {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .applications-table-container-elite {
    padding: 16px;
    border-radius: 14px;
  }

  .applications-table-elite {
    border-spacing: 0 8px;
  }

  .applications-table-elite th {
    padding: 12px;
    font-size: 11px;
  }

  .applications-table-elite td {
    padding: 12px;
    font-size: 13px;
  }

  .cell-email {
    display: none;
  }

  .applications-table-elite th:nth-child(3),
  .applications-table-elite td:nth-child(3) {
    display: none;
  }

  .btn-table-action {
    padding: 6px 10px;
    font-size: 11px;
  }

  .cell-actions {
    gap: 6px;
  }

  .applications-topbar {
    padding: 16px;
    gap: 12px;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  .stat-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .applications-table-container-elite {
    padding: 12px;
  }

  .applications-table-elite {
    border-spacing: 0 6px;
  }

  .applications-table-elite th {
    padding: 10px;
    font-size: 10px;
  }

  .applications-table-elite td {
    padding: 10px;
    font-size: 12px;
  }

  .cell-amount {
    display: none;
  }

  .applications-table-elite th:nth-child(4),
  .applications-table-elite td:nth-child(4) {
    display: none;
  }

  .btn-table-action {
    padding: 6px 8px;
    font-size: 10px;
    min-width: 60px;
  }

  .cell-actions {
    gap: 4px;
  }

  .applications-topbar {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-section {
    width: 100%;
    gap: 12px;
  }

  .filter-tabs {
    width: 100%;
    gap: 4px;
  }

  .filter-tab {
    flex: 1;
    padding: 6px 10px;
    font-size: 10px;
  }

  .header-stats {
    width: 100%;
  }

  .stat-badge {
    font-size: 10px;
    padding: 6px 10px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  .empty-state-elite {
    padding: 40px 20px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-title {
    font-size: 18px;
  }

  .pagination-elite {
    padding: 16px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .pagination-info {
    font-size: 11px;
  }
}


/* ── Clickable ID Badge Link ── */
.id-badge-link {
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}

.id-badge-link:hover .id-badge {
  background: #e0e7ff;
  color: #3b7ae0;
  box-shadow: 0 2px 8px rgba(79, 142, 247, 0.2);
  transform: translateY(-2px);
}

.id-badge-link:active .id-badge {
  transform: translateY(0);
}


/* ── Back Button Icon ── */
.back-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 142, 247, 0.1);
  color: #4f8ef7;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.back-button-icon:hover {
  background: rgba(79, 142, 247, 0.2);
  color: #3b7ae0;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.15);
}

.back-button-icon:active {
  transform: translateX(-1px);
}

.back-button-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}


/* ── Search Section ── */
.search-section {
  flex: 1;
  min-width: 250px;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
  font-size: 13px;
  color: #1e293b;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  outline: none;
  border-color: rgba(79, 142, 247, 0.5);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

/* ── Mobile Search ── */
@media (max-width: 768px) {
  .search-section {
    width: 100%;
    min-width: auto;
    margin-bottom: 12px;
  }

  .search-input {
    padding: 9px 12px 9px 36px;
    font-size: 12px;
  }

  .search-icon {
    width: 16px;
    height: 16px;
    left: 12px;
  }
}

@media (max-width: 480px) {
  .search-input {
    padding: 8px 10px 8px 32px;
    font-size: 11px;
  }

  .search-icon {
    width: 14px;
    height: 14px;
    left: 10px;
  }
}


/* ── COMPREHENSIVE RESPONSIVE FIX ── */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Hide decorative elements on mobile to prevent overflow */
@media (max-width: 768px) {
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3,
  .hero-shape-4,
  .hero-shape-5,
  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3,
  .parallax-layer-1,
  .parallax-layer-2,
  .parallax-layer-3,
  .cta-orb,
  .auth-left::before,
  .auth-left::after,
  .auth-right::before,
  .auth-right::after {
    display: none !important;
  }

  /* Ensure all containers fit viewport */
  .container,
  .nav-container,
  .hero-content,
  .about-content,
  .director-card,
  .process-timeline,
  .auth-card,
  .apply-form,
  .premium-detail-container,
  .applications-table-container-elite,
  .elite-admin-dashboard {
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  /* Fix flash messages */
  .flash-container {
    max-width: calc(100% - 24px);
    left: 12px;
    right: 12px;
  }

  /* Ensure tables don't overflow */
  .table-responsive,
  .admin-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fix form elements */
  input,
  textarea,
  select {
    max-width: 100%;
    width: 100%;
  }

  /* Fix buttons */
  .btn,
  button,
  a.btn {
    max-width: 100%;
  }

  /* Ensure sections don't overflow */
  section {
    width: 100%;
    overflow-x: hidden;
  }

  /* Fix admin sidebar on mobile */
  .admin-sidebar-elite {
    width: 100%;
    max-width: 100%;
  }

  /* Fix main content */
  .admin-main-elite {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-container,
  .hero-content,
  .about-content,
  .director-card,
  .process-timeline,
  .auth-card,
  .apply-form,
  .premium-detail-container,
  .applications-table-container-elite {
    padding-left: 8px;
    padding-right: 8px;
  }

  .flash-container {
    max-width: calc(100% - 16px);
    left: 8px;
    right: 8px;
  }

  /* Ensure no horizontal scroll on extra small devices */
  body {
    width: 100vw;
    overflow-x: hidden;
  }

  /* Fix navbar on mobile */
  .navbar {
    width: 100%;
    overflow-x: hidden;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
  }

  /* Fix all text to wrap properly */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}


/* ── Header Back Section ── */
.header-back-section {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.header-top {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.header-top > h1 {
  margin: 0;
}

@media (max-width: 768px) {
  .header-back-section {
    margin-bottom: 8px;
  }

  .header-top {
    gap: 6px;
  }
}


/* ── Small Page Title (for Applications page) ── */
.page-title-small {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .page-title-small {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-title-small {
    font-size: 12px;
  }
}


/* ── Responsive Header Layout ── */
@media (max-width: 768px) {
  .admin-header-elite {
    padding: 12px 16px;
    gap: 10px;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-left-section,
  .header-center-section,
  .header-right-section {
    width: 100%;
  }

  .header-center-section {
    justify-content: flex-start;
  }

  .header-right-section {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .admin-header-elite {
    padding: 10px 12px;
    gap: 8px;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-subtitle {
    font-size: 11px;
  }
}


/* ── Back Arrow Button (Simple) ── */
.back-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(79, 142, 247, 0.1);
  color: #4f8ef7;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: none;
  padding: 0;
}

.back-arrow-btn:hover {
  background: rgba(79, 142, 247, 0.2);
  transform: translateX(-2px);
}

.back-arrow-btn:active {
  transform: translateX(-2px) scale(0.95);
}

.back-arrow-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN REDESIGN - Modern Clean Layout
═══════════════════════════════════════════════════════════════ */

.admin-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN NAVBAR - New Design
═══════════════════════════════════════════════════════════════ */

.admin-navbar-new {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(20, 30, 50, 0.98));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 142, 247, 0.12);
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  gap: 40px;
  width: 100%;
}

/* Brand Section */
.navbar-brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 140px;
}

.navbar-brand-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.navbar-brand-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(79, 142, 247, 0.15);
  border: 1px solid rgba(79, 142, 247, 0.3);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Menu Section */
.navbar-menu-section {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.navbar-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.navbar-menu-item:hover {
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.2);
}

.navbar-menu-item.active {
  color: var(--accent);
  background: rgba(79, 142, 247, 0.15);
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.2);
}

.menu-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.menu-text {
  font-weight: 600;
}

/* Profile Section */
.navbar-profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(79, 142, 247, 0.1);
  min-width: 0;
}

.navbar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.navbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.navbar-user-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.navbar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.navbar-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

.navbar-logout-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .navbar-wrapper {
    gap: 24px;
  }

  .navbar-menu-section {
    gap: 4px;
  }

  .navbar-menu-item {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .menu-icon {
    font-size: 1rem;
  }

  .navbar-brand-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .admin-navbar-new {
    padding: 12px 20px;
  }

  .navbar-wrapper {
    gap: 16px;
  }

  .navbar-brand-section {
    min-width: 100px;
  }

  .navbar-menu-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .menu-text {
    display: none;
  }

  .navbar-user-text {
    display: none;
  }

  .navbar-profile-section {
    gap: 12px;
    padding-left: 12px;
  }

  .navbar-brand-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .admin-navbar-new {
    padding: 10px 16px;
  }

  .navbar-wrapper {
    gap: 12px;
  }

  .navbar-brand-text {
    font-size: 1rem;
  }

  .navbar-menu-section {
    gap: 2px;
    flex: 0;
  }

  .navbar-menu-item {
    padding: 8px 8px;
    font-size: 0.75rem;
  }

  .menu-icon {
    font-size: 0.9rem;
  }

  .navbar-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .navbar-logout-btn {
    width: 36px;
    height: 36px;
  }

  .navbar-logout-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Admin Main */
.admin-main {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.admin-header-section {
  margin-bottom: 32px;
}

.page-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.page-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 50, 0.95));
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stat-card-link:hover {
  border-color: rgba(79, 142, 247, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 50, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.15);
}

.stat-icon {
  font-size: 2rem;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 4px 0 0 0;
}

/* Section Container */
.section-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.btn-secondary {
  padding: 10px 20px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.4);
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app-card {
  background: #1a1f2e !important;
  border: 2px solid rgba(79, 142, 247, 0.2) !important;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
}

.app-card:hover {
  border-color: rgba(79, 142, 247, 0.5) !important;
  background: #252b3d !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.2);
}

.app-card-enhanced {
  background: #1a1f2e !important;
  background-image: none !important;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(79, 142, 247, 0.15);
  background: transparent !important;
}

.app-id {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: -0.3px;
}

.app-card-body {
  flex: 1;
  margin-bottom: 16px;
  background: transparent !important;
}

.app-name {
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.app-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.app-amount {
  font-weight: 800;
  color: #06d6a0;
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(6, 214, 160, 0.3);
}

.app-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.app-card-footer {
  border-top: 2px solid rgba(79, 142, 247, 0.15);
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent !important;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(79, 142, 247, 0.25);
  border: 2px solid rgba(79, 142, 247, 0.5);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 1;
  min-width: fit-content;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-card:hover {
  background: rgba(79, 142, 247, 0.4);
  border-color: rgba(79, 142, 247, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.4);
}

.btn-view-card {
  background: linear-gradient(135deg, #4f8ef7, #3b7dd6) !important;
  border-color: #4f8ef7 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(79, 142, 247, 0.4);
}

.btn-view-card:hover {
  background: linear-gradient(135deg, #5a9bff, #4f8ef7) !important;
  border-color: #5a9bff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.6);
  transform: translateY(-3px);
}

.btn-view-card:active,
.btn-view-card:focus,
.btn-view-card:visited {
  background: linear-gradient(135deg, #4f8ef7, #3b7dd6) !important;
  color: #ffffff !important;
  border-color: #4f8ef7 !important;
}

.btn-approve-card {
  background: linear-gradient(135deg, #06d6a0, #05b589) !important;
  border-color: #06d6a0 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(6, 214, 160, 0.4);
}

.btn-approve-card:hover {
  background: linear-gradient(135deg, #07e8b3, #06d6a0) !important;
  border-color: #07e8b3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(6, 214, 160, 0.6);
  transform: translateY(-3px);
}

.btn-approve-card:active,
.btn-approve-card:focus {
  background: linear-gradient(135deg, #06d6a0, #05b589) !important;
  color: #ffffff !important;
}

.btn-reject-card {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-reject-card:hover {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
  transform: translateY(-3px);
}

.btn-reject-card:active,
.btn-reject-card:focus {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(248, 250, 252, 0.08);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 16px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: rgba(79, 142, 247, 0.3);
  color: var(--accent);
}

.filter-btn.active {
  background: rgba(79, 142, 247, 0.15);
  border-color: rgba(79, 142, 247, 0.3);
  color: var(--accent);
}

/* Table Container */
.table-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; /* Ensures table doesn't squish on smaller screens */
}

.admin-table thead {
  background: rgba(79, 142, 247, 0.05);
  border-bottom: 1px solid rgba(79, 142, 247, 0.1);
}

.admin-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(79, 142, 247, 0.05);
  transition: all var(--transition);
}

.admin-table tbody tr:hover {
  background: rgba(79, 142, 247, 0.05);
}

.admin-table td {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cell-id {
  font-weight: 600;
}

.app-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.app-link:hover {
  color: var(--accent-hover);
}

.cell-status {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cell-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-view {
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.btn-view:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.4);
}

.btn-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(79, 142, 247, 0.1);
}

.pagination-btn {
  padding: 8px 16px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.pagination-btn:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.4);
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 40px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    gap: 16px;
  }

  .navbar-menu {
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-profile-header {
    border-left: none;
    border-top: 1px solid rgba(79, 142, 247, 0.1);
    padding-left: 0;
    padding-top: 16px;
    width: 100%;
  }

  .admin-main {
    padding: 16px;
  }

  .page-heading {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .search-filter-bar {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-buttons {
    width: 100%;
  }

  .applications-grid {
    grid-template-columns: 1fr;
  }

  /* Enable horizontal scrolling on mobile */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 0;
  }

  .admin-table {
    min-width: 800px; /* Ensures table maintains readable width */
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 10px;
    white-space: nowrap; /* Prevents text wrapping */
  }

  /* Make action buttons smaller on mobile */
  .cell-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .btn-action {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Reduce email column width */
  .cell-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Make application ID more compact */
  .cell-id {
    font-size: 0.8rem;
  }

  /* Fix app-card background on mobile - make it completely solid */
  .app-card,
  .app-card-enhanced {
    background: #1a1f2e !important;
    background-color: #1a1f2e !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }

  .app-card::before {
    display: none !important;
  }

  .app-card:hover {
    background: #252b3d !important;
    background-color: #252b3d !important;
    background-image: none !important;
  }

  .app-card-header,
  .app-card-body,
  .app-card-footer {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   COMPACT APPLICATION FORM - Idyllic Design
═══════════════════════════════════════════════════════════════ */

.apply-page-compact {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 50%, #2a2f3e 100%);
  padding: 24px 0;
}

.apply-container-compact {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.apply-back-btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.2);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 24px;
}

.apply-back-btn-compact:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.4);
  transform: translateX(-3px);
}

.apply-header-compact {
  margin-bottom: 32px;
  text-align: center;
}

.apply-title-compact {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.apply-subtitle-compact {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.apply-form-compact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section-compact {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.8));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition);
}

.form-section-compact:hover {
  border-color: rgba(79, 142, 247, 0.2);
}

.form-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-compact:nth-child(n+9) {
  grid-column: 1 / -1;
}

.form-label-compact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control-compact {
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: all var(--transition);
}

/* Fix select dropdown styling */
.form-control-compact select,
select.form-control-compact {
  background: rgba(248, 250, 252, 0.05);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-control-compact select option,
select.form-control-compact option {
  background: #1a1f2e;
  color: #ffffff;
  padding: 8px;
}

.form-control-compact:focus {
  outline: none;
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(248, 250, 252, 0.08);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

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

.form-row-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.radio-group-compact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option-compact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(248, 250, 252, 0.03);
  border: 2px solid rgba(79, 142, 247, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 140px;
  overflow: hidden;
}

.radio-option-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.radio-option-compact input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 2;
}

.radio-option-compact:hover {
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(248, 250, 252, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.15);
}

.radio-option-compact:hover::before {
  opacity: 1;
}

/* Checked state */
.radio-option-compact input[type="radio"]:checked ~ span {
  color: #ffffff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.radio-option-compact:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.25), rgba(139, 92, 246, 0.15));
  border-color: rgba(79, 142, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1), 0 4px 16px rgba(79, 142, 247, 0.2);
  transform: translateY(-2px);
}

.radio-option-compact:has(input[type="radio"]:checked)::before {
  opacity: 1;
}

/* Add checkmark icon when selected */
.radio-option-compact:has(input[type="radio"]:checked)::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: rgba(79, 142, 247, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  z-index: 1;
  animation: checkmark-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmark-pop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.radio-option-compact span {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.file-upload-item-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-input {
  display: none;
}

.file-upload-label-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.05);
  border: 2px dashed rgba(79, 142, 247, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.file-upload-label-compact:hover {
  border-color: rgba(79, 142, 247, 0.4);
  background: rgba(248, 250, 252, 0.08);
  color: var(--accent);
}

.file-upload-label-compact svg {
  color: var(--accent);
}

.file-name-display {
  font-size: 0.8rem;
  color: var(--accent-3);
  margin: 0;
  text-align: center;
}

.form-notice-compact {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.form-notice-compact p {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-notice-compact p:last-child {
  margin-bottom: 0;
}

.form-notice-compact strong {
  color: var(--text-primary);
}

.form-check-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.form-check-compact:hover {
  border-color: rgba(79, 142, 247, 0.2);
  background: rgba(248, 250, 252, 0.08);
}

.form-check-compact input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-check-compact span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.apply-submit-row-compact {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-outline-compact,
.btn-primary-compact {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-compact {
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.1);
  color: var(--text-secondary);
}

.btn-outline-compact:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(79, 142, 247, 0.2);
  color: var(--text-primary);
}

.btn-primary-compact {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.3);
}

.btn-primary-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 142, 247, 0.4);
}

.btn-primary-compact:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .apply-container-compact {
    padding: 0 16px;
  }

  .apply-title-compact {
    font-size: 1.5rem;
  }

  .form-section-compact {
    padding: 16px;
  }

  .form-grid-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-row-compact {
    grid-template-columns: 1fr;
  }

  .radio-option-compact {
    min-width: 100%;
    padding: 12px 20px;
  }

  .file-upload-grid-compact {
    grid-template-columns: 1fr;
  }

  .radio-option-compact {
    flex: 1;
    min-width: auto;
  }

  .apply-submit-row-compact {
    flex-direction: column;
  }

  .btn-outline-compact,
  .btn-primary-compact {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .apply-container-compact {
    padding: 0 12px;
  }

  .apply-title-compact {
    font-size: 1.25rem;
  }

  .apply-subtitle-compact {
    font-size: 0.85rem;
  }

  .form-section-compact {
    padding: 12px;
    gap: 12px;
  }

  .form-label-compact {
    font-size: 0.8rem;
  }

  .form-control-compact {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .file-upload-label-compact {
    padding: 16px;
  }

  .form-check-compact {
    padding: 10px;
  }

  .form-check-compact span {
    font-size: 0.85rem;
  }

  .btn-outline-compact,
  .btn-primary-compact {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN CHAT - Back Button & Layout
═══════════════════════════════════════════════════════════════ */

.back-button-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0f1a;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-button-chat:hover {
  background: #f0f4ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateX(-3px);
}

.back-button-chat:active {
  transform: translateX(-1px);
}

.back-button-chat svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}



/* ═══════════════════════════════════════════════════════════════
   CRITICAL FIX: Force white text on Application Details page
   ═══════════════════════════════════════════════════════════════ */

/* Maximum specificity override for page title and subtitle */
.elite-admin-dashboard .admin-main-elite .admin-header-elite .header-left h1.page-title,
.elite-admin-dashboard .admin-main-elite .admin-header-elite .header-left .page-title,
.elite-admin-dashboard .admin-header-elite h1.page-title,
.elite-admin-dashboard .admin-header-elite .page-title,
.admin-header-elite h1.page-title,
.admin-header-elite .page-title,
h1.page-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  background-color: transparent !important;
  background: transparent !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.elite-admin-dashboard .admin-main-elite .admin-header-elite .header-left p.page-subtitle,
.elite-admin-dashboard .admin-main-elite .admin-header-elite .header-left .page-subtitle,
.elite-admin-dashboard .admin-header-elite p.page-subtitle,
.elite-admin-dashboard .admin-header-elite .page-subtitle,
.admin-header-elite p.page-subtitle,
.admin-header-elite .page-subtitle,
p.page-subtitle {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  background-color: transparent !important;
  background: transparent !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════
   MODERN LOGOUT CONFIRMATION MODAL
═══════════════════════════════════════════════════════════════ */

.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logout-modal-overlay.active {
  opacity: 1;
}

.logout-modal {
  background: linear-gradient(135deg, #1a1f2e, #252b3d);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(79, 142, 247, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal-overlay.active .logout-modal {
  transform: scale(1) translateY(0);
}

.logout-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  border-radius: 50%;
  color: #ef4444;
}

.logout-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 16px 0;
}

.logout-modal-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
}

.logout-modal-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-modal-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.logout-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.logout-modal-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.logout-modal-confirm:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .logout-modal {
    padding: 32px 24px;
  }
  
  .logout-modal-title {
    font-size: 1.5rem;
  }
  
  .logout-modal-actions {
    flex-direction: column;
  }
  
  .logout-modal-btn {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION BADGES
═══════════════════════════════════════════════════════════════ */

.notification-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
  animation: badge-pulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.3);
  }
}

.navbar-menu-item {
  position: relative;
}

/* User dashboard notification badge - ENHANCED */
.btn-chat-notification {
  position: relative;
}

.btn-chat-notification .notification-badge {
  top: -10px;
  right: -10px;
  transform: none;
  font-size: 0.85rem;
  padding: 4px 8px;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

@keyframes badge-pulse-button {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.4);
  }
}

.btn-chat-notification .notification-badge {
  animation: badge-pulse-button 2s ease-in-out infinite;
}

/* Red message icon for unread messages on user dashboard */
.chat-unread-icon {
  color: #ef4444 !important;
  flex-shrink: 0;
  animation: message-icon-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

@keyframes message-icon-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.9));
  }
}

.chat-btn-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chat-btn-with-icon span {
  flex: 1;
}


/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   Mobile-first responsive design for all pages
   ═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL MOBILE IMPROVEMENTS ── */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Better touch targets */
  button, a, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Container padding */
  .container, .nav-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── ADMIN SIDEBAR MOBILE ── */
@media (max-width: 1024px) {
  .admin-page {
    flex-direction: column;
  }
  
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  
  .admin-sidebar.active {
    left: 0;
  }
  
  .admin-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 16px;
  }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

/* ── ADMIN DASHBOARD CARDS ── */
@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

/* ── ADMIN TABLES ── */
@media (max-width: 768px) {
  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-table {
    min-width: 600px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  /* Stack table actions vertically */
  .table-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .table-actions .btn {
    width: 100%;
  }
}

/* ── APPLICATION FORM MOBILE ── */
@media (max-width: 768px) {
  .apply-form-container {
    padding: 20px 16px;
  }
  
  .form-section {
    padding: 20px 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .radio-option {
    width: 100%;
  }
}

/* ── USER DASHBOARD MOBILE ── */
@media (max-width: 768px) {
  .dashboard-hero {
    padding: 40px 20px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .dashboard-cards {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 20px 16px;
  }
  
  .dashboard-card {
    padding: 24px 20px;
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}

/* ── APPLICATION STATUS CARDS ── */
@media (max-width: 768px) {
  .application-card {
    padding: 20px 16px;
  }
  
  .application-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .application-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .application-actions .btn {
    width: 100%;
  }
}

/* ── PREMIUM DETAIL PAGES ── */
@media (max-width: 768px) {
  .premium-detail-container {
    padding: 16px;
    margin: 16px;
  }
  
  .premium-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .card-grid-2 {
    grid-template-columns: 1fr !important;
  }
  
  .action-buttons-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-action {
    width: 100%;
  }
  
  .document-image {
    max-width: 100%;
    height: auto;
  }
}

/* ── NAVBAR MOBILE ── */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }
  
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* ── HERO SECTION MOBILE ── */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 40px;
    min-height: auto;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* ── FEATURES SECTION MOBILE ── */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
}

/* ── STATS SECTION MOBILE ── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  
  .stat-item {
    padding: 20px 16px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ── MODAL MOBILE ── */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 20px auto;
    padding: 24px 20px;
  }
  
  .modal-header {
    padding: 0 0 16px 0;
  }
  
  .modal-body {
    padding: 16px 0;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* ── BUTTONS MOBILE ── */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ── FORMS MOBILE ── */
@media (max-width: 768px) {
  .form-container {
    padding: 20px 16px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 16px;
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  .form-help {
    font-size: 0.8rem;
  }
}

/* ── TABLET BREAKPOINT (768px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }
  
  .admin-content {
    margin-left: 220px;
    padding: 24px;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── LARGE DESKTOP (1440px+) ── */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .admin-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .premium-detail-container {
    max-width: 1200px;
    margin: 32px auto;
  }
}

/* ── TOUCH DEVICE OPTIMIZATIONS ── */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  button, a, .btn, .nav-link {
    min-height: 48px;
    padding: 12px 20px;
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .nav-link:hover,
  .card:hover {
    transform: none;
  }
  
  /* Better tap feedback */
  button:active,
  a:active,
  .btn:active {
    opacity: 0.7;
  }
}

/* ── LANDSCAPE MOBILE ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 40px 20px;
    min-height: auto;
  }
  
  .dashboard-hero {
    padding: 30px 20px;
  }
  
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ── PRINT STYLES ── */
@media print {
  .navbar,
  .admin-sidebar,
  .nav-toggle,
  .btn,
  .action-buttons-container,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .admin-content,
  .premium-detail-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ── ACCESSIBILITY IMPROVEMENTS ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-input {
    border: 2px solid currentColor;
  }
}

/* ── SMALL MOBILE (320px - 480px) ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  .admin-header-elite {
    padding: 12px 16px;
  }
  
  .back-button-icon {
    width: 36px;
    height: 36px;
  }
}


/* ── ADDITIONAL MOBILE FIXES ── */

/* Prevent text overflow */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6,
  .page-title, .hero-title, .card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Fix long email addresses and text */
  .info-value, .user-email, .application-email {
    word-break: break-all;
    overflow-wrap: break-word;
  }
  
  /* Better image handling */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix admin navbar on mobile */
  .admin-navbar-new {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  
  .navbar-menu-section {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .navbar-menu-section::-webkit-scrollbar {
    display: none;
  }
  
  .navbar-menu-item {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .navbar-profile-section {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
  
  /* Fix elite admin dashboard header */
  .elite-admin-dashboard .admin-header-elite {
    padding: 12px 16px;
  }
  
  .elite-admin-dashboard .header-left {
    flex: 1;
    min-width: 0;
  }
  
  .elite-admin-dashboard .header-right {
    flex-shrink: 0;
  }
  
  .elite-admin-dashboard .admin-profile {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .elite-admin-dashboard .profile-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .elite-admin-dashboard .profile-name {
    font-size: 0.85rem;
  }
  
  .elite-admin-dashboard .profile-role {
    font-size: 0.75rem;
  }
  
  /* Fix application panel mobile */
  .application-panel-container {
    padding: 16px;
    margin: 16px 8px;
  }
  
  .panel-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .panel-filters {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  /* Fix status badges */
  .status-badge, .status-badge-large {
    font-size: 0.75rem;
    padding: 6px 12px;
    white-space: nowrap;
  }
  
  /* Fix grant amount display */
  .grant-amount {
    font-size: 2rem;
  }
  
  /* Fix document preview */
  .document-preview-container {
    padding: 16px;
  }
  
  .document-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }
  
  /* Fix chat on mobile - already handled but ensure */
  .chat-topbar {
    padding: 12px 16px;
  }
  
  .chat-topbar-title {
    font-size: 0.95rem;
  }
  
  .chat-input-bar {
    padding: 12px 16px;
  }
  
  /* Fix swipe delete on mobile */
  .user-list-item-container {
    position: relative;
    overflow: hidden;
  }
  
  .swipe-delete-action {
    min-width: 80px;
  }
  
  /* Fix delete modal on mobile */
  .delete-modal-content {
    width: 90%;
    max-width: 400px;
    padding: 24px 20px;
  }
  
  .delete-modal-title {
    font-size: 1.25rem;
  }
  
  .delete-modal-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .delete-modal-btn {
    width: 100%;
  }
}

/* ── FIX HORIZONTAL SCROLL ISSUES ── */
@media (max-width: 768px) {
  * {
    max-width: 100%;
  }
  
  body, html {
    overflow-x: hidden;
    position: relative;
  }
  
  .container, .admin-container, .elite-admin-dashboard {
    overflow-x: hidden;
  }
  
  /* Fix wide elements */
  pre, code {
    overflow-x: auto;
    max-width: 100%;
  }
  
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── IMPROVE TOUCH INTERACTIONS ── */
@media (max-width: 768px) {
  /* Better button spacing */
  .btn + .btn {
    margin-top: 8px;
  }
  
  /* Larger form inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 14px 16px;
  }
  
  /* Better checkbox and radio sizing */
  input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
  
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  
  /* Improve file upload button */
  input[type="file"] {
    padding: 12px;
  }
  
  /* Better select dropdown */
  select {
    background-size: 16px;
    padding-right: 40px;
  }
}

/* ── FIX SPECIFIC PAGE ISSUES ── */

/* Login/Register page mobile */
@media (max-width: 768px) {
  .auth-container {
    padding: 20px 16px;
    min-height: 100vh;
  }
  
  .auth-card {
    padding: 32px 24px;
    margin: 20px 0;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
}

/* User home page mobile */
@media (max-width: 768px) {
  .home-section {
    padding: 40px 20px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Application view page mobile */
@media (max-width: 768px) {
  .elite-admin-dashboard .admin-main-elite {
    padding: 0;
  }
  
  .back-button-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  .page-title {
    font-size: 1.25rem !important;
  }
  
  .page-subtitle {
    font-size: 0.85rem !important;
  }
}

/* ── LANDSCAPE ORIENTATION FIXES ── */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section,
  .dashboard-hero {
    min-height: auto;
    padding: 30px 20px;
  }
  
  .auth-container {
    padding: 20px 16px;
  }
  
  /* Reduce vertical spacing in landscape */
  .section {
    padding: 40px 20px;
  }
}

/* ── VERY SMALL SCREENS (< 360px) ── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 16px;
  }
  
  .navbar {
    padding: 10px 12px;
  }
  
  .admin-header-elite {
    padding: 10px 12px;
  }
}


/* ── FIX LOGIN PAGE CHECKBOX SIZE ── */
/* High specificity to override all other checkbox styles */
.auth-page .auth-form .form-check input[type="checkbox"],
.auth-page .form-check input[type="checkbox"],
.auth-form .form-check input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

/* Mobile specific override */
@media (max-width: 768px) {
  .auth-page .auth-form .form-check input[type="checkbox"],
  .auth-page .form-check input[type="checkbox"],
  .auth-form .form-check input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }
  
  .auth-page .form-check,
  .auth-form .form-check {
    gap: 8px;
  }
}


/* ── USER CHAT MOBILE FIXES ── */
@media (max-width: 768px) {
  /* User chat page layout */
  .chat-page {
    padding-top: 68px;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .chat-page .chat-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 68px);
    grid-template-columns: 1fr;
  }
  
  /* Hide sidebar on mobile for user chat */
  .chat-page .chat-sidebar {
    display: none;
  }
  
  /* Chat window takes full width */
  .chat-page .chat-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  /* Chat topbar */
  .chat-page .chat-topbar {
    flex-shrink: 0;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  
  .chat-page .chat-topbar-left {
    gap: 12px;
  }
  
  .chat-page .chat-back-btn {
    width: 40px;
    height: 40px;
  }
  
  .chat-page .chat-topbar-title {
    font-size: 1rem;
  }
  
  .chat-page .chat-topbar-sub {
    font-size: 0.8rem;
  }
  
  /* Chat messages area */
  .chat-page .chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  
  /* Message bubbles */
  .chat-page .msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
  }
  
  .chat-page .msg-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .chat-page .msg-time {
    font-size: 0.7rem;
  }
  
  /* Chat input bar - CRITICAL FIX */
  .chat-page .chat-input-bar {
    flex-shrink: 0;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }
  
  .chat-page .chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0 4px 0 12px;
    min-height: 44px;
  }
  
  .chat-page .chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 8px;
    font-size: 16px; /* Prevents iOS zoom */
    color: var(--text-primary);
    min-height: 40px;
  }
  
  .chat-page .chat-image-upload-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  
  .chat-page .chat-image-upload-btn:active {
    background: var(--bg-glass);
    color: var(--accent);
  }
  
  .chat-page .chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: transform 0.2s ease;
  }
  
  .chat-page .chat-send-btn:active {
    transform: scale(0.95);
  }
  
  /* System message */
  .chat-page .chat-sys-msg {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  
  /* Fix for keyboard appearing on iOS */
  @supports (-webkit-touch-callout: none) {
    .chat-page .chat-window {
      height: 100%;
      position: relative;
    }
    
    .chat-page .chat-input-bar {
      position: sticky;
      bottom: 0;
    }
  }
}

/* ── LANDSCAPE MOBILE FIX FOR USER CHAT ── */
@media (max-width: 768px) and (orientation: landscape) {
  .chat-page {
    height: 100vh;
  }
  
  .chat-page .chat-layout {
    height: calc(100vh - 68px);
  }
  
  .chat-page .chat-messages {
    padding: 12px 16px;
  }
  
  .chat-page .chat-input-bar {
    padding: 8px 16px;
  }
}

/* ── VERY SMALL MOBILE (< 360px) USER CHAT ── */
@media (max-width: 360px) {
  .chat-page .chat-topbar {
    padding: 10px 12px;
  }
  
  .chat-page .chat-messages {
    padding: 12px;
  }
  
  .chat-page .chat-input-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .chat-page .chat-send-btn {
    width: 40px;
    height: 40px;
  }
  
  .chat-page .msg-bubble {
    max-width: 90%;
    padding: 10px 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD STAT CARDS - MODERN EXECUTIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Stat Card - Modern Glass Morphism */
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Animated gradient background */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* Accent line at top */
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Stat Header - Icon and Label */
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Stat Icon - Modern with glow */
.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.1);
  position: relative;
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}

.stat-card:hover .stat-icon::before {
  opacity: 0.2;
}

/* Stat Content */
.stat-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Trend indicator (optional) */
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.stat-trend.up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.stat-trend.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Page Heading - Modern */
.page-heading {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  font-weight: 500;
}

/* Section Container - Modern */
.section-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .stat-card {
    padding: 20px;
    gap: 16px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .page-heading {
    font-size: 1.5rem;
  }
  
  .page-description {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  .section-container {
    padding: 20px 16px;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 16px;
    gap: 12px;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .page-heading {
    font-size: 1.25rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN NAVBAR (NEW DESIGN)
   ═══════════════════════════════════════════════════════════════ */

.admin-container {
  min-height: 100vh;
  background: var(--bg-dark);
  padding-top: 70px;
}

.admin-navbar-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand Section */
.navbar-brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.navbar-brand-badge {
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
}

/* Menu Section */
.navbar-menu-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.navbar-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar-menu-item:hover {
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
}

.navbar-menu-item.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.15));
  color: var(--accent);
}

.menu-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-text {
  font-size: 0.9rem;
}

/* Notification Badge */
.navbar-menu-item .notification-badge {
  position: absolute;
  top: 6px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Profile Section */
.navbar-profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.navbar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.navbar-user-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navbar-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.navbar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.navbar-logout-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}

.navbar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

/* Main Content */
.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-header-section {
  margin-bottom: 32px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .navbar-wrapper {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }
  
  .navbar-menu-section {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
  }
  
  .navbar-menu-section::-webkit-scrollbar {
    display: none;
  }
  
  .navbar-menu-item {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .menu-icon {
    font-size: 1rem;
  }
  
  .admin-container {
    padding-top: 110px;
  }
  
  .admin-navbar-new {
    height: auto;
  }
}

@media (max-width: 768px) {
  .navbar-brand-text {
    font-size: 1.25rem;
  }
  
  .navbar-brand-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
  
  .navbar-user-text {
    display: none;
  }
  
  .navbar-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .navbar-logout-btn {
    width: 36px;
    height: 36px;
  }
  
  .admin-main {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .navbar-wrapper {
    padding: 10px 12px;
  }
  
  .navbar-brand-section {
    gap: 8px;
  }
  
  .navbar-brand-text {
    font-size: 1.1rem;
  }
  
  .navbar-profile-section {
    gap: 12px;
  }
  
  .menu-text {
    display: none;
  }
  
  .navbar-menu-item {
    padding: 8px 12px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD MOBILE FIXES - COMPREHENSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Container fixes */
  .admin-container {
    padding-top: 120px;
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Navbar mobile fixes */
  .admin-navbar-new {
    height: auto;
    min-height: 70px;
  }
  
  .navbar-wrapper {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .navbar-brand-section {
    flex: 0 0 auto;
  }
  
  .navbar-profile-section {
    flex: 0 0 auto;
    margin-left: auto;
  }
  
  .navbar-menu-section {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 4px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .navbar-menu-section::-webkit-scrollbar {
    display: none;
  }
  
  .navbar-menu-item {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .menu-icon {
    font-size: 1rem;
  }
  
  .menu-text {
    font-size: 0.85rem;
  }
  
  /* Main content mobile */
  .admin-main {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Header section mobile */
  .admin-header-section {
    margin-bottom: 24px;
  }
  
  .page-heading {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .page-description {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  /* Stats grid mobile - CRITICAL FIX */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
  }
  
  /* Stat card mobile */
  .stat-card {
    padding: 20px 18px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .stat-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: 12px;
  }
  
  .stat-content {
    width: 100%;
  }
  
  .stat-label {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  /* Section container mobile */
  .section-container {
    padding: 20px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  
  .section-title {
    font-size: 1.15rem;
  }
  
  /* Applications grid mobile */
  .applications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .app-card {
    width: 100%;
  }
  
  .app-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .app-card-body {
    padding: 12px 0;
  }
  
  .app-card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .btn-card {
    flex: 1;
    min-width: calc(50% - 4px);
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  /* Empty state mobile */
  .empty-state {
    padding: 40px 20px;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .empty-text {
    font-size: 0.9rem;
  }
  
  /* Button mobile */
  .btn-secondary {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  .admin-container {
    padding-top: 130px;
  }
  
  .navbar-brand-text {
    font-size: 1.1rem;
  }
  
  .navbar-brand-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  
  .navbar-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .navbar-logout-btn {
    width: 36px;
    height: 36px;
  }
  
  .admin-main {
    padding: 16px 12px;
  }
  
  .page-heading {
    font-size: 1.35rem;
  }
  
  .page-description {
    font-size: 0.85rem;
  }
  
  .stat-card {
    padding: 18px 16px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .section-container {
    padding: 18px 14px;
  }
  
  .section-title {
    font-size: 1.05rem;
  }
  
  .menu-text {
    display: none;
  }
  
  .navbar-menu-item {
    padding: 8px 12px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .admin-container {
    padding-top: 100px;
  }
  
  .admin-navbar-new {
    height: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very small screens (< 360px) */
@media (max-width: 360px) {
  .admin-container {
    padding-top: 140px;
  }
  
  .navbar-wrapper {
    padding: 10px 12px;
  }
  
  .admin-main {
    padding: 14px 10px;
  }
  
  .page-heading {
    font-size: 1.25rem;
  }
  
  .stat-card {
    padding: 16px 14px;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .admin-container {
      min-height: -webkit-fill-available;
    }
    
    .navbar-menu-section {
      -webkit-overflow-scrolling: touch;
    }
  }
}

/* Prevent horizontal scroll on all admin pages */
.admin-container,
.admin-navbar-new,
.navbar-wrapper,
.admin-main,
.stats-grid,
.section-container {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body:has(.admin-container) {
    overflow-x: hidden;
    width: 100%;
  }
  
  * {
    box-sizing: border-box;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ADMIN HEADER SECTION - ENSURE VISIBILITY
   ═══════════════════════════════════════════════════════════════ */

.admin-header-section {
  display: block;
  width: 100%;
  margin-bottom: 32px;
  padding: 0;
}

.admin-header-section > div {
  display: block;
  width: 100%;
}

/* Ensure headings are visible */
.page-heading,
.page-description {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS - REDESIGNED COMPACT HORIZONTAL FORMAT
   ═══════════════════════════════════════════════════════════════ */

/* Override previous stat card design with compact horizontal layout */
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Simplified hover effect */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.15);
  border-color: rgba(79, 142, 247, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover::after {
  transform: scaleY(1);
}

/* Compact icon */
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(139, 92, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.stat-card:hover .stat-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.25), rgba(139, 92, 246, 0.25));
}

/* Horizontal content layout */
.stat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
}

/* Mobile specific fixes for header and cards */
@media (max-width: 768px) {
  /* CRITICAL: Ensure header is visible */
  .admin-header-section {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 24px;
    padding: 0 !important;
  }
  
  .page-heading {
    display: block !important;
    visibility: visible !important;
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
  }
  
  .page-description {
    display: block !important;
    visibility: visible !important;
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }
  
  /* Compact stat cards on mobile */
  .stat-card {
    padding: 16px;
    gap: 12px;
    border-radius: 10px;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    border-radius: 8px;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-heading {
    font-size: 1.35rem !important;
  }
  
  .page-description {
    font-size: 0.85rem !important;
  }
  
  .stat-card {
    padding: 14px;
    gap: 10px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .stat-value {
    font-size: 1.35rem;
  }
}

/* Ensure stats grid is visible */
.stats-grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ═══════════════════════════════════════════════════════════════
   CRITICAL FIX: ADMIN HEADER & STAT CARDS - FINAL VERSION
   ═══════════════════════════════════════════════════════════════ */

/* Force header visibility on all devices */
.admin-main {
  position: relative;
  z-index: 1;
}

.admin-header-section {
  display: block !important;
  width: 100% !important;
  margin-bottom: 32px !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.admin-header-section > div {
  display: block !important;
  width: 100% !important;
}

.page-heading {
  display: block !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
}

.page-description {
  display: block !important;
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin: 0 0 32px 0 !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* STAT CARDS - VERTICAL LAYOUT (ICON ON TOP) */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 40px !important;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.1), rgba(139, 92, 246, 0.1)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  z-index: 0 !important;
}

.stat-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.3s ease !important;
}

.stat-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 32px rgba(79, 142, 247, 0.25) !important;
  border-color: rgba(79, 142, 247, 0.4) !important;
}

.stat-card:hover::before {
  opacity: 1 !important;
}

.stat-card:hover::after {
  transform: scaleX(1) !important;
}

.stat-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.2), rgba(139, 92, 246, 0.2)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.85rem !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.15) !important;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg) !important;
  box-shadow: 0 6px 24px rgba(79, 142, 247, 0.3) !important;
}

.stat-content {
  flex: 1 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  position: relative !important;
  z-index: 1 !important;
}

.stat-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.stat-value {
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  .admin-container {
    padding-top: 130px !important;
  }
  
  .admin-main {
    padding: 24px 16px !important;
  }
  
  .admin-header-section {
    margin-bottom: 24px !important;
  }
  
  .page-heading {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
  }
  
  .page-description {
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
  
  .stat-card {
    padding: 20px 18px !important;
    gap: 14px !important;
  }
  
  .stat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.6rem !important;
  }
  
  .stat-label {
    font-size: 0.7rem !important;
  }
  
  .stat-value {
    font-size: 1.85rem !important;
  }
}

@media (max-width: 480px) {
  .admin-container {
    padding-top: 140px !important;
  }
  
  .page-heading {
    font-size: 1.35rem !important;
  }
  
  .page-description {
    font-size: 0.85rem !important;
  }
  
  .stat-card {
    padding: 18px 16px !important;
  }
  
  .stat-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.45rem !important;
  }
  
  .stat-value {
    font-size: 1.65rem !important;
  }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Large desktop - 5 columns */
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SIMPLE FIX: ADMIN HEADING VISIBILITY ON MOBILE
   ═══════════════════════════════════════════════════════════════ */

/* Increase padding to account for wrapped navbar */
@media (max-width: 768px) {
  .admin-container {
    padding-top: 150px !important;
  }
}

@media (max-width: 480px) {
  .admin-container {
    padding-top: 160px !important;
  }
}

@media (max-width: 360px) {
  .admin-container {
    padding-top: 170px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FINAL FIX: ADMIN HEADING - CALCULATE ACTUAL NAVBAR HEIGHT
   ═══════════════════════════════════════════════════════════════ */

/* The navbar wraps on mobile, making it approximately 120px tall
   We need padding-top to be at least navbar height + some spacing */

@media (max-width: 1024px) {
  .admin-container {
    padding-top: 130px !important;
  }
  
  .admin-navbar-new {
    height: auto !important;
    min-height: 110px !important;
  }
}

@media (max-width: 768px) {
  .admin-container {
    padding-top: 140px !important;
  }
  
  .admin-navbar-new {
    min-height: 120px !important;
  }
}

@media (max-width: 480px) {
  .admin-container {
    padding-top: 150px !important;
  }
  
  .admin-navbar-new {
    min-height: 130px !important;
  }
}

@media (max-width: 360px) {
  .admin-container {
    padding-top: 160px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ABSOLUTE FINAL FIX - MOBILE ADMIN HEADING VISIBILITY
   This MUST be the last rule to override everything
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 1024px) {
  body .admin-container {
    padding-top: 180px !important;
  }
}

@media screen and (max-width: 768px) {
  body .admin-container {
    padding-top: 200px !important;
  }
}

@media screen and (max-width: 480px) {
  body .admin-container {
    padding-top: 220px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE NAVBAR OPTIMIZATION - SHOW PROFILE & REDUCE SIZE
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
  /* Make navbar more compact */
  .admin-navbar-new {
    height: auto !important;
    min-height: auto !important;
  }
  
  .navbar-wrapper {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  
  /* Brand section - smaller */
  .navbar-brand-text {
    font-size: 1.1rem !important;
  }
  
  .navbar-brand-badge {
    font-size: 0.6rem !important;
    padding: 2px 8px !important;
  }
  
  /* Profile section - SHOW IT */
  .navbar-profile-section {
    display: flex !important;
    gap: 8px !important;
  }
  
  .navbar-user-info {
    display: flex !important;
    gap: 8px !important;
  }
  
  .navbar-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  
  /* Show user text on mobile */
  .navbar-user-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  
  .navbar-user-name {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
  }
  
  .navbar-user-role {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }
  
  .navbar-logout-btn {
    width: 32px !important;
    height: 32px !important;
  }
  
  .navbar-logout-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Menu section - more compact */
  .navbar-menu-section {
    padding: 6px 0 4px 0 !important;
    gap: 4px !important;
  }
  
  .navbar-menu-item {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  
  .menu-icon {
    font-size: 0.95rem !important;
  }
  
  .menu-text {
    font-size: 0.8rem !important;
  }
  
  /* Reduce container padding since navbar is smaller now */
  body .admin-container {
    padding-top: 130px !important;
  }
}

@media screen and (max-width: 480px) {
  .navbar-wrapper {
    padding: 8px 10px !important;
  }
  
  .navbar-brand-text {
    font-size: 1rem !important;
  }
  
  .navbar-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }
  
  .navbar-user-name {
    font-size: 0.75rem !important;
  }
  
  .navbar-user-role {
    font-size: 0.6rem !important;
  }
  
  .navbar-logout-btn {
    width: 30px !important;
    height: 30px !important;
  }
  
  .navbar-menu-item {
    padding: 6px 10px !important;
  }
  
  body .admin-container {
    padding-top: 120px !important;
  }
}

@media screen and (max-width: 360px) {
  /* On very small screens, hide user text to save space */
  .navbar-user-text {
    display: none !important;
  }
  
  body .admin-container {
    padding-top: 110px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   NAVBAR PAGE TITLE - MOBILE ONLY
   ═══════════════════════════════════════════════════════════════ */

/* Hide mobile title on desktop */
.navbar-page-title-mobile {
  display: none;
}

/* Show mobile title on mobile, hide desktop header */
@media screen and (max-width: 768px) {
  .navbar-page-title-mobile {
    display: block !important;
    width: 100%;
    order: 4;
    padding: 12px 0 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
  }
  
  /* Hide desktop header on mobile */
  .admin-header-desktop-only {
    display: none !important;
  }
  
  /* Reduce container padding since heading is in navbar now */
  body .admin-container {
    padding-top: 160px !important;
  }
}

@media screen and (max-width: 480px) {
  .navbar-page-title-mobile h2 {
    font-size: 1.1rem !important;
  }
  
  .navbar-page-title-mobile p {
    font-size: 0.75rem !important;
  }
  
  body .admin-container {
    padding-top: 150px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE PAGE TITLE - ABOVE NAVBAR (FINAL FIX)
   Shows heading above navbar on mobile only
   ═══════════════════════════════════════════════════════════════ */

/* Hide mobile title on desktop */
.admin-page-title-mobile {
  display: none;
}

/* Show mobile title on mobile - ABOVE navbar */
@media screen and (max-width: 768px) {
  .admin-page-title-mobile {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important; /* Higher than navbar */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(20, 30, 50, 0.98)) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(79, 142, 247, 0.12) !important;
    padding: 16px 16px 12px 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  }
  
  .admin-page-title-mobile h2 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
  }
  
  .admin-page-title-mobile p {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  
  /* Push navbar down below the mobile title */
  .admin-navbar-new {
    position: fixed !important;
    top: 70px !important; /* Height of mobile title */
    left: 0 !important;
    right: 0 !important;
    z-index: 998 !important; /* Below mobile title */
  }
  
  /* Adjust main content padding to account for both title and navbar */
  .admin-container .admin-main {
    padding-top: 180px !important; /* mobile title (70px) + navbar (~110px) */
    margin-top: 0 !important;
  }
  
  /* Hide desktop heading on mobile */
  .admin-header-desktop-only {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .admin-page-title-mobile {
    padding: 14px 12px 10px 12px !important;
  }
  
  .admin-page-title-mobile h2 {
    font-size: 1rem !important;
  }
  
  .admin-page-title-mobile p {
    font-size: 0.7rem !important;
  }
  
  /* Adjust for smaller screens */
  .admin-container .admin-main {
    padding-top: 190px !important;
  }
}

@media screen and (max-width: 360px) {
  .admin-page-title-mobile h2 {
    font-size: 0.95rem !important;
  }
  
  .admin-container .admin-main {
    padding-top: 200px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PROFESSIONAL ADMIN DASHBOARD REDESIGN
   Modern SaaS-style layout with sidebar navigation
   ═══════════════════════════════════════════════════════════════ */

/* Main Layout Container */
.admin-layout-pro {
  display: flex;
  min-height: 100vh;
  background: #F8FAFC;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── TOP NAVBAR ────────────────────────────────────────────── */
.admin-topbar-pro {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #64748B;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.sidebar-toggle-btn:hover {
  background: #F1F5F9;
  color: #2563EB;
}

.topbar-brand h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563EB;
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: -4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  color: #64748B;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: #F1F5F9;
  color: #2563EB;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.profile-role {
  font-size: 0.75rem;
  color: #64748B;
  margin: 0;
  line-height: 1.2;
}

.logout-btn-pro {
  padding: 8px;
  border-radius: 8px;
  color: #64748B;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.logout-btn-pro:hover {
  background: #FEE2E2;
  color: #EF4444;
}

/* ── SIDEBAR NAVIGATION ────────────────────────────────────── */
.admin-sidebar-pro {
  position: fixed;
  left: 0;
  top: 70px;
  width: 260px;
  height: calc(100vh - 70px);
  background: #0F172A;
  padding: 24px 0;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 900;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  transform: translateX(4px);
}

.sidebar-item.active {
  background: #2563EB;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-item svg {
  flex-shrink: 0;
}

.sidebar-badge {
  margin-left: auto;
  background: #EF4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

/* ── MAIN CONTENT AREA ─────────────────────────────────────── */
.admin-content-pro {
  margin-left: 260px;
  margin-top: 70px;
  padding: 32px;
  width: calc(100% - 260px);
  min-height: calc(100vh - 70px);
  transition: all 0.3s ease;
}

/* ── WELCOME HERO SECTION ──────────────────────────────────── */
.welcome-hero-pro {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.hero-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* ── STATISTICS CARDS ──────────────────────────────────────── */
.stats-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card-pro {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.stat-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #2563EB;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-label-pro {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-pro {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.stat-icon-blue { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.stat-icon-yellow { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.stat-icon-green { background: linear-gradient(135deg, #10B981, #34D399); }
.stat-icon-purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }

.stat-value-pro {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-footer-pro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-trend-up {
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
}

.stat-trend-warning {
  font-size: 0.8rem;
  font-weight: 600;
  color: #F59E0B;
}

.stat-trend-success {
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
}

.stat-trend-neutral {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
}

/* ── TABLE SECTION ─────────────────────────────────────────── */
.table-section-pro {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
}

.section-header-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header-pro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.btn-view-all-pro {
  padding: 10px 20px;
  background: #F1F5F9;
  color: #2563EB;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-all-pro:hover {
  background: #2563EB;
  color: #ffffff;
}

.table-container-pro {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.applications-table-pro {
  width: 100%;
  border-collapse: collapse;
}

.applications-table-pro thead {
  background: #F8FAFC;
}

.applications-table-pro th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #E2E8F0;
}

.applications-table-pro td {
  padding: 20px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
}

.applications-table-pro tbody tr {
  transition: all 0.2s ease;
}

.applications-table-pro tbody tr:hover {
  background: #F8FAFC;
}

.applicant-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.applicant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.applicant-name {
  font-weight: 600;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.applicant-email {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0;
  line-height: 1.2;
}

.grant-id-pro {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 6px;
}

.amount-pro {
  font-weight: 700;
  color: #0F172A;
  font-size: 1rem;
}

.date-pro {
  color: #64748B;
  font-size: 0.875rem;
}

/* ── PROFESSIONAL BADGES ───────────────────────────────────── */
.badge-pro {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-approved {
  background: #DCFCE7;
  color: #166534;
}

.badge-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

/* ── ACTION BUTTONS ────────────────────────────────────────── */
.action-buttons-pro {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action-pro {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-view-pro {
  background: #2563EB;
  color: #ffffff;
}

.btn-view-pro:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-approve-pro {
  background: #10B981;
  color: #ffffff;
}

.btn-approve-pro:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject-pro {
  background: #EF4444;
  color: #ffffff;
}

.btn-reject-pro:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state-pro {
  text-align: center;
  padding: 60px 20px;
  color: #94A3B8;
}

.empty-state-pro svg {
  margin: 0 auto 16px;
  opacity: 0.5;
}

.empty-state-pro p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* ── RESPONSIVE DESIGN ─────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .admin-sidebar-pro {
    width: 220px;
  }
  
  .admin-content-pro {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
  
  .stats-grid-pro {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .admin-sidebar-pro {
    transform: translateX(-100%);
    width: 260px;
  }
  
  .admin-sidebar-pro.sidebar-active {
    transform: translateX(0);
  }
  
  .admin-content-pro {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px;
  }
  
  .topbar-brand .brand-subtitle {
    display: none;
  }
  
  .profile-info {
    display: none;
  }
  
  .welcome-hero-pro {
    padding: 24px 20px;
  }
  
  .hero-content h1 {
    font-size: 1.4rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .stats-grid-pro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .table-section-pro {
    padding: 20px 16px;
  }
  
  .section-header-pro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .table-container-pro {
    overflow-x: scroll;
  }
  
  .applications-table-pro {
    min-width: 800px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .admin-topbar-pro {
    padding: 0 16px;
  }
  
  .topbar-brand h1 {
    font-size: 1.25rem;
  }
  
  .stat-value-pro {
    font-size: 2rem;
  }
  
  .welcome-hero-pro {
    padding: 20px 16px;
  }
  
  .hero-content h1 {
    font-size: 1.2rem;
  }
}

/* Sidebar Toggle Animation */
.sidebar-collapsed {
  transform: translateX(-100%);
}

.content-expanded {
  margin-left: 0 !important;
  width: 100% !important;
}


/* ═══════════════════════════════════════════════════════════════
   CHAT PAGE MOBILE FIX - Remove Hamburger Completely
   ═══════════════════════════════════════════════════════════════ */

/* Hide ALL hamburger/toggle buttons on chat pages */
.admin-page .nav-toggle,
.admin-page #navToggle,
.admin-page .mobile-menu-toggle,
.admin-page .sidebar-toggle-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Also hide on body level for chat pages */
body:has(.admin-chat-layout) .mobile-menu-toggle,
body:has(.chat-layout) .mobile-menu-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hide the entire navbar on admin pages (chat uses its own header) */
.admin-page .navbar {
  display: none !important;
}

/* Ensure admin sidebar is hidden on mobile for chat pages */
@media (max-width: 768px) {
  .admin-page .admin-sidebar {
    display: none !important;
    transform: translateX(-100%) !important;
  }
  
  /* Make sure back buttons are visible and properly positioned */
  .conversations-back-btn,
  .chat-back-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 8px !important;
    margin: 0 !important;
    background: rgba(79, 142, 247, 0.1) !important;
    border: 1px solid rgba(79, 142, 247, 0.2) !important;
    border-radius: 10px !important;
    color: #4f8ef7 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    z-index: 1000 !important;
    position: relative !important;
  }
  
  .conversations-back-btn:hover,
  .chat-back-btn:hover {
    background: rgba(79, 142, 247, 0.2) !important;
    border-color: #4f8ef7 !important;
    transform: scale(1.05) !important;
  }
  
  .conversations-back-btn svg,
  .chat-back-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5 !important;
  }
  
  /* Fix chat sidebar header - no hamburger, just back button */
  .chat-sidebar-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    background: var(--bg-card, #111827) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .chat-sidebar-header h3 {
    flex: 1 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
  }
  
  /* Fix chat topbar - no hamburger, just back button */
  .chat-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: var(--bg-card, #111827) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .chat-topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
  }
  
  /* Ensure no empty space or hidden elements */
  .admin-page .nav-container,
  .admin-page .nav-brand,
  .admin-page .nav-links {
    display: none !important;
  }
  
  /* Full width chat layout on mobile */
  .admin-page .admin-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .admin-page .chat-layout {
    width: 100% !important;
    height: 100vh !important;
  }
}


/* ── Dashboard Social Media Footer ──────────────────────────── */
.dashboard-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.dashboard-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.dashboard-footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.dashboard-footer .footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.social-link:hover svg {
  transform: scale(1.15) rotate(5deg);
}

.instagram-link {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border: 1px solid rgba(252, 176, 69, 0.3);
}

.instagram-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(252, 176, 69, 0.4);
  color: #fff;
}

.facebook-link {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
  border: 1px solid rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
  color: #fff;
}

@media (max-width: 768px) {
  .dashboard-footer {
    padding: 24px 16px;
    margin-top: 40px;
  }
  
  .dashboard-footer .footer-text {
    font-size: 0.85rem;
  }
  
  .social-links {
    gap: 12px;
  }
  
  .social-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}
