/* ============================================================
   PT. GIDION KREATIF NUSANTARA - Main Stylesheet
   Dark Premium Gold Theme
   ============================================================ */

/* ---- Google Fonts & Variables ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #c9a227;
  --primary-light: #e8c55a;
  --primary-dark: #a07d1a;
  --primary-glow: rgba(201, 162, 39, 0.25);
  --accent: #d4af37;

  --bg-dark: #070b14;
  --bg-card: #0e1426;
  --bg-card-2: #121929;
  --bg-surface: #141d2e;
  --border: rgba(201, 162, 39, 0.15);
  --border-subtle: rgba(255,255,255,0.06);

  --text-primary: #f0f4ff;
  --text-secondary: #9aabc2;
  --text-muted: #5a6a80;

  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --navbar-h: 70px;
  --container-max: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 30px rgba(201, 162, 39, 0.2);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Footer */
  --footer-bg: #06090f;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

a:hover { color: var(--primary-light); }

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

::selection { background: var(--primary); color: #000; }

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.98);
  box-shadow: 0 2px 30px rgba(201, 162, 39, 0.1);
}

.navbar-spacer { height: var(--navbar-h); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
  gap: 1rem;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--text-secondary);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(201, 162, 39, 0.1);
}

.nav-link i { font-size: 0.75rem; opacity: 0.7; }

.nav-badge {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-badge.pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.95); }
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.btn-icon-only i {
  margin: 0;
  font-size: 0.95rem;
}

.btn-icon-only span {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 0;
  animation: slideDown 0.3s ease;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
  color: var(--primary);
  background: rgba(201, 162, 39, 0.05);
}

.mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.05rem; border-radius: 50px; }

.btn-gold {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-card-2);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-dark:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ============================================================
   SECTION & TYPOGRAPHY
   ============================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.card-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   HERO SECTION — full-bleed
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--navbar-h) + 3rem) 0 4.5rem;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,20,0.92) 0%, rgba(7,11,20,0.72) 48%, rgba(7,11,20,0.35) 100%),
    linear-gradient(180deg, rgba(7,11,20,0.55) 0%, transparent 35%, rgba(7,11,20,0.88) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 720px;
  padding: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-light);
  line-height: 1.2;
  animation: fadeInDown 0.6s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.15rem;
  animation: fadeInDown 0.6s ease 0.05s both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .gold-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary), #f0d878);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(240, 244, 255, 0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
    min-height: calc(100vh - 0px);
    padding: calc(var(--navbar-h) + 2rem) 0 3rem;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7,11,20,0.55) 0%, rgba(7,11,20,0.78) 45%, rgba(7,11,20,0.94) 100%);
  }
  .hero-inner { max-width: 100%; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ============================================================
   AJANG CARDS
   ============================================================ */
.ajang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.ajang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.ajang-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201, 162, 39, 0.1);
}

.ajang-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ajang-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.ajang-card:hover .ajang-card-img img { transform: scale(1.03); }

.ajang-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-aktif { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.badge-selesai { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }
.badge-nonaktif { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.ajang-card-body { padding: 1.5rem; }

.ajang-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ajang-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ajang-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ajang-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.ajang-meta-item i { color: var(--primary); font-size: 0.72rem; margin-top: 0.15rem; flex-shrink: 0; }

.ajang-meta-vote {
  flex: 1 1 100%;
  color: var(--primary-light);
}

.ajang-vote-schedule {
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.ajang-vote-schedule-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.ajang-vote-schedule-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ajang-vote-schedule-row + .ajang-vote-schedule-row {
  margin-top: 0.35rem;
}

.ajang-vote-schedule-row .label {
  font-weight: 700;
  color: var(--text-muted);
}

.ajang-vote-schedule-row .value {
  font-weight: 650;
  color: var(--text-primary);
}

.ajang-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.ajang-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ajang-price strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   PESERTA CARDS
   ============================================================ */
.peserta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.peserta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.peserta-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.peserta-card-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #000;
}

.peserta-card-rank.rank-1 { background: #ffd700; }
.peserta-card-rank.rank-2 { background: #c0c0c0; }
.peserta-card-rank.rank-3 { background: #cd7f32; }

.peserta-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.peserta-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.peserta-card:hover .peserta-img-wrap img { transform: scale(1.05); }

.peserta-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(7, 11, 20, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.peserta-card:hover .peserta-img-overlay { opacity: 1; }

.peserta-card-body { padding: 1rem 1rem 1.25rem; }

.peserta-ajang-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.peserta-ajang-badge i {
  margin-top: 0.1rem;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--primary);
}

.leaderboard-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.leaderboard-ajang-block + .leaderboard-ajang-block {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.leaderboard-ajang-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.leaderboard-ajang-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.leaderboard-ajang-title i { color: var(--primary); }

.leaderboard-ajang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.leaderboard-ajang-link:hover { color: var(--primary-light); }

.peserta-nomor {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(201, 162, 39, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.peserta-nama {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.peserta-asal {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.peserta-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.peserta-vote i { font-size: 0.8rem; }

/* Vote Progress Bar */
.vote-progress {
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.vote-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ============================================================
   BERITA CARDS
   ============================================================ */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.berita-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.berita-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.berita-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.berita-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.berita-card:hover .berita-card-img img { transform: scale(1.05); }

.berita-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.berita-kategori {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50px;
}

.berita-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  transition: var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-card:hover .berita-card-title { color: var(--primary); }

.berita-card-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.berita-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.berita-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.berita-read-more:hover { gap: 0.6rem; }

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(201, 162, 39, 0.03); }

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0 auto 0.75rem;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cta-band {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.16), transparent 60%),
    var(--bg-card);
  border-top: 1px solid rgba(201,162,39,0.22);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.cta-band-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.about-image-accent {
  position: absolute;
  width: 200px;
  bottom: -2rem;
  right: -2rem;
  border-radius: var(--radius-lg);
  border: 4px solid var(--bg-dark);
  box-shadow: var(--shadow-md);
}

.about-pattern {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--border);
  background: var(--bg-card-2);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.about-feature-text h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.about-feature-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   VOTING SECTION
   ============================================================ */
.voting-banner {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.voting-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -50px;
}

.voting-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.voting-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}

.voting-step::after {
  content: '→';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.voting-step:last-child::after { display: none; }

.voting-step:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-3px);
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Voting Form */
.voting-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

select.form-control { cursor: pointer; }

.form-control-file {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-control-file:hover { border-color: var(--primary); }

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Vote Counter */
.vote-counter-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vote-counter-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.vote-counter-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.vote-counter-input {
  width: 80px;
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
}

.vote-summary-box {
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.vote-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.vote-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  margin-top: 0.5rem;
}

/* Payment Box */
.payment-box {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.payment-bank-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(201, 162, 39, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.payment-bank-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  font-weight: 800;
  flex-shrink: 0;
}

.payment-bank-detail h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-bank-detail p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.rekening-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
              var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-hero-title span {
  color: var(--primary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-secondary { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-gold { background: rgba(201, 162, 39, 0.15); color: var(--primary); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInDown 0.3s ease;
}

.flash-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #4ade80; }
.flash-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.flash-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.flash-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fcd34d; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  cursor: pointer;
}

.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #000; border-color: var(--primary); }
.page-link.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  position: relative;
  margin-top: auto;
}

.footer-wave {
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg { width: 100%; height: 80px; }

.footer-main { padding: 4rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.footer-brand h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.footer-tagline {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover { transform: translateY(-3px); }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border-color: transparent; }
.social-btn.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-btn.youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.social-btn.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }

.footer-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  space-y: 0.5rem;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--primary); }

.footer-news { list-style: none; }

.footer-news li { margin-bottom: 0.9rem; }

.footer-news a {
  display: block;
  transition: var(--transition-fast);
}

.footer-news a:hover .news-title { color: var(--primary); }

.news-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

.news-title {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: block;
  transition: var(--transition-fast);
}

.footer-contact { list-style: none; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 0.85rem;
  width: 16px;
  flex-shrink: 0;
}

.footer-contact a, .footer-contact span {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: var(--transition-fast);
}

.footer-contact a:hover { color: var(--primary); }

.footer-newsletter p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-size: 0.83rem;
  outline: none;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 0.6rem 1rem;
  background: var(--primary);
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.newsletter-form button:hover { background: var(--primary-light); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

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

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

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

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

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .voting-steps { grid-template-columns: repeat(2, 1fr); }
  .voting-step::after { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border-subtle); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .voting-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }
  .nav-links { display: none !important; }
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .peserta-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: 1fr; }
  .hero-float-card { display: none; }
  .voting-banner { padding: 2rem 1.5rem; }
}

/* ============================================================
   BOTTOM NAV — Android / Tablet (maks 5 kolom, fixed bawah)
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 1100;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 12, 16, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  /* cegah wrap / pecah layout */
  flex-wrap: nowrap;
  overflow: hidden;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.1rem;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
}
.bottom-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item i {
  font-size: 1.15rem;
  line-height: 1;
}

.bottom-nav-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.85rem;
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  line-height: 1.2;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
  background: rgba(201, 162, 39, 0.1);
}

.bottom-nav-item.active {
  transform: translateY(-1px);
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .bottom-nav-item {
  color: #64748b;
}

[data-theme="light"] .bottom-nav-item.active,
[data-theme="light"] .bottom-nav-item:hover {
  color: var(--primary-dark);
  background: rgba(201, 162, 39, 0.12);
}

.bottom-nav-admin {
  color: var(--primary);
}

.bottom-nav-admin i {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--primary);
  color: #1a1208;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.bottom-nav-admin.active,
.bottom-nav-admin:hover {
  color: var(--primary-light);
  background: rgba(201, 162, 39, 0.14);
}

/* Tablet & Android: sembunyikan menu desktop, pakai bottom nav */
@media (max-width: 1100px) {
  .bottom-nav { display: grid !important; }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .back-to-top {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  .nav-links {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  /* Dashboard Admin tetap di header (sebelah mode terang/gelap) */
  .nav-admin-top { display: inline-flex !important; }
  .navbar-inner { flex-wrap: nowrap !important; }
  .navbar-actions { gap: 0.4rem; }
}

@media (max-width: 400px) {
  .bottom-nav-item {
    font-size: 0.55rem;
    gap: 0.15rem;
  }
  .bottom-nav-item i {
    font-size: 1.05rem;
  }
}

@media (min-width: 1101px) {
  .bottom-nav,
  .bottom-more-sheet,
  .bottom-more-backdrop { display: none !important; }
}

/* Sheet "Lainnya" */
.bottom-more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.55);
}
.bottom-more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  max-height: 70vh;
  overflow: auto;
  padding: 0.65rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: var(--bg-card, #0e1426);
  border-top: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 -12px 36px rgba(0,0,0,0.4);
  animation: bottomMoreIn 0.22s ease;
}
@keyframes bottomMoreIn {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.bottom-more-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148,163,184,0.45);
  margin: 0.15rem auto 0.85rem;
}
.bottom-more-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.55rem;
}
.bottom-more-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.bottom-more-link i {
  width: 1.5rem;
  text-align: center;
  color: var(--primary);
}
.bottom-more-link:hover,
.bottom-more-link.active {
  background: rgba(201,162,39,0.12);
  border-color: rgba(201,162,39,0.28);
}
body.bottom-more-open { overflow: hidden; }

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .peserta-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ajang-grid { grid-template-columns: 1fr; }
  .berita-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-2: #f1f5f9;
  --bg-surface: #e2e8f0;
  --border: rgba(201, 162, 39, 0.4);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-float-card {
  background: rgba(255, 255, 255, 0.92);
}

/* Footer tetap gelap: kunci teks terang agar tetap terbaca */
[data-theme="light"] .footer {
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-card: #1e293b;
  --bg-surface: #0f172a;
  --border: rgba(201, 162, 39, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .footer .newsletter-form input {
  color: #f8fafc;
  background: #0f172a;
}

[data-theme="light"] .footer .social-btn {
  background: #1e293b;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .brand-name {
  background: none;
  -webkit-text-fill-color: var(--primary-dark);
  color: var(--primary-dark);
}

[data-theme="light"] .section-title span {
  background: none;
  -webkit-text-fill-color: var(--primary-dark);
  color: var(--primary-dark);
}


/* ============================================================
   CARD SLIDER (Ajang / Tiket)
   ============================================================ */
.section-tight { padding-top: 1rem; padding-bottom: 2.75rem; }
.page-hero.pd-hero {
  padding: 1.35rem 0 0.85rem !important;
  min-height: 0 !important;
}
.page-hero.pd-hero .page-hero-title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.page-hero.pd-hero .page-hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 36rem;
}
.card-slider-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
}
.card-slider-link:hover { color: var(--primary-light); }

.card-slider {
  position: relative;
  padding: 0 0.25rem 0.5rem;
}
.card-slider-viewport {
  overflow: hidden;
  border-radius: 4px;
}
.card-slider-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.card-slider-track::-webkit-scrollbar { display: none; }

.slide-card {
  flex: 0 0 min(100%, 340px);
  scroll-snap-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.slide-card:hover {
  border-color: rgba(201,162,39,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}
@media (min-width: 768px) {
  .slide-card { flex-basis: calc(50% - 0.55rem); }
}
@media (min-width: 1100px) {
  .slide-card { flex-basis: calc(33.333% - 0.75rem); }
}

.slide-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0f1a;
  overflow: hidden;
}
.slide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
.slide-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}
.slide-card-badge .ajang-status-badge {
  position: static;
  display: inline-flex;
}
.slide-card-badge .badge {
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.slide-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.slide-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-card-meta {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.slide-card-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.35;
}
.slide-card-meta i {
  color: var(--primary);
  font-size: 0.72rem;
  margin-top: 0.2rem;
  width: 0.9rem;
  text-align: center;
  flex-shrink: 0;
}
.slide-card-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.slide-card-foot-end { justify-content: flex-end; }
.slide-card-price span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.slide-card-price strong {
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 700;
}
.slide-card-locked {
  opacity: 0.85;
  cursor: not-allowed;
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

.card-slider-btn {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.35);
  background: rgba(14,20,38,0.92);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: background 0.15s, transform 0.15s;
}
.card-slider-btn:hover {
  background: rgba(201,162,39,0.18);
  transform: scale(1.05);
}
.card-slider-btn.prev { left: -0.35rem; }
.card-slider-btn.next { right: -0.35rem; }
.card-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.card-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.card-slider-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.card-slider-dots button.is-active {
  width: 1.15rem;
  background: var(--primary);
}
@media (max-width: 640px) {
  .card-slider-btn { display: none; }
  .slide-card { flex-basis: 86%; }
}
