/* TapHoaCode Modern Design System */
:root {
    --primary-red: #0ea5e9;
    --primary-hover: #2563eb;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius-main: 8px;
    --radius-lg: 16px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Search */
.main-header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 10px;
}

.brand-logo img {
    height: 40px;
}

.header-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 4px;
    padding: 5px;
    max-width: 800px;
}

.category-btn {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 15px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.search-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-naptien {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.user-header-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 4px 12px 4px 4px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-header-pill:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(218, 37, 29, 0.1);
    background: #fffafa;
}

.user-pill-avatar {
    position: relative;
    width: 38px;
    height: 38px;
}

.user-pill-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-pill-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f1c40f;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-pill-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    line-height: 1.2;
}

.pill-name {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pill-balance {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-red);
}

.pill-arrow {
    font-size: 10px;
    color: #ccc;
    margin-left: 8px;
    transition: 0.3s;
}

.user-header-pill:hover .pill-arrow {
    color: var(--primary-red);
    transform: translateY(1px);
}

.btn-login-header {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-login-header:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-sell-source {
    background: #00b894;
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-sell-source:hover {
    background: #009477;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.m-btn-sell-source {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #00b894;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.m-icon-btn.upload {
    color: #00b894 !important;
    background: #e6f8f5;
    border: 1px solid #c2ece4;
}

.m-login-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf2f2;
    color: var(--primary-red) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 17px;
    border: 1.5px solid #fce8e8;
}

/* Sub Nav Menu */
.sub-nav {
    display: flex;
    justify-content: flex-start;
    /* Aligned to left as requested */
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    font-weight: 700;
    font-size: 13px;
    color: #444;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
}

.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #f0f0f0;
}

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

.nav-dropdown li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-transform: none;
    border-bottom: none !important;
    display: block;
    transition: 0.2s;
}

.nav-dropdown li a:hover {
    background: #f8f9fa;
    color: var(--primary-red);
    padding-left: 25px;
}

/* Hero Banner (Modern Slider Style) */
.hero-banner-section {
    margin-top: 20px;
}

.main-banner-slider {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    width: 100% !important;
}

.banner-item {
    width: 100%;
    height: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.banner-content-inner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content-inner p {
    font-size: 18px;
    opacity: 0.9;
}

/* Swiper Navigation Customization */
.banner-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.banner-nav-btn::after {
    font-size: 16px;
    color: #fff;
    font-weight: 900;
}

.banner-nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

/* Swiper Pagination Customization */
.banner-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: 0.3s;
}

.banner-pagination .swiper-pagination-bullet-active {
    background: #00d2ff !important;
    width: 50px;
}

.banner-progress {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.progress-bar {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.progress-bar.active {
    background: #00d2ff;
    width: 45px;
}

/* Quick Access (Circular Style) */
.quick-access-section {
    margin-top: 30px;
}

.quick-access-flex {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.quick-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-circle-item:hover {
    transform: translateY(-5px);
}

.circle-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.box-blue {
    background: linear-gradient(135deg, #6699ff, #3366ff);
}

.box-green {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.box-orange {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.box-purple {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.quick-circle-item span {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.promo-group {
    display: contents;
}

.promo-card {
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.promo-card::after {
    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;
}

.promo-card:hover::after {
    left: 100%;
}

.card-community {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.card-forum {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.card-news {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.card-subject {
    background: linear-gradient(135deg, #232526, #414345);
}

.promo-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.promo-card:hover .promo-icon-box {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(10deg);
}

.promo-info {
    flex: 1;
}

.promo-info h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-info p {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.promo-action {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0.7;
    transition: 0.3s;
}

.promo-card:hover .promo-action {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Promo Pagination Dots */
.promo-pagination {
    display: none;
    /* Hidden on PC */
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.promo-nav-dot {
    width: 20px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.promo-nav-dot.active {
    background: var(--primary-red);
    width: 35px;
}


.announcement-bar {
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 48px;
}

.announce-tag {
    background: #da251d;
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.announce-tag i {
    font-size: 16px;
    animation: pulse-ring 1.5s infinite;
}

.announce-content {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
    position: relative;
    background: #fff;
}

.scrolling-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.announcement-bar:hover .scrolling-text {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        height: 42px;
        margin: 15px 0;
    }

    .announce-tag {
        padding: 0 12px;
        font-size: 11px;
    }

    .announce-tag span {
        display: none;
        /* Hide text, show only icon on mobile if needed */
    }

    .announce-tag::after {
        content: 'HOT';
        font-size: 10px;
    }

    .scrolling-text {
        font-size: 13px;
    }
}

/* Theme Grid */
.featured-section {
    margin-bottom: 50px;
}

.section-heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.red-fire {
    color: #f39c12;
}

.btn-view-more {
    font-size: 14px;
    font-weight: 700;
    color: #777;
}



.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.theme-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    height: 100%;
}

.theme-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.theme-img-fixed {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 0 12px;
}

.theme-img-fixed-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}


.theme-img-fixed img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.theme-card:hover .theme-img-fixed img {
    transform: scale(1.1);
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(3px);
    border-radius: 12px;
    margin: 0 !important;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
    visibility: visible;
}

.theme-overlay .view-btn {
    background: #fff;
    color: var(--primary-red);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.theme-card:hover .view-btn {
    transform: translateY(0);
}

.theme-overlay .view-btn:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(220, 53, 69, 0.4);
}

.wish-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #ff4757;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.theme-card:hover .wish-btn {
    transform: translateY(0);
}

.wish-btn:hover {
    background: #ff4757 !important;
    color: #fff !important;
    transform: scale(1.1) translateY(0) !important;
}

.theme-overlay {
    gap: 10px;
}

.price-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4757, #da251d);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 8px 15px rgba(218, 37, 29, 0.3);
    overflow: hidden;
}

.price-free {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 8px 15px rgba(39, 174, 96, 0.3);
    overflow: hidden;
}

@keyframes shiny-free {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(0, 176, 155, 0.4));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(150, 201, 61, 0.8));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(0, 176, 155, 0.4));
    }
}

.price-free::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% {
        left: -60%;
    }

    30% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

.theme-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme-cate {
    color: #6c757d;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-label {
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
}



.theme-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 21px;
    transition: color 0.3s ease;
}

.theme-card:hover .theme-name {
    color: var(--primary-red);
}

.theme-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.stat-view {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-view i {
    font-size: 14px;
}

.theme-footer-new .stat {
    white-space: nowrap;
}

/* Load More Button */
.explorer-load-more {
    text-align: center;
    margin: 20px 0 50px 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px;
    background: #fff;
    border: 1.5px solid #f0f0f0;
    color: #555;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-load-more i {
    font-size: 11px;
    transition: 0.3s;
}

.btn-load-more:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* News Section Styles */
.news-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.news-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

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

.news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* News Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .news-img {
        height: 200px;
    }
}

.price-stack .old-price {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.price-stack .main-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-red);
}

.btn-buy-now {
    background: #f1f3f4;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-buy-now:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* API Custom Card */
.api-card .theme-img-fixed {
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Registration CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    /* Premium Deep Slate/Indigo */
    padding: 60px 0;
    margin-top: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative glow */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.cta-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.cta-left {
    flex: 0 0 320px;
}

.cta-left img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.cta-right {
    flex: 1;
    color: #fff;
}

.cta-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.5px;
}

.cta-desc {
    font-size: 14px;
    color: #cbd5e1;
    /* Soft blue-grey text */
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-cta-register {
    background: var(--primary-red);
    /* Matched with website's primary color */
    color: #fff;
    padding: 10px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(218, 37, 29, 0.3);
    /* Red glow */
}

.btn-cta-register:hover {
    background: #ff3b30;
    /* Brighter red on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(218, 37, 29, 0.45);
}

.cta-login-text {
    font-size: 14px;
    color: #94a3b8;
}

.cta-login-text a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.cta-login-text a:hover {
    border-color: #fff;
}

.cta-login-text a:hover {
    text-decoration: underline;
}

/* Rent CTA Section (Premium Style) */
.cta-rent-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 60px 0;
    margin-top: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.cta-rent-section::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.rent-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-cta-rent {
    background: #ff8c00;
    color: white;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-cta-rent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

.cta-rent-text {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 15px;
    font-weight: 600;
    display: block;
}

/* Common Responsive for both CTA Sections */
@media (max-width: 992px) {
    .cta-flex {
        gap: 30px;
        padding: 0 20px;
    }

    .cta-left {
        flex: 0 0 220px;
    }

    .cta-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .cta-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .cta-left {
        flex: 0 0 160px;
    }

    .cta-desc {
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   SEO / ABOUT SECTION
   ========================================================================== */
.seo-info-section {
    padding: 20px 0;
    margin-bottom: 0px;
}

.seo-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.seo-title {
    font-size: 16px;
    font-weight: 800;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

.seo-content-wrapper {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    text-align: justify;
    max-width: 1000px;
    margin: 0 auto;
}

.seo-hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
}

.seo-content-wrapper.expanded .seo-hidden-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
}

.seo-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    transition: 0.3s;
}

.seo-toggle-btn i {
    transition: transform 0.3s ease;
}

.seo-toggle-btn.active i {
    transform: rotate(180deg);
}

.seo-toggle-btn:hover {
    opacity: 0.8;
}

/* Home FAQ */
.home-faq-modern {
    padding: 44px 0 80px;
    background: transparent;
}

.faq-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 40px;
    overflow: hidden;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(125deg, #0f2d4f 0%, #0b70b8 58%, #11a9ca 100%);
    box-shadow: 0 18px 40px rgba(14, 93, 157, .18);
}

.faq-hero::before,
.faq-hero::after {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.faq-hero::before { right: -86px; top: -98px; }
.faq-hero::after { right: 84px; bottom: -146px; }
.faq-hero-copy, .faq-hero-badge { position: relative; z-index: 1; }

.faq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 700;
}

.faq-hero h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.faq-hero p { max-width: 600px; margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.65; }

.faq-hero-badge {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(4, 30, 59, .2);
    font-size: 13px;
    line-height: 1.25;
}

.faq-hero-badge > i { font-size: 27px; }
.faq-hero-badge b { font-size: 17px; }

.faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -23px 28px 24px;
    padding: 6px 8px 6px 18px;
    position: relative;
    z-index: 2;
    border: 1px solid #e4edf5;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 45, 79, .11);
}

.faq-search-wrap > i { color: #089dcc; }
.faq-search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 0; color: #1e3650; font: inherit; }
.faq-search-wrap input::placeholder { color: #94a3b8; }
.faq-result { flex: 0 0 auto; padding: 7px 10px; color: #31708c; border-radius: 8px; background: #eaf8fc; font-size: 12px; font-weight: 700; }

.faq-list { display: grid; gap: 11px; }
.faq-item { border: 1px solid #e6edf3; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(15, 45, 79, .035); transition: border-color .25s, box-shadow .25s, transform .25s; }
.faq-item:hover, .faq-item.active { border-color: rgba(8, 157, 204, .4); box-shadow: 0 9px 22px rgba(15, 75, 120, .08); }
.faq-item:hover { transform: translateY(-1px); }
.faq-question { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #263d56; border: 0; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.faq-question:focus-visible { outline: 3px solid rgba(8, 157, 204, .35); outline-offset: -3px; }
.q-icon { display: inline-flex; flex: 0 0 34px; width: 34px; height: 34px; align-items: center; justify-content: center; color: #078fca; border-radius: 10px; background: #eaf8fc; font-size: 15px; }
.q-text { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.45; }
.q-arrow { display: inline-flex; flex: 0 0 28px; width: 28px; height: 28px; align-items: center; justify-content: center; color: #7790a5; border-radius: 50%; background: #f4f7fa; font-size: 10px; transition: transform .25s, color .25s, background .25s; }
.faq-item.active .q-arrow { color: #fff; background: #079ccd; transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; background: #fbfdff; transition: grid-template-rows .3s ease; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.answer-inner { min-height: 0; padding: 0 24px 0 68px; overflow: hidden; color: #60758a; font-size: 14px; line-height: 1.75; transition: padding .3s ease; }
.faq-item.active .answer-inner { padding-top: 0; padding-bottom: 20px; }

.faq-support-card { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 16px 20px; color: #31546b; border: 1px dashed #b7dbe7; border-radius: 15px; background: #f5fcfe; }
.faq-support-icon { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; align-items: center; justify-content: center; color: #fff; border-radius: 11px; background: linear-gradient(135deg, #08a9cf, #087acb); }
.faq-support-card strong { display: block; font-size: 14px; }
.faq-support-card p { margin: 2px 0 0; color: #71879a; font-size: 13px; }
.faq-support-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #238456; font-size: 12px; font-weight: 700; white-space: nowrap; }
.faq-support-status i { width: 7px; height: 7px; border-radius: 50%; background: #36c776; box-shadow: 0 0 0 3px rgba(54, 199, 118, .16); }
.faq-empty { margin: 18px 0 0; color: #70869a; text-align: center; }

@media (max-width: 768px) {
    .home-faq-modern { padding: 28px 0 52px; }
    .faq-shell { padding: 0 16px; }
    .faq-hero { padding: 28px 23px 66px; border-radius: 20px; }
    .faq-hero-badge { position: absolute; bottom: 14px; left: 23px; padding: 8px 11px; }
    .faq-hero-badge > i { font-size: 19px; }
    .faq-hero-badge b { font-size: 14px; }
    .faq-search-wrap { margin: -20px 12px 20px; padding-left: 14px; }
    .faq-result { display: none; }
    .faq-question { gap: 11px; padding: 15px; }
    .q-icon { flex-basis: 31px; width: 31px; height: 31px; border-radius: 9px; font-size: 13px; }
    .q-text { font-size: 14px; }
    .answer-inner { padding-left: 57px; padding-right: 17px; font-size: 13px; }
    .faq-support-card { align-items: flex-start; padding: 15px; }
    .faq-support-status { display: none; }
}


/* Assign colors for bottom border effect */
.f-purple-box {
    color: #5c67f2;
}

.f-green-box {
    color: #31ad60;
}

.f-cyan-box {
    color: #0d9488;
}

.f-orange-box {
    color: #f59e0b;
}

.feature-box .f-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-box .f-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    font-weight: 500;
    margin: 0;
}

/* Feature Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .feature-box {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

.back-to-top:not(.show) {
    transform: translateY(20px);
}

.back-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(218, 37, 29, 0.3);
}

@media (max-width: 1024px) {
    .back-to-top {
        bottom: 90px;
        /* Above mobile footer nav */
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Modern brand footer */
.main-footer-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0b1020;
    color: #aeb8cf;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.main-footer-dark::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
    background-size: 36px 36px;
    content: '';
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.footer-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.footer-glow-one { width: 440px; height: 440px; top: -260px; left: -140px; background: rgba(218, 37, 29, .18); }
.footer-glow-two { width: 340px; height: 340px; right: -80px; bottom: -200px; background: rgba(53, 96, 203, .2); }

.footer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 106px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand-mark, .footer-status, .footer-promise, .footer-title, .footer-contact-card, .footer-bottom { display: flex; align-items: center; }
.footer-brand-mark { gap: 13px; color: #fff; }
.footer-brand-icon { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: linear-gradient(135deg, #ed3a31, #bd1c17); box-shadow: 0 10px 24px rgba(218, 37, 29, .25); font-size: 18px; }
.footer-eyebrow { display: block; margin-bottom: 1px; color: #9eabc4; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
.footer-brand-mark strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.35px; }
.footer-status { gap: 8px; padding: 9px 14px; border: 1px solid rgba(107, 221, 152, .22); border-radius: 999px; background: rgba(65, 166, 104, .1); color: #b9eccb; font-size: 12px; font-weight: 700; }
.footer-status span { width: 7px; height: 7px; border-radius: 50%; background: #63dd91; box-shadow: 0 0 0 4px rgba(99,221,145,.12); }

.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.22fr; gap: 48px; padding: 54px 0 48px; }
.footer-col-intro { max-width: 335px; }
.company-desc { margin: 0; color: #aab4c8; font-size: 14px; line-height: 1.85; }
.footer-promise { gap: 11px; margin-top: 24px; padding: 11px 14px; width: max-content; max-width: 100%; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.045); color: #abb6ca; font-size: 11px; line-height: 1.5; }
.footer-promise > i { color: #f25049; font-size: 17px; }
.footer-promise b { color: #eef2fa; font-size: 12px; }
.footer-title { gap: 8px; margin: 0 0 20px; color: #f8faff; font-size: 13px; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; }
.footer-title > i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(218,37,29,.14); color: #fa655e; font-size: 11px; }
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: #aeb8cb; transition: color .2s ease, transform .2s ease; }
.footer-links a > i { color: #768299; font-size: 9px; opacity: .7; transition: transform .2s ease; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-links a:hover > i { color: #fa655e; transform: translateX(2px); }
.footer-empty { color: #77839a; font-size: 12px; font-style: italic; }
.footer-contact-list { display: grid; gap: 9px; }
.footer-contact-card { gap: 10px; min-height: 45px; padding: 7px 10px 7px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); color: #d1d8e6; font-size: 12px; font-weight: 700; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.footer-contact-card:hover { border-color: rgba(238, 73, 66, .48); background: rgba(218,37,29,.1); color: #fff; transform: translateX(3px); }
.contact-icon { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; overflow: hidden; border-radius: 8px; background: #182036; color: #f46760; font-size: 12px; }
.contact-icon img { width: 100%; height: 100%; object-fit: cover; }
.contact-arrow { margin-left: auto; color: #8390a9; font-size: 10px; }
.footer-bottom { justify-content: space-between; gap: 20px; min-height: 72px; border-top: 1px solid rgba(255,255,255,.1); color: #7e899d; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-copyright-link { color: #dce3ef; font-weight: 800; }
.footer-copyright-link:hover { color: #fa655e; }
.footer-bottom > span { color: #8e99ac; }
.footer-bottom > span i { color: #f44c4c; margin: 0 2px; font-size: 10px; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 38px 52px; }
    .footer-col-contact { max-width: 360px; }
}

@media (max-width: 768px) {
    .main-footer-dark { padding-bottom: 68px; }
    .footer-topbar { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 38px 0; }
    .footer-col-intro { grid-column: 1 / -1; max-width: none; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 17px 0; gap: 6px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-col-intro { grid-column: auto; }
    .footer-brand-mark strong { font-size: 18px; }
    .footer-status { font-size: 11px; }
}


/* Responsive */
@media (max-width: 1024px) {
    .header-top-flex {
        flex-direction: column;
        gap: 15px;
    }

    .header-search-bar {
        max-width: 100%;
    }

    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 columns */
    }

    .banner-slider {
        padding: 40px;
    }

    .banner-graphic {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-banner-section {
        margin: 0 -15px 20px -15px;
        /* Edge-to-edge on mobile */
    }

    .main-banner-slider {
        border-radius: 0;
    }

    .banner-content-inner h2 {
        font-size: 20px;
    }

    .banner-content-inner p {
        font-size: 13px;
    }

    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .theme-card {
        border-radius: 15px;
    }

    .theme-img-fixed {
        height: 115px;
        padding: 8px;
    }

    .promo-grid {
        display: flex;
        overflow-x: auto;
        gap: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 15px -15px 0 -15px;
        scrollbar-width: none;
    }

    .promo-grid::-webkit-scrollbar {
        display: none;
    }

    .promo-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 5px 15px 15px 15px;
        box-sizing: border-box;
    }

    .promo-card {
        min-height: 90px;
        height: auto;
        align-items: flex-start;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 12px;
    }

    .promo-card .promo-info {
        min-width: 0;
        flex: 1 1 auto;
    }

    .promo-card .promo-info h4,
    .promo-card .promo-info p {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .promo-card .promo-icon-box {
        flex: 0 0 auto;
    }

    .promo-icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .promo-info h4 {
        font-size: 15px;
    }

    .promo-info p {
        font-size: 11px;
    }

    .promo-action {
        display: none;
        /* Hide arrow on mobile to save space */
    }

    .promo-pagination {
        display: flex;
        /* Show on mobile */
    }

    /* Hide text on mobile view-btn */
    .view-btn .btn-text {
        display: none;
    }

    .view-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    /* Disable hover overlay on mobile */
    .theme-overlay {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .banner-text-content h1 {
        font-size: 24px;
    }

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

/* Header Layouts */
.header-mobile {
    display: none;
}

.header-desktop {
    display: block;
}

/* Mobile Header (Image 2 Style) */
@media (max-width: 1024px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
        padding: 0;
        background: var(--white);
    }

    .m-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .m-toggle-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: #ddd;
        cursor: pointer;
        padding: 5px;
    }

    .m-logo img {
        height: 35px;
        object-fit: contain;
    }

    .m-icons-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .m-icon-btn {
        background: #fff;
        border: 1.5px solid #f2f2f2;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        color: var(--primary-red);
        cursor: pointer;
        position: relative;
        /* Fixed: Added for absolute badges */
        transition: 0.2s;
    }

    .m-icon-btn:active {
        background: #f8f9fa;
        transform: scale(0.95);
    }

    .m-icon-btn .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--primary-red);
        color: var(--white);
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--white);
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Updated Mobile Sidebar Drawer */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    left: 0;
}


/* The category drawer belongs to the mobile footer navigation only. */
@media (min-width: 1025px) {
    .mobile-sidebar,
    .mobile-sidebar.open,
    .sidebar-overlay,
    .sidebar-overlay.show {
        display: none;
    }
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f8f8;
}

.sidebar-logo {
    height: 30px;
    object-fit: contain;
}

.sidebar-close {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar-close:hover {
    background: #e4e6e7;
}

.sidebar-user-section {
    padding: 20px;
    background: #fdf2f2;
    /* Light red tint matching brand primary color */
    border-bottom: 1px solid #fce8e8;
}

.sidebar-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-user-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.u-info .u-name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.u-info .u-balance {
    font-size: 13px;
    color: #888;
}

.u-info .u-balance span {
    color: var(--primary-red);
    font-weight: 700;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 80px 0;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li a {
    padding: 13px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    transition: 0.2s;
    text-decoration: none;
}

.sidebar-links li a i {
    width: 22px;
    font-size: 18px;
    color: #5d6771;
    text-align: center;
}

.sidebar-links li a:hover {
    background: #f5f7f9;
    color: var(--primary-red);
}

.sidebar-links li a:hover i {
    color: var(--primary-red);
}

.sidebar-links li.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 25px;
}

.sidebar-links li a.logout {
    color: var(--primary-red);
}

.sidebar-links li a.logout i {
    color: var(--primary-red);
}

/* Mobile Footer Navigation Menu */
.mobile-footer-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 1024px) {
    .mobile-footer-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}

.f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #5d6771;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    transition: 0.2s;
    text-decoration: none;
}

.f-nav-item i {
    font-size: 22px;
}

.f-nav-item.active {
    color: var(--primary-red);
}

/* Mobile Profile Dropdown Styles */
.m-profile-dropdown-wrapper {
    position: relative;
}

.m-profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid #eeeeee;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.m-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-profile-menu-list {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.m-profile-menu-list li a {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14.5px;
    font-weight: 600;
    color: #444;
    transition: 0.2s;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.m-profile-menu-list li:last-child a {
    border-bottom: none;
}

.m-profile-menu-list li a i {
    width: 20px;
    font-size: 17px;
    color: #888;
    text-align: center;
}

.m-profile-menu-list li a:hover {
    background: #fff5f5;
    /* Light red tint for hover instead of gold */
    color: var(--primary-red);
}

.m-profile-menu-list .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.m-profile-menu-list li a.logout {
    color: #ff4d4d;
}

.m-profile-menu-list li a.logout i {
    color: #ff4d4d;
}

.sidebar-links li a.logout i {
    color: #ff4d4d;
}

/* Desktop Profile Dropdown Styles */
.user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.d-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 1100;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.d-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.d-profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

/* Desktop Wishlist Dropdown */
.wishlist-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-icon-btn {
    background: none;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #444;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.header-icon-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.header-icon-btn.heart-btn {
    color: #e74c3c;
}

.header-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.wishlist-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 1100;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px;
}

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

.wishlist-dropdown .dropdown-header {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.wishlist-items {
    max-height: 300px;
    overflow-y: auto;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

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

.wishlist-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.wi-info .wi-name {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wi-info .wi-price {
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 700;
}

.view-all-wishlist {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    transition: 0.2s;
    text-decoration: none;
}

.view-all-wishlist:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Product Explorer (Light Style) */
.product-explorer {
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.explorer-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.2;
}

.explorer-subtitle {
    font-size: 14px;
    color: #777;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    background: #f1f3f4;
    padding: 8px 18px;
    border-radius: 8px;
}

.view-all-link i {
    font-size: 11px;
    transition: 0.2s;
}

.view-all-link:hover {
    color: var(--primary-red);
    background: #fdf2f2;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

.header-right-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-switcher,
.sort-controls {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 4px;
    border-radius: 10px;
    display: flex;
}

.view-btn,
.sort-btn {
    background: none;
    border: none;
    color: #666;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.view-btn.active,
.sort-btn.active {
    background: #fdf2f2 !important;
    color: var(--primary-red) !important;
}

.view-btn.active i,
.sort-btn.active i {
    color: var(--primary-red) !important;
}

.view-btn:hover,
.sort-btn:hover {
    color: var(--primary-red);
    background: #fdf2f2;
}

.category-filters {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
    width: 100%;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar {
    height: 0;
}

.filter-chip {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.filter-chip.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(218, 37, 29, 0.2);
}

.filter-chip:hover:not(.active) {
    background: #fdf2f2;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Mobile Responsive for Explorer */
@media (max-width: 768px) {
    .explorer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-left {
        width: 100%;
    }

    .explorer-title {
        font-size: 20px;
        white-space: normal;
    }

    .header-right-controls {
        width: 100%;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .view-switcher,
    .sort-controls {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide for Firefox */
        -ms-overflow-style: none;
        /* Hide for IE/Edge */
    }

    .view-switcher::-webkit-scrollbar,
    .sort-controls::-webkit-scrollbar {
        display: none;
        /* Hide for Chrome/Safari */
    }

    .sort-controls>button {
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   FIREWORKS EFFECT (ISOLATED SECTION)
   ========================================================================== */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    /* HOME_GLASS 390px fix: 100vw includes scrollbar width and leaks
       horizontal overflow on Windows/390px. 100% tracks viewport
       without adding scrollbar width. */
    width: 100%;
    max-width: 100%;
    height: 100vh;
    pointer-events: none;
    /* Crucial: clicks MUST pass through to elements below */
    z-index: 9999;
}

/* END FIREWORKS EFFECT */

/* ==========================================================================
   TET (LUNAR NEW YEAR) DECORATIONS
   ========================================================================== */
:root {
    --tet-gold: #FFD700;
    --tet-red: #da251d;
    --tet-red-glow: rgba(218, 37, 29, 0.5);
}

/* ==========================================================================
   LUXURY TET DECORATIONS (ENHANCED & RESPONSIVE)
   ========================================================================== */
.tet-fixed-decor {
    position: fixed;
    top: 140px;
    /* Positioned right below the header */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 999;
    /* Just below the header's z-index */
}

.tet-chinese-texts {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.chinese-char {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #da251d;
    color: #ffd700;
    font-size: 38px;
    font-weight: 900;
    border-radius: 12px;
    border: 3px solid #ffd700;
    box-shadow: 0 5px 15px rgba(218, 37, 29, 0.4);
    transform: rotate(45deg);
    /* Traditional diamond shape */
}

/* Straighten the text inside the diamond */
.chinese-char::after {
    display: block;
    transform: rotate(-45deg);
}

.ch-spring,
.ch-fortune {
    display: block;
    line-height: 1;
}

/* Re-adjust text rotation inside the diamond */
.ch-spring,
.ch-fortune {
    transform: rotate(-45deg);
}

.lantern-wrapper {
    position: absolute;
    top: 0;
    width: 60px;
    height: 150px;
    pointer-events: none;
    transform-origin: top center;
    animation: luxurySway 3.5s ease-in-out infinite alternate;
}

.lantern-left {
    left: 50px;
}

.lantern-right {
    right: 50px;
}

/* Cable hanging from header */
.lantern-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #442211;
    transform: translateX(-50%);
}

.lantern-top {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: linear-gradient(to bottom, #b8860b, #ffd700);
    border-radius: 4px;
    z-index: 3;
    border: 1px solid #5d110d;
}

.lantern-body {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 50px;
    background: #da251d;
    border-radius: 40% / 50%;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(218, 37, 29, 0.5);
    z-index: 2;
    border: 1.5px solid #5d110d;
}

.lantern-body::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 80%);
}

.lantern-bottom {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    border-radius: 4px;
    z-index: 3;
    border: 1px solid #5d110d;
}

.lantern-tassel {
    position: absolute;
    top: 70px;
    left: 50%;
    width: 12px;
    height: 60px;
    background: #ffd700;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Double tassel stripes */
.lantern-tassel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
}

@keyframes luxurySway {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

/* Responsive: Hide Tet decorations on Mobile & Tablet */
@media (max-width: 1100px) {
    .tet-fixed-decor {
        display: none !important;
    }
}

#blossom-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.login-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background-color: #f8f9fa;
}

.login-box-container {
    width: 100%;
    max-width: 550px;
}

.login-card-v2 {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.login-header-v2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-header-v2 h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
}

.login-header-v2 p {
    color: #555;
    font-size: 16px;
}

.form-group-v2 {
    margin-bottom: 20px;
}

.form-control-v2 {
    width: 100%;
    height: 48px;
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control-v2:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-hover);
}

.password-wrapper-v2 {
    position: relative;
    width: 100%;
}

.toggle-password-v2 {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    z-index: 10;
}

.toggle-password-v2:hover {
    color: var(--primary-red);
}

.btn-login-v2 {
    width: 100%;
    height: 48px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login-v2.primary-red {
    background-color: var(--primary-red);
}

.btn-login-v2.primary-red:hover {
    background-color: var(--primary-hover);
}

.social-login-v2 {
    margin-top: 25px;
    text-align: center;
}

.divider-text-v2 {
    position: relative;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.divider-text-v2::before,
.divider-text-v2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: #eee;
}

.divider-text-v2::before {
    left: 0;
}

.divider-text-v2::after {
    right: 0;
}

.btn-google-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-google-v2:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google-v2 img {
    width: 20px;
    height: 20px;
}

.login-actions-v2 {
    text-align: right;
    margin-top: 10px;
    padding-right: 5px;
}

.forgot-link-v2 {
    color: var(--primary-red);
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
}

.login-register-card-v2 {
    text-align: center;
}

.login-register-card-v2 span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.login-register-card-v2 a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

@media (max-width: 600px) {
    .login-card-v2 {
        padding: 20px 25px;
    }
}


/* Modern authentication pages */
.auth-modern { --auth-ink:#172033; --auth-muted:#718096; --auth-red:var(--primary-red,#e63946); min-height:calc(100vh - 210px); padding:56px 0 72px; background:#f6f8fc; }
.auth-modern .container { max-width:1120px; }
.auth-modern__shell { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); min-height:650px; overflow:hidden; border-radius:28px; background:#fff; box-shadow:0 24px 70px rgba(27,39,74,.12); }
.auth-modern__intro { position:relative; display:flex; flex-direction:column; padding:48px; overflow:hidden; color:#fff; background:linear-gradient(145deg,#b91c35 0%,#e63946 48%,#ff7851 100%); }
.auth-modern__intro::before,.auth-modern__intro::after { content:''; position:absolute; border:1px solid rgba(255,255,255,.18); border-radius:50%; pointer-events:none; }
.auth-modern__intro::before { width:410px; height:410px; right:-190px; top:-130px; }
.auth-modern__intro::after { width:330px; height:330px; bottom:-160px; left:-200px; }
.auth-modern__brand { position:relative; z-index:1; display:inline-flex; align-items:center; gap:11px; color:#fff; font-size:20px; font-weight:800; text-decoration:none; }
.auth-modern__brand-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:12px; background:rgba(255,255,255,.18); }
.auth-modern__intro-copy { position:relative; z-index:1; max-width:390px; margin:auto 0; }
.auth-modern__eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:20px; color:#ffe6dd; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.auth-modern__intro h1 { margin:0 0 18px; color:#fff; font-size:clamp(36px,4vw,52px); line-height:1.08; letter-spacing:-.04em; }
.auth-modern__intro p { margin:0; color:rgba(255,255,255,.82); font-size:15px; line-height:1.8; }
.auth-modern__benefits { position:relative; z-index:1; display:grid; gap:17px; margin:0; padding:0; list-style:none; }
.auth-modern__benefits li { display:flex; align-items:center; gap:13px; color:rgba(255,255,255,.9); font-size:13px; }
.auth-modern__benefits i { width:19px; color:#ffd7b8; text-align:center; }
.auth-modern__dots { position:relative; z-index:1; display:flex; gap:7px; margin-top:35px; }
.auth-modern__dots span { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.35); }
.auth-modern__dots span:first-child { width:25px; border-radius:10px; background:#fff; }
.auth-modern__form-panel { display:flex; flex-direction:column; justify-content:center; padding:54px clamp(32px,6vw,78px); }
.auth-modern__form-head { margin-bottom:32px; }
.auth-modern__mobile-brand { display:none; color:var(--auth-red); font-weight:800; }
.auth-modern__form-head h2 { margin:0 0 8px; color:var(--auth-ink); font-size:29px; letter-spacing:-.03em; }
.auth-modern__form-head p { margin:0; color:var(--auth-muted); font-size:14px; }
.auth-modern__form { display:grid; gap:21px; }
.auth-modern__field label,.auth-modern__label-row { color:#344054; font-size:13px; font-weight:700; }
.auth-modern__field label { display:block; margin-bottom:9px; }
.auth-modern__input-wrap { position:relative; }
.auth-modern__input-wrap > i { position:absolute; top:50%; left:17px; color:#a0aec0; transform:translateY(-50%); pointer-events:none; }
.auth-modern__input-wrap input { width:100%; height:52px; box-sizing:border-box; padding:0 46px; border:1px solid #e2e8f0; border-radius:12px; outline:0; color:var(--auth-ink); background:#f8fafc; font:inherit; font-size:14px; transition:.2s ease; }
.auth-modern__input-wrap input:focus { border-color:var(--auth-red); background:#fff; box-shadow:0 0 0 4px rgba(230,57,70,.1); }
.auth-modern__password-toggle { position:absolute; top:0; right:0; width:49px; height:52px; border:0; color:#98a2b3; background:transparent; cursor:pointer; }
.auth-modern__password-toggle:hover,.auth-modern__password-toggle:focus { color:var(--auth-red); outline:0; }
.auth-modern__submit { display:flex; align-items:center; justify-content:center; gap:11px; height:53px; margin-top:3px; border:0; border-radius:12px; color:#fff; background:linear-gradient(100deg,var(--auth-red),#ff6b55); box-shadow:0 10px 20px rgba(230,57,70,.2); font:inherit; font-size:14px; font-weight:800; cursor:pointer; transition:.2s ease; }
.auth-modern__submit:hover { transform:translateY(-2px); box-shadow:0 14px 25px rgba(230,57,70,.28); }
.auth-modern__divider { display:flex; align-items:center; gap:13px; color:#98a2b3; font-size:12px; }
.auth-modern__divider::before,.auth-modern__divider::after { content:''; height:1px; flex:1; background:#edf0f4; }
.auth-modern__google { display:flex; align-items:center; justify-content:center; gap:11px; height:51px; border:1px solid #e2e8f0; border-radius:12px; color:#344054; background:#fff; font-size:14px; font-weight:700; text-decoration:none; transition:.2s ease; }
.auth-modern__google:hover { border-color:#cbd5e1; color:#172033; background:#f8fafc; }
.auth-modern__switch,.auth-modern__terms { color:var(--auth-muted); text-align:center; font-size:13px; }
.auth-modern__switch { margin:27px 0 0; }
.auth-modern__terms { margin:22px 0 0; font-size:11px; line-height:1.6; }
@media (max-width:800px) { .auth-modern { padding:28px 0 45px; } .auth-modern__shell { display:block; min-height:0; border-radius:20px; } .auth-modern__intro { display:none; } .auth-modern__form-panel { padding:38px 24px; } .auth-modern__mobile-brand { display:block; margin-bottom:24px; } }
@media (max-width:480px) { .auth-modern .container { padding:0 12px; } .auth-modern__form-panel { padding:30px 18px; } .auth-modern__form-head h2 { font-size:25px; } .auth-modern__form { gap:18px; } }


.auth-modern__label-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.auth-modern__label-row a,.auth-modern__terms a,.auth-modern__switch a { color:var(--auth-red); font-weight:700; text-decoration:none; }

.profile-container-v2 {
    max-width: 1200px;
    margin: 30px auto 50px;
    padding: 0 15px;
}

.profile-row-v2 {
    display: flex;
    gap: 30px;
}

.profile-sidebar-col {
    flex: 0 0 300px;
}

.profile-main-col {
    flex: 1;
}

.account-sidebar-v2 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-brief-info {
    padding: 30px;
    text-align: center;
    background: #fdf2f2;
    border-bottom: 1px solid #fce8e8;
}

.u-avatar-wrapper img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.u-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.u-balance {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.u-balance span {
    color: var(--primary-red);
    font-weight: 700;
}

.account-menu {
    padding: 15px 0;
}

.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.account-menu ul li a.active {
    color: var(--primary-red);
    background: #fdf2f2;
    font-weight: 700;
}

.account-menu ul li a:hover {
    background: #fdf2f2;
    color: var(--primary-red);
}

.account-menu .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 25px;
}

.account-menu .logout {
    color: #da251d !important;
}

/* Main Card Styles */
.account-card-v2 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header-v2 {
    border-bottom: 2px solid #f8f8f8;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.card-header-v2 h2 {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.card-header-v2 p {
    color: #666;
    margin-top: 5px;
    font-size: 14px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    height: 48px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.info-value.balance {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
    background: #fff5f5;
    border: 1px solid #fce8e8;
}

.info-value.readonly {
    background: #f1f3f4;
    color: #777;
    cursor: not-allowed;
}

.info-input {
    font-size: 15px;
    color: #333;
    height: 48px;
    width: 100%;
    background: #fff;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    outline: none;
    transition: 0.2s;
}

.info-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(218, 37, 29, 0.1);
}

/* Avatar Edit Styles */
.avatar-edit-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.u-avatar-preview {
    position: relative;
    display: inline-block;
}

.u-avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    transition: 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.avatar-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    font-weight: 500;
}

.account-actions-v2 {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.btn-naptien-v2 {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-naptien-v2:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-security-v2 {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-security-v2:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

/* Stats Grid Styles */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    background: #fff;
    color: #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-red);
}

.stat-header {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-header i {
    color: var(--primary-red);
    font-size: 16px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-sidebar-col {
        display: none;
    }

    .profile-row-v2 {
        flex-direction: column;
    }

    .profile-sidebar-col {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .account-card-v2 {
        padding: 25px 20px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-actions-v2 {
        flex-direction: column;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-container-v2 {
        margin: 20px auto 40px;
    }
}


.product-info-card {
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03) !important;
}

.product-title {
    font-size: 19px;
    font-weight: bold;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 5px;
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: #fdfdfd;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: #e0e0e0;
    transform: translateY(-2px);
}

.stat-label {
    color: #999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

.product-price-box {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.current-price {
    color: var(--primary-red);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.prev-price {
    color: #999;
    font-size: 16px;
    font-weight: 600;
}

.save-label {
    background: #ffe3e3;
    color: #d63031;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
}

.btn-action-primary,
.btn-action-success,
.btn-action-outline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-action-primary {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(218, 37, 29, 0.3);
}

.btn-action-secondary {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-action-success {
    background: #029c7d;
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 156, 125, 0.3);
}

.btn-action-primary:hover {
    background: #c02019;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 37, 29, 0.4);
}

.btn-action-success:hover {
    background: #028d71;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 156, 125, 0.4);
}

.btn-action-outline {
    background: #fff;
    border: 2px solid #e9ecef;
    color: #555;
}

.btn-action-outline:hover {
    border-color: #333;
    color: #333;
    background: #f8f9fa;
}

.btn-action-outline:disabled {
    background: #f1f3f5;
    color: #adb5bd;
    border-color: #f1f3f5;
    cursor: not-allowed;
}

/* Product Gallery & Lightbox */
.main-image-container {
    height: 450px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .main-image-container {
        height: 300px !important;
    }
}

.product-thumb-slider {
    padding: 10px 0;
}

.thumb-img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-thumb-slider .swiper-slide {
    width: auto;
    max-width: 120px;
    padding: 5px;
}

/* Lightbox */
#lightboxModal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#lightboxImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* === Swiper Gallery Modern Layout === */
.product-gallery-wrapper {
    display: flex;
    gap: 15px;
    align-items: stretch;
    aspect-ratio: 2.3;
    /* Flatter ratio */
    overflow: hidden;
}

/* Thumbs Slider (Left) */
.gallery-thumbs {
    width: 15%;
    /* Thumb column width */
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}

.gallery-thumbs .swiper-slide {
    width: 100%;
    height: auto;
    /* Let Swiper handle height based on slidesPerView */
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-box {
    width: 100%;
    aspect-ratio: 16/9;
    /* PC monitor ratio (Wide) */
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumbs .swiper-slide-thumb-active .thumb-box {
    border-color: var(--primary-red);
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Slider (Right) */
.gallery-top {
    width: 85%;
    height: 100%;
    /* aspect-ratio handled by parent */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.gallery-top .swiper-slide {
    width: 100%;
    height: 100%;
}

.main-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* Navigation Buttons */
.gallery-top .swiper-button-next,
.gallery-top .swiper-button-prev {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-top .swiper-button-next:after,
.gallery-top .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
    .product-gallery-wrapper {
        flex-direction: column;
        height: auto;
    }

    .gallery-top {
        width: 100%;
        height: 350px;
        /* Reduced height on mobile */
        order: 1;
        /* Main image first */
    }

    .gallery-thumbs {
        width: 100%;
        height: 80px;
        /* Horizontal strip height */
        order: 2;
        /* Thumbs second */
        margin-top: 10px;
    }

    .gallery-thumbs .swiper-slide {
        width: 20%;
        /* Show ~5 items */
        height: 100%;
    }

    .thumb-box {
        height: 100%;
        aspect-ratio: 1/1;
    }
}

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
    .product-gallery-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        aspect-ratio: auto;
        /* Allow flexible height on mobile */
        height: auto;
    }

    .gallery-top {
        width: 100%;
        order: 1;
        height: auto;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: 8px;
        overflow: hidden;
    }

    .main-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-thumbs {
        width: 100% !important;
        height: auto !important;
        order: 2;
        margin-top: 5px;
        box-sizing: border-box;
    }

    /* Force width to ensure multiple items per row */
    .gallery-thumbs .swiper-slide {
        width: 22% !important;
        /* Forces ~4 items visible */
        height: auto !important;
        opacity: 0.6;
        transition: opacity 0.3s;
        box-sizing: border-box;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
    }

    .thumb-box {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid #eaeaea;
        background: #fff;
    }

    .thumb-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Product Ribbon Styles */
.product-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
    z-index: 5;
}

.product-ribbon span {
    position: absolute;
    display: block;
    width: 100px;
    padding: 4px 0;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    right: -25px;
    top: 15px;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.product-ribbon .label-moi {
    background-color: #0dcaf0 !important;
}

.product-ribbon .label-hot {
    background-color: #dc3545 !important;
}

.product-ribbon .label-sale {
    background-color: #198754 !important;
}

.product-ribbon .label-noi-bat {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.product-ribbon .label-gia-re {
    background-color: #6c757d !important;
}

.product-ribbon .label-best-seller {
    background-color: #0d6efd !important;
}

/* Coupon System Premium Styles */
.coupon-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}

.coupon-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.coupon-input-field {
    width: 100%;
    padding: 15px 120px 15px 20px !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #334155 !important;
    border-radius: 12px !important;
}

.coupon-input-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.coupon-btn-submit {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    border: none !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.coupon-btn-submit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.coupon-btn-submit:active {
    transform: scale(0.98);
}

.coupon-btn-submit:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Search & Category Dropdown Styles */
.category-dropdown-v2 {
    position: absolute;
    top: 100%;
    left: -15px;
    width: 250px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
    display: none;
    border: 1px solid #f0f0f0;
    margin-top: 10px;
}

.cat-item-v2 {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-item-v2:hover {
    background: #f8f9fa;
    color: var(--primary-red);
}

.cat-item-v2.active {
    color: var(--primary-red);
    background: #fff5f5;
}

.search-suggest-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    border: 1px solid #f0f0f0;
    margin-top: 10px;
    overflow: hidden;
}

.suggest-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
    transition: 0.2s;
}

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

.suggest-item:hover {
    background: #fdfdfd;
}

.suggest-item img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.suggest-info {
    flex: 1;
}

.suggest-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggest-price {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
}

.suggest-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.suggest-no-result {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Global blue brand refresh: applies to all customer pages sharing layouts.app. */
:root { --brand-sky:#0ea5e9; --brand-blue:#2563eb; --brand-ink:#10233d; --brand-soft:#effaff; --brand-border:#cbeeff; }

/* Shared header: elevated navigation surface; existing routes, dropdowns, and JavaScript remain unchanged. */
.main-header { padding:12px 0; background:linear-gradient(135deg,#eefaff 0%,#f8fcff 52%,#eef6ff 100%); box-shadow:0 8px 30px rgba(15,56,91,.08); }
.main-header > .container { padding:14px 22px 12px; border:1px solid rgba(148,202,232,.35); border-radius:24px; background:rgba(255,255,255,.82); box-shadow:0 16px 38px rgba(15,56,91,.09),inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.header-top-flex { gap:24px; margin-bottom:11px; }
.brand-logo.brand-wordmark { display:inline-flex; align-items:center; color:#0284c7; font-size:22px; font-weight:800; letter-spacing:-.8px; white-space:nowrap; }
.header-search-bar { min-height:54px; max-width:820px; padding:5px 6px 5px 0; border:1px solid #d8ebf5; border-radius:17px; background:#f8fcff; box-shadow:inset 0 1px 2px rgba(15,56,91,.03); }
.category-btn { min-height:42px; padding:0 18px; border-color:#dbeaf2; color:#29435b; }
.search-input-wrapper input { padding:11px 16px; color:var(--brand-ink); font-size:15px; }
.search-input-wrapper input::placeholder { color:#8ca0b3; }
.search-btn { display:grid; width:46px; height:42px; place-items:center; padding:0; border-radius:13px; background:linear-gradient(135deg,var(--brand-sky),var(--brand-blue)); box-shadow:0 8px 16px rgba(37,99,235,.2); transition:transform .2s ease,box-shadow .2s ease; }
.search-btn:hover { transform:translateY(-1px); box-shadow:0 11px 20px rgba(37,99,235,.28); }
.btn-login-header { min-height:42px; padding:0 18px; border-radius:12px; background:linear-gradient(135deg,var(--brand-sky),var(--brand-blue)); box-shadow:0 8px 17px rgba(37,99,235,.18); }
.btn-login-header:hover { background:linear-gradient(135deg,#0284c7,#1d4ed8); }
.sub-nav { margin-top:0; }
.nav-menu { gap:7px; flex-wrap:wrap; }
.nav-menu > li > a { min-height:42px; padding:10px 14px; border:0; border-radius:11px; color:#405469; font-size:13px; letter-spacing:.01em; }
.nav-menu > li > a.active,.nav-menu > li > a:hover { border:0; color:#087fc1; background:#e9f8ff; box-shadow:inset 0 -2px 0 #0ea5e9; }
.nav-dropdown { top:calc(100% + 7px); border-color:#d8ebf5; border-radius:14px; box-shadow:0 16px 30px rgba(15,56,91,.14); }
.nav-dropdown li a:hover { color:#087fc1; background:#eefaff; }
.m-login-btn-header { background:#eefaff; border-color:#cbeeff; }
.user-header-pill:hover { border-color:var(--brand-sky); background:#f5fcff; box-shadow:0 5px 17px rgba(14,165,233,.14); }

/* Convert former red brand surfaces while preserving semantic danger/destructive controls. */
.auth-modern__intro { background:linear-gradient(145deg,#075985 0%,#0ea5e9 48%,#2563eb 100%); }
.auth-modern__eyebrow { color:#d8f6ff; }
.auth-modern__benefits i { color:#bff4ff; }
.auth-modern__input-wrap input:focus { box-shadow:0 0 0 4px rgba(14,165,233,.12); }
.auth-modern__submit { background:linear-gradient(100deg,var(--auth-red),#2563eb); box-shadow:0 10px 20px rgba(37,99,235,.2); }
.auth-modern__submit:hover { box-shadow:0 14px 25px rgba(37,99,235,.28); }
.user-brief-info { background:#effaff; border-bottom-color:#cbeeff; }
.account-menu ul li a.active,.account-menu ul li a:hover,.cat-item-v2.active { background:#effaff; }
.product-ribbon .label-hot { background-color:#0ea5e9 !important; }
@media (max-width:768px) { .main-header { padding:8px 0; } .main-header > .container { padding:0 15px; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; } }
