/* ==========================================================================
   TheGioiBienSoDep.com - Stylesheet
   Màu sắc chủ đạo: Đỏ (#9C0000 / #C12024) & Vàng Kim (#D4AF37 / #B18039)
   ========================================================================== */

@font-face {
    font-family: 'SVNShintiaScript';
    src: url('../fonts/SVN-Shintia-Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary-red: #9c0000;
    --primary-red-hover: #b70000;
    --primary-dark-red: #720000;
    --accent-gold: #c59b27;
    --accent-gold-light: #fef3c7;
    --accent-gold-dark: #8c6a12;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f3e08a 50%, #aa8014 100%);
    --red-gradient: linear-gradient(135deg, #a3080c 0%, #d3161b 100%);
    
    --bg-light: #f8fafc;
    --bg-warm: #fffdfa;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-red: #ad0909;

    --plate-black: #111111;
    --plate-border: #222222;
    --plate-yellow: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* ================= TOP BAR (1 DÒNG DUY NHẤT) ================= */
.topbar {
    background-color: var(--primary-dark-red);
    color: #fce7e7;
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent-gold);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar::-webkit-scrollbar {
    display: none;
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

.topbar a:hover {
    color: #ffd700;
}

/* ================= HEADER ================= */
.header-main {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.brand-logo-img {
    height: 54px;
    width: auto;
    max-width: 220px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.brand-logo:hover .brand-logo-img {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.brand-crown {
    width: 44px;
    height: 44px;
    background: var(--red-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffd700;
    box-shadow: 0 3px 6px rgba(156, 0, 0, 0.3);
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.brand-slogan {
    font-size: 11px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #fecaca;
}

.hotline-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

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

.hotline-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-red);
}

/* ================= HEADER SEARCH BAR (DESKTOP) ================= */
.header-search-wrap {
    flex: 1;
    max-width: 440px;
    margin: 0 15px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    padding: 3px 4px 3px 14px;
    transition: all 0.25s ease;
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(156, 0, 0, 0.12);
}

.header-search-icon {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    padding: 6px 0;
}

.header-search-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.header-search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    margin-right: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.header-search-clear-btn:hover {
    color: #dc2626;
}

.header-search-submit {
    background: var(--red-gradient);
    color: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(156, 0, 0, 0.25);
}

.header-search-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .header-search-wrap {
        display: none !important;
    }
}

/* ================= HOMEPAGE HERO SEARCH SECTION ================= */
.home-search-section {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
    padding: 16px 0 10px 0;
    border-bottom: 1px solid #fee2e2;
}

.home-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-search-card {
    background: #ffffff;
    border: 1.5px solid #fecaca;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(156, 0, 0, 0.06);
}

.home-search-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-search-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.home-search-title i {
    color: #ffd700;
    font-size: 17px;
    filter: drop-shadow(0 1px 2px rgba(156, 0, 0, 0.3));
}

.home-search-subtitle {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.home-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.home-search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.home-search-input-wrap:focus-within {
    border-color: var(--primary-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(156, 0, 0, 0.1);
}

.home-search-icon {
    font-size: 18px;
    color: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
}

.home-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    height: 48px;
}

.home-search-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 400;
}

.home-search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.home-search-clear-btn:hover {
    color: #dc2626;
}

.home-search-btn {
    height: 48px;
    background: linear-gradient(135deg, #c50000 0%, #8e0000 100%);
    color: #ffd700;
    border: 1.5px solid #ffd700;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(156, 0, 0, 0.22);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-search-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(156, 0, 0, 0.32);
}

.home-search-quick-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #fee2e2;
    flex-wrap: wrap;
}

.quick-tag-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.quick-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.quick-tag-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.quick-tag-pill:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    transform: translateY(-1px);
}

.quick-tag-pill.pill-fengshui {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
    font-weight: 700;
}

.quick-tag-pill.pill-fengshui:hover {
    background: #fde68a;
    border-color: #f59e0b;
    color: #78350f;
}

/* ================= MOBILE OFF-CANVAS DRAWER MENU ================= */
.mobile-menu-btn {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 10001;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
    transform: translateX(320px);
}

.drawer-header {
    background: linear-gradient(135deg, #7a0000 0%, #9c0000 100%);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

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

.drawer-logo {
    height: 44px;
    width: auto;
    max-width: 175px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    display: block;
}

.drawer-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.3px;
}

.drawer-slogan {
    font-size: 10px;
    color: #f1f5f9;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.drawer-body {
    padding: 16px 14px 28px;
    flex: 1;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 6px;
}

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}

.drawer-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: #9c0000;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
    background: #fef2f2;
    color: #9c0000;
}

.drawer-nav-item.active {
    border-left: 3px solid #9c0000;
}

.drawer-contact-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.drawer-hotline-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.drawer-zalo-btn {
    background: #0284c7;
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ================= NAV MENU ================= */
.main-nav {
    background: var(--primary-red);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-item {
    color: #ffffff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-item i {
    font-size: 14px;
    color: #ffd700;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 0, 0, 0.15);
    color: #ffdf00;
    border-bottom-color: #ffd700;
}

/* ================= HERO / SIMULATOR SECTION ================= */
.simulator-section {
    background: linear-gradient(180deg, #7a0000 0%, #4a0000 100%);
    color: #ffffff;
    padding: 35px 15px;
    position: relative;
    border-bottom: 4px solid var(--accent-gold);
}

.simulator-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
}

.simulator-intro h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.simulator-intro p {
    font-size: 15px;
    color: #f1f5f9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.simulator-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sim-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ================= HERO SHOWCASE SLIDER (XE SANG BIỂN ĐẸP VIP - CHẠY LƯỚT) ================= */
.hero-showcase-slider {
    position: relative;
    margin-top: 0;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 265px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.slider-slide.active {
    position: absolute;
    inset: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-showcase-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.hero-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 6s ease;
}

.hero-showcase-slider:hover .hero-showcase-img {
    transform: scale(1.05);
}

.hero-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.85) 85%, #0f172a 100%);
    pointer-events: none;
}

.hero-showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 45%, #0f172a 100%);
    z-index: 2;
}

.hero-showcase-tag {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.slide-tag-pill {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.hero-showcase-text {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.35;
    padding-right: 65px;
}

.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: #dc2626;
    border-color: #ffd700;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.slider-prev { left: 8px; }
.slider-btn.slider-next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    gap: 5px;
    z-index: 6;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    background: #ffd700;
    width: 18px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

/* ================= SIMULATOR BOX ================= */
.simulator-box {
    background: #ffffff;
    color: var(--text-main);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-gold);
}

.simulator-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-group {
    display: flex;
    gap: 6px;
}

.sim-btn {
    border: 1px solid var(--border-color);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sim-btn.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

/* ================= REALISTIC LICENSE PLATE ================= */
.plate-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-bottom: 18px;
    min-height: 140px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.license-plate-item {
    position: relative;
    border: 4px solid #111111;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   ĐỒNG BỘ 100% FONT CHỮ BIỂN SỐ TOÀN BỘ WEBSITE (ẢNH 4 KỸ THUẬT)
   ========================================================================= */
.license-plate-item,
.license-plate-item *,
.plate-box,
.plate-box *,
.sim-input-row input,
.detail-plate-render,
.detail-plate-render *,
.modal-input-check-bar input,
.modal-clean-input,
.tv-plate-badge,
.val-plate-code,
.cert-plate-name,
.empty-sample-tags a,
.empty-sample-tags button,
.plate-preview-box,
.plate-preview-box * {
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
}

/* Biển Dài (Kích Cỡ Chữ To Rõ Chuẩn Tỷ Lệ Biển Thật) */
.license-plate-item.format-dai {
    width: 350px;
    max-width: 100%;
    box-sizing: border-box;
    height: 78px;
    padding: 0 22px;
    border-radius: 16px;
}

.license-plate-item.format-dai .plate-single-line {
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-text-stroke: 0.45px #111111;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.license-plate-item.format-dai .dash-part {
    margin: 0 7px;
    color: #111111;
}

/* Biển Vuông (Kích Cỡ Chữ To Rõ Chuẩn Tỷ Lệ Biển Thật) */
.license-plate-item.format-vuong {
    width: 210px;
    max-width: 100%;
    box-sizing: border-box;
    height: 154px;
    padding: 10px 14px;
    flex-direction: column;
    border-radius: 20px;
}

.license-plate-item.format-vuong .plate-top-line {
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
    font-size: 47px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 2.5px;
    line-height: 1.02;
    text-align: center;
    -webkit-text-stroke: 0.45px #111111;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.license-plate-item.format-vuong .plate-bottom-line {
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
    font-size: 47px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 2.2px;
    line-height: 1.02;
    text-align: center;
    -webkit-text-stroke: 0.45px #111111;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Màu Biển Vàng Chuẩn 100% (Bỏ Sọc Chéo, Nền Vàng Mịn Đẳng Cấp) */
.license-plate-item.theme-yellow {
    background: #f1b11b !important;
    background-image: linear-gradient(180deg, #f8c93e 0%, #f1b11b 50%, #df9f08 100%) !important;
    border: 4px solid #111111 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22), inset 0 0 0 3.5px #f1b11b, inset 0 0 0 5.5px #111111 !important;
}

/* Màu Biển Trắng Chuẩn */
.license-plate-item.theme-white {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fa 50%, #edf1f5 100%) !important;
    border: 4px solid #111111 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 0 0 3.5px #ffffff, inset 0 0 0 5.5px #111111 !important;
}

/* Đinh Ốc Vít Kim Loại 3D Siêu Thực */
.plate-screws {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 35%, #94a3b8 70%, #475569 100%);
    box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.45), inset 0 1px 1px #ffffff;
    border: 0.5px solid rgba(0, 0, 0, 0.35);
    z-index: 3;
}
.plate-screws.mid-left { left: 9px; top: calc(50% - 4.5px); }
.plate-screws.mid-right { right: 9px; top: calc(50% - 4.5px); }
.plate-screws.top-left { left: 9px; top: 9px; }
.plate-screws.top-right { right: 9px; top: 9px; }
.plate-screws.bottom-left { left: 9px; bottom: 9px; }
.plate-screws.bottom-right { right: 9px; bottom: 9px; }

/* Bỏ dấu sao & huy hiệu chìm */
.plate-emblem,
.plate-emblem-seal,
.plate-seal-emblem,
.plate-emblem-short {
    display: none !important;
}

/* Input field inside simulator */
.sim-input-row {
    width: 100%;
    margin-bottom: 10px;
}

.sim-input-row input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--primary-red);
    outline: none;
    letter-spacing: 1.5px;
    background: #ffffff;
    transition: border 0.2s, box-shadow 0.2s;
}

.sim-input-row input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(156, 0, 0, 0.12);
}

.sim-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-dich-nghia {
    background: var(--red-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(163, 8, 12, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-dich-nghia:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(163, 8, 12, 0.4);
}

.btn-tu-van {
    background: #008744;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 135, 68, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-tu-van:hover {
    background: #006b36;
    transform: translateY(-2px);
}

/* ================= MARQUEE BAR ================= */
.marquee-bar {
    background: #111827;
    color: #ffd700;
    border-bottom: 2px solid #9c0000;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.marquee-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee-badge {
    background: var(--red-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.marquee-track {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.marquee-track span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

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

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); -webkit-transform: translate3d(-100%, 0, 0); }
}

/* ================= SWIPER BANNER SECTION ================= */
.swiper-section {
    max-width: 1200px;
    margin: 25px auto 10px;
    padding: 0 15px;
}

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

.banner-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    border: none;
    background: #ffffff;
    display: block;
    aspect-ratio: 1 / 1;
}

.banner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(156, 0, 0, 0.22);
}

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

/* ================= FILTER & SEARCH SECTION ================= */
.main-content {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.filter-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.search-box-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.search-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14.5px;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}

.search-input-wrap input:focus {
    border-color: var(--primary-red);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.btn-filter-search {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 22px;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.22);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-filter-search:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 16px rgba(153, 27, 27, 0.32);
    transform: translateY(-1px);
}

.province-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    cursor: pointer;
    min-width: 200px;
}

.province-select:focus {
    border-color: var(--primary-red);
}

/* ================= SEARCHABLE SELECT DROPDOWN (TỈNH THÀNH) ================= */
.searchable-select-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 310px;
    min-width: 280px;
    max-width: 100%;
    user-select: none;
}

.searchable-input-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    height: 48px;
    padding: 0 12px;
    transition: all 0.2s ease;
    cursor: text;
    position: relative;
    box-sizing: border-box;
}

.searchable-select-wrap.is-open .searchable-input-box,
.searchable-input-box:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(156, 0, 0, 0.1);
}

.searchable-loc-icon {
    color: #94a3b8;
    font-size: 15px;
    margin-right: 8px;
    flex-shrink: 0;
}

.searchable-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    padding: 0;
    height: 100%;
}

.searchable-input::placeholder {
    color: #475569;
    font-weight: 500;
}

.searchable-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    margin-right: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.searchable-clear-btn:hover {
    color: #dc2626;
}

.searchable-arrow {
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    padding: 4px;
}

.searchable-select-wrap.is-open .searchable-arrow {
    transform: rotate(180deg);
}

.searchable-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden !important;
    z-index: 1000;
    padding: 5px 0;
    box-sizing: border-box;
}

.searchable-dropdown::-webkit-scrollbar {
    width: 6px;
}

.searchable-dropdown::-webkit-scrollbar-track {
    background: #f8fafc;
}

.searchable-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.searchable-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.searchable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    border-bottom: 1px solid #f8fafc;
    box-sizing: border-box;
    white-space: nowrap;
    gap: 10px;
}

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

.searchable-item:hover,
.searchable-item.is-highlighted {
    background: #fef2f2;
    color: var(--primary-red);
}

.searchable-item.is-selected {
    background: #f8fafc;
    color: var(--primary-red);
    font-weight: 700;
    border-left: 3px solid var(--primary-red);
    padding-left: 11px;
}

.searchable-item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.searchable-item mark {
    background: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
}

.searchable-code-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.searchable-code-badge.badge-all {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.searchable-item.is-selected .searchable-code-badge {
    background: #fee2e2;
    color: var(--primary-red);
    border-color: #fecaca;
}

.searchable-item:hover .searchable-code-badge,
.searchable-item.is-highlighted .searchable-code-badge {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.searchable-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px dashed var(--border-color);
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-red);
    min-width: 60px;
}

.filter-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-items .item {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-items .item:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-items .item.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

.filter-row-type-sort {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================= SECTION HEADER & VIEW CONTROLS ================= */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-red);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    line-height: 1.35;
}

.sec-title-main {
    word-break: keep-all;
}

.sec-title-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.view-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.view-mode-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.view-mode-btn.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

/* ================= LISTING GRID ================= */
.plate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.plate-card-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 14px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.plate-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #f43f5e;
}

.plate-display-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 76px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Plate inside Card - Đồng Bộ Nền Biển Nhìn Như Thật (Ảnh 4 Kỹ Thuật) */
.plate-box {
    position: relative;
    border: 3px solid #111111;
    color: #111111;
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-text-stroke: 0.35px #111111;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.plate-box.plate-dai {
    padding: 0 16px;
    font-size: 33px;
    letter-spacing: 1.5px;
    line-height: 1;
    width: 100%;
    max-width: 262px;
    height: 60px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 50%, #edf1f5 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 0 0 2px #ffffff, inset 0 0 0 3.5px #111111;
    box-sizing: border-box;
}

.plate-box.plate-dai .plate-dash {
    margin: 0 5px;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

.plate-box.plate-vuong {
    flex-direction: column;
    padding: 6px 10px;
    width: 100%;
    max-width: 152px;
    height: 106px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 50%, #edf1f5 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), inset 0 0 0 2px #ffffff, inset 0 0 0 3.5px #111111;
    box-sizing: border-box;
}

.plate-box.plate-vuong .plate-line1 {
    font-size: 32px;
    letter-spacing: 1.8px;
    line-height: 1.02;
}

.plate-box.plate-vuong .plate-line2 {
    font-size: 32px;
    letter-spacing: 1.6px;
    line-height: 1.02;
}

.plate-box.plate-yellow {
    background: #f1b11b !important;
    background-image: linear-gradient(180deg, #f8c93e 0%, #f1b11b 50%, #df9f08 100%) !important;
    border: 3px solid #111111 !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18), inset 0 0 0 2.5px #f1b11b, inset 0 0 0 4px #111111 !important;
}

/* Đinh ốc trong card */
.plate-box .plate-screw {
    position: absolute;
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd5e1 40%, #64748b 80%, #334155 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0.5px 0.5px #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    z-index: 3;
}
.plate-box.plate-dai .screw-l { left: 7px; top: calc(50% - 3.25px); }
.plate-box.plate-dai .screw-r { right: 7px; top: calc(50% - 3.25px); }
.plate-box.plate-vuong .screw-tl { top: 6px; left: 6px; }
.plate-box.plate-vuong .screw-tr { top: 6px; right: 6px; }
.plate-box.plate-vuong .screw-bl { bottom: 6px; left: 6px; }
.plate-box.plate-vuong .screw-br { bottom: 6px; right: 6px; }


/* ============================================================== */
/* POPUP CHI TIẾT BIỂN SỐ TO, DỄ NHÌN ĐẦY ĐỦ THÔNG TIN (ẢNH 1)   */
/* ============================================================== */
.modal-card.modal-detail-large {
    max-width: 820px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.detail-badge-status {
    background: #dcfce7;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.detail-plate-showcase {
    background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 14px;
    padding: 24px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.detail-plate-render {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.detail-pricing-hero {
    text-align: center;
}

.detail-price-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-price-number {
    font-size: 32px;
    font-weight: 900;
    color: #b91c1c;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 4px 0 6px;
}

.detail-plate-tagline {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: #fef3c7;
    border: 1.5px dashed #f59e0b;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.detail-spec-card .spec-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.detail-spec-card .spec-val {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.detail-quick-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.btn-tool-shortcut {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-tool-shortcut:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* ================= MODAL HEADER CHI TIẾT 2 HÀNG (ẢNH 3 KỸ THUẬT) ================= */
.modal-header-detail {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.mhd-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.mhd-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    min-width: 0;
}

.mhd-crown-icon {
    color: #ffd700;
    font-size: 20px;
    flex-shrink: 0;
}

.mhd-sub-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

/* ================= FORM ĐẶT CỌC GIỮ BIỂN / TƯ VẤN ================= */
.detail-booking-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
    border: 1.5px solid #fde047;
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(180, 83, 9, 0.07);
}

.booking-card-head h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
    text-wrap: balance;
}

.booking-card-head p {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 16px;
}

.detail-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-form-row input {
    flex: 1;
    min-width: 180px;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px !important;
    font-size: 14.5px;
    font-weight: 600;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    -webkit-appearance: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.detail-form-row input::placeholder {
    color: #94a3b8;
    font-weight: 500;
    font-size: 13.5px;
}

.detail-form-row input:focus {
    border-color: #9c0000;
    box-shadow: 0 0 0 3px rgba(156, 0, 0, 0.12);
}

.btn-detail-submit {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    height: 48px;
    padding: 0 22px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.3);
    letter-spacing: 0.3px;
}

.btn-detail-submit:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(185, 28, 28, 0.4);
}

.booking-hotline-call {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1.5px dashed #fde047;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-hotline-call > span {
    font-size: 13.5px;
    font-weight: 800;
    color: #78350f;
    text-align: center;
}

.booking-call-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.btn-call-direct {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(185, 28, 28, 0.25);
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-call-direct:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(185, 28, 28, 0.35);
}

.btn-zalo-direct {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
    transition: all 0.2s;
}

.btn-zalo-direct:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(2, 132, 199, 0.35);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-province {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
}

.badge-oto {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-xemay {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-vang {
    background: #fefce8;
    color: #ca8a04;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.card-tagline {
    background: #fffdf5;
    border: 1px solid #fef08a;
    padding: 5px 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    box-sizing: border-box;
}

.card-tagline .tagline-main {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-tagline .tagline-main.is-single {
    font-weight: 600;
    color: #334155;
    -webkit-line-clamp: 2;
}

.card-tagline .tagline-sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.btn-action {
    border: none;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap !important;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.btn-tuvan {
    background: #ffffff;
    color: var(--primary-red);
    border: 1.5px solid var(--primary-red);
}

.btn-tuvan:hover {
    background: #fff5f5;
    transform: translateY(-1px);
}

.btn-ynghia {
    background: var(--red-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(156, 0, 0, 0.2);
}

.btn-ynghia:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(156, 0, 0, 0.3);
}

/* ================= MODAL CHUNG ================= */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

.modal-wrapper.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title-bold {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
}

.modal-close-btn {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.modal-close-btn:hover {
    text-decoration: underline;
}

/* ================= MODAL DỊCH NGHĨA (CHÍNH XÁC NHƯ ẢNH 1) ================= */
.modal-yn-content {
    padding: 20px;
}

.modal-yn-plate-info {
    margin-bottom: 12px;
}

.modal-yn-plate-info .plate-label {
    font-size: 14px;
    color: #475569;
}

.modal-yn-plate-info .plate-code {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
}

.modal-yn-section-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 12px;
}

/* Giấy sớ phong thủy parchment cổ trang (theo ảnh 1) */
.parchment-scroll-card {
    border-radius: 12px;
    border: 1px solid #333333;
    padding: 45px 18px;
    text-shadow: 1px 1px 2px #ffffff;
    background: url('../images/bgtim.png') center;
    background-size: cover;
    color: #000000;
    margin-bottom: 16px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.parchment-head {
    text-align: center;
    font-size: 18px;
    color: #111111;
}

.parchment-head b {
    font-size: 20px;
}

.parchment-calligraphy {
    margin: 15px 0 20px;
    line-height: normal;
    text-shadow: 2px 2px 3px #ffffff;
    text-align: center;
}

.parchment-calligraphy b {
    color: #ad0909;
    font-size: 44px;
    font-family: 'SVNShintiaScript', cursive, Arial, sans-serif;
    display: inline-block;
    letter-spacing: 1px;
}

.parchment-body {
    font-size: 15px;
    line-height: 1.6;
}

.yn-detail-row {
    margin-bottom: 10px;
}

.yn-bullet {
    font-size: 15px;
    margin-bottom: 4px;
}

.yn-desc {
    color: #222222;
    font-size: 14px;
}

/* Luận thơ & ngũ hành & quẻ */
.fengshui-box {
    padding: 14px 18px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #f4f4f4;
    margin-top: 14px;
}

.fengshui-box h3 {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.poem-box {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    color: #720000;
    font-style: italic;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #d4af37;
}

.ngu-hanh-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13px;
}

.radar-chart-container {
    max-width: 320px;
    margin: 0 auto;
}

.que-content {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

.modal-yn-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.btn-tuvan-phaply {
    background: var(--primary-red);
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
    padding: 11px;
    font-weight: 700;
    display: block;
    transition: all 0.2s;
}

.btn-tuvan-tructiep {
    background: #00690d;
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
    padding: 11px;
    font-weight: 700;
    display: block;
    transition: all 0.2s;
}

/* ================= MODAL TƯ VẤN & ĐẶT BIỂN ================= */
.modal-form-content {
    padding: 24px;
}

.tuvan-highlight {
    background: #fffdf5;
    border: 1px solid #fef08a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tv-plate-badge {
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
}

.tv-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #334155;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-red);
}

.btn-submit-tuvan {
    width: 100%;
    background: var(--red-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(163, 8, 12, 0.3);
}

/* ================= FLOATING CONTACT CHAT (GIỐNG DEMO) ================= */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-toggle-btn {
    display: none;
}

.float-tooltip {
    display: none;
}

.btn-text-full { display: inline; }
.btn-text-short { display: none; }

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    font-size: 22px;
    transition: transform 0.2s;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-zalo { background: #0068ff; }
.float-phone { background: #dc2626; animation: pulse 1.8s infinite; }
.float-sms { background: #0284c7; }
.float-fb { background: #1877f2; }

/* ================= FOOTER ================= */
.site-footer {
    background: #111827;
    color: #94a3b8;
    padding: 50px 15px 25px;
    border-top: 4px solid var(--accent-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #ffd700;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1199px) {
    .plate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .plate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .swiper-section {
        margin: 10px auto 4px !important;
        padding: 0 10px !important;
    }
    .banner-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding: 2px 2px 6px 2px !important;
        scrollbar-width: none;
    }
    .banner-grid::-webkit-scrollbar {
        display: none;
    }
    .banner-item {
        flex: 0 0 135px !important;
        width: 135px !important;
        aspect-ratio: 1 / 1 !important;
        scroll-snap-align: start;
        border-radius: 12px !important;
    }
    .search-box-row {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    .search-input-wrap {
        width: 100% !important;
    }
    .search-input-wrap input {
        height: 44px !important;
        font-size: 13.5px !important;
        padding: 0 12px 0 38px !important;
    }
    .search-icon {
        left: 12px !important;
        font-size: 14px !important;
    }
    .searchable-select-wrap {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .searchable-input-box {
        height: 44px !important;
        padding: 0 10px !important;
    }
    .searchable-input {
        font-size: 13.5px !important;
    }
    .btn-filter-search {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        border-radius: 8px !important;
    }
    .filter-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    .filter-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 8px 0 !important;
    }
    .filter-row-type-sort {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .filter-group {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    .filter-label {
        font-size: 12.5px !important;
        font-weight: 800 !important;
        color: #991b1b !important;
        margin-bottom: 2px !important;
    }
    .filter-items {
        width: 100% !important;
        gap: 5px !important;
    }
    .filter-items .item {
        font-size: 12px !important;
        padding: 6px 8px !important;
        border-radius: 6px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    /* Cân đối lưới từng hàng tiêu chí */
    #floai {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    #floai .item {
        padding: 6px 2px !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
        gap: 4px !important;
    }
    #fsapxep {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #fsapxep .item {
        padding: 6px 4px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        gap: 4px !important;
    }
    #floai2 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    #floai2 .item {
        padding: 6px 2px !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
    }
    #fmenh {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #fmenh .item {
        padding: 6px 4px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        gap: 4px !important;
    }
    #fgia {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    #fgia .item {
        padding: 6px 2px !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        gap: 2px !important;
    }
}

@media (max-width: 768px) {
    .simulator-container {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .plate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .home-search-section {
        padding: 12px 0 6px 0;
    }
    .home-search-card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    .home-search-header-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 8px;
    }
    .home-search-title {
        font-size: 13.5px;
    }
    .home-search-subtitle {
        font-size: 11px;
    }
    .home-search-form {
        flex-direction: column;
        gap: 8px;
    }
    .home-search-input-wrap {
        height: 44px;
        border-radius: 10px;
        padding: 0 10px;
    }
    .home-search-input {
        font-size: 13.5px;
        height: 44px;
    }
    .home-search-btn {
        width: 100%;
        height: 44px;
        font-size: 13.5px;
        justify-content: center;
        border-radius: 10px;
    }
    .home-search-quick-tags {
        margin-top: 10px;
        padding-top: 8px;
        gap: 6px;
    }
    .quick-tag-label {
        font-size: 11.5px;
        width: 100%;
    }
    .quick-tag-list {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .quick-tag-list::-webkit-scrollbar {
        display: none;
    }
    .quick-tag-pill {
        font-size: 11px;
        padding: 4px 9px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .plate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .parchment-calligraphy b {
        font-size: 32px;
    }
    .plate-card-item {
        padding: 10px 6px !important;
    }
    .card-actions {
        gap: 4px !important;
    }
    .btn-action {
        font-size: 11.5px !important;
        height: 34px !important;
        padding: 0 2px !important;
    }
    .home-search-card {
        padding: 10px 10px;
    }
    .filter-card {
        padding: 12px 10px !important;
    }
}

@media (max-width: 420px) {
    #floai {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    #floai .item {
        padding: 7px 4px !important;
        font-size: 12px !important;
    }
    #floai2 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    #floai2 .item {
        padding: 6px 2px !important;
        font-size: 11px !important;
    }
    #fgia {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }
    #fgia .item {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
    .brand-logo-img {
        height: 32px !important;
        max-width: 125px !important;
    }
    .header-hotline .hotline-number {
        font-size: 10.5px !important;
    }
}


/* ================= SYNTAX INDICATOR ================= */
.syntax-indicator {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.syntax-indicator.is-valid {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.syntax-indicator.is-typing {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.syntax-indicator.is-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ================= CARD TOOLS BAR (1 DÒNG DUY NHẤT) ================= */
.card-tools-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.tool-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.tool-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-chip:hover {
    background: #fff1f2;
    color: var(--primary-red);
    border-color: #fecaca;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(156, 0, 0, 0.1);
}

.tool-chip i {
    font-size: 11px;
    flex-shrink: 0;
}

/* ================= HERO TOOLS ACTIONS 4 BTNS ================= */
.sim-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.btn-tool-act {
    border: none;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    color: #ffffff;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.25;
}

.btn-tool-dich { background: var(--red-gradient); }
.btn-tool-dinhgia { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
.btn-tool-tham { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.btn-tool-phantich { background: linear-gradient(135deg, #047857 0%, #059669 100%); }

.btn-tool-act:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ================= MODAL ĐỊNH GIÁ 4.0 ================= */
.valuation-price-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.val-plate-code {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', sans-serif !important;
    margin-bottom: 4px;
}

.val-rank-badge {
    display: inline-block;
    background: #9c0000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.val-price-num {
    font-size: 30px;
    font-weight: 900;
    color: #9c0000;
    line-height: 1.1;
    margin-bottom: 6px;
}

.val-price-range {
    font-size: 14px;
    color: #78350f;
    font-weight: 600;
}

.val-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.val-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}

.val-meta-card b {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-top: 4px;
}

.val-reasons {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.val-reasons ul {
    list-style: none;
    padding: 0;
}

.val-reasons li {
    margin-bottom: 6px;
    color: #334155;
}

/* ================= MODAL THẨM ĐỊNH (CHỨNG THƯ 100 ĐIỂM) ================= */
.cert-card-wrap {
    background: #fffdf8;
    border: 3px double #d4af37;
    border-radius: 12px;
    padding: 25px 20px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.15);
    margin-bottom: 18px;
}

.cert-header-gold {
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 18px;
}

.cert-crown { font-size: 32px; color: #d4af37; }
.cert-header-gold h3 { font-size: 18px; color: #9c0000; font-weight: 800; text-transform: uppercase; }
.cert-header-gold p { font-size: 12px; color: #78350f; }

.cert-score-circle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.score-badge-100 {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 45%, #fef3c7 100%);
    border: 4px solid #d4af37;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
    padding: 8px 4px;
    box-sizing: border-box;
}

.score-badge-100 .score-val {
    font-size: 24px;
    font-weight: 900;
    color: #9c0000;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.score-badge-100 .score-val .score-big {
    font-size: 30px;
    font-weight: 900;
    color: #9c0000;
    line-height: 1;
}

.score-badge-100 .score-val .score-slash {
    font-size: 13px;
    font-weight: 700;
    color: #78350f;
    line-height: 1;
}

.score-badge-100 .score-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 5px;
    line-height: 1;
    white-space: nowrap;
}

.cert-plate-name { font-size: 24px; font-weight: 700; color: #111; font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', sans-serif !important; }
.cert-rank-tag { color: #d97706; font-weight: 800; font-size: 15px; margin-top: 4px; }

.cert-criteria-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    margin-bottom: 15px;
}

.cert-crit-item span { color: #64748b; }
.cert-crit-item b { color: #0f172a; display: block; }

.cert-footer-seal {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    color: #475569;
    border-top: 1px dashed #d4af37;
    padding-top: 12px;
}

.cert-seal-stamp {
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(-5deg);
}

/* ================= MODAL PHÂN TÍCH CHUYÊN SÂU ================= */
.pt-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.pt-box h4 {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pt-detail-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.pt-number-breakdown {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    justify-content: center;
}

.pt-num-ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ================= FLOATING AI CHAT BUTTON ================= */
.float-ai {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.5);
    animation: aiPulse 2.5s infinite;
}

@keyframes aiPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* ================= AI CHAT DOCKED WIDGET (CHẾ ĐỘ THỤT THÒ BÊN PHẢI) ================= */
.ai-chat-docked {
    position: fixed;
    right: 84px;
    bottom: 20px;
    width: 385px;
    max-width: calc(100vw - 105px);
    height: 560px;
    max-height: calc(100vh - 90px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transform: translateY(120%) scale(0.92);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.32s;
}

.ai-chat-docked.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Card chính */
.ai-chat-docked .ai-chat-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 45px -8px rgba(15, 23, 42, 0.32),
                0 0 0 1.5px rgba(99, 102, 241, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #6366f1;
    transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.32s ease, box-shadow 0.32s ease;
}

/* CHẾ ĐỘ THỤT THÒ (MINIMIZED / COLLAPSED) */
.ai-chat-docked.minimized {
    height: 54px !important;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-docked.minimized .ai-chat-card {
    height: 54px !important;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35),
                0 0 0 1.5px rgba(255, 215, 0, 0.5);
    border-color: #ffd700;
}

.ai-chat-docked.minimized .ai-chat-header {
    cursor: pointer;
    border-bottom: none !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.ai-chat-docked.minimized .ai-messages-wrap,
.ai-chat-docked.minimized .ai-suggestions-row,
.ai-chat-docked.minimized .ai-input-bar {
    display: none !important;
}

.ai-chat-docked.minimized #aiToggleIcon {
    transform: rotate(180deg);
}

/* Header */
.ai-chat-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #312e81 100%);
    color: #ffffff;
    padding: 11px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd700;
    user-select: none;
    flex-shrink: 0;
    cursor: pointer;
}

.ai-chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ai-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.ai-header-info {
    min-width: 0;
}

.ai-header-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.ai-header-sub {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-online-badge {
    font-size: 9.5px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    padding: 1.5px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.ai-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
    animation: aiOnlinePulse 1.8s infinite;
}

@keyframes aiOnlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

.ai-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ai-header-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.ai-header-btn.btn-ai-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

#aiToggleIcon {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-messages-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.chat-bubble.bot strong, .chat-bubble.bot b {
    color: #9c0000;
}

.chat-bubble.bot a, .ai-chat-link {
    color: #b91c1c !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    word-break: break-all;
    transition: color 0.15s ease;
}

.chat-bubble.bot a:hover, .ai-chat-link:hover {
    color: #dc2626 !important;
}

.ai-chat-code {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #0f172a;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #a3080c 0%, #d3161b 100%);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 8px rgba(163,8,12,0.25);
}

.ai-suggestions-row {
    padding: 8px 16px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.ai-suggestions-row::-webkit-scrollbar { display: none; }

.sugg-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sugg-chip:hover {
    background: #ede9fe;
    color: #7c3aed;
    border-color: #c4b5fd;
}

.ai-input-bar {
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input-bar input {
    flex: 1;
    border: 1.5px solid #cbd5e1;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.ai-input-bar input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.btn-ai-send {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-ai-send:hover { opacity: 0.9; transform: scale(1.05); }

/* ================= PHONG THỦY MASTER SECTION & MODAL ================= */
.pt-calc-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.pt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: flex-end;
}

.btn-pt-lookup {
    background: var(--red-gradient);
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
}
.btn-pt-lookup:hover { opacity: 0.95; transform: translateY(-1px); }

.pt-res-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: none;
}

.pt-res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}

.pt-card-spec {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.pt-spec-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.pt-spec-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.pt-numbers-highlight {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

/* ================= DEMO KNOWLEDGE & LEGAL ARTICLES ================= */
.guides-section {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 15px;
}

.guide-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.guide-tabs-nav::-webkit-scrollbar { display: none; }

.gtab-btn {
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gtab-btn:hover, .gtab-btn.active {
    background: var(--red-gradient);
    color: #ffffff;
    border-color: #9c0000;
}

.guide-content-panel {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.guide-article h3 {
    font-size: 20px;
    color: #9c0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-article p, .guide-article li {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 12px;
}

.guide-box-highlight {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 15px 18px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
}

.guide-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.faq-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.faq-card h4 {
    font-size: 14.5px;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq-card p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* ================= TRA CỨU PHẠT NGUỘI CSGT ================= */
.btn-tool-phatnguoi {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #ffffff;
}

.pn-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.pn-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap !important;
    height: 44px;
}

.pn-tab-btn.active {
    background: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.pn-tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* ================= MODAL INPUT & CHECK BAR (TÍCH HỢP TRONG CÁC POPUP CHECK BIỂN) ================= */
.sim-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sim-input-row input {
    flex: 1;
}

.btn-sim-random {
    background: #f8fafc;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-sim-random:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.modal-input-check-bar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: none;
}

.mic-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mic-input-wrapper:focus-within {
    border-color: #9c0000;
    box-shadow: 0 0 0 3px rgba(156, 0, 0, 0.15);
}

.mic-input-icon {
    color: #64748b;
    font-size: 18px;
    flex-shrink: 0;
}

.mic-input-wrapper:focus-within .mic-input-icon {
    color: #9c0000;
}

.modal-clean-input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', sans-serif !important;
    font-size: 20px;
    font-weight: 800;
    color: #880000;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    letter-spacing: 1px;
}

.modal-clean-input::placeholder {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mic-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-mic-random, .btn-pn-random {
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    height: 48px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-mic-random:hover, .btn-pn-random:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-mic-check {
    background: linear-gradient(135deg, #9c0000 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    height: 48px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(156, 0, 0, 0.2);
}

.btn-mic-check:hover {
    background: linear-gradient(135deg, #7c0000 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(156, 0, 0, 0.3);
}

/* Modal Phạt Nguội CSGT Form Controls */
.pn-input-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.pn-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pn-input-wrapper:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.pn-input-icon {
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
}

.pn-input-wrapper:focus-within .pn-input-icon {
    color: #dc2626;
}

.pn-input-wrapper input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', sans-serif !important;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    letter-spacing: 0.8px;
    color: #b91c1c;
}

.pn-input-wrapper input::placeholder {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: normal;
    text-transform: none;
}

.pn-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pn-submit {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    height: 48px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-pn-submit:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-1px);
}

.pn-subnote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    margin-bottom: 16px;
    gap: 8px;
}

/* Modal Shared Action Buttons Row */
.modal-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 6px;
}

.modal-btn-row .btn-tuvan-phaply,
.modal-btn-row .btn-tuvan-tructiep {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

/* ================= MODAL EMPTY PROMPT ================= */
.modal-empty-prompt {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    margin: 12px 0 20px;
}

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

.modal-empty-prompt h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.modal-empty-prompt p {
    font-size: 14px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 16px;
    line-height: 1.55;
}

.empty-sample-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

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

.sample-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sample-tags-list a, .sample-tags-list button,
.empty-sample-tags a, .empty-sample-tags button {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.sample-tags-list a:hover, .sample-tags-list button:hover,
.empty-sample-tags a:hover, .empty-sample-tags button:hover {
    background: #9c0000;
    color: #ffffff;
    border-color: #9c0000;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(156, 0, 0, 0.2);
}

.float-sms {
    background: #0284c7;
}

/* ================= EMPTY STATE KHO BIỂN SỐ & GỢI Ý PHONG THỦY ================= */
.empty-plate-state,
.empty-state {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 960px;
    margin: 30px auto;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.empty-fengshui-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1.5px dashed #e2e8f0;
    text-align: left;
}

.efs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.efs-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.efs-tab-btn {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.efs-tab-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
    transform: translateY(-1px);
}

.efs-tab-btn.active {
    background: #9c0000;
    border-color: #9c0000;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(156, 0, 0, 0.25);
}

.efs-tab-btn.active i {
    color: #ffffff !important;
}

.efs-year-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.efs-year-row input {
    width: 140px;
    padding: 6px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.efs-year-row input:focus {
    border-color: #9c0000;
}

.btn-efs-lookup {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-efs-lookup:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-fengshui-shortcut {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    color: #b45309;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 6px;
}

.btn-fengshui-shortcut:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.badge-fs-match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.eps-icon-wrap,
.empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #9c0000;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.eps-title,
.empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.eps-desc,
.empty-state p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 20px;
}

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

.btn-eps-reset,
.empty-state .btn-primary {
    background: linear-gradient(135deg, #7a0000 0%, #9c0000 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(156, 0, 0, 0.25);
    text-decoration: none;
}

.btn-eps-reset:hover,
.empty-state .btn-primary:hover {
    background: linear-gradient(135deg, #600000 0%, #7a0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(156, 0, 0, 0.35);
}

.btn-eps-order {
    background: #ffffff;
    color: #9c0000;
    border: 1.5px solid #9c0000;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-eps-order:hover {
    background: #fef2f2;
    transform: translateY(-1px);
}

/* ============================================================== */
/* TỐI ƯU TOÀN DIỆN CHO GIAO DIỆN MOBILE & TABLET (CHỐNG VỠ KHUNG & NHẢY DÒNG) */
@media (max-width: 768px) {
    .modal-input-check-bar,
    .pn-input-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .mic-input-wrapper,
    .pn-input-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
    }
    .modal-clean-input {
        font-size: 20px !important;
    }
    .pn-input-wrapper input {
        font-size: 19px !important;
    }
    .mic-actions,
    .pn-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .mic-actions .btn-mic-check,
    .pn-actions .btn-pn-submit {
        flex: 1.5 !important;
        height: 46px !important;
        justify-content: center !important;
        font-size: 13.5px !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .mic-actions .btn-mic-random,
    .pn-actions .btn-pn-random {
        flex: 1 !important;
        height: 46px !important;
        justify-content: center !important;
        font-size: 13px !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .pn-subnote {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    .pn-tab-btn {
        padding: 8px 3px !important;
        font-size: 12px !important;
        gap: 4px !important;
        height: 42px !important;
    }
    .pn-tab-btn i {
        font-size: 12px !important;
    }
    .modal-btn-row {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .modal-btn-row .btn-tuvan-phaply,
    .modal-btn-row .btn-tuvan-tructiep {
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 13.5px !important;
        white-space: nowrap !important;
    }
    .search-box-row {
        flex-direction: column;
        gap: 8px;
    }
    .province-select,
    .searchable-select-wrap {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    /* Modal Header Chi Tiết 2 Hàng Trên Mobile (Yêu Cầu Ảnh 3) */
    .mhd-top-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .mhd-title {
        font-size: 14.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: -0.2px !important;
    }
    .mhd-crown-icon {
        font-size: 17px !important;
    }
    .mhd-sub-row {
        margin-top: 5px !important;
    }
    .detail-badge-status {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Form Đặt Cọc Giữ Biển Cân Đối Trên Mobile (Yêu Cầu Ảnh 4) */
    .detail-booking-card {
        padding: 16px 14px !important;
        margin-top: 18px !important;
        border-radius: 14px !important;
    }
    .detail-booking-card {
        padding: 16px 14px !important;
        margin-top: 18px !important;
    }
    .booking-card-head h4 {
        font-size: 14px !important;
        line-height: 1.35 !important;
        text-wrap: balance !important;
    }
    .booking-card-head p {
        font-size: 12px !important;
        margin-bottom: 12px !important;
        line-height: 1.45 !important;
    }
    .detail-form-row {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .detail-form-row input {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        font-size: 14px !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        -webkit-appearance: none !important;
        box-sizing: border-box !important;
    }
    .btn-detail-submit {
        width: 100% !important;
        height: 46px !important;
        font-size: 14px !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
    .booking-hotline-call {
        margin-top: 12px !important;
        padding-top: 12px !important;
        gap: 8px !important;
    }
    .booking-hotline-call > span {
        font-size: 12.5px !important;
        text-align: center !important;
        display: block !important;
    }
    .booking-call-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .btn-call-direct {
        background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        height: 40px !important;
        font-size: 12.5px !important;
        padding: 0 8px !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 800 !important;
    }
    .btn-zalo-direct {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
        color: #ffffff !important;
        height: 40px !important;
        font-size: 12.5px !important;
        padding: 0 8px !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 800 !important;
    }

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch;
    }
    .header-main,
    .topbar,
    .marquee-bar,
    .simulator-section,
    .simulator-container,
    .simulator-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Topbar Mobile */
    .topbar {
        padding: 4px 0 !important;
    }
    .topbar-container {
        justify-content: center !important;
        padding: 0 8px !important;
    }
    .topbar-left {
        font-size: 11px !important;
        gap: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .topbar-left span:nth-of-type(3),
    .topbar-left .topbar-divider:nth-of-type(2),
    .topbar-right {
        display: none !important;
    }

    /* Header Mobile - Menu đặt bên phải theo yêu cầu ảnh 2 */
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
    }
    .brand-logo {
        order: 1 !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        gap: 0 !important;
    }
    .brand-logo-img {
        height: 36px !important;
        width: auto !important;
        max-width: 140px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
        background: transparent !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        display: block !important;
    }
    .brand-title {
        font-size: 12px !important;
        letter-spacing: -0.3px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    .brand-slogan {
        font-size: 8px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 110px !important;
    }
    .header-hotline {
        order: 2 !important;
        flex-shrink: 0 !important;
        width: auto !important;
        padding: 4px 7px !important;
        gap: 4px !important;
        border-radius: 20px !important;
        background: #fff5f5 !important;
        border: 1px solid #fecaca !important;
    }
    .header-hotline .hotline-label {
        display: none !important;
    }
    .header-hotline .hotline-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
    .header-hotline .hotline-number {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: var(--primary-red) !important;
    }
    .mobile-menu-btn {
        order: 3 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        background: #fef2f2 !important;
        border: 1.5px solid #fecaca !important;
        color: #9c0000 !important;
        font-size: 16px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        margin-left: 4px !important;
        transition: all 0.2s ease !important;
    }

    /* BỎ MENU MAIN-NAV DẠNG VIÊN THUỐC TRÊN MOBILE THEO YÊU CẦU ẢNH 1 */
    .main-nav {
        display: none !important;
    }

    /* Listing Header & Section Title - Cân đối không bị rớt chữ (Ảnh 4) */
    .listing-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }
    .section-title {
        font-size: 18px !important;
        width: 100% !important;
        display: flex !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .sec-title-main {
        white-space: nowrap !important;
    }
    .view-controls {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        overflow-x: auto !important;
    }

    /* Plate Cards - Nút bấm và nhãn chữ cân đối hoàn hảo cả Mobile & Desktop */
    .plate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .plate-card-item {
        padding: 12px 8px !important;
        border-radius: 12px !important;
    }
    .plate-display-wrap {
        min-height: 56px !important;
        margin-bottom: 6px !important;
    }
    .plate-box.plate-dai {
        height: 52px !important;
        font-size: clamp(22px, 5.8vw, 27px) !important;
        letter-spacing: 0.9px !important;
        padding: 0 10px !important;
    }
    .plate-box.plate-dai .plate-dash {
        margin: 0 3px !important;
        font-size: clamp(19px, 5vw, 23px) !important;
    }
    .plate-box.plate-vuong {
        height: 76px !important;
        width: 112px !important;
        font-size: 22px !important;
    }
    .plate-box.plate-vuong .plate-line1,
    .plate-box.plate-vuong .plate-line2 {
        font-size: 23px !important;
        line-height: 1.02 !important;
    }
    .card-meta {
        margin-bottom: 5px !important;
        font-size: 11px !important;
    }
    .card-province {
        font-size: 11.5px !important;
    }
    .card-price {
        font-size: 16.5px !important;
        margin-bottom: 6px !important;
        letter-spacing: -0.3px !important;
    }
    .card-tagline {
        min-height: 42px !important;
        padding: 4px 5px !important;
        margin-bottom: 8px !important;
        border-radius: 7px !important;
        gap: 1.5px !important;
    }
    .card-tagline .tagline-main {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }
    .card-tagline .tagline-main.is-single {
        font-size: 10.5px !important;
    }
    .card-tagline .tagline-sub {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    .card-tools-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .tool-chip {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 1px !important;
        height: 40px !important;
        gap: 2.5px !important;
        border-radius: 7px !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .tool-chip i {
        font-size: 12.5px !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    .tool-chip span {
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
        color: #334155 !important;
        text-align: center !important;
    }
    .card-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
        width: 100% !important;
        margin-top: auto !important;
    }
    .btn-action {
        height: 35px !important;
        padding: 0 4px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        border-radius: 7px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .btn-action i {
        font-size: 11px !important;
    }
    .btn-tuvan {
        background: #ffffff !important;
        color: #9c0000 !important;
        border: 1.5px solid #9c0000 !important;
    }
    .btn-ynghia {
        background: linear-gradient(135deg, #9c0000 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        border: none !important;
    }

    /* Simulator Box & Intro - Tiết Kiệm Hàng, Chống Nhảy Dòng */
    .simulator-section {
        padding: 16px 10px 24px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .simulator-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .simulator-intro {
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .simulator-intro h1 {
        font-size: 16.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        text-wrap: balance !important;
        word-break: normal !important;
        text-align: center !important;
        width: 100% !important;
    }
    .simulator-intro p {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
        opacity: 0.92 !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Feature Pills - Dải Cuộn Ngang 1 Hàng Duy Nhất, Không Bao Giờ Rớt Dòng */
    .simulator-features {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px !important;
        padding: 2px 2px 6px !important;
        margin-bottom: 10px !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .simulator-features::-webkit-scrollbar {
        display: none;
    }
    .sim-feat-item {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 5px 9px !important;
        line-height: 1.2 !important;
        border-radius: 20px !important;
    }

    /* Slider Xe Sang - Cân Bằng Chiều Cao, Khắc Phục Khoảng Đen Trống */
    .hero-showcase-box,
    .hero-showcase-slider {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .slider-track {
        min-height: 175px !important;
        height: 175px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .hero-showcase-img-wrap {
        height: 175px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-showcase-caption {
        padding: 6px 10px 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-showcase-tag {
        font-size: 10px !important;
        margin-bottom: 2px !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-wrap: wrap !important;
    }
    .hero-showcase-text {
        font-size: 11px !important;
        padding-right: 45px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Simulator Box - Gọn Gàng Cân Đối 100% Khung */
    .simulator-box {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Simulator Controls & Tabs - 2 Hàng Đều Nhau Chuẩn 50/50, Không Bao Giờ Tràn Khung */
    .simulator-tabs {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        box-sizing: border-box !important;
    }
    .simulator-tabs .tab-group {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .simulator-tabs .sim-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 36px !important;
        padding: 6px 4px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .btn-text-full { display: none !important; }
    .btn-text-short { display: inline !important; }

    /* Plate Preview Container & Items */
    .plate-preview-wrapper {
        min-height: 85px !important;
        padding: 8px 6px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .license-plate-item.format-dai {
        width: 100% !important;
        max-width: 295px !important;
        min-width: 0 !important;
        height: 62px !important;
        padding: 0 12px !important;
        border-radius: 12px !important;
        border-width: 3px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .license-plate-item.format-dai .plate-single-line {
        font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
        font-size: clamp(27px, 7.6vw, 36px) !important;
        font-weight: 700 !important;
        letter-spacing: 1.4px !important;
        text-shadow: 0 1px 1px rgba(0,0,0,0.18) !important;
        white-space: nowrap !important;
    }
    .license-plate-item.format-dai .dash-part {
        margin: 0 4px !important;
    }
    .license-plate-item.format-vuong {
        width: 170px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 124px !important;
        padding: 6px 8px !important;
        border-radius: 14px !important;
        border-width: 3px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .license-plate-item.format-vuong .plate-top-line,
    .license-plate-item.format-vuong .plate-bottom-line {
        font-family: 'Barlow Condensed', 'DIN 1451 Mittelschrift', 'Bahnschrift', 'DIN Alternate', 'Oswald', sans-serif !important;
        font-size: 35px !important;
        font-weight: 700 !important;
        letter-spacing: 1.8px !important;
        line-height: 1.02 !important;
        text-shadow: 0 1px 1px rgba(0,0,0,0.18) !important;
        white-space: nowrap !important;
    }

    /* Simulator Input & Indicator - 100% Căn Giữa Chuẩn */
    .sim-input-row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 6px !important;
    }
    .sim-input-row input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
        padding: 8px 10px !important;
        letter-spacing: 1.5px !important;
        text-align: center !important;
    }
    .syntax-indicator {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        padding: 5px 8px !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        text-align: center !important;
    }

    /* Action Tools Grid - Cân Bằng Chiều Cao & Chống Nhảy Dòng */
    .sim-actions-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px !important;
        margin-top: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .sim-actions-grid .btn-tool-act {
        min-height: 38px !important;
        padding: 7px 4px !important;
        font-size: 11.5px !important;
        line-height: 1.25 !important;
        border-radius: 8px !important;
        text-align: center !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .sim-actions-grid .btn-tool-act i {
        font-size: 11.5px !important;
    }
    .sim-actions-grid .btn-tool-phatnguoi {
        grid-column: 1 / -1 !important;
        min-height: 38px !important;
        font-size: 11.5px !important;
        padding: 7px 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .btn-tu-van {
        min-height: 40px !important;
        font-size: 12.5px !important;
        padding: 9px 8px !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Modals & Detail Popups */
    .modal-wrapper {
        padding: 8px;
    }
    .modal-card {
        max-width: 96% !important;
        margin: auto;
        border-radius: 14px;
        max-height: 88vh !important;
        max-height: 88dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px !important;
    }
    .modal-card.modal-detail-large {
        padding: 14px 10px 28px !important;
    }
    .modal-header-simple {
        padding: 10px 12px;
    }
    .modal-title-bold {
        font-size: 13.5px;
    }
    .modal-form-content {
        padding: 14px 12px 20px !important;
    }
    .modal-empty-prompt {
        padding: 20px 12px !important;
        margin: 10px 0 16px !important;
    }
    .empty-prompt-icon {
        font-size: 34px !important;
        margin-bottom: 8px !important;
    }
    .modal-empty-prompt h3 {
        font-size: 14px !important;
    }
    .modal-empty-prompt p {
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
    }
    .parchment-scroll-card {
        padding: 20px 12px !important;
        margin-bottom: 14px !important;
    }
    .parchment-head {
        font-size: 14px !important;
    }
    .parchment-head b {
        font-size: 15px !important;
    }
    .parchment-calligraphy {
        margin: 8px 0 12px !important;
    }
    .parchment-calligraphy b {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .parchment-body {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .cert-card-wrap {
        padding: 18px 12px !important;
    }
    .cert-header-gold h3 {
        font-size: 15px !important;
    }
    .detail-quick-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .btn-tool-shortcut {
        min-width: 0;
        width: 100%;
        padding: 8px 4px;
        font-size: 11.5px;
        min-height: 38px;
    }
    .detail-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .detail-spec-card {
        padding: 8px 6px;
    }
    .detail-spec-card .spec-label {
        font-size: 10.5px;
    }
    .detail-spec-card .spec-val {
        font-size: 12.5px;
    }
    .detail-price-number {
        font-size: 24px;
    }

    /* Floating Contact Speed-Dial on Mobile (Triệt Để Hết Bị Đè Lên Nút Bấm) */
    .floating-contact {
        right: 12px;
        bottom: 14px;
        z-index: 995;
    }
    .float-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
        border: 2px solid #ffd700;
        color: #ffffff;
        font-size: 18px;
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
        cursor: pointer;
        position: relative;
        z-index: 2;
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .float-toggle-btn .icon-close {
        display: none;
    }
    .float-toggle-btn .icon-call {
        display: block;
    }
    .floating-items {
        position: absolute;
        bottom: 52px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px) scale(0.9);
        transform-origin: bottom right;
        transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 1;
    }
    .floating-contact.is-open .floating-items {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .floating-contact.is-open .float-toggle-btn {
        background: #0f172a;
        border-color: rgba(255, 215, 0, 0.6);
        transform: rotate(90deg);
        animation: none;
    }
    .floating-contact.is-open .float-toggle-btn .icon-close {
        display: block;
        font-size: 18px;
        color: #ffd700;
    }
    .floating-contact.is-open .float-toggle-btn .icon-call {
        display: none;
    }
    .float-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
        position: relative;
    }
    .float-btn.float-zalo span {
        font-size: 11px !important;
    }
    .float-tooltip {
        display: inline-block;
        position: absolute;
        right: 44px;
        background: rgba(15, 23, 42, 0.95);
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 6px;
        white-space: nowrap;
        border: 1px solid rgba(255, 215, 0, 0.35);
        box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        pointer-events: none;
    }

    /* Mobile Responsive for Empty Plate State */
    .empty-plate-state,
    .empty-state {
        padding: 24px 16px !important;
        margin: 20px auto !important;
    }
    .eps-icon-wrap,
    .empty-icon {
        width: 54px !important;
        height: 54px !important;
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    .eps-title,
    .empty-state h3 {
        font-size: 15px !important;
    }
    .eps-desc,
    .empty-state p {
        font-size: 12.5px !important;
        margin-bottom: 16px !important;
    }
    .eps-actions {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .btn-eps-reset,
    .btn-eps-order,
    .empty-state .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px !important;
        font-size: 13px !important;
    }

    /* Mobile Responsive for AI Chat Docked */
    .ai-chat-docked {
        right: 8px;
        left: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        height: 75vh;
        max-height: 560px;
        z-index: 10001;
    }
    .ai-chat-docked.minimized {
        height: 48px !important;
        bottom: 12px;
        left: 8px;
        right: 66px; /* Để trống không che nút Hotline/speed dial tại right: 12px */
    }
    .ai-chat-docked.minimized .ai-chat-card {
        height: 48px !important;
        border-radius: 24px;
    }
    .ai-chat-docked .ai-chat-header {
        padding: 9px 12px;
    }
    .ai-chat-docked .ai-header-name {
        font-size: 13.5px;
    }
    .ai-chat-docked .ai-header-sub {
        font-size: 10px;
    }
    .ai-chat-docked .ai-input-bar {
        padding: 9px 12px;
    }
    .ai-chat-docked .ai-input-bar input {
        padding: 9px 14px;
        font-size: 13px;
    }
    .ai-chat-docked .btn-ai-send {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* =========================================================================
   TỐI ƯU HÓA RESPONSIVE (DESKTOP / TABLET / MOBILE) CHO POPUP TÌM BIỂN & EMPTY STATE
   ========================================================================= */
@media (max-width: 768px) {
    #modalTuvan .modal-card {
        width: calc(100% - 20px);
        max-height: 92vh;
        overflow-y: auto;
    }
    #tvPlateSummaryBox {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    #tvPlateSummaryBox > div {
        text-align: left !important;
        width: 100%;
    }
    #tvCustomPlateInput,
    #tvName,
    #tvPhone,
    #tvNote {
        font-size: 16px !important; /* Ngăn iOS Safari tự động phóng to khi focus */
    }
    .empty-plate-state {
        padding: 28px 16px;
    }
    .empty-plate-state .eps-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .empty-plate-state .eps-actions button {
        width: 100%;
        justify-content: center;
    }
}



