@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@200..900&family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --bg-body: #0d1117;
    --bg-subtle: #161b22;
    --border-default: #30363d;
    --text-main: #ffffff;
    --text-muted: #7d8590;
    --accent-primary: #7c3aed;
    --accent-secondary: #58a6ff;
    --accent-success: #2ea043;
    --accent-warning: #d29922;
    --accent-error: #ff5f56;
    --container-max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Mona Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
.universe-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--bg-body);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 12px 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
}
.nav-container {
    max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-weight: 800; font-size: 1.3rem; color: white; text-decoration: none;
    display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-link {
    color: var(--text-muted); text-decoration: none; font-weight: 500; 
    transition: color 0.3s; font-size: 0.9rem; position: relative; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -22px; left: 0; width: 100%; height: 2px;
    background: var(--accent-secondary); box-shadow: 0 -2px 10px var(--accent-secondary);
}

.btn-contribute {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-contribute:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px var(--accent-primary);
}
.mobile-menu-btn {
    display: none; font-size: 1.5rem; color: var(--text-main); background: none; border: none; cursor: pointer;
}
.mobile-nav-overlay {
    position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px);
    background: var(--bg-subtle); z-index: 999;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    display: flex; flex-direction: column; padding: 20px;
    border-top: 1px solid var(--border-default);
}
.mobile-nav-overlay.active { transform: translateX(0); }
.mobile-nav-overlay .nav-link {
    font-size: 1.2rem; padding: 15px 0; border-bottom: 1px solid var(--border-default);
    display: block; width: 100%;
}
.mobile-nav-overlay .nav-link.active { color: var(--accent-secondary); }
#toast-container { position: fixed; top: 90px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.toast-modern { pointer-events: auto; position: relative; display: flex; align-items: center; background: rgba(18, 20, 30, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 18px 24px; min-width: 320px; max-width: 420px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8); overflow: hidden; transform-origin: right center; animation: toastElastic 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; color: #fff; font-family: 'Segoe UI', Roboto, sans-serif; }
.toast-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; margin-right: 15px; font-size: 1.2rem; flex-shrink: 0; background: rgba(255,255,255,0.1); }
.toast-content { flex: 1; font-size: 0.95rem; font-weight: 500; line-height: 1.4; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.toast-close { margin-left: 15px; cursor: pointer; opacity: 0.6; transition: 0.2s; font-size: 1.1rem; } .toast-close:hover { opacity: 1; transform: scale(1.1); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: rgba(255,255,255,0.2); }
.toast-progress-bar { height: 100%; width: 100%; animation: progressLinear 4s linear forwards; }
.toast-modern.success { border-left: 4px solid #00ff88; box-shadow: -5px 0 20px -5px rgba(0, 255, 136, 0.4); }
.toast-modern.success .toast-icon { color: #00ff88; background: rgba(0, 255, 136, 0.15); box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
.toast-modern.success .toast-progress-bar { background: linear-gradient(90deg, #00ff88, #00ffee); }
.toast-modern.error { border-left: 4px solid #ff4d4d; box-shadow: -5px 0 20px -5px rgba(255, 77, 77, 0.4); }
.toast-modern.error .toast-icon { color: #ff4d4d; background: rgba(255, 77, 77, 0.15); box-shadow: 0 0 10px rgba(255, 77, 77, 0.3); }
.toast-modern.error .toast-progress-bar { background: linear-gradient(90deg, #ff4d4d, #f9cb28); }
.toast-modern.warning { border-left: 4px solid #ffaa00; box-shadow: -5px 0 20px -5px rgba(255, 170, 0, 0.4); }
.toast-modern.warning .toast-icon { color: #ffaa00; background: rgba(255, 170, 0, 0.15); box-shadow: 0 0 10px rgba(255, 170, 0, 0.3); }
.toast-modern.warning .toast-progress-bar { background: linear-gradient(90deg, #ffaa00, #ffee00); }
@keyframes toastElastic { 0% { transform: translateX(120%) scale(0.8); opacity: 0; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes toastFadeOut { 0% { transform: translateX(0) scale(1); opacity: 1; } 100% { transform: translateX(120%) scale(0.8); opacity: 0; } }
@keyframes progressLinear { from { width: 100%; } to { width: 0%; } }
.terminal-section { max-width: 1000px; margin: 40px auto; padding: 0 15px; }
.terminal-window {
    background: #161b22; border: 1px solid var(--border-default); border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); overflow: hidden;
    font-family: 'JetBrains Mono', monospace; transition: transform 0.3s, border-color 0.3s;
}
.terminal-window:hover { border-color: var(--accent-secondary); transform: translateY(-5px); }

.terminal-bar {
    background: #0d1117; padding: 8px 15px; display: flex; align-items: center; border-bottom: 1px solid var(--border-default);
}
.window-controls { display: flex; gap: 8px; margin-right: 15px; }
.control { width: 10px; height: 10px; border-radius: 50%; }
.control.close { background: #ff5f56; }
.control.min { background: #ffbd2e; }
.control.max { background: #27c93f; }
.window-title { color: var(--text-muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.terminal-content { padding: 15px; min-height: 200px; }
.command-line { margin-bottom: 15px; color: #e6edf3; font-size: 0.95rem; word-break: break-all; }
.cmd-prompt { color: var(--accent-success); margin-right: 8px; }
.cmd-path { color: var(--accent-secondary); margin-right: 8px; }
.typing-cursor::after { content: '▋'; color: var(--text-muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing-text-static { color: #e6edf3; }

.terminal-search-box {
    background: transparent; border: none; border-bottom: 1px solid var(--border-default);
    color: var(--text-main); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
    width: 100%; padding: 8px 0; margin-bottom: 15px; outline: none;
}
.terminal-search-box:focus { border-color: var(--accent-secondary); }
.terminal-search-box::placeholder { color: #484f58; font-style: italic; }
.terminal-filters {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-default);
}
.term-btn {
    background: transparent; border: 1px solid var(--border-default); color: var(--text-muted);
    padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; transition: all 0.2s; white-space: nowrap;
}
.term-btn:hover { border-color: var(--text-main); color: var(--text-main); }
.term-btn.active {
    background: rgba(56, 139, 253, 0.15); border-color: var(--accent-secondary); color: var(--accent-secondary);
}
.more-btn { border: 1px dashed var(--accent-secondary); color: var(--accent-secondary); margin-left: auto; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.term-file {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px;
    border: 1px solid transparent; border-radius: 6px;
    cursor: pointer; transition: 0.2s; text-decoration: none;
    background: rgba(255,255,255,0.02);
}
.term-file:hover { background: rgba(56, 139, 253, 0.1); border-color: rgba(56, 139, 253, 0.3); }
.file-icon { font-size: 1.4rem; margin-top: 2px; }
.file-info h4 {
    font-size: 0.9rem; color: #e6edf3; margin-bottom: 4px; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
}
.file-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.term-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.book-card {
    background: #0d1117; border: 1px solid #30363d; border-radius: 8px;
    overflow: hidden; transition: transform 0.3s ease;
    display: flex; flex-direction: column; position: relative; height: 100%;
}
.book-card:hover {
    transform: translateY(-5px); border-color: var(--accent-secondary); box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.book-cover { width: 100%; height: 220px; position: relative; overflow: hidden; background: #21262d; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.5s; }
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-info { padding: 10px; background: #161b22; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.book-info h3 { font-size: 0.9rem; color: #e6edf3; margin: 0 0 6px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.grade-badge { background: #238636; color: white; font-size: 0.7rem; padding: 2px 5px; border-radius: 4px; font-weight: bold; }
.book-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 17, 23, 0.8); display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.book-card:hover .book-overlay { opacity: 1; }
.btn-read {
    background: var(--accent-success); color: white; padding: 6px 14px;
    border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 0.9rem;
    transform: translateY(10px); transition: transform 0.3s; display: flex; align-items: center; gap: 8px;
}
.book-card:hover .btn-read { transform: translateY(0); }
.badge { padding: 2px 5px; border-radius: 4px; font-size: 0.65rem; font-weight: bold; border: 1px solid; }
.badge-math { color: #58a6ff; border-color: rgba(88, 166, 255, 0.3); background: rgba(88, 166, 255, 0.1); }
.badge-phys { color: #d2a8ff; border-color: rgba(210, 168, 255, 0.3); background: rgba(210, 168, 255, 0.1); }
.badge-chem { color: #ff7b72; border-color: rgba(255, 123, 114, 0.3); background: rgba(255, 123, 114, 0.1); }
.badge-eng { color: #7ee787; border-color: rgba(126, 231, 135, 0.3); background: rgba(126, 231, 135, 0.1); }
.badge-hsa { color: #d29922; border-color: rgba(210, 153, 34, 0.3); background: rgba(210, 153, 34, 0.1); }
.badge-lit { color: #ffa657; border-color: rgba(255, 166, 87, 0.3); background: rgba(255, 166, 87, 0.1); }
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-window {
    background: var(--bg-subtle); border: 1px solid var(--border-default);
    border-radius: 12px; width: 90%; max-width: 500px; padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7); position: relative;
}
.modal-terminal-window {
    width: 95%; height: 90%; max-width: 1400px;
    background: #161b22; border: 1px solid var(--accent-secondary); border-radius: 10px;
    display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.8); position: relative;
}
.full-height-scroll { overflow-y: auto; flex: 1; padding: 15px; }
.full-height-scroll::-webkit-scrollbar { width: 6px; }
.full-height-scroll::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

.form-group { margin-bottom: 15px; }
.form-label { display: block; color: var(--text-muted); margin-bottom: 5px; font-size: 0.9rem; }
.form-input, .form-select {
    width: 100%; background: #0d1117; border: 1px solid var(--border-default);
    color: white; padding: 8px 12px; border-radius: 6px; outline: none; font-size: 16px;
}
.form-input:focus { border-color: var(--accent-secondary); }
.btn-submit {
    width: 100%; background: var(--accent-success); color: white; border: none;
    padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; margin-top: 10px;
}
.btn-close-modal {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}

.sub-page-container { padding-top: 80px; padding-bottom: 40px; }
.text-gradient { background: linear-gradient(90deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.loader {
    border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent-secondary);
    border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-container {
        justify-content: flex-start;
        position: relative;
    }
    .logo {
        order: 1;
        margin-right: auto;
        font-size: 1.1rem; 
    }
    #auth-ui {
        order: 2;
        margin-right: 12px;
    }
    .mobile-menu-btn { 
        display: block; 
        order: 3;
        width: 35px;
        height: 35px;
        border-radius: 8px;
        transition: background 0.2s;
    }
    .mobile-menu-btn:active {
        background: rgba(255,255,255,0.1);
    }
    .mobile-nav-overlay {
        position: fixed; 
        top: 60px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 60px);
        background: rgba(13, 17, 23, 0.65); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        z-index: 999;
        transform: translateX(100%); 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        
        display: flex; 
        flex-direction: column; 
        padding: 20px 15px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    
    .mobile-nav-overlay.active { 
        transform: translateX(0); 
    }
    .mobile-nav-overlay .nav-link {
        font-size: 1rem; 
        padding: 12px 20px; 
        margin-bottom: 8px; 
        border-radius: 12px; 
        border: 1px solid transparent; 
        
        display: flex;
        align-items: center;
        gap: 12px; 
        
        color: #c9d1d9;
        background: rgba(255,255,255,0.03); 
        transition: all 0.2s ease;
        font-weight: 600;
    }
    .mobile-nav-overlay .nav-link:active,
    .mobile-nav-overlay .nav-link:hover {
        background: rgba(88, 166, 255, 0.15);
        color: white;
        transform: translateX(5px); 
    }
    .mobile-nav-overlay .nav-link.active { 
        color: var(--accent-secondary); 
        background: rgba(88, 166, 255, 0.1);
        border: 1px solid rgba(88, 166, 255, 0.2);
    }
    .mobile-nav-overlay .nav-link[onclick*="Contribute"] {
        margin-top: 10px;
        background: rgba(124, 58, 237, 0.15);
        color: #d8b4fe;
        border: 1px dashed rgba(124, 58, 237, 0.4);
        justify-content: center;
    }
    .terminal-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .terminal-filters::-webkit-scrollbar { display: none; }
    .term-btn { flex: 0 0 auto; white-space: nowrap; font-size: 0.8rem; padding: 5px 12px; }
    .more-btn { margin-left: 5px; }
    .term-book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .term-grid { grid-template-columns: 1fr; }
    .book-cover { height: 190px; }
    .sub-page-container h1 { font-size: 2rem !important; }
    .terminal-section { margin: 20px auto; padding: 0 10px; }
    .terminal-content { padding: 12px; }
    .modal-window { width: 95%; max-height: 90vh; overflow-y: auto; padding: 15px; }
    .cmd-path { display: none; } 
}
.extension-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.ext-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.ext-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ext-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ext-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.ext-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download-main {
    background: var(--accent-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

.btn-github-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-github-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}
.section-heading {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.step-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    pointer-events: none;
}

.step-content h3 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.code-block {
    background: black;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #00ff88;
    cursor: pointer;
    border: 1px dashed #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block:hover {
    border-color: #00ff88;
}

.video-container iframe {
    border-radius: 0 0 10px 10px;
    display: block;
}

@media (max-width: 768px) {
    .ext-title { font-size: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
}
.site-footer {
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid var(--border-default);
    padding: 40px 0 20px;
    margin-top: auto; 
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-text {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}



.social-icon.fb:hover {
    background: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    border-color: #1877f2;
}

.social-icon.mess:hover {
    background: #00B2FF;
    box-shadow: 0 0 20px rgba(0, 178, 255, 0.6);
    border-color: #00B2FF;}

.social-icon.zalo:hover {
    background: #0068ff;
    box-shadow: 0 0 20px rgba(0, 104, 255, 0.6);
    border-color: #0068ff;
}
.social-icon.yt:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    border-color: #ff0000;
}
.social-icon.github:hover {
    background: #24292e; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}
#auth-ui {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    transition: transform 0.2s;
    background-color: var(--bg-subtle);
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-primary);
}
.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-profile:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-default);
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item.logout {
    color: var(--accent-error);
    border-top: 1px solid var(--border-default);
}

.dropdown-item.logout:hover {
    background: rgba(255, 95, 86, 0.1);
}
.btn-login-nav {
    background: transparent;
    color: white;
    border: 1px solid var(--border-default);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-login-nav:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}


@media (max-width: 768px) {
    #auth-ui {
        margin-right: 10px; 
    }
    
    .user-dropdown {
        right: -10px;
    }
    
    .footer-content {
        padding-bottom: 60px; 
    }
}
