@keyframes volcano-logo-glow {
    0% {
        filter: drop-shadow(0 0 8px rgba(160, 90, 255, 0.6)) drop-shadow(0 0 18px rgba(122, 53, 211, 0.38));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(186, 120, 255, 0.88)) drop-shadow(0 0 28px rgba(140, 70, 235, 0.6));
        transform: scale(1.02);
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(160, 90, 255, 0.6)) drop-shadow(0 0 18px rgba(122, 53, 211, 0.38));
        transform: scale(1);
    }
}

body[data-bs-theme="dark"] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main#go-to-bottom-div {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
}

.volcano-top-lava {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 12050;
    background: linear-gradient(90deg, #8c1500, #e83000, #ff8c42, #e83000, #8c1500);
    background-size: 200% 100%;
    animation: volcano-lava-slide 4s linear infinite;
    pointer-events: none;
}

@keyframes volcano-lava-slide {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.header-nav .navigation {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 12040;
    height: 72px;
    line-height: 72px;
}

.header-nav .sub-navigation {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 12030;
}

.header-nav.small-header {
    height: 130px;
}

body.shop-page .header-nav.small-header {
    height: 108px;
}

.header-nav .header-content {
    height: 100vh;
    padding-top: 112px;
}

main#go-to-bottom-div.pt-5 {
    padding-top: 8.25rem !important;
}

body.shop-page main#go-to-bottom-div.pt-5 {
    padding-top: 1.6rem !important;
}

.header-nav .header-nav-top-mid {
    top: -6px;
}

.header-nav .header-nav-top-mid .item img,
.header-mobile-nav .mobile-logo img,
.mobile-menu-logo {
    animation: volcano-logo-glow 2.8s ease-in-out infinite;
    will-change: filter, transform;
}

.header-nav .header-nav-top-mid .item img {
    height: 112px;
    width: auto;
}

/* Header auth buttons polish (desktop sub-navigation). */
.header-nav-bottom-right {
    gap: 0.55rem !important;
}

.header-nav-bottom-right .item {
    display: flex;
    align-items: center;
}

.header-nav-bottom-right .sub-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 6px 14px;
    line-height: 1;
    font-size: 11px;
    letter-spacing: 0.9px;
    border: 1px solid rgba(232, 48, 0, 0.5);
    background: rgba(12, 8, 8, 0.55);
    color: #f1e8e2;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-nav-bottom-right .sub-nav-btn i {
    font-size: 12px;
}

.header-nav-bottom-right .sub-nav-btn:hover {
    color: #ffffff;
    border-color: #ff8c42;
    background: rgba(232, 48, 0, 0.28);
}

.header-nav-bottom-right .sub-nav-btn-register {
    background: linear-gradient(90deg, rgba(140, 21, 0, 0.95), rgba(232, 48, 0, 0.95));
    border-color: #e83000;
    color: #ffffff;
}

.header-nav-bottom-right .sub-nav-btn-register:hover {
    background: linear-gradient(90deg, #e83000, #ff8c42);
    color: #ffffff;
}

.header-mobile-nav .mobile-logo img {
    height: 116px;
    width: auto;
}

.mobile-menu-logo {
    height: 124px;
    width: auto;
}

/* Shop package preview modal: wider and less tall with internal scrolling. */
#itemModal .modal-dialog {
    max-width: min(980px, 95vw) !important;
    width: 100%;
    min-height: calc(100vh - 4rem);
    margin: 1rem auto;
    display: flex;
    align-items: center;
}

#itemModal .modal-content {
    width: 100%;
    max-height: 66vh;
    display: flex;
    flex-direction: column;
}

#itemModal .modal-body {
    overflow-y: auto;
    max-height: calc(66vh - 116px);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    #itemModal .modal-dialog {
        max-width: 96vw !important;
        margin: 0.75rem auto;
        min-height: calc(100vh - 2rem);
    }

    #itemModal .modal-content {
        max-height: 72vh;
    }

    #itemModal .modal-body {
        max-height: calc(72vh - 112px);
    }
}
