:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* VETA Brand Colors */
    --veta-orange: #f89422;
    --veta-orange-dark: #e07a10;
    --veta-navy: #0a3b5c;
    --veta-navy-light: #0d4a73;
}

/* VETA Brand Utilities */
.text-veta-orange {
    color: var(--veta-orange) !important;
}

.text-veta-navy {
    color: var(--veta-navy) !important;
}

.text-pink {
    color: #d63384 !important;
}

.bg-veta-orange {
    background-color: var(--veta-orange) !important;
}

.bg-veta-navy {
    background-color: var(--veta-navy) !important;
}

/* VETA Buttons */
.btn-veta {
    background: linear-gradient(135deg, var(--veta-orange), var(--veta-orange-dark));
    color: white !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 148, 34, 0.3);
}

.btn-veta:hover {
    background: linear-gradient(135deg, var(--veta-orange-dark), #c46a0a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 148, 34, 0.4);
    color: white !important;
}

.btn-veta:active {
    transform: translateY(0);
}

.btn-veta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-veta {
    color: var(--veta-orange);
    border: 2px solid var(--veta-orange);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-veta:hover {
    background-color: var(--veta-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 148, 34, 0.3);
}

.btn-navy {
    background: linear-gradient(135deg, var(--veta-navy), var(--veta-navy-light));
    color: white !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--veta-navy-light), var(--veta-navy));
    transform: translateY(-2px);
    color: white !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        position: relative;
        overflow-x: hidden;
    }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    animation: slideOutRight 0.4s ease-in forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateX(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.toast-success {
    border-left-color: #10b981;
    background: linear-gradient(to right, #ecfdf5, white);
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

.toast-error i {
    color: #ef4444;
}

.toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #eff6ff, white);
}

.toast-info i {
    color: #3b82f6;
}

.toast-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb, white);
}

.toast-warning i {
    color: #f59e0b;
}


/* Top Form (Section 1.1) */
.top-form {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
}

.top-form .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-veta {
    display: flex;
    align-items: center;
}

.logo-veta img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-veta:hover img {
    transform: scale(1.05);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 9999;
    width: 0;
    transition: width 0.1s ease-out;
}


.company-name {
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.company-name h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.company-name p {
    font-size: 0.85rem;
    color: var(--secondary);
    font-style: italic;
    font-weight: 500;
}

.top-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-deal-hot {
    background: linear-gradient(45deg, #ef4444, #f59e0b);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulseDeal 2s infinite;
}

.btn-deal-hot:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.btn-deal-hot .hot-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 10px #fff;
    animation: blink 0.8s infinite alternate;
}

@keyframes pulseDeal {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Shine effect */
.btn-deal-hot::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(30deg);
    transition: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* Header (1.2.1.1) */
.header-main {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-tools {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.5rem;
    padding-left: 3rem;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    display: none;
    z-index: 1100;
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

.search-bar:focus-within .search-suggestions {
    display: block;
    animation: fadeInSlideDown 0.2s ease-out;
}

.suggestion-group {
    margin-bottom: 1.25rem;
}

.suggestion-group:last-child {
    margin-bottom: 0;
}

.suggestion-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-main);
}

.suggestion-item:hover {
    background: #f1f5f9;
    color: var(--primary-light);
    padding-left: 1rem;
}

.suggestion-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.suggestion-item:hover i {
    background: white;
    color: var(--primary-light);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* History and Enhanced Suggestions */
.suggestion-item .item-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #f1f5f9;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.clear-history {
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
}

.clear-history:hover {
    color: #ef4444;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item .remove-history-item {
    opacity: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition);
}

.history-item:hover .remove-history-item {
    opacity: 1;
}

.history-item:hover .remove-history-item:hover {
    color: #ef4444;
}

.suggestion-item .item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.suggestion-item .item-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item .item-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* Shopee-Style Search Suggestion Improvements */
.search-suggestions {
    padding: 0; /* Remove internal padding for clean list */
    overflow: hidden;
}

.suggestion-group {
    margin-bottom: 0;
}

.suggestion-item {
    padding: 10px 15px;
    border-radius: 0;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: #f8f8f8;
    color: #ee4d2d; /* Shopee orange for intent */
    padding-left: 15px; /* Override previous indent */
}

/* Find Shop Intent Item */
.find-shop-intent {
    border-bottom: 1px solid #f1f1f1;
}

.find-shop-intent i {
    color: #ee4d2d;
    background: #fff5f1;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

/* Rich Shop Suggestion Box */
.rich-shop-suggest {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    transition: background 0.2s;
}

.rich-shop-suggest:hover {
    background: #fafafa;
}

.shop-suggest-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-suggest-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid #eee;
    object-fit: cover;
}

.shop-suggest-info {
    flex: 1;
    min-width: 0;
}

.shop-suggest-name {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.shop-suggest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #757575;
}

.shop-suggest-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-suggest-meta i {
    font-size: 0.75rem;
    color: #ee4d2d;
}

.btn-visit-shop {
    padding: 6px 15px;
    border: 1px solid #ee4d2d;
    color: #ee4d2d;
    background: #fff;
    border-radius: 2px;
    font-size: 0.8rem;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-visit-shop:hover {
    background: #fff5f1;
}

/* Normal Keyword Suggestions */
.keyword-suggestion-item {
    font-weight: 400;
}

.keyword-suggestion-item b {
    font-weight: 500;
    color: #ee4d2d;
}

.history-header {
    padding: 12px 15px 8px;
    border-bottom: 1px dashed #eee;
}

.history-item {
    padding-left: 15px;
    padding-right: 15px;
}


/* Restored Header Tools Styles */
.tools-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.tool-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* User Dropdown Menu */
.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.user-dropdown-wrapper:hover .user-dropdown-menu,
.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
    padding-left: 1.25rem;
}

.user-dropdown-item i {
    font-size: 1rem;
    width: 20px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.user-dropdown-item:hover i {
    color: var(--primary);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.user-dropdown-logout {
    color: #ef4444;
}

.user-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown-logout i {
    color: #ef4444;
}

/* Admin Switch Button - Nút chuyển sang quản trị */
.user-dropdown-admin-switch {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white !important;
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.user-dropdown-admin-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.user-dropdown-admin-switch:hover::before {
    left: 100%;
}

.user-dropdown-admin-switch:hover {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    padding-left: 1rem !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.user-dropdown-admin-switch i {
    color: #ffdf28 !important;
    margin-bottom: 0;
}

/* Navigation (1.2.1.2) */
.nav-bar {
    background: white;
    border-top: 1px solid #f1f5f9;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Base for mega menu positioning */
}

.main-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-item {
    position: static;
    /* Allows mega menu to position relative to .nav-container */
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item:hover .nav-link {
    color: var(--primary);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Equal columns by default */
    padding: 2.5rem;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-top: 2px solid var(--primary-light);
}

.mega-menu.mega-7-cols {
    grid-template-columns: repeat(7, 1fr);
    /* 7 Equal columns for Affiliate */
    padding: 2rem 1.5rem;
    gap: 1rem;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.mega-col ul li {
    margin-bottom: 0.6rem;
}

.mega-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mega-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.hot-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 700;
}

/* Floating CTAs */
.fixed-ctas {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.content-area {
    min-height: 1000px;
    min-width: 0;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ad-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.ad-card:hover {
    transform: scale(1.02);
}

.ad-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    position: relative;
}

.ad-info {
    padding: 1rem;
}

.ad-info h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Mobile Only Elements - Hidden by default on Desktop */
.mobile-header,
.mobile-menu,
.mobile-overlay,
.accordion-item {
    display: none;
}

/* Mobile styles */
@media (max-width: 1024px) {

    .top-form,
    .header-main,
    .nav-bar {
        display: none;
    }

    .mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 2000;
        background: white;
        padding: 0.5rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        cursor: pointer;
        font-size: 1.5rem;
    }

    .mobile-menu {
        display: block;
        /* Show container */
        position: fixed;
        top: 0;
        left: -100%;
        /* Hide off-screen */
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 2001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 2rem 1.5rem;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }

    .mobile-overlay.active {
        display: block;
    }

    .mobile-search {
        margin: 0.5rem 0 1rem;
        display: block;
        padding: 0 0.5rem;
    }

    .mobile-search input {
        width: 100%;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
        border-radius: 10px;
        border: 2px solid #f1f5f9;
        background: #f1f5f9;
        font-size: 0.85rem;
        outline: none;
        transition: var(--transition);
    }

    .mobile-search input:focus {
        background: white;
        border-color: var(--veta-orange);
    }

    /* Mobile Accordion */
    .accordion-item {
        display: block;
        /* Show on mobile */
        border-bottom: 1px solid #f1f5f9;
    }

    .accordion-header {
        padding: 1.2rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        cursor: pointer;
        color: var(--text-main);
        font-size: 0.95rem;
    }

    .accordion-header i {
        font-size: 0.8rem;
        transition: var(--transition);
    }

    .accordion-item.active .accordion-header i {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .accordion-content {
        display: none;
        padding: 0 0 1.2rem 1rem;
    }

    .accordion-content ul li {
        padding: 0.6rem 0;
    }

    .accordion-content ul li a {
        font-size: 0.9rem;
        color: var(--text-muted);
        display: block;
    }

    .accordion-item.active .accordion-content {
        display: block;
    }

    .main-content {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 1rem;
    }
}

/* Main Footer Redesign */
.main-footer {
    background-color: #0c2a4d;
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* .main-footer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 100%;
    background-image: url('https://veta.com.vn/data/other/1/LOGO_VETA_6__2_-removebg-preview.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
} */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-info-list li i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-links-list li a {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.footer-links-list li a::before {
    content: ">";
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
}

.footer-links-list li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.qr-box {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    width: 140px;
    height: 140px;
}

.fanpage-box {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Bottom Link Buttons */
.footer-bottom-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-link-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: white;
}

.footer-link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

.footer-link-card i {
    color: var(--accent);
    font-size: 1.25rem;
}

.copyright-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 4rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    z-index: 1500;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-phone {
    background: #ef4444;
}

.btn-zalo {
    background: #0068ff;
    padding: 12px;
}

.btn-zalo img {
    width: 100%;
    height: 100%;
}

.btn-facebook {
    background: #0084ff;
    font-size: 1.8rem;
}

/* Phone Ripple Animation */
.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: ripple 2s infinite;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 5rem;
        right: 0.75rem;
        gap: 0.75rem;
    }

    .contact-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    @keyframes ripple {
        0% {
            width: 100%;
            height: 100%;
            opacity: 0.8;
        }

        100% {
            width: 160%;
            height: 160%;
            opacity: 0;
        }
    }
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.main-footer {
    background: #1e3a8a;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.footer-info-list li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-links-list li {
    margin-bottom: 0.625rem;
}

.footer-links-list li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-list li a::before {
    content: '›';
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.footer-links-list li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links-list li a:hover::before {
    transform: translateX(3px);
}

.qr-box {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fanpage-box {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fanpage-box div {
    color: #1e293b;
}

/* Footer Bottom Row */
.footer-bottom-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-link-card i {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Copyright Section */
.copyright-section {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   FOOTER MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .qr-box {
        width: 100px;
        height: 100px;
    }

    .fanpage-box {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-info-list li {
        justify-content: center;
        text-align: left;
    }

    .footer-links-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-links-list li {
        margin-bottom: 0;
    }

    .footer-links-list li a::before {
        display: none;
    }

    .qr-box {
        margin: 0 auto;
        width: 110px;
        height: 110px;
    }

    .fanpage-box {
        margin: 0 auto;
        width: 100%;
        max-width: 280px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .footer-link-card {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.875rem 1rem;
    }

    .copyright-section {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 1.75rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-info-list li {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-info-list li i {
        margin-top: 0;
    }

    .footer-links-list li a {
        font-size: 0.8rem;
    }

    .footer-link-card {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    .footer-link-card i {
        font-size: 1rem;
    }
}

/* ============================== */
/* Reaction Picker Styles         */
/* ============================== */

/* Post card hover effect */
.post-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Reaction button container */
.reaction-btn {
    position: relative;
    transition: all 0.2s;
}

/* Reaction picker - hidden by default */
.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 30px;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: none;
    gap: 8px;
    z-index: 100;
    margin-bottom: 5px;
}

/* Show picker on hover */
.reaction-btn:hover .reaction-picker {
    display: flex;
    animation: fadeInUp 0.2s ease-out;
}

/* Each emoji */
.reaction-emoji {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
}

.reaction-emoji:hover {
    transform: scale(1.4);
}

/* Animation for picker appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reacted button styling */
.reaction-main-btn.reacted {
    font-weight: 600;
}

/* Comment input focus */
.comment-input:focus {
    box-shadow: none;
    border-color: var(--accent);
}

/* Pinned post badge */
.pinned-badge {
    background: linear-gradient(135deg, #f89422, #ff6b35);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}