@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --bg-dark: #090c10;
    --panel-bg: rgba(18, 24, 38, 0.95);
    --panel-border: rgba(255, 255, 255, 0.1);
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --red: #dc2626;
    --green: #10b981;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-plate: 'Inter', system-ui, monospace;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(220, 38, 38, 0.1) 0%, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background: rgba(9, 12, 16, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.9rem 0;
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 18px var(--gold-glow);
}
.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000000;
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--panel-border);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0 2rem 0;
    text-align: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold);
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.hero-title span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem auto;
}

/* Search Box Container */
.search-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 35px rgba(245, 158, 11, 0.12);
    max-width: 980px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}
.search-input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.search-input::placeholder {
    color: #64748b;
    font-weight: 400;
    letter-spacing: normal;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}
.filter-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}
.filter-select:focus {
    border-color: var(--gold);
}
.filter-select option {
    background: #131822;
    color: #fff;
}

/* REALISTIC LICENSE PLATE CARD BADGE */
.plate-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.plate-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px var(--gold-glow);
}

.plate-badge-container {
    margin: 0.5rem 0 1.25rem 0;
    display: flex;
    justify-content: center;
}

/* CAR LICENSE PLATE (Ô TÔ) */
.car-plate {
    background: #ffffff;
    border: 3px solid #1e293b;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    color: #0f172a;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 2px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 0 4px rgba(0,0,0,0.2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    text-transform: uppercase;
}
.car-plate::before {
    content: "VN";
    position: absolute;
    left: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 0 3px;
    border-radius: 3px;
}

/* MOTORBIKE LICENSE PLATE (XE MÁY) */
.motorbike-plate {
    background: #ffffff;
    border: 3px solid #1e293b;
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
    color: #0f172a;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 180px;
}

.plate-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.plate-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.status-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
}
.status-available { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.status-reserved { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.status-sold { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* Plates Grid */
.plates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

/* Feng Shui Calculator Section */
.fengshui-card {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(18,24,38,0.95));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 4rem 0;
}
.fengshui-result {
    display: none;
    margin-top: 1.25rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: left;
}

/* Modal Windows */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.modal-backdrop.active { display: flex; }
.modal-card {
    background: #121826;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}
.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: rgba(255,255,255,0.08);
    border: none; color: var(--text-muted);
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px;
}
.form-control {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border);
    border-radius: 10px; padding: 0.75rem 1rem; color: #fff; font-size: 0.95rem; outline: none;
}
.form-control:focus { border-color: var(--gold); }

/* Floating Contact Widget */
.floating-widget {
    position: fixed; bottom: 25px; right: 25px;
    display: flex; flex-direction: column; gap: 10px; z-index: 99;
}
.widget-btn {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}
.widget-btn:hover { transform: scale(1.1); }
.widget-zalo { background: #0088cc; }
.widget-phone { background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--panel-border);
    padding: 3rem 0 1.5rem 0;
    margin-top: 5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .search-input-group { flex-direction: column; }
    .search-input { font-size: 1rem; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .plates-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .header-actions .btn span { display: none; }
    .car-plate { font-size: 1.3rem; min-width: 180px; padding: 0.5rem 1rem; }
    .motorbike-plate { font-size: 1.1rem; min-width: 140px; }
    .site-footer .container > div { grid-template-columns: 1fr !important; }
    section[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.4rem; }
    .filter-grid { grid-template-columns: 1fr; }
    .plate-price { font-size: 1.2rem; }
    .logo { font-size: 1.2rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* Trust Badges Horizontal Bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}
.trust-item {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}
.trust-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.trust-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.trust-title { font-weight: 800; color: #fff; font-size: 0.95rem; }
@media (max-width: 768px) {
    .trust-bar { grid-template-columns: 1fr 1fr; }
}

/* SEO Footer Links Bar */
.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--panel-border);
    margin-top: 1.5rem;
}
.seo-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
}
.seo-links a:last-child { border-right: none; }
.seo-links a:hover { color: var(--gold); }

/* Admin Custom Table Styles */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.custom-table th {
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    text-align: left;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--panel-border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.custom-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Featured star pulse on plate cards */
.plate-card.featured { border-color: rgba(245,158,11,0.4); }
.plate-card.featured::after {
    content: "⭐ HOT";
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000; padding: 2px 8px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 900;
    animation: pulse-star 2s ease-in-out infinite;
}
@keyframes pulse-star {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Quick chip active state */
.quick-chip.active {
    background: rgba(245,158,11,0.2) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed; bottom: 90px; right: 25px;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid var(--panel-border);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    z-index: 98; transition: all 0.2s; backdrop-filter: blur(8px);
}
.scroll-top-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.scroll-top-btn.visible { display: flex; }
