/* ==================== KONFIGURASI VARIABEL DUAL MODE (LIGHT & DARK) ==================== */
:root,
html[data-theme="light"] {
  --bg-page: #F4F6F3;
  --bg-pattern: none;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAF8;
  --bg-navbar: rgba(255, 255, 255, 0.96);
  --bg-dropdown: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-table-head: #EDF2EE;
  --bg-table-hover: #F5F9F6;
  --bg-footer: #FFFFFF;

  --text-main: #0F291E;
  --text-muted: #52665B;
  --text-accent: #9A6B00;       /* Emas perunggu gelap agar sangat jelas di latar putih */
  --text-gold-num: #8C6200;     /* Angka statistik & poin tegas di Light Mode */

  --border-main: #DCE4DF;
  --border-card-hover: #B5C7BD;
  --border-dropdown: #CBD8D0;
  --shadow-card: 0 8px 24px rgba(7, 38, 25, 0.05);

  --pill-dark-bg: #FFFFFF;
  --pill-dark-text: #0F291E;
  --pill-dark-border: #C5D3CB;

  --welcome-bg: #E6F4EA;
  --welcome-border: #A8DAB5;
  --welcome-text: #064E3B;

  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html[data-theme="dark"] {
  --bg-page: #03130C;
  --bg-pattern:
    radial-gradient(circle at 85% 12%, rgba(217, 180, 92, 0.09), transparent 38%),
    radial-gradient(circle at 12% 80%, rgba(16, 185, 129, 0.06), transparent 40%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 10px);
  --bg-card: linear-gradient(165deg, rgba(11, 41, 28, 0.95) 0%, rgba(5, 22, 15, 0.98) 100%);
  --bg-card-subtle: rgba(8, 32, 22, 0.85);
  --bg-navbar: rgba(3, 19, 12, 0.96);
  --bg-dropdown: #041810;
  --bg-input: rgba(3, 15, 10, 0.92);
  --bg-table-head: rgba(217, 180, 92, 0.12);
  --bg-table-hover: rgba(217, 180, 92, 0.05);
  --bg-footer: #020C08;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-accent: #F2E0AC;       /* Emas cerah untuk kontras tinggi di latar gelap */
  --text-gold-num: #D9B45C;

  --border-main: rgba(217, 180, 92, 0.28);
  --border-card-hover: rgba(217, 180, 92, 0.52);
  --border-dropdown: #D9B45C;
  --shadow-card: 0 14px 34px -12px rgba(0, 0, 0, 0.7);

  --pill-dark-bg: rgba(11, 41, 28, 0.9);
  --pill-dark-text: #E2E8F0;
  --pill-dark-border: rgba(217, 180, 92, 0.32);

  --welcome-bg: rgba(16, 185, 129, 0.14);
  --welcome-border: rgba(16, 185, 129, 0.38);
  --welcome-text: #ECFDF5;
}

/* ==================== GLOBAL BASE & PENYELARAS KONTRAS OTOMATIS ==================== */
body {
  background-color: var(--bg-page);
  background-image: var(--bg-pattern);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.font-display {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}

/* Normalisasi otomatis kelas teks agar TIDAK PERNAH tabrakan di Light maupun Dark Mode */
main .text-white,
main .text-forest,
.sthac-footer .text-forest {
  color: var(--text-main) !important;
}

main .text-white-50,
main .text-secondary,
.sthac-footer .text-secondary {
  color: var(--text-muted) !important;
}

main .text-warning,
main .text-gold,
main .text-gold-bright {
  color: var(--text-accent) !important;
}

main .font-display.text-gold {
  color: var(--text-gold-num) !important;
}

/* Tautan di dalam Langkah Pengelolaan & Status Pendaftaran agar tegas dan mudah dibaca */
main a.text-warning {
  color: var(--text-accent) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
main a.text-warning:hover {
  opacity: 0.8;
}

/* Pengecualian: Di dalam Hero Banner & CTA Banner Hijau Gelap, teks tetap Putih & Emas Terang */
.sthac-hero-forest .text-white,
.saiga-page-header-dark .text-white,
.saiga-photo-banner .text-white,
.saiga-cta-banner .text-white,
main .badge.text-white {
  color: #FFFFFF !important;
}

.sthac-hero-forest .text-white-50,
.saiga-page-header-dark .text-white-50,
.saiga-photo-banner .text-white-50,
.saiga-cta-banner .text-white-50 {
  color: #CBD5E1 !important;
}

.sthac-hero-forest .text-warning,
.saiga-cta-banner .text-warning {
  color: #F2E0AC !important;
}

/* ==================== NAVBAR & TOMBOL TOGGLE TEMA ==================== */
.navbar-sthac {
  background: var(--bg-navbar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-main);
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar-sthac .brand-title {
  color: var(--text-main) !important;
}
.navbar-sthac .brand-subtitle {
  color: var(--text-muted) !important;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand-emblem:hover { transform: scale(1.05); }

.navbar-sthac .nav-link {
  color: var(--text-main) !important;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 0.92rem !important;
  border-radius: 50rem;
  transition: var(--transition-smooth);
}

html[data-theme="light"] .navbar-sthac .nav-link:hover,
html[data-theme="light"] .navbar-sthac .nav-link.active {
  background: #072619;
  color: #F2E0AC !important;
}

html[data-theme="dark"] .navbar-sthac .nav-link:hover,
html[data-theme="dark"] .navbar-sthac .nav-link.active {
  background: linear-gradient(135deg, #D9B45C, #b89138);
  color: #03130C !important;
  font-weight: 700;
}

/* Tombol Sakelar Light / Dark Mode */
.btn-theme-toggle {
  background: var(--pill-dark-bg);
  color: var(--text-main) !important;
  border: 1px solid var(--pill-dark-border);
  border-radius: 50rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-theme-toggle:hover {
  border-color: #D9B45C;
  transform: translateY(-1px);
}

/* ==================== DROPDOWN MENU SOLID (ADAPTIF LIGHT & DARK) ==================== */
.dropdown-menu.dropdown-menu-sthac {
  background-color: var(--bg-dropdown) !important;
  border: 1px solid var(--border-dropdown) !important;
  border-radius: 0.9rem !important;
  padding: 0.5rem !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28) !important;
  min-width: 225px;
  z-index: 2000 !important;
}

.dropdown-menu.dropdown-menu-sthac.show {
  animation: dropdownPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.dropdown-menu-sthac .dropdown-item {
  color: var(--text-main) !important;
  background-color: transparent !important;
  border-radius: 0.55rem !important;
  padding: 0.6rem 0.95rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  transition: all 0.18s ease !important;
}

html[data-theme="light"] .dropdown-menu-sthac .dropdown-item:hover,
html[data-theme="light"] .dropdown-menu-sthac .dropdown-item.active-sub {
  background-color: #EDF3EF !important;
  color: #072619 !important;
  padding-left: 1.2rem !important;
}

html[data-theme="dark"] .dropdown-menu-sthac .dropdown-item:hover,
html[data-theme="dark"] .dropdown-menu-sthac .dropdown-item.active-sub {
  background-color: rgba(217, 180, 92, 0.2) !important;
  color: #F2E0AC !important;
  padding-left: 1.2rem !important;
}

.dropdown-menu-sthac .dropdown-divider {
  border-color: var(--border-main) !important;
  margin: 0.35rem 0 !important;
}

/* ==================== SUB-NAVBAR & KOMPONEN PANEL PANITIA ==================== */
.admin-navbar-card {
  position: relative;
  z-index: 1040 !important;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-top: 4px solid #072619;
  border-radius: 1.15rem;
  box-shadow: var(--shadow-card);
}
html[data-theme="dark"] .admin-navbar-card {
  border-top-color: #D9B45C;
}

/* Banner Selamat Datang Panitia */
#adm-sec-ringkasan > div:first-child {
  background: var(--welcome-bg) !important;
  border: 1px solid var(--welcome-border) !important;
  color: var(--welcome-text) !important;
}
#adm-sec-ringkasan > div:first-child span {
  color: var(--welcome-text) !important;
  font-weight: 700;
}

/* Kartu Statistik (Memperbaiki teks bawah angka yang sebelumnya hilang di Light Mode) */
.sthac-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-top: 4px solid #072619;
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
html[data-theme="dark"] .sthac-stat-card {
  border-top-color: #D9B45C;
}
.sthac-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-hover);
}
.sthac-stat-card .fs-3 {
  color: var(--text-gold-num) !important;
  font-size: 2rem !important;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.sthac-stat-card .small {
  color: var(--text-muted) !important;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  line-height: 1.35;
}

/* ==================== CARDS, TABLES & INPUTS ==================== */
.sthac-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-main);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.sthac-card:hover {
  border-color: var(--border-card-hover);
}

.sthac-table {
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--text-main) !important;
  color: var(--text-main) !important;
}
.sthac-table thead tr {
  background: var(--bg-table-head);
  border-bottom: 2px solid var(--border-main);
}
.sthac-table thead th {
  font-family: 'Oswald', sans-serif;
  color: var(--text-main) !important;
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  padding: 0.9rem 1rem !important;
  border: none !important;
}
html[data-theme="dark"] .sthac-table thead th {
  color: #D9B45C !important;
}
.sthac-table tbody td {
  padding: 0.9rem 1rem !important;
  border-bottom: 1px solid var(--border-main) !important;
  color: var(--text-main) !important;
  vertical-align: middle;
}
.sthac-table tbody tr:hover td {
  background-color: var(--bg-table-hover) !important;
}

.sthac-input {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--pill-dark-border) !important;
  color: var(--text-main) !important;
  border-radius: 0.65rem !important;
  font-size: 0.86rem !important;
}
.sthac-input:focus {
  border-color: #D9B45C !important;
  box-shadow: 0 0 0 3px rgba(217, 180, 92, 0.2) !important;
}

/* ==================== BUTTONS & BANNERS ==================== */
.btn { transition: var(--transition-smooth) !important; }
.btn:active { transform: scale(0.97) !important; }

.btn-gold-pill {
  background: linear-gradient(135deg, #E3C373 0%, #C69E43 100%);
  color: #03130C !important;
  font-weight: 700;
  border: none;
  border-radius: 50rem;
  box-shadow: 0 4px 14px rgba(198, 158, 67, 0.28);
}
.btn-gold-pill:hover {
  background: linear-gradient(135deg, #F2E0AC 0%, #D9B45C 100%);
  color: #03130C !important;
}

.btn-dark-pill {
  background: var(--pill-dark-bg);
  color: var(--pill-dark-text) !important;
  border: 1px solid var(--pill-dark-border);
  border-radius: 50rem;
  font-weight: 600;
}
html[data-theme="light"] .btn-dark-pill:hover {
  background: #072619;
  color: #F2E0AC !important;
  border-color: #072619;
}
html[data-theme="dark"] .btn-dark-pill:hover {
  background: rgba(217, 180, 92, 0.16);
  color: #F2E0AC !important;
  border-color: #D9B45C;
}

.btn-forest-pill {
  background: #072619;
  color: #FFFFFF !important;
  border-radius: 50rem;
  font-weight: 700;
  border: 1px solid rgba(217, 180, 92, 0.4);
}
.btn-forest-pill:hover {
  background: #0D3826;
  color: #F2E0AC !important;
}

.btn-logout-pill {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 50rem;
  font-weight: 700;
}
html[data-theme="dark"] .btn-logout-pill {
  color: #FCA5A5 !important;
}
.btn-logout-pill:hover {
  background: #DC2626;
  color: #FFFFFF !important;
}

/* Hero & Banners */
.sthac-hero-forest {
  background:
    linear-gradient(115deg, rgba(6, 32, 21, 0.95) 0%, rgba(11, 52, 35, 0.88) 55%, rgba(6, 32, 21, 0.78) 100%),
    url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #FFFFFF;
  border-bottom: 3px solid #D4AF37;
}
.saiga-page-header-dark {
  background: linear-gradient(135deg, #072619 0%, #0F3D29 100%);
  color: #FFFFFF;
  padding: 2.8rem 0;
  border-bottom: 3px solid #D4AF37;
}
.saiga-photo-banner {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 240px;
  background:
    linear-gradient(90deg, rgba(6, 32, 21, 0.9) 0%, rgba(6, 32, 21, 0.45) 65%, rgba(6, 32, 21, 0.2) 100%),
    url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  color: #FFFFFF;
}
.saiga-cta-banner {
  background: linear-gradient(135deg, #072619 0%, #0D3826 100%);
  color: #FFFFFF !important;
  border-radius: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.hero-emblem-card {
  background: var(--bg-card);
  border-radius: 1.35rem;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(212, 175, 55, 0.45);
  display: inline-block;
}
.hero-emblem-img {
  max-width: 240px;
  animation: floatSlow 5s ease-in-out infinite;
}

.sthac-eyebrow {
  display: inline-block;
  padding: 0.38rem 0.95rem;
  border-radius: 50rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #F2E0AC;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.badge-gold-outline {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 50rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  background: var(--bg-table-head);
  color: var(--text-main);
  border: 1px solid var(--border-main);
}

.countdown-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(242, 224, 172, 0.35);
  border-radius: 0.85rem;
  padding: 0.75rem 1.15rem;
  min-width: 82px;
  text-align: center;
}
.countdown-box .cd-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #F2E0AC;
  display: block;
  line-height: 1.1;
}
.countdown-box .cd-label {
  font-size: 0.64rem;
  letter-spacing: 1.1px;
  color: #CBD5E1;
  font-weight: 600;
}

.sthac-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-main);
  color: var(--text-muted);
}

main.flex-grow-1 { animation: pageFadeSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1); }
.admin-section { animation: pageFadeSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes pageFadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==================== SEMI-TRANSPARENT GLASS HERO & SEAMLESS FADE ==================== */
.sthac-hero-glass {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(9, 32, 22, 0.78) 0%,
      rgba(12, 40, 28, 0.62) 52%,
      rgba(180, 192, 184, 0.55) 84%,
      var(--bg-page) 100%
    ),
    url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1800&q=85') center 35%/cover no-repeat;
  padding: 4.5rem 0 5rem 0;
  border-bottom: none !important;
}

html[data-theme="dark"] .sthac-hero-glass {
  background:
    linear-gradient(180deg,
      rgba(3, 19, 12, 0.82) 0%,
      rgba(6, 28, 19, 0.72) 58%,
      rgba(3, 19, 12, 0.92) 88%,
      var(--bg-page) 100%
    ),
    url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1800&q=85') center 35%/cover no-repeat;
}

/* Eyebrow Pill Semi-Transparan */
.hero-glass-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-glass-eyebrow .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 8px #34D399;
}

/* Tombol Glass Semi-Transparan di Hero */
.btn-glass-pill {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 0.86rem;
  transition: var(--transition-smooth);
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Kotak Countdown Semi-Transparan */
.countdown-glass-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.9rem;
  padding: 0.8rem 1.25rem;
  min-width: 84px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.countdown-glass-box .cd-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #FFFFFF !important;
  display: block;
  line-height: 1.05;
}

.countdown-glass-box .cd-label {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 700;
  margin-top: 0.2rem;
  display: block;
}

/* Kartu Kanan Emblem Semi-Transparan (Frosted Card) */
.hero-emblem-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.35rem;
  padding: 2.2rem 2rem 1.75rem 2rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 24px 48px rgba(7, 38, 25, 0.18);
}

html[data-theme="dark"] .hero-emblem-glass-card {
  background: rgba(11, 41, 28, 0.72);
  border-color: rgba(217, 180, 92, 0.38);
}

.badge-green-soft {
  display: inline-block;
  padding: 0.28rem 0.78rem;
  border-radius: 50rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: #D1FAE5;
  color: #065F46 !important;
}

html[data-theme="dark"] .badge-green-soft {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7 !important;
}

.badge-amber-soft {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E !important;
}

.btn-soft-gray {
  background: var(--bg-table-head);
  color: var(--text-main) !important;
  border: 1px solid var(--border-main);
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}
.btn-soft-gray:hover {
  background: #072619;
  color: #F2E0AC !important;
}
/* ==================== FLOATING HERO EMBLEM (NO WHITE BOX, SEAMLESS BLEND) ==================== */
.hero-emblem-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2;
}

/* Efek Pendaran Cahaya Lembut (Ambient Aura) di Belakang Logo agar Menyatu dengan Layar */
.hero-emblem-showcase::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 180, 92, 0.28) 0%,
    rgba(7, 38, 25, 0.22) 48%,
    transparent 72%
  );
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-emblem-showcase:hover::before {
  transform: scale(1.12);
  opacity: 0.95;
}

/* Ukuran & Animasi Perisai Logo Melayang */
.hero-emblem-floating {
  width: 100%;
  max-width: 315px;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 28px rgba(217, 180, 92, 0.22));
  animation: floatSlow 5.5s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.hero-emblem-floating:hover {
  transform: translateY(-6px) scale(1.04);
  filter:
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 36px rgba(242, 224, 172, 0.38));
}

/* Caption Kapsul Transparan Tipis di Bawah Logo */
.hero-emblem-caption {
  margin-top: 1.15rem;
  padding: 0.45rem 1.2rem;
  border-radius: 50rem;
  background: rgba(7, 38, 25, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 224, 172, 0.32);
  color: #F2E0AC !important;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
  .hero-emblem-floating {
    max-width: 240px;
  }
  .hero-emblem-showcase::before {
    width: 260px;
    height: 260px;
  }
}
/* ==================== HERO ARCHER MIST PHOTO & INPUT FIX ==================== */
.sthac-hero-glass {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(5, 22, 15, 0.35) 0%,
      rgba(5, 22, 15, 0.12) 55%,
      rgba(225, 232, 227, 0.78) 88%,
      var(--bg-page) 100%
    ),
    linear-gradient(90deg,
      rgba(4, 20, 13, 0.88) 0%,
      rgba(6, 28, 19, 0.68) 38%,
      rgba(6, 28, 19, 0.15) 68%,
      rgba(4, 20, 13, 0.35) 100%
    ),
    url('/images/hero-beranda.jpg') 58% 38%/cover no-repeat !important;
  padding: 4.8rem 0 5.5rem 0;
  border-bottom: none !important;
}

html[data-theme="dark"] .sthac-hero-glass {
  background:
    linear-gradient(180deg,
      rgba(3, 19, 12, 0.42) 0%,
      rgba(3, 19, 12, 0.22) 55%,
      rgba(3, 19, 12, 0.88) 88%,
      var(--bg-page) 100%
    ),
    linear-gradient(90deg,
      rgba(3, 16, 10, 0.92) 0%,
      rgba(5, 24, 16, 0.72) 40%,
      rgba(5, 24, 16, 0.18) 68%,
      rgba(3, 16, 10, 0.48) 100%
    ),
    url('/images/hero-beranda.jpg') 58% 38%/cover no-repeat !important;
}

/* Penyesuaian posisi & ukuran logo agar pemanah berkuda di tengah tetap terekspos jelas */
.hero-emblem-floating {
  max-width: 255px !important;
}

/* Perbaikan kotak input & select di Panel Panitia agar angka tidak pernah terpotong */
.sthac-input,
select.sthac-input,
input.sthac-input {
  min-height: 44px !important;
  padding: 0.55rem 0.9rem !important;
  line-height: 1.4 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
}
/* ==================== SAIGA INTERACTIVE ADMIN PANEL STYLES ==================== */
.saiga-subnav-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.9rem;
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-card);
}

.saiga-subtab-btn {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid transparent;
  border-radius: 50rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.saiga-subtab-btn:hover {
  background: var(--bg-table-head);
  color: var(--text-main) !important;
}
.saiga-subtab-btn.active {
  background: #072619;
  color: #F2E0AC !important;
  font-weight: 700;
}
html[data-theme="dark"] .saiga-subtab-btn.active {
  background: linear-gradient(135deg, #E3C373 0%, #C69E43 100%);
  color: #03130C !important;
}

.saiga-breadcrumb {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.saiga-kpi-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 0.85rem;
  padding: 0.65rem 1rem;
  min-width: 110px;
  box-shadow: var(--shadow-card);
}
.saiga-kpi-mini .kpi-val {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-gold-num);
  line-height: 1.1;
}
.saiga-kpi-mini .kpi-lbl {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 8 Kartu KPI Ringkasan Gaya Saiga */
.saiga-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-top: 3px solid #072619;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}
html[data-theme="dark"] .saiga-stat-box {
  border-top-color: #D9B45C;
}
.saiga-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-hover);
}
.saiga-stat-box .stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.05;
}
.saiga-stat-box .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  background: var(--bg-table-head);
  color: var(--text-gold-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Avatar Initials Circle */
.saiga-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #072619;
  color: #F2E0AC !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Nomor Lingkaran Langkah Pengelolaan */
.saiga-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #072619;
  color: #F2E0AC !important;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .saiga-step-circle {
  background: #D9B45C;
  color: #03130C !important;
}

/* Filter Pill Kecil di Direktori */
.saiga-filter-chip {
  background: var(--bg-table-head);
  color: var(--text-muted) !important;
  border: 1px solid var(--border-main);
  border-radius: 50rem;
  padding: 0.28rem 0.78rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.saiga-filter-chip.active,
.saiga-filter-chip:hover {
  background: #072619;
  color: #F2E0AC !important;
  border-color: #072619;
}
html[data-theme="dark"] .saiga-filter-chip.active {
  background: #D9B45C;
  color: #03130C !important;
}

/* Skema Visual Lintasan 90m-150m */
.saiga-track-diagram {
  position: relative;
  background: var(--bg-table-head);
  border: 1px dashed var(--border-card-hover);
  border-radius: 0.9rem;
  padding: 1.5rem 1.25rem;
}
.saiga-track-line {
  height: 4px;
  background: linear-gradient(90deg, #10B981 0%, #D9B45C 50%, #EF4444 100%);
  border-radius: 4px;
  position: relative;
  margin: 1.4rem 0;
}
.saiga-track-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #072619;
  border: 2px solid #D9B45C;
  color: #F2E0AC !important;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== SCROLL REVEAL, PARALLAX & MICRO-MOTION (HIGH IMPACT) ==================== */
html {
  scroll-behavior: smooth;
}

/* Progress Bar Emas Lebih Tebal & Bercahaya di Atas Layar */
#sthac-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #10B981 0%, #D9B45C 50%, #F2E0AC 100%);
  z-index: 99999;
  transition: width 0.06s linear;
  box-shadow: 0 0 16px rgba(217, 180, 92, 0.85);
}

/* Efek Navbar Menyusut & Bayangan Tebal Saat Di-scroll */
.navbar-sthac {
  transition: padding 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease !important;
}
.navbar-sthac.navbar-scrolled {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  box-shadow: 0 16px 40px rgba(7, 38, 25, 0.22) !important;
}

/* Base Scroll-Reveal: Jarak 75px + Scale 0.88 + Blur + Spring Bounce */
.reveal-on-scroll {
  opacity: 0 !important;
  filter: blur(8px);
  transform: translate3d(0, 75px, 0) scale(0.88);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
  will-change: opacity, transform, filter;
}

/* Variasi Arah Masuk: Kiri, Kanan, dan Zoom Banner */
.reveal-on-scroll.reveal-from-left {
  transform: translate3d(-90px, 35px, 0) rotate(-2.5deg) scale(0.9);
}

.reveal-on-scroll.reveal-from-right {
  transform: translate3d(90px, 35px, 0) rotate(2.5deg) scale(0.9);
}

.reveal-on-scroll.reveal-zoom-banner {
  transform: translate3d(0, 60px, 0) scale(0.84);
}

.reveal-on-scroll.reveal-header {
  transform: translate3d(-45px, 0, 0);
}

/* State Ketika Elemen Masuk ke Layar (Sangat Jelas & Tajam) */
.reveal-on-scroll.is-visible {
  opacity: 1 !important;
  filter: blur(0px);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

/* Animasi Masuk Hero Beranda yang Dramatis */
.sthac-hero-glass {
  overflow: hidden;
  transition: background-size 0.15s ease-out;
}
.sthac-hero-glass .hero-glass-eyebrow {
  animation: heroDramaticIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}
.sthac-hero-glass h1 {
  animation: heroDramaticIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.sthac-hero-glass p {
  animation: heroDramaticIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}
.sthac-hero-glass .d-flex {
  animation: heroDramaticIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}
.sthac-hero-glass .hero-emblem-showcase {
  animation: heroEmblemEntrance 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes heroDramaticIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-50px, 35px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroEmblemEntrance {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(70px, 40px, 0) scale(0.72) rotate(8deg);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

/* Efek Spotlight Cahaya Emas Mengikuti Kursor di Dalam Kartu */
main .sthac-card {
  position: relative;
  overflow: hidden;
}
main .sthac-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(217, 180, 92, 0.18),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
main .sthac-card:hover::before {
  opacity: 1;
}
main .sthac-card > * {
  position: relative;
  z-index: 1;
}

main .sthac-card:hover {
  box-shadow: 0 24px 48px -12px rgba(7, 38, 25, 0.22), 0 0 24px rgba(217, 180, 92, 0.28) !important;
  border-color: #D9B45C !important;
}

html[data-theme="dark"] main .sthac-card:hover {
  box-shadow: 0 26px 52px -12px rgba(0, 0, 0, 0.9), 0 0 28px rgba(217, 180, 92, 0.22) !important;
}

/* Pertahankan kestabilan kartu di dalam Panel Panitia */
.admin-navbar-card:hover,
#admin-dashboard-panel .sthac-card:hover {
  transform: none !important;
}

/* Efek Shimmer & Pulse pada Tombol Emas */
.btn-gold-pill {
  position: relative;
  overflow: hidden;
}
.btn-gold-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transform: skewX(-22deg);
  transition: left 0.6s ease;
}
.btn-gold-pill:hover::after {
  left: 140%;
}
.btn-gold-pill:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 12px 26px rgba(217, 180, 92, 0.5) !important;
}

/* Kotak Countdown Melompat Halus Saat Hover */
.countdown-glass-box {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background-color 0.3s ease !important;
}
.countdown-glass-box:hover {
  transform: translateY(-8px) scale(1.08) !important;
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #F2E0AC !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35) !important;
}
/* ==================== SINGLE-LINE SYMMETRIC ADMIN NAVBAR ==================== */
.admin-navbar-card {
  padding: 0.7rem 1.15rem !important;
  border-radius: 1rem !important;
}

.admin-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-main);
}

.admin-navbar-card .btn {
  white-space: nowrap !important;
  font-size: 0.81rem !important;
  padding: 0.42rem 0.9rem !important;
  line-height: 1.25 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .admin-navbar-inner {
    flex-wrap: wrap;
  }
  .admin-nav-center {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-main);
  }
  .admin-nav-right {
    border-left: none;
    padding-left: 0;
    margin-left: auto;
  }
}


/* ==================== DESAIN LINTASAN SHOWCASE (SEAMLESS & UNIFIED) ==================== */
#desain-lintasan,
#sponsor-mitra {
  opacity: 1 !important;
  visibility: visible !important;
}

#desain-lintasan .track-section-subtitle {
  color: #52635A !important;
  font-size: 0.92rem;
}

/* --- MODE TERANG (DEFAULT): KARTU PUTIH BERSIH & TEKS KONTRAS --- */
.sthac-track-showcase-card {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  visibility: visible !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(7, 38, 25, 0.12) !important;
  border-radius: 1.25rem !important;
  padding: 1.25rem !important;
  box-shadow: 0 12px 32px -10px rgba(7, 38, 25, 0.08) !important;
}

.sthac-track-blueprint-pane {
  background-color: #F7F5F0;
  background-image:
    linear-gradient(to right, rgba(7, 38, 25, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 38, 25, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 0.95rem;
  border: 1px solid rgba(7, 38, 25, 0.1);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.sthac-track-blueprint-pane img {
  width: 100%;
  max-width: 440px;
  max-height: 410px;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0.35rem;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sthac-track-blueprint-pane img:hover {
  transform: scale(1.03);
}

.sthac-track-info-pane {
  background: transparent !important;
  color: #072619 !important;
  padding: 1.4rem 1.5rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sthac-track-info-pane .track-arena-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #072619 !important;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.sthac-track-info-pane .track-arena-desc {
  color: #4A5D52 !important;
  line-height: 1.65;
}

.badge-track-ihaa {
  background: rgba(217, 180, 92, 0.18);
  color: #8C6514 !important;
  border: 1px solid rgba(217, 180, 92, 0.55);
  border-radius: 50rem;
  padding: 0.28rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.badge-track-circle {
  background: rgba(16, 185, 129, 0.12);
  color: #0D7A52 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50rem;
  padding: 0.28rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.sthac-track-specs-box {
  background: #F6F8F6;
  border: 1px solid rgba(7, 38, 25, 0.1);
  border-radius: 0.9rem;
  padding: 1.1rem 1.35rem;
}

.sthac-track-specs-box .spec-col-divider {
  border-right: 1px solid rgba(7, 38, 25, 0.12) !important;
}

.sthac-track-specs-box .spec-label,
.track-used-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.85px;
  color: #9A721C !important;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.sthac-track-specs-box .spec-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #072619 !important;
}

.track-used-value {
  color: #072619 !important;
  font-size: 0.98rem;
  font-weight: 700;
}

.btn-track-action {
  background: #F4F7F5;
  color: #072619 !important;
  border: 1px solid rgba(7, 38, 25, 0.18);
  border-radius: 50rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.btn-track-action i {
  color: #B78727 !important;
}

.btn-track-action:hover {
  background: linear-gradient(135deg, #E3C373 0%, #C69E43 100%);
  color: #04150E !important;
  border-color: #E3C373;
  transform: translateY(-2px);
}

.btn-track-action:hover i {
  color: #04150E !important;
}

/* ==================== KOTAK 6 FOTO SPONSOR & MITRA (MODE TERANG PUTIH RAPI) ==================== */
.sthac-sponsor-showcase {
  background: #FFFFFF !important;
  border: 1px solid rgba(7, 38, 25, 0.12) !important;
  border-radius: 1.35rem !important;
  padding: 2.5rem 2rem !important;
  box-shadow: 0 12px 32px -10px rgba(7, 38, 25, 0.08) !important;
}

.sthac-sponsor-showcase .sponsor-main-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #072619 !important;
  margin-bottom: 0.35rem;
}

.sthac-sponsor-showcase .sponsor-main-subtitle {
  color: #52635A !important;
  font-size: 0.9rem;
}

.sthac-sponsor-slot {
  position: relative;
  height: 155px;
  border-radius: 1rem;
  background: #F7F9F7;
  border: 1px dashed rgba(7, 38, 25, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.85rem;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.sthac-sponsor-slot:hover {
  transform: translateY(-5px) scale(1.02);
  border-style: solid;
  border-color: #D9B45C;
  background: #FFFFFF;
  box-shadow: 0 14px 28px rgba(7, 38, 25, 0.1);
}

.sthac-sponsor-slot.has-photo {
  background: #FFFFFF;
  border: 1px solid rgba(7, 38, 25, 0.14);
  padding: 0.6rem;
}

.sthac-sponsor-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.55rem;
  transition: transform 0.35s ease;
}

.sthac-sponsor-slot:hover img {
  transform: scale(1.05);
}

.sthac-sponsor-slot .sponsor-slot-name {
  color: #072619 !important;
  font-size: 0.82rem;
  font-weight: 700;
}

.sthac-sponsor-slot .sponsor-slot-tier {
  color: #9A721C !important;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sthac-sponsor-placeholder-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(217, 180, 92, 0.18);
  border: 1px dashed rgba(154, 114, 28, 0.55);
  color: #8C6514 !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.sthac-sponsor-slot .sponsor-caption-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(7, 38, 25, 0.92) 0%, rgba(7, 38, 25, 0.75) 75%, transparent 100%);
  color: #F2E0AC !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 0.5rem 0.4rem 0.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sthac-sponsor-slot:hover .sponsor-caption-overlay {
  opacity: 1;
}

/* ==================== PENYESUAIAN OTOMATIS SAAT MODE GELAP (DARK MODE) ==================== */
html[data-theme="dark"] #desain-lintasan .track-section-subtitle {
  color: #B4C6BC !important;
}

html[data-theme="dark"] .sthac-track-showcase-card,
html[data-theme="dark"] .sthac-sponsor-showcase {
  background: linear-gradient(155deg, #072317 0%, #04150E 100%) !important;
  border-color: rgba(217, 180, 92, 0.35) !important;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .sthac-track-info-pane .track-arena-title,
html[data-theme="dark"] .sthac-track-specs-box .spec-value,
html[data-theme="dark"] .track-used-value,
html[data-theme="dark"] .sthac-sponsor-showcase .sponsor-main-title,
html[data-theme="dark"] .sthac-sponsor-slot .sponsor-slot-name {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .sthac-track-info-pane .track-arena-desc,
html[data-theme="dark"] .sthac-sponsor-showcase .sponsor-main-subtitle {
  color: #B4C6BC !important;
}

html[data-theme="dark"] .sthac-track-specs-box {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(217, 180, 92, 0.28);
}

html[data-theme="dark"] .sthac-track-specs-box .spec-col-divider {
  border-right-color: rgba(217, 180, 92, 0.2) !important;
}

html[data-theme="dark"] .sthac-track-specs-box .spec-label,
html[data-theme="dark"] .track-used-label,
html[data-theme="dark"] .sthac-sponsor-slot .sponsor-slot-tier,
html[data-theme="dark"] .badge-track-ihaa,
html[data-theme="dark"] .sthac-sponsor-placeholder-num {
  color: #E3C373 !important;
}

html[data-theme="dark"] .badge-track-circle {
  background: rgba(56, 189, 248, 0.14);
  color: #7DD3FC !important;
  border-color: rgba(56, 189, 248, 0.4);
}

html[data-theme="dark"] .btn-track-action {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF !important;
  border-color: rgba(217, 180, 92, 0.38);
}

html[data-theme="dark"] .btn-track-action i {
  color: #E3C373 !important;
}

html[data-theme="dark"] .sthac-sponsor-slot {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(217, 180, 92, 0.28);
}

html[data-theme="dark"] .sthac-sponsor-slot.has-photo {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 991.98px) {
  .sthac-track-info-pane {
    padding: 1.5rem 0.75rem 0.75rem 0.75rem;
  }
}


/* ==================== DYNAMIC ACTIVE SPONSOR CARDS (AUTO-CENTER) ==================== */
.sthac-sponsor-slot.active-sponsor-card {
  height: auto !important;
  min-height: 185px;
  background: #FFFFFF !important;
  border: 1px solid rgba(7, 38, 25, 0.12) !important;
  border-radius: 1.1rem !important;
  padding: 1rem 1rem 0.9rem 1rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px -8px rgba(7, 38, 25, 0.08);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sthac-sponsor-slot.active-sponsor-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #D9B45C !important;
  box-shadow: 0 18px 36px -10px rgba(7, 38, 25, 0.16);
}

.sthac-sponsor-slot.active-sponsor-card .sponsor-img-box {
  width: 100%;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.7rem;
  background: #F8FAF9;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Jika hanya 1 atau 2 sponsor, buat tampilan gambar lebih lega & prestisius */
.sthac-sponsor-slot.active-sponsor-card.single-featured .sponsor-img-box {
  height: 165px;
  padding: 0.65rem;
}

.sthac-sponsor-slot.active-sponsor-card .sponsor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.sthac-sponsor-slot.active-sponsor-card .sponsor-meta-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #072619 !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.sthac-sponsor-slot.active-sponsor-card .sponsor-meta-tier {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #9A721C !important;
  background: rgba(217, 180, 92, 0.16);
  border: 1px solid rgba(217, 180, 92, 0.4);
  padding: 0.18rem 0.65rem;
  border-radius: 50rem;
}

/* Penyesuaian Mode Gelap untuk Kartu Sponsor Aktif */
html[data-theme="dark"] .sthac-sponsor-slot.active-sponsor-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(217, 180, 92, 0.3) !important;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .sthac-sponsor-slot.active-sponsor-card .sponsor-img-box {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .sthac-sponsor-slot.active-sponsor-card .sponsor-meta-title {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .sthac-sponsor-slot.active-sponsor-card .sponsor-meta-tier {
  color: #F2D078 !important;
  background: rgba(217, 180, 92, 0.18);
  border-color: rgba(217, 180, 92, 0.45);
}
