/* ================================================================
                   KOMPAS DIGITAL PRO - STYLESHEET
   ================================================================ */

/* ----- Variabel Tema ---- */
:root {
    --font-main: 'Poppins', Arial, sans-serif;
    --font-arabic: 'Amiri', serif;

    /* Light Theme */
    --bg: #f5f7fa;
    --bg-alt: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.55);
    --bg-card: rgba(255, 255, 255, 0.85);
    --fg: #1f2937;
    --fg-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.08);
    --gold: #d4af37;
    --gold-dark: #a58320;
    --gold-light: #fde68a;
    --primary: #2563eb;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --grad-bg: radial-gradient(ellipse at top, #dbeafe 0%, #f5f7fa 100%);
}

.theme-dark {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.55);
    --bg-card: rgba(30, 41, 59, 0.75);
    --fg: #e2e8f0;
    --fg-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --gold: #fbbf24;
    --gold-dark: #d19a0a;
    --gold-light: #fde68a;
    --primary: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(15, 23, 42, 0.85);
    --grad-bg: radial-gradient(ellipse at top, #1e3a8a 0%, #0b1120 100%);
}

/* ----- Global ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--fg);
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    transition: background 0.4s ease, color 0.3s ease;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 12px; font-weight: 600; }

/* ================================================================
   SPLASH SCREEN
   ================================================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1e3a8a 0%, #0b1120 100%);
    animation: splashFadeOut 0.6s ease 3s forwards;
}
.splash-screen.hidden { display: none; }

.splash-inner {
    text-align: center;
    animation: splashZoomIn 1s ease;
}

.splash-logo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    position: relative;
    animation: splashPulse 2s ease infinite;
}

.splash-logo { width: 100%; height: 100%; }

.splash-logo .splash-needle {
    transform-origin: 100px 100px;
    animation: splashSpin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.splash-logo .splash-ring-outer {
    transform-origin: 100px 100px;
    animation: splashRingRotate 8s linear infinite;
}
.splash-logo .splash-ring-mid {
    transform-origin: 100px 100px;
    animation: splashRingRotate 6s linear infinite reverse;
}

.splash-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fde68a;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.splash-pro {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.splash-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 12px 0 32px;
    letter-spacing: 1px;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.splash-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #fde68a, #fbbf24);
    background-size: 200% 100%;
    width: 100%;
    animation: splashLoad 2.5s ease-in-out, splashShine 1.5s linear infinite;
    transform-origin: left;
}

.splash-version {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 24px;
    letter-spacing: 2px;
}

@keyframes splashZoomIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes splashFadeOut {
    to { opacity: 0; visibility: hidden; }
}
@keyframes splashSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes splashPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8)); }
}
@keyframes splashRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes splashLoad {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes splashShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    animation: navLogoSpin 20s linear infinite;
}
@keyframes navLogoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}
.nav-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    color: var(--fg);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold);
    text-decoration: none;
}
.nav-link.active {
    background: var(--gold);
    color: #0f172a;
    font-weight: 600;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gold);
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.icon-btn:hover { background: rgba(251, 191, 36, 0.15); }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 62px;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--nav-bg);
        backdrop-filter: blur(14px);
        padding: 16px;
        gap: 4px;
        width: 240px;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        border-bottom-left-radius: 12px;
        box-shadow: var(--shadow-lg);
        transform: translateX(110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-link { display: block; padding: 12px 16px; }
}

/* ================================================================
   PAGE SYSTEM
   ================================================================ */
.page {
    display: none;
    flex: 1;
    padding: 24px 16px 40px;
    animation: pageEnter 0.4s ease;
}
.page.active { display: block; }

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
}
.section-header h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--fg-muted);
    font-size: 0.95rem;
    margin: 4px 0;
}

/* ================================================================
   COMPASS PAGE
   ================================================================ */
#compassWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px;
}

.compass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    width: 100%;
}

#dial {
    position: relative;
    width: 320px;
    height: 320px;
    border: 8px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.08), var(--bg-glass) 60%);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 40px rgba(251, 191, 36, 0.1), 0 12px 32px rgba(0, 0, 0, 0.5);
    user-select: none;
    touch-action: none;
    overflow: hidden;
}
@media (max-width: 640px) {
    #dial { width: 260px; height: 260px; }
}

.dial-markers {
    position: absolute;
    inset: 0;
    background-image:
            repeating-conic-gradient(from 0deg, var(--gold) 0deg 1deg, transparent 1deg 30deg),
            repeating-conic-gradient(from 0deg, var(--fg-muted) 0deg 0.5deg, transparent 0.5deg 10deg);
    -webkit-mask: radial-gradient(circle, transparent 42%, black 43%, black 48%, transparent 49%);
    mask: radial-gradient(circle, transparent 42%, black 43%, black 48%, transparent 49%);
    opacity: 0.7;
}

.dir {
    position: absolute;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 3;
}
.dir.n  { top: 10px;    left: 50%; transform: translateX(-50%); font-size: 1.3rem; color: #ef4444; }
.dir.s  { bottom: 10px; left: 50%; transform: translateX(-50%); }
.dir.e  { right: 12px;  top: 50%;  transform: translateY(-50%); }
.dir.w  { left: 12px;   top: 50%;  transform: translateY(-50%); }
.dir.ne { top: 20%;     right: 20%; font-size: 0.75rem; opacity: 0.7; }
.dir.se { bottom: 20%;  right: 20%; font-size: 0.75rem; opacity: 0.7; }
.dir.sw { bottom: 20%;  left: 20%;  font-size: 0.75rem; opacity: 0.7; }
.dir.nw { top: 20%;     left: 20%;  font-size: 0.75rem; opacity: 0.7; }

#needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 42%;
    transform-origin: center bottom;
    transform: translate(-50%, -100%) rotate(0deg);
    background: linear-gradient(to top, #ef4444 0%, #dc2626 50%, #7f1d1d 100%);
    clip-path: polygon(50% 0%, 100% 100%, 50% 92%, 0% 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    transition: box-shadow 0.4s;
    z-index: 4;
}
#needleSouth {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 42%;
    transform-origin: center top;
    transform: translate(-50%, 0) rotate(0deg);
    background: linear-gradient(to bottom, #94a3b8 0%, #64748b 100%);
    clip-path: polygon(50% 100%, 100% 0%, 50% 8%, 0% 0%);
    border-radius: 0 0 4px 4px;
    z-index: 4;
}
#needle.north-glow {
    box-shadow: 0 0 20px 6px rgba(239, 68, 68, 0.7);
}

#centerDot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-light), var(--gold-dark));
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold), inset 0 0 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

#accuracyRing {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

#qiblaMarker {
    position: absolute;
    top: 4px;
    left: 50%;
    transform-origin: 50% 156px;
    transform: translateX(-50%) rotate(0deg);
    font-size: 1.6rem;
    z-index: 4;
    display: none;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}
#qiblaMarker.visible { display: block; }
@media (max-width: 640px) {
    #qiblaMarker { transform-origin: 50% 126px; font-size: 1.4rem; }
}

/* State: Kiblat tepat -> hijau + efek glow */
#qiblaMarker.qibla-aligned {
    filter: drop-shadow(0 0 8px #22c55e) drop-shadow(0 0 14px #16a34a);
    animation: qiblaPulse 1.2s ease-in-out infinite;
}
#dial.qibla-aligned {
    box-shadow:
        0 0 0 3px #22c55e,
        0 0 24px 4px rgba(34, 197, 94, 0.55),
        inset 0 0 24px rgba(34, 197, 94, 0.25);
    transition: box-shadow 0.3s ease;
}
#dial.qibla-aligned #needle {
    filter: drop-shadow(0 0 6px #22c55e);
}
@keyframes qiblaPulse {
    0%, 100% { transform: translateX(-50%) rotate(var(--r, 0deg)) scale(1); }
    50%      { transform: translateX(-50%) rotate(var(--r, 0deg)) scale(1.15); }
}

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

/* ----- Info Grid ------------------------------------------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 460px;
}
@media (min-width: 500px) {
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}

.info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.info-label {
    font-size: 0.72rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 4px 0 0;
    color: var(--gold);
}

.coord-line, .location-line {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--fg-muted);
    text-align: center;
}
.location-line { font-weight: 500; color: var(--fg); }

/* ----- Buttons --------------------------------------------------- */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}
.btn {
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-alt);
    color: var(--fg);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.btn:hover { background: var(--bg-glass); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary); filter: brightness(1.1); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border-color: var(--gold-dark);
    font-weight: 700;
}

.error { color: var(--danger); font-size: 0.85rem; text-align: center; margin: 4px 0; min-height: 1em; }
.status { color: var(--success); font-size: 0.85rem; text-align: center; margin: 4px 0; min-height: 1em; }

/* ================================================================
   PRAYER PAGE
   ================================================================ */
.prayer-section {
    max-width: 640px;
    margin: 0 auto;
}

.next-prayer-card {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.next-prayer-card::before {
    content: '🕌';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.12;
}
.next-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.next-prayer-card h3 {
    font-size: 2rem;
    margin: 8px 0 4px;
    font-weight: 700;
}
.next-time {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
}
.countdown {
    font-size: 1rem;
    margin: 4px 0 0;
    font-weight: 500;
    opacity: 0.85;
}

.prayer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.prayer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    transition: transform 0.2s, background 0.2s;
    backdrop-filter: blur(6px);
}
.prayer-item:hover { transform: translateX(4px); }
.prayer-item.current {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}
.prayer-icon { font-size: 1.7rem; }
.prayer-info { flex: 1; display: flex; flex-direction: column; }
.prayer-info strong { font-size: 1.05rem; color: var(--fg); }
.prayer-info small { color: var(--fg-muted); font-size: 0.78rem; }
.prayer-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.prayer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.select-label { font-size: 0.9rem; font-weight: 500; }
.select-input {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--fg);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ================================================================
   LOCATION PAGE
   ================================================================ */
.location-section { max-width: 720px; margin: 0 auto; }

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--fg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.quick-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.quick-loc {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--fg);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.quick-loc:hover {
    background: var(--gold);
    color: #0f172a;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.search-result-item {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.search-result-item:hover {
    background: var(--bg-glass);
    border-color: var(--gold);
}
.search-result-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--gold); }
.search-result-item p { margin: 0; font-size: 0.85rem; color: var(--fg-muted); }

.search-loading {
    text-align: center;
    color: var(--fg-muted);
    padding: 20px;
    font-style: italic;
}

.location-detail {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}
.location-detail h3 { color: var(--gold); margin-bottom: 12px; }
.location-detail p { margin: 6px 0; font-size: 0.92rem; }

/* ================================================================
   GUIDE & ABOUT PAGES
   ================================================================ */
.guide-section, .about-section {
    max-width: 780px;
    margin: 0 auto;
}

.guide-card, .about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.guide-card:hover, .about-card:hover {
    transform: translateY(-2px);
}
.guide-card h3, .about-card h3 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.guide-card ul, .about-card ul {
    padding-left: 20px;
    margin: 8px 0;
}
.guide-card li, .about-card li {
    margin: 6px 0;
    line-height: 1.55;
    color: var(--fg);
}
.about-card { line-height: 1.6; }
.about-card.center { text-align: center; }
.about-logo { text-align: center; margin-bottom: 12px; }

.dedication {
    font-family: var(--font-arabic), serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    line-height: 1.7;
}
.dedication-src {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-top: 6px;
}

/* ================================================================
   FOOTER & TOAST
   ================================================================ */
.footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--fg-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: var(--bg-alt);
    color: var(--fg);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 5000;
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 32px);
    text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ================================================================
   UTILITIES & SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 6px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.WarnaNamaPengembang {
    color: #FFFFFF;
}