:root {
  --coral: #FF6B00;
  --rust: #CC4400;
  --peach: #E5E5E5;
  --ember: #B33800;
  --apricot: #FF8533;
  --amber: #FF7A00;
  --lilac: #FFFFFF;
  --blush: #FFFFFF;
  --rose: #E5E5E5;
  --dark: #0a0a0a;
  --surface: #121212;
  --card: #181818;
  --border: rgba(255, 107, 0, 0.2);

  /* Nordelia Theme Variables (Extracted from Official Event Banner) */
  --nordelia-blue: #38BDF8;
  --nordelia-cyan: #0EA5E9;
  --nordelia-sky-deep: #0284C7;
  --nordelia-ice: #E0F2FE;
  --nordelia-ice-soft: #BAE6FD;
  /* Soft Gold & Celestial Aurora Theme (Replaced harsh orange) */
  --nordelia-gold: #F5D061;
  --nordelia-gold-soft: #FDE68A;
  --nordelia-gold-dark: #D4AF37;
  --nordelia-champagne: #FBEFCD;
  --nordelia-amber-soft: #F3C77C;
  --nordelia-blue: #38BDF8;
  --nordelia-cyan: #0EA5E9;
  --nordelia-sky-soft: #BAE6FD;
  --nordelia-ice: #F0F9FF;
  --nordelia-pink-soft: #FDA4AF;
  --nordelia-dark: #0B1120;
  --nordelia-surface: rgba(15, 23, 42, 0.88);
  --nordelia-card: rgba(24, 34, 60, 0.75);
  --nordelia-border-gold: rgba(245, 208, 97, 0.32);
  --nordelia-border-cyan: rgba(56, 189, 248, 0.28);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: #0a0a0a;
  color: #ffffff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: #CC4400;
  border-radius: 9999px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

.text-gradient-orvelion {
  background: linear-gradient(135deg, #FFFFFF 0%, #FF8533 45%, #CC4400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 0%, #FF8533 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(24, 24, 24, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

#site-header {
  transition: all 0.3s ease;
}
#site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

[data-tab-target].is-active,
[data-category].is-active {
  background-image: linear-gradient(to right, #CC4400, #FF6B00);
  color: #fff;
  border-color: transparent;
}

[data-cabinet].is-selected {
  background-image: linear-gradient(to right, #1f140e, #0a0a0a);
  border-color: #FF6B00;
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.25);
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.spin-slow {
  animation: spin 12s linear infinite;
}

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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --- Nordelia Banner & Theme Utility Classes --- */
.text-gradient-nordelia {
  background: linear-gradient(135deg, #E0F2FE 0%, #38BDF8 35%, #FF7A00 70%, #FB7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-nordelia-sky {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 45%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-nordelia-warm {
  background: linear-gradient(135deg, #FFFBEB 0%, #FBBF24 35%, #FF7A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nordelia-glass-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(7, 13, 26, 0.5);
}

.nordelia-banner-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2), 0 0 40px rgba(255, 122, 0, 0.15);
}

/* Nordelia Tab & Selection Overrides */
.nordelia-theme [data-category].is-active,
.nordelia-theme [data-tab-target].is-active {
  background-image: linear-gradient(to right, #0284C7, #38BDF8, #FF7A00) !important;
  color: #fff !important;
  border-color: transparent !important;
}


/* --- LUXURY SOFT GOLD & CELESTIAL DECORATIONS --- */
.bg-nordelia-aurora {
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(245, 208, 97, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(253, 230, 138, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 75% 85%, rgba(253, 164, 175, 0.1) 0%, transparent 55%),
              #080E1A;
}

.text-gradient-nordelia-gold {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDE68A 35%, #F5D061 70%, #E5B869 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-nordelia-aurora {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 30%, #FDE68A 70%, #F5D061 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-nordelia-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #F5D061 50%, #E5B869 100%);
  color: #0B1120;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(245, 208, 97, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-nordelia-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 15px 35px rgba(245, 208, 97, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.card-nordelia-decorated {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(22, 34, 62, 0.85) 100%);
  border: 1px solid rgba(245, 208, 97, 0.28);
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px rgba(5, 10, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-nordelia-decorated:hover {
  border-color: rgba(245, 208, 97, 0.7);
  box-shadow: 0 20px 45px rgba(245, 208, 97, 0.2), 0 0 30px rgba(56, 189, 248, 0.15);
  transform: translateY(-4px);
}
.card-nordelia-decorated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #38BDF8 30%, #F5D061 70%, transparent 100%);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}
.card-nordelia-decorated:hover::before {
  opacity: 1;
}

/* ==================================================================
   PJAX: transisi fade-out → fade-in murni pada <main> saja.
   Total ~300 ms (120 ms memudar + 180 ms muncul) — cepat tapi halus.
   Header & elemen tetap tidak ikut memudar (anti kelap-kelip);
   pergantian DOM dan lompatan scroll terjadi saat layar sedang gelap.
   Keadaan diam halaman tidak berubah sama sekali.
   prefers-reduced-motion dihormati penuh (pergantian instan).
   ================================================================== */

/* Tahap 1 — konten lama memudar cepat */
main.orv-pjax-exit {
  opacity: 0;
  transition: opacity 120ms ease-out;
}

/* Tahap 2 — konten baru muncul dari transparan penuh */
@keyframes orv-pjax-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
main.orv-pjax-enter {
  animation: orv-pjax-enter 180ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  main.orv-pjax-exit {
    transition: none;
  }
  main.orv-pjax-enter {
    animation: none !important;
  }
}

/* Progress bar navigasi tipis (2px) — hanya muncul bila fetch > 180 ms */
.orv-pjax-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--coral, #FF6B00);
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.55);
  z-index: 2147483000;
  opacity: 0;
  transition: width 260ms ease-out, opacity 160ms linear;
  pointer-events: none;
}
.orv-pjax-progress.orv-pjax-progress-active {
  opacity: 1;
  width: 72%;
}
.orv-pjax-progress.orv-pjax-progress-done {
  width: 100% !important;
  opacity: 0;
  transition: width 90ms ease-out, opacity 260ms linear 60ms;
}
