/* ==========================================================================
   HERITAGE DESIGN LAYER — Akademi Santri Samudera Pasai 2026
   Lapisan visual "khazanah keislaman": emerald Samudera Pasai, emas ornament,
   geometry girih, dan tipografi klasik. Dimuat setelah app.css (Tailwind).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Arabic calligraphy faces (self-hosted, OFL — Amiri)
   CSP memblokir CDN font, jadi berkas disajikan dari /assets/fonts/.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Amiri";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/amiri-arabic-400.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF,
        U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Amiri";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/amiri-arabic-700.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF,
        U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --h-primary: #0b3b2e;
    --h-primary-dark: #06231b;
    --h-primary-soft: #e7f0ea;
    --h-accent: #c9a227;
    --h-accent-bright: #e3c565;
    --h-accent-soft: #f7edd0;
    --h-ink: #0e211b;
    --h-muted: #5b6b64;
    --h-bg: #f7f4ea;
    --h-surface: #fffdf7;
    --h-surface-alt: #f2eddd;
    --h-border: #e4dcc7;
    --h-border-strong: #d6c9a6;
    --h-danger: #9f2231;
    --h-radius-sm: 0.75rem;
    --h-radius: 1.1rem;
    --h-radius-lg: 1.6rem;
    --h-shadow-sm: 0 1px 2px rgba(14, 33, 27, 0.05), 0 8px 20px -16px rgba(14, 33, 27, 0.35);
    --h-shadow: 0 2px 6px rgba(14, 33, 27, 0.05), 0 22px 45px -28px rgba(14, 33, 27, 0.45);
    --h-shadow-lg: 0 30px 70px -35px rgba(6, 35, 27, 0.55);
    --h-ring: 0 0 0 3px rgba(201, 162, 39, 0.22);
    --h-font-body: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --h-font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", "Times New Roman", Georgia, serif;
    --h-font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", "Noto Naskh Arabic", "Segoe UI", "Tahoma", serif;
    --h-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="toska_biru"] {
    --h-primary: #0f766e;
    --h-primary-dark: #0a4f4a;
    --h-primary-soft: #e2f3f1;
    --h-accent: #b98a1d;
    --h-accent-bright: #e0b64a;
    --h-accent-soft: #faf0d5;
    --h-bg: #f2f7f6;
    --h-surface: #fcfefd;
    --h-surface-alt: #e9f2f1;
    --h-border: #d5e5e2;
    --h-border-strong: #bcd7d3;
}

/* --------------------------------------------------------------------------
   2. Base typography & page canvas
   -------------------------------------------------------------------------- */
body {
    font-family: var(--h-font-body);
    background-color: var(--h-bg);
    color: var(--h-ink);
}

body::before {
    /* Tekstur kertas halus + cahaya hangat */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(201, 162, 39, 0.10), transparent 60%),
        radial-gradient(900px 700px at 100% 0%, rgba(11, 59, 46, 0.08), transparent 55%);
}

h1, h2, .font-display {
    font-family: var(--h-font-display);
    letter-spacing: -0.015em;
    font-weight: 700;
}

h3, h4, h5, h6 {
    letter-spacing: -0.005em;
}

.arabic-calligraphy {
    font-family: var(--h-font-arabic);
    direction: rtl;
    unicode-bidi: isolate;
    line-height: 1.9;
    letter-spacing: 0;
}

.top-ribbon .arabic-calligraphy {
    font-size: 0.875rem;
    line-height: 1.5;
}

.ornament-gold {
    color: var(--h-accent);
}

/* --------------------------------------------------------------------------
   3. Top ribbon & header
   -------------------------------------------------------------------------- */
.top-ribbon {
    position: relative;
    z-index: 45;
    background:
        linear-gradient(90deg, #041a14 0%, var(--h-primary) 48%, #4a3a0d 100%);
    color: #f4e6b8;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.top-ribbon::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--h-accent) 20%, var(--h-accent-bright) 50%, var(--h-accent) 80%, transparent);
    opacity: 0.8;
}

.top-ribbon a {
    color: #fff3cd;
    text-decoration: none;
}

.top-ribbon a:hover {
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 253, 247, 0.88);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(214, 201, 166, 0.65);
    transition: box-shadow 0.35s var(--h-ease), background-color 0.35s var(--h-ease);
}

.site-header.is-scrolled {
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 18px 45px -30px rgba(6, 35, 27, 0.65);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.75) 22%, rgba(201, 162, 39, 0.75) 78%, transparent);
    opacity: 0.55;
}

.brand-seal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fffdf5, #f4ecd7);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55), 0 8px 18px -12px rgba(6, 35, 27, 0.65);
    transition: transform 0.4s var(--h-ease);
}

.brand-seal::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(201, 162, 39, 0.55);
    opacity: 0.8;
}

a:hover > .brand-seal,
.brand-lockup:hover .brand-seal {
    transform: rotate(-6deg) scale(1.04);
}

.brand-seal img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.brand-kicker {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--h-accent);
}

.brand-name {
    font-family: var(--h-font-display);
    font-size: 1.02rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--h-ink);
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #45564f;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--h-accent), var(--h-accent-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--h-ease);
}

.site-nav-link:hover {
    color: var(--h-primary);
    background: rgba(201, 162, 39, 0.07);
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
    transform: scaleX(1);
}

.site-nav-link.is-active {
    color: var(--h-primary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-heritage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    border-radius: 0.85rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s var(--h-ease), box-shadow 0.25s var(--h-ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-heritage::after {
    content: "";
    position: absolute;
    top: -60%;
    bottom: -60%;
    left: -40%;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-160%) rotate(12deg);
    transition: transform 0.7s var(--h-ease);
    pointer-events: none;
}

.btn-heritage:hover::after {
    transform: translateX(420%) rotate(12deg);
}

.btn-heritage:hover {
    transform: translateY(-1px);
}

.btn-heritage:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, #f0d98c 0%, var(--h-accent) 45%, #a9821a 100%);
    color: #241a03;
    box-shadow: 0 12px 26px -14px rgba(201, 162, 39, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover {
    box-shadow: 0 18px 34px -14px rgba(201, 162, 39, 1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 12px 26px -16px rgba(6, 35, 27, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #11553f 0%, var(--h-primary) 100%);
}

.btn-outline {
    border: 1px solid var(--h-border-strong);
    background: rgba(255, 253, 247, 0.65);
    color: var(--h-primary);
}

.btn-outline:hover {
    border-color: var(--h-accent);
    background: #fffdf7;
    box-shadow: var(--h-shadow-sm);
}

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

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   5. Hero & ornaments
   -------------------------------------------------------------------------- */
.hero-heritage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 520px at 82% 12%, rgba(201, 162, 39, 0.28), transparent 62%),
        radial-gradient(780px 600px at 8% 88%, rgba(20, 120, 92, 0.40), transparent 62%),
        linear-gradient(135deg, #04170f 0%, #07291f 42%, #0b3b2e 68%, #3d3009 100%);
}

.hero-heritage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23e3c565' stroke-width='1' stroke-opacity='0.15'%3E%3Cpath d='M70 12l14 26 28-7-7 28 26 14-26 14 7 28-28-7-14 26-14-26-28 7 7-28-26-14 26-14-7-28 28 7z'/%3E%3Ccircle cx='70' cy='70' r='16'/%3E%3Ccircle cx='70' cy='70' r='5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
    opacity: 0.75;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}

.hero-heritage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 197, 101, 0.75), transparent);
    z-index: 1;
}

/* Hero sedikit lebih rapat ke header, tetap ada ruang napas */
.hero-heritage .hero-inner {
    padding-top: 2.25rem;
}

@media (min-width: 640px) {
    .hero-heritage .hero-inner {
        padding-top: 3rem;
    }
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: h-float-glow 16s ease-in-out infinite;
    pointer-events: none;
}

.hero-glow.one {
    width: 22rem;
    height: 22rem;
    top: -7rem;
    right: -4rem;
    background: rgba(201, 162, 39, 0.55);
}

.hero-glow.two {
    width: 26rem;
    height: 26rem;
    bottom: -12rem;
    left: -6rem;
    background: rgba(15, 118, 110, 0.5);
    animation-delay: -7s;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(227, 197, 101, 0.38);
    background: rgba(201, 162, 39, 0.12);
    color: #f3dfa2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-title {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero-theme-quote {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(227, 197, 101, 0.7);
    color: #f3dfa2;
    font-family: var(--h-font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-theme-quote::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--h-accent-bright);
    box-shadow: 0 0 0 4px rgba(227, 197, 101, 0.15);
}

.countdown-shell {
    border: 1px solid rgba(227, 197, 101, 0.28);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-radius: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 50px -34px rgba(0, 0, 0, 0.8);
}

.countdown-cell {
    background: linear-gradient(180deg, rgba(2, 20, 15, 0.68), rgba(2, 20, 15, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    padding: 0.55rem 0.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.countdown-cell .num {
    font-family: var(--h-font-display);
    font-variant-numeric: tabular-nums;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.countdown-cell .lbl {
    margin-top: 0.3rem;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

/* Lengkungan mihrab untuk logo */
.hero-arch {
    position: relative;
    padding: 0.7rem;
    border-radius: 48% 48% 1.4rem 1.4rem / 36% 36% 1.4rem 1.4rem;
    border: 1.5px solid rgba(227, 197, 101, 0.75);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 6px rgba(201, 162, 39, 0.08);
    backdrop-filter: blur(8px);
}

.hero-arch::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 48% 48% 1rem 1rem / 36% 36% 1rem 1rem;
    border: 1px dashed rgba(227, 197, 101, 0.45);
    pointer-events: none;
}

.hero-arch::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--h-accent);
    box-shadow: 0 0 0 4px rgba(227, 197, 101, 0.18);
}

.hero-arch-inner {
    position: relative;
    border-radius: 48% 48% 0.95rem 0.95rem / 36% 36% 0.95rem 0.95rem;
    background: linear-gradient(180deg, #fffdf7 0%, #f6efdc 100%);
    padding: 2rem 1.4rem 1.4rem;
    text-align: center;
    overflow: hidden;
}

.hero-arch-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='0.8' stroke-opacity='0.18'%3E%3Cpath d='M32 4l7 14 15-4-4 15 14 7-14 7 4 15-15-4-7 14-7-14-15 4 4-15-14-7 14-7-4-15 15 4z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.hero-arch-inner > * {
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
    padding: 0.55rem 0.3rem;
}

.hero-stat .val {
    font-family: var(--h-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--h-primary);
}

.hero-stat .cap {
    margin-top: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a7a4e;
    font-weight: 700;
}

/* Divider ornamen */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: var(--h-accent);
}

.ornament-divider::before,
.ornament-divider::after {
    content: "";
    height: 1px;
    width: min(9rem, 22vw);
    background: linear-gradient(90deg, transparent, currentColor);
    opacity: 0.55;
}

.ornament-divider::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.ornament-divider .star {
    font-size: 0.8rem;
    line-height: 1;
    transform: rotate(0deg);
    animation: h-spin-slow 22s linear infinite;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--h-accent);
}

.section-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.18;
    margin-top: 0.45rem;
    color: var(--h-ink);
}

/* --------------------------------------------------------------------------
   6. Cards & content components
   -------------------------------------------------------------------------- */
.card-heritage {
    position: relative;
    border: 1px solid var(--h-border);
    border-radius: var(--h-radius);
    background: linear-gradient(180deg, #fffefb 0%, var(--h-surface) 100%);
    box-shadow: var(--h-shadow-sm);
    transition: transform 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease), border-color 0.35s ease;
}

.card-heritage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), transparent 30%, transparent 70%, rgba(11, 59, 46, 0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card-heritage:hover {
    transform: translateY(-4px);
    box-shadow: var(--h-shadow);
    border-color: var(--h-border-strong);
}

.card-heritage:hover::before {
    opacity: 1;
}

.card-heritage.is-static:hover {
    transform: none;
    box-shadow: var(--h-shadow-sm);
}

.step-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: var(--h-radius);
    border: 1px solid var(--h-border);
    background: linear-gradient(180deg, #fffefb, var(--h-surface));
    box-shadow: var(--h-shadow-sm);
    transition: transform 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease), border-color 0.35s ease;
}

.step-card::after {
    content: attr(data-step);
    position: absolute;
    top: -0.9rem;
    right: 0.35rem;
    font-family: var(--h-font-display);
    font-size: 5.2rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(201, 162, 39, 0.12);
    pointer-events: none;
}

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

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, var(--h-primary), var(--h-primary-dark));
    color: #f1d98a;
    box-shadow: 0 12px 24px -14px rgba(6, 35, 27, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.step-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.timeline-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: var(--h-radius);
    border: 1px solid var(--h-border);
    background: #fffefb;
    box-shadow: var(--h-shadow-sm);
    transition: transform 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease), border-color 0.35s ease;
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--h-accent), var(--h-accent-bright));
    opacity: 0.85;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--h-shadow);
    border-color: rgba(201, 162, 39, 0.45);
}

.timeline-card .phase {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: var(--h-primary-soft);
    color: var(--h-primary);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-card .date {
    font-family: var(--h-font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--h-accent);
    margin-top: 0.55rem;
}

.prize-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--h-radius-lg);
    background:
        radial-gradient(700px 420px at 85% 0%, rgba(201, 162, 39, 0.35), transparent 60%),
        radial-gradient(600px 500px at 0% 100%, rgba(15, 118, 110, 0.35), transparent 60%),
        linear-gradient(135deg, #04170f, #0b3b2e 60%, #3a2d08);
    color: #fff;
    box-shadow: var(--h-shadow-lg);
}

.prize-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e3c565' stroke-width='1' stroke-opacity='0.14'%3E%3Cpath d='M60 8l11 23 25-6-6 25 23 10-23 11 6 25-25-6-11 23-11-23-25 6 6-25-23-11 23-10-6-25 25 6z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
}

.prize-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    transition: transform 0.35s var(--h-ease), background-color 0.35s ease, border-color 0.35s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(227, 197, 101, 0.6);
}

.prize-card.is-champion {
    border: 1.5px solid rgba(227, 197, 101, 0.8);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: 0 30px 60px -30px rgba(201, 162, 39, 0.55);
}

.prize-card .prize-amount {
    font-family: var(--h-font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #f3dfa2;
    font-variant-numeric: tabular-nums;
}

/* Trophy watermark on /hadiah */
.prize-slab {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 12.5rem;
}

.prize-slab-watermark {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0;
    height: 90%;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
    opacity: 0.32;
    pointer-events: none;
    user-select: none;
    filter: saturate(0.95);
    -webkit-mask-image: linear-gradient(to left, #000 72%, rgba(0, 0, 0, 0.7) 100%);
    mask-image: linear-gradient(to left, #000 72%, rgba(0, 0, 0, 0.7) 100%);
}

.prize-slab-content {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .prize-slab-watermark {
        opacity: 0.34;
    }
}

@media (max-width: 420px) {
    .prize-slab-watermark {
        opacity: 0.26;
    }
}

.announcement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--h-radius);
    border: 1px solid var(--h-border);
    background: #fffefb;
    box-shadow: var(--h-shadow-sm);
    transition: transform 0.35s var(--h-ease), box-shadow 0.35s var(--h-ease), border-color 0.35s ease;
}

.announcement-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--h-accent), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--h-shadow);
    border-color: rgba(201, 162, 39, 0.45);
}

.announcement-card:hover::before {
    opacity: 1;
}

.date-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    padding: 0.3rem 0.45rem;
    border-radius: 0.65rem;
    background: var(--h-primary-soft);
    color: var(--h-primary);
    line-height: 1;
}

.date-chip .d {
    font-family: var(--h-font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.date-chip .m {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.18rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--h-primary);
    transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow:hover {
    color: var(--h-accent);
    gap: 0.6rem;
}

/* Badge/status di dalam konten */
.badge-heritage {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--h-border-strong);
    background: var(--h-accent-soft);
    color: #6b520d;
    font-size: 0.68rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Forms, tables, alerts
   -------------------------------------------------------------------------- */
.public-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.public-main select,
.public-main textarea,
.panel-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.panel-content select,
.panel-content textarea,
.auth-panel input:not([type="checkbox"]):not([type="radio"]),
.auth-panel select,
.auth-panel textarea {
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    background-color: #fffefb;
}

.public-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
.public-main select:focus,
.public-main textarea:focus,
.panel-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
.panel-content select:focus,
.panel-content textarea:focus,
.auth-panel input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-panel select:focus,
.auth-panel textarea:focus {
    outline: none;
    border-color: var(--h-accent) !important;
    box-shadow: var(--h-ring) !important;
}

.public-main input[type="checkbox"],
.public-main input[type="radio"],
.panel-content input[type="checkbox"],
.panel-content input[type="radio"] {
    accent-color: var(--h-primary);
}

.public-main table,
.panel-content table {
    border-collapse: separate;
    border-spacing: 0;
}

.public-main table thead th,
.panel-content table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 800;
    color: #55655d;
    background: linear-gradient(180deg, #f6f1e3, #efe8d5);
    border-bottom: 1px solid var(--h-border);
}

.public-main table tbody tr,
.panel-content table tbody tr {
    transition: background-color 0.2s ease;
}

.public-main table tbody tr:hover,
.panel-content table tbody tr:hover {
    background: rgba(201, 162, 39, 0.06);
}

.alert-box {
    position: relative;
    border-left-width: 4px;
    box-shadow: var(--h-shadow-sm);
    animation: h-alert-in 0.45s var(--h-ease) both;
}

@keyframes h-alert-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8. Public layout, footer, utilities
   -------------------------------------------------------------------------- */
.public-main {
    position: relative;
}

.public-main .bg-white.rounded-3xl.border-stone-200,
.public-main .bg-white.rounded-2xl.border-stone-200 {
    border-color: var(--h-border);
    box-shadow: var(--h-shadow-sm);
}

.public-main .bg-white.rounded-3xl.border-2.border-emerald-600 {
    box-shadow: var(--h-shadow);
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
        linear-gradient(180deg, #04170f 0%, #061c15 60%, #03110c 100%);
    color: #b9c7c1;
    border-top: 1px solid rgba(201, 162, 39, 0.55);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='none' stroke='%23e3c565' stroke-width='1' stroke-opacity='0.08'%3E%3Cpath d='M55 8l10 21 23-6-6 23 21 10-21 10 6 23-23-6-10 21-10-21-23 6 6-23-21-10 21-10-6-23 23 6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.site-footer > * {
    position: relative;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e3c565;
}

.footer-link {
    color: #a9bab2;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: #f3dfa2;
    padding-left: 0.15rem;
}

.footer-arabic {
    display: block;
    max-width: 100%;
    margin: 0;
    font-family: var(--h-font-arabic);
    direction: rtl;
    unicode-bidi: isolate;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.9;
    letter-spacing: 0;
    color: #e9d089;
    text-wrap: balance;
}

.footer-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(227, 197, 101, 0.45);
}

.footer-seal img {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: contain;
}

/* Scroll progress & back to top */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--h-accent), var(--h-accent-bright), var(--h-primary));
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.7);
    transition: width 0.08s linear;
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid rgba(227, 197, 101, 0.7);
    background: linear-gradient(145deg, var(--h-primary), var(--h-primary-dark));
    color: #f3dfa2;
    box-shadow: 0 16px 30px -14px rgba(6, 35, 27, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s var(--h-ease), visibility 0.3s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #11553f, var(--h-primary));
}

/* Mobile menu */
.mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.5s var(--h-ease), opacity 0.3s ease, transform 0.4s var(--h-ease);
}

.mobile-menu.is-open {
    max-height: 34rem;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    border-radius: 0.7rem;
}

.mobile-menu a:hover {
    background: rgba(201, 162, 39, 0.09);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(4, 20, 14, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   9. Panel internal (admin & juri)
   -------------------------------------------------------------------------- */
.panel-shell {
    min-height: 100vh;
    background: #f3f1e8;
}

.panel-sidebar {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 100%;
    background:
        radial-gradient(600px 300px at 50% -10%, rgba(201, 162, 39, 0.22), transparent 65%),
        linear-gradient(180deg, #04170f 0%, #061f18 55%, #04120d 100%);
    color: #c8d4cf;
    border-right: 1px solid rgba(227, 197, 101, 0.22);
}

.panel-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23e3c565' stroke-width='0.8' stroke-opacity='0.07'%3E%3Cpath d='M45 6l8 18 19-5-5 19 18 8-18 8 5 19-19-5-8 18-8-18-19 5 5-19-18-8 18-8-5-19 19 5z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.panel-sidebar > * {
    position: relative;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-brand .seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(227, 197, 101, 0.45);
    flex-shrink: 0;
}

.panel-brand .seal img {
    width: 1.95rem;
    height: 1.95rem;
    object-fit: contain;
}

.panel-brand .kicker {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #e3c565;
}

.panel-brand .title {
    font-family: var(--h-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.panel-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.7rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 197, 101, 0.35) transparent;
}

.panel-nav::-webkit-scrollbar {
    width: 6px;
}

.panel-nav::-webkit-scrollbar-thumb {
    background: rgba(227, 197, 101, 0.3);
    border-radius: 999px;
}

.panel-section-label {
    padding: 0.85rem 0.7rem 0.4rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(200, 212, 207, 0.45);
}

.panel-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b9c7c1;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--h-ease);
}

.panel-nav-link .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(227, 197, 101, 0.8);
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.panel-nav-link .ico svg {
    width: 1rem;
    height: 1rem;
}

.panel-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(2px);
}

.panel-nav-link.is-active {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.24), rgba(201, 162, 39, 0.05));
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(227, 197, 101, 0.25);
}

.panel-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #f3dfa2, var(--h-accent));
}

.panel-nav-link.is-active .ico {
    background: rgba(227, 197, 101, 0.2);
    color: #f3dfa2;
}

.panel-user-card {
    margin: 0.5rem 0.7rem 0.8rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(227, 197, 101, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.panel-user-card .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--h-accent-bright), var(--h-accent));
    color: #241a03;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.panel-user-card .name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-user-card .role {
    font-size: 0.6rem;
    color: rgba(227, 197, 101, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.panel-exit {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.7rem 0.9rem;
}

.panel-exit a,
.panel-exit button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a9bab2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.panel-exit a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.panel-exit .logout {
    color: #f2a6ae;
}

.panel-exit .logout:hover {
    background: rgba(159, 34, 49, 0.24);
    color: #ffd7db;
}

.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--h-border);
    background: rgba(255, 253, 247, 0.86);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.panel-content {
    flex: 1;
    padding: 1.1rem;
    background:
        radial-gradient(700px 380px at 100% 0%, rgba(201, 162, 39, 0.08), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(11, 59, 46, 0.06), transparent 60%),
        #f4f2e9;
}

.panel-content .bg-white.rounded-2xl.border-slate-200,
.panel-content .bg-white.rounded-3xl.border-slate-200 {
    border-color: var(--h-border);
    box-shadow: var(--h-shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel-content .bg-white.rounded-2xl.border-slate-200:hover,
.panel-content .bg-white.rounded-3xl.border-slate-200:hover {
    box-shadow: var(--h-shadow);
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1.15rem;
    border-radius: var(--h-radius);
    border: 1px solid var(--h-border);
    background: linear-gradient(160deg, #fffefb, #fbf7eb);
    box-shadow: var(--h-shadow-sm);
    transition: transform 0.3s var(--h-ease), box-shadow 0.3s var(--h-ease);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--h-shadow);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -1.4rem;
    top: -1.3rem;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%);
    pointer-events: none;
}

.stat-card .stat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    background: var(--h-primary-soft);
    color: var(--h-primary);
    margin-bottom: 0.6rem;
}

.stat-card .stat-ico svg {
    width: 1.15rem;
    height: 1.15rem;
}

.stat-card .stat-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a857f;
}

.stat-card .stat-value {
    font-family: var(--h-font-display);
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--h-ink);
    font-variant-numeric: tabular-nums;
    margin-top: 0.1rem;
}

.stat-card .stat-note {
    font-size: 0.66rem;
    color: #9aa39e;
}

.stat-card.accent-emerald { border-color: rgba(17, 85, 63, 0.25); }
.stat-card.accent-emerald .stat-ico { background: #e3efe8; color: #11553f; }
.stat-card.accent-gold { border-color: rgba(201, 162, 39, 0.35); }
.stat-card.accent-gold .stat-ico { background: #f8eed2; color: #a9821a; }
.stat-card.accent-blue { border-color: rgba(37, 99, 135, 0.25); }
.stat-card.accent-blue .stat-ico { background: #e5eff6; color: #256387; }
.stat-card.accent-red { border-color: rgba(159, 34, 49, 0.25); }
.stat-card.accent-red .stat-ico { background: #f7e5e7; color: #9f2231; }

/* Live clock & breadcrumb */
.panel-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--h-border);
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    font-weight: 700;
    color: #5b6b64;
    font-variant-numeric: tabular-nums;
}

.panel-clock .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f9d70;
    box-shadow: 0 0 0 3px rgba(31, 157, 112, 0.18);
    animation: h-pulse 2s infinite;
}

.panel-breadcrumb {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa39e;
}

/* --------------------------------------------------------------------------
   10. Auth (login, reset, profile)
   -------------------------------------------------------------------------- */
.auth-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    padding: 1.25rem 1rem;
    background: radial-gradient(1400px 900px at 50% -10%, rgba(201, 162, 39, 0.14), transparent 65%),
                radial-gradient(900px 700px at 0% 100%, rgba(11, 59, 46, 0.12), transparent 70%),
                linear-gradient(180deg, #f8f5ec 0%, #f3f1e8 100%);
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.auth-bg::before,
.auth-bg::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(140px);
}

.auth-bg::before {
    width: 28rem;
    height: 28rem;
    left: 50%;
    top: -16rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(252, 211, 77, 0.16), transparent 70%);
}

.auth-bg::after {
    width: 26rem;
    height: 26rem;
    right: -14rem;
    bottom: -18rem;
    background: radial-gradient(circle, rgba(11, 59, 46, 0.14), transparent 72%);
}

.auth-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-wrap {
    width: 100%;
    max-width: 64rem;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    min-height: 0;
}

.auth-login-wrap .auth-shell {
    width: 100%;
    min-height: 0;
    max-height: 100%;
}

.auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.auth-mobile-brand img {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
}

.auth-head {
    margin-bottom: 1.4rem;
}

.auth-head h1 {
    margin-top: 0.5rem;
}

.auth-head p {
    margin-top: 0.5rem;
}

.auth-form {
    display: grid;
    gap: 1.05rem;
}

.auth-form label[for] {
    margin-bottom: 0.4rem;
}

.auth-footer {
    margin-top: 1.2rem;
}

.auth-aside-arabic {
    margin-top: 1.7rem;
}

.auth-aside-hadith {
    margin-top: 0.95rem;
}

.auth-aside-footer {
    padding-top: 1.6rem;
}

@media (min-width: 900px) {
    .auth-mobile-brand {
        display: none;
    }

    .auth-login-wrap .auth-aside {
        padding: 2.4rem;
    }

    .auth-login-wrap .auth-panel {
        padding: 2.4rem 2.75rem;
    }
}

@media (max-height: 620px) {
    .auth-body {
        padding: 0.65rem;
    }

    .auth-login-wrap .auth-aside {
        padding: 1.5rem;
    }

    .auth-login-wrap .auth-panel {
        padding: 1.3rem 1.5rem;
    }

    .auth-head {
        margin-bottom: 1rem;
    }

    .auth-head h1 {
        font-size: 1.2rem;
    }

    .auth-form {
        gap: 0.85rem;
    }

    .auth-footer {
        margin-top: 0.9rem;
    }

    .auth-aside-arabic {
        font-size: 1.4rem;
        margin-top: 1rem;
    }

    .auth-aside-hadith {
        margin-top: 0.7rem;
    }

    .auth-aside-footer {
        padding-top: 1rem;
    }
}

@media (max-height: 620px) and (max-width: 899px) {
    .auth-mobile-brand {
        display: none;
    }
}

@media (max-height: 620px) {
    .auth-panel:has(.alert-box) .auth-head {
        margin-bottom: 0.6rem;
    }

    .auth-panel:has(.alert-box) .auth-form {
        gap: 0.65rem;
    }

    .auth-panel:has(.alert-box) .auth-footer {
        margin-top: 0.6rem;
    }
}

.btn-juri {
    background: linear-gradient(135deg, #4c1d95, #312e81);
    color: #fff;
    border-color: rgba(76, 29, 149, 0.5);
    box-shadow: 0 18px 40px -24px rgba(76, 29, 149, 0.9);
}

.btn-juri:hover {
    background: linear-gradient(135deg, #5b21b6, #3730a3);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: var(--h-radius-lg);
    border: 1px solid var(--h-border);
    background: var(--h-surface);
    box-shadow: var(--h-shadow-lg);
}

@media (min-width: 900px) {
    .auth-shell {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.auth-aside {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: none;
    padding: 2.4rem;
    color: #fff;
    background:
        radial-gradient(500px 340px at 80% 0%, rgba(201, 162, 39, 0.35), transparent 60%),
        radial-gradient(500px 420px at 0% 100%, rgba(15, 118, 110, 0.4), transparent 60%),
        linear-gradient(150deg, #04170f, #0b3b2e 65%, #3a2d08);
}

@media (min-width: 900px) {
    .auth-aside {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='none' stroke='%23e3c565' stroke-width='1' stroke-opacity='0.14'%3E%3Cpath d='M55 8l10 21 23-6-6 23 21 10-21 10 6 23-23-6-10 21-10-21-23 6 6-23-21-10 21-10-6-23 23 6z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 15%, transparent 80%);
}

.auth-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1.6rem;
    background: linear-gradient(180deg, #fffefb, #fbf7ec);
}

.auth-panel::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .auth-panel {
        padding: 2.2rem;
    }
}

.auth-arch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5.8rem;
    margin: 0 auto;
    border-radius: 48% 48% 0.8rem 0.8rem / 34% 34% 0.8rem 0.8rem;
    border: 1px solid rgba(227, 197, 101, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.auth-arch img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   11. Animations & scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--h-ease), transform 0.7s var(--h-ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@keyframes h-float-glow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(1.5rem, -1rem, 0) scale(1.06); }
}

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

@keyframes h-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes h-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-heritage .hero-copy > * {
    animation: h-fade-up 0.7s var(--h-ease) both;
}

.hero-heritage .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-heritage .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-heritage .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
.hero-heritage .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-heritage .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
.hero-heritage .hero-copy > *:nth-child(6) { animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   12. Responsive panel drawer
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .panel-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(19rem, 86vw);
        transform: translateX(-105%);
        transition: transform 0.4s var(--h-ease);
        box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
    }

    .panel-sidebar.is-open {
        transform: translateX(0);
    }

    .panel-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(4, 15, 11, 0.55);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .panel-drawer-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 1024px) {
    .panel-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 18rem;
        flex-shrink: 0;
    }

    .panel-content {
        padding: 1.8rem;
    }

    .panel-topbar {
        padding: 1rem 1.8rem;
    }

    .panel-drawer-backdrop {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   13. Utility shims
   app.css adalah hasil kompilasi Tailwind yang dibekukan. Kelas baru di bawah
   ini melengkapi utilitas yang dipakai oleh layout & halaman yang diperbarui.
   -------------------------------------------------------------------------- */
.animate-pulse { animation: h-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.duration-500 { transition-duration: 0.5s; }
.leading-none { line-height: 1; }
.leading-\[1\.08\] { line-height: 1.08; }
.not-italic { font-style: normal; }
.rounded-md { border-radius: 0.375rem; }
.border-x { border-left-width: 1px; border-right-width: 1px; }

.-top-10 { top: -2.5rem; }
.-right-10 { right: -2.5rem; }
.left-3\.5 { left: 0.875rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }

.gap-0\.5 { gap: 0.125rem; }
.gap-9 { gap: 2.25rem; }
.gap-12 { gap: 3rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: 0.5rem; }

.h-1\.5 { height: 0.375rem; }
.h-3\.5 { height: 0.875rem; }
.h-5 { height: 1.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-3\.5 { width: 0.875rem; }
.w-52 { width: 13rem; }

.mb-3\.5 { margin-bottom: 0.875rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.p-1\.5 { padding: 0.375rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3\.5 { padding-right: 0.875rem; }
.pt-10 { padding-top: 2.5rem; }
.py-11 { padding-top: 2.75rem; padding-bottom: 2.75rem; }

.text-\[9px\] { font-size: 9px; }
.text-\[13px\] { font-size: 13px; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.bg-amber-200\/30 { background-color: rgba(253, 230, 138, 0.3); }
.bg-amber-300 { background-color: #fcd34d; }
.bg-amber-400\/70 { background-color: rgba(251, 191, 36, 0.7); }
.bg-amber-50\/80 { background-color: rgba(255, 251, 235, 0.8); }
.bg-blue-50\/70 { background-color: rgba(239, 246, 255, 0.7); }
.bg-emerald-300 { background-color: #6ee7b7; }
.bg-emerald-50\/70 { background-color: rgba(236, 253, 245, 0.7); }
.bg-emerald-600 { background-color: #059669; }
.bg-purple-500 { background-color: #a855f7; }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-stone-50\/80 { background-color: rgba(250, 250, 249, 0.8); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-slate-950\/75 { background-color: rgba(2, 6, 23, 0.75); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }

.border-amber-300\/25 { border-color: rgba(252, 211, 77, 0.25); }
.border-stone-200\/80 { border-color: rgba(231, 229, 228, 0.8); }
.border-stone-300\/60 { border-color: rgba(214, 211, 209, 0.6); }
.border-stone-300\/70 { border-color: rgba(214, 211, 209, 0.7); }
.border-rose-500\/40 { border-color: rgba(244, 63, 94, 0.4); }

.text-amber-100\/70 { color: rgba(254, 243, 199, 0.7); }
.text-amber-200\/85 { color: rgba(253, 230, 138, 0.85); }
.text-amber-200\/90 { color: rgba(253, 230, 138, 0.9); }
.text-amber-300\/70 { color: rgba(252, 211, 77, 0.7); }
.text-amber-300\/80 { color: rgba(252, 211, 77, 0.8); }
.text-amber-300\/90 { color: rgba(252, 211, 77, 0.9); }
.text-amber-400\/80 { color: rgba(251, 191, 36, 0.8); }
.text-amber-700\/80 { color: rgba(180, 83, 9, 0.8); }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-900\/70 { color: rgba(6, 78, 59, 0.7); }
.text-emerald-900\/80 { color: rgba(6, 78, 59, 0.8); }
.text-slate-200\/90 { color: rgba(226, 232, 240, 0.9); }
.text-slate-300\/80 { color: rgba(203, 213, 225, 0.8); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.hover\:bg-amber-500\/25:hover { background-color: rgba(245, 158, 11, 0.25); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-slate-50\/80:hover { background-color: rgba(248, 250, 252, 0.8); }
.hover\:text-sky-950:hover { color: #082f49; }

.from-emerald-800 { --tw-gradient-from: #065f46 var(--tw-gradient-from-position); --tw-gradient-to: rgba(6, 95, 70, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-purple-800 { --tw-gradient-from: #6b21a8 var(--tw-gradient-from-position); --tw-gradient-to: rgba(107, 33, 168, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-white { --tw-gradient-from: #fff var(--tw-gradient-from-position); --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-amber-50\/50 { --tw-gradient-to: rgba(255, 251, 235, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 251, 235, 0.5) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-amber-400 { --tw-gradient-to: #fbbf24 var(--tw-gradient-to-position); }
.to-emerald-50\/60 { --tw-gradient-to: rgba(236, 253, 245, 0.6) var(--tw-gradient-to-position); }
.to-indigo-900 { --tw-gradient-to: #312e81 var(--tw-gradient-to-position); }

.blur-2xl { filter: blur(40px); }

.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(0.125rem); }
.group:hover .group-hover\:translate-y-0\.5 { transform: translateY(0.125rem); }

.ring-emerald-600\/15 { --tw-ring-color: rgba(5, 150, 105, 0.15); }

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
    .sm\:inline { display: inline; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .sm\:w-60 { width: 15rem; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:inline-flex { display: inline-flex; }
}

@media (min-width: 1280px) {
    .xl\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* --------------------------------------------------------------------------
   14. Misc & print
   -------------------------------------------------------------------------- */
::selection {
    background: rgba(201, 162, 39, 0.32);
    color: #10231c;
}

html {
    scrollbar-color: rgba(11, 59, 46, 0.45) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(11, 59, 46, 0.55), rgba(201, 162, 39, 0.55));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    body::before,
    .site-footer::before,
    .hero-heritage::before,
    .hero-heritage::after,
    .panel-sidebar::before,
    .prize-showcase::before,
    .scroll-progress,
    .back-to-top,
    .top-ribbon {
        display: none !important;
    }

    .hero-heritage,
    .prize-showcase,
    .site-footer {
        background: #fff !important;
        color: #000 !important;
    }

    .card-heritage,
    .step-card,
    .timeline-card,
    .announcement-card,
    .stat-card {
        box-shadow: none !important;
        border-color: #ccc !important;
    }
}
