/**
 * VATSIM Ecuador - Modern & Premium Theme
 * Color Palette: Refined Ecuador Tricolor (Sun Gold, Royal Blue, Andean Crimson) + Slate Dark Mode
 */

:root {
  --ec-gold: #f59e0b;
  --ec-yellow: #fbbf24;
  --ec-yellow-glow: rgba(251, 191, 36, 0.25);
  --ec-blue: #3b82f6;
  --ec-blue-dark: #1d4ed8;
  --ec-blue-glow: rgba(59, 130, 246, 0.25);
  --ec-red: #ef4444;
  --ec-red-dark: #b91c1c;
  --ec-red-glow: rgba(239, 68, 68, 0.25);

  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-elevated: #162032;
  --bg-card: rgba(17, 24, 39, 0.78);
  --bg-card-hover: rgba(22, 32, 50, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --tricolor-gradient: linear-gradient(90deg, #fbbf24 0%, #3b82f6 50%, #ef4444 100%);
  --tricolor-gradient-subtle: linear-gradient(90deg, rgba(251, 191, 36, 0.4) 0%, rgba(59, 130, 246, 0.4) 50%, rgba(239, 68, 68, 0.4) 100%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.2);
  --shadow-glow-gold: 0 0 25px rgba(251, 191, 36, 0.2);
}

/* Base & Typography */
body {
  background-color: var(--bg-main) !important;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(239, 68, 68, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main) !important;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 66px !important;
}

/* Widen Container for modern screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px !important;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1440px !important;
  }
}

h1, h2, h3, h4, h5, h6, .card-title, .panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

p, li, span, td, th {
  color: var(--text-main);
}

.text-danger {
  color: var(--ec-red) !important;
}

.text-warning {
  color: var(--ec-yellow) !important;
}

.text-info {
  color: var(--ec-blue) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

hr {
  border-top: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}

/* Links */
a {
  color: #60a5fa;
  transition: all 0.2s ease;
  text-decoration: none;
}

a:hover {
  color: #93c5fd;
  text-decoration: none;
}

/* Navbar */
.navbar-ecuador {
  background: rgba(10, 14, 23, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: var(--tricolor-gradient) 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar-ecuador .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.navbar-ecuador .brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-ecuador .navbar-brand:hover .brand-logo {
  transform: scale(1.05);
}

.navbar-ecuador .badge-subdivision {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-left: 10px;
}

.navbar-ecuador .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: #cbd5e1 !important;
  padding: 8px 14px !important;
  margin: 0 2px;
  border-radius: 8px;
  transition: all 0.22s ease;
  position: relative;
}

.navbar-ecuador .nav-link:hover,
.navbar-ecuador .nav-item.active .nav-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.navbar-ecuador .nav-item.active .nav-link {
  color: var(--ec-yellow) !important;
  background: rgba(251, 191, 36, 0.1);
  box-shadow: inset 0 -2px 0 var(--ec-yellow);
}

.navbar-ecuador .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
  border-top-color: currentColor;
}

.navbar-toggler {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ec-blue-glow);
}

/* Dropdowns */
.dropdown-menu {
  background: rgba(17, 24, 39, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}

.dropdown-item {
  color: #cbd5e1 !important;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

/* Hero Section */
.hero-ecuador {
  position: relative;
  margin-top: 6px;
  background: 
    radial-gradient(ellipse 70% 120px at 50% 0%, rgba(59, 130, 246, 0.2) 0%, rgba(251, 191, 36, 0.08) 45%, rgba(239, 68, 68, 0.04) 75%, transparent 85%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 14, 23, 0.8) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding: 44px 0 40px 0;
  overflow: hidden;
  box-shadow: 0 -10px 30px -5px rgba(0, 0, 0, 0.6), 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

.hero-ecuador::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(251, 191, 36, 0.85) 15%, 
    rgba(59, 130, 246, 0.95) 50%, 
    rgba(239, 68, 68, 0.85) 85%, 
    transparent 100%);
  box-shadow: 
    0 0 14px rgba(59, 130, 246, 0.7), 
    0 0 28px rgba(251, 191, 36, 0.4),
    0 0 45px rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  z-index: 3;
}

.hero-ecuador::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -200px;
  right: 5%;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-ecuador {
    padding: 32px 0 28px 0;
    margin-top: 4px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-yellow);
  margin-bottom: 14px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-title-accent {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.02rem;
  color: #94a3b8;
  max-width: 650px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-info-card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tricolor-gradient);
}

.hero-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(59, 130, 246, 0.15);
}

.hero-emblem-img {
  max-height: 135px;
  border-radius: 12px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

.hero-quick-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-quick-stats .stat-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.hero-quick-stats .stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 3px;
}

/* Buttons */
.btn-ec-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ec-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.btn-ec-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0 !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
}

.btn-ec-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-custom {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Glass Cards & Overrides */
.card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 25px;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.card-header,
.panel-chile,
.panel-rojo {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 16px 20px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header::before,
.panel-chile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tricolor-gradient);
}

.card-header .card-title,
.card-header h5,
.panel-title {
  margin: 0 !important;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
}

.card-body,
.border-chile,
.border-rojo {
  background: transparent !important;
  border: none !important;
  padding: 22px !important;
  color: var(--text-main) !important;
}

.card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--border-subtle) !important;
  padding: 12px 20px !important;
  color: var(--text-muted) !important;
}

/* Modern Tables */
.table {
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th,
.table .thead-light th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #94a3b8 !important;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-top: none !important;
  padding: 14px 16px !important;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06) !important;
}

.table td, .table th {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 14px 16px !important;
  vertical-align: middle !important;
  font-size: 0.92rem;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Badges & Pills */
.badge {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.badge-secondary {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* Roster Status Badges (VATSUR style) */
.badge-custom {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  text-align: center;
  line-height: 1;
}

.badge-active {
  background: rgba(25, 135, 84, 0.22) !important;
  border: 1px solid rgba(69, 242, 184, 0.28) !important;
  color: #45f2b8 !important;
}

.badge-inactive {
  background: rgba(220, 53, 69, 0.18) !important;
  border: 1px solid rgba(255, 123, 123, 0.24) !important;
  color: #ff7b7b !important;
}

@media (max-width: 992px) {
  .badge-custom {
    min-width: 75px;
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

.badge-cid {
  font-family: var(--font-mono);
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.badge-cid:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff !important;
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  text-decoration: none !important;
}

.badge-rating {
  font-family: var(--font-heading);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.28);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-block;
}

/* Visitor Badge */
.badge-visitor {
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  top: -1px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.08) 100%);
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 6px;
  margin-right: 4px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  cursor: default;
}

.badge-visitor:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26) 0%, rgba(14, 165, 233, 0.18) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}
/* Roster Tabs & Navigation Pills */
.roster-nav-pills {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.roster-nav-pills .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #94a3b8 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.roster-nav-pills .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
}

.roster-nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

.badge-tab {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.roster-nav-pills .nav-link.active .badge-tab {
  background: rgba(59, 130, 246, 0.35);
  color: #bfdbfe !important;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Position Badges */
.badge-position {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin: 2px;
  line-height: 1.2;
}

/* Country Badge */
.badge-country {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

/* Days Remaining Badge */
.badge-days-good {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.badge-days-warning {
  background: rgba(251, 191, 36, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.badge-days-danger {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* Forms */
.form-control {
  background: rgba(17, 24, 39, 0.8) !important;
  border: 1px solid var(--border-subtle) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: rgba(22, 32, 50, 0.95) !important;
  border-color: var(--ec-blue) !important;
  box-shadow: 0 0 0 3px var(--ec-blue-glow) !important;
  color: #ffffff !important;
}

.form-control::placeholder {
  color: #64748b !important;
}

/* Carousel */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.carousel-indicators [data-bs-target],
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  transition: all 0.2s ease;
}

.carousel-indicators .active {
  background-color: var(--ec-yellow) !important;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 12%;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Event Banner Styling */
.event-card-ecu {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.25s ease;
}

.event-card-ecu:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.event-card-ecu img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.event-card-ecu:hover img {
  transform: scale(1.02);
}

/* Footer */
.footer-ecuador {
  margin-top: auto;
  background: rgba(10, 14, 23, 0.95) !important;
  border-top: 2px solid transparent !important;
  border-image: var(--tricolor-gradient) 1 !important;
  padding: 45px 0 30px 0 !important;
  position: relative;
}

.footer-ecuador .partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-bottom: 25px;
}

.footer-ecuador .partner-logos img {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.footer-ecuador .partner-logos a:hover img {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
}

.footer-ecuador .footer-copy {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-ecuador .footer-disclaimer {
  color: var(--text-dim) !important;
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
}

/* Page Header component for subpages */
.page-title-banner {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.page-title-banner h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-banner .page-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-card);
}
