﻿/* ==========================================
   TÔNG MÀU & THIẾT KẾ CHUẨN ĐẠO SƯ (WEB & MOBILE)
   ========================================== */
:root {
    --bg-deep: #1A1311; /* Đen nâu huyền bí từ privacy.html */
    --bg-body: #0a0a0a;
    --gold-main: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.3);
    --gold-soft: rgba(212, 175, 55, 0.1);
    --text-primary: #FDF7F2;
    --text-secondary: rgba(253, 247, 242, 0.7);
    --card-bg: rgba(255, 255, 255, 0.03);
    --red: #C82A2A;
    --green: #2E7D32;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   CÁC COMPONENT DÙNG CHUNG (CARDS & BUTTONS)
   ========================================== */
.card {
    background: var(--card-bg);
    border: 1px dashed var(--gold-dim);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.btn {
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), transparent);
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    box-shadow: 0 4px 15px rgba(212,175,55,0.15);
}

    .btn-primary:hover {
        background: var(--gold-soft);
    }

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

.btn-danger {
    background: rgba(200,42,42,0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    color: var(--gold-main);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-control {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--gold-dim);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

    .input-control:focus {
        border-color: var(--gold-main);
    }

/* ==========================================
   RESPONSIVE LAYOUT (TOP NAV vs BOTTOM NAV)
   ========================================== */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.mobile-header {
    display: none;
}

.bottom-nav {
    display: none;
}

.web-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 19, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-dim);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-logo {
    color: var(--gold-main);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.web-nav {
    display: flex;
    gap: 30px;
}

    .web-nav .nav-item {
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 1.1rem;
        transition: 0.3s;
    }

        .web-nav .nav-item.active {
            color: var(--gold-main);
            font-weight: bold;
        }

        .web-nav .nav-item:hover {
            color: #fff;
        }

.web-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pill-sao {
    background: var(--gold-soft);
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.avatar-btn {
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Ẩn / Hiện TABS */
.tab {
    display: none;
}

    .tab.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

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

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

/* ==========================================
   SMART MODALS (Tự biến đổi Mobile / PC)
   ========================================== */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    display: none; /* JS Toggle class 'show' để hiện */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    /* Ghi đè JS cũ: Đổi display từ flex về dạng có show class */
    .sheet-overlay.show {
        display: flex;
        animation: bgFadeIn 0.3s forwards;
    }

.sheet {
    background: var(--bg-deep);
    border: 1px solid var(--gold-main);
    border-radius: 15px;
    width: 100%;
    max-width: 500px; /* Căn giữa màn hình PC */
    max-height: 90vh;
    padding: 25px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sheet-overlay.show .sheet {
    transform: scale(1);
}

.modal-large {
    max-width: 700px;
}

.modal-xlarge {
    max-width: 1100px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--gold-dim);
    padding-bottom: 10px;
}

.sheet-title {
    margin: 0;
    color: var(--gold-main);
    font-size: 1.3rem;
}

.btn-close-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

    .btn-close-icon:hover {
        color: var(--red);
    }

/* ==========================================
   MEDIA QUERY CHO MOBILE (< 768px)
   ========================================== */
@media (max-width: 768px) {
    .web-header {
        display: none;
    }
    /* Ẩn Top Nav PC */

    .main-container {
        padding: 15px;
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(26, 19, 17, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        z-index: 100;
        border-bottom: 1px solid var(--gold-dim);
    }

        .mobile-header .header-title {
            margin: 0;
            color: var(--gold-main);
            font-size: 1.3rem;
        }

        .mobile-header .header-sub {
            margin: 0;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }

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

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-deep);
        border-top: 1px solid var(--gold-dim);
        padding: 10px 0;
        padding-bottom: env(safe-area-inset-bottom, 10px);
        z-index: 100;
        justify-content: space-around;
    }

        .bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-secondary);
            font-size: 0.75rem;
            gap: 5px;
            cursor: pointer;
        }

            .bottom-nav .nav-item.active {
                color: var(--gold-main);
            }

            .bottom-nav .nav-item i {
                font-size: 1.3rem;
            }

    /* Modals trượt từ dưới lên như App thật */
    .sheet-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .sheet {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
    }

    .sheet-overlay.show .sheet {
        transform: translateY(0);
    }
}

/* ==========================================
   CÁC LỚP TIỆN ÍCH DÙNG CHUNG
   ========================================== */
.w-100 {
    width: 100%;
}

.mt-15 {
    margin-top: 15px;
}

.mt-10 {
    margin-top: 10px;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

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

.text-muted {
    color: var(--text-secondary);
}

.text-white {
    color: #fff;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-icon {
    font-size: 3rem;
    color: var(--gold-main);
    margin-bottom: 15px;
}

.loader-text {
    color: var(--gold-main);
    font-weight: bold;
    letter-spacing: 1px;
}

/* Các style riêng cho Lá số Tử Vi (Giữ lại từ file cũ) */
.tuvi-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--gold-main);
    border: 2px solid var(--gold-main);
    border-radius: 8px;
    padding: 2px;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 75vh;
}

.tuvi-cell {
    background: #0a0e17;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

.tuvi-center {
    grid-area: 2 / 2 / 4 / 4;
    background: radial-gradient(circle, rgba(212,175,55,0.05), #0a0e17);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

/* 1. SỬA TRIỆT ĐỂ LỖI POPUP NHẢY RA GÓC TRÁI */
.sheet-overlay.slide-view {
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
}

/* 2. LƯỚI RESPONSIVE CHO XEM CHI TIẾT QUẺ (TÀNG THƯ) */
@media (min-width: 769px) {
    .report-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .report-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* ==========================================
   CUSTOM ALERT MODAL (CHỐNG LỆCH, CĂN GIỮA TUYỆT ĐỐI)
   ========================================== */
#custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10005 !important; /* Ép z-index cao hơn tất cả các Slide/Sheet */
    display: none; /* JS sẽ đổi thành flex khi bật */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    #custom-modal-overlay.show {
        opacity: 1;
    }

.custom-modal-box {
    background: var(--bg-deep);
    border: 1px solid var(--gold-main);
    border-radius: 16px;
    width: 100%;
    max-width: 350px; /* Độ rộng vừa vặn cho hộp thoại */
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#custom-modal-overlay.show .custom-modal-box {
    transform: scale(1);
}

#custom-modal-icon {
    font-size: 3.5rem;
    color: var(--gold-main);
    margin-bottom: 15px;
    display: block;
}

#custom-modal-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 25px;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================
   BÁT TỰ THIÊN BÀN (UI CHUẨN LÁ SỐ CỔ TRUYỀN)
   ========================================== */
.tuvi-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(95px, 1fr)); /* Chiều cao động để vừa thiết bị di động */
    gap: 1px;
    background: var(--gold-main); /* Khung lưới màu vàng kim chuẩn chỉ */
    border: 3px solid var(--gold-main);
    padding: 1px;
    width: 100%;
    margin: 0 auto;
}

.tuvi-cell {
    background: #110e0b; /* Màu giấy cổ / đen nâu */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

    .tuvi-cell:hover {
        background: #1a1510;
        box-shadow: inset 0 0 25px rgba(212,175,55,0.25);
    }

.tuvi-center {
    grid-area: 2 / 2 / 4 / 4;
    background: radial-gradient(circle at center, #1e1812, #0a0806);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--gold-dim);
    position: relative;
}

    /* Biểu tượng Âm Dương in chìm mờ ở giữa Thiên Bàn */
    .tuvi-center::before {
        content: '\f6ad'; /* Mã icon FontAwesome fa-yin-yang */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        font-size: 8rem;
        color: rgba(212,175,55,0.03);
        z-index: 0;
    }

    .tuvi-center > * {
        z-index: 1;
    }

.tb-title {
    font-size: 1.1rem;
    color: var(--gold-main);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.tb-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-style: italic;
}

.tb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 15px;
    text-align: left;
    font-size: 0.75rem;
    width: 100%;
    padding: 0 5px;
}

.tb-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 2px;
}

.tb-label {
    color: var(--text-secondary);
}

.tb-value {
    font-weight: bold;
    color: var(--gold-main);
}

/* Địa Bàn: Cấu trúc bên trong 1 Cung */
.cell-chinh-tinh {
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.cell-phu-tinh-grid {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    flex: 1;
    overflow: hidden;
    line-height: 1.35;
}

.col-sao-tot {
    text-align: left;
    color: #A5D6A7;
    width: 50%;
    padding-right: 2px;
}

.col-sao-xau {
    text-align: right;
    color: #EF9A9A;
    width: 50%;
    padding-left: 2px;
}

.cell-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.65rem;
    margin-top: auto;
    border-top: 1px dotted rgba(212,175,55,0.3);
    padding-top: 3px;
}

.cell-ten-cung {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: rgba(212,175,55,0.06); /* Tên cung làm Watermark chìm */
    pointer-events: none;
    white-space: nowrap;
}

/* Định vị 12 cung */
.cell-ty2 {
    grid-area: 4 / 3;
}

.cell-suu {
    grid-area: 4 / 2;
}

.cell-dan {
    grid-area: 4 / 1;
}

.cell-mao {
    grid-area: 3 / 1;
}

.cell-thin {
    grid-area: 2 / 1;
}

.cell-ty {
    grid-area: 1 / 1;
}

.cell-ngo {
    grid-area: 1 / 2;
}

.cell-mui {
    grid-area: 1 / 3;
}

.cell-than {
    grid-area: 1 / 4;
}

.cell-dau {
    grid-area: 2 / 4;
}

.cell-tuat {
    grid-area: 3 / 4;
}

.cell-hoi {
    grid-area: 4 / 4;
}

/* Tuần/Triệt */
.tt-marker {
    position: absolute;
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.tt-triet {
    top: 0;
    left: 0;
    background: #C82A2A;
}

.tt-tuan {
    top: 0;
    right: 0;
    background: #1976D2;
}

.tt-tuan-triet {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #9C27B0;
}

/* Màu sắc Ngũ hành cho Chính Tinh */
.hanhKim {
    color: #E0E0E0 !important;
}

.hanhMoc {
    color: #81C784 !important;
}

.hanhThuy {
    color: #4FC3F7 !important;
}

.hanhHoa {
    color: #E57373 !important;
}

.hanhTho {
    color: #D7CCC8 !important;
}

/* ==========================================
   UX/UI HỒ SƠ (PROFILE)
   ========================================== */
.profile-info-center {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--gold-dim);
    background: radial-gradient(circle at top, rgba(212,175,55,0.05), transparent);
    border-radius: 12px;
}

.profile-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.3s;
}

    .profile-menu .menu-item:hover {
        background: rgba(212,175,55,0.03);
        padding-left: 10px; /* Hiệu ứng lướt nhẹ sang phải khi chạm */
        border-radius: 8px;
    }

.profile-menu .menu-icon {
    font-size: 1.5rem;
    color: var(--gold-main);
    width: 40px;
    text-align: center;
}

.profile-menu .menu-text {
    flex: 1;
    padding-left: 10px;
}

    .profile-menu .menu-text h4 {
        margin: 0 0 5px 0;
        color: var(--text-primary);
        font-size: 1rem;
    }

    .profile-menu .menu-text p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }
/* ==========================================
   GIAO DIỆN THANH TOÁN (PAYMENT & QR CODE)
   ========================================== */
.qr-box {
    background: #ffffff; /* Nền trắng để máy quét QR dễ nhận diện */
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
    margin: 10px auto 20px;
    border: 2px solid var(--gold-main);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

#qr-code-img {
    max-width: 100%;
    height: auto;
    width: 260px; /* Ép kích thước tối đa chống vỡ layout */
    display: block;
}

.bank-info {
    background: linear-gradient(145deg, rgba(212,175,55,0.05), transparent);
    border: 1px dashed var(--gold-dim);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

    .bank-info p {
        margin: 5px 0;
        font-size: 0.95rem;
        color: var(--text-secondary);
    }

.highlight-text {
    color: #E57373;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(229, 115, 115, 0.3);
}

.payment-status {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/* ==========================================
   UX/UI MÀN HÌNH CHÀO MỪNG (ONBOARDING)
   ========================================== */
.onboarding-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* Kính mờ huyền bí che background */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.ob-step {
    display: none;
    width: 100%;
    animation: slideUp 0.4s ease forwards;
}

    .ob-step.active {
        display: block;
    }

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

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

/* Hiệu ứng hover cho nút Ẩn danh */
.ob-btn-guest:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold-main) !important;
    color: var(--gold-main) !important;
}
/* ==========================================
   NÚT NỔI (FAB) VẤN ĐẠO TRONG TÀNG THƯ
   ========================================== */
.fab-ask {
    position: fixed;
    bottom: 90px; /* Nằm ngay trên Thanh điều hướng (Bottom Nav) ở Mobile */
    right: 20px;
    background: linear-gradient(135deg, var(--gold-main), #b8962e);
    color: var(--bg-deep); /* Chữ tối màu trên nền Vàng kim để nổi bật tuyệt đối */
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 90;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    /* Hiệu ứng nảy lên khi bấm hoặc trỏ chuột */
    .fab-ask:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(212,175,55,0.6);
    }

/* Tinh chỉnh vị trí thông minh cho màn hình PC/Laptop */
@media (min-width: 769px) {
    .fab-ask {
        bottom: 40px; /* Do PC không có Bottom Nav nên hạ thấp xuống cho đẹp */
        right: calc(50% - 370px); /* Neo sát mép phải của Container 800px ở giữa màn hình */
    }
}

/* ==========================================
   MODAL CHIÊM NGHIỆM (REVIEW OPTIONS)
   ========================================== */
.review-options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Chia 2 cột đều nhau */
    gap: 12px;
}

.opt-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    padding: 15px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .opt-btn i {
        font-size: 1.25rem; /* ĐÃ GIẢM: Từ 1.6rem xuống 1.25rem cho thanh thoát */
        margin-bottom: 2px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* Hiệu ứng trỏ chuột (PC) */
    .opt-btn:hover {
        background: rgba(212,175,55,0.05);
        border-color: var(--gold-dim);
        color: var(--text-primary);
    }

    /* HIỆU ỨNG KHI ĐƯỢC CHỌN (ACTIVE) */
    .opt-btn.active {
        background: linear-gradient(145deg, rgba(212,175,55,0.15), rgba(20,20,20,0.8));
        border-color: var(--gold-main);
        color: var(--gold-main);
        box-shadow: 0 4px 15px rgba(212,175,55,0.2);
        font-weight: bold;
    }

        /* Phóng to Icon khi được chọn */
        .opt-btn.active i {
            transform: scale(1.15); /* ĐÃ GIẢM: Phóng to nhẹ nhàng hơn (từ 1.2 xuống 1.15) */
        }
/* ==========================================
   ONBOARDING AUTH EXPERIENCE (WEB)
   ========================================== */
.onboarding-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: stretch;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 28%), radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 24%), linear-gradient(180deg, #0b0a09 0%, #14100c 48%, #1c1510 100%);
}

.onboarding-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: linear-gradient(rgba(212,175,55,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9), transparent 75%);
}

.onboarding-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(22px);
    pointer-events: none;
    opacity: 0.65;
}

.onboarding-orb-left {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -40px;
    background: rgba(212,175,55,0.10);
}

.onboarding-orb-right {
    width: 220px;
    height: 220px;
    top: 120px;
    right: -60px;
    background: rgba(212,175,55,0.08);
}

.ob-stage {
    width: 100%;
    min-height: calc(100vh - 48px);
    position: relative;
    align-items: center;
    justify-content: center;
}

.ob-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 24px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.ob-hero-panel,
.ob-panel-card,
.ob-form-card {
    border-radius: 28px;
    border: 1px solid rgba(212,175,55,0.18);
    box-shadow: 0 16px 48px rgba(0,0,0,0.32);
    backdrop-filter: blur(14px);
}

.ob-hero-panel {
    padding: 28px;
    background: linear-gradient(145deg, rgba(43,28,20,0.92), rgba(20,16,12,0.86));
}

.ob-auth-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ob-panel-card {
    padding: 22px;
    background: rgba(255,255,255,0.035);
}

.ob-panel-highlight {
    background: linear-gradient(145deg, rgba(212,175,55,0.10), rgba(255,255,255,0.025));
}

.ob-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--gold-main);
    background: rgba(212,175,55,0.10);
    border: 1px solid rgba(212,175,55,0.20);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ob-badge-soft {
    background: rgba(255,255,255,0.04);
}

.ob-display-title {
    margin: 18px 0 10px;
    color: var(--gold-main);
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.ob-display-subtitle {
    margin: 0 0 24px;
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.04rem;
    line-height: 1.72;
}

.ob-hero-carousel {
    position: relative;
    min-height: 330px;
}

.ob-hero-track {
    position: relative;
    min-height: 300px;
}

.ob-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(212,175,55,0.16);
    background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(255,255,255,0.03));
}

    .ob-hero-slide.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.ob-hero-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-main);
    border: 1px solid rgba(212,175,55,0.20);
    background: rgba(212,175,55,0.12);
    box-shadow: 0 0 0 8px rgba(212,175,55,0.03);
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.ob-hero-slide h3,
.ob-panel-title,
.ob-form-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 700;
}

.ob-hero-slide p,
.ob-feature-card p,
.ob-form-subtitle,
.ob-form-note p,
.ob-cta-note {
    color: var(--text-secondary);
    line-height: 1.65;
}

.ob-hero-slide p {
    margin: 10px 0 0;
    max-width: 640px;
}

.ob-tag-list,
.ob-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ob-tag,
.ob-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.ob-tag-list {
    margin-top: 18px;
}

.ob-tag {
    color: var(--gold-main);
}

.ob-trust-pill i {
    color: var(--gold-main);
}

.ob-hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.ob-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.18);
    transition: width 0.2s ease, background 0.2s ease;
}

    .ob-dot.active {
        width: 26px;
        background: var(--gold-main);
    }

.ob-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ob-feature-card {
    min-height: 148px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .ob-feature-card i,
    .ob-note-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: var(--gold-main);
        background: rgba(212,175,55,0.10);
        margin-bottom: 12px;
    }

    .ob-feature-card h4,
    .ob-form-note h3 {
        margin: 0 0 6px;
        color: var(--text-primary);
        font-size: 1rem;
    }

.ob-cta-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 2px 0;
}

.ob-cta-label {
    color: var(--gold-dim);
    font-size: 0.85rem;
    font-weight: 700;
}

.ob-google-wrap {
    min-height: 46px;
    display: flex;
    align-items: center;
}

.ob-secondary-cta,
.ob-submit-btn {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
}

.ob-secondary-cta {
    border-color: rgba(212,175,55,0.45);
}

.ob-form-shell {
    width: min(760px, 100%);
    margin: auto;
    position: relative;
    z-index: 1;
}

.ob-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gold-main);
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.ob-form-card {
    padding: 24px;
    background: linear-gradient(145deg, rgba(22,16,13,0.96), rgba(15,11,9,0.93));
}

.ob-form-header {
    margin-bottom: 18px;
}

.ob-form-title {
    margin-top: 14px;
    font-size: 2rem;
    color: var(--gold-main);
}

.ob-form-subtitle {
    margin-top: 10px;
    font-size: 0.98rem;
}

.ob-form-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    background: linear-gradient(145deg, rgba(212,175,55,0.10), rgba(255,255,255,0.025));
}

    .ob-form-note .ob-note-icon {
        flex: 0 0 38px;
        margin-bottom: 0;
    }

    .ob-form-note h3 {
        color: var(--gold-main);
    }

    .ob-form-note p {
        margin: 6px 0 0;
    }

.ob-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.onboarding-wrapper .input-group {
    margin-bottom: 18px;
}

.onboarding-wrapper .input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-main);
    font-size: 0.9rem;
    font-weight: 700;
}

    .onboarding-wrapper .input-label i {
        margin-right: 8px;
        color: var(--gold-main);
    }

.ob-input,
.onboarding-wrapper .input-control {
    min-height: 56px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 1rem;
}

    .ob-input:focus,
    .onboarding-wrapper .input-control:focus {
        border-color: var(--gold-main);
        box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
    }

.ob-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ob-radio-card {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: 0.2s ease;
}

    .ob-radio-card.active {
        background: rgba(212,175,55,0.12);
        border-color: var(--gold-main);
    }

    .ob-radio-card input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.ob-radio-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(212,175,55,0.10);
    color: var(--gold-main);
}

.ob-radio-text {
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .ob-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .onboarding-wrapper {
        padding: 18px 14px;
    }

    .ob-stage {
        min-height: auto;
    }

    .ob-hero-panel,
    .ob-panel-card,
    .ob-form-card {
        border-radius: 24px;
    }

    .ob-hero-panel,
    .ob-panel-card,
    .ob-form-card {
        padding: 20px;
    }

    .ob-display-title {
        font-size: 2.2rem;
    }

    .ob-display-subtitle,
    .ob-form-subtitle,
    .ob-form-note p {
        font-size: 0.94rem;
    }

    .ob-hero-carousel,
    .ob-hero-track {
        min-height: 360px;
    }

    .ob-feature-grid,
    .ob-radio-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   AUTH / HOME / FAMILY SYNC V3
   ========================= */
.ob-cta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.ob-cta-subtitle {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ob-journey-hint span,
.ob-cta-footnote span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 0.78rem;
}

.ob-journey-hint i,
.ob-cta-footnote i,
.ob-cta-label i {
    color: var(--gold-main);
}

.ob-journey-grid {
    display: grid;
    gap: 12px;
}

.ob-journey-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .ob-journey-card i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: var(--gold-main);
        background: rgba(212,175,55,0.10);
    }

    .ob-journey-card strong {
        display: block;
        margin-bottom: 4px;
        color: var(--text-primary);
        font-size: 0.95rem;
    }

    .ob-journey-card span {
        color: var(--text-secondary);
        font-size: 0.84rem;
        line-height: 1.6;
    }

.ob-cta-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.web-hero-banner {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
    gap: 18px;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 24px;
    border: 1px solid rgba(212,175,55,0.18);
    background: linear-gradient(145deg, rgba(43,28,20,0.9), rgba(20,16,12,0.86));
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.web-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212,175,55,0.10);
    border: 1px solid rgba(212,175,55,0.22);
    color: var(--gold-main);
    font-size: 0.78rem;
    font-weight: 700;
}

.web-hero-copy h2 {
    margin: 16px 0 10px;
    color: var(--text-primary);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.25;
}

.web-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--text-secondary);
    line-height: 1.72;
}

.web-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

    .web-hero-pills span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        color: var(--text-primary);
        font-size: 0.82rem;
        font-weight: 600;
    }

    .web-hero-pills i,
    .web-hero-mini-card i,
    .family-form-intro-icon i,
    .family-form-sheet .input-label i {
        color: var(--gold-main);
    }

.web-hero-side {
    display: grid;
    gap: 12px;
    align-content: center;
}

.web-hero-mini-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .web-hero-mini-card i {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(212,175,55,0.10);
    }

    .web-hero-mini-card strong {
        display: block;
        margin-bottom: 4px;
        color: var(--text-primary);
    }

    .web-hero-mini-card span {
        color: var(--text-secondary);
        font-size: 0.86rem;
        line-height: 1.6;
    }

.home-module-card,
.family-member-card,
.family-owner-card,
.family-add-card,
.family-overview-card,
.home-stage-lock {
    border-radius: 22px;
    border: 1px solid rgba(212,175,55,0.16);
    background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.home-module-card {
    padding: 22px;
    margin-bottom: 18px;
}

.home-module-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--gold-main);
    font-size: 1.15rem;
}

.home-module-subtitle {
    color: var(--text-secondary);
    margin: 0 0 14px;
    font-size: 0.92rem;
}

.home-status-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .home-status-card i {
        color: var(--gold-main);
        font-size: 1.15rem;
        margin-top: 2px;
    }

    .home-status-card strong {
        display: block;
        margin-bottom: 4px;
        color: var(--text-primary);
    }

    .home-status-card span {
        color: var(--text-secondary);
        font-size: .86rem;
        line-height: 1.6;
    }

.home-progress-shell {
    margin-bottom: 18px;
}

.home-progress-labels {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top: 12px;
}

.home-progress-step {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

    .home-progress-step strong {
        display: block;
        color: var(--text-primary);
        font-size: .85rem;
        margin-top: 6px;
    }

    .home-progress-step span {
        color: var(--text-secondary);
        font-size: .73rem;
    }

    .home-progress-step.active {
        border-color: rgba(212,175,55,0.35);
        background: rgba(212,175,55,0.10);
    }

.family-overview-card,
.family-owner-card,
.family-member-card,
.family-add-card {
    padding: 20px;
    margin-bottom: 16px;
}

.family-overview-card {
    background: linear-gradient(145deg, rgba(43,28,20,0.92), rgba(20,16,12,0.86));
}

.family-head {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: start;
}

.family-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.10);
    border: 1px solid rgba(212,175,55,0.20);
    color: var(--gold-main);
    font-size: 1.2rem;
}

.family-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.06rem;
}

.family-subtitle {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.6;
}

.family-chip-row, .family-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.family-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: .76rem;
    font-weight: 600;
}

    .family-chip.accent {
        color: var(--gold-main);
    }

.family-action-btn,
.family-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s ease;
}

.family-action-btn {
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid rgba(212,175,55,0.30);
    color: var(--gold-main);
    background: rgba(212,175,55,0.08);
}

.family-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--gold-main);
    background: rgba(255,255,255,0.05);
}

.family-form-sheet {
    border-radius: 26px;
    border: 1px solid rgba(212,175,55,0.22);
    box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}

.family-form-intro {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(212,175,55,0.10), rgba(255,255,255,0.03));
    border: 1px solid rgba(212,175,55,0.16);
}

.family-form-intro-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(212,175,55,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-form-intro h4 {
    margin: 0;
    color: var(--gold-main);
    font-size: 1rem;
}

.family-form-intro p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.6;
}

.family-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 14px;
}

.family-form-sheet .input-group {
    margin-bottom: 18px;
}

.family-form-sheet .input-control {
    min-height: 52px;
    border-radius: 16px;
}

.family-form-sheet .radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.family-form-sheet .radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

@media (max-width: 900px) {
    .web-hero-banner,
    .ob-cta-header,
    .family-form-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .home-progress-labels {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {
    .web-hero-banner {
        padding: 20px;
        border-radius: 22px;
    }

    .ob-journey-grid {
        grid-template-columns: 1fr;
    }

    .ob-google-wrap {
        justify-content: center;
    }

    .family-head {
        grid-template-columns: 48px 1fr;
    }

        .family-head > :last-child {
            grid-column: 1 / -1;
        }
}

.btn-unlock {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(212,175,55,0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(212,175,55,0.7);
    }

    100% {
        box-shadow: 0 0 0 rgba(212,175,55,0.3);
    }
}

.blur-box {
    filter: blur(4px);
    opacity: 0.6;
    font-style: italic;
}

/* ==========================================
   AUTH UX REBALANCE 2026-04-19
   ========================================== */
.onboarding-wrapper {
    padding: 18px;
}

.ob-stage {
    min-height: calc(100vh - 36px);
}

.ob-shell {
    width: min(1200px, 100%);
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 20px;
    align-items: stretch;
}

.ob-hero-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ob-display-title {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 3.3vw, 3.1rem);
    line-height: 1.08;
}

.ob-display-subtitle {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: 0.98rem;
    line-height: 1.68;
}

.ob-hero-carousel,
.ob-hero-track {
    min-height: 260px;
}

.ob-hero-slide {
    padding: 20px;
    border-radius: 22px;
}

    .ob-hero-slide h3,
    .ob-panel-title,
    .ob-form-title {
        font-size: 1.28rem;
    }

    .ob-hero-slide p,
    .ob-feature-card p,
    .ob-form-subtitle,
    .ob-form-note p,
    .ob-cta-note,
    .ob-cta-subtitle {
        font-size: 0.92rem;
        line-height: 1.62;
    }

.ob-tag-list {
    margin-top: 14px;
    gap: 8px;
}

.ob-tag,
.ob-trust-pill,
.ob-journey-hint span,
.ob-cta-footnote span {
    font-size: 0.74rem;
    padding: 7px 11px;
}

.ob-auth-panel {
    gap: 14px;
}

.ob-panel-card {
    padding: 18px;
}

.ob-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ob-feature-card {
    min-height: 128px;
    padding: 14px;
}

    .ob-feature-card h4,
    .ob-form-note h3 {
        font-size: 0.95rem;
    }

.ob-journey-grid {
    gap: 10px;
}

.ob-journey-card {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
}

    .ob-journey-card i,
    .ob-feature-card i,
    .ob-note-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .ob-journey-card strong {
        font-size: 0.9rem;
    }

    .ob-journey-card span,
    .web-hero-mini-card span {
        font-size: 0.82rem;
    }

.ob-cta-block {
    gap: 12px;
}

.ob-secondary-cta,
.ob-submit-btn {
    min-height: 52px;
    border-radius: 16px;
}

.ob-form-shell {
    width: min(820px, 100%);
}

.ob-form-card {
    padding: 22px;
}

.ob-form-title {
    margin-top: 12px;
    font-size: 1.7rem;
}

.ob-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

    .ob-form-grid .input-group:last-child {
        grid-column: 1 / -1;
    }

.web-hero-banner {
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.88fr);
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
}

.web-hero-copy h2,
.web-hero-copy h3 {
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-size: clamp(1.22rem, 2vw, 1.7rem);
    line-height: 1.38;
    font-weight: 700;
}

.web-hero-copy p {
    font-size: 0.92rem;
    line-height: 1.68;
}

.web-hero-pills {
    gap: 8px;
    margin-top: 14px;
}

    .web-hero-pills span {
        padding: 7px 10px;
        font-size: 0.76rem;
    }

.web-hero-side {
    gap: 10px;
}

.web-hero-mini-card {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
}

    .web-hero-mini-card i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

@media (max-width: 1024px) {
    .ob-shell,
    .web-hero-banner {
        grid-template-columns: 1fr;
    }

    .ob-hero-carousel,
    .ob-hero-track {
        min-height: 300px;
    }

    .ob-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .web-hero-banner {
        padding: 18px;
        border-radius: 20px;
    }

    .web-hero-copy h2,
    .web-hero-copy h3 {
        font-size: 1.2rem;
    }

    .web-hero-copy p {
        font-size: 0.88rem;
    }
}
/* ==========================================
   SELECT CÙNG STYLE VỚI INPUT (CHO GIỜ SINH)
   ========================================== */
.input-control select,
select.input-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    cursor: pointer;
}

    /* Tùy chọn trong dropdown – nền tối, chữ sáng */
    .input-control select option,
    select.input-control option {
        background-color: #1A1311;
        color: var(--text-primary);
        padding: 10px;
    }

    /* Hover/active state giống input */
    .input-control select:hover,
    select.input-control:hover {
        border-color: var(--gold-main);
    }

    /* Khi select được focus */
    .input-control select:focus,
    select.input-control:focus {
        outline: none;
        border-color: var(--gold-main);
        box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    }