@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    background-color: #121212;
    color: #ffffff;
}

/* Smooth Scrollbar - Dark */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #242424;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #4fc3f7;
}

.app-icon-frame {
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideUpSpring {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-spring-up {
    animation: slideUpSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pulseSoft {

    0%,
    100% {
        transform: scale(1);
        border-color: rgba(79, 195, 247, 0.3);
        background-color: rgba(79, 195, 247, 0.05);
    }

    50% {
        transform: scale(0.99);
        border-color: rgba(79, 195, 247, 0.6);
        background-color: rgba(79, 195, 247, 0.15);
    }
}

.active-drop {
    animation: pulseSoft 1.5s infinite;
}

@keyframes progressStripes {
    from {
        background-position: 1rem 0;
    }

    to {
        background-position: 0 0;
    }
}

.animate-stripes {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .1) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progressStripes 1s linear infinite;
}

.btn-press:active {
    transform: scale(0.96);
}

/* Dark Mode Tab Switcher */
.tab-btn {
    transition: all 0.3s;
}

.tab-btn.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.4);
}

.tab-btn.inactive {
    color: #c0c0c0;
}

.tab-btn:hover {
    color: #ffffff;
}

/* Panel Gradient Class */
.bg-panel-gradient {
    background: linear-gradient(135deg, #1E1E1E 0%, #242424 100%);
}

/* Hover Effect Class */
.hover-accent:hover {
    background-color: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Premium Modal & Overlay System --- */
.modal-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.active .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.modal-content-box {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.modal-container.active .modal-content-box {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 50px 0 rgba(79, 195, 247, 0.05);
}

.overlay-container {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(0px);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-container.active {
    visibility: visible;
    opacity: 1;
    background-color: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(16px);
}

.overlay-container .overlay-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.overlay-container.active .overlay-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ================= STANDARDIZED SPAC2 BRAND HEADER ================= */
.header-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
    padding: 0;
    box-sizing: border-box;
}

.btn-back i,
.btn-back svg {
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(-2px);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-back:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.brand-link:hover {
    opacity: 0.92;
}

.brand-logo-card {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    padding: 3.5px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-card {
    transform: scale(1.04);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.brand-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
    white-space: nowrap;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1;
}

.brand-divider {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.7;
    user-select: none;
}

.brand-app {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: -0.01em;
    line-height: 1;
}

@media (max-width: 640px) {
    .btn-back {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .brand-logo-card {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        padding: 3px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-divider {
        font-size: 13px;
    }

    .brand-app {
        font-size: 13px;
    }
}