/*
Theme Name: Zen Silence Theme
Theme URI: https://labs.google/flow
Author: Antigravity AI
Author URI: https://deepmind.google/
Description: Theme tối giản dành cho các nhà sáng tạo nội dung thiền định và chữa lành từ Zen Studio Pro 4.9.
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: zen-silence
*/

/* 1. Thiết lập biến thiết kế (Design Tokens) */
:root {
    --bg-color: #060608;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-color: #D4AF37; /* Đổi sang màu Gold chủ đạo */
    --accent-glow: rgba(212, 175, 55, 0.2);
    --gold-color: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass-blur: blur(20px) saturate(150%); /* Tăng cường hiệu ứng kính mờ cinematic */
    /* 
     * Font Stack Việt Nam:
     * - Be Vietnam Pro : UI text, nội dung, labels (hỗ trợ đầy đủ Unicode Việt)
     * - Playfair Display: Heading dạng Serif điện ảnh (hỗ trợ Vietnamese subset)
     * - JetBrains Mono : Code / Prompt / JSON blocks
     * Fallback chuỗi dùng system fonts việt nếu Google Fonts chưa load
     */
    --font-heading: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif:   'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body:    'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    --font-zen-cjk: 'Noto Sans CJK JP', 'Noto Sans CJK KR', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'Meiryo', 'Malgun Gothic', sans-serif;
}

html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] h5, html[lang="ja"] h6, html[lang="ja"] p, html[lang="ja"] a, html[lang="ja"] span, html[lang="ja"] div, html[lang="ja"] textarea, html[lang="ja"] input, html[lang="ja"] select, html[lang="ja"] button {
    font-family: var(--font-zen-cjk) !important;
}
html[lang="ko"] body, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] h4, html[lang="ko"] h5, html[lang="ko"] h6, html[lang="ko"] p, html[lang="ko"] a, html[lang="ko"] span, html[lang="ko"] div, html[lang="ko"] textarea, html[lang="ko"] input, html[lang="ko"] select, html[lang="ko"] button {
    font-family: var(--font-zen-cjk) !important;
}
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4, html[lang="zh"] h5, html[lang="zh"] h6, html[lang="zh"] p, html[lang="zh"] a, html[lang="zh"] span, html[lang="zh"] div, html[lang="zh"] textarea, html[lang="zh"] input, html[lang="zh"] select, html[lang="zh"] button {
    font-family: var(--font-zen-cjk) !important;
}


html {
    overflow-x: hidden;
    width: 100%;
}

/* 2. Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

input, select, button, textarea {
    font-family: inherit;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Đảm bảo Unicode tiếng Việt render đúng */
    font-feature-settings: 'kern' 1, 'liga' 1;
    unicode-bidi: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    /* Fix cho tiếng Việt trong heading */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 3. Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 4. Header & Footer Styling */
.site-header {
    background: rgba(6, 6, 8, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--accent-color);
    font-weight: bold;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Language Switcher Dropdown Style */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-color);
    color: var(--gold-color);
}

.lang-btn svg {
    transition: transform 0.3s ease;
}

.lang-switcher:hover .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(11, 11, 14, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 110;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-color);
    padding-left: 20px;
}


.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.adsense-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* 5. Pinterest Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 24px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 12px;
        padding: 20px 0;
    }
    .zen-card {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .zen-card-media {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .zen-card-title {
        font-size: 0.95rem !important;
        margin-bottom: 6px;
    }
    .zen-card-meta {
        font-size: 0.7rem !important;
    }
}

/* Card item */
.zen-card {
    break-inside: avoid;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zen-card:hover {
    transform: translateY(-6px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 0 1px var(--accent-glow);
}

.zen-card-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 16px;
}

.zen-card-media img,
.zen-card-media video,
.zen-card-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transition: transform 0.6s ease;
}

.zen-card-media iframe {
    pointer-events: none; /* Tránh tương tác làm loạn cuộn trang */
}

.zen-card:hover .zen-card-media img {
    transform: scale(1.05);
}

.zen-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
}

.zen-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.zen-tag {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 500;
}

/* Hover quote overlay */
.zen-card-quote {
    position: absolute;
    inset: 16px;
    background: rgba(6, 6, 8, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 95;
}

.zen-card:hover .zen-card-quote {
    opacity: 1;
}

.zen-card-quote p {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 6. Theater Mode (Chi tiết bài viết) */
.theater-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .theater-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    .theater-player {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    .media-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
    .video-studio-specs {
        width: 100% !important;
        padding: 16px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .specs-circles-container {
        padding: 12px !important;
        gap: 10px !important;
    }
    .spec-circle-item {
        width: 80px !important;
    }
}

.theater-player {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
}

.media-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    aspect-ratio: 16/9;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.media-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.btn-copy img.emoji,
.btn-copy img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
}

.theater-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.theater-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.theater-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tabs System */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.tab-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    min-height: 250px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Copy utilities */
.copy-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.copy-text {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-heading);
    white-space: nowrap;
    transition: background 0.3s, border-color 0.3s;
}

.btn-copy:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
}

/* Suno track listing */
.suno-track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suno-track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.suno-track-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: #111;
    object-fit: cover;
}

.suno-track-info {
    flex-grow: 1;
}

.suno-track-title {
    font-weight: bold;
    font-size: 0.95rem;
}

.suno-track-prompt {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Infinite Scroll / Loading text */
.loading-sentinel {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* 7. Homepage Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #060608;
    background: var(--gold-color); /* Gold màu sắc chủ đạo của Album */
    border-color: var(--gold-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* 8. Floating Music Icon for Album Cards */
.floating-music-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 6, 8, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* 9. Copied Glow Feedback Animation */
@keyframes goldGlowFeedback {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: var(--border-color);
    }
    15% {
        box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.6);
        border-color: var(--gold-color);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: var(--border-color);
    }
}

.copied-glow-active {
    animation: goldGlowFeedback 1.5s ease;
}

/* 10. Custom Compact Audio Player Skin */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
}

.audio-play-btn {
    background: var(--gold-color);
    border: none;
    color: #060608;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: transform 0.2s, background 0.3s;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    background: #f2c94c;
}

.audio-progress-bar {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.audio-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-color);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.audio-time {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* 11. Modal Master Artifact Analysis Styling */
.zen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zen-modal-container {
    width: 92vw;
    height: 88vh;
    background: #060608;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    display: flex;
}

.zen-modal-layout {
    width: 100%;
    height: 100%;
    display: flex;
}

@media (max-width: 992px) {
    .zen-modal-container {
        width: 95vw;
        height: 95vh;
    }
    .zen-modal-layout {
        flex-direction: column;
        overflow-y: auto;
    }
}

/* Cột trái */
.zen-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(20, 20, 25, 0.8) 0%, rgba(6, 6, 8, 1) 100%);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.zen-modal-image-wrapper {
    width: auto;
    max-width: 90%;
    max-height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.zen-modal-image-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.zen-modal-caption-title {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold-color);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    max-width: 80%;
    line-height: 1.3;
}

/* Cột phải */
.zen-modal-right {
    width: 460px;
    background: #0b0b0e;
    height: 100%;
    overflow-y: auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .zen-modal-left {
        padding: 30px 20px;
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .zen-modal-right {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 30px 20px;
    }
}

.zen-modal-section-header {
    margin-bottom: 5px;
}

.zen-modal-mini-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold-color);
    display: block;
    margin-bottom: 5px;
}

.zen-modal-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

/* Thẻ Modal Panel Card */
.zen-modal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
}

.zen-modal-card-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zen-modal-card-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.concept-text {
    border-left: 2px solid var(--gold-color);
    padding-left: 12px;
    color: #fff !important;
    font-style: italic;
}

.font-italic {
    font-style: italic;
}

.font-mono {
    font-family: monospace;
}

.text-small {
    font-size: 0.8rem !important;
}

/* Hộp Strategic Note nổi bật */
.highlighted-card {
    background: rgba(226, 183, 85, 0.03);
    border: 1px solid rgba(226, 183, 85, 0.15);
}

.highlighted-card .zen-modal-card-text {
    color: #fff;
}

/* Hộp Engine Logic tối màu */
.dark-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.03);
}

.dark-card .zen-modal-card-text {
    color: rgba(255, 255, 255, 0.5);
    max-height: 150px;
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-wrap;
    padding-right: 5px;
}

/* Nút đóng hình tròn bay */
.zen-modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
}

.zen-modal-close-btn:hover {
    background: var(--text-primary);
    color: #060608;
    transform: rotate(90deg);
}

/* Reference Matrix Sliders */
.compliance-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-color);
}

.stat-progress-track {
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    margin-top: 4px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: var(--gold-color);
    border-radius: 1px;
    box-shadow: 0 0 6px var(--gold-color);
}

/* Nút tải và các action */
.zen-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.zen-modal-btn-primary {
    background: var(--gold-color);
    color: #060608;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.zen-modal-btn-primary:hover {
    background: #f2c94c;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.zen-modal-sub-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.zen-modal-btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.zen-modal-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-color);
}

.btn-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-color);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 800;
}


/* =========================================================
 * VIETNAMESE FONT RENDERING — GLOBAL FIXES
 * Be Vietnam Pro: đầy đủ dấu sắc/huyền/nặng/hỏi/ngã/thanh
 * Playfair Display chỉ dùng cho title card ngắn
 * ========================================================= */

/* Tiêu đề trong body content → Be Vietnam Pro để tránh lỗi dấu Việt */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.theater-info h1, .theater-info h2, .theater-info h3,
.post-content h1, .post-content h2, .post-content h3,
.zen-modal-main-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Tiêu đề card ngắn — Playfair Display + italic */
.zen-card-title,
.zen-modal-caption-title {
    font-family: 'Playfair Display', var(--font-heading);
    font-style: italic;
    font-weight: 500;
}

/* Mọi nội dung paragraph/span → Be Vietnam Pro */
p, li, td, th, blockquote,
.zen-modal-card-text, .concept-text,
.suno-track-title, .suno-track-prompt,
.zen-card-short-desc, .zen-card-quote p {
    font-family: var(--font-body);
    line-height: 1.75;
}

/* Quote / Triết lý — Be Vietnam Pro weight 300 italic */
blockquote, .quote-block, .post-quote-box, .zen-card-quote p {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

/* Code / Prompt → JetBrains Mono */
code, pre, .copy-text, .audio-time {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    letter-spacing: 0;
}

/* Button / Tab label → Be Vietnam Pro 600 */
button, .tab-btn, .filter-btn,
.zen-modal-btn-primary, .zen-modal-btn-secondary, .btn-copy {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navigation */
.site-navigation a, .site-logo {
    font-family: var(--font-heading);
}

/* Footer */
.site-footer, .site-footer * {
    font-family: var(--font-body);
}

/* Placeholder */
::placeholder {
    font-family: var(--font-body);
    font-style: italic;
    opacity: 0.45;
}

/* Mobile: tránh iOS auto-zoom khi focus input */
@media (max-width: 576px) {
    input, select, textarea { font-size: 16px !important; }
}

/* =========================================================
 * YOUTUBE-LIKE INTERACTION BAR & COMMENTS STYLING
 * ========================================================= */

.youtube-interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.youtube-interaction-left {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: var(--font-body);
}
.youtube-interaction-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.interaction-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: fit-content;
    white-space: nowrap;
}
.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}
.interaction-btn.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Optimized Share Dropdown */
.zen-share-container {
    position: relative;
    display: inline-block;
}
.zen-share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #0d0d11;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    width: 220px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
}
.zen-share-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.share-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-color);
}
.share-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}
.share-item:hover svg {
    transform: scale(1.15);
}
.share-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}
.share-item.share-copy.copied {
    color: #4ecdc4;
}

/* Pinned Comment Tag */
.pinned-comment-tag {
    font-size: 0.72rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212, 175, 55, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* YouTube-like Comments Section */
.youtube-comments-section {
    margin-top: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}
.comments-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}
.comments-count-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.comments-sort-dropdown select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.comments-sort-dropdown select:focus {
    outline: none;
}
.youtube-comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.form-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.form-input-container {
    flex-grow: 1;
}
.form-input-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 0;
    resize: none;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}
.form-input-container textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.btn-comment-cancel {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-comment-submit {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}
.comment-item-yt {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.comment-avatar-yt img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-content-yt {
    flex-grow: 1;
}
.comment-author-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
}
.comment-time-info {
    color: var(--text-secondary);
    font-size: 0.75rem;
}
.comment-text-yt {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.comment-actions-yt {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-action-btn:hover {
    color: var(--text-primary);
}
.comment-action-btn.active {
    color: var(--accent-color);
}
.comment-pin-action {
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    background: transparent;
    border: none;
}

/* Icon-Only Tabs */
.tab-navigation .tab-btn.icon-only {
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tab-navigation .tab-btn.icon-only svg {
    display: block;
    pointer-events: none;
}

/* Download block below tabs in right-column */
.download-artifact-block {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Linked articles in sidebar tab */
.linked-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
}
.linked-article-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.linked-article-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
}
.linked-article-thumb {
    width: 90px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.linked-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.linked-article-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.linked-article-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.linked-article-excerpt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Hover Download Button overlay for allowed downloads */
.media-wrapper.download-enabled, 
.zen-modal-image-wrapper.download-enabled, 
.gallery-sub-img.download-enabled, 
.gallery-main-img.download-enabled, 
.track-cover-wrapper.download-enabled,
.zen-card.download-enabled {
    position: relative;
}
.hover-download-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: auto;
    background: rgba(212, 175, 55, 0.9) !important;
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 105;
}
.hover-download-btn svg {
    display: block;
}
.zen-modal-image-wrapper:not(.download-enabled) .hover-download-btn {
    display: none !important;
}

/* Tối ưu hóa Custom Logo */
.custom-logo-link img.custom-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Custom Social Icon trong Footer */
.footer-social-link.custom-social-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.media-wrapper.download-enabled:hover .hover-download-btn,
.zen-modal-image-wrapper.download-enabled:hover .hover-download-btn,
.gallery-sub-img.download-enabled:hover .hover-download-btn,
.gallery-main-img.download-enabled:hover .hover-download-btn,
.track-cover-wrapper.download-enabled:hover .hover-download-btn,
.zen-card.download-enabled:hover .hover-download-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hover-download-btn:hover {
    background: rgba(212, 175, 55, 1) !important;
    color: #000 !important;
    transform: scale(1.05) translateY(0);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Rule for iframe media wrappers (Google Drive players) to show download button reliably */
.media-wrapper.download-enabled:has(iframe) .hover-download-btn {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}
.media-wrapper.download-enabled:has(iframe) .hover-download-btn:hover {
    opacity: 1;
    transform: scale(1.05) translateY(0);
}

/* Safeguard for long translations to prevent button overflow */
.hover-download-btn.long-text {
    font-size: 0.68rem !important;
    padding: 6px 10px !important;
}
.hover-download-btn {
    white-space: nowrap;
    min-width: fit-content;
}



.custom-logo { max-height: 50px; width: auto; object-fit: contain; }



/* Logo Styles */
.custom-logo-link img {
    max-height: 45px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.custom-logo-link img:hover {
    transform: scale(1.05);
}

/* --- AI Core Specs Circle Progress Charts --- */
.specs-circles-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 15px;
    flex-wrap: wrap;
}
.spec-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
    position: relative;
}
.spec-circle-svg-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}
.spec-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 3.5;
}
.circle-progress {
    fill: none;
    stroke: var(--gold-color, #D4AF37);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 100; /* Animated dynamically by JS */
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.spec-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-family: monospace;
}
.spec-circle-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.3;
}

/* Pulsing Gold Glow Feedback for copier */
@keyframes goldPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
        border-color: rgba(212, 175, 55, 0.8);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.35);
        border-color: rgba(212, 175, 55, 1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: rgba(255, 255, 255, 0.05);
    }
}
.copied-glow-active {
    animation: goldPulseGlow 1.2s ease-in-out !important;
}



/* --- Global Persistent Audio Bar --- */
.global-audio-bar {
    position: fixed;
    bottom: -100px; /* Hidden initially, slides up on activation */
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 14, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.global-audio-bar.active {
    bottom: 0;
}
.global-audio-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}
.global-audio-cover-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--gold-color, #D4AF37);
    background: #000;
}
.global-audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.global-audio-cover-wrapper.spinning .global-audio-cover {
    animation: spinRotate 12s linear infinite;
}
@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.global-audio-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.global-audio-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 2px;
}
.global-audio-desc {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
}
.global-audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 40%;
    justify-content: center;
}
.global-audio-play-btn {
    background: var(--gold-color, #D4AF37);
    border: none;
    color: #060608;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.global-audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
.global-audio-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.global-audio-progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.global-audio-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-color, #D4AF37);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}
.global-audio-time {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    font-family: monospace;
    min-width: 35px;
}
.global-audio-extra {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
    justify-content: flex-end;
}
.global-audio-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.global-audio-close-btn:hover {
    color: var(--text-primary, #fff);
}

/* PJAX Loading Bar at the top of page */
.pjax-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, #c49d2a, var(--gold-color, #D4AF37), #fff);
    z-index: 10000;
    transition: width 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.pjax-loading-bar.active {
    opacity: 1;
}

/* Global play states sync styles */
.suno-track-item.playing {
    border-color: var(--gold-color, #D4AF37) !important;
    background: rgba(212, 175, 55, 0.03) !important;
}

/* Related section header enhancements */
.related-section-title {
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

/* --- SEARCH OVERLAY SYSTEM --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-40px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
}

.search-overlay.search-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 90%;
    max-width: 680px;
    text-align: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--gold-color);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 15px;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--gold-color);
}

.search-field {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    width: 100%;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.mobile-search-btn {
    display: none !important;
}

.menu-item-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1rem;
    vertical-align: middle;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000; /* Ngay bên dưới drawer site-navigation (1001) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* Đưa header lên trên lớp phủ overlay khi mở menu di động */
body.mobile-menu-open .site-header {
    z-index: 1002 !important;
}

/* --- MOBILE NAVIGATION DRAWER --- */
@media (max-width: 1024px) {
    .mobile-search-btn {
        display: flex !important;
    }
    .desktop-search-btn {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .site-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background-color: #0c0c10 !important; /* Fallback màu tối thực tế */
        background: linear-gradient(180deg, #0c0c10 0%, #060608 100%) !important;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8), inset 1px 0 0 0 rgba(212, 175, 55, 0.1);
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start;
        padding: 40px 30px 40px;
        gap: 20px !important;
        z-index: 1001; /* Đè lên toàn bộ header */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
    }
    
    .mobile-drawer-header {
        display: flex !important;
    }
    
    .menu-item-icon {
        display: inline-block !important;
    }
    
    .site-navigation.mobile-nav-active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -20px 0 40px rgba(0,0,0,0.8);
    }
    
    .header-nav-menu {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100%;
    }
    
    .header-nav-menu li {
        width: 100%;
    }
    
    .header-nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    
    .lang-switcher {
        margin-top: 10px;
        width: 100%;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .lang-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.02);
        margin-top: 10px;
        max-height: 0;
        transition: max-height 0.3s ease;
    }
    
    .lang-switcher:hover .lang-dropdown {
        max-height: 300px;
    }
}

/* --- MOBILE & TABLET RESPONSIVE --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .site-header .container {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
    .site-title {
        font-size: 1.15rem !important;
    }
    .site-description {
        display: none !important;
    }
    .archive-header h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 40px 0 10px !important;
    }
    .archive-header h1 {
        font-size: 1.8rem !important;
    }
    .archive-header p {
        font-size: 0.95rem !important;
    }
    .filter-bar {
        gap: 8px;
        margin-bottom: 25px;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .site-footer {
        margin-top: 50px;
        padding: 40px 0 20px;
    }
    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Theater layout sidebar stacking spacing */
    .theater-info {
        top: 0;
    }
    .theater-header h1 {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 576px) {
    .search-close-btn {
        top: 20px;
        right: 20px;
    }
    .search-field {
        font-size: 1.3rem;
    }
    .zen-card {
        padding: 12px;
        border-radius: 14px;
    }
    .zen-card-title {
        font-size: 1.2rem;
    }
    .suno-track-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .suno-track-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .suno-track-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
    
    /* Global player on mobile */
    .global-audio-player-bar .container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    .global-audio-info {
        width: 100% !important;
    }
    .global-audio-progress-container {
        width: 100% !important;
    }
    .global-audio-extra {
        width: 100% !important;
        justify-content: space-between;
    }
}

/* --- LOGIN & REGISTER FRONTEND CARD --- */
.zen-auth-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.zen-auth-card:hover {
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.8), 0 0 25px rgba(212, 175, 55, 0.05);
}
.auth-tab-btn:hover {
    color: var(--text-primary) !important;
}

/* --- PRICING PLAN PAGE --- */
.pricing-grid .pricing-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pricing-card.plan-active:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 25px 45px rgba(212, 175, 55, 0.25) !important;
    border-color: #fff !important;
}
.plan-blurred:hover {
    opacity: 0.55 !important;
}
.pricing-card .plan-btn {
    transition: all 0.3s ease;
}
.pricing-card .plan-btn:hover {
    filter: brightness(1.1);
}

/* --- USER DROPDOWN MENU --- */
.user-dropdown-panel.dropdown-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.user-dropdown-panel .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: left;
}

.user-dropdown-panel .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-color) !important;
}

.dropdown-submenu-trigger:hover .dropdown-submenu-panel {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* --- USER PROFILE & SOCIALS --- */
.profile-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .profile-hero-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }
    .profile-info-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .profile-avatar-wrapper {
        margin: 0 auto;
    }
    .user-display-name-header {
        display: none !important; /* Hide name text in header bar on mobile to fit icons */
    }
    
    /* Responsive account grid */
    #form-account-settings div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    #form-account-settings {
        padding: 25px 20px !important;
    }
}

/* --- HEADER CONTROLS UNIFIED GOLD COLOR --- */
.search-toggle-btn,
.lang-btn,
.user-menu-btn,
.user-login-icon-btn,
.mobile-menu-toggle {
    color: var(--gold-color) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.search-toggle-btn:hover,
.lang-btn:hover,
.user-menu-btn:hover,
.user-login-icon-btn:hover,
.mobile-menu-toggle:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

/* --- USER PROFILE MASONRY GRID (MỤC 6) --- */
.zen-masonry-grid {
    margin: 0 auto;
}
.zen-grid-sizer,
.zen-masonry-grid > .zen-card,
.zen-masonry-grid .board-pin-card-wrapper {
    width: calc(25% - 15px);
}
.board-pin-card-wrapper .zen-card {
    width: 100% !important;
}
@media (max-width: 992px) {
    .zen-grid-sizer,
    .zen-masonry-grid > .zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 14px) !important;
    }
}
@media (max-width: 768px) {
    .zen-grid-sizer,
    .zen-masonry-grid > .zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 7px) !important; /* Lưới 3 cột di động với gutter 10px */
    }
    .zen-masonry-grid .zen-card {
        padding: 8px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
    .zen-masonry-grid .zen-card-title,
    .zen-masonry-grid .zen-card-short-desc, 
    .zen-masonry-grid .zen-card-meta,
    .zen-masonry-grid .zen-card-quote {
        display: none !important; /* Ẩn toàn bộ thông tin phụ để giữ lưới ảnh Profile di động sạch sẽ */
    }
    .zen-masonry-grid .zen-card-media {
        margin-bottom: 0 !important; /* Bỏ lề dưới vì không còn text phía dưới */
        border-radius: 6px !important;
    }
}

/* --- DOUBLE-TAP PIN ANIMATION --- */
.floating-pin-effect {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 99999;
    animation: floatUpPin 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatUpPin {
    0% {
        transform: scale(0.3) rotate(-15deg);
        opacity: 0;
    }
    30% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-60px) rotate(0deg);
        opacity: 0;
    }
}

/* --- SKELETON SHIMMER EFFECT --- */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmerEffect 1.5s infinite;
}

@keyframes shimmerEffect {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Profile Hero Card (Pinterest Center Design) */
@media (max-width: 768px) {
    .profile-hero-card {
        margin-bottom: 25px !important;
    }
    .profile-banner-bg {
        height: 130px !important;
    }
    .change-banner-btn {
        top: 10px !important;
        right: 10px !important;
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }
    .profile-details-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px 25px !important;
        gap: 15px !important;
    }
    .profile-avatar-wrapper {
        width: 90px !important;
        height: 90px !important;
        margin-top: -65px !important;
        margin-left: 0 !important;
        border-width: 3px !important;
    }
    .profile-main-info {
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .profile-main-info > div:not(.profile-header-inline-row) {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .profile-header-inline-row {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .profile-header-left-group, .profile-header-right-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: auto !important;
    }
    
    /* Action buttons center as small circular buttons on mobile */
    .profile-action-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        width: auto !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }
    .profile-circle-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Pinterest-style stats bar */
    .profile-stats-row {
        display: inline-flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: auto !important;
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    .profile-stat-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .profile-stat-item svg {
        width: 14px !important;
        height: 14px !important;
        margin-bottom: 0 !important;
    }
    .profile-stat-text {
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .profile-stat-text strong {
        font-size: 0.95rem !important;
        color: #fff !important;
        display: inline-block !important;
        margin-bottom: 0 !important;
    }
    .profile-stat-label {
        font-weight: normal !important;
    }
    @media (max-width: 768px) {
        .profile-stats-row {
            gap: 15px !important;
        }
        .profile-stat-label {
            display: none !important; /* Hide long labels on mobile */
        }
        .profile-stat-item {
            flex: unset !important;
        }
        .profile-stat-text {
            font-size: 0.85rem !important;
        }
    }
}

/* Responsive Profile Tabs */
@media (max-width: 768px) {
    .profile-tabs {
        gap: 15px !important;
        justify-content: space-around !important;
        margin-bottom: 25px !important;
        padding-bottom: 8px !important;
    }
    .profile-tab-btn {
        font-size: 0.85rem !important;
        padding: 6px 4px !important;
        gap: 4px !important;
        flex: 1;
        justify-content: center;
    }
    .profile-tab-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    .profile-tab-btn .active-indicator {
        bottom: -9px !important;
    }
}
@media (max-width: 480px) {
    .profile-tabs {
        gap: 6px !important;
    }
    .profile-tab-btn {
        font-size: 0.78rem !important;
        padding: 6px 2px !important;
    }
    .profile-tab-btn svg {
        display: none !important; /* Hide icon on very small screen to make room for text */
    }
}

/* Responsive 2-column Grid for Mobile & 3-column for Tablet */
@media (max-width: 1024px) {
    .zen-grid-sizer,
    .zen-masonry-grid > .zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 7px) !important; /* 3 columns on Tablet */
    }
}
@media (max-width: 768px) {
    .zen-grid-sizer,
    .zen-masonry-grid > .zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(50% - 5px) !important; /* 2 columns on Mobile */
    }
}

/* Fallback styles for cards without images in profile */
.zen-masonry-grid .zen-card[data-post-type] {
    min-height: 120px;
}
@media (max-width: 768px) {
    /* If a card does not have media or media is collapsed, styling fallback */
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) {
        background: rgba(15, 15, 20, 0.6) !important;
        border: 1px solid rgba(212, 175, 55, 0.25) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px 12px !important;
    }
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-media {
        display: block !important;
        width: 100% !important;
        background: none !important;
        aspect-ratio: auto !important;
        margin-bottom: 5px !important;
    }
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-media div {
        background: none !important;
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
    }
    /* Force display of post titles for text-only/image-less cards on mobile */
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-title {
        display: block !important;
        font-size: 0.85rem !important;
        color: #fff !important;
        margin: 4px 0 0 0 !important;
        font-weight: 600 !important;
        font-family: var(--font-sans) !important;
        line-height: 1.3 !important;
    }
}

/* Mobile Bottom Navigation Bar (Pinterest Style) */
.zen-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    height: 58px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .zen-bottom-nav {
        display: flex; /* Visible on mobile/tablet */
    }
    /* Add extra padding at the bottom of the body to prevent content from being cut off by the navigation bar */
    body {
        padding-bottom: 85px !important;
    }
}

.zen-bottom-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.25s ease;
    position: relative;
}

.zen-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.zen-bottom-nav-item:hover,
.zen-bottom-nav-item.active {
    color: var(--gold-color);
}

.zen-bottom-nav-item.active svg {
    transform: scale(1.08);
}

.zen-bottom-nav-item .nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: border-color 0.25s ease;
}

.zen-bottom-nav-item.active .nav-avatar {
    border-color: var(--gold-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Plus button highlight */
.zen-bottom-nav-item.nav-plus {
    background: linear-gradient(135deg, #D4AF37 0%, #AA8010 100%);
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.zen-bottom-nav-item.nav-plus:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.45);
}

/* Custom Toast notification style */
.zen-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--gold-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zen-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

/* Responsive Related Grid (More Like This) */
.related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Pinterest uses 2 cols even on small devices */
        gap: 10px !important;
    }
    .related-grid .zen-card {
        padding: 6px !important;
        border-radius: 8px !important;
    }
}

/* Footer Grid Responsive Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .footer-grid > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-grid .site-logo-container {
        justify-content: center !important;
        margin-bottom: 12px !important;
    }
    .footer-grid p {
        text-align: center !important;
        font-size: 0.88rem !important;
    }
    .footer-grid .footer-nav-menu {
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .footer-grid .footer-nav-menu li {
        text-align: center !important;
    }
    .footer-grid h4 {
        margin-bottom: 15px !important;
    }
    
    /* Cover Banner Socials Alignment on Mobile */
    .profile-banner-socials {
        position: absolute !important;
        right: 15px !important;
        left: auto !important;
        bottom: 12px !important;
        transform: none !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
    }
}

/* Mobile Bottom Navigation Bar (Pinterest style) */
.zen-bottom-nav {
    display: none !important; /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    .zen-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        height: 60px !important;
        background: rgba(15, 15, 20, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        box-sizing: border-box !important;
    }
    
    .zen-bottom-nav-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.25s ease !important;
        border-radius: 50% !important;
        text-decoration: none !important;
    }
    
    .zen-bottom-nav-item svg {
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.25s ease !important;
    }
    
    .zen-bottom-nav-item:hover,
    .zen-bottom-nav-item.active {
        color: var(--gold-color) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }
    
    .zen-bottom-nav-item.active svg {
        transform: scale(1.1) !important;
    }
    
    .zen-bottom-nav-item.nav-plus {
        background: var(--gold-color) !important;
        color: #000 !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
    }
    
    .zen-bottom-nav-item.nav-plus:hover {
        background: #fff !important;
        color: #000 !important;
        transform: scale(1.05) !important;
    }
    
    .zen-bottom-nav-item .nav-avatar {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
        transition: border-color 0.25s ease !important;
    }
    
    .zen-bottom-nav-item.active .nav-avatar {
        border-color: var(--gold-color) !important;
    }
    
    /* Offset footer on mobile to prevent bottom nav overlay */
    body {
        padding-bottom: 60px !important;
    }
}
