/* ======================== PRICING PAGE ======================== */

.pricing_page {
    background: var(--bg-main, #0f1720);
    color: var(--text-main, #e5e7eb);
    min-height: 100vh;
    padding: 0;
}

/* ─── NAVIGATION ─── */
.pricing_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 30px;
    background: var(--bg-card, #1b2530);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}


.nav_right {
    display: flex;
    gap: 15px;
}

.nav_right button {
    padding: 8px 16px;
    background: #4da3ff;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.nav_right button:hover {
    background: #3d8bdb;
}

/* ─── NAV: theme + custom selects ─── */
.pricing_nav .nav_right {
    flex-wrap: wrap;
    align-items: center;
}

.pricing_select_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.pricing_select_wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(148, 163, 184, 0.95);
    pointer-events: none;
}

.pricing_select {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 9px 36px 9px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(28, 38, 52, 0.98) 0%, rgba(18, 26, 36, 0.98) 100%);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    width: 100%;
}

.pricing_select:hover {
    border-color: rgba(77, 163, 255, 0.45);
}

.pricing_select:focus {
    outline: none;
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.28);
}

.plan_btn {
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.plan_btn:hover {
    border-color: #4da3ff;
    color: #93c5fd;
    background: rgba(77, 163, 255, 0.08);
}

.plan_btn.active {
    background: linear-gradient(135deg, #4da3ff 0%, #3b82f6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.4);
}
.pricing_hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #0f1720 0%, #1b2530 100%);
}

.pricing_hero h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.pricing_hero p {
    margin: 0;
    font-size: 16px;
    color: #9ca3af;
}

/* ─── PLAN SELECTOR ─── (buttons styled above with .plan_btn) ─── */
.plan_selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}


/* ─── PRICING CARDS ─── */
.pricing_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.price_card {
    background: var(--bg-card, #1b2530);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.price_card:hover {
    border-color: #4da3ff;
    box-shadow: 0 20px 60px rgba(77, 163, 255, 0.15);
    transform: translateY(-10px);
}

.pro_card {
    border: 2px solid #4da3ff;
    box-shadow: 0 10px 40px rgba(77, 163, 255, 0.2);
    transform: scale(1.05);
}

.price_badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #4da3ff;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price_header {
    margin-bottom: 25px;
}

.monthly_options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.monthly_options label,
.monthly_options #month_quantity_label {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.monthly_options .pricing_select_wrap {
    flex: 1;
    min-width: 140px;
    max-width: 240px;
}

#team_options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#team_options .pricing_select_wrap {
    flex: 1;
    min-width: 140px;
    max-width: 240px;
}

/* Custom dropdown: bỏ mũi tên giả của .pricing_select_wrap (tránh trùng với ::after của trigger) */
/* Sửa lại selector cho đúng cú pháp đồng cấp */
.pricing_select_wrap.custom_dropdown::after {
    display: none !important;
    content: none !important;
}

#month_quantity_dd .custom_dropdown__trigger,
#team_seats_dd .custom_dropdown__trigger {
    position: relative;
    padding: 9px 28px 9px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(28, 38, 52, 0.98) 0%, rgba(18, 26, 36, 0.98) 100%);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    min-height: 40px;
    width: 100%;
}

#month_quantity_dd .custom_dropdown__trigger::after,
#team_seats_dd .custom_dropdown__trigger::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

#month_quantity_dd .custom_dropdown__menu,
#team_seats_dd .custom_dropdown__menu {
    z-index: 120;
}

[data-theme="light"] #month_quantity_dd .custom_dropdown__trigger,
[data-theme="light"] #team_seats_dd .custom_dropdown__trigger {
    background: var(--bg-well, #f8fafc);
    border-color: var(--border);
    color: var(--text-main);
}

[data-theme="light"] #month_quantity_dd .custom_dropdown__trigger::after,
[data-theme="light"] #team_seats_dd .custom_dropdown__trigger::after {
    border-top-color: rgba(71, 85, 105, 0.95);
}

[data-theme="light"] #month_quantity_dd .custom_dropdown__menu,
[data-theme="light"] #team_seats_dd .custom_dropdown__menu {
    background: var(--bg-elevated);
    border-color: var(--border);
}

[data-theme="light"] #month_quantity_dd .custom_dropdown__menu li,
[data-theme="light"] #team_seats_dd .custom_dropdown__menu li {
    color: var(--text-main);
}

.monthly_options .pricing_select {
    font-size: 13px;
}

.price_header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #fff;
}

.price_current,
.price_monthly {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #4da3ff;
}

/* Giá PRO luôn primary (kể cả theme sáng — không xám hoá) */
.pro_card #pro_price_display {
    color: #4da3ff !important;
}
[data-theme="light"] .pro_card #pro_price_display {
    color: #2586fd !important;
}

.price_period {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #9ca3af;
}

.free_card .price_current {
    color: #fff;
}

/* ─── FEATURES ─── */
.price_features {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
}

.price_features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

.price_features li:last-child {
    border-bottom: none;
}

/* ─── BUTTONS ─── */
.price_btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.free_btn {
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    cursor: default;
}

.pro_btn {
    background: linear-gradient(135deg, #4da3ff, #2586fd);
    color: white;
}

.pro_btn:hover {
    box-shadow: 0 10px 30px rgba(77, 163, 255, 0.4);
    transform: translateY(-2px);
}

.price_note {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* ─── FAQ ─── */
.faq_section {
    max-width: 900px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.faq_section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.faq_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.faq_item {
    background: var(--bg-card, #1b2530);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.faq_item h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: var(--text-main, #e5e7eb);
}

.faq_item p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ─── PAYMENT MODAL ─── */
.modal_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal_overlay.show {
    display: flex;
}

.modal_content {
    background: var(--bg-card, #1b2530);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal_close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    transition: 0.3s;
}

.modal_close:hover {
    color: #fff;
}

.modal_content h2 {
    margin: 0 0 25px 0;
    font-size: 22px;
}

/* ─── PAYMENT SUMMARY ─── */
.payment_summary {
    background: rgba(77, 163, 255, 0.08);
    border: 1px solid rgba(77, 163, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.summary_item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary_item span {
    color: #9ca3af;
}

.summary_item strong {
    color: #fff;
}

/* ─── QR CODE ─── */
.payment_qr {
    text-align: center;
    margin-bottom: 25px;
}

.payment_qr p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #d1d5db;
}

#qr_container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr_container img {
    max-width: 100%;
    max-height: 250px;
}

/* ─── TRANSFER INFO ─── */
.transfer_info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
}

.transfer_detail {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.transfer_row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transfer_row:last-child {
    border-bottom: none;
}

.transfer_row span {
    color: #9ca3af;
}

.transfer_row strong {
    color: #4da3ff;
}

/* ─── STATUS & TIMER ─── */
#payment_status {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn_close_payment {
    width: 100%;
    padding: 12px;
    background: #4da3ff;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn_close_payment:hover {
    background: #3d8bdb;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .pricing_hero {
        padding: 40px 20px 30px;
    }

    .pricing_hero h1 {
        font-size: 28px;
    }

    .plan_selector {
        flex-direction: column;
    }

    .plan_btn {
        width: 100%;
    }

    .pricing_container {
        margin: 40px auto;
        gap: 20px;
    }

    .pro_card {
        transform: scale(1);
    }

    .modal_content {
        padding: 20px;
    }

    .faq_grid {
        grid-template-columns: 1fr;
    }
}

.footer_logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.footer_logo span { color: #3b82f6; } /* Màu xanh chủ đạo của mày */

/* ─── Light theme (pricing + select option list) ─── */
[data-theme="light"] .pricing_page {
    background: var(--bg-main);
    color: var(--text-main);
    color-scheme: light;
}

[data-theme="light"] .pricing_nav {
    background: var(--bg-card);
    border-bottom-color: var(--border);
}

[data-theme="light"] .pricing_nav .footer_logo {
    color: var(--text-main);
}

[data-theme="light"] .footer_logo span {
    color: #1d4ed8;
    font-weight: 700;
}

[data-theme="light"] .pricing_hero {
    background: linear-gradient(135deg, #e2ebfb 0%, #f2f6ff 100%);
}

[data-theme="light"] .pricing_hero h1 {
    color: var(--text-main) !important;
}

[data-theme="light"] .pricing_hero p {
    color: var(--text-muted);
}

[data-theme="light"] .price_header h2 {
    color: var(--text-main);
}

[data-theme="light"] .price_header .price_period {
    color: var(--text-muted);
}

[data-theme="light"] .price_features li {
    color: var(--text-main);
    border-bottom-color: var(--border);
}

[data-theme="light"] .free_card .price_current {
    color: var(--text-main);
}

[data-theme="light"] .pricing_page .plan_btn:not(.active) {
    background: var(--bg-elevated);
}

[data-theme="light"] .pricing_page select option,
[data-theme="light"] .pricing_page select optgroup {
    background-color: #ffffff;
    color: #1a3352;
}

/* ───────────── PAYMENT MODAL — Light theme ───────────── */
[data-theme="light"] .modal_overlay {
    background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .modal_content {
    background: var(--bg-card, #ffffff);
    border-color: var(--border, #cbd5e1);
    color: var(--text-main);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .modal_content h2 {
    color: var(--text-main);
}

[data-theme="light"] .modal_close {
    color: var(--text-muted);
}

[data-theme="light"] .modal_close:hover {
    color: var(--text-main);
}

[data-theme="light"] .payment_summary {
    background: #eaf2ff;
    border-color: #b8d5ff;
}

[data-theme="light"] .summary_item span {
    color: #475569;
}

[data-theme="light"] .summary_item strong {
    color: #0f172a;
}

[data-theme="light"] .payment_qr p {
    color: var(--text-main);
}

[data-theme="light"] .transfer_info {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .transfer_info > p {
    color: #475569 !important;
}

[data-theme="light"] .transfer_detail {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .transfer_row {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .transfer_row span {
    color: #475569;
}

[data-theme="light"] .transfer_row strong {
    color: #1d4ed8;
}

[data-theme="light"] #payment_timer {
    color: #475569 !important;
}

[data-theme="light"] #payment_timer #timer_countdown {
    color: #0f172a;
    font-weight: 600;
}

[data-theme="light"] #payment_status {
    background: #dcfce7 !important;
}

[data-theme="light"] #payment_status p:first-child {
    color: #15803d !important;
}

[data-theme="light"] #payment_status p:last-child {
    color: #475569 !important;
}

[data-theme="light"] .faq_section h2 {
    color: var(--text-main);
}

[data-theme="light"] .faq_item {
    background: var(--bg-card, #ffffff);
    border-color: var(--border, #cbd5e1);
}

[data-theme="light"] .faq_item h4 {
    color: var(--text-main);
}

[data-theme="light"] .faq_item p {
    color: var(--text-muted);
}

/* Nút "Tôi đã chuyển" */
.btn_i_paid {
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.btn_i_paid:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

[data-theme="light"] .btn_i_paid {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .btn_i_paid:hover {
    background: #e2e8f0;
}

/* Chu kỳ Tháng / Năm / Trọn đời — PRO & Team (pricing.html) */
.pricing_cycle_row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.pricing_cycle_btn {
    flex: 1;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.pricing_cycle_btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pro_card .pricing_cycle_btn {
    border-color: rgba(77, 163, 255, 0.35);
    background: rgba(77, 163, 255, 0.08);
}

.pro_card .pricing_cycle_btn:hover {
    background: rgba(77, 163, 255, 0.14);
}

.pro_card .pricing_cycle_btn.active {
    border-color: rgba(59, 130, 246, 0.85);
    background: rgba(59, 130, 246, 0.22);
    color: #fff;
}

.team_card .pricing_cycle_btn {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
}

.team_card .pricing_cycle_btn:hover {
    background: rgba(139, 92, 246, 0.14);
}

.team_card .pricing_cycle_btn.active {
    border-color: rgba(139, 92, 246, 0.75);
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
}

[data-theme="light"] .pricing_cycle_btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .pro_card .pricing_cycle_btn.active,
[data-theme="light"] .team_card .pricing_cycle_btn.active {
    color: #fff;
}

.team_emails_hint {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.45;
    margin: 0 0 10px;
}

.team_emails_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.team_email_row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team_email_row label {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.team_member_email_inp {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--bg-input, rgba(15, 23, 42, 0.5));
    color: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

[data-theme="light"] .team_member_email_inp {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}