/* ==================== ROOT VARIABLES ==================== */
:root {
    --bg-primary: #09090b;
    --bg-secondary: rgba(20, 20, 22, 0.4);
    --bg-tertiary: rgba(10, 10, 10, 0.3);
    --bg-card: rgba(255, 255, 255, 0.03);

    /* Accent Colors - Amber/Gold */
    --accent-primary: #ffffff;
    --accent-secondary: #10b981;
    --accent-danger: #ef4444;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Glassmorphism Core Setup */
    --glass-bg: rgba(12, 12, 14, 0.82);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.13);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --glass-blur: blur(24px);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #09090b;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

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



/* Stars canvas layer */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Subtle Grid background overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Placed exactly behind stars (z-index 1) */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 35px 35px;
    opacity: 0.05;
}



/* ==================== LOGIN PAGE ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-md);
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.8rem 2.4rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    animation: cardReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-card>.logo-container,
.login-card>.login-title,
.login-card>.login-subtitle,
.login-card>.discord-btn,
.login-card>.features,
.login-card>.login-legal {
    opacity: 0;
    transform: translateY(20px);
    animation: itemReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-card>.logo-container {
    animation-delay: 0.2s;
}

.login-card>.login-title {
    animation-delay: 0.5s;
}

.login-card>.login-subtitle {
    animation-delay: 0.8s;
}

.login-card>.discord-btn {
    animation: itemReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, buttonBreath 4s ease-in-out infinite;
    animation-delay: 1.1s, 1.1s;
}

.login-card>.features {
    animation-delay: 1.4s;
}

.login-card>.login-legal {
    animation-delay: 1.7s;
}

@keyframes itemReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Logo area */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: bgBreath 4s ease-in-out infinite;
}

@keyframes bgBreath {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.85);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.logo-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {

    0%,
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 35px rgba(255, 255, 255, 0.45);
    }
}

.logo-icon-box i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #38bdf8, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #c9ccd1 50%, #aeb2ba 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: textBreath 3s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 0.4rem;
}

@keyframes textBreath {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65));
    }
}

@keyframes holoText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo-underline {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #c9ccd1);
    border-radius: 999px;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.login-title {
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.4rem;
    color: rgba(220, 230, 255, 0.9);
    letter-spacing: 0.02em;
}

.login-subtitle {
    font-size: 0.88rem;
    text-align: center;
    color: rgba(150, 165, 210, 0.75);
    margin-bottom: 1.8rem;
}

/* Discord Button */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #aeb2ba 100%);
    color: #09090b;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.55s;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #c9ccd1 0%, #ffffff 100%);
    animation-play-state: paused !important;
}

.discord-btn:active {
    transform: translateY(0);
}

@keyframes buttonBreath {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 12px 35px rgba(255, 255, 255, 0.55);
    }
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(90, 110, 200, 0.18);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(150, 165, 210, 0.8);
    font-weight: 500;
    cursor: default;
}

.feature i {
    font-size: 1.25rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature:hover i {
    transform: scale(1.3) translateY(-3px) rotate(8deg);
    color: #c9ccd1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Legal */
.login-legal {
    margin-top: 1.2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-legal a,
.login-legal a:visited {
    color: rgba(130, 150, 200, 0.7) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-legal a:hover,
.login-legal a:focus {
    color: #ffffff !important;
}

/* ==================== ERROR PAGE ==================== */
.error-card {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    animation: cardReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error-card>.error-icon,
.error-card>.error-title,
.error-card>.error-desc,
.error-card>.error-desc-sub,
.error-card>.try-again-btn,
.error-card>.error-legal {
    opacity: 0;
    transform: translateY(20px);
    animation: itemReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error-card>.error-icon {
    animation-delay: 0.2s;
}

.error-card>.error-title {
    animation-delay: 0.5s;
}

.error-card>.error-desc {
    animation-delay: 0.8s;
}

.error-card>.error-desc-sub {
    animation-delay: 1.1s;
}

.error-card>.try-again-btn {
    animation-delay: 1.4s;
}

.error-card>.error-legal {
    animation-delay: 1.7s;
}

.error-icon {
    width: 38px;
    height: 38px;
    background: #ef4444;
    /* red icon */
    color: #111;
    /* dark exclamation mark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}

.error-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.error-desc,
.error-desc-sub {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(240, 245, 255, 0.95);
    line-height: 1.6;
}

.error-desc {
    margin-bottom: 1.5rem;
}

.error-desc-sub {
    margin-bottom: 2.5rem;
}

.try-again-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    background: #ffffff;
    color: #09090b;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 2rem;
}

.try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
    background: #aeb2ba;
}

.error-legal {
    font-size: 0.85rem;
    color: rgba(150, 165, 210, 0.75);
}

.error-legal a {
    color: #c9ccd1 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.error-legal a:hover {
    color: #e8eaed !important;
}

/* ==================== DASHBOARD ==================== */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--christmas-gold) 0%, var(--christmas-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(22, 199, 132, 0.2) 100%);
    color: var(--text-primary);
    border-left: 3px solid var(--christmas-gold);
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
}

.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--christmas-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    padding: 0.5rem;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--spacing-lg);
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    transition: all var(--transition-normal);
}

.search-bar:focus-within {
    border-color: var(--christmas-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--christmas-gold) 0%, var(--christmas-red) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.content-body {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--christmas-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scripts Grid */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.script-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    animation: cardSlideUp 0.6s ease backwards;
}

.script-card:nth-child(1) {
    animation-delay: 0.1s;
}

.script-card:nth-child(2) {
    animation-delay: 0.2s;
}

.script-card:nth-child(3) {
    animation-delay: 0.3s;
}

.script-card:nth-child(4) {
    animation-delay: 0.4s;
}

.script-card:nth-child(5) {
    animation-delay: 0.5s;
}

.script-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.script-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px var(--glass-shadow),
        0 0 40px rgba(255, 215, 0, 0.2);
    border-color: var(--christmas-gold);
}

.card-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.375rem 0.875rem;
    background: var(--accent-secondary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(22, 199, 132, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.05);
    }
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.script-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.script-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 3rem;
    color: var(--christmas-white);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.download-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    color: var(--christmas-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    box-shadow: 0 8px 20px rgba(22, 199, 132, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(22, 199, 132, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .scripts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
    }

    .search-bar {
        max-width: 100%;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .tree {
        font-size: 4rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, var(--christmas-red) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-gold) 100%);
}

/* ==================== LOADING ANIMATION ==================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, var(--bg-tertiary) 4%, var(--bg-secondary) 25%, var(--bg-tertiary) 36%);
    background-size: 1000px 100%;
}

/* ==================== ADVANCED UI EFFECTS ==================== */
/* 1. Radial Background Glow */
.bg-radial-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.bg-radial-glow.visible {
    opacity: 1;
}

/* 2. Magnetic Buttons */
.magnetic-btn {
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ==================== CUSTOM CLICK EFFECTS ==================== */

.click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid #ffffff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rippleAnim 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    z-index: 9998;
}

@keyframes rippleAnim {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
        border-width: 3px;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        border-width: 0px;
    }
}
/* Custom Top Bar Buttons */
.decrypt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255,0.15);
    border: 1px solid rgba(255, 255, 255,0.4);
    color: #c9ccd1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    font-family: 'Poppins', sans-serif;
}

.decrypt-btn:hover {
    background: rgba(255, 255, 255,0.25);
    border-color: rgba(255, 255, 255,0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    color: #fcd34d;
}

.fixer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.4);
    color: #60a5fa;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    font-family: 'Poppins', sans-serif;
}

.fixer-btn:hover {
    background: rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}
