/* Bảng màu chủ đạo của Bánh Xe Số theo tiêu chuẩn Web 4.0 (Indigo & Gold/Amber) — v20260619005 */
:root {
    --primary-color: #6366f1; /* Premium Indigo */
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);
    --secondary-color: #f59e0b; /* Warm Amber */
    --secondary-hover: #d97706;
    --secondary-light: rgba(245, 158, 11, 0.08);
    
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --text-white: #ffffff;
    
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-pulse: 0 0 0 0 rgba(99, 102, 241, 0.4);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid & Flex */
.grid {
    display: grid;
    gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
    align-items: center;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nút bấm (Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-pulse {
    animation: pulse 2.5s infinite;
}

/* Sticky Header */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 22px;
    color: var(--primary-hover);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #334155; /* Slate 700 */
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary-hover);
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 120px 0;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
                #f8fafc;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: rgba(99, 102, 241, 0.12);
    color: var(--primary-hover);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a; /* Slate 900 */
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 19px;
    color: #475569; /* Slate 600 */
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-mockup {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-6deg) rotateX(6deg) translateZ(0);
    transition: var(--transition);
}
.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(10px);
    box-shadow: 0 40px 80px -12px rgba(99, 102, 241, 0.2), 0 20px 40px -20px rgba(0, 0, 0, 0.25);
}

.mockup-header {
    background-color: #0f172a;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
}
.dot:nth-child(2) { background-color: #fbbf24; }
.dot:nth-child(3) { background-color: #10b981; }

.mockup-body {
    padding: 28px;
    background: rgba(248, 250, 252, 0.85);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Features Section */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.features-section {
    padding: 110px 0;
    background-color: white;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.feature-card-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #0f172a;
}

.feature-card-desc {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 110px 0;
    background-color: var(--bg-main);
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, rgba(255, 255, 255, 0) 70%), var(--bg-main);
}

.pricing-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: rgba(99, 102, 241, 0.12);
    color: var(--primary-hover);
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}

.plan-price {
    font-size: 38px;
    font-weight: 900;
    color: var(--primary-hover);
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.plan-desc {
    color: #475569;
    font-size: 14.5px;
    margin-bottom: 32px;
    min-height: 48px;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #334155;
}

.plan-feature-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* FAQs Section */
.faqs-section {
    padding: 110px 0;
    background-color: white;
}

.faqs-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-main);
    transition: var(--transition);
}
.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-trigger {
    padding: 22px 28px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: #1e293b;
}

.faq-icon {
    font-size: 22px;
    transition: var(--transition);
    color: #64748b;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 28px;
    background-color: white;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.04);
}

.faq-item.active .faq-trigger {
    color: var(--primary-hover);
    background-color: rgba(99, 102, 241, 0.02);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-item.active .faq-content {
    padding-bottom: 24px;
    padding-top: 10px;
    max-height: 250px; /* Sẽ được tính động bằng JS */
}

/* Footer Section */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 80px 0 40px 0;
    border-top: 1px solid #2d3748;
}

.footer-brand-title {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
}
.footer-link:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    text-align: center;
    font-size: 13px;
}

/* Auth Pages (Login / Register) Layouts */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background-color: var(--bg-main);
}

.auth-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 15px;
    transition: var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    accent-color: var(--primary-color);
}

.form-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
}

.auth-button {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer-link {
    color: var(--primary-color);
    font-weight: 600;
}
.auth-footer-link:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2d3748;
}

.sidebar-menu {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    color: #a0aec0;
}
.sidebar-item:hover, .sidebar-item.active {
    background-color: #2d3748;
    color: white;
}

.sidebar-item.active {
    border-left: 4px solid var(--primary-color);
}

/* Sidebar Logout styling on desktop */
.sidebar-logout-wrap {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #2d3748;
}
.sidebar-logout-wrap .sidebar-item {
    color: #f87171 !important; /* clear, high-contrast bright red */
    background-color: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-logout-wrap .sidebar-item:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}
.sidebar-logout-wrap .sidebar-item:active {
    transform: translateY(0);
}

.main-content {
    background-color: var(--bg-main);
    padding: 40px;
    min-width: 0;
}

.trial-alert {
    background-color: var(--secondary-light);
    border: 1px solid var(--secondary-color);
    color: #c05621;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.stat-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin: 8px 0;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 171, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(249, 171, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 171, 0, 0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-image {
        order: -1;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: max(180px, calc(145px + env(safe-area-inset-bottom, 0px)));
        grid-template-rows: auto;
    }
    .sidebar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 0.5px solid rgba(0, 0, 0, 0.08) !important;
        border-right: none !important;
        padding: 4px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 1000;
        border-radius: 0 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
        flex-direction: row !important;
        align-items: center;
        justify-content: space-around;
    }
    .sidebar .logo-wrapper {
        display: none !important;
    }
    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center;
        gap: 0 !important;
    }
    .sidebar-item {
        flex: 1;
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 0 !important;
        gap: 3px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        background: transparent !important;
        margin: 0 !important;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        border-left: none !important;
    }
    .sidebar-item span {
        display: inline-block;
        max-width: 100% !important;
        word-break: normal;
        white-space: normal;
    }
    .sidebar-item .icon-wrapper {
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-item.active {
        color: var(--primary-color) !important;
        font-weight: 700;
        background: transparent !important;
        border-left: none !important;
    }
    .sidebar-item.active .icon-wrapper {
        transform: scale(1.1) translateY(-1px);
    }
    .sidebar-item svg {
        width: 20px;
        height: 20px;
        margin: 0 !important;
    }
    .logout-mobile-item {
        color: #fca5a5 !important;
    }
    .logout-mobile-item:active, .logout-mobile-item.active {
        background-color: rgba(239, 68, 68, 0.2) !important;
        color: #ef4444 !important;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .main-content {
        padding: 16px !important;
        padding-bottom: max(180px, calc(145px + env(safe-area-inset-bottom, 0px))) !important; /* bottom nav + safe area */
    }
}


/* CCCD AI Scanner Modals & UI Components */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 480px;
    padding: 32px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
    text-align: center;
}
.modal-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}
.modal-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.choice-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.choice-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}
.choice-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.choice-btn:hover .choice-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}
.choice-text-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a202c;
}
.choice-text-desc {
    font-size: 12px;
    color: var(--text-muted);
}
.modal-close-btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}
.modal-close-btn:hover {
    color: #1a202c;
}

/* Loading State CSS */
.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.loading-pulse-ring {
    position: relative;
    width: 80px;
    height: 80px;
}
.loading-pulse-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.15;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.loading-spinner {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    font-size: 16px;
    font-weight: 750;
    color: #1a202c;
    animation: pulse-opacity 1.5s ease-in-out infinite;
    text-align: center;
    min-height: 24px;
}
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Form and alerts styling */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background-color: #1a202c;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}
.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast-success {
    border-left: 4px solid #10b981;
}
.toast-error {
    border-left: 4px solid #ef4444;
}
.form-row {
    margin-bottom: 16px;
}
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.4;
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.modal-actions .btn {
    flex: 1;
    padding: 10px 16px;
}

@media (max-width: 576px) {
    .modal-overlay {
        align-items: flex-end; /* Align bottom sheets to the bottom of the screen */
    }
    .modal-card {
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        border-radius: 20px 20px 0 0; /* Bo góc trên như sheet native */
        padding: 24px 20px 32px 20px;
        max-height: 92vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.94, 0.6, 1);
    }
    .modal-overlay.active .modal-card {
        transform: translateY(0) !important;
    }
    /* Thanh nắm kéo giả lập trên Mobile Bottom Drawer */
    .modal-card::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background-color: #cbd5e1;
        border-radius: 2px;
        margin: 0 auto 16px auto;
    }
    /* Cỡ chữ 16px để chống auto-zoom trên iOS */
    .form-input, select.form-input, textarea.form-input {
        font-size: 16px !important;
    }
    /* Xếp dọc nút bấm trên Mobile để dễ thao tác */
    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-actions .btn {
        width: 100% !important;
        padding: 12px 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   OWNER MANAGE WEB APP — Styles for /manage/* pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page Header */
.manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}
.manage-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
}
.manage-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}
.section-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
    -webkit-appearance: none;
}
.section-tabs::-webkit-scrollbar-track,
.section-tabs::-webkit-scrollbar-thumb {
    display: none;
    background: transparent;
}
.section-tab {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.section-tab.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.section-tab:hover:not(.active) {
    color: #4a5568;
}
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 5px;
    background: var(--primary-light);
    color: var(--primary-color);
}
.section-tab.active .tab-badge {
    background: var(--primary-color);
    color: white;
}

/* Room Cards Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.room-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    animation: cardFadeIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--room-accent, #68d391);
    transition: var(--transition);
}
.room-card.occupied::before {
    background: #fc8181;
}
.room-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c3dafe;
    transform: translateY(-2px);
}
.room-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.room-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}
.room-card-property {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.room-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.room-status-badge.vacant {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
}
.room-status-badge.occupied {
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
}
.room-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.room-status-badge.vacant .room-status-dot { background: #48bb78; }
.room-status-badge.occupied .room-status-dot { background: #fc8181; animation-play-state: running; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.room-card-info {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.room-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}
.room-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.room-card-actions .btn-action {
    flex: 1;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-checkin {
    background: var(--primary-color);
    color: white;
}
.btn-checkin:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}
.btn-view-booking {
    background: #ebf8ff;
    color: #2b6cb0;
}
.btn-view-booking:hover {
    background: #bee3f8;
}
.btn-edit-room {
    background: #f1f5f9;
    color: #4a5568;
    padding: 9px !important;
}
.btn-edit-room:hover {
    background: #e2e8f0;
}

/* FAB Button */
.fab-btn {
    position: fixed;
    bottom: calc(130px + 12px);  /* Above bottom nav on mobile */
    /* Overridden to 28px on desktop via @media (min-width: 769px) */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26,115,232,0.45);
    transition: var(--transition);
    z-index: 100;
    text-decoration: none;
}
.fab-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 24px rgba(26,115,232,0.55);
}
@media (min-width: 769px) {
    .fab-btn {
        bottom: 28px;
    }
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.booking-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    animation: cardFadeIn 0.25s ease forwards;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.booking-item:hover {
    border-color: #c3dafe;
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.booking-item-left {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}
.booking-item-body {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 42px - 56px - 20px);
    overflow: hidden;
}
.booking-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.booking-item-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.booking-days-left {
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    text-align: right;
}
.booking-days-left .days-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #1a202c;
}
.booking-days-left .days-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Guest List */
.guest-search-bar {
    position: relative;
    margin-bottom: 16px;
}
.guest-search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}
.guest-search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.guest-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.guest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.guest-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    animation: cardFadeIn 0.2s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.guest-item:hover {
    border-color: #c3dafe;
    box-shadow: var(--shadow-sm);
}
.guest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.guest-info {
    flex: 1;
    min-width: 0;
}
.guest-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.guest-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.guest-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}
.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-icon.danger:hover {
    background: #fff5f5;
    color: #c53030;
    border-color: #fc8181;
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    animation: cardFadeIn 0.3s ease forwards;
}
.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.property-card-banner {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.property-card-body {
    padding: 16px 20px 20px;
}
.property-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 4px;
}
.property-card-address {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.property-stat {
    text-align: center;
}
.property-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}
.property-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}
.property-card-actions {
    display: flex;
    gap: 8px;
}

/* Manage Form Layout */
.manage-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    max-width: 600px;
    margin: 0 auto;
}
.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Success/Error Flash */
.flash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: cardFadeIn 0.3s ease;
}
.flash-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}
.flash-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* Animations */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.property-select-mobile { display: none; }

/* Mobile adjustments for manage pages */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .property-grid { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .manage-header { margin-bottom: 16px; }
    .manage-header h1 { font-size: 20px; }
    .manage-header p { font-size: 13px; }
    .manage-form-card { padding: 20px 16px; border-radius: var(--radius-md); }
    .section-tabs { 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start; 
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .section-tab { 
        flex: 1; 
        padding: 8px 6px !important;
    }

    .property-tabs-pc { display: none !important; }
    .property-select-mobile { display: block !important; }

    /* Touch targets & Form field size optimization on mobile */
    .form-input, 
    .form-control,
    .form-group select, 
    .form-group input[type="text"], 
    .form-group input[type="number"], 
    .form-group input[type="date"], 
    .form-group input[type="email"], 
    .form-group input[type="tel"],
    .form-group textarea {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevents auto zoom in iOS Safari */
        padding: 12px 14px !important;
        border-radius: var(--radius-md) !important;
    }
    .form-group label, .form-label {
        font-size: 13.5px !important;
        margin-bottom: 6px !important;
    }
    .form-group {
        margin-bottom: 18px !important;
    }

    /* Sticky action bar above bottom navigation */
    .form-actions-container {
        position: fixed !important;
        bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-card) !important;
        padding: 12px 16px !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
        z-index: 999 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .form-actions-container .btn,
    .form-actions-container a {
        flex: 1 !important;
        margin: 0 !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Room card styles in 2-column mobile layout */
    .room-card {
        padding: 12px !important;
        gap: 8px !important;
        border-radius: 12px !important;
        position: relative !important;
    }
    .room-card-title {
        font-size: 14px !important;
    }
    .room-card-property {
        font-size: 11px !important;
    }
    .room-card-info {
        font-size: 12px !important;
    }
    .room-card-price {
        font-size: 13.5px !important;
    }
    .room-card .room-status-badge {
        padding: 2px 6px !important;
        font-size: 10px !important;
        margin-right: 28px !important;
    }
    .room-card-actions {
        margin-top: auto !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .room-card .btn-action {
        padding: 6px 8px !important;
        font-size: 11.5px !important;
        height: 34px !important;
        border-radius: 8px !important;
    }
    /* Float the edit room button to top right */
    .room-card .btn-edit-room {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        border: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 5 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }
    .room-card .btn-edit-room svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Booking item: compact on mobile */
    .booking-item { padding: 12px 14px; gap: 10px; }
    .booking-item-left { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; }
    .booking-days-left .days-num { font-size: 16px; }

    /* Guest item: compact */
    .guest-item { padding: 12px 14px; }
    .guest-avatar { width: 38px; height: 38px; font-size: 14px; }
    .guest-name { font-size: 14px; }

    /* Property card banner smaller */
    .property-card-banner { height: 80px; }

    /* FAB stays above bottom nav */
    .fab-btn { bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px) !important; right: 14px; width: 50px; height: 50px; }

    /* Manage header action button — smaller on mobile */
    .manage-header .btn { font-size: 13px; padding: 8px 14px; }
}

/* Extra small phones (< 380px) */
@media (max-width: 380px) {
    .section-tab { font-size: 11px; padding: 7px 6px; }
    .tab-badge { display: none; }
    .room-card-title { font-size: 14px; }
    .booking-item-title { font-size: 13px; }
}

/* Modals 4.0 Styles */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Slate 900 translucent */
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal.active {
    display: flex;
    opacity: 1;
}

.policy-modal-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-modal.active .policy-modal-card {
    transform: translateY(0);
}

.policy-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.policy-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.policy-modal-close {
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.policy-modal-close:hover {
    color: #ef4444;
}

.policy-modal-body {
    padding: 28px;
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

.policy-modal-body h5 {
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 8px;
}

.policy-modal-body p {
    margin-bottom: 14px;
}

.policy-modal-body ul {
    margin-bottom: 14px;
    padding-left: 20px;
}

/* ══════════════════════════════════════════════════════════
   NATIVE MOBILE CUSTOM CLASSES (BENTO, BOTTOM SHEET, CAROUSEL)
   ══════════════════════════════════════════════════════════ */

/* Bento Widget: Points Card Native */
.points-card-native {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(49, 46, 129, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.points-card-native::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}
.points-card-native .card-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}
.points-card-native .card-label {
    font-size: 11px;
    color: #a5b4fc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.points-card-native .card-balance {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.points-card-native .points-suffix {
    font-size: 13px;
    color: #e0e7ff;
    font-weight: 500;
}
.points-card-native .card-converted-value {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
}
.points-card-native .btn-refill-native {
    background: var(--secondary-color);
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    z-index: 1;
}
.points-card-native .btn-refill-native:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

/* Horizontal Onboarding Scroll Carousel */
.onboarding-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 0 16px 0;
    -webkit-overflow-scrolling: touch;
}
.onboarding-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
.onboarding-step-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}
.onboarding-step-number {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.onboarding-step-card.completed .onboarding-step-number {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.onboarding-step-card.completed {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.02);
}
.onboarding-step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.onboarding-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}
.onboarding-step-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.onboarding-step-action {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.onboarding-step-completed-text {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

/* Horizontal Filter Pills Selector */
.filter-pills-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 4px 0 16px 0;
    -webkit-overflow-scrolling: touch;
}
.filter-pills-container::-webkit-scrollbar {
    display: none;
}
.pill-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}
.pill-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}
.pill-item .pill-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}
.pill-item.active .pill-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Bottom Sheet Drawer Modal (for Camera & File Upload picker) */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.bottom-sheet-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 92vh;
    overflow-y: auto;
}
.bottom-sheet-overlay.active .bottom-sheet-card {
    transform: translateY(0);
}
.bottom-sheet-drag-handle {
    width: 36px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 18px auto;
}
.sheet-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 6px;
}
.sheet-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}
.sheet-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sheet-action-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.sheet-action-row:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}
.action-icon-bg {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.action-text-wrapper {
    display: flex;
    flex-direction: column;
}
.action-main-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.action-sub-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}
.sheet-close-btn {
    width: 100%;
    padding: 14px;
    background: rgba(226, 232, 240, 0.4);
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.sheet-close-btn:hover {
    background: rgba(226, 232, 240, 0.6);
}

/* Premium Booking Ticket Style */
.booking-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}
.booking-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.15);
}
.booking-item-left {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   MOBILE NATIVE REDESIGN 2026 FOR BÁNH XE SỐ
   ========================================================================== */

/* 1. Header Pill Mini Ví điểm & Bell */
.header-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
.header-mini-pill:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* 2. Bento KPI Mini Grid */
.bento-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.bento-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.bento-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.bento-kpi-info {
    display: flex;
    flex-direction: column;
}
.bento-kpi-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}
.bento-kpi-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 3. Alert Strip (Nhắc nợ khẩn cấp) */
.alert-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: var(--transition);
}
.alert-strip:hover {
    background: #fff0f0;
}
.alert-strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c53030;
    font-weight: 600;
}
.alert-strip-arrow {
    font-size: 12px;
    color: #e53e3e;
    font-weight: 700;
}

/* 4. Compact Room Grid 2 Cột */
.compact-room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.compact-room-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    min-height: 94px;
}
.compact-room-card:active {
    transform: scale(0.97);
}

/* Các trạng thái Pastel cho Card phòng */
.room-status-vacant {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
.room-status-vacant .compact-room-name {
    color: #14532d;
}
.room-status-vacant .compact-room-status-pill {
    background: #dcfce7;
    color: #15803d;
}

.room-status-occupied {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
.room-status-occupied .compact-room-name {
    color: #7f1d1d;
}
.room-status-occupied .compact-room-status-pill {
    background: #fee2e2;
    color: #b91c1c;
}

.room-status-expired-prop {
    background: #fafaf9 !important;
    border-color: #e7e5e4 !important;
}
.room-status-expired-prop .compact-room-name {
    color: #78716c;
}
.room-status-expired-prop .compact-room-status-pill {
    background: #f5f5f4;
    color: #78716c;
}

.compact-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}
.compact-room-name {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compact-room-status-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.compact-room-body {
    margin-top: 8px;
}
.compact-room-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}
.compact-room-guest {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.compact-room-alert {
    font-size: 10px;
    font-weight: 600;
    color: #d97706;
    margin-top: 2px;
}

/* 5. Nút tròn FAB nổi di động */
.fab-button {
    position: fixed;
    right: 20px;
    bottom: 80px; /* Above Bottom Navigation Bar */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab-button:active {
    transform: scale(0.9) rotate(45deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.fab-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

/* 6. Giao diện Bottom Sheet đa năng */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.bottom-sheet-card {
    width: 100%;
    background: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 16px 20px 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
}
.bottom-sheet-overlay.active .bottom-sheet-card {
    transform: translateY(0);
}
.bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 16px auto;
}
.sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 4px 0;
}

/* 7. Carousel Khuyến mãi chân trang */
.mini-promo-carousel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(124, 58, 237, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* end */
