/* ===== HEADER OVERRIDES ===== */
.header-nav .navbar {
    background: #7d0e0e !important;
}

.header-nav .navbar .navbar-nav .nav-link i {
    font-size: 15px !important;
    margin-right: 6px;
}

.header-nav .navbar .navbar-nav .nav-link svg {
    width: 16px;
    height: 16px;
    vertical-align: -0.125em;
    margin-right: 4px;
}

.header .header__mid .header-form .btn-masuk {
    background: #E4E404 !important;
    border: 1px solid #E4E404 !important;
    color: #000 !important;
    font-weight: 700;
    min-width: auto;
    padding: 8px 20px;
}

.header .header__mid .header-form .btn-masuk:hover {
    background: #c9c900 !important;
    border-color: #c9c900 !important;
}

.header .header__mid .header-form .btn-daftar-header {
    background: transparent !important;
    border: 2px solid #E4E404 !important;
    color: #E4E404 !important;
    font-weight: 700;
    min-width: auto;
    padding: 7px 20px;
}

.header .header__mid .header-form .btn-daftar-header:hover {
    background: #E4E404 !important;
    color: #000 !important;
}

/* ===== FOOTER SECTIONS ===== */
.footer1 {
    background: #172630;
    color: #8299a8;
    padding: 20px 0;
    border-top: 1px solid #ffcc00;
    font-size: 13px;
}

.footer1 .footer__trademark {
    background: transparent;
    color: #8299a8;
    font-size: 12px;
    font-weight: normal;
    padding: 5px 0 0;
    text-align: center;
}

.footer2 {
    background: #0e181f;
}

/* ===== FOOTER LAYOUT ===== */
.footer1-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 10px 0;
}

.footer1-text {
    flex: 1;
    color: #8299a8;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

.footer1-text p {
    margin: 0;
}

.footer1-favicon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex: 0 0 auto;
    align-self: center;
}

.footer1-social {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}

.footer1-social-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    transition: opacity 0.2s;
}

.footer-social-btn:hover {
    opacity: 0.8;
}

.footer-social-telegram {
    background: #0088cc;
}

.footer-social-facebook {
    background: #1877F2;
}

.footer1-copyright {
    color: #8299a8;
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}

.footer1-copyright strong {
    color: #FFE000;
    font-size: 13px;
    display: block;
    animation: rubyShine 1s ease-in-out infinite;
}

@keyframes rubyShine {
    0%   { color: #FFE000; text-shadow: 0 0 6px #FFE000, 0 0 12px #FFD700; }
    50%  { color: #fff8a0; text-shadow: 0 0 20px #FFE000, 0 0 40px #FFD700, 0 0 60px #FFA500; }
    100% { color: #FFE000; text-shadow: 0 0 6px #FFE000, 0 0 12px #FFD700; }
}

@media screen and (max-width: 768px) {
    .footer1-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer1-favicon {
        width: 55px;
        height: 55px;
    }
    .footer1-social {
        min-width: unset;
    }
    .footer1-text {
        text-align: center;
    }
}

.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-modal-content {
    background: rgba(122, 0, 0, 0.45);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.glass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.glass-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.glass-modal img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.glass-modal-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.glass-modal-body {
    color: #fff;
    line-height: 1.6;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2%;
    margin-top: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}

.countdown-number {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.countdown-label {
    font-size: 14px;
    color: #ddd;
}

/* ===== MOBILE OVERRIDES ===== */
@media screen and (max-width: 1080px) {
    /* Remove marquee on mobile */
    .header-mobile__marquee {
        display: none !important;
    }

    /* Yellow Masuk (Login) button INSIDE sidenav */
    .sidenav .sidenav__header .sidenav__header-button .sidenav-button .btn-login {
        background: linear-gradient(to bottom, #FFE000 0%, #E4B800 100%) !important;
        border: 1px solid #E4B800 !important;
        color: #000 !important;
        font-weight: 700 !important;
    }

    /* Yellow Daftar (Register) button INSIDE sidenav */
    .sidenav .sidenav__header .sidenav__header-button .sidenav-button .btn-register {
        background: linear-gradient(to bottom, #FFE000 0%, #E4B800 100%) !important;
        border: 1px solid #E4B800 !important;
        color: #000 !important;
        font-weight: 700 !important;
    }

    /* Hide background image on mobile */
    .main-content {
        background-image: none !important;
        background-color: #1e1e2a !important;
    }

    /* Balanced mobile header */
    .header-mobile__top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
    }
    .header-mobile__top .mobile-logo {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .header-mobile__top .mobile-button {
        flex: 0 0 auto !important;
        gap: 5px !important;
    }

    /* Sidenav interior color overrides */
    .sidenav {
        background: #2e0a0a !important;
        border-color: #601010 !important;
    }
    .sidenav .sidenav__header {
        background: #160000 !important;
        border-bottom: 1px solid #FFE000 !important;
    }
    .sidenav .sidenav__header .sidenav-button-title {
        color: #fff !important;
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    /* Sidenav nav links — clean white text on dark purple */
    .sidenav ul li a {
        color: #fff !important;
        background: transparent !important;
    }
    .sidenav ul li {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
        transition: background 0.15s;
    }
    .sidenav ul li:hover {
        background: rgba(255, 224, 0, 0.08) !important;
    }
    .sidenav ul li a svg {
        color: #FFE000 !important;
        fill: #FFE000 !important;
    }

    /* Mobile footer GIF icons */
    .footer-gif {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }
    /* Zeus center button — GIF fills the full circle */
    .footer-mobile .footer-item.footer-login .footer-icon {
        overflow: hidden !important;
        background: none !important;
        padding: 0 !important;
    }
    .footer-gif--center {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block !important;
    }

    /* Fixed footer — prevents sliding on scroll (iOS Safari fix) */
    .footer-mobile {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}