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

/* Unbelievable Premium Design Tokens */
:root {
  --bg-primary: #05070c;
  --bg-secondary: #0a0d16;
  --bg-tertiary: #101524;
  
  /* Rich Volumetric Gradients */
  --bg-grad-dark: linear-gradient(135deg, #05070c 0%, #0c101d 50%, #05070c 100%);
  --gold-gradient: linear-gradient(135deg, #ffe259 0%, #d4af37 50%, #b8860b 100%);
  --gold-metallic: linear-gradient(90deg, #aa7c11 0%, #ffe259 25%, #d4af37 50%, #ffe259 75%, #8b6508 100%);
  --police-gradient: linear-gradient(135deg, #1e3c72 0%, #1e40af 50%, #2a5298 100%);
  --steel-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  --glow-gradient: linear-gradient(135deg, rgba(255, 226, 89, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  
  /* Accents */
  --gold-primary: #d4af37;
  --gold-light: #ffe259;
  --gold-dark: #aa7c11;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --card-bg-glass: rgba(16, 21, 36, 0.45);
  --card-border-gold: rgba(212, 175, 55, 0.2);
  --card-border-gold-hover: rgba(212, 175, 55, 0.5);
  
  --police-blue: #1d4ed8;
  --flag-saffron: #ff9933;
  --flag-green: #128807;
  
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.15);
  --shadow-card-heavy: 0 20px 40px rgba(0, 0, 0, 0.6);
  --radius-card: 20px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 5% 15%, rgba(30, 64, 175, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 95% 85%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
    var(--bg-grad-dark);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-metallic);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* App Wrapper & Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Tricolor Flag Header Highlight */
.tricolor-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  display: flex;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 102;
}
.tricolor-band.saffron { background-color: var(--flag-saffron); flex: 1; }
.tricolor-band.white { background-color: #ffffff; flex: 1; }
.tricolor-band.green { background-color: var(--flag-green); flex: 1; }

/* Mobile Header (Glossy Glassmorphic) */
.app-header {
  background: rgba(10, 13, 22, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--card-border-gold);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  background: rgba(0,0,0,0.3);
  padding: 2px;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.brand-text p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  background: rgba(18, 136, 7, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

/* Navigation System */
/* Mobile Bottom Bar (Glossy floating concept) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--card-border-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 0.5rem;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  width: 65px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--gold-primary);
}

.nav-item.active svg {
  stroke: var(--gold-light);
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 226, 89, 0.6));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 6px;
  height: 6px;
  background: var(--gold-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
}

/* Main View Area */
.app-content {
  flex: 1;
  padding: 1.5rem 1rem;
  padding-bottom: 95px; /* space for bottom nav */
  width: 100%;
  animation: fadeIn 0.8s ease;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ============================================================
   PREMIUM GLASSMORPHISM CARDS — 3D Hover + Metallic Sheen Sweep
   ============================================================ */
.glass-card {
  background: var(--card-bg-glass);
  border: 1px solid var(--card-border-gold);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-card-heavy);
  transition: var(--transition-smooth);
}

/* Subtle inner highlight */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Metallic Sheen Sweep pseudo-element */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 226, 89, 0.06) 35%,
    rgba(212, 175, 55, 0.12) 50%,
    rgba(255, 226, 89, 0.06) 65%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
  transition: none;
}

.glass-card:hover::after {
  animation: sheen-sweep 0.8s ease forwards;
}

/* Premium Glass Hover */
.glass-card:hover {
  border-color: var(--card-border-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ============================================================
   RADAR STATUS BADGE — Pulsing Concentric Rings
   ============================================================ */
.status-radar {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.5rem 0.65rem 1rem;
  border-radius: 40px;
  background: rgba(18, 136, 7, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  position: relative;
  margin-top: 1rem;
}

.radar-rings {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translate(-50%, -50%) translateX(50%);
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 222, 128, 0.5);
  transform: translate(-50%, -50%);
  animation: radar-pulse 2s ease-out infinite;
}

.radar-ring:nth-child(2) {
  animation-delay: 0.5s;
}

.radar-ring:nth-child(3) {
  animation-delay: 1s;
}

.radar-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.radar-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4ade80;
  z-index: 2;
  position: relative;
  padding-left: 0.5rem;
}

/* Radar color variants */
.status-radar.status-on-duty {
  background: rgba(18, 136, 7, 0.08);
  border-color: rgba(74, 222, 128, 0.25);
}
.status-radar.status-on-duty .radar-dot { background-color: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.status-radar.status-on-duty .radar-label { color: #4ade80; }
.status-radar.status-on-duty .radar-ring { border-color: rgba(74, 222, 128, 0.5); }

.status-radar.status-emergency {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}
.status-radar.status-emergency .radar-dot { background-color: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.status-radar.status-emergency .radar-label { color: #fca5a5; }
.status-radar.status-emergency .radar-ring { border-color: rgba(239, 68, 68, 0.5); }

.status-radar.status-training {
  background: rgba(30, 64, 175, 0.08);
  border-color: rgba(147, 197, 253, 0.25);
}
.status-radar.status-training .radar-dot { background-color: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.6); }
.status-radar.status-training .radar-label { color: #93c5fd; }
.status-radar.status-training .radar-ring { border-color: rgba(96, 165, 250, 0.5); }

.status-radar.status-off-duty {
  background: rgba(71, 85, 105, 0.08);
  border-color: rgba(71, 85, 105, 0.25);
}
.status-radar.status-off-duty .radar-dot { background-color: #64748b; box-shadow: 0 0 8px rgba(100, 116, 139, 0.4); }
.status-radar.status-off-duty .radar-label { color: #94a3b8; }
.status-radar.status-off-duty .radar-ring { border-color: rgba(100, 116, 139, 0.4); animation: none; }

/* PROFILE HERO CARD: Masterpiece Redesign */
.profile-hero-card {
  background: linear-gradient(135deg, rgba(16, 21, 36, 0.75) 0%, rgba(8, 11, 20, 0.9) 100%);
  border: 1.5px solid var(--card-border-gold);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), var(--shadow-gold-glow);
  margin-bottom: 2rem;
}

/* Glowing Top Metallic Trim */
.profile-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold-metallic);
  box-shadow: 0 2px 15px var(--gold-primary);
  z-index: 1;
}

/* Badge Watermark background */
.profile-hero-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background-image: url('assets/default_logo.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
}

/* Gold Badge Ring Frame for Profile Picture (Matches Logo Ring) */
.profile-avatar-container {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0 auto 1.5rem;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #101524;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
  background-color: var(--bg-tertiary);
  margin: 8px;
  z-index: 2;
  position: relative;
}

.profile-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: none;
  border: 3.5px solid transparent;
  border-top: 3.5px solid var(--gold-primary);
  border-bottom: 3.5px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  animation: rotate-avatar-glow 8s linear infinite;
  z-index: 1;
}

.profile-avatar-outer-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

.profile-name {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--police-gradient);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.profile-badge svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Contact/Verification Chips (Re-designed as Glass Tiles) */
.quick-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.01);
}

.info-chip:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--card-border-gold-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(212,175,55,0.02);
}

.info-chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
  border: 1px solid var(--card-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.info-chip:hover .info-chip-icon {
  background: var(--gold-gradient);
  color: #000000;
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(212,175,55,0.5);
}

.info-chip-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.info-chip:hover .info-chip-icon svg {
  stroke: #000000;
}

.info-chip-content {
  text-align: left;
}

.info-chip-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.info-chip-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Premium Section Titles */
.section-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-metallic);
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(212,175,55,0.5);
}

.section-title span {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.section-title svg {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 5px rgba(212,175,55,0.4));
}

/* Plaques for Pillars of Policing */
.plaque-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 21, 36, 0.5) 0%, rgba(10, 13, 22, 0.6) 100%);
  border: 1px solid var(--card-border-gold);
}

.plaque-card:hover {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(16, 21, 36, 0.6) 100%);
}

.plaque-title {
  color: var(--gold-primary);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.plaque-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Documents tab styling */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 64, 175, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  transition: var(--transition-smooth);
}

.doc-item:hover .doc-icon {
  background: var(--police-gradient);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(30, 64, 175, 0.4);
}

.doc-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

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

.doc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
  transition: var(--transition-smooth);
}

.doc-item:hover .doc-title {
  color: var(--gold-light);
}

.doc-details {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-download {
  background: var(--gold-gradient);
  border: none;
  color: #000000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
  transition: var(--transition-smooth);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
  background: var(--gold-light);
}

.btn-download svg {
  width: 15px;
  height: 15px;
  stroke: #000000;
  stroke-width: 2.5;
  fill: none;
}

/* Media Gallery Styling */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.media-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border-gold);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

.media-viewport {
  width: 100%;
  aspect-ratio: 4/5; /* Default */
  background-color: #000000;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Dynamic Aspect Ratios */
.media-card.type-photo .media-viewport { aspect-ratio: 1/1; }
.media-card.type-reels .media-viewport { aspect-ratio: 9/16; }
.media-card.type-video .media-viewport { aspect-ratio: 16/9; }
.media-card.type-doc .media-viewport { aspect-ratio: 4/5; }

.media-viewport iframe, .media-viewport video {
  width: 100%;
  height: 100%;
  border: none;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-card:hover .media-image {
  transform: scale(1.08);
}

.media-info-bar {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(16, 21, 36, 0.2) 0%, rgba(10, 13, 22, 0.8) 100%);
  border-top: 1px solid var(--card-border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-card-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.media-card-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.badge-media-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Updates Tab Timeline */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.updates-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 4px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--gold-metallic);
  opacity: 0.25;
}

.update-card {
  position: relative;
  margin-bottom: 0;
}

.update-card::after {
  content: '';
  position: absolute;
  left: -23px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  z-index: 2;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.update-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
}

.update-tag.emergency {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: pulse-red-border 2s infinite;
}

.update-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.update-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.update-card:hover .update-card-title {
  color: var(--gold-light);
}

.update-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contact and Forms */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border-gold);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  background: rgba(16, 21, 36, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: var(--gold-metallic);
  border: none;
  color: #000000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  width: 100%;
  box-shadow: 0 4px 15px rgba(212,175,55,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: #000000;
  stroke-width: 2.5;
  fill: none;
}

/* ============================================================
   CITIZEN REQUEST CATEGORY GRID
   ============================================================ */
.request-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.request-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem;
  border-radius: 16px;
  background: rgba(16, 21, 36, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.request-category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 226, 89, 0.04) 35%,
    rgba(212, 175, 55, 0.08) 50%,
    rgba(255, 226, 89, 0.04) 65%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
}

.request-category-card:hover::after {
  animation: sheen-sweep 0.8s ease forwards;
}

.request-category-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
  transform: perspective(800px) rotateX(1deg) rotateY(-1deg) translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.06);
}

.request-category-card.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: glow-pulse 3s ease-in-out infinite;
}

.category-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.category-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.request-category-card.active .category-name {
  color: var(--gold-light);
}

.request-category-card:hover .category-name {
  color: var(--text-primary);
}

/* Modals & Alerts */
.alert-popup {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(16, 21, 36, 0.95);
  border: 1.5px solid var(--gold-primary);
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), var(--shadow-gold-glow);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.92rem;
  font-weight: 600;
}

.alert-popup.show {
  transform: translateX(-50%) translateY(0);
}

.alert-popup.success { border-color: #10b981; }
.alert-popup.error { border-color: #ef4444; }

/* Custom Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1.5px solid var(--card-border-gold);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-gold-glow);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--card-border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.modal-body {
  padding: 1.75rem;
}

/* ============================================================
   TRACKING TIMELINE & REPLIES
   ============================================================ */
.tracking-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border-gold);
}

.timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.timeline-step.active {
  opacity: 1;
}

.timeline-step.completed {
  opacity: 1;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--text-secondary);
  box-shadow: 0 0 0 4px var(--bg-primary);
  z-index: 1;
  transition: var(--transition-smooth);
}

.timeline-step.active::before {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 0 4px var(--bg-primary);
  animation: pulse-gold 2s infinite;
}

.timeline-step.completed::before {
  background: #4ade80;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.step-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.step-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-replies {
  margin-top: 2rem;
  border-top: 1px solid var(--card-border-gold);
  padding-top: 1.5rem;
}

.admin-reply-bubble {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(30, 64, 175, 0.05) 100%);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.admin-reply-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-badge {
  background: var(--police-gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-reply-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4), 0 0 0 4px var(--bg-primary); }
  70% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0), 0 0 0 4px var(--bg-primary); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 0 0 4px var(--bg-primary); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rotate-avatar-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes pulse-red-border {
  0% { border-color: rgba(239, 68, 68, 0.25); }
  50% { border-color: rgba(239, 68, 68, 0.7); }
  100% { border-color: rgba(239, 68, 68, 0.25); }
}

/* Metallic Sheen Sweep — diagonal gold highlight sweeps left to right */
@keyframes sheen-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

/* Radar Pulse — concentric ring expansion from center dot */
@keyframes radar-pulse {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.8;
  }
  100% {
    width: 36px;
    height: 36px;
    opacity: 0;
  }
}

/* Float Particle — subtle floating motion for decorative elements */
@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-12px) translateX(6px);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px) translateX(-4px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-18px) translateX(3px);
    opacity: 0.5;
  }
}

/* Glow Pulse — pulsing gold glow intensity */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1), 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================================
   DESKTOP SPLIT-SIDEBAR LAYOUT
   ============================================================ */
.sidebar-brand {
  display: none;
}

  @media (min-width: 768px) {
    .app-container {
      flex-direction: row;
      width: 100%;
      min-height: 100vh;
      margin: 0;
    }
    
    .app-header {
    display: none; /* Merged into desktop sidebar */
  }
  
  /* Sidebar Transformation */
  .bottom-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    border-top: none;
    border-right: 1px solid var(--card-border-gold);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.25rem;
    gap: 0.65rem;
    background: var(--bg-secondary);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
  }
  
  /* Branding elements inside Desktop Sidebar */
  .sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    gap: 0.75rem;
  }
  
  .sidebar-brand .brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: rgba(0,0,0,0.4);
    padding: 3px;
  }
  
  .sidebar-brand .brand-text h1 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  }
  
  .sidebar-brand .brand-text p {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
  }

  .nav-item {
    width: 100%;
    height: 52px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 1.25rem;
    gap: 1.25rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
  }
  
  .nav-item svg {
    margin-bottom: 0;
    width: 22px;
    height: 22px;
  }
  
  .nav-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
  }
  
  .nav-item.active {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
  }
  
  .nav-item.active svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
  }
  
  .nav-item.active::after {
    display: none;
  }
  
  /* Main Content Area adjustments */
  .app-content {
    padding: 3rem 2rem;
    padding-bottom: 3rem;
    overflow-y: auto;
    height: 100vh;
  }
  
  .profile-hero-card {
    padding: 3.5rem;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 3rem;
  }
  
  .profile-avatar-container {
    margin: 0;
    flex-shrink: 0;
  }
  
  .profile-details-text {
    flex: 1;
  }
  
  .quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  /* Media grid is handled automatically by auto-fill */
  
  .contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }

  .request-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* UI Performance & Hardware Acceleration */
body, html { will-change: transform; scroll-behavior: smooth; }
.glass-panel, .card, .btn-primary { transform: translateZ(0); will-change: transform, opacity; }
.modal-content { transform: translateZ(0); backface-visibility: hidden; }


/* Media Tabs & Swiper UI */
.section-header { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.media-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.media-tabs::-webkit-scrollbar { display: none; }
.media-tab { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.media-tab.active { background: var(--gold-primary); color: #000; font-weight: 600; border-color: var(--gold-primary); }
.fullscreen-swiper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 9999; display: none; flex-direction: column; }
.fullscreen-swiper.show { display: flex; }
.close-swiper { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.5); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 10000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.swiper-container { width: 100%; height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.swiper-container::-webkit-scrollbar { display: none; }
.swiper-slide { width: 100%; height: 100vh; scroll-snap-align: start; position: relative; display: flex; align-items: center; justify-content: center; background: #000; }
.swiper-media { max-width: 100%; max-height: 100%; object-fit: contain; }
.swiper-actions { position: absolute; right: 20px; bottom: 100px; display: flex; flex-direction: column; gap: 20px; z-index: 10; }
.action-btn { background: none; border: none; color: white; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); transition: transform 0.2s; }
.action-btn:active { transform: scale(0.9); }
.action-btn svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
.action-btn.liked svg { fill: #ef4444; stroke: #ef4444; }
.swiper-info { position: absolute; left: 20px; bottom: 40px; width: calc(100% - 100px); color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 10; }
.swiper-info h4 { margin: 0 0 5px 0; font-size: 1.1rem; }
.swiper-info p { margin: 0; font-size: 0.9rem; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
