/* ============================================ */
/*  NEKOLABS - GLOBAL STYLESHEET                */
/*  Tema: Dark Neobrutalism                     */
/* ============================================ */

/* ============ GOOGLE FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --dark: #0D0D0D;
    --dark-alt: #141414;
    --card: #1A1A1A;
    --card-2: #222222;
    --border: #000000;
    --text: #FFFFFF;
    --text2: #A0A0A0;
    --primary: #E53935;
    --primary-hover: #D32F2F;
    --gold: #FFB703;
    --cyan: #00E5FF;
    
    /* Smooth Modern Radii (mengurangi kesan kaku / mengkotak) */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Smooth Layered Neobrutalism Shadows (tidak kasar patah) */
    --shadow-sm: 2px 3px 0 0 #000000, 0 4px 10px rgba(0, 0, 0, 0.35);
    --shadow: 3px 4px 0 0 #000000, 0 6px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 5px 7px 0 0 #000000, 0 14px 28px rgba(0, 0, 0, 0.5);
    --shadow-hover: 4px 6px 0 0 #000000, 0 10px 20px rgba(0, 0, 0, 0.45);
    --shadow-active: 1px 2px 0 0 #000000, 0 2px 6px rgba(0, 0, 0, 0.35);
    
    /* Silky Smooth Transitions */
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ UTILITY CLASSES ============ */
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-active);
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    background: var(--card-2);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-active);
}

.btn-outline-primary {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-active);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #25D366;
    color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-wa:hover {
    background-color: #1EAE50;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

/* ============ NAVBAR ============ */
.navbar {
    background-color: var(--dark);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.nav-logo i {
    color: #fff;
    background-color: var(--primary);
    font-size: 1.2rem;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 2px 2px 0 0 #000000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text2);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    padding: 0 20px 16px;
    border-top: 1px solid var(--border);
}

.mobile-link {
    display: block;
    padding: 12px 0;
    color: var(--text2);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
}

.mobile-auth {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-auth .btn-outline,
.mobile-auth .btn-primary {
    flex: 1;
    text-align: center;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    border: 2px solid var(--border);
    pointer-events: none;
    opacity: 1;
}

.glow-red {
    width: 220px;
    height: 220px;
    background-color: var(--primary);
    top: 10%;
    left: 5%;
    transform: rotate(-12deg);
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
}

.glow-cyan {
    width: 180px;
    height: 180px;
    background-color: var(--cyan);
    bottom: 8%;
    right: 6%;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.glow-gold {
    width: 120px;
    height: 120px;
    background-color: var(--gold);
    top: 45%;
    left: 80%;
    transform: rotate(45deg);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 40px;
    box-shadow: var(--shadow-lg);
    width: fit-content;
    margin: 0 auto;
}

.stat-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
}

.stat-label {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ============ SECTIONS ============ */
.section {
    padding: 80px 20px;
}

.section-dark {
    background-color: var(--card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.25rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-desc {
    color: var(--text2);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 48px;
}

/* ============ FEATURES GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.feature-icon.bg-red {
    background-color: var(--primary);
    color: #fff;
}

.feature-icon.bg-cyan {
    background-color: var(--cyan);
    color: var(--dark);
}

.feature-icon.bg-gold {
    background-color: var(--gold);
    color: var(--dark);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ============ STEPS GRID ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 auto 16px;
    box-shadow: var(--shadow);
}

.step-number.bg-red {
    background-color: var(--primary);
    color: #fff;
}

.step-number.bg-gold {
    background-color: var(--gold);
    color: var(--dark);
}

.step-number.bg-cyan {
    background-color: var(--cyan);
    color: var(--dark);
}

.step-item h3 {
    margin-bottom: 8px;
}

.step-item p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* ============ POP-UP UPDATE ============ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.hidden {
    display: none;
}

.popup-box {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border);
}

.popup-header h2 {
    font-size: 1.25rem;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--primary);
}

.popup-body {
    padding: 20px 24px;
}

.popup-version {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.popup-section {
    margin-bottom: 16px;
}

.popup-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.popup-section ul {
    list-style: disc;
    padding-left: 20px;
}

.popup-section li {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.popup-date {
    color: var(--text2);
    font-size: 0.85rem;
    margin-top: 8px;
}

.popup-footer {
    padding: 16px 24px;
    border-top: 2px solid var(--border);
    text-align: right;
}

/* ============ FOOTER ============ */
.footer {
    background-color: var(--dark);
    border-top: 2px solid var(--border);
    padding: 48px 20px 24px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo i {
    color: #fff;
    background-color: var(--primary);
    font-size: 1.2rem;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 2px 2px 0 0 #000000;
}

.footer-brand p {
    color: var(--text2);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text2);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-social .btn-wa {
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text2);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--card-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
}

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

/* ============================================ */
/*  AUTH PAGES (LOGIN & REGISTER)               */
/* ============================================ */

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: var(--shadow);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

.form-group input::placeholder {
    color: var(--text2);
    opacity: 0.6;
}

.form-hint {
    display: block;
    color: var(--text2);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--primary);
    background-color: rgba(229, 57, 53, 0.1);
}

/* Button Block */
.btn-block {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    text-align: center;
}

.btn-block i {
    margin-right: 6px;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border);
}

.auth-divider span {
    position: relative;
    background-color: var(--card);
    padding: 0 14px;
    color: var(--text2);
    font-size: 0.85rem;
}

/* Error State */
.form-group input.error {
    border-color: var(--primary);
    box-shadow: 3px 3px 0 0 var(--primary);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

/* Loading Button */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover {
    background-color: var(--primary);
    transform: none !important;
    box-shadow: none !important;
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 768px) {
    .nav-links,
    .nav-auth {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .popup-box {
        width: 95%;
    }

    .section {
        padding: 60px 16px;
    }
}

/* ============================================ */
/*  DASHBOARD LAYOUT                            */
/* ============================================ */

.dashboard-page {
    background-color: var(--dark);
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ============ SIDEBAR ============ */
.dashboard-sidebar {
    width: 260px;
    background-color: var(--card);
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    padding: 16px 18px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header-title i {
    font-size: 1.2rem;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: 2px solid transparent;
    color: var(--text2);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}

.sidebar-close-btn:hover {
    color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    border-color: var(--border);
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Custom Sleek Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text2);
    letter-spacing: 1px;
    padding: 12px 10px 4px;
    text-transform: uppercase;
    opacity: 0.7;
    user-select: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--text2);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    user-select: none;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sidebar-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link .badge {
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--text);
    border-color: rgba(229, 57, 53, 0.25);
}

.sidebar-link.active {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-footer {
    padding: 12px 14px;
    border-top: 2px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.sidebar-footer .btn-outline {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.sidebar-overlay.open {
    display: block;
}

/* ============ MAIN CONTENT ============ */
.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
    overflow-y: auto;
}

.dashboard-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.dashboard-topbar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ============ DASHBOARD TABS ============ */
.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============ DASH CARD ============ */
.dash-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.dash-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-header h3 i {
    color: var(--primary);
}

.dash-card-body {
    padding: 20px;
}

/* Badge */
.badge {
    background-color: var(--gold);
    color: var(--dark);
    border: 2px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 2px 2px 0 0 #000000;
}

/* ============ DASH FORM ============ */
.dash-form .form-group {
    margin-bottom: 16px;
}

.dash-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.dash-form .form-group input,
.dash-form .form-group select,
.dash-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.dash-form .form-group input:focus,
.dash-form .form-group select:focus,
.dash-form .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

.dash-form .form-group textarea {
    resize: vertical;
}

.dash-form .form-group select {
    cursor: pointer;
}

.dash-form .form-group select option {
    background-color: var(--card);
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    display: block;
    color: var(--text2);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ============ MOD LIST ============ */
.mod-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.mod-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.mod-item-info {
    flex: 1;
    min-width: 0;
}

.mod-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
}

.mod-category {
    display: inline-block;
    background-color: var(--cyan);
    color: var(--dark);
    border: 2px solid var(--border);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mod-desc {
    color: var(--text2);
    font-size: 0.85rem;
    margin-bottom: 8px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mod-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mod-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.status-pending {
    background-color: var(--gold);
    color: var(--dark);
    border: 2px solid var(--border);
}

.status-approved {
    background-color: #4CAF50;
    color: #fff;
    border: 2px solid var(--border);
}

.status-rejected {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--border);
}

.mod-date {
    color: var(--text2);
    font-size: 0.78rem;
}

.mod-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.btn-danger {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger:hover {
    background-color: rgba(229, 57, 53, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text2);
    margin-bottom: 16px;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ============ RESPONSIVE DASHBOARD ============ */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.8);
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        z-index: 1040;
    }

    .dashboard-topbar {
        display: flex;
    }

    .dashboard-main {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mod-item {
        flex-direction: column;
    }

    .mod-item-actions {
        justify-content: flex-end;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dash-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-box {
        width: 95%;
        max-height: 90vh;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* ============ ADMIN EXTRA STYLES ============ */

.dash-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    padding: 6px 12px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-select option {
    background-color: var(--card);
    color: var(--text);
}

.mod-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.mod-uploader {
    color: var(--text2);
    font-size: 0.8rem;
}

.badge-sm {
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: auto;
}

.btn-approve {
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.btn-approve:hover {
    background-color: rgba(76, 175, 80, 0.1) !important;
}

.btn-danger-bg {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-danger-bg:hover {
    background-color: var(--primary-hover) !important;
}

.bg-red {
    background-color: rgba(229, 57, 53, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.mt-4 {
    margin-top: 16px;
}

/* ============================================ */
/*  MODS PAGE                                   */
/* ============================================ */

/* Mods Header */
.mods-header {
    padding: 48px 20px 24px;
    text-align: center;
    background: linear-gradient(to bottom, var(--card), var(--dark));
    border-bottom: 1px solid var(--border);
}

.mods-header-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mods-header-content p {
    color: var(--text2);
    font-size: 1rem;
}

/* Filter Section */
.mods-filter-section {
    padding: 16px 20px;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 30;
}

.mods-filter-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text2);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.search-box input::placeholder {
    color: var(--text2);
}

/* Mods List */
.mods-list-section {
    padding: 24px 20px 60px;
}

.mods-list-container {
    max-width: 1100px;
    margin: 0 auto;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Mod Card */
.mod-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mod-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.mod-card-body {
    padding: 20px;
    flex: 1;
}

.mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mod-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
}

.mod-card-desc {
    color: var(--text2);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.mod-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.mod-card-footer .btn-primary {
    flex: 1;
    text-align: center;
}

/* ============ RESPONSIVE MODS ============ */

@media (max-width: 768px) {
    .mods-header-content h1 {
        font-size: 1.5rem;
    }

    .mods-filter-container {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .mods-filter-container select {
        width: 100%;
    }

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

    .mod-card-footer {
        flex-direction: column;
    }

    .mod-card-footer .btn-sm {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================ */
/*  TOOLS PAGE                                  */
/* ============================================ */

.tools-section {
    padding: 24px 20px 60px;
}

.tools-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tool Card */
.tool-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.tool-card:hover {
    border-color: var(--cyan);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.tool-card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-card-header p {
    color: var(--text2);
    font-size: 0.85rem;
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.tool-card-body {
    padding: 24px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--cyan);
    background-color: rgba(0, 188, 212, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 12px;
}

.upload-area p {
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-area span {
    color: var(--text2);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

/* Upload Progress */
.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress p {
    color: var(--text2);
    font-size: 0.9rem;
}

/* Upload Result */
.upload-result {
    text-align: center;
}

.result-box {
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.result-box span {
    display: block;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 12px;
}

.result-link {
    display: flex;
    gap: 8px;
}

.result-link input {
    flex: 1;
    padding: 10px 14px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}

.result-link input:focus {
    border-color: var(--cyan);
}

#resultInfo {
    color: var(--text2);
    font-size: 0.8rem;
    display: block;
    margin-top: 8px;
}

/* Downloader Placeholder */
.downloader-placeholder {
    text-align: center;
    padding: 40px;
}

.downloader-placeholder i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 12px;
}

.downloader-placeholder p {
    color: var(--text2);
    font-size: 1rem;
    margin-bottom: 6px;
}

.downloader-placeholder small {
    color: var(--text2);
    font-size: 0.8rem;
}

/* ============ RESPONSIVE TOOLS ============ */

@media (max-width: 768px) {
    .tool-card-header {
        flex-direction: column;
        text-align: center;
    }

    .upload-area {
        padding: 24px;
    }

    .result-link {
        flex-direction: column;
    }

    .result-link button {
        width: 100%;
    }
}

/* ============================================ */
/*  AI CHAT PAGE                                */
/* ============================================ */

.chat-page {
    background-color: var(--dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--card);
    border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: 20px auto;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--card);
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.chat-header-left h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.chat-header-left p {
    font-size: 0.78rem;
    color: var(--text2);
}

/* Mode Toggle */
.chat-mode-toggle {
    display: flex;
    gap: 4px;
    background-color: var(--dark);
    border-radius: var(--radius-full);
    padding: 3px;
}

.mode-btn {
    padding: 7px 14px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.mode-btn:hover {
    color: var(--text);
}

.mode-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

/* Welcome */
.chat-welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(229, 57, 53, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: var(--cyan);
}

.chat-welcome h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.chat-welcome p {
    color: var(--text2);
    margin-bottom: 20px;
}

.welcome-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hint {
    padding: 8px 14px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text2);
    cursor: pointer;
    transition: var(--transition);
}

.hint:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 0 var(--cyan);
}

/* Chat Message */
.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background-color: var(--primary);
    color: white;
}

.chat-message.ai .message-avatar {
    background-color: var(--cyan);
    color: white;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.user .message-bubble {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--border);
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-bubble {
    background-color: var(--card-2);
    border: 2px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--text2);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-area {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background-color: var(--card);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-wrapper input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.chat-input-wrapper button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area small {
    display: block;
    text-align: center;
    color: var(--text2);
    font-size: 0.72rem;
    margin-top: 8px;
}

/* ============ RESPONSIVE CHAT ============ */

@media (max-width: 768px) {
    .chat-container {
        border: none;
    }

    .chat-header {
        flex-direction: column;
        gap: 10px;
    }

    .chat-mode-toggle {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
        text-align: center;
    }

    .message-bubble {
        max-width: 85%;
    }

    .welcome-hints {
        flex-direction: column;
        align-items: center;
    }

    .hint {
        width: 100%;
        text-align: center;
    }
}

/* ============================================ */
/*  MUSIC PLAYER (HOME ONLY)                    */
/* ============================================ */

.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.music-player.collapsed .music-info {
    display: none;
}

.music-player.collapsed {
    padding: 8px;
    border-radius: var(--radius-full);
}

.music-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--border);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: 4px 4px 0 0 var(--primary); }
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-controls button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text2);
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.music-controls button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#volumeSlider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* ============ RESPONSIVE MUSIC PLAYER ============ */
@media (max-width: 480px) {
    .music-player {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
    }

    .music-info {
        gap: 6px;
    }

    .music-title {
        font-size: 0.7rem;
    }

    #volumeSlider {
        width: 40px;
    }
}

/* ============================================ */
/*  KUROLABS - BADGE ADMIN & AVATAR MINI        */
/* ============================================ */
.badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFB300, #FF6F00);
    color: #121212 !important;
    border: 2px solid #FFD54F;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.45);
    vertical-align: middle;
    user-select: none;
}

.badge-admin i {
    font-size: 0.75rem;
    color: #121212;
}

.avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
    vertical-align: middle;
    display: inline-block;
}

.mod-uploader-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mod-uploader-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.mod-uploader-link:hover {
    color: var(--primary);
}

/* ============================================ */
/*  KUROLABS - PROFILE PAGE                     */
/* ============================================ */
.profile-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

.profile-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 4px 4px 0px var(--border);
    background: var(--dark);
    display: block;
}

.profile-info {
    flex: 1;
    min-width: 260px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.profile-display-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.profile-username-tag {
    font-size: 0.95rem;
    color: var(--text2);
    font-family: monospace;
    margin-bottom: 14px;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text);
    background: var(--dark);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text2);
    font-size: 0.88rem;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Profile Stats Bar */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.profile-stat-box {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.profile-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text2);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Preset Avatars */
.avatar-preset-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.avatar-preset-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    object-fit: cover;
    transition: var(--transition);
}

.avatar-preset-item:hover,
.avatar-preset-item.active {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

@media (max-width: 640px) {
    .profile-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-name-row {
        justify-content: center;
    }
    .profile-meta-row {
        justify-content: center;
    }
    .profile-actions {
        justify-content: center;
    }
}

/* ============================================ */
/*  KUROLABS - SEARCH CREATORS SUGGESTIONS      */
/* ============================================ */
.search-creators-banner {
    grid-column: 1 / -1;
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.search-creators-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-creators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.creator-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--dark);
    border: 2px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.creator-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
    color: var(--primary);
}

.creator-chip small {
    color: var(--text2);
    font-size: 0.78rem;
    font-family: monospace;
}

/* ============================================ */
/*  KUROLABS - NAVBAR USER PILL (CLEAN NAVBAR)  */
/* ============================================ */
.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
}

.nav-user-pill:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.25);
    color: var(--primary);
}

.nav-user-pill .avatar-mini {
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--primary);
}

.nav-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================ */
/*  KUROLABS - MOD COMMENTS POP-UP & THREADS    */
/* ============================================ */
.modal-comments-box {
    max-width: 620px;
    width: 90%;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-comments-body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 18px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comments-header h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-input-box {
    margin-bottom: 16px;
}

.comment-textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    outline: none;
    transition: var(--transition);
}

.comment-textarea:focus {
    border-color: var(--primary);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    background: var(--dark);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.comment-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
}

.comment-author-name:hover {
    color: var(--primary);
}

.comment-date {
    font-size: 0.72rem;
    color: var(--text2);
}

.comment-body {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    margin-bottom: 8px;
}

.comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
}

.comment-btn-action {
    background: none;
    border: none;
    padding: 0;
    color: var(--text2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.comment-btn-action:hover {
    color: var(--primary);
}

.comment-btn-action.text-danger:hover {
    color: #FF5252;
}

/* Replies (Tanggapan Bersarang) */
.comment-replies-list {
    border-left: 2px solid var(--border);
    padding-left: 12px;
    margin-left: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
}

.inline-reply-box {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* ============================================ */
/*  CYBER TOGGLE SWITCH & SETTINGS              */
/* ============================================ */
.switch-control-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.switch-control-card:hover {
    border-color: rgba(0, 188, 212, 0.4);
}

.switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.switch-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border: 2px solid var(--border);
}

.switch-icon-box.danger {
    background: rgba(255, 82, 82, 0.1);
    color: #FF5252;
    border-color: #FF5252;
}

.switch-icon-box.warning {
    background: rgba(255, 179, 0, 0.1);
    color: #FFB300;
    border-color: #FFB300;
}

.switch-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.switch-subtitle {
    font-size: 0.82rem;
    color: var(--text2);
}

/* Toggle Switch */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark);
    transition: 0.2s ease;
    border-radius: 30px;
    border: 2px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.2s ease;
    border-radius: 50%;
    border: 1px solid #000;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider.slider-danger {
    background-color: #FF5252;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

.toggle-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.toggle-status-badge.active {
    background: rgba(0, 188, 212, 0.15);
    color: var(--cyan);
    border: 1px solid var(--border);
}

.toggle-status-badge.active.badge-danger {
    background: rgba(255, 82, 82, 0.15);
    color: #FF5252;
    border-color: rgba(255, 82, 82, 0.4);
}

.toggle-status-badge.inactive {
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    border: 1px solid var(--border);
}

/* ============================================ */
/*  GLOBAL ANNOUNCEMENT BAR                     */
/* ============================================ */
.site-announcement-bar {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    position: relative;
    z-index: 1001;
    border-bottom: 2px solid var(--border);
}

.site-announcement-bar.bar-info {
    background: var(--cyan);
    color: #000;
}

.site-announcement-bar.bar-warning {
    background: #FFB300;
    color: #000;
}

.site-announcement-bar.bar-danger {
    background: var(--primary);
    color: #fff;
}

.site-announcement-bar .bar-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    padding: 2px 6px;
    transition: opacity 0.2s;
    position: absolute;
    right: 16px;
}

.site-announcement-bar .bar-close:hover {
    opacity: 1;
}

/* ============================================ */
/*  ADMIN DASHBOARD - REALTIME METRICS STYLES   */
/* ============================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card {
    background-color: var(--dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.metric-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-icon-box.cyan {
    background: rgba(0, 188, 212, 0.15);
    color: #00BCD4;
}

.metric-icon-box.purple {
    background: rgba(156, 39, 176, 0.15);
    color: #BA68C8;
}

.metric-icon-box.green {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.metric-icon-box.orange {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

.metric-val-wrap {
    margin-bottom: 8px;
}

.metric-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    font-family: inherit;
    line-height: 1.2;
}

.metric-val-sub {
    font-size: 0.82rem;
    color: var(--text2);
    margin-top: 4px;
}

.metric-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 10px 0 8px 0;
}

.metric-bar-fill {
    height: 100%;
    border-radius: calc(var(--radius) - 1px);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.metric-bar-fill.cpu {
    background: linear-gradient(90deg, #00BCD4, #4CAF50);
}

.metric-bar-fill.cpu.high {
    background: linear-gradient(90deg, #FF9800, #FF5252);
}

.metric-bar-fill.ram {
    background: linear-gradient(90deg, #9C27B0, #E040FB);
}

.metric-bar-fill.ram.high {
    background: linear-gradient(90deg, #FF9800, #FF5252);
}

.metric-footer-note {
    font-size: 0.78rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
}

.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}
