/* --- CORE UTILITIES --- */
:root {
    --brand-primary: #5b21b6;
    --brand-secondary: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --premium-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.glass-morph {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-glow {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* --- PREMIUM TEXTURES --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* --- ADVANCED BUTTONS --- */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.btn-magnetic:hover {
    transform: scale(1.05) translateY(-2px);
}

/* --- GLASS CARDS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--brand-primary);
    transform: translateY(-5px);
}

/* --- ELEGANT HERO TEXT --- */
.hero-title {
    color: #ffffff;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.glass-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

/* --- HERO & LANDING --- */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../image/hero_bg_clean.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000;
}

.text-shadow {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.btn-pulse {
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(91, 33, 182, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0);
    }
}

/* --- CARDS & PANELS --- */
.card-premium {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(91, 33, 182, 0.15);
    border-color: rgba(91, 33, 182, 0.2);
}

.badge-float {
    animation: badge-float 4s ease-in-out infinite;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- AUTH & MODALS --- */
#view-login.active {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 48px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.otp-field,
.reset-otp-field {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 2px solid #e2e8f0 !important;
    font-size: 2rem !important;
    height: 70px !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.otp-field:focus,
.reset-otp-field:focus {
    border-color: #9333ea !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 8px rgba(147, 51, 234, 0.1) !important;
    transform: scale(1.05);
}

/* --- PREMIUM MODERN MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.modal-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: currentColor;
    border-radius: inherit;
}

/* Modal Types */
.modal-success {
    color: #10b981;
}

.modal-danger {
    color: #f43f5e;
}

.modal-warning {
    color: #f59e0b;
}

.modal-info {
    color: #6366f1;
}

.modal-btn {
    flex: 1;
    padding: 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-confirm {
    color: white;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

/* --- SCROLL PROGRESS & CUSTOM SCROLLBAR --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    z-index: 1000;
    width: 0%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* --- FLOATING CONTACT --- */
.floating-contact {
    box-shadow: 0 20px 40px -10px rgba(91, 33, 182, 0.4);
}

.floating-contact:hover {
    box-shadow: 0 30px 60px -12px rgba(91, 33, 182, 0.5);
}

/* --- STATISTICS BAR --- */
.stat-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* --- PAGINATION --- */
.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    transition: all 0.3s;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.pagination-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 10px 20px -5px rgba(91, 33, 182, 0.3);
}

.pagination-btn:hover:not(.active) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* --- PREMIUM LIGHTBOX --- */
#lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-img {
    max-height: 85vh;
    max-width: 90vw;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-modal.active #lightbox-img {
    transform: scale(1) translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #f43f5e;
    transform: rotate(90deg);
}