< !--

/* =========================================
1. MÀU SẮC, NỀN & SMOOTH SCROLL
========================================= */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-solid: #fafafa;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #f5f3ff 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --gradient-brand: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
    --glow-color: rgba(139, 92, 246, 0.3);
    --blob-glow: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] {
    --bg-solid: #030305;
    --bg-gradient: radial-gradient(circle at 15% 0%, rgba(15, 30, 80, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(45, 15, 80, 0.8) 0%, transparent 40%),
        linear-gradient(135deg, #030305 0%, #070911 50%, #0a0512 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-bg: rgba(3, 3, 5, 0.75);
    --nav-border: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(15, 20, 35, 0.5);
    --card-border: rgba(255, 255, 255, 0.05);
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    --glow-color: rgba(168, 85, 247, 0.5);
    --blob-glow: rgba(59, 130, 246, 0.15);
}

body {
    background-color: var(--bg-solid);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

.is-hidden {
    display: none !important;
}

/* =========================================
2. SCROLL ANIMATION
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
3. HEADER CỐ ĐỊNH & DROPDOWN MENU
========================================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--nav-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    padding: 5px 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links>a:hover {
    transform: translateY(-2px);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--glow-color);
}

/* MENU DROPDOWN */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    padding: 5px 0;
}

[data-theme="dark"] .nav-dropdown .dropdown-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 12px 20px;
    border-bottom: 1px dashed var(--nav-border);
    display: block;
    font-weight: 600;
    font-size: 13px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(139, 92, 246, 0.05);
    padding-left: 25px;
    color: #8b5cf6;
}

/* ĐỒNG BỘ 3 NÚT: TÌM KIẾM, SÁNG/TỐI, MENU MOBILE */
.search-trigger-btn,
.theme-toggle,
.mobile-menu-btn {
    background: transparent;
    border: 1px solid var(--nav-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    margin-left: 10px;
    transition: all 0.3s;
    outline: none;
    padding: 0;
}

.search-trigger-btn:hover,
.theme-toggle:hover,
.mobile-menu-btn:hover {
    background: var(--nav-border);
    box-shadow: 0 0 15px var(--glow-color);
}

.search-trigger-btn svg,
.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 16px;
}

.btn-action {
    background: var(--gradient-brand);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--glow-color);
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color);
}

/* READING PROGRESS BAR */
.reading-progress-container {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--glow-color);
}

/* =========================================
4. BỐ CỤC BÀI VIẾT & TRANG PAGE
========================================= */
.main-blog-wrapper {
    max-width: 1200px;
    margin: 120px auto 100px;
    padding: 0 20px;
    min-height: 50vh;
}

.label-header {
    margin-bottom: 30px;
    text-align: left;
}

.label-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.label-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.label-breadcrumb a:hover {
    color: #10b981;
}

.label-breadcrumb .sep {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 2px;
}

.label-breadcrumb .current {
    color: #10b981;
    font-weight: 800;
}

.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
}

[data-theme="dark"] .blog-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 10;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px var(--glow-color);
}

.blog-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date-meta {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #8b5cf6;
}

.blog-card-snippet {
    display: none !important;
    /* Ẩn hoàn toàn đoạn trích dẫn và khoảng trống */
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
    margin-top: auto;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-info span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.blog-read-more {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.blog-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blog-card:hover .blog-read-more {
    color: #8b5cf6;
}

.blog-card:hover .blog-read-more svg {
    transform: translateX(5px);
}

.blog-pager {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    clear: both;
}

.pager-btn {
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pager-btn:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--glow-color);
}

/* SINGLE POST */
.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .single-post-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.is-page-true .single-post-container {
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.is-page-true .single-post-title,
body.is-page-true .single-post-meta,
body.is-page-true .breadcrumb,
body.is-page-true .post-share-box {
    display: none !important;
}

.breadcrumb {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(139, 92, 246, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.breadcrumb a:hover {
    color: #fff;
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--glow-color);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-bottom: 2px;
}

.breadcrumb .current {
    color: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    padding: 6px 12px;
}

.single-post-title {
    font-size: 25px;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: var(--text-main);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
    padding-bottom: 30px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
    font-weight: 500;
}

.single-post-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
}

.post-img-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.post-img-zoom:hover {
    opacity: 0.9;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-post-body h2,
.single-post-body h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-main);
}

/* MAC OS CODE BLOCK STYLE */
.mac-code-wrapper {
    background: #1e1e1e;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: ltr;
    text-align: left;
}

.mac-code-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dot.red {
    background: #ff5f56;
}

.mac-dot.yellow {
    background: #ffbd2e;
}

.mac-dot.green {
    background: #27c93f;
}

.mac-code-title {
    font-size: 13px;
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.mac-copy-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
    outline: none;
}

.mac-copy-btn:hover {
    color: #fff;
}

.mac-code-wrapper pre {
    margin: 0 !important;
    padding: 20px !important;
    overflow-x: auto;
    color: #e6edf3;
    font-size: 14px;
    line-height: 1.6;
    background: transparent !important;
    border: none !important;
    white-space: pre;
}

.post-share-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.post-share-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-right: 10px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    transform: translateY(-4px);
}

.share-fb {
    background: #1877F2;
}

.share-tw {
    background: #1DA1F2;
}

[data-theme="dark"] .share-tw {
    background: #1DA1F2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-tg {
    background: #0088cc;
}

.share-link {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

/* =========================================
5. CÁC KHỐI TRANG CHỦ (LANDING PAGE)
========================================= */
.main-container {
    max-width: 1200px;
    margin: 130px auto 0;
    padding: 0 20px;
}

.hero-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.05);
}

.hero-premium-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.hero-badge-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 70vh;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--text-main) !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid var(--nav-border);
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    transform: translateY(-3px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px var(--glow-color);
}

.hero-static-wrapper {
    flex: 1.1;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

[data-theme="dark"] .hero-image-box {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-image-box:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px var(--glow-color);
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}

.hero-image-box:hover img {
    transform: scale(1.03);
}

.hero-img-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease;
}

.hero-image-box:hover .hero-img-info {
    transform: translateY(0);
    opacity: 1;
}

.hero-img-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.hero-img-info p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
}

.hero-static-wrapper::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--blob-glow);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatAnim 8s ease-in-out infinite reverse;
}

.stats-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 120px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .stats-wrapper {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
6. BENTO GRID TRANG CHỦ (TRẠM ĐIỀU HƯỚNG BẰNG KÍNH)
========================================= */
.home-bento-section {
    margin-bottom: 120px;
    position: relative;
}

/* Các đốm sáng mờ (Glow blobs) phía sau để làm nổi bật hiệu ứng kính */
.home-bento-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.home-bento-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Thiết kế Kính mờ 3D trong suốt cho Thẻ (Glassmorphism) */
.hb-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 2px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Thiết kế Kính mờ ở chế độ Ban đêm (Dark Mode) */
[data-theme="dark"] .hb-card {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hb-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px var(--glow-color);
}

.hb-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.4s;
}

.hb-card:hover .hb-icon {
    transform: scale(1.1) rotate(-5deg);
}

.hb-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}

.hb-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hb-large {
    grid-column: span 2;
}

/* Icon Colors */
.ic-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.ic-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ic-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ic-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ic-cyan {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.ziczac-section {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.ziczac-reverse {
    flex-direction: row-reverse;
}

.ziczac-img-box {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
}

.ziczac-img-box::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: var(--blob-glow);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.ziczac-img-box img {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
    transition: transform 0.8s ease;
}

[data-theme="dark"] .ziczac-img-box img {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
}

.ziczac-img-box:hover img {
    transform: scale(1.05) translateY(-5px);
}

.ziczac-content {
    flex: 1;
}

.tag-mini {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ziczac-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ziczac-content h2 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ziczac-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-slider-section {
    margin-bottom: 120px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-header h2 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.ps-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ps-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 18px;
    transition: all 0.3s;
    position: absolute;
}

.ps-btn:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 20px var(--glow-color);
}

.ps-prev {
    left: -20px;
}

.ps-next {
    right: -20px;
}

.ps-track-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    border-radius: 20px;
}

.ps-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.ps-card {
    flex: 0 0 320px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
}

[data-theme="dark"] .ps-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ps-card:hover {
    transform: translateY(-8px);
    border-color: var(--glow-color);
}

.ps-img {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.ps-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ps-card:hover .ps-img img {
    transform: scale(1.08);
}

.ps-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-brand);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ps-info {
    padding: 20px;
}

.ps-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.ps-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.ps-price {
    font-size: 18px;
    font-weight: 900;
    color: #10b981;
}

/* =========================================
TÙY CHỈNH LẠI GIAO DIỆN VIDEO (GỌN GÀNG, 1 DÒNG)
========================================= */
.video-section {
    margin-bottom: 120px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 1. Thẻ Video bo góc 16px giống thẻ Sản phẩm */
.vid-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

[data-theme="dark"] .vid-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vid-card:hover {
    transform: translateY(-8px);
    border-color: var(--glow-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 2. Ảnh Thumbnail */
.vid-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.vid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.vid-card:hover .vid-overlay {
    background: rgba(0, 0, 0, 0.05);
}

/* 3. Nút Play thu nhỏ lại một chút cho tinh tế */
.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.vid-card:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--glow-color);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 4px;
}

/* 4. Khung chữ thu gọn padding và căn giữa */
.vid-info {
    padding: 15px 10px;
    text-align: center;
}

/* 5. Tiêu đề ép xuống còn 1 dòng, thêm dấu ... nếu dài quá */
.vid-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    /* Bỏ margin thừa */
    color: var(--text-main);
    white-space: nowrap;
    /* Bắt buộc nằm trên 1 dòng */
    overflow: hidden;
    /* Giấu phần chữ tràn ra ngoài */
    text-overflow: ellipsis;
    /* Thêm dấu ba chấm (...) */
}

.testimonial-section {
    margin-bottom: 120px;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px 30px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .testi-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 40px;
    color: var(--nav-border);
    font-family: serif;
    line-height: 1;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testi-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.user-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3px;
}

.user-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.faq-section {
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .faq-item {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    border-color: var(--glow-color);
    box-shadow: 0 10px 25px var(--glow-color);
}

.faq-q {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    font-size: 16px;
    transition: color 0.3s;
}

.faq-item.active .faq-q {
    color: var(--gradient-brand);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #8b5cf6;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 25px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding-bottom: 25px;
}

.cta-section {
    margin-bottom: 80px;
    perspective: 1000px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cta-3d-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: block;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .cta-3d-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cta-3d-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--card-glow);
    box-shadow: 0 20px 40px var(--card-glow);
}

.cta-3d-card .glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

.cta-3d-card:hover .glow-bg {
    opacity: 0.15;
}

.cta-3d-card .card-content {
    position: relative;
    z-index: 1;
    transition: transform 0.5s;
}

.cta-3d-card:hover .card-content {
    transform: translateZ(40px);
}

.cta-3d-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cta-3d-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cta-3d-card .join-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.cta-3d-card:hover .join-btn {
    background: var(--text-main);
    color: var(--bg-solid);
    border-color: transparent;
}

.card-tele1 {
    --card-glow: rgba(0, 136, 204, 0.6);
    --icon-bg: linear-gradient(135deg, #0088cc, #00aaff);
}

.card-tele2 {
    --card-glow: rgba(0, 136, 204, 0.6);
    --icon-bg: linear-gradient(135deg, #00aaff, #0088cc);
}

.card-yt {
    --card-glow: rgba(255, 0, 0, 0.6);
    --icon-bg: linear-gradient(135deg, #ff0000, #ff4d4d);
}

.card-tt {
    --card-glow: rgba(0, 242, 254, 0.6);
    --icon-bg: linear-gradient(135deg, #010101, #69c9d0);
}

.infinite-marquee-section {
    margin-bottom: 100px;
    padding: 40px 0;
    overflow: hidden;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.im-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: imScroll 30s linear infinite;
}

.im-track:hover {
    animation-play-state: paused;
}

.im-item {
    width: 280px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.im-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.im-item:hover {
    transform: scale(1.05);
    border-color: var(--glow-color);
    box-shadow: 0 15px 30px var(--glow-color);
    z-index: 2;
}

@keyframes imScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* LIGHTBOX ẢNH CHO BÀI VIẾT */
.cinematic-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10, 15, 30, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cinematic-backdrop.show {
    display: flex;
    opacity: 1;
}

.cinematic-backdrop.show .cinematic-img-wrap {
    transform: scale(1);
}

.btn-close-cinematic {
    position: absolute;
    top: 25px;
    right: 35px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999999;
    transition: all 0.3s;
}

.btn-close-cinematic:hover {
    background: #ef4444;
    border-color: transparent;
    transform: rotate(90deg);
}

.cinematic-img-wrap {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .header-fixed {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hiện nút Hamburger trên mobile */
    /* Giao diện Menu thả xuống trên Mobile */
    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links>a,
    .nav-dropdown>a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px dashed var(--nav-border) !important;
        font-size: 15px;
    }

    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown>a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .nav-dropdown .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.02);
        display: none;
        padding: 0;
    }

    [data-theme="dark"] .nav-dropdown .dropdown-content {
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-dropdown.active .dropdown-content {
        display: flex;
    }

    .hb-grid {
        grid-template-columns: 1fr;
    }

    .hb-large {
        grid-column: span 1;
    }

    .hero-box {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-top: 30px;
        min-height: auto;
    }

    .hero-content h1 span {
        white-space: normal;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-static-wrapper {
        width: 100%;
    }

    .hero-image-box {
        height: 400px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
    }

    .ziczac-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }

    .ps-btn {
        display: none;
    }

    .ps-track-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .ps-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
    }

    .im-item {
        width: 220px;
        height: 140px;
    }

    .main-blog-wrapper {
        margin-top: 100px;
    }

    .blog-grid-container {
        grid-template-columns: 1fr;
    }

    .single-post-container {
        padding: 30px 20px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .btn-close-cinematic {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* =========================================
TỐI ƯU THẺ SẢN PHẨM: HÌNH CHỮ NHẬT MINIMALIST (TỐI GIẢN)
========================================= */
/* 1. Ép khung ảnh về tỷ lệ chuẩn 16:9 */
.ps-card .ps-img,
.ps-card .img-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    /* Xóa lề dưới của ảnh để kéo chữ sát lên */
    border-radius: 16px 16px 0 0 !important;
    /* Bo góc mượt mà khớp với viền ngoài */
}

.ps-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2. "Bốc hơi" vĩnh viễn các nút bấm (Liên hệ, Xem chi tiết, Tải miễn phí...) */
.ps-card .btn-action,
.ps-card .btn-outline,
.ps-card .ps-action,
.ps-card .card-buttons,
.ps-card .ps-footer,
.ps-card a.btn {
    display: none !important;
}

/* 3. Ẩn luôn đoạn văn bản mô tả rườm rà (Để thẻ ngắn lại thành hình chữ nhật) */
.ps-card .ps-desc,
.ps-card p {
    display: none !important;
}

/* 4. Kéo tên sản phẩm sát lên hình ảnh và căn giữa sang trọng */
.ps-card .ps-info,
.ps-card .card-content {
    padding: 12px 15px 15px 15px !important;
    /* Rút cực ngắn khoảng cách (chỉ còn 12px) */
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Tối ưu lại Tiêu đề Sản phẩm */
.ps-card h3,
.ps-card .ps-title {
    margin: 0 !important;
    /* Xóa mọi khoảng trắng thừa phía trên và dưới chữ */
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: var(--text-main) !important;
}

/* =========================================
TỐI ƯU TRANG BÀI VIẾT (TIÊU ĐỀ, ĐỘ RỘNG, PHÔNG CHỮ)
========================================= */
/* 1. Mặc định phông chữ nội dung bài viết là Open Sans */
.post-body,
.post-body p,
.post-body span,
.post-body li,
.post-body div,
.post-body font,
.post-body *[style*="font-family"] {
    font-family: 'Open Sans', sans-serif !important;
}

/* 2. Giảm kích thước Tiêu đề bài viết cho tinh tế hơn */
h1.post-title,
.post-title,
.item-title {
    font-size: 23px !important;
    /* Bạn có thể tăng/giảm số này (Mặc định thường là 32-36px) */
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
}

/* 3. Mở rộng khung bài viết (Card) to hơn */
/* Áp dụng cho các class phổ biến của Theme hiện đại */
.item-view .post-outer,
.item-view .post-container,
.item-view article.post,
.item-view .main-inner {
    max-width: 1000px !important;
    /* Tăng độ rộng khung (Có thể thử 900px hoặc 1000px) */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* =========================================
KHIÊN BẢO VỆ: CHỐNG BÔI ĐEN TOÀN TRANG
========================================= */
/* Khóa bôi đen mọi văn bản và hình ảnh để bảo vệ chất xám */
body,
.pattern-wrapper,
.afl-wrapper,
.vip-premium-section,
.afl-grid,
.pattern-grid {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* NGOẠI LỆ: Bắt buộc nhả cho các ô nhập liệu để khách còn gõ được chữ */
input,
textarea,
#emailInput,
#aflSearch,
#patternSearch,
.search-pattern input,
.afl-search-box input {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* ĐẶC QUYỀN ADMIN: Cho phép bôi đen toàn bộ */
body.admin-mode,
body.admin-mode * {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* =========================================
MEGA-MENU KIẾN THỨC (ICON VÀ TIÊU ĐỀ 1 DÒNG)
========================================= */
.nav-dropdown:hover .mega-menu-content {
    display: grid !important;
}

.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -100px;
    width: 600px !important;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-radius: 16px;
    /* Tăng độ mờ lên 96% theo yêu cầu */
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border, #f1f5f9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

[data-theme="dark"] .mega-menu-content {
    background: rgba(15, 23, 42, 0.96) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Chuyển thẻ a thành block để Mô tả tự động rớt xuống dòng */
.mega-item {
    display: block;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-item:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

[data-theme="dark"] .mega-item:hover {
    background: rgba(16, 185, 129, 0.15);
}

/* Khối chứa Icon + Tiêu đề nằm trên cùng 1 hàng ngang */
.mega-title {
    display: flex;
    align-items: center;
    /* Căn giữa chiều dọc cho icon và chữ */
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 6px;
    /* Đẩy nhẹ mô tả xuống dưới */
    font-family: 'Inter', sans-serif;
}

/* Thu nhỏ Icon vuông lại để vừa vặn khi đứng cùng dòng tiêu đề */
.mega-icon {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 13px;
}

/* Dòng mô tả nằm ở dưới, thụt lề bằng với chữ Tiêu đề */
.mega-desc {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
    margin: 0;
    font-family: 'Inter', sans-serif;
    padding-left: 38px;
    /* 28px icon + 10px margin = 38px thụt lề */
}

/* CLASS DÀNH RIÊNG CHO MEGA MENU 1 CỘT (Ít mục) */
.mega-menu-sm {
    width: 320px !important;
    /* Thu gọn bề ngang lại */
    grid-template-columns: 1fr !important;
    /* Ép thành 1 cột dọc */
    left: 0 !important;
    /* Căn lề thẳng với nút menu mẹ */
}

/* Tối ưu menu cho 4 mục - Chia 2 cột dọc */
.mega-menu-code {
    width: 520px !important;
    /* Độ rộng vừa đủ cho 2 cột */
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    /* Chia 2 cột */
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--card-border, #f1f5f9);
}

[data-theme="dark"] .mega-menu-code {
    background: rgba(15, 23, 42, 0.96) !important;
}

/* Giữ nguyên các style mega-item, mega-title, mega-desc như cũ */

-->

/* Xóa khung viền bài viết mặc định để bung tràn màn hình */
.single-post-container {
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.breadcrumb,
.single-post-meta,
.post-share-box,
.single-post-title {
    display: none !important;
}

/* =========================================
   1. HERO HEADER: TIÊU ĐỀ
========================================= */
.afl-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.afl-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.afl-hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main, #111);
}

.afl-hero h1 span {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.afl-hero p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   2. THANH TÌM KIẾM & BỘ LỌC
========================================= */
.afl-controls {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.afl-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.afl-search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 30px;
    border: 2px solid var(--card-border, #eee);
    background: var(--card-bg, #fff);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    font-family: 'Inter', sans-serif;
}

.afl-search-box input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.afl-search-box i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.afl-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.afl-filter-btn {
    background: var(--nav-border, #f8fafc);
    border: 1px solid var(--card-border, #eee);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.afl-filter-btn:hover,
.afl-filter-btn.active {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* =========================================
   3. BỐ CỤC LƯỚI TỪ ĐIỂN
========================================= */
.afl-wrapper {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.afl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* THẺ TỪ ĐIỂN */
.afl-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #eee);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

[data-theme="dark"] .afl-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.afl-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Phần thông tin hàm */
.afl-info {
    padding: 25px;
    border-bottom: 1px solid var(--card-border, #eee);
    flex: 1;
}

.afl-name {
    font-size: 22px;
    font-weight: 900;
    color: #8b5cf6;
    font-family: monospace;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afl-tag {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.afl-syntax {
    background: var(--nav-border, #f1f5f9);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
}

.afl-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Phần code ví dụ (Nền đen) */
.afl-code-box {
    background: #0f172a;
    padding: 20px 25px;
    position: relative;
}

.afl-code-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.afl-code {
    font-family: monospace;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

.afl-code .keyword {
    color: #f472b6;
}

/* Màu hồng cho lệnh */
.afl-code .func {
    color: #38bdf8;
}

/* Màu xanh dương cho hàm */
.afl-code .string {
    color: #a3e635;
}

/* Màu xanh lá cho text */
.afl-code .comment {
    color: #64748b;
    font-style: italic;
}

/* Màu xám cho chú thích */

/* Nút Copy */
.btn-copy {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-copy:hover {
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.1);
}

.btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
}

/* Trạng thái không tìm thấy */
.afl-no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 16px;
    display: none;
}

.afl-no-result i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .afl-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .afl-hero h1 {
        font-size: 32px;
    }
}

/* =========================================
   4. GIAO DIỆN KHÓA VIP (CHIẾN THUẬT FREEMIUM ĐẶC TRỊ CHO TỪ ĐIỂN HÀM)
========================================= */
.vip-premium-section {
    position: relative;
    min-height: 1200px;
    /* Cung cấp không gian cuộn rộng hơn */
    overflow: hidden;
    border-radius: 20px;
}

/* =========================================
   CƠ CHẾ "NHẢ MỒI CÂU" (TRỪ LẠI 2 THẺ ĐẦU TIÊN)
========================================= */

/* 1. Xóa mờ tổng thể (Gỡ bỏ lệnh mờ cũ bao trùm cả khung) */


/* 2. Ép làm mờ TỪ THẺ SỐ 3 TRỞ ĐI (Giấu đi món ngon phía sau) */


/* 3. Đẩy lớp kính mờ tụt xuống chừa không gian cho 2 thẻ đầu */


/* Ổ khóa hạ thấp xuống để nằm gọn trong vùng mờ */








/* VÙNG NÚT BẤM (1 TO TRÊN - 2 NHỎ DƯỚI) */
.vip-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.vip-btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}









/* LÀM MỜ NỘI DUNG BÊN DƯỚI TỐI ĐA */
/* =========================================
   CƠ CHẾ "NHẢ MỒI CÂU" ĐẶC TRỊ CHO TỪ ĐIỂN
========================================= */

/* 1. Ép hệ thống XÓA LÀM MỜ cho toàn bộ khung Từ Điển bằng ID mạnh nhất */
#aflGrid
/* 2. Bắt buộc CHỈ LÀM MỜ từ thẻ hàm thứ 3 trở đi */


/* 3. Đẩy tụt lớp kính mờ xuống 350px để chừa chỗ cho 2 thẻ đầu lộ ra */

[data-theme="dark"]
/* 4. Hạ thấp ổ khóa xuống cho vừa tầm mắt */



/* CSS Định dạng dải băng thống kê */
.footer-stats-row {
    width: 100%;
    max-width: 1200px;
    /* margin-top: 0 để kéo sát lên trên */
    margin: 0 auto 40px;
    /* Xóa padding-top để bỏ khoảng trắng thừa */
    padding-top: 0;
    /* Xóa đường kẻ nét đứt */
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fs-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.fc-glass-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fc-glass-box:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.fc-magic-img {
    max-width: 100%;
    border-radius: 4px;
    mix-blend-mode: multiply;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: block;
}

.fc-glass-box:hover .fc-magic-img {
    opacity: 1;
}

[data-theme="dark"] .fc-magic-img {
    mix-blend-mode: normal;
    filter: invert(1) hue-rotate(180deg) contrast(1.2) brightness(1.1);
}

[data-theme="dark"] .fc-glass-box {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* CSS cho Hộp khóa trong bài viết */

.vip-secret-content {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   GIAO DIỆN THẺ KHUYẾN NGHỊ BỊ KHÓA BẰNG KÍNH MỜ
========================================= */


/* Lớp kính mờ phủ lên trên thẻ */

[data-theme="dark"]
/* Nút bấm nhỏ trên thẻ */


/* Hiệu ứng che mờ thông tin nhạy cảm */



/* Ẩn hoàn toàn trên máy tính */
.mobile-bottom-nav {
    display: none;
}

/* Chỉ hiển thị trên thiết bị di động (Màn hình nhỏ hơn 768px) */
@media (max-width: 768px) {

    /* Tạo khoảng trống ở đáy web để nội dung không bị thanh menu che mất */
    body {
        padding-bottom: 70px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999999;
        /* Luôn nổi lên trên cùng */
        padding-bottom: env(safe-area-inset-bottom);
        /* Tránh bị che bởi thanh gạt của iPhone */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 600;
        width: 20%;
        height: 100%;
        transition: 0.3s;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
        transition: 0.3s;
    }

    /* Hiệu ứng khi bấm vào */
    .nav-item:hover,
    .nav-item:active {
        color: #3b82f6;
    }

    .nav-item:active i {
        transform: translateY(-3px);
        color: #3b82f6;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }

    /* Thiết kế Nút Trung Tâm (Kho Công Cụ) nổi bật */
    .nav-item-center {
        position: relative;
        top: -15px;
    }

    .nav-center-btn {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 24px;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
        border: 4px solid #0f172a;
        transition: 0.3s;
    }

    .nav-center-btn:active {
        transform: scale(0.9);
    }
}


#vip-success-popup {
    position: fixed;
    top: 85px;
    /* Nằm dưới thanh menu một chút */
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999999;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#vip-success-popup.show {
    transform: translateX(0);
}

.vip-popup-icon i {
    font-size: 28px;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.vip-popup-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-popup-text p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}


.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-search:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
    transform: translateY(-50px);
    transition: 0.4s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal form {
    display: flex;
    border-bottom: 3px solid #10b981;
    padding-bottom: 10px;
}

.search-modal input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    padding: 10px;
    font-family: 'Inter', sans-serif;
}

.search-modal input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.search-modal button {
    background: transparent;
    border: none;
    color: #10b981;
    font-size: 36px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 20px;
    outline: none;
}

.search-modal button:hover {
    transform: translateX(10px) scale(1.1);
    color: #8b5cf6;
}

@media (max-width: 768px) {
    .search-modal input {
        font-size: 20px;
    }

    .close-search {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
}


.slide-search-container {
    position: fixed;
    top: 75px;
    /* Chiều cao chính xác của thanh Header */
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--nav-border);
    padding: 20px 4%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 998;
    /* Nằm ngay dưới Header */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .slide-search-container {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.slide-search-container.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.slide-search-form {
    display: flex;
    width: 100%;
    max-width: 650px;
    background: var(--card-bg);
    border: 2px solid var(--nav-border);
    border-radius: 40px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.slide-search-form:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 5px 20px var(--glow-color);
}

.slide-search-input {
    flex: 1;
    padding: 14px 25px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.slide-search-input::placeholder {
    color: var(--text-muted);
}

.slide-search-submit {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
    outline: none;
}

.slide-search-submit:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .slide-search-container {
        padding: 15px 20px;
    }

    .slide-search-input {
        font-size: 14px;
        padding: 12px 20px;
    }

    .slide-search-submit {
        padding: 0 20px;
    }
}


/* 1. Nút Donate Góc Trái */
.donate-coffee-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Cố định góc trái bên dưới */
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    /* Màu Cam Cà Phê cực đẹp */
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    z-index: 9999;
    /* Luôn nổi trên mọi thứ */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.donate-coffee-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

.donate-coffee-btn img {
    width: 24px;
    height: 24px;
    animation: shakeCup 2s infinite ease-in-out;
}

@keyframes shakeCup {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

/* 2. Khung Popup QR Code (Lúc đầu bị ẩn) */
.donate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.donate-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 3. Nội dung Form QR */
.donate-modal-content {
    background: var(--card-bg, #ffffff);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .donate-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-modal-overlay.show .donate-modal-content {
    transform: translateY(0) scale(1);
}

.donate-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-main, #333);
    z-index: 10;
    transition: 0.3s;
}

[data-theme="dark"] .donate-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.donate-close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.donate-modal-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    color: #f59e0b;
    font-family: 'Inter', sans-serif;
}

.donate-modal-content p.donate-desc {
    font-size: 15px;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.qr-box {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.qr-box img {
    max-width: 220px;
    width: 100%;
    border-radius: 8px;
    display: block;
}

.donate-bank-info {
    background: rgba(245, 158, 11, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text-main, #334155);
    font-size: 15px;
    margin: 0;
    line-height: 1.8;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

[data-theme="dark"] .donate-bank-info {
    color: #cbd5e1;
    background: rgba(245, 158, 11, 0.15);
}

.donate-bank-info strong {
    color: #f59e0b;
}

/* Reponsive Mobile */
@media (max-width: 600px) {
    .donate-coffee-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .donate-modal-content {
        padding: 30px 20px;
    }

    .qr-box img {
        max-width: 180px;
    }
}


/*<![CDATA[*/
.floating-contact-wrap {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 998;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.contact-toggle-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--glow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.floating-contact-wrap:hover .contact-toggle-btn,
.floating-contact-wrap.active .contact-toggle-btn {
    transform: rotate(45deg) scale(1.1);
}

.contact-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-contact-wrap:hover .contact-menu,
.floating-contact-wrap.active .contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    position: relative;
}

.contact-item:hover {
    transform: scale(1.15);
    color: white;
}

.contact-item.zalo {
    background: #0068ff;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.contact-item.telegram {
    background: #0088cc;
}

.contact-tooltip {
    position: absolute;
    right: 60px;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--card-border);
}

.contact-item:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-contact-wrap {
        bottom: 90px;
        right: 15px;
    }

    .contact-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .contact-tooltip {
        display: none;
    }
}

/*]]>*/