/* ===== VARIABLES & RESET ===== */

/* ===== VARIABLES & RESET ===== */
:root {
    --gold: #d4a853;
    --gold-hover: #c49a47;
    --gold-light: rgba(212, 168, 83, 0.08);
    --gold-glow: rgba(212, 168, 83, 0.25);
    --bg: #000000;
    --bg-card: #09090c;
    --border: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --radius: 16px;
    --glass: rgba(0, 0, 0, 0.75);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2,
h3,
h4 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 25px; /* Tăng khoảng cách 25% */
}

.section-tag {
    display: block;
    text-align: center;
    background: var(--gold-light);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    margin-bottom: 30px; /* Tăng khoảng cách 25% */
    font-weight: 500;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.text-gold {
    color: var(--gold);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
}

.btn-gold {
    background: var(--gold);
    color: #0a0a0f;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold-light);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 160px 0;
    position: relative;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding 0.4s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 0;
    transition: all 0.4s ease;
}

header.scrolled .header-inner {
    max-width: 1080px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 10px 32px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: 'Michroma', 'Orbitron', 'Inter', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: none !important; /* Đảm bảo không ép in hoa do CSS */
}

/* HAMBURGER */
.menu-toggle {
    display: none; /* Desktop: ẩn */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    padding: 4px;
    position: relative;
    z-index: 1001; /* Fix for mobile menu overlay bug */
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV DESKTOP */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--gold);
}

/* Header scrolled: thu gọn nav không xuống dòng */
header.scrolled .nav-wrapper {
    gap: 20px;
}

header.scrolled nav {
    gap: 18px;
}

header.scrolled nav a {
    font-size: 0.8em;
    white-space: nowrap;
}

header.scrolled .header-action-btn {
    font-size: 0.75em;
    padding: 8px 16px;
    white-space: nowrap;
}

header.scrolled .btn-outline {
    white-space: nowrap;
}

header.scrolled .logo {
    font-size: 1.4em;
}

/* ===== SHARED SUB-PAGE COMPONENTS ===== */

/* Body cho trang phụ — không dùng !important trong từng file nữa */
body {
    background-color: #000000;
}

/* Quick nav bar — dùng chung cho trang Kỹ thuật + Hoàn tiền */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 35px;
    margin-bottom: 40px;
}

/* Nút trong quick nav */
.quick-nav-btn {
    background: rgba(212, 168, 83, 0.15);
    border: 2px solid var(--gold);
    border-radius: 99px;
    font-weight: 700;
    padding: 12px 28px;
    font-size: 1em;
    color: #ffffff !important;        /* Force trắng trên mọi trình duyệt */
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.2);
    text-decoration: none !important; /* Tắt underline & link màu xanh mặc định */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;              /* Không xuống dòng */
    -webkit-tap-highlight-color: transparent; /* Bỏ flash xanh trên iOS/Android */
}

.quick-nav-btn:hover {
    background: rgba(212, 168, 83, 0.28);
    box-shadow: 0 6px 22px rgba(212, 168, 83, 0.35);
    transform: translateY(-2px);
}

.quick-nav-btn i {
    color: var(--gold);
}

/* Variant cảnh báo (nút 3 trang Kỹ thuật) */
.quick-nav-btn.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.quick-nav-btn.warning i {
    color: #f59e0b;
}

@media (max-width: 600px) {
    .quick-nav-btn {
        padding: 10px 18px;
        font-size: 0.88em;
        white-space: nowrap;
    }
}

/* ===== TRA CỨU ĐƠN HÀNG: Board header mobile ===== */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap; /* Cho phép badge xuống dòng khi cần */
}

.board-header .status-badge {
    white-space: nowrap;    /* Giữ badge 1 dòng */
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 99px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    align-self: flex-start;
}

/* ===== HERO V2 ===== */
.hero-v2 {
    position: relative;
    padding: 160px 0 100px;
    background-color: #000;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2; /* CRITICAL: Ensure text breaks out above the black shadow gradient */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: center;
    width: 100%;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    position: relative;
    z-index: 10; /* Khóa chết nội dung luôn nằm trên mọi lớp ảnh tràn sang */
}

/* Image Column */
.hero-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.h-stair-img {
    width: 130%; /* Lớn hơn một xíu để lấp đầy không gian mà không vỡ */
    max-width: none;
    transform: translateX(-5%); /* Đẩy ảnh sát lại gần phần Text bên trái thêm khoảng 100px */
    height: auto;
    object-fit: contain;
    /* Soften the 4 edges of the image smoothly to blend into black background */
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
}

.hero-v2 h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(2.5em, 5vw, 4em);
    font-weight: 600; /* Nhẹ hơn một chút để đỡ thô */
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 95%;
}

.hero-usps {
    list-style: none;
    padding: 0;
    margin-bottom: 45px;
}

.hero-usps li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.05em;
    color: var(--text);
    font-weight: 500;
}

.hero-usps svg {
    color: var(--text-muted);
}

.hero-btns-v2 {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.hero-btns-v2 .btn {
    padding: 16px 28px;
    font-size: 0.9em;
    white-space: nowrap;
}

.hero-btns-v2 .btn-outline:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: transparent;
}

.hero-trust {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 500;
}

/* Removed Hero Card Stack section as it was replaced by background image */

/* ===== SECTION 2: ZIGZAG ===== */
.zigzag-section {
    overflow: hidden;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

/*
 * ZIGZAG SO LE - GIẢI PHÁP DỨT ĐIỆM:
 * Tất cả rows đều có DOM order: [Media, Content]
 * Row thường: Media trái, Content phải (default flex row)
 * Row so le (.row-reverse): dùng order:-1 để đẩy Content sang TRÁI
 */
.zigzag-row.row-reverse .zigzag-content {
    order: -1;
    /* Content xuất hiện trước Media trong trục ngang = bên TRÁI */
}

.zigzag-media {
    flex: 1;
    position: relative;
    padding: 14px; /* Khung viền kính bên ngoài */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; /* Bo cong nhiều ở khung ngoài */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Clean up any vignette residuals */
.zigzag-media::after {
    display: none;
}

.zigzag-media video,
.zigzag-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* Bo góc mềm mại bên trong */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Dùng clip-path để xén chính xác 1% lề video (xóa sạch lỗi viền trắng/đen của video gốc) mà không bị tràn */
    clip-path: inset(1% round 12px);
    -webkit-clip-path: inset(1% round 12px);
}

.zigzag-content {
    flex: 1;
    position: relative;
    z-index: 10; /* Kéo Text lên trên cùng để không bị Bóng đổ của Video đè lên gây lấm lem chữ */
}

.zigzag-content h3 {
    font-size: 1.9em;
    color: var(--gold);
    margin-bottom: 20px;
}

.zigzag-content p {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.zigzag-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 60px 0;
    opacity: 0.4;
}

.zigzag-list {
    list-style: none;
    padding-left: 0;
}

.zigzag-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.05em;
}

.zigzag-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--gold);
    font-weight: bold;
}

/* ===== SECTION 3: FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    border-color: rgba(212, 168, 83, 0.5);
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(212, 168, 83, 0.15);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-highlight {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== SECTION 4: GALLERY ===== */
.cases-section {
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cases-content {
    position: relative;
    z-index: 1;
}

/* ===== GALLERY TABS ===== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Tránh bể trên điện thoại quá nhỏ */
}

.gallery-tab {
    background: transparent;
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.gallery-tab.active {
    background: var(--gold);
    color: #0a0a0f;
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.swipers-master-container {
    position: relative;
    width: 100%;
}

.hidden-swiper {
    position: absolute !important;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

.active-swiper {
    position: relative !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* ===== SWIPER GALLERY (3D STACK) ===== */
.gallery-swiper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 50px;
}

.gallery-item {
    background: #000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* very faint border so stack lines are visible */
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Lift the cards off each other */
    margin: 0 auto; /* Đảm bảo thẻ nằm ở tâm Swiper */
    
    /* Mặc định trên Mobile */
    aspect-ratio: 3/4;
    max-width: 400px;
}

@media (min-width: 901px) {
    .gallery-item {
        /* Bung Toàn Màn Hình trên Máy Tính */
        aspect-ratio: 16/9;
        max-width: 100%;
        width: 100%;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 0;
}

/* Make sure the Swiper controls look good */
.swiper-button-next, .swiper-button-prev {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5); /* Nền mờ nhẹ để nổi bật nút trên ảnh sáng */
    border-radius: 50%;
}

/* Thu nhỏ icon mũi tên một chút cho tinh tế */
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-button-next { right: 10px; }
.swiper-button-prev { left: 10px; }

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px transparent;
    transition: all 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    box-shadow: inset 0 0 0 2px var(--gold);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.82em;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 70px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Số + ký hiệu nằm cùng hàng */
.stat-top {
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
}

.stat-num {
    font-size: clamp(2.2em, 4vw, 4em);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-plus {
    font-size: clamp(1.2em, 2vw, 2em);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-sep {
    width: 1px;
    height: auto;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
    margin: 10px 0;
}

/* ===== TESTIMONIALS MARQUEE ===== */
.testimonials-section {
    text-align: center;
}

/* Full-viewport width: thoát khỏi container bằng negative margin */
.testimonials-track-wrapper {
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.zalo-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 340px;
    flex-shrink: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.zalo-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.z-avatar-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25em;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.z-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.z-name {
    color: var(--text-muted);
    font-size: 0.88em;
    margin-bottom: 6px;
    font-weight: 500;
}

.z-bubble {
    background: #ffffff;
    color: #0f172a;
    padding: 12px 16px;
    border-radius: 0 16px 16px 16px;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 100%;
}

.z-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-right: 10px solid #ffffff;
    border-bottom: 12px solid transparent;
}

.z-time {
    display: block;
    text-align: right;
    font-size: 0.75em;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

/* ===== SECTION 5: PRICING ===== */
.pricing-section {
    text-align: left;
}

.calc-wrapper {
    padding: 20px 0;
    margin: 30px auto 0;
    max-width: 600px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.calc-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1em;
    color: var(--text);
}

.calc-group select,
.calc-group input {
    width: 100%;
    padding: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.calc-group select:focus,
.calc-group input:focus {
    border-color: var(--gold);
}

.result-teaser {
    display: block;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    animation: slideUp 0.5s;
}

.result-teaser h3 {
    font-size: 3em;
    color: var(--gold);
    margin: 12px 0;
    font-weight: 600;
}

.phone-wall {
    background: var(--gold-light);
    border: 1px dashed var(--gold);
    padding: 35px;
    border-radius: var(--radius);
    margin-top: 35px;
    text-align: left;
}

.phone-wall-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.phone-wall-inputs input {
    flex: 1;
    min-width: 200px;
    padding: 18px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}

.result-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    margin-top: 50px;
}

.result-table th,
.result-table td {
    padding: 22px 25px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.result-table th {
    color: var(--gold);
    font-size: 1.05em;
    font-weight: 500;
}

.result-table tr:last-child {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--gold);
    border-bottom: none;
}

.c-right {
    text-align: right;
    white-space: nowrap;
}

.note-contractor {
    background: var(--bg);
    border-left: 4px solid var(--gold);
    padding: 25px;
    margin-top: 35px;
    color: var(--gold);
    font-style: italic;
    font-size: 0.95em;
    border-radius: 0 8px 8px 0;
}

/* ===== SECTION 6: REGISTER & FOOTER ===== */
.register-section {
    text-align: center;
}

.register-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.register-box input {
    width: 100%;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: block;
    margin-bottom: 20px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.register-box input:focus {
    border-color: var(--gold);
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 60px 5%;
    font-size: 0.9em;
    color: var(--text-muted);
    background: var(--bg-card);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--glass);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
    text-decoration: none;
    border: 1px solid var(--border);
}

#scrollTop.visible {
    opacity: 1;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.fab-group {
    position: fixed;
    left: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    animation: pulseBorder 2.4s infinite;
}
.fab-btn:hover {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
    animation: none;
}
.fab-btn svg {
    transition: transform 0.3s;
}
.fab-btn:hover svg {
    transform: scale(1.1);
}
.fab-zalo { animation-delay: 0s; }
.fab-calc { animation-delay: 0.8s; }
.fab-reg { animation-delay: 1.6s; }

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.6); }
    50% { box-shadow: 0 0 0 15px rgba(212, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal.delay-1 {
    transition-delay: 0.12s;
}

.reveal.delay-2 {
    transition-delay: 0.24s;
}

.reveal.delay-3 {
    transition-delay: 0.36s;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {

    .hero-grid,
    .features-grid,
    .gallery-grid,
    .calc-inputs {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Zigzag mobile: tất cả stack dọc, reset order để Media luôn hiện trước */
    .zigzag-row,
    .zigzag-row.row-reverse {
        flex-direction: column !important;
        gap: 25px;
    }

    /* Reset order trên mobile: Media(DOM first) hiện trước, Content hiện sau */
    .zigzag-row.row-reverse .zigzag-content {
        order: 0;
    }

    /* HEADER MOBILE THEO BẢN BACKUP CŨ: ĐƠN GIẢN & HIỆU QUẢ */
    .menu-toggle {
        display: flex; /* Hiện 3 gạch */
        z-index: 1001;
    }

    .nav-wrapper {
        display: none; /* Ẩn mặc định */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 999;
    }

    .nav-wrapper.open {
        display: flex;
    }

    .nav-wrapper.open nav {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        text-align: center;
    }

    .nav-wrapper.open nav a {
        font-size: 1.5em;
        font-weight: 600;
        padding: 10px 0;
    }

    .nav-wrapper.open .btn {
        width: auto;
        min-width: 200px;
        justify-content: center;
        font-size: 1.1em;
        padding: 18px 32px;
    }

    /* Hero V2 Mobile Updates */
    .hero-v2 {
        padding-top: 130px !important;
        align-items: flex-start !important;
    }

    .hero-grid {
        display: block; /* Remove side-by-side grid */
    }

    .hero-img-col {
        position: absolute;
        top: 0; left: 0; width: 100vw; height: 100%;
        z-index: -1;
        overflow: hidden;
    }

    .h-stair-img {
        width: 100%; height: 100%;
        transform: none;
        object-fit: cover;
        opacity: 0.35; /* Làm tối nhẹ để chữ nổi lên */
        mask-image: none;
        -webkit-mask-image: none;
        filter: none;
    }

    .hero-btns-v2 {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns-v2 .btn {
        width: 100%;
    }

    section {
        padding: 80px 0;
    }

    /* Stats: số và ký hiệu nhỏ lại */
    .stat-num {
        font-size: clamp(1.4em, 6vw, 2.2em);
    }

    .stat-plus {
        font-size: clamp(0.9em, 4vw, 1.4em);
    }

    .stat-label {
        font-size: 0.65em;
        letter-spacing: 0;
        margin-top: 5px;
    }

    .stats-bar {
        padding: 20px 8px;
    }

    /* Pricing inputs mobile */
    .calc-wrapper {
        padding: 30px 15px;
    }

    /* Result Table Mobile */
    .result-table th,
    .result-table td {
        padding: 15px 5px;
        font-size: 0.85em;
    }

    .result-table th:first-child,
    .result-table td:first-child {
        width: 65%;
    }

    .result-table th:last-child,
    .result-table td:last-child {
        width: 35%;
    }

    .phone-wall-inputs {
        flex-direction: column;
    }

    .phone-wall-inputs input {
        min-width: 0;
        width: 100%;
    }
}

/* ======================================================== */
/* MỚI: CSS DÀNH CHO CÔNG CỤ BÁO GIÁ ĐỐI TÁC (TỪ INDEX.HTML) */
/* ======================================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-muted);
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #1e293b;
    color: white;
    font-family: inherit;
    font-size: 1em;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-gold:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

#partnerForm {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--border);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 15px;
}

.badge.customer {
    background: #334155;
    color: #f8fafc;
}

.badge.partner {
    background: #fef08a;
    color: #854d0e;
}

.result-box {
    margin-top: 30px;
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    display: none;
}

.result-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.result-box td,
.result-box th {
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    text-align: left;
}

.result-box th {
    color: var(--text-muted);
}

.c-right {
    text-align: right !important;
    font-weight: 600;
}

.total-row {
    font-size: 1.1em;
    color: var(--gold);
}

.invoice-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #334155;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.invoice-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Michroma', 'Orbitron', 'Inter', sans-serif;
    text-align: center;
    flex-shrink: 0;
    flex: 1;
}

.invoice-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 1px;
}

.invoice-divider {
    width: 1px;
    height: 50px;
    background: #334155;
    flex-shrink: 0;
}

.invoice-company-info {
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.invoice-company-info strong {
    font-size: 1.05em;
}