/* ============================================
   TBQ HOMIE - SaaS Professional Design System
   Font: Be Vietnam Pro (Vietnamese support)
   ============================================ */

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

:root {
    /* Colors */
    --primary: #000000;
    --secondary: #1d1d1f;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-bg: rgba(37, 99, 235, 0.08);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-page: #f7f9fc;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --error: #ef4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Mobile Design System – Golden Ratio (1 : 1.618), Base = 16px */
    --base: 16px;
    --h1: 26px;
    /* Base × 1.618 */
    --h2: 20px;
    /* Base × 1.25 */
    --h3: 18px;
    --body: 16px;
    --caption: 14px;
    /* Base × 0.875 */
    --btn-height: 48px;
    --btn-radius: 12px;
    --spacing: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-6: 24px;
    --spacing-8: 32px;
}

body {
    font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(300deg, #ffffff, #e0e7ff, #f3e8ff, #daf0ff, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 12s ease-in-out infinite;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation Links - Pill Shape */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    background: rgba(74, 86, 226, 0.08);
    color: var(--accent);
}

.nav-links a.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 86, 226, 0.3);
}

/* Search Container */
.search-container {
    position: relative;
    margin: 0 24px;
}

.search-input {
    width: 280px;
    padding: 10px 16px 10px 44px;
    border: 1.5px solid transparent;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    color: var(--text-primary);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: var(--accent);
    width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #64748b;
    pointer-events: none;
    opacity: 0.8;
}

/* Logo Enhancement */
.logo-text {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: var(--accent-bg);
}

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

.search-result-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* SEARCH RESULTS FIX */
.search-results {
    top: 100%;
    width: 100%;
    border-radius: 0 0 12px 12px;
}

.hero {
    margin-top: 100px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: var(--primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zalo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 980px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: all 0.25s ease;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.zalo-button:hover {
    transform: translateY(-2px);
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.18);
}

.cta-button:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 24px;
}

/* Đơn giản: chỉ tên + giá + nút */
.product-info-simple {
    padding: var(--space-4);
}

.product-info-simple .product-name {
    font-size: 18px;
    margin-bottom: var(--space-2);
}

.product-info-simple .product-price {
    font-size: var(--body);
    margin-bottom: var(--space-3);
}

.product-info-simple .buy-now-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.price-ctv {
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Delivery Type Badges */
.delivery-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.badge-instant {
    background: var(--success-bg, #dcfce7);
    color: var(--success, #166534);
    border: 1px solid var(--success-border, #86efac);
}

.badge-preorder {
    background: var(--warning-bg, #fef3c7);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Delivery Info Box on Product Detail - dễ đọc, tương phản rõ */
.delivery-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-4, 16px);
    font-size: 14px;
    line-height: 1.5;
}

.delivery-simple {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-line {
    display: block;
}

.delivery-line.instant {
    color: #15803d;
}

.delivery-line.preorder {
    color: #92400e;
}

.delivery-instant {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.delivery-preorder {
    background: #fefce8;
    border: 1.5px solid #fde047;
}

.delivery-mixed {
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
    border: 1.5px solid #86efac;
}

/* Pre-order Success Instructions */
.conf-preorder-instructions {
    text-align: center;
    padding: var(--space-6, 24px) var(--space-4, 16px);
    background: var(--bg-gray, #f5f5f7);
    border: 1px solid var(--border-light, #e5e5e7);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-5, 20px);
}

.conf-preorder-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    text-align: left;
    margin: var(--space-4, 16px) auto;
    max-width: 400px;
}

.conf-preorder-step {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    font-size: 15px;
}

.conf-preorder-icon {
    margin-bottom: 8px;
}

.conf-zalo-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px) var(--space-6, 24px);
    background: #0068FF;
    color: white;
    border-radius: var(--radius-lg, 12px);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-top: var(--space-4, 16px);
    transition: all 0.2s;
}

.conf-zalo-btn-lg:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Checkout delivery note */
.checkout-delivery-note {
    margin-top: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--warning-bg, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    color: #92400e;
}

/* Popular Badge (Blue Pill style) */
.popular-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #2563EB;
    /* Blue shade */
    color: white;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Updated Buy Button - Black Pill style */
.buy-now-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 4px;
}

.buy-now-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-details {
    display: inline-block;
    padding: 10px 24px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-details:hover {
    background: #333333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    border-radius: 18px;
    background: var(--bg-gray);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =============================================
   TESTIMONIALS – Modern Unified Design
   ============================================= */
.testimonials-section {
    margin-bottom: 0;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: -16px;
    margin-bottom: 32px;
}

/* --- Carousel --- */
.testi-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.testi-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 16px;
}

.testi-track::-webkit-scrollbar {
    display: none;
}

/* --- Review Card --- */
.testi-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.testi-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.testi-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.testi-service {
    font-size: 13px;
    color: var(--text-secondary);
}

.testi-rating {
    flex-shrink: 0;
}

.testi-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.testi-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    flex: 1;
}

.testi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.testi-date {
    font-size: 13px;
    color: var(--text-muted);
}

.testi-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 3px 10px;
    border-radius: 100px;
}

/* --- Carousel Dots --- */
.testi-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 12px;
}

.testi-dot {
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 10px;
    background-clip: content-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent);
    background-clip: content-box;
}

/* --- Proof Screenshots --- */
.testi-proof {
    margin-top: 0;
    margin-bottom: 24px;
}

.testi-proof-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.testi-proof-title svg {
    color: var(--success);
}

.testi-proof-scroll-wrap {
    position: relative;
}

.testi-proof-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg-page));
    pointer-events: none;
    z-index: 1;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.testi-proof-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    padding-right: 32px;
}

.testi-proof-scroll::-webkit-scrollbar {
    display: none;
}

.testi-proof-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    background: var(--bg-gray);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testi-proof-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testi-proof-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testi-proof-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.testi-proof-overlay svg {
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
}

.testi-proof-item:hover .testi-proof-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.testi-proof-item:hover .testi-proof-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* --- Lightbox --- */
.testi-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: lbFadeIn 0.25s ease;
}

.testi-lightbox.open {
    display: flex;
}

.testi-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    animation: lbZoomIn 0.3s ease;
}

.testi-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.testi-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lbZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Desktop: 3 cards visible --- */
@media (min-width: 1024px) {
    .testi-track {
        padding-left: 0;
        padding-right: 0;
    }

    .testi-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }

    .testi-proof-item {
        flex: 0 0 calc((100% - 64px) / 5);
    }
}

/* --- Tablet: 2 cards visible --- */
@media (min-width: 601px) and (max-width: 1023px) {
    .testi-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .testi-proof-item {
        flex: 0 0 150px;
    }
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .hero {
        margin-top: 64px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .slogan-main {
        font-size: 24px;
    }

    .slogan-sub {
        font-size: 18px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-button,
    .zalo-button {
        width: 100%;
        text-align: center;
    }

    .section-desc {
        font-size: 14px;
        margin-top: -12px;
        margin-bottom: 24px;
    }

    .testi-carousel {
        margin-bottom: 36px;
    }

    .testi-card {
        flex: 0 0 calc(100vw - 48px);
        padding: 20px;
    }

    .testi-track {
        padding-left: 0;
        gap: 16px;
    }

    .testi-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testi-name {
        font-size: 14px;
    }

    .testi-text {
        font-size: 14px;
    }

    .testi-proof-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .testi-proof-item {
        flex: 0 0 140px;
    }

    .testi-proof-scroll {
        gap: 12px;
    }

    .testi-lightbox img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: var(--radius-md);
    }
}

.cta-section {
    text-align: center;
    padding: 80px 24px;
    background: var(--primary);
    color: white;
    border-radius: 24px;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: white;
    color: var(--primary);
}

.cta-section .cta-button:hover {
    background: var(--bg-gray);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

footer {
    background: var(--bg-gray);
    padding: 24px 24px 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.footer-contact {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 6px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 11px;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(4px);
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--primary);
}

.cart-items {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

.remove-item {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ff3b30;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: 60px;
}

.page.active {
    display: block;
}

.products-container {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.filter-sidebar {
    width: 250px;
    background: var(--bg-gray);
    border-radius: 18px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    padding: 12px 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 14px;
}

.filter-list li:hover,
.filter-list li.active {
    color: var(--accent);
    font-weight: 500;
}

.products-content {
    flex: 1;
}

.product-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--bg-gray);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.product-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.variant-selector {
    margin-bottom: 32px;
}

.variant-label {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary, #1f2937);
    letter-spacing: -0.02em;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-option {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    padding-left: 22px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Visual left border indicator by delivery type */
.variant-option.variant-instant {
    border-left: 5px solid #22c55e;
}

.variant-option.variant-preorder {
    border-left: 5px solid #eab308;
}

.variant-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.variant-option.selected {
    border-color: var(--accent, #2563eb);
    border-width: 2px;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Custom Radio Circle */
.variant-select-circle {
    margin-right: 14px;
    display: flex;
    align-items: center;
    height: 24px;
    /* align with header text */
}

.variant-select-circle input {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.variant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.variant-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.variant-price-tag {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.variant-note {
    font-size: 14px;
    color: var(--text-secondary, #4b5563);
    font-weight: 500;
}

.variant-meta {
    margin-top: 4px;
}

.variant-duration-pill {
    display: inline-block;
    padding: 2px 10px;
    background: #F3F4F6;
    color: #4B5563;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #E5E7EB;
}

.variant-option.selected .variant-duration-pill {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}



.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.add-to-cart-btn:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
}

/* ====== Variant Meta Row - Redesigned for clarity ====== */
.variant-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* Duration: bold, instantly scannable */
.variant-duration-text {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    border: 1.5px solid transparent;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

/* Duration highlight by unit: YEAR / MONTH / DAY */
.variant-duration-text.duration-badge.duration-year {
    background: #ecfdf3;
    color: #065f46;
    border-color: #10b981;
}

.variant-duration-text.duration-badge.duration-month {
    background: #eef2ff;
    color: #3730a3;
    border-color: #6366f1;
}

.variant-duration-text.duration-badge.duration-day {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fb923c;
}

.variant-duration-text.duration-badge.duration-once,
.variant-duration-text.duration-badge.duration-other {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5f5;
}

/* Delivery badge - THE visual anchor, instantly recognizable */
.variant-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Giao liền = green */
.variant-delivery-badge.delivery-instant {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
}

/* Giao sau = muted amber */
.variant-delivery-badge.delivery-preorder {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fcd34d;
}

.variant-separator {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Price - bold and prominent */
.variant-price-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent, #2563eb);
    letter-spacing: -0.01em;
}

.variant-option .price-stack {
    margin-bottom: 0;
    align-items: flex-end;
}

.variant-option .price-ctv {
    font-size: 11px;
}

.product-tabs {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.tab-button {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabSlideIn 0.4s ease-out;
}

.tab-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tab-content p,
.tab-content ul {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tab-content ul {
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-form {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.order-summary {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* ── Discount Code ── */
.discount-section {
    padding: 14px 0;
    border-top: 1px dashed var(--border);
}

.discount-input-group {
    display: flex;
    gap: 8px;
}

.discount-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--bg-white);
}

.discount-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.discount-input-group input:read-only {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.discount-apply-btn {
    padding: 10px 18px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.discount-apply-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.discount-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-feedback {
    font-size: 13px;
    margin-top: 8px;
    min-height: 0;
}

.discount-feedback.success {
    color: #10b981;
}

.discount-feedback.error {
    color: #ef4444;
}

.summary-discount {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #10b981;
}

.summary-discount .discount-amount-display {
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 600;
    margin-top: 16px;
    border-top: 2px solid var(--border);
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
}

.place-order-btn:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

/* ============================================
   CONFIRMATION PAGE - SaaS Professional Design
   Stripe/Notion/Apple Support inspired
   ============================================ */

/* Hide header & footer on confirmation page */
.confirmation-page-standalone.active~footer,
body:has(.confirmation-page-standalone.active) header,
body:has(.confirmation-page-standalone.active) footer,
body:has(.confirmation-page-standalone.active) .contact-fab {
    display: none !important;
}

.confirmation-page-standalone {
    min-height: 100vh;
    padding-top: 0 !important;
    background: var(--bg-page);
    /* display state handled by .page and .active */
}

.confirmation-page-standalone.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.confirmation-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-6);
}

.confirmation-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

/* Pending Payment Header */
.conf-pending-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.conf-pending-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--accent);
}

.conf-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.3px;
}

.conf-order-code {
    font-size: 14px;
    color: var(--text-secondary);
}

.conf-order-code strong {
    color: var(--accent);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 500;
}

/* QR Code Card */
.conf-qr-card {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    text-align: center;
}

.conf-qr-wrapper {
    margin-bottom: var(--space-4);
}

.conf-qr-wrapper img {
    max-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.conf-amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.conf-amount-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conf-amount-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Status Indicator */
.conf-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--warning-bg);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.conf-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fcd34d;
    border-top-color: #d97706;
    border-radius: 50%;
    animation: conf-spin 1s linear infinite;
}

@keyframes conf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Bank Info Section */
.conf-bank-info {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-bank-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    text-align: center;
}

.conf-bank-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.conf-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.conf-bank-row:last-child {
    border-bottom: none;
}

.conf-bank-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.conf-bank-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.conf-bank-value-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.conf-mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.conf-highlight {
    color: var(--accent);
    font-weight: 600;
}

.conf-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

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

.conf-copy-btn:active {
    transform: scale(0.95);
}

/* Support Footer */
.conf-support-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
}

.conf-support-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.conf-support-link:hover {
    color: var(--accent-hover);
}

/* ============================================
   SUCCESS PAGE - After Payment Confirmed
   ============================================ */

.conf-success-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.conf-success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--success);
}

.conf-success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
}

.conf-success-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.conf-order-note {
    display: block;
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
}

/* Credentials Section */
.conf-credentials-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.conf-credentials-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.conf-credentials-title svg {
    color: var(--accent);
}

.conf-credential-item {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.conf-credential-item:last-of-type {
    margin-bottom: 0;
}

.conf-credential-field {
    margin-bottom: var(--space-3);
}

.conf-credential-field:last-child {
    margin-bottom: 0;
}

.conf-credential-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.conf-credential-value-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.conf-credential-value {
    flex: 1;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-white);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    word-break: break-all;
}

.conf-password-blur {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.2s ease;
}

.conf-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: white;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.conf-action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.conf-action-btn:active {
    transform: scale(0.95);
}

.conf-action-btn.secondary {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.conf-copy-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--space-4);
    transition: all 0.15s ease;
}

.conf-copy-all-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.conf-copy-all-btn:active {
    transform: scale(0.98);
}

/* ChatGPT Pro: Hướng dẫn đăng nhập workspace */
.conf-chatgpt-pro-login {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-chatgpt-pro-login-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.conf-chatgpt-pro-login-steps {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-4);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.conf-chatgpt-pro-login-steps li {
    margin-bottom: var(--space-1);
}

.conf-chatgpt-pro-login-warn {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

/* Next Steps Section */
.conf-steps-section {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.conf-steps-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: var(--space-3);
}

.conf-steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.conf-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 13px;
    color: #047857;
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.conf-steps-list li:last-child {
    margin-bottom: 0;
}

.conf-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #065f46;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Security Note */
.conf-security-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.conf-security-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Support Section */
.conf-support-section {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.conf-support-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.conf-support-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.conf-zalo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: #0068ff;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.conf-zalo-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

.conf-hotline {
    display: block;
    margin-top: var(--space-3);
    font-size: 12px;
    color: var(--text-muted);
}

/* Back Home Link */
.conf-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-3);
    transition: color 0.15s;
}

.conf-back-home:hover {
    color: var(--accent-hover);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .confirmation-wrapper {
        padding: var(--spacing-4);
    }

    .confirmation-card {
        padding: var(--spacing-6);
        border-radius: var(--radius-lg);
    }

    .conf-title {
        font-size: var(--h2);
    }

    .conf-success-title {
        font-size: var(--h1);
    }

    .conf-amount-value {
        font-size: var(--h2);
    }

    .conf-qr-wrapper img {
        max-width: 180px;
    }

    .conf-bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }

    .conf-bank-value-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .conf-credential-value-wrap {
        flex-wrap: wrap;
    }

    .conf-credential-value {
        width: 100%;
        margin-bottom: var(--spacing-2);
    }

    .conf-action-btn {
        width: 32px;
        height: 32px;
    }
}

/* Legacy styles kept for compatibility */
.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 24px;
}

.confirmation-container h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-code {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.order-code strong {
    color: var(--accent);
}

.payment-info {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 18px;
    text-align: left;
    margin-bottom: 32px;
}

.payment-info h3,
.payment-info .payment-info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.payment-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.qr-code-wrapper {
    text-align: center;
    margin: 20px 0;
}

.payment-manual-section {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.payment-manual-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.payment-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row-highlight {
    background: var(--accent-bg);
}

.payment-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
}

.payment-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.payment-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-value-amount,
.payment-value-content {
    color: var(--accent);
    font-size: 17px;
}

.payment-value-mono {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

.payment-value-bank {
    font-weight: 600;
}

.copy-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.copy-btn-primary:hover {
    background: #0052a3;
}

.copy-btn-primary:active {
    transform: scale(0.98);
}

.copy-btn-primary .copy-icon {
    font-size: 14px;
}

.payment-note-box {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 14px;
}

.payment-note-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.payment-note-content {
    flex: 1;
}

.payment-note-title {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.payment-note-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.payment-note-list li {
    margin-bottom: 6px;
}

.payment-note-list li:last-child {
    margin-bottom: 0;
}

.payment-note-list strong {
    color: var(--accent);
}

.back-home {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-home:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

/* =============================================
   GLOBAL ANIMATION KEYFRAMES
   ============================================= */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

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

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

/* Scale + fade in (for cards) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(24px);
    }

    60% {
        transform: scale(1.03) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Force QR Card to appear at top if wrapped */
.conf-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    order: -1;
    /* Ensure it is at the top */
    width: 100%;
}

/* Floating orb drift */
@keyframes floatOrb1 {

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

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes floatOrb2 {

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

    40% {
        transform: translate(-50px, 30px) scale(1.1);
    }

    70% {
        transform: translate(30px, -40px) scale(0.92);
    }
}

@keyframes floatOrb3 {

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

    50% {
        transform: translate(25px, 45px) scale(1.05);
    }
}

/* Slow spin (decorative ring) */
@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse glow (CTA button) */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.45);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(0, 102, 204, 0);
    }
}

/* Cart badge bounce */
@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.6);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Ripple on button press */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success checkmark draw */
@keyframes checkDraw {
    0% {
        stroke-dashoffset: 80;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes successCircle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti fall */
@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* number counter tick */
@keyframes countUp {
    0% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =============================================
   SCROLL-REVEAL BASE  (JS toggles .visible)
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1),
        transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children delay helpers  ─ up to 6 kids */
.stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger>*:nth-child(2) {
    transition-delay: 0.08s;
}

.stagger>*:nth-child(3) {
    transition-delay: 0.16s;
}

.stagger>*:nth-child(4) {
    transition-delay: 0.24s;
}

.stagger>*:nth-child(5) {
    transition-delay: 0.32s;
}

.stagger>*:nth-child(6) {
    transition-delay: 0.40s;
}

/* Each child also needs reveal */
.stagger>* {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s cubic-bezier(.22, 1, .36, 1),
        transform 0.65s cubic-bezier(.22, 1, .36, 1);
}

.stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   FLOATING BACKGROUND ORBS
   ============================================= */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.orb--1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
    top: -80px;
    left: -100px;
    animation: floatOrb1 14s ease-in-out infinite;
}

.orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
    bottom: -60px;
    right: -80px;
    animation: floatOrb2 18s ease-in-out infinite;
}

.orb--3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation: floatOrb3 12s ease-in-out infinite;
}

/* Orb container wrapper – attach to hero & CTA */
.orb-wrap {
    position: relative;
    overflow: hidden;
}

/* =============================================
   HERO section enhancements
   ============================================= */
.hero {
    position: relative;
    /* orbs need this */
}

.hero>.orb {
    /* orbs inside hero stay behind text */
    z-index: 0;
}

.hero h1,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}

/* CTA button persistent pulse */
.cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s backwards, pulseGlow 2.8s ease-in-out 1.6s infinite;
}

/* =============================================
   PRODUCT CARD hover lift is already there,
   add a subtle image zoom
   ============================================= */
.product-card:hover .product-image img {
    transform: scale(1.06);
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

.product-image img {
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

/* =============================================
   FEATURE CARD icon float on hover
   ============================================= */
.feature-card:hover .feature-icon {
    animation: floatIcon 0.6s ease-out;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* (old testimonial-card styles removed – see new .testi-* classes) */

/* =============================================
   CTA SECTION  – orb container
   ============================================= */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section .orb--1 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    width: 300px;
    height: 300px;
    top: -60px;
    right: 10%;
}

.cta-section .orb--2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 5%;
}

.cta-section h2,
.cta-section p,
.cta-section .cta-button {
    position: relative;
    z-index: 1;
}

/* =============================================
   CART badge bounce  (JS adds .bounce)
   ============================================= */
.cart-count.bounce {
    animation: cartBounce 0.45s cubic-bezier(.22, 1, .36, 1);
}

/* =============================================
   RIPPLE button effect  (JS injects .ripple span)
   ============================================= */
.cta-button,
.add-to-cart-btn,
.checkout-btn,
.place-order-btn,
.view-details {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.5s linear;
    pointer-events: none;
}

/* =============================================
   SUCCESS PAGE  – animated check + confetti
   ============================================= */
.success-icon {
    animation: successCircle 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

/* confetti pieces (created by JS) */
.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    z-index: 9990;
    pointer-events: none;
    animation: confettiFall 2.6s linear forwards;
}

/* =============================================
   PAGE TRANSITION  (JS toggles .page-exit / .page-enter)
   ============================================= */
.page.page-exit {
    animation: pageOut 0.28s ease-in forwards;
}

.page.page-enter {
    animation: pageIn 0.38s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes pageOut {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }

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

/* =============================================
   VARIANT option selected wiggle
   ============================================= */
.variant-option.just-selected {
    animation: variantPick 0.35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes variantPick {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}

/* =============================================
   FILTER LIST active pill slide-in
   ============================================= */
.filter-list li {
    transition: color 0.3s, background 0.25s, transform 0.25s;
}

.filter-list li.active {
    transform: scale(1.05);
}

/* =============================================
   SEARCH RESULTS dropdown fade
   ============================================= */
.search-results.active {
    animation: popIn 0.28s cubic-bezier(.22, 1, .36, 1) both;
}

/* =============================================
   CART SIDEBAR slide with spring feel
   ============================================= */
.cart-sidebar {
    transition: right 0.38s cubic-bezier(.22, 1, .36, 1);
}

/* Cart overlay fade */
.cart-overlay {
    transition: opacity 0.3s;
    opacity: 0;
}

.cart-overlay.active {
    opacity: 1;
}

/* =============================================
   CART ITEM entrance (JS adds class)
   ============================================= */
.cart-item.item-enter {
    animation: slideInRight 0.3s cubic-bezier(.22, 1, .36, 1) both;
}

/* =============================================
   CHECKOUT form fields slide-up stagger
   (applied on page show via JS)
   ============================================= */
.form-group {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(.22, 1, .36, 1),
        transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.checkout-form.animated .form-group {
    opacity: 1;
    transform: translateY(0);
}

.checkout-form.animated .form-group:nth-child(1) {
    transition-delay: 0.06s;
}

.checkout-form.animated .form-group:nth-child(2) {
    transition-delay: 0.14s;
}

.checkout-form.animated .form-group:nth-child(3) {
    transition-delay: 0.22s;
}

.checkout-form.animated .form-group:nth-child(4) {
    transition-delay: 0.30s;
}

.checkout-form.animated .form-group:nth-child(5) {
    transition-delay: 0.38s;
}

/* =============================================
   SECTION TITLES  – underline draw
   ============================================= */
.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(.22, 1, .36, 1) 0.2s;
}

.reveal.visible .section-title::after,
section .section-title::after {
    width: 60px;
}

@media (max-width: 768px) {

    /* —— Mobile Design System: spacing 4–8–12–16–24–32 only —— */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3);
        align-items: stretch;
        padding-bottom: var(--spacing-8);
    }

    .product-card {
        padding: 0;
        border-radius: var(--btn-radius);
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .product-image {
        flex: 0 0 auto;
        aspect-ratio: 1;
        width: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-3);
        background: var(--bg-gray);
    }

    .product-image img {
        max-width: 88%;
        max-height: 88%;
        object-fit: contain;
    }

    .product-image span {
        font-size: 2.5rem;
    }

    .product-info {
        flex: 1 1 auto;
        min-height: 0;
        padding: var(--spacing-4);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-2);
    }

    .product-name {
        font-size: var(--h3);
    }

    /* Variant Options 2 Columns Grid - Compact Mobile */
    .variant-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        /* Reduced gap */
    }

    .variant-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        /* Reduced padding */
        height: 100%;
        gap: 4px;
        /* Tighter spacing */
        min-height: 140px;
        /* Consistent height */
    }

    /* Hide the radio circle on mobile to save space - Border highlight is enough */
    .variant-select-circle {
        display: none;
    }

    /* Smaller text for mobile */
    .variant-name {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 2px;
        min-height: 34px;
        /* Ensure 2 lines alignment */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .variant-price-text {
        font-size: 13px !important;
        margin-bottom: 4px;
        font-weight: 600;
    }

    /* Compact Badges */
    .variant-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: auto;
        /* Push to bottom */
    }

    .variant-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        height: auto !important;
    }

    .variant-info {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .variant-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
    }

    .variant-separator {
        display: none;
    }

    .variant-price-text {
        font-size: var(--body);
    }

    .product-name {
        margin-bottom: 0;
        line-height: 1.35;
        font-size: var(--h3);
    }

    .product-rating {
        margin-bottom: var(--spacing-2);
        flex-wrap: wrap;
    }

    .product-rating .review-count {
        display: none;
    }

    .product-price {
        font-size: var(--body);
        margin-bottom: var(--spacing-2);
    }

    .hot-deal-badge {
        font-size: var(--caption);
        padding: var(--spacing) var(--spacing-3);
    }

    .buy-now-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        width: 100%;
        text-align: center;
        border-radius: var(--btn-radius);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-2);
    }

    .product-info-simple {
        padding: var(--spacing-4);
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-info-simple .product-name {
        font-size: var(--h3);
        margin-bottom: var(--spacing-2);
    }

    .product-info-simple .product-price {
        font-size: var(--body);
        margin-bottom: var(--spacing-2);
    }

    .product-info-simple .buy-now-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        width: 100%;
        border-radius: var(--btn-radius);
        margin-top: auto;
    }

    .hero h1 {
        font-size: var(--h1);
        margin-bottom: var(--spacing-6);
    }

    .hero p {
        font-size: var(--h3);
        margin-bottom: var(--spacing-8);
    }

    .products-container {
        flex-direction: column;
        gap: var(--spacing-6);
        margin-top: var(--spacing-4);
        padding-bottom: var(--spacing-8);
    }

    .filter-sidebar {
        width: 100%;
        position: sticky;
        top: 60px;
        z-index: 90;
        overflow-x: auto;
        white-space: nowrap;
        padding: var(--spacing-3) var(--spacing-4);
        margin-bottom: 0;
        background: var(--bg-page);
        -ms-overflow-style: none;
        scrollbar-width: none;
        transition: top 0.3s ease;
    }

    header.header-hidden~main .filter-sidebar,
    header.header-hidden~.page .filter-sidebar,
    body:has(header.header-hidden) .filter-sidebar {
        top: 0;
    }

    .filter-sidebar::-webkit-scrollbar {
        display: none;
    }

    .filter-title {
        display: none;
    }

    .filter-list {
        display: flex;
        gap: var(--spacing-3);
        padding: 0;
    }

    .filter-list li {
        padding: var(--spacing-2) var(--spacing-6);
        background: white;
        border-radius: var(--btn-radius);
        border: 1px solid transparent;
        white-space: nowrap;
        font-size: var(--caption);
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.2s;
    }

    .filter-list li.active {
        background: #000000;
        color: white;
        border-color: #000000;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .products-content {
        width: 100%;
        display: block !important;
    }

    .products-content .section-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-4);
        text-align: left;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-3);
    }

    .product-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        height: 100%;
        border-radius: var(--btn-radius);
        background: white;
    }

    .product-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: var(--spacing-4) var(--spacing-4);
        gap: var(--spacing-2);
    }

    .product-name {
        margin-bottom: 0;
        font-size: var(--h3);
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        margin-top: auto;
        margin-bottom: var(--spacing-2);
        font-size: var(--body);
    }

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: var(--spacing-8);
    }

    .product-gallery {
        position: static;
        width: 100%;
        order: 1;
        flex-shrink: 0;
        margin-bottom: var(--spacing-4);
    }

    .main-image {
        height: 220px;
        min-height: 180px;
        padding: var(--spacing-4);
        margin-bottom: 0;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: var(--btn-radius);
        background: var(--bg-gray);
    }

    .main-image img {
        object-fit: contain;
    }

    .product-details {
        width: 100%;
        order: 2;
        display: block !important;
        padding-top: 0;
    }

    .product-details h1 {
        font-size: var(--h1);
        margin-bottom: var(--spacing-3);
        margin-top: 0;
        line-height: 1.3;
    }

    .variant-selector,
    .add-to-cart-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .product-tabs {
        display: block !important;
        padding-top: var(--spacing-6);
    }

    .tab-buttons {
        gap: var(--spacing-3);
        overflow-x: auto;
        padding-bottom: var(--spacing-2);
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-bottom: var(--spacing-4);
    }

    .tab-button {
        white-space: nowrap;
        font-size: var(--caption);
        flex-shrink: 0;
    }

    /* Cart & Checkout */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cart-footer {
        padding-bottom: calc(24px + 70px);
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .search-container {
        margin: 0 var(--spacing-3);
        flex: 1;
    }

    .search-input {
        width: 100%;
        padding: var(--spacing-2) var(--spacing-4);
        padding-left: 40px;
        font-size: var(--body);
    }

    .search-input:focus {
        width: 100%;
    }

    nav {
        padding: var(--spacing-3) var(--spacing-4);
        gap: var(--spacing-2);
    }

    .logo {
        font-size: var(--h3);
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-3);
    }

    .footer-contact {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-contact a {
        display: inline;
        margin: 0 4px;
    }

    /* Section spacing – Base × 2 */
    section {
        margin: var(--spacing-8) auto;
        padding: 0 var(--spacing-4);
    }

    .section-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-6);
    }

    .cta-button {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .view-details {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .checkout-btn,
    .place-order-btn,
    .add-to-cart-btn {
        min-height: var(--btn-height);
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--body);
        border-radius: var(--btn-radius);
    }

    .hero {
        margin-top: 80px;
        padding: calc(2 * var(--spacing-6)) var(--spacing-4);
    }

    .cta-section {
        padding: var(--spacing-8) var(--spacing-4);
    }

    .cta-section h2 {
        font-size: var(--h2);
        margin-bottom: var(--spacing-4);
    }

    .cta-section p {
        font-size: var(--body);
        margin-bottom: var(--spacing-8);
    }

    .feature-card {
        padding: var(--spacing-6);
        border-radius: var(--btn-radius);
    }

    .feature-title {
        font-size: var(--h2);
        margin-bottom: var(--spacing-2);
    }

    .feature-desc {
        font-size: var(--caption);
    }

    /* (old testimonial mobile overrides removed – see .testi-* responsive rules) */

    .confirmation-container {
        margin: var(--spacing-8) auto;
        padding: 0 var(--spacing-4);
    }

    .confirmation-container h1 {
        font-size: var(--h2);
    }

    .payment-info {
        padding: var(--spacing-4);
    }

    .payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }

    .payment-value-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .copy-btn-primary {
        flex-shrink: 0;
    }

    footer {
        padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
    }

    .footer-links {
        margin-bottom: var(--spacing-3);
    }

    .footer-contact {
        margin-bottom: var(--spacing-3);
    }

    .cart-header {
        padding: var(--spacing-4);
    }

    .cart-header h2 {
        font-size: var(--h2);
    }

    .cart-items {
        padding: var(--spacing-4);
    }

    .cart-footer {
        padding: var(--spacing-4);
    }

    .cart-total {
        font-size: var(--h3);
        margin-bottom: var(--spacing-4);
    }

    .form-group label {
        font-size: var(--caption);
    }

    .form-group input,
    .form-group textarea {
        padding: var(--spacing-3);
        font-size: var(--body);
    }

    .form-section h3 {
        font-size: var(--h3);
        margin-bottom: var(--spacing-4);
    }
}

/* V2 UI ELEMENTS */

/* TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 18px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 340px;
    animation: toastSlideIn 0.38s cubic-bezier(.22, 1, .36, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* progress bar đếm ngược ở đáy toast */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 3s linear forwards;
}

.toast.success::after {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.toast.error::after {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.toast.info::after {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* icon circle */
.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* INPUT VALIDATION */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff3b30;
    background: #fff5f5;
}

.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s;
}

/* COPY BUTTON */
.copy-btn {
    background: var(--bg-gray);
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* INVOICE ICON */
.invoice-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 8px;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* FLOATING CONTACT - Zalo icon FAB */
@keyframes fabSlideIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(0, 104, 255, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(0, 104, 255, 0.55);
    }
}

.contact-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #0068FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    animation: fabSlideIn 0.5s ease-out 1s backwards, fabPulse 3s ease-in-out 2s infinite;
}

.contact-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 104, 255, 0.5);
}

.contact-fab svg {
    width: 42px;
    height: 42px;
}

@media (max-width: 768px) {
    .contact-fab {
        width: 52px;
        height: 52px;
        bottom: 76px;
        right: 16px;
        border-radius: 14px;
    }

    .contact-fab svg {
        width: 38px;
        height: 38px;
    }
}

/* LOGO UPDATE V3 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* HERO SLOGAN UPDATE */
.hero h1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.slogan-main {
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

.slogan-sub {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .slogan-main {
        font-size: 28px;
    }

    .slogan-sub {
        font-size: var(--h2);
    }

    .hero h1 {
        gap: var(--spacing-3);
        margin-bottom: var(--spacing-6);
    }

    .hero .cta-button {
        min-height: 52px;
        padding: var(--spacing-4) var(--spacing-8);
        font-size: var(--h3);
    }

    .logo-img {
        height: 32px;
        width: 32px;
    }

    .logo-text {
        font-size: 17px;
    }
}

/* MOBILE FIX FOR PRODUCT GALLERY */
@media (max-width: 768px) {
    .product-gallery {
        position: static;
        /* Disable sticky on mobile */
        margin-bottom: 24px;
        z-index: 1;
        /* Reset stack context */
    }

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .main-image {
        height: 300px;
        /* Reduce height on mobile */
    }
}

/* Legacy success page styles removed - using new conf-* classes */

/* ============================================
   ORDER LOOKUP PAGE — Premium Redesign
   ============================================ */

/* ── Hero ── */
.lookup-hero {
    position: relative;
    padding: 140px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.lookup-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #c7d2fe 60%, #ddd6fe 100%);
    z-index: 0;
}

.lookup-hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: lookupFloat 8s ease-in-out infinite;
}

.lookup-hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: lookupFloat 10s ease-in-out infinite reverse;
}

@keyframes lookupFloat {

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

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.lookup-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.lookup-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 20px;
}

.lookup-hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.lookup-gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lookup-hero-desc {
    font-size: 16px;
    color: #6b7280;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ── Search Box ── */
.lookup-search-box {
    max-width: 540px;
    margin: 0 auto 28px;
}

.lookup-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.lookup-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 8px 32px rgba(99, 102, 241, 0.12);
}

.lookup-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px 6px;
    transition: all 0.2s ease;
}

.lookup-input-wrap:focus-within {
    border-color: #a5b4fc;
    background: white;
}

.lookup-search-svg {
    flex-shrink: 0;
    margin: 0 12px;
    color: #9ca3af;
    transition: color 0.3s;
}

.lookup-input-wrap:focus-within .lookup-search-svg {
    color: #6366f1;
}

.lookup-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    padding: 14px 4px;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.lookup-input::placeholder {
    color: #9ca3af;
}

.lookup-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.lookup-submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.lookup-submit-btn:active {
    transform: translateY(0);
}

.lookup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lookup-btn-arrow {
    transition: transform 0.2s;
}

.lookup-submit-btn:hover .lookup-btn-arrow {
    transform: translateX(3px);
}

/* ── Trust Badges ── */
.lookup-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lookup-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.lookup-trust-item svg {
    color: #6366f1;
}

/* ── Results Section ── */
.lookup-results-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ── Guide ── */
.lookup-guide {
    padding: 32px 0;
}

.lookup-guide-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.lookup-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.lookup-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.2s;
}

.lookup-step:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.lookup-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
}

.lookup-step-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lookup-step-info p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.lookup-guide-cta {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.lookup-guide-cta p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.lookup-zalo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0068ff;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.lookup-zalo-btn:hover {
    background: #0055d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

/* ── Loading State ── */
.lookup-loading {
    text-align: center;
    padding: 48px 24px;
}

.lookup-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: lookupSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.lookup-loading p {
    color: #6b7280;
    font-size: 14px;
}

/* ── Empty / Error State ── */
.lookup-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.lookup-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.lookup-empty p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 4px;
}

.lookup-hint {
    font-size: 13px !important;
    color: #9ca3af !important;
}

.lookup-hint a {
    color: #6366f1;
    font-weight: 500;
}

/* ── Result Count ── */
.lookup-count {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* ── Order Cards ── */
.lookup-order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lookup-order-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

.lookup-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lookup-order-code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.lookup-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.lookup-badge.status-fulfilled {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.lookup-badge.status-pending_payment {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.lookup-badge.status-paid {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #a5b4fc;
}

.lookup-badge.status-failed,
.lookup-badge.status-refunded {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.lookup-order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.lookup-total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.lookup-discount {
    font-size: 12px;
    color: #059669;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    display: inline-block;
}

/* Items list */
.lookup-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lookup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
}

.lookup-item-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.lookup-item-info {
    color: #6b7280;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

/* ── Action Buttons ── */
.lookup-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.lookup-delivery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.lookup-delivery-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.lookup-pending-note {
    font-size: 13px;
    color: #d97706;
    font-weight: 500;
}

.lookup-paid-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 500;
}

/* ── Inline Credentials ── */
.lookup-credentials {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.lookup-credentials-title {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lookup-cred-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.lookup-cred-card:last-child {
    margin-bottom: 0;
}

.lookup-cred-field {
    margin-bottom: 8px;
}

.lookup-cred-field:last-child {
    margin-bottom: 0;
}

.lookup-cred-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.lookup-cred-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 13px;
    word-break: break-all;
    gap: 8px;
}

.lookup-cred-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.lookup-cred-text.blurred {
    filter: blur(6px);
    user-select: none;
}

.lookup-cred-copy {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.lookup-cred-copy:hover {
    background: #4f46e5;
    color: white;
}

.lookup-cred-reveal {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.lookup-cred-reveal:hover {
    background: #059669;
    color: white;
}

.lookup-email-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.5;
}

.lookup-email-hint a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .lookup-hero {
        padding: 110px 16px 40px;
    }

    .lookup-hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .lookup-hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .lookup-input-group {
        padding: 10px;
        gap: 8px;
    }

    .lookup-input-wrap {
        padding: 2px 6px;
    }

    .lookup-input {
        padding: 12px 4px;
        font-size: 14px;
    }

    .lookup-submit-btn {
        padding: 14px;
        border-radius: 12px;
    }

    .lookup-trust {
        gap: 12px;
    }

    .lookup-trust-item {
        font-size: 12px;
    }

    .lookup-results-section {
        padding: 0 16px 100px;
    }

    .lookup-order-card {
        padding: 18px;
        border-radius: 16px;
    }

    .lookup-order-code {
        font-size: 14px;
    }

    .lookup-order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .lookup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .lookup-step {
        padding: 16px;
    }

    .lookup-hero-bg::before,
    .lookup-hero-bg::after {
        width: 250px;
        height: 250px;
    }

    .lookup-cred-value {
        flex-wrap: wrap;
    }
}

/* ── Mobile Bottom Navigation ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

.mobile-nav-item.active {
    color: #4f46e5;
}

.mobile-nav-item.active svg {
    stroke-width: 2.2;
}

.mobile-nav-item span {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.mobile-nav-zalo {
    color: #0068FF !important;
}

.mobile-nav-zalo svg {
    stroke: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* Extra bottom padding on all pages to prevent content behind nav */
    .page {
        padding-bottom: 80px;
    }

    /* Hide desktop nav links on mobile - will show bottom nav instead */
    .nav-links {
        display: none !important;
    }
}
