/* ============================================
   SMP WEBSITE - SHARED STYLES
   Secret of Mathematical Principles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* === CSS VARIABLES === */
:root {
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #e8e8e8;
    --sidebar-title: #ffffff;
    --sidebar-link: #888888;
    --sidebar-link-hover: rgba(92,225,230,0.06);
    --topbar-bg: #ffffff;
    --main-bg: #fafaf8;
    --card-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #e8e8e8;
    --accent-cyan: #009eb3;
    --accent-gold: #c9a96e;
    --accent-cyan-dim: rgba(0, 158, 179, 0.15);
    --border-color: #2e2e2e;
    --border-light: #e8e4dc;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --sidebar-width: 280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK MODE */
body.dark-mode {
    --sidebar-bg: #f8fafc;
    --sidebar-text: #1a1a1a;
    --sidebar-title: #1a1a1a;
    --sidebar-link: #475569;
    --sidebar-link-hover: rgba(0,0,0,0.05);
    --topbar-bg: #111111;
    --main-bg: #141414;
    --card-bg: #1e1e1e;
    --text-dark: #e8e8e8;
    --text-muted: #9a9a9a;
    --accent-cyan: #5ce1e6;
    --accent-cyan-dim: rgba(92, 225, 230, 0.15);
    --border-light: #2e2e2e;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
}

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

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--main-bg);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

mjx-container {
    max-width: 100%;
    box-sizing: border-box;
}

mjx-container:not([display="true"]) {
    /* Do not set overflow-x here, as it changes the baseline to the bottom margin edge */
}

mjx-container[display="true"] {
    display: block;
    overflow-x: auto !important;
    max-width: 100%;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; background: none; }

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100vh;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px;
    box-sizing: border-box;
    border-right: 1px solid var(--border-color);
    z-index: 200;
    overflow-y: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.sidebar-logo {
    width: 100px;
    height: 115px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 12px rgba(92,225,230,0.3));
    transition: filter 0.3s;
}
.sidebar-logo:hover { filter: drop-shadow(0 0 20px rgba(92,225,230,0.6)); }

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--sidebar-title);
}

.sidebar-divider {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    margin: 8px auto 12px;
    border-radius: 2px;
}

.sidebar-bio {
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.7;
    color: var(--sidebar-link);
    margin-bottom: 15px;
}

/* Sidebar social icons */
.sidebar-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.sidebar-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--sidebar-link);
    color: var(--sidebar-link);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
    font-family: 'JetBrains Mono', monospace;
}
.sidebar-social-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.visit-profile {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.visit-profile:hover { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }

/* Sidebar nav links */
.sidebar-nav { width: 100%; margin-top: 10px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--sidebar-link);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 6px;
    transition: var(--transition);
    margin-bottom: 4px;
    border-left: 2px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--accent-cyan);
    background: var(--sidebar-link-hover);
    border-left-color: var(--accent-cyan);
}

/* === MAIN WRAPPER === */
.main-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === TOPBAR === */
.topbar {
    background-color: var(--topbar-bg);
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(128,128,128,0.15);
    transition: background-color 0.4s ease;
}

.topbar-nav {
    display: flex; 
    gap: 24px; 
    margin-left: 10px;
}

.topbar-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    transition: color 0.2s;
}

.topbar-nav a:hover {
    color: var(--accent-cyan);
}

/* Search bar */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 360px;
    margin-left: auto;
    margin-right: 24px;
}
.search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 7px 36px 7px 14px;
    color: #ccc;
    font-size: 0.82rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    transition: var(--transition);
    outline: none;
}
.search-input::placeholder { color: #555; }
.search-input:focus { border-color: var(--accent-cyan); background: rgba(92,225,230,0.04); }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #555; font-size: 0.85rem; pointer-events: none; }

/* Search results dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    z-index: 999;
    overflow: hidden;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}
.search-results.show { display: block; }
.search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(92,225,230,0.08); }
.search-result-title { font-size: 0.85rem; color: #e0e0e0; font-weight: 600; margin-bottom: 3px; }
.search-result-date { font-size: 0.75rem; color: #666; font-family: 'JetBrains Mono', monospace; }
.search-no-results { padding: 20px; text-align: center; color: #666; font-size: 0.85rem; }

/* Dark mode toggle */
.topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dark-toggle {
    background: rgba(255,255,255,0.06);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px 12px;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.dark-toggle:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Dark mode: nút chuyển giao diện hiện màu trắng rõ ràng */
body.dark-mode .dark-toggle {
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
body.dark-mode .dark-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(92,225,230,0.1);
}

/* === MAIN CONTENT === */
main {
    padding: 48px 56px;
    flex-grow: 1;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Header */
.hero-header {
    margin-bottom: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}
.hero-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.hero-header .quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
}

/* Section label */
.section-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.grid-container > * {
    min-width: 0;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 28px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}
.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0 0 12px 0;
    color: var(--text-dark);
    line-height: 1.5;
}
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; }
.card-link {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover { color: var(--accent-cyan); }
.card-link::after { content: '→'; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(4px); }

/* === PDF VIEWER === */
.pdf-viewer-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}
.pdf-viewer-header {
    padding: 14px 20px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pdf-viewer-title { color: #ccc; font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; }
.pdf-close-btn {
    background: none;
    border: 1px solid #444;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}
.pdf-close-btn:hover { border-color: #888; color: #ccc; }
.pdf-embed { width: 100%; height: 600px; border: none; display: block; }

/* === COMMENT SECTION === */
.comment-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.comment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.comment-form { margin-bottom: 36px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-input, .comment-textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: var(--transition);
}
.comment-input:focus, .comment-textarea:focus { border-color: var(--accent-cyan); }
.comment-textarea { min-height: 100px; resize: vertical; }
.comment-submit {
    background: var(--accent-cyan);
    color: #111;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.comment-submit:hover { background: var(--accent-gold); }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 18px 20px;
}
.comment-meta { display: flex; justify-content: space-between; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 0.88rem; color: var(--text-dark); }
.comment-date { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.comment-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* === DAILY CHALLENGE === */
.challenge-card {
    background: linear-gradient(135deg, #1a1a1a, #0f1a1a);
    border: 1px solid rgba(92,225,230,0.2);
    border-radius: 10px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
}
.challenge-card::before {
    content: '∑';
    position: absolute;
    right: 24px; top: 16px;
    font-size: 5rem;
    color: rgba(92,225,230,0.05);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    pointer-events: none;
}
.challenge-badge {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.challenge-badge::before { content: '◆'; font-size: 0.5rem; }
.challenge-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
}
.challenge-problem {
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent-cyan);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto; /* Fix horizontal scroll on mobile for math */
}
.challenge-btn {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}
.challenge-btn:hover { background: var(--accent-cyan); color: #111; }
.challenge-answer {
    margin-top: 16px;
    background: rgba(92,225,230,0.08);
    border: 1px solid rgba(92,225,230,0.2);
    border-radius: 6px;
    padding: 14px 18px;
    color: #aaa;
    font-size: 0.88rem;
    display: none;
    line-height: 1.7;
    overflow-x: auto; /* Fix horizontal scroll on mobile */
}
.challenge-answer.show { display: block; }

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
    main { padding: 36px 32px; }
}
@media (max-width: 768px) {
    .main-wrapper { margin-left: 0; width: 100%; overflow-x: hidden; }
    .topbar { padding: 12px 16px; flex-wrap: nowrap; height: auto; gap: 12px; justify-content: space-between; align-items: center; position: sticky; top: 0; }
    .topbar > a { flex-shrink: 0; }
    #smp-logo-canvas { display: none !important; }
    .topbar-controls { display: flex; align-items: center; gap: 16px; margin-left: auto; }
    .topbar-actions { flex-shrink: 0; order: 2; }
    .mobile-only-auth-btn { display: block !important; }
    
    /* Search mobile dropdown style */
    .search-wrapper { flex: 0 0 auto; order: 1; margin: 0 !important; width: auto; max-width: none; }
    .search-input { display: none; }
    .search-icon { 
        position: static; transform: none; font-size: 1.3rem; 
        pointer-events: auto; cursor: pointer; padding: 4px; display: block; 
    }
    .search-wrapper.mobile-active {
        position: absolute; top: 100%; left: 0; right: 0;
        padding: 12px 16px; background: var(--topbar-bg);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 100; display: flex; align-items: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
    .search-wrapper.mobile-active .search-input { display: block; width: 100%; padding-right: 40px; }
    .search-wrapper.mobile-active .search-icon {
        position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
        pointer-events: none;
    }
    .topbar-nav { display: none !important; }
    .tags-comment-sidebar { display: none !important; }
    main { padding: 24px 16px; }
    .comment-form-row { grid-template-columns: 1fr; }
    .grid-container { grid-template-columns: 1fr; }

    /* Fix challenge card on mobile */
    .challenge-card { padding: 20px; margin-bottom: 24px; }
    .challenge-card::before { font-size: 3.5rem; right: 12px; top: 12px; }
    .challenge-card h3 { font-size: 1.1rem; }
    .challenge-problem { padding: 12px 16px; font-size: 0.85rem; }

    /* Fix notification dropdown position on mobile */
    #notif-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 12px !important;
        left: auto !important;
        width: calc(100vw - 24px) !important;
        max-width: 360px !important;
        max-height: 70vh !important;
        z-index: 99999 !important;
    }
}

/* === POST VIEWER MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--main-bg);
    width: 100%;
    max-width: 960px;
    height: 90vh; /* Chiếm 90% chiều cao màn hình */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 18px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-close-btn {
    background: var(--accent-cyan-dim);
    border: 1px solid var(--accent-cyan);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--accent-cyan);
    color: #111;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-dark);
    line-height: 1.8;
}

.modal-pdf {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* === POPUP MODAL STYLES (POST VIEWER) === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 850px;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    animation: fadeUp 0.4s ease forwards;
}
.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--topbar-bg);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}
#modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #ff4d4d;
}
.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-dark);
    line-height: 1.7;
}
/* Fix font chữ toán học bên trong modal */
.modal-body h1, .modal-body h2 {
    color: var(--text-dark);
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* === FOOTER === */
.site-footer {
    margin-top: 60px;
    padding-bottom: 20px;
    width: 100%;
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
    margin-bottom: 24px;
    width: 100%;
    border-radius: 2px;
    opacity: 0.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace; /* Dùng font monospace cho hợp style toán học */
    margin: 0;
}

.footer-brand {
    color: var(--accent-cyan);
    font-weight: 700;
}

.back-to-top {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    transition: var(--transition);
}

.back-to-top:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Hiển thị trên điện thoại */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.modal-expand-btn {
    background: transparent;
    border: 1px solid rgba(92, 225, 230, 0.3);
    color: #5ce1e6;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-right: 15px; /* Tạo khoảng cách vừa phải với nút tắt X */
    transition: all 0.2s ease;
}

.modal-expand-btn:hover {
    background: rgba(92, 225, 230, 0.1);
    border-color: #5ce1e6;
    transform: translateY(-1px);
}

/* Tự động đổi màu khi ở chế độ Dark Mode nếu cần */
body.dark-mode .modal-expand-btn {
    border-color: rgba(92, 225, 230, 0.4);
    color: #5ce1e6;
}

/* ── Sửa lỗi vỡ hộp và định dạng Header Box ── */
.header-box {
    border: 2px solid var(--accent-cyan, #5ce1e6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(92, 225, 230, 0.03); /* Tạo nền nhẹ cho hộp */
}

.header-top, .header-bottom {
    display: flex;
    justify-content: space-between; /* Đẩy tên/môn sang 2 bên */
    align-items: center;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.header-top {
    border-bottom: 1px dashed var(--exam-divider-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.header-bottom {
    border-top: 1px dashed var(--exam-divider-color);
    padding-top: 8px;
    margin-top: 12px;
}

.header-center {
    font-weight: bold;
    text-align: center;
    color: var(--exam-title-color);
}

/* ── Chia danh sách thành 2 cột (Two Columns) ── */
.two-columns > ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-left: 20px;
}

/* === VẼ LOGO SMP THEO TỶ LỆ MANIM === */
.smp-logo-wrapper {
    position: relative;
    width: 280px;  /* Có thể tinh chỉnh độ lớn ở đây */
    height: 180px;
    margin: 60px auto;
    /* Ẩn overflow lúc đầu nếu không muốn các khối hiện ở ngoài vòng */
}

/* Base block */
.smp-block {
    position: absolute;
    background-color: #4DE8D0;
    border-radius: 6px;
    /* Mô phỏng bóng (shadow) của Manim */
    box-shadow: 6px 6px 0px 0px rgba(30, 107, 154, 0.85);
    opacity: 0; /* Ẩn đi để chờ cuộn chuột */
}

/* Định vị và kích thước mô phỏng (Quy đổi từ H1t, H1b... trong Python) */
.smp-block.c1 { width: 24px; left: 0; }
.smp-block.c1.top { height: 60px; top: 20px; }
.smp-block.c1.bot { height: 26px; top: 92px; }

.smp-block.c2 { width: 24px; left: 52px; }
.smp-block.c2.top { height: 26px; top: 20px; }
.smp-block.c2.bot { height: 60px; top: 58px; }

.smp-block.c3 { width: 24px; left: 104px; height: 50px; top: 68px; }

.smp-block.c4 { width: 25px; left: 156px; height: 96px; top: 20px; }
.smp-block.c5 { width: 25px; left: 208px; height: 70px; top: 46px; }

/* Vòng sáng (Glow Ring) */
.smp-glow-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 150px; height: 150px;
    border: 3px solid #4DE8D0;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* === ANIMATION CLASSES KHI KÍCH HOẠT === */
.smp-logo-wrapper.is-animating .smp-block {
    animation: 
        flyInBlock 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, /* ease_out_back */
        pulseBlock 0.42s ease-in-out 1.2s forwards; /* pulse sau khi bay vào xong */
}

/* Stagger (Độ trễ bay vào từng khối như trong Manim) */
.smp-logo-wrapper.is-animating .c1.top { animation-delay: 0s, 1.2s; }
.smp-logo-wrapper.is-animating .c1.bot { animation-delay: 0.1s, 1.2s; }
.smp-logo-wrapper.is-animating .c2.top { animation-delay: 0.2s, 1.2s; }
.smp-logo-wrapper.is-animating .c2.bot { animation-delay: 0.3s, 1.2s; }
.smp-logo-wrapper.is-animating .c3 { animation-delay: 0.4s, 1.2s; }
.smp-logo-wrapper.is-animating .c4 { animation-delay: 0.5s, 1.2s; }
.smp-logo-wrapper.is-animating .c5 { animation-delay: 0.6s, 1.2s; }

/* Hiệu ứng bay vào từ quỹ đạo ngoài (orbit) */
@keyframes flyInBlock {
    0% {
        opacity: 0;
        transform: translate(200px, -200px) scale(0.5); /* Điểm xuất phát văng ra ngoài */
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

/* Hiệu ứng Pulse (There and back) */
@keyframes pulseBlock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.055); }
}

/* Hiệu ứng vòng sáng chớp lên */
.smp-logo-wrapper.is-animating .smp-glow-ring {
    animation: glowRingExpand 0.8s ease-out 1.5s forwards;
}

@keyframes glowRingExpand {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* Overrides for tighter content */
.main-content-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 100px;
    margin-top: 20px;
}

.main-articles-body {
    min-width: 0;
    width: 100%;
}
.tags-comment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 1; 
}
@media (max-width: 1100px) {
    .main-content-layout {
        display: flex;
        flex-direction: column;
    }
    .tags-comment-sidebar {
        position: static;
        order: 2;
        margin-top: 40px;
    }
    .main-articles-body {
        order: 1;
    }
}

.exam-content, .article-content { max-width: 900px; margin: 0 auto; font-size: 1.15rem; line-height: 1.8; }
.exam-content p, .article-content p, .page-hero p, .info-banner, .guidelines-panel p, .guidelines-panel li, .proposal-container p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 24px; }
.exam-content li, .article-content li, .guidelines-panel li { font-size: 1.15rem; line-height: 1.8; margin-bottom: 12px; }

/* Center category pages content */
main > .hero-header, 
main > .math-nav-bar, 
main > .nonmath-nav-bar, 
main > .nav-bar,
main > .category-nav-bar,
main > .category-tabs,
main > .section-title, 
main > .grid-container, 
main > .comment-section,
main > .nav-filter-bar,
main > .life-nav-bar,
main > .section-label,
main > .profile-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Override all inline exam-paper font sizes */
.exam-paper h1 { font-size: 1.5rem !important; }
.exam-paper h2 { font-size: 1.3rem !important; }
.exam-paper h3 { font-size: 1.15rem !important; }
.exam-paper p { font-size: 1.15rem !important; line-height: 1.8 !important; }
.exam-paper li { font-size: 1.15rem !important; line-height: 1.8 !important; }
.exam-paper { font-size: 1.15rem !important; line-height: 1.8 !important; }

/* 🌞 LIGHT MODE OVERRIDES FOR CODEMIRROR THEME 🌞 */
body:not(.dark-mode) .CodeMirror {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-color: rgba(15,23,42,0.1) !important;
}
body:not(.dark-mode) .CodeMirror-gutters {
    background-color: #f1f5f9 !important;
    border-right: 1px solid #e2e8f0 !important;
}
body:not(.dark-mode) .CodeMirror-linenumber {
    color: #94a3b8 !important;
}
body:not(.dark-mode) .CodeMirror-cursor {
    border-left-color: #0f172a !important;
}
body:not(.dark-mode) .CodeMirror-selected {
    background-color: #cbd5e1 !important;
}
body:not(.dark-mode) .CodeMirror-line::selection, 
body:not(.dark-mode) .CodeMirror-line>span::selection, 
body:not(.dark-mode) .CodeMirror-line>span>span::selection {
    background-color: #cbd5e1 !important;
}
body:not(.dark-mode) .CodeMirror-activeline-background {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

/* Syntax highlighting overrides for Light Mode */
body:not(.dark-mode) .cm-s-material-darker.CodeMirror { color: #334155 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-keyword { color: #2563eb !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-atom { color: #d946ef !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-number { color: #ea580c !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-def { color: #059669 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-variable { color: #334155 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-variable-2 { color: #0284c7 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-variable-3 { color: #16a34a !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-property { color: #4f46e5 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-operator { color: #9333ea !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-comment { color: #94a3b8 !important; font-style: italic; }
body:not(.dark-mode) .cm-s-material-darker span.cm-string { color: #15803d !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-string-2 { color: #b45309 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-meta { color: #64748b !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-qualifier { color: #0d9488 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-builtin { color: #ca8a04 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-bracket { color: #475569 !important; font-weight: bold; }
body:not(.dark-mode) .cm-s-material-darker span.cm-tag { color: #dc2626 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-attribute { color: #ea580c !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-header { color: #2563eb !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-quote { color: #059669 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-hr { color: #cbd5e1 !important; }
body:not(.dark-mode) .cm-s-material-darker span.cm-link { color: #2563eb !important; }
/* === EMBED MODE === */
body.embed-mode .sidebar,
body.embed-mode .topbar,
body.embed-mode .site-footer,
body.embed-mode .tags-comment-sidebar,
body.embed-mode .exam-back-btn,
body.embed-mode .exam-meta {
    display: none !important;
}

body.embed-mode .main-wrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
}

body.embed-mode main {
    padding: 16px 24px !important;
}

body.embed-mode .main-content-layout {
    margin: 0 !important;
    padding: 0 !important;
}

/* Style cho nút Tải PDF */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(92, 225, 230, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 18px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.pdf-download-btn:hover {
    background: var(--accent-cyan);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.2);
}

/* ============================================
   PRINT / PDF EXPORT STYLES (TRỊ BỆNH SHRINK-TO-FIT)
   ============================================ */
@media print {
    /* 1. ẨN GIAO DIỆN THỪA */
    .sidebar, .sidebar-toggle, .sidebar-overlay, .topbar, 
    .search-wrapper, .topbar-actions, .tags-comment-sidebar, 
    .site-footer, .giscus-section-outer, #giscus-container,
    .comment-section, .pdf-download-btn, .back-to-list-btn,
    .challenge-card, .exam-back-btn, .exam-meta, .back-to-top,
    #smp-logo-canvas, .stats-strip, .modal-header, .modal-expand-btn,
    .solution-mailbox, .mobile-bottom-nav {
        display: none !important;
    }

    /* 2. CÀI ĐẶT LỀ A4 CHUẨN MỰC */
    @page {
        margin: 1.5cm 2cm; 
        size: A4;
    }

    body, html {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    /* 3. LÀM PHẲNG VÀ XÓA PADDING CỦA TẤT CẢ CÁC WRAPPER */
    /* Đã bổ sung .exam-paper và các class trong bài post */
    .main-content-layout, .main-wrapper, main, 
    .main-articles-body, .exam-content, .article-content,
    .exam-paper, .post-container, .modal-content, .modal-body, .card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    /* 4. CHỐNG BỆNH "ZOOM NHỎ" (SHRINK-TO-FIT) CỦA TRÌNH DUYỆT */
    /* Ép tất cả các thẻ không được vượt quá 100% chiều rộng giấy */
    * {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* Xử lý riêng sự cứng đầu của MathJax: Ép hình SVG co lại theo giấy */
    mjx-container, mjx-container[display="true"], mjx-math {
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
    mjx-container svg {
        max-width: 100% !important;
        height: auto !important; /* Đảm bảo tỷ lệ công thức không bị méo */
    }

    /* Mấy thẻ code/pre cũng hay làm vỡ layout */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* 5. TỐI ƯU HIỂN THỊ DÒNG CHỮ CHUYÊN NGHIỆP */
    .header-box {
        border: 1px solid #000 !important;
        background: transparent !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        border-radius: 0 !important; 
    }

    h1, h2, h3, h4 { page-break-after: avoid; color: #000 !important; }
    p, img, .header-box { page-break-inside: avoid; }
    a { text-decoration: none !important; color: #000 !important; }
}
/* Styling cho các khung xem trước (Preview Iframe) trong bài viết, giống với khung preview của Tool */
.smp-dynamic-theme .post-preview-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--smp-card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin: 20px auto;
    transition: all 0.3s ease;
    max-width: 100%;
}
.smp-dynamic-theme .post-preview-wrapper iframe {
    width: 100%;
    border: none;
    display: block;
}

/* =========================================================================
   NOTIFICATIONS SYSTEM
   ========================================================================= */

/* Notification bell icon / wrapper in topbar */
.notif-wrapper {
    position: relative;
}

#notif-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

#notif-toggle-btn:hover {
    color: var(--accent-cyan) !important;
}

/* Red dot badge */
#top-notif-badge, #side-notif-badge {
    background-color: #e74c3c !important; /* accent-red fallback */
}

/* Dropdown Container */
#notif-dropdown {
    position: absolute;
    right: 0;
    top: 45px;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    padding: 0;
    font-family: 'Inter', sans-serif;
    display: none;
    animation: fadeInDropdown 0.2s ease-out;
}

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

/* Notification Dropdown Header */
.notif-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-bg);
}

.notif-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.notif-mark-all-btn {
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 500;
    transition: filter 0.2s;
}

.notif-mark-all-btn:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

/* Notification list */
.notif-dropdown-list {
    display: flex;
    flex-direction: column;
}

.notif-empty-state {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Individual Notification Item */
.notif-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--card-bg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    transition: background-color 0.2s;
}

.notif-dropdown-item:hover {
    background-color: var(--main-bg);
}

/* Highlight unread notifications */
.notif-dropdown-item.unread {
    background-color: var(--accent-cyan-dim);
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e74c3c;
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-dot-placeholder {
    width: 8px;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notif-item-sender {
    font-weight: 700;
    color: var(--accent-gold);
}

.notif-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Menu Actions (Three Dots) */
.notif-menu-wrapper {
    position: relative;
    flex-shrink: 0;
}

.notif-opt-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.notif-opt-btn:hover {
    color: var(--text-dark);
}

/* Context Menu Dropdown */
.notif-context-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 22px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    min-width: 150px;
    overflow: hidden;
}

.notif-context-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    font-family: inherit;
}

.notif-context-menu button:hover {
    background-color: var(--main-bg);
}

.notif-context-menu button:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.notif-context-menu button.delete {
    color: #e74c3c;
}

.notif-context-menu button.delete:hover {
    background-color: rgba(231, 76, 60, 0.08);
}

/* Footer Link */
.notif-dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: var(--main-bg);
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-top: 1px solid var(--border-light);
    transition: color 0.2s, background-color 0.2s;
}

.notif-dropdown-footer:hover {
    color: var(--accent-gold);
    background-color: var(--card-bg);
}

/* =========================================================================
   FULL NOTIFICATIONS PAGE STYLE
   ========================================================================= */
.notif-full-card {
    padding: 18px 24px;
    border: 1px solid var(--border-light);
    background-color: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.notif-full-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-hover);
}

.notif-full-card.unread {
    background-color: var(--accent-cyan-dim);
    border-left: 4px solid var(--accent-cyan);
}

.notif-full-content {
    flex: 1;
    min-width: 0;
}

.notif-full-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notif-full-sender {
    font-weight: 700;
    color: var(--accent-gold);
}

.notif-full-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.notif-full-actions {
    display: flex;
    gap: 10px;
}

.notif-full-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dark);
    background: var(--card-bg);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.notif-full-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--main-bg);
}

.notif-full-btn.delete:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.notif-header-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--accent-cyan);
    color: var(--main-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: transform 0.2s, background-color 0.2s;
}

.notif-header-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
}


