:root {
    --primary: #07224f;
    --primary-dark: #041533;
    --gold: #dfb15b;
    --gold-dark: #b88628;
    --crimson: #9e1329;
    --bg-body: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #52627a;
    --border-soft: rgba(7, 34, 79, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #07224f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dfb15b;
}

/* Page Routing View Engine */
.page-view {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-view.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.royal-shadow {
    box-shadow: 0 10px 30px -10px rgba(7, 34, 79, 0.08), 0 4px 6px -2px rgba(7, 34, 79, 0.03);
}

.royal-card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(7, 34, 79, 0.12), 0 2px 4px rgba(223, 177, 91, 0.2);
    border-color: rgba(223, 177, 91, 0.4);
}

.regal-grid-bg {
    background-image: radial-gradient(rgba(7, 34, 79, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Preloader Styles — Forced display:none on .faded */
#site-preloader {
    position: fixed;
    inset: 0;
    background: #041533;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-preloader.faded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

@keyframes crownGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(223, 177, 91, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(223, 177, 91, 0.8));
        transform: scale(1.05);
    }
}

.animate-crown-glow {
    animation: crownGlow 2.5s infinite ease-in-out;
}

#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}