/* ============================================================
   TIMVOUCHER - STYLESHEET
   Website: TimVoucher / TimDealNgon
   Architecture: HTML5, CSS3, ES6 JavaScript
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Fira+Code:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;600;700&display=swap');

/* --- 1. DESIGN TOKENS & VARIABLES --- */
:root {
    /* Brand Colors */
    --color-primary: #d9534f;
    --color-primary-dark: #c9302c;
    --color-primary-light: #ff7675;
    --color-primary-bg: #fff5f5;
    
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    
    --color-accent: #2563eb;
    --color-success: #10b981;
    --color-dark: #1e293b;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-bg: #f8fafc;
    --color-card-bg: #ffffff;
    --color-white: #ffffff;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-code: 'Fira Code', 'Roboto Mono', 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
    --font-code-size: 14px;
    --font-code-line-height: 1.6;
    
    /* Spacing System */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.25s ease;
    --trans-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --container-width: 1240px;
    --header-height: 68px;
}

/* --- 2. CSS RESET & DEFAULTS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ============================================================
   KHAI BÁO CHUẨN CHO THẺ CODE / PRE / CODE BLOCK TIẾNG VIỆT
   ============================================================ */
code, pre, .code-block, kbd, samp {
    font-family: var(--font-code, 'Fira Code', 'Roboto Mono', 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace);
    font-size: var(--font-code-size, 14px);
    line-height: var(--font-code-line-height, 1.6); /* Giúp các dấu Tiếng Việt không bị chạm vào dòng trên */
}

pre, .code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    border: 1px solid #1e293b;
    margin: 14px 0;
    tab-size: 4;
}

code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2.5px 6.5px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code, .code-block code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* --- 3. LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: #ffffff !important; }
.text-primary { color: var(--color-primary) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.section-wrapper {
    padding: var(--space-2xl) 0;
}

.section-wrapper,
.banner-grid-section,
section[id] {
    scroll-margin-top: calc(var(--header-height, 68px) + 16px);
}

.banner-grid-section:has(.banner-grid:empty) {
    display: none !important;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #1e293b;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- 4. HEADER & NAVIGATION --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--trans-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

@media (min-width: 993px) {
    .site-logo {
        flex-shrink: 0;
        z-index: 2;
    }

    .main-navigation {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        z-index: 1;
        width: max-content;
        max-width: calc(100% - 360px);
    }

    .main-navigation ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        margin: 0 auto;
        padding: 0;
        list-style: none;
        flex-wrap: nowrap;
    }

    .main-navigation a {
        white-space: nowrap;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .main-navigation ul {
        gap: 16px;
    }
    .main-navigation a {
        font-size: 14.5px;
        padding: 6px 2px;
    }
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform var(--trans-fast);
}

.site-logo a:hover img {
    transform: scale(1.02);
}

/* Desktop Navigation Items */

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    padding: 8px 4px;
    display: inline-block;
    transition: color var(--trans-fast);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: width var(--trans-normal);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation .current-menu-item a {
    color: var(--color-primary);
}

/* --- SUB-MENU / DROPDOWN NAVIGATION --- */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-navigation .dropdown-caret {
    transition: transform var(--trans-normal);
    opacity: 0.75;
    flex-shrink: 0;
    pointer-events: none;
}

.main-navigation .menu-item-has-children:hover > a .dropdown-caret,
.main-navigation .menu-item-has-children:focus-within > a .dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
}

/* Invisible bridge so mouse hover doesn't break when moving into sub-menu */
.main-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-navigation .sub-menu .sub-menu-item {
    width: 100%;
}

.main-navigation .sub-menu .sub-menu-item a {
    display: block;
    width: 100%;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all var(--trans-fast);
    white-space: nowrap;
    border-radius: 0;
}

.main-navigation .sub-menu .sub-menu-item a::after {
    display: none !important;
}

.main-navigation .sub-menu .sub-menu-item a:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
    padding-left: 22px;
    font-weight: 600;
}

.main-navigation .sub-menu .sub-menu-item.current-menu-item a {
    color: var(--color-primary);
    background-color: var(--color-primary-bg, #fff1f2);
    font-weight: 700;
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: #f1f5f9;
    transition: background-color var(--trans-fast);
    z-index: 1001;
}

.menu-toggle:hover {
    background-color: #e2e8f0;
}

.menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--trans-normal), opacity var(--trans-normal);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Base Drawer Header & Footer (Hidden by default on desktop) */
.drawer-header,
.drawer-footer {
    display: none;
}

/* Mobile Nav Drawer Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

body.menu-open .main-header {
    z-index: 10000;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs a {
    color: #475569;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    color: #cbd5e1;
}

.breadcrumbs .breadcrumb_last {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- 5. HERO HEADING & SEARCH BAR --- */
.hero-heading-box {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 0 16px;
}

.hero-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #d9534f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.quick-search-box {
    margin: 15px auto 35px auto;
    max-width: 580px;
    position: relative;
}

.quick-search-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.quick-search-inner:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(217, 83, 79, 0.18);
}

.quick-search-icon {
    color: #94a3b8;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.quick-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
}

.quick-search-input::placeholder {
    color: #94a3b8;
}

.quick-clear-btn {
    display: none;
    color: #94a3b8;
    padding: 4px;
    cursor: pointer;
    font-size: 14px;
}

.quick-clear-btn.visible {
    display: block;
}

/* --- QUICK CATEGORY NAVIGATION PILLS --- */
.quick-category-nav {
    margin: -10px auto 35px auto;
    width: 100%;
    max-width: 900px;
}

.quick-category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

.cat-pill:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.12);
}

.cat-pill.active {
    background: linear-gradient(135deg, #e11d48 0%, #d9534f 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.cat-pill-blog {
    background: #f8fafc;
    border-style: dashed;
}

/* --- 6. HOMEPAGE BANNER GRID --- */
.home-dark-wrapper {
    background-color: #ffffff;
    padding: var(--space-xl) 0 var(--space-3xl) 0;
    min-height: 80vh;
}

.banner-grid-section {
    margin-bottom: 50px;
}

.banner-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-col-6 {
    grid-template-columns: repeat(6, 1fr);
}

.banner-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-card a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform var(--trans-normal);
}

.banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.banner-card:hover img {
    transform: scale(1.03);
}

/* --- 7. BRAND PAGE VOUCHERS --- */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.voucher-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
    position: relative;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.voucher-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f8fafc;
}

.voucher-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.voucher-card:hover .voucher-img-wrapper img {
    transform: scale(1.05);
}

.voucher-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #cf2e2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.voucher-content {
    padding: 16px 18px 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.voucher-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.voucher-card-title a {
    color: inherit;
}

.voucher-card-title a:hover {
    color: var(--color-primary);
}

.voucher-button {
    display: inline-block;
    width: 100%;
    background-color: var(--color-primary);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(217, 83, 79, 0.25);
    transition: background-color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
    cursor: pointer;
    text-align: center;
    border: none;
}

.voucher-button:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 14px rgba(201, 48, 44, 0.35);
    transform: translateY(-1px);
}

.voucher-button:active {
    transform: translateY(0);
}

/* --- 8. NOTICE BOX --- */
.brand-notice-section {
    padding: 15px 0 25px 0;
}

.brand-notice-box {
    background: #fff8f8;
    border: 1px solid #fed7d7;
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

.brand-notice-box strong {
    color: #9b2c2c;
}

/* --- 9. FAQ & ACCORDION --- */
.faq-accordion {
    max-width: 960px;
    margin: 20px auto 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--trans-fast), color var(--trans-fast);
}

.faq-question:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

.faq-icon {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform var(--trans-normal);
    line-height: 1;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1f1;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--color-primary);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    background-color: #fbfcfe;
    padding: 0 24px;
}

.faq-answer.open {
    padding: 18px 24px 22px 24px;
}

.faq-answer p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #1e293b;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin: 8px 0;
}

.faq-answer li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --- 10. PRODUCT GRID (Shopee Mall / Merchandise) --- */
.brand-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.brand-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #f8fafc;
}

.brand-content {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.brand-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 42px;
}

.shopee-price {
    font-size: 18px;
    font-weight: 800;
    color: #ee4d2d;
    margin-bottom: 12px;
}

.brand-button {
    display: inline-block;
    width: 100%;
    background-color: #0284c7;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background-color var(--trans-fast), transform var(--trans-fast);
}

.brand-button:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

.shopee-button {
    background-color: #ee4d2d !important;
}

.shopee-button:hover {
    background-color: #d73211 !important;
}

/* Community Cards */
.community-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.community-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.community-content {
    padding: 20px;
    text-align: center;
}

.community-btn-fb {
    background-color: #1877f2 !important;
}

.community-btn-fb:hover {
    background-color: #0d65d9 !important;
}

.community-btn-zalo {
    background-color: #0068ff !important;
}

.community-btn-zalo:hover {
    background-color: #0052cc !important;
}

/* --- 11. FLOATING ACTION BUTTONS --- */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
    position: relative;
    background: #ffffff;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.fab-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.fab-zalo {
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.back-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--trans-normal), visibility var(--trans-normal), transform var(--trans-normal), background-color var(--trans-fast);
    cursor: pointer;
    border: none;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background-color: var(--color-primary-dark);
}

/* --- 12. FOOTER --- */
.main-footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    margin-top: auto;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1.1fr;
    gap: 40px;
    padding: 50px 20px 40px 20px;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: -0.01em;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: #ea580c;
    border-radius: 2px;
}

.footer-widget p {
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a:hover {
    color: #f97316;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #090d16;
    padding: 18px 20px;
    text-align: center;
}

.footer-bottom-inner p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 20px 30px 20px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 16px 25px 16px;
    }
}

/* --- 13. VOUCHER MODAL --- */
.voucher-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--trans-normal), visibility var(--trans-normal);
    padding: var(--space-md);
}

.voucher-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voucher-modal {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform var(--trans-slow);
    position: relative;
}

.voucher-modal-overlay.active .voucher-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: all var(--trans-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.modal-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    padding: 28px 24px 20px 24px;
    text-align: center;
    border-bottom: 1px dashed #fecdd3;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #991b1b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 14px;
    color: #64748b;
}

.modal-body {
    padding: 24px;
}

.modal-voucher-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    border: 1px solid #f1f5f9;
}

.code-box {
    background: #f8fafc;
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.code-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-primary-dark);
    user-select: all;
}

.copy-btn {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background-color var(--trans-fast);
}

.copy-btn:hover {
    background: var(--color-primary-dark);
}

.modal-instruction {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.modal-action-btn {
    display: block;
    width: 100%;
    background: #10b981;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 13px;
    border-radius: var(--radius-md);
    transition: background var(--trans-fast);
}

.modal-action-btn:hover {
    background: #059669;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: transform var(--trans-normal), opacity var(--trans-normal), visibility var(--trans-normal);
}

.toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    color: #10b981;
    font-size: 18px;
}

/* --- 14. COMPREHENSIVE RESPONSIVE DESIGN (ALL DEVICES) --- */

/* Laptops & Desktops Medium (1024px - 1280px) */
@media (max-width: 1280px) {
    .banner-grid.grid-col-6 {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }

    .banner-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .voucher-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .brand-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Tablets Landscape & Portrait (769px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --header-height: 62px;
    }

    .hero-main-title {
        font-size: 25px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* 6 columns -> 3 columns */
    .banner-grid.grid-col-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* 4 columns -> 4 columns on tablets for clean grid */
    .banner-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .voucher-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .brand-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .brand-grid.grid-col-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .brand-grid.grid-col-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile Drawer Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    cursor: pointer;
}

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

body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Tablets Portrait & Small Laptops (< 992px) */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    /* Drawer Header */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid var(--color-border);
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 10;
        box-sizing: border-box;
    }

    .drawer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .drawer-logo {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        object-fit: contain;
    }

    .drawer-brand-info {
        display: flex;
        flex-direction: column;
    }

    .drawer-title {
        font-size: 15px;
        font-weight: 800;
        color: #1e293b;
        line-height: 1.2;
    }

    .drawer-subtitle {
        font-size: 11px;
        color: #e11d48;
        font-weight: 600;
    }

    .drawer-close-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fee2e2;
        border: none;
        outline: none;
        border-radius: 50%;
        color: #e11d48;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .drawer-close-btn:hover,
    .drawer-close-btn:active {
        background: #fecdd3;
        transform: rotate(90deg);
    }

    /* Main Navigation Drawer */
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.35);
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(105%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1002;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid rgba(226, 232, 240, 0.8);
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
        padding: 14px 16px;
        flex: 1;
        overflow-y: auto;
        margin: 0;
        list-style: none;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        font-size: 15px;
        border-radius: var(--radius-md);
        border-bottom: 1px solid var(--color-border-light);
        font-weight: 600;
        color: #334155;
        transition: all var(--trans-fast);
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        background-color: var(--color-primary-bg);
        color: var(--color-primary);
        padding-left: 18px;
    }

    .main-navigation a::after {
        display: none;
    }

    /* Drawer Footer */
    .drawer-footer {
        display: block;
        width: 100%;
        padding: 16px 18px;
        background: #f8fafc;
        border-top: 1px solid var(--color-border);
        font-size: 12px;
        color: #64748b;
        text-align: center;
        margin-top: auto;
    }

    .drawer-footer-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fff1f2;
        color: #e11d48;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 9999px;
        font-size: 11.5px;
        margin-bottom: 6px;
    }

    .drawer-footer-note {
        font-size: 11.5px;
        color: #94a3b8;
        line-height: 1.4;
    }

    /* Mobile Sub-menu Accordion */
    .main-navigation .menu-item-has-children {
        width: 100%;
    }

    .main-navigation .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        user-select: none;
    }

    .main-navigation .menu-item-has-children .dropdown-caret {
        transition: transform 0.25s ease;
        margin-left: auto;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    .main-navigation .menu-item-has-children.open-submenu > a .dropdown-caret {
        transform: rotate(180deg);
    }

    .main-navigation .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--color-primary, #e11d48);
        background: #f8fafc;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        margin: 6px 0 8px 12px;
        padding: 4px 0;
        width: calc(100% - 12px);
        opacity: 1;
        visibility: visible;
        transform: none;
        list-style: none;
    }

    .main-navigation .sub-menu::before {
        display: none;
    }

    .main-navigation .menu-item-has-children.open-submenu > .sub-menu {
        display: flex;
        flex-direction: column;
        animation: subMenuFadeDown 0.2s ease-out;
    }

    @keyframes subMenuFadeDown {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-navigation .sub-menu .sub-menu-item a {
        font-size: 14px;
        padding: 10px 14px;
        font-weight: 600;
        color: #475569;
        border-bottom: none;
        border-radius: var(--radius-sm);
    }

    .main-navigation .sub-menu .sub-menu-item.current-menu-item a,
    .main-navigation .sub-menu .sub-menu-item a:hover {
        color: var(--color-primary);
        background-color: rgba(225, 29, 72, 0.08);
        padding-left: 18px;
    }

    .banner-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .brand-grid.grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

/* Standard Mobile & Phablets (< 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 58px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo img {
        height: 38px;
        width: auto;
    }

    .section-wrapper {
        padding: 26px 0;
    }

    .section-title {
        font-size: 18.5px;
        margin-bottom: 16px;
        letter-spacing: 0.2px;
    }

    .section-title::after {
        width: 36px;
        height: 2.5px;
        bottom: -8px;
    }

    /* Hero Heading */
    .hero-heading-box {
        margin-top: 5px;
        margin-bottom: 14px;
        padding: 0 4px;
    }

    .hero-main-title {
        font-size: 21px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
    }

    /* Search Box */
    .quick-search-box {
        margin: 10px auto 20px auto;
        width: 100%;
    }

    .quick-search-inner {
        padding: 5px 14px;
    }

    .quick-search-input {
        font-size: 16px; /* Chống tự động phóng to trên iOS Safari */
    }

    /* Quick Category Pills Horizontal Carousel */
    .quick-category-nav {
        margin: 0 -16px 24px -16px;
        width: calc(100% + 32px);
        max-width: none;
        overflow: hidden;
    }

    .quick-category-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding: 4px 16px 8px 16px;
        gap: 8px;
    }

    .quick-category-pills::-webkit-scrollbar {
        display: none;
    }

    .cat-pill {
        scroll-snap-align: start;
        padding: 7px 13px;
        font-size: 12.5px;
        flex-shrink: 0;
    }

    /* Banners: Cân đối trên Tablet portrait (601px - 768px) */
    .banner-grid.grid-col-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .banner-grid.grid-col-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .banner-card {
        border-radius: 14px;
    }

    .banner-card:active {
        transform: scale(0.97);
    }

    /* Vouchers trên Brand Pages: 2 cột tối ưu như ứng dụng mua sắm */
    .voucher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .voucher-card {
        border-radius: 14px;
    }

    .voucher-content {
        padding: 12px 10px 14px 10px;
    }

    .voucher-card-title {
        font-size: 13.5px;
        margin-bottom: 8px;
        min-height: 36px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .voucher-button {
        padding: 9px 8px;
        font-size: 12.5px;
        border-radius: var(--radius-sm);
        letter-spacing: 0.3px;
    }

    .voucher-badge {
        top: 8px;
        right: 8px;
        font-size: 9.5px;
        padding: 2px 6px;
    }

    /* Extra Section: Săn Voucher Mua 1 Tặng 1: 2 cột cân đối */
    .brand-grid.grid-col-4,
    .brand-grid.grid-col-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .brand-card {
        border-radius: 14px;
    }

    .brand-content {
        padding: 12px 10px 14px 10px;
    }

    .brand-content h3 {
        font-size: 13.5px;
        margin-bottom: 8px;
        min-height: 36px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-button {
        padding: 9px 8px;
        font-size: 12.5px;
        border-radius: var(--radius-sm);
    }

    /* Brand Notice & FAQ */
    .brand-notice-box {
        padding: 14px 16px;
        font-size: 13.5px;
        line-height: 1.6;
        word-break: break-word;
    }

    .faq-question {
        padding: 13px 16px;
        font-size: 14.5px;
    }

    .faq-answer.open {
        padding: 13px 16px 16px 16px;
        font-size: 13.5px;
    }

    /* Cộng đồng FB & Zalo: full width 1 cột */
    .brand-grid.grid-col-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .community-card img {
        height: 170px;
    }

    /* Floating Action Buttons */
    .floating-actions {
        right: 14px;
        bottom: 18px;
        gap: 8px;
    }

    .fab-btn {
        width: 44px;
        height: 44px;
    }

    .fab-btn img {
        width: 26px;
        height: 26px;
    }

    .back-top {
        width: 42px;
        height: 42px;
    }

    /* Voucher Modal Mobile */
    .voucher-modal {
        max-width: 95%;
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px 18px 16px 18px;
    }

    .modal-header h3 {
        font-size: 17px;
    }

    .modal-body {
        padding: 18px;
    }

    .code-box {
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    .code-text {
        font-size: 16px;
    }

    .copy-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .modal-instruction {
        font-size: 12.5px;
        padding: 10px 12px;
        margin-bottom: 16px;
    }

    .modal-action-btn {
        padding: 11px;
        font-size: 15px;
    }

    /* Toast */
    .toast-container {
        width: 90%;
        max-width: 360px;
        padding: 10px 18px;
        font-size: 13.5px;
    }

    /* Breadcrumbs cuộn ngang mềm mại trên mobile */
    .breadcrumbs {
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }
}

/* Smartphone Mobile (< 600px) */
@media (max-width: 600px) {
    .banner-grid.grid-col-4,
    .banner-grid.grid-col-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .banner-card {
        border-radius: 14px;
    }
}

/* Compact Mobile (< 480px - iPhone 12/13/14/15/16, Samsung Galaxy S21-S24) */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .quick-category-nav {
        margin: 0 -12px 18px -12px;
        width: calc(100% + 24px);
    }

    .quick-category-pills {
        padding: 4px 12px 8px 12px;
    }

    .section-wrapper {
        padding: 22px 0;
    }

    .section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .hero-main-title {
        font-size: 18.5px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    /* Giữ nguyên 2 cột hoàn hảo với khoảng cách gap 10px gọn gàng */
    .banner-grid.grid-col-4,
    .banner-grid.grid-col-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .banner-card {
        border-radius: 12px;
    }

    /* 2 cột voucher toàn diện - hiển thị tối ưu như app Shopee/Grab */
    .voucher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .voucher-card {
        border-radius: 12px;
    }

    .voucher-content {
        padding: 10px 8px 12px 8px;
    }

    .voucher-card-title {
        font-size: 12.5px;
        min-height: 34px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .voucher-button {
        padding: 8px 6px;
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.2px;
        border-radius: 6px;
    }

    .voucher-badge {
        top: 6px;
        right: 6px;
        font-size: 9px;
        padding: 2px 5px;
    }

    /* Extra Section: 2 cột 2x2 đẹp mắt */
    .brand-grid.grid-col-4,
    .brand-grid.grid-col-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .brand-card {
        border-radius: 12px;
    }

    .brand-content {
        padding: 10px 8px 12px 8px;
    }

    .brand-content h3 {
        font-size: 12.5px;
        min-height: 34px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .brand-button {
        padding: 8px 6px;
        font-size: 11.5px;
        font-weight: 700;
        border-radius: 6px;
    }

    .community-card img {
        height: 150px;
    }

    .main-footer {
        padding: 22px 0;
        font-size: 13px;
    }

    .floating-actions {
        right: 12px;
        bottom: 14px;
        gap: 8px;
    }

    .fab-btn {
        width: 42px;
        height: 42px;
    }

    .fab-btn img {
        width: 24px;
        height: 24px;
    }

    .back-top {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small Mobile (< 360px - iPhone SE 1st gen, màn phụ Galaxy Flip) */
@media (max-width: 360px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .quick-category-nav {
        margin: 0 -8px 16px -8px;
        width: calc(100% + 16px);
    }

    .quick-category-pills {
        padding: 4px 8px 6px 8px;
    }

    .banner-grid.grid-col-4,
    .banner-grid.grid-col-6,
    .voucher-grid,
    .brand-grid.grid-col-4 {
        gap: 6px;
    }

    .voucher-content,
    .brand-content {
        padding: 8px 6px 10px 6px;
    }

    .voucher-card-title,
    .brand-content h3 {
        font-size: 11.5px;
        min-height: 30px;
    }

    .voucher-button,
    .brand-button {
        font-size: 10.5px;
        padding: 7px 4px;
    }
}

/* ============================================================
   14. BLOG & SEO ARTICLE PAGES STYLES
   ============================================================ */
/* Blog Archive Layout */
.blog-hero-section {
    padding: 48px 0 32px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(217, 83, 79, 0.06) 0%, rgba(248, 250, 252, 0) 100%);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 36px;
}
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: 12px;
}
.blog-hero-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Category Filter Pills */
.blog-categories-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.blog-cat-pill {
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--color-white);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--trans-fast);
    text-decoration: none;
}
.blog-cat-pill:hover,
.blog-cat-pill.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.25);
}

/* Blog Layout Grid: Main Content + Sidebar */
.blog-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    margin-bottom: 60px;
}
@media (max-width: 992px) {
    .blog-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Article Card */
.blog-featured-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}
.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-featured-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.blog-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-featured-card:hover .blog-featured-img-wrap img {
    transform: scale(1.05);
}
.blog-featured-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured-badge {
    align-self: flex-start;
    background: #fef2f2;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.blog-featured-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}
.blog-featured-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--trans-fast);
}
.blog-featured-title a:hover {
    color: var(--color-primary);
}
.blog-featured-sapo {
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 640px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-img-wrap {
        height: 220px;
        min-height: auto;
    }
}
.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: all var(--trans-normal);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.blog-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f1f5f9;
}
.blog-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.06);
}
.blog-card-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--trans-fast);
}
.blog-card-title a:hover {
    color: var(--color-primary);
}
.blog-card-sapo {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
    font-size: 12px;
    color: var(--color-text-light);
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 22px;
    box-shadow: var(--shadow-xs);
}
.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}
.sidebar-post-item img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f1f5f9;
}
.sidebar-post-info {
    min-width: 0;
}
.sidebar-post-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--trans-fast);
}
.sidebar-post-item:hover .sidebar-post-title {
    color: var(--color-primary);
}
.sidebar-post-meta {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 3px;
}

/* ============================================================
   BLOG DETAIL (SINGLE ARTICLE) STYLES
   ============================================================ */
.article-detail-container {
    max-width: 860px;
    margin: 0 auto 60px auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 40px 48px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
    .article-detail-container {
        padding: 24px 18px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Breadcrumbs */
.seo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.seo-breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--trans-fast);
}
.seo-breadcrumbs a:hover {
    color: var(--color-primary);
}
.seo-breadcrumbs .separator {
    color: #cbd5e1;
}

/* Single H1 Title */
.article-h1-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .article-h1-title {
        font-size: 34px;
    }
}

/* Article Author & Metadata Row */
.article-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.article-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.article-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}
.article-publish-date {
    font-size: 12px;
    color: var(--color-text-light);
}
.article-stats-pills {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    color: var(--color-text-muted);
}

/* Sapo / Lead Paragraph */
.article-sapo-box {
    background: #f8fafc;
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 28px;
}

/* Table of Contents (TOC) */
.article-toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 32px;
}
.article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.article-toc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-toc-toggle {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}
.article-toc-list {
    margin-top: 14px;
    padding-left: 20px;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-toc-list a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color var(--trans-fast);
}
.article-toc-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.article-toc-list .toc-h3 {
    margin-left: 18px;
    list-style-type: circle;
    font-size: 13.5px;
}

/* Article Body Typography (CKEditor Output Styling) */
.article-content {
    font-size: 16.5px;
    line-height: 1.75;
    color: #1e293b;
    word-break: break-word;
}
.article-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}
.article-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 28px;
    margin-bottom: 12px;
}
.article-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #334155;
    margin-top: 20px;
    margin-bottom: 10px;
}
.article-content p {
    margin-bottom: 18px;
}
.article-content strong {
    font-weight: 700;
    color: #0f172a;
}
.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}
.article-content a:hover {
    color: var(--color-primary-dark);
}
.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: #fff5f5;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #7f1d1d;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px auto;
    display: block;
    box-shadow: var(--shadow-sm);
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14.5px;
}
@media (max-width: 768px) {
    .article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.article-content table th,
.article-content table td {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}
.article-content table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--color-text);
}
.article-content table tr:nth-child(even) {
    background: #fdfdfd;
}

/* Share & Tags */
.article-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.share-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: opacity var(--trans-fast);
}
.btn-share:hover {
    opacity: 0.9;
}
.btn-share-fb { background: #1877f2; }
.btn-share-zalo { background: #0068ff; }
.btn-share-copy { background: #475569; }

/* Author Box (E-E-A-T) */
.author-box-eeat {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 40px;
}
.author-box-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.author-box-content {
    min-width: 0;
}
.author-box-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.author-box-desc {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Related Articles Grid */
.related-articles-section {
    margin-top: 48px;
}
.related-articles-section .section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-categories-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 6px 12px 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .blog-categories-nav::-webkit-scrollbar {
        display: none;
    }

    .blog-cat-pill {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 13px;
        padding: 7px 14px;
    }

    .author-box-eeat {
        padding: 16px;
        gap: 14px;
    }

    .author-box-avatar {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .article-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .share-buttons-group {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .btn-share {
        flex: 1;
        justify-content: center;
        font-size: 12px;
        padding: 8px 6px;
    }
}

/* ============================================================
   BLOG SIDE BANNERS (BANNER 2 BÊN SƯỜN BÀI VIẾT)
   ============================================================ */
:root {
    --blog-banner-top: 110px;
    --blog-banner-width: 160px;
}

.blog-side-banner {
    position: fixed;
    top: var(--blog-banner-top, 110px);
    width: var(--blog-banner-width, 160px);
    max-width: var(--blog-banner-width, 160px);
    box-sizing: border-box;
    z-index: 89;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: fadeInBanner 0.4s ease-out;
}

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

.blog-side-banner-left {
    right: calc(50% + 445px);
}

.blog-side-banner-right {
    left: calc(50% + 445px);
}

.blog-side-banner-inner {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.blog-side-banner-inner:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 0.18), 0 10px 12px -5px rgba(0, 0, 0, 0.1);
}

.blog-side-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 11px;
}

/* Nút đóng [X] */
.blog-side-banner-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog-side-banner-close:hover {
    background: #ef4444;
    transform: scale(1.15);
}

/* Mặc định trên màn hình < 1230px (mobi, tablet hoặc PC màn hình hẹp) */
@media (max-width: 1229px) {
    /* Mặc định ẩn banner 2 bên sườn trên mobi/màn hình nhỏ */
    .blog-side-banner:not(.mobile-visible) {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Nếu admin BẬT hiển thị trên Mobile: banner chuyển thành dạng bottom card nổi tinh tế */
    .blog-side-banner.mobile-visible {
        position: fixed !important;
        top: auto !important;
        bottom: 16px !important;
        left: 14px !important;
        right: auto !important;
        width: calc(100% - 28px) !important;
        max-width: 380px !important;
        z-index: 999 !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    }

    .blog-side-banner-right.mobile-visible {
        left: auto !important;
        right: 14px !important;
    }

    .blog-side-banner.mobile-visible .blog-side-banner-inner {
        max-height: 90px;
        overflow: hidden;
    }

    .blog-side-banner.mobile-visible img {
        max-height: 90px;
        object-fit: cover;
    }
}

/* Nếu admin TẮT hiển thị trên PC: class .pc-hidden */
@media (min-width: 1230px) {
    .blog-side-banner.pc-hidden {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ============================================================
   TICKET COUPON SYSTEM (BLOGGIAMGIA STYLE)
   Pages: shopee.html, lazada.html, tiktok.html
   ============================================================ */

/* 1. Platform Switcher Tabs */
.platform-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 28px;
    flex-wrap: wrap;
}
.platform-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.platform-tab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.platform-tab-item.tab-shopee.active {
    background: linear-gradient(135deg, #ee4d2d, #ff6633);
    border-color: #ee4d2d;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(238, 77, 45, 0.35);
}
.platform-tab-item.tab-lazada.active {
    background: linear-gradient(135deg, #0f56e9, #001270);
    border-color: #0f56e9;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 86, 233, 0.35);
}
.platform-tab-item.tab-tiktok.active {
    background: linear-gradient(135deg, #0f172a, #000000);
    border-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* 2. Top Filter Status Bar */
.coupon-filter-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.coupon-filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.coupon-status-group {
    display: inline-flex;
    border: 1.5px solid #00b156;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.coupon-status-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #00b156;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1.5px solid #00b156;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.coupon-status-btn:last-child {
    border-right: none;
}
.coupon-status-btn.active {
    background: #00b156;
    color: #ffffff;
}
.coupon-status-btn:hover:not(.active) {
    background: #f0fdf4;
}

.coupon-tools-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}
.coupon-search-wrap {
    position: relative;
    max-width: 260px;
    width: 100%;
}
.coupon-search-input {
    width: 100%;
    padding: 7px 32px 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.coupon-search-input:focus {
    border-color: #00b156;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 177, 86, 0.12);
}
.coupon-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
}
.coupon-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.coupon-filter-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* 3. Category Horizontal Scroll Pills */
.coupon-cat-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 14px;
}

/* Subtle edge gradients indicating swipeable content */
.coupon-cat-scroll-wrap::before,
.coupon-cat-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.coupon-cat-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.96), transparent);
}
.coupon-cat-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.96), transparent);
}
.coupon-cat-scroll-wrap.has-left-shadow::before {
    opacity: 1;
}
.coupon-cat-scroll-wrap.has-right-shadow::after {
    opacity: 1;
}

/* Nav Arrow Buttons (Desktop & Tablet) */
.coupon-cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    user-select: none;
    padding: 0;
}
.coupon-cat-nav-btn.show {
    opacity: 0.95;
    visibility: visible;
    pointer-events: auto;
}
.coupon-cat-nav-btn:hover {
    background: #00b156;
    color: #ffffff;
    border-color: #00b156;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 177, 86, 0.35);
}
.coupon-cat-nav-btn:active {
    transform: translateY(-50%) scale(0.92);
}
.coupon-cat-nav-prev {
    left: -10px;
}
.coupon-cat-nav-next {
    right: -10px;
}

.coupon-cat-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 4px 44px 6px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}
.coupon-cat-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
.coupon-cat-scroll::-webkit-scrollbar {
    display: none;
}
.coupon-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6.5px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0; /* CRITICAL: Prevents squishing or hiding trailing items */
}
.coupon-cat-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}
.coupon-cat-pill.active {
    border-color: #00b156;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 2px 6px rgba(0, 177, 86, 0.15);
}

/* 4. Section Title */
.coupon-section-title-wrap {
    text-align: center;
    margin: 32px 0 20px;
}
.coupon-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}
.coupon-count-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

/* 5. Ticket Grid & Card */
.coupon-ticket-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 1199px) {
    .coupon-ticket-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .coupon-ticket-grid {
        grid-template-columns: 1fr;
    }
}

.coupon-ticket-card {
    position: relative;
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: visible;
}
.coupon-ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Punch-hole Cutout Notches on right card edge */
.coupon-ticket-card::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right-color: transparent;
    z-index: 2;
}

/* Ticket Left Side */
.coupon-ticket-left {
    width: 92px;
    min-width: 92px;
    background: #fafbfe;
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 6px;
    border-right: 1.5px dashed #cbd5e1;
    position: relative;
}
/* Divider Top & Bottom mini notches */
.coupon-ticket-left::before {
    content: '';
    position: absolute;
    right: -7px;
    top: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top-color: transparent;
    z-index: 2;
}
.coupon-notch-bottom {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom-color: transparent;
    z-index: 2;
}

.coupon-badge-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
    background: #fff;
}
.coupon-badge-circle img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.coupon-badge-circle svg {
    width: 28px;
    height: 28px;
}
.coupon-badge-label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

/* Ticket Right Side */
.coupon-ticket-right {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.coupon-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.coupon-discount-val {
    font-size: 18px;
    font-weight: 800;
    color: #00b156;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.coupon-tag-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.coupon-tag-badge.hot {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.coupon-ticket-meta {
    font-size: 11.5px;
    color: #334155;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.coupon-remaining-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.coupon-progress-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.coupon-progress-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #10b981, #00b156);
}

.coupon-ticket-note {
    font-size: 11px;
    color: #16a34a;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.35;
}
.coupon-detail-link {
    font-style: normal;
    font-weight: 600;
    color: #0284c7;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 3px;
}

.coupon-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.coupon-expiry-tag {
    font-size: 11px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.coupon-list-link {
    font-size: 11.5px;
    color: #16a34a;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.coupon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    border: none;
}
.coupon-action-btn.btn-buy {
    background: #eafaf1;
    color: #00b156;
    border: 1px solid #00b156;
}
.coupon-action-btn.btn-buy:hover {
    background: #00b156;
    color: #ffffff;
}
.coupon-action-btn.btn-banner {
    background: #ff8a00;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 138, 0, 0.3);
}
.coupon-action-btn.btn-banner:hover {
    background: #ea7a00;
    transform: translateY(-1px);
}
.coupon-action-btn.btn-copy {
    background: #00b156;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 177, 86, 0.25);
}
.coupon-action-btn.btn-copy:hover {
    background: #00994a;
    transform: translateY(-1px);
}

/* 6. Load More Button & Empty Results */
.coupon-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0 24px;
    width: 100%;
}
.coupon-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #00b156;
    color: #00b156;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 177, 86, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}
.coupon-load-more-btn:hover {
    background: #00b156;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 177, 86, 0.28);
    transform: translateY(-2px);
}
.coupon-load-more-btn:active {
    transform: translateY(0);
}
.coupon-load-more-btn svg {
    transition: transform 0.25s ease;
}
.coupon-load-more-btn:hover svg {
    transform: translateY(2px);
}
.coupon-load-more-badge {
    background: rgba(0, 177, 86, 0.12);
    color: #00b156;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-left: 4px;
    transition: all 0.2s ease;
}
.coupon-load-more-btn:hover .coupon-load-more-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.coupon-no-results {
    width: 100%;
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    margin: 16px 0;
}
@keyframes couponFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.coupon-ticket-card.is-visible-anim {
    animation: couponFadeInUp 0.28s ease-out forwards;
}

/* Modal for Voucher Details */
.coupon-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.coupon-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.coupon-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}
.coupon-modal-backdrop.active .coupon-modal-card {
    transform: translateY(0) scale(1);
}
.coupon-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.coupon-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.coupon-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.coupon-modal-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfe;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.coupon-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.coupon-modal-body {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
}
.coupon-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 16px 0;
}
.coupon-code-text {
    font-family: var(--font-code, monospace);
    font-size: 16px;
    font-weight: 700;
    color: #00b156;
    letter-spacing: 0.05em;
}
.coupon-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Toast Notification */
.coupon-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}
.coupon-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   TOP DEALS & BEST SELLERS SECTION (ACCESSTRADE DATAFEED)
   ============================================================ */
.top-deals-section {
    background: #ffffff;
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    border: 1px solid #f1f5f9;
}

.deals-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 16px;
}

.deals-header-left {
    flex: 1;
    min-width: 260px;
}

.deals-badge-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.deals-main-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-dark, #0f172a);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.deals-subtitle {
    font-size: 13.5px;
    color: var(--color-text-muted, #64748b);
    margin: 0;
}

.deals-filter-tabs {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.deal-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deal-tab-btn:hover {
    color: #0f172a;
}

.deal-tab-btn.active {
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.top-deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .top-deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .top-deals-section {
        padding: 16px;
    }
    .deals-main-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .top-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.deal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.deal-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.deal-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.deal-card:hover .deal-card-img-wrap img {
    transform: scale(1.06);
}

.deal-platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.deal-platform-badge.shopee {
    background: #ee4d2d;
}

.deal-platform-badge.lazada {
    background: #0f146d;
}

.deal-platform-badge.tiki {
    background: #008b44;
}

.deal-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    z-index: 2;
}

.deal-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.deal-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 39px;
}

.deal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: auto;
}

.deal-sale-price {
    font-size: 15px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.01em;
}

.deal-orig-price {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: line-through;
}

.deal-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.deal-buy-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

.top-deals-loading,
.top-deals-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.deals-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: dealsSpin 0.8s linear infinite;
}

@keyframes dealsSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   14. DEDICATED CATEGORY PAGES SYSTEM STYLES
   ============================================================ */
.cat-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 36px 0 42px 0;
    position: relative;
    overflow: hidden;
}

.cat-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cat-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cat-hero-icon-wrap {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cat-hero-content {
    flex: 1;
}

.cat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 88, 12, 0.2);
    border: 1px solid rgba(234, 88, 12, 0.4);
    color: #fdba74;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cat-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.cat-hero-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    margin: 0;
    max-width: 720px;
    line-height: 1.6;
}

/* Category Switcher Pills */
.cat-nav-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 68px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cat-nav-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.cat-nav-scroll::-webkit-scrollbar {
    display: none;
}

.cat-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.cat-nav-pill:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.cat-nav-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.cat-pill-icon {
    font-size: 16px;
}

/* Filter & Search Toolbar */
.cat-toolbar-section {
    padding: 20px 0 10px 0;
}

.cat-toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cat-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.cat-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.cat-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14.5px;
    color: #1e293b;
    background: transparent;
    font-family: inherit;
}

.cat-search-input::placeholder {
    color: #94a3b8;
}

.cat-search-clear {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.cat-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cat-sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.cat-sort-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
    outline: none;
}

.cat-brands-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 4px 0;
    scrollbar-width: none;
}

.cat-brands-row::-webkit-scrollbar {
    display: none;
}

.cat-brand-pill {
    padding: 5px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.cat-brand-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cat-brand-pill.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

/* Category Vouchers Grid & Section */
.cat-vouchers-section {
    padding: 24px 0 48px 0;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.cat-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-section-meta {
    font-size: 13.5px;
    color: #64748b;
}

.cat-vouchers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .cat-vouchers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-vouchers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .cat-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cat-hero-title {
        font-size: 22px;
    }
    .cat-toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }
    .cat-sort-wrap {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .cat-vouchers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Category Voucher Card (Ticket-Style) */
.cat-voucher-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cat-voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.cat-card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.cat-card-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cat-card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cat-voucher-card:hover .cat-card-img-wrap img {
    transform: scale(1.06);
}

.cat-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    z-index: 2;
    text-transform: uppercase;
}

.cat-card-body {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-card-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.cat-card-title a {
    color: inherit;
    text-decoration: none;
}

.cat-card-title a:hover {
    color: #ea580c;
}

.cat-card-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.cat-card-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.cat-code-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code, monospace);
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.cat-btn-copy {
    background: #0284c7;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cat-btn-copy:hover {
    background: #0369a1;
}

.cat-card-footer {
    margin-top: auto;
}

.cat-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
    cursor: pointer;
}

.cat-card-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

/* Empty State */
.cat-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
}

.cat-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.cat-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.cat-empty-state p {
    font-size: 14px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* VIP Deal Community Section */
.cat-community-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

@media (max-width: 768px) {
    .cat-community-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px;
    }
}

.cat-community-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.cat-community-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.cat-community-info p {
    font-size: 13.5px;
    color: #e0f2fe;
    margin: 0;
    max-width: 500px;
}

.cat-community-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-comm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cat-comm-zalo {
    background: #ffffff;
    color: #0068ff !important;
}

.cat-comm-fb {
    background: #1877f2;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cat-comm-btn:hover {
    transform: translateY(-2px);
}

/* Category Directory Grid (danh-muc.html) */
.cat-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 50px 0;
}

@media (max-width: 900px) {
    .cat-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cat-directory-grid {
        grid-template-columns: 1fr;
    }
}

.cat-directory-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cat-directory-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
}

.cat-dir-icon {
    font-size: 36px;
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-dir-content {
    flex: 1;
}

.cat-dir-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.cat-directory-card:hover .cat-dir-title {
    color: #0284c7;
}

.cat-dir-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.cat-dir-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #ea580c;
}

.cat-dir-arrow {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.cat-directory-card:hover .cat-dir-arrow {
    transform: translateX(4px);
}

/* Category Toast Notification */
.category-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10000;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
}

.category-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-toast .toast-icon {
    font-size: 20px;
}

.category-toast strong {
    color: #38bdf8;
}

/* --- Highlands Coffee & Mobile 2-Column Vouchers --- */
.highlands-header {
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.highlands-voucher-title,
.cat-vouchers-section .cat-section-title.highlands-voucher-title {
    color: #cf2e2e !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    justify-content: center !important;
    letter-spacing: -0.01em;
}

/* Highlands Voucher Cards Customization */
body[data-category-slug="highlands-coffee"] .cat-card-top {
    aspect-ratio: 4 / 5;
    background: #ffffff;
}

body[data-category-slug="highlands-coffee"] .cat-card-img-wrap {
    padding: 0;
    width: 100%;
    height: 100%;
}

body[data-category-slug="highlands-coffee"] .cat-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-category-slug="highlands-coffee"] .cat-card-badge {
    display: none;
}

body[data-category-slug="highlands-coffee"] .cat-card-brand {
    display: none;
}

body[data-category-slug="highlands-coffee"] .cat-card-title,
body[data-category-slug="the-coffee-house"] .cat-card-title,
body[data-category-slug="katinat"] .cat-card-title,
body[data-category-slug="phuc-long"] .cat-card-title {
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    text-transform: uppercase;
    height: auto;
    margin: 4px 0 10px 0;
}

body[data-category-slug="highlands-coffee"] .cat-card-title a,
body[data-category-slug="the-coffee-house"] .cat-card-title a,
body[data-category-slug="katinat"] .cat-card-title a,
body[data-category-slug="phuc-long"] .cat-card-title a {
    color: inherit;
}

body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn,
body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn,
body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn,
body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    justify-content: center;
    width: 100%;
}

body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn svg,
body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn svg,
body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn svg,
body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn svg {
    display: none;
}

/* Brand Button Colors */
body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn { background: #cf2e2e; }
body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn:hover { background: #b91c1c; }

body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn { background: #ea580c; }
body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn:hover { background: #c2410c; }

body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn { background: #153c4d; }
body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn:hover { background: #0b222d; }

body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn { background: #047857; }
body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn:hover { background: #064e3b; }

/* Brand Section Titles */
.brand-voucher-title,
.highlands-voucher-title,
.the-coffee-house-voucher-title,
.katinat-voucher-title,
.phuc-long-voucher-title,
.cat-vouchers-section .cat-section-title.brand-voucher-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto;
}

body[data-category-slug="highlands-coffee"] .brand-voucher-title,
body[data-category-slug="highlands-coffee"] .highlands-voucher-title { color: #cf2e2e !important; }

body[data-category-slug="the-coffee-house"] .brand-voucher-title,
body[data-category-slug="the-coffee-house"] .the-coffee-house-voucher-title { color: #ea580c !important; }

body[data-category-slug="katinat"] .brand-voucher-title,
body[data-category-slug="katinat"] .katinat-voucher-title { color: #153c4d !important; }

body[data-category-slug="phuc-long"] .brand-voucher-title,
body[data-category-slug="phuc-long"] .phuc-long-voucher-title { color: #047857 !important; }

/* Mobile responsive 2-column view */
@media (max-width: 768px) {
    .brand-voucher-title,
    .highlands-voucher-title,
    .the-coffee-house-voucher-title,
    .katinat-voucher-title,
    .phuc-long-voucher-title {
        font-size: 20px !important;
        line-height: 1.35;
    }

    body[data-category-slug="highlands-coffee"] .cat-vouchers-grid,
    body[data-category-slug="the-coffee-house"] .cat-vouchers-grid,
    body[data-category-slug="katinat"] .cat-vouchers-grid,
    body[data-category-slug="phuc-long"] .cat-vouchers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    body[data-category-slug="highlands-coffee"] .cat-voucher-card,
    body[data-category-slug="the-coffee-house"] .cat-voucher-card,
    body[data-category-slug="katinat"] .cat-voucher-card,
    body[data-category-slug="phuc-long"] .cat-voucher-card {
        border-radius: 12px;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-body,
    body[data-category-slug="the-coffee-house"] .cat-card-body,
    body[data-category-slug="katinat"] .cat-card-body,
    body[data-category-slug="phuc-long"] .cat-card-body {
        padding: 10px 8px 12px 8px;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-desc,
    body[data-category-slug="the-coffee-house"] .cat-card-desc,
    body[data-category-slug="katinat"] .cat-card-desc,
    body[data-category-slug="phuc-long"] .cat-card-desc {
        display: none;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-title,
    body[data-category-slug="the-coffee-house"] .cat-card-title,
    body[data-category-slug="katinat"] .cat-card-title,
    body[data-category-slug="phuc-long"] .cat-card-title {
        font-size: 13.5px;
        min-height: 36px;
        margin-bottom: 8px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn {
        padding: 8px 8px;
        font-size: 12px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    body[data-category-slug="highlands-coffee"] .cat-vouchers-grid,
    body[data-category-slug="the-coffee-house"] .cat-vouchers-grid,
    body[data-category-slug="katinat"] .cat-vouchers-grid,
    body[data-category-slug="phuc-long"] .cat-vouchers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-body,
    body[data-category-slug="the-coffee-house"] .cat-card-body,
    body[data-category-slug="katinat"] .cat-card-body,
    body[data-category-slug="phuc-long"] .cat-card-body {
        padding: 8px 6px 10px 6px;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-title,
    body[data-category-slug="the-coffee-house"] .cat-card-title,
    body[data-category-slug="katinat"] .cat-card-title,
    body[data-category-slug="phuc-long"] .cat-card-title {
        font-size: 13px;
        min-height: 32px;
        margin-bottom: 6px;
    }

    body[data-category-slug="highlands-coffee"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="the-coffee-house"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="katinat"] .cat-card-footer .cat-card-btn,
    body[data-category-slug="phuc-long"] .cat-card-footer .cat-card-btn {
        padding: 7px 6px;
        font-size: 11.5px;
    }
}

/* ============================================================
   15. BRAND HERO BANNERS (HIGHLANDS, TCH, KATINAT, PHÚC LONG)
   ============================================================ */
.brand-hero-section.highlands-hero-section,
body[data-category-slug="highlands-coffee"] .cat-hero-section {
    background: linear-gradient(135deg, #6c0e14 0%, #8f171e 40%, #b22830 100%) !important;
    position: relative;
    padding: 28px 0 32px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-hero-section.tch-hero-section,
body[data-category-slug="the-coffee-house"] .cat-hero-section {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 40%, #ea580c 100%) !important;
    position: relative;
    padding: 28px 0 32px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-hero-section.tch-hero-section::before,
body[data-category-slug="the-coffee-house"] .cat-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.25) 0%, rgba(253, 186, 116, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.tch-hero-section::after,
body[data-category-slug="the-coffee-house"] .cat-hero-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.katinat-hero-section,
body[data-category-slug="katinat"] .cat-hero-section {
    background: linear-gradient(135deg, #0b222d 0%, #133a4a 40%, #1b5168 100%) !important;
    position: relative;
    padding: 28px 0 32px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-hero-section.katinat-hero-section::before,
body[data-category-slug="katinat"] .cat-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(94, 234, 212, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.katinat-hero-section::after,
body[data-category-slug="katinat"] .cat-hero-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.phuclong-hero-section,
body[data-category-slug="phuc-long"] .cat-hero-section {
    background: linear-gradient(135deg, #044232 0%, #046c4e 40%, #059669 100%) !important;
    position: relative;
    padding: 28px 0 32px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-hero-section.phuclong-hero-section::before,
body[data-category-slug="phuc-long"] .cat-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.22) 0%, rgba(167, 243, 208, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.phuclong-hero-section::after,
body[data-category-slug="phuc-long"] .cat-hero-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.highlands-hero-section::before,
body[data-category-slug="highlands-coffee"] .cat-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(254, 240, 138, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-section.highlands-hero-section::after,
body[data-category-slug="highlands-coffee"] .cat-hero-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-hero-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.brand-hero-avatar-wrap {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 20px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.brand-hero-avatar-wrap:hover {
    transform: translateY(-2px) scale(1.02);
}

.brand-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    display: block;
}

.brand-verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #8f171e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brand-hero-content {
    flex: 1;
    min-width: 0;
}

.brand-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}

.brand-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 3.5px 12px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
}

.live-pulse-dot {
    width: 7.5px;
    height: 7.5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: livePulseAnim 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    display: inline-block;
    flex-shrink: 0;
}

@keyframes livePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
        transform: scale(0.95);
    }
}

.brand-hero-update-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fef08a;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.22);
    padding: 3.5px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(254, 240, 138, 0.25);
}

.brand-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 6px 0;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.brand-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    max-width: 720px;
    line-height: 1.55;
}

.brand-hero-features {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.brand-feat-pill:hover {
    background: rgba(0, 0, 0, 0.35);
}

.brand-feat-pill svg {
    color: #fef08a;
}

/* Mobile & Tablet adjustments for Brand Hero */
@media (max-width: 768px) {
    .brand-hero-section.highlands-hero-section,
    body[data-category-slug="highlands-coffee"] .cat-hero-section {
        padding: 16px 0 18px 0 !important;
    }

    .brand-hero-inner {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 14px !important;
        text-align: left !important;
    }

    .brand-hero-avatar-wrap {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 16px;
        padding: 3px;
        box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

    .brand-hero-logo {
        border-radius: 12px;
    }

    .brand-verified-badge {
        width: 18px;
        height: 18px;
        border-width: 2px;
        bottom: -3px;
        right: -3px;
    }

    .brand-verified-badge svg {
        width: 10px;
        height: 10px;
    }

    .brand-hero-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin: 0 0 4px 0 !important;
    }

    .brand-hero-desc {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin: 0 0 8px 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-hero-meta {
        gap: 6px;
        margin-bottom: 5px;
    }

    .brand-hero-badge {
        font-size: 11px;
        padding: 2.5px 9px;
    }

    .brand-hero-update-tag {
        font-size: 11px;
        padding: 2.5px 8px;
    }

    .brand-feat-pill {
        font-size: 11px;
        padding: 2.5px 8px;
        gap: 4px;
    }

    .brand-feat-pill svg {
        width: 11px;
        height: 11px;
    }
}

@media (max-width: 480px) {
    .brand-hero-avatar-wrap {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 14px;
    }

    .brand-hero-title {
        font-size: 16.5px !important;
    }

    .brand-hero-desc {
        font-size: 12px !important;
    }

    .brand-hero-features {
        gap: 5px;
    }
}

/* ============================================================
   --- FINTECH LANDING PAGE & ADS CAMPAIGNS (TIMDEALNGON) ---
   ============================================================ */
.finance-campaign-hero {
    background: radial-gradient(120% 120% at 80% 20%, #172554 0%, #0f172a 60%, #030712 100%);
    color: #ffffff;
    padding: 50px 0 45px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.finance-campaign-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(30, 58, 138, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}
.fin-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.fin-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 18px;
}
.fin-badge-wrap .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseFin 1.8s infinite;
}
.fin-hero-h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.fin-hero-sub {
    font-size: 15.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 auto 24px;
    max-width: 680px;
}
.fin-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}
.fin-cta-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
    color: #ffffff;
}
.fin-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.fin-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
}

/* SMART FILTER */
.fin-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin: -25px auto 35px auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.fin-filter-header {
    margin-bottom: 16px;
}
.fin-filter-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fin-filter-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.fin-filter-group {
    margin-bottom: 12px;
}
.fin-filter-group:last-child {
    margin-bottom: 0;
}
.fin-filter-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.fin-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fin-filter-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fin-filter-btn:hover {
    border-color: #0284c7;
    background: #eff6ff;
    color: #0284c7;
}
.fin-filter-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* COMPARISON CARDS (PARTNERS) */
.fin-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 45px;
}
.fin-partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
}
.fin-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #38bdf8;
}
.fin-partner-card.featured {
    border: 2px solid #0284c7;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}
.fin-rec-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.fin-partner-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.fin-partner-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    padding: 4px;
    background: #ffffff;
    flex-shrink: 0;
}
.fin-partner-meta h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.fin-partner-badge {
    display: inline-block;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.fin-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
}
.fin-spec-col .spec-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}
.fin-spec-col .spec-val {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.fin-spec-col .spec-val.rate {
    color: #059669;
}
.fin-benefits-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    font-size: 13px;
    color: #475569;
}
.fin-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.fin-benefits-list li svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}
.fin-btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.fin-btn-apply:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    color: #ffffff;
}
.fin-apply-sub {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    display: block;
}

/* 3 STEPS */
.fin-steps-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 45px;
}
.fin-steps-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px;
}
.fin-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fin-step-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.fin-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.fin-step-col h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.fin-step-col p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* FAQ & DISCLAIMER */
.fin-faq-section {
    margin-bottom: 45px;
}
.fin-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.fin-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fin-faq-a {
    display: none;
    padding: 0 20px 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.fin-faq-item.open .fin-faq-a {
    display: block;
}
.fin-faq-item.open .fin-faq-arrow {
    transform: rotate(180deg);
}

.fin-disclaimer-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 50px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .fin-hero-h1 { font-size: 24px; }
    .fin-steps-grid { grid-template-columns: 1fr; }
    .fin-partners-grid { grid-template-columns: 1fr; }
    .fin-filter-card { padding: 18px; margin-top: -15px; }
}


