/* Settings Page - Light Theme Redesign */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-light: rgba(0, 0, 0, 0.08);
    --accent-blue: #0071e3;
    --sidebar-width: 320px;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --brevo-blue: #7c4dff;
    --brevo-bg: #f5f3ff;
}

.settings-body.light-theme {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
.settings-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-f {
    height: 32px;
    cursor: pointer;
}

.menu-trigger {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
}

.menu-trigger:hover {
    opacity: 0.7;
}

/* Right Sidebar */
.settings-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.settings-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.menu-link i {
    width: 20px;
    color: var(--accent-blue);
    font-size: 18px;
}

.menu-link:hover {
    background: var(--bg-light);
}

.menu-link.active {
    background: rgba(0, 113, 227, 0.05);
    color: var(--accent-blue);
    border-right: 4px solid var(--accent-blue);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Settings Tabs (Brevo Style) */
.settings-tabs-container {
    padding: 24px 40px 0;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    position: sticky;
    top: 60px; /* Below main nav */
    z-index: 90;
}

.settings-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2d3d;
}

.settings-tabs {
    display: flex;
    gap: 32px;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
}

.tab-link {
    text-decoration: none;
    color: #5e6d82;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-link:hover { color: #1f2d3d; }

.tab-link.active {
    color: var(--brevo-blue);
    border-bottom-color: var(--brevo-blue);
}

/* Responsive More Tabs */
.more-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to right */
}

#more-tabs-trigger {
    display: none; /* Hidden by default, shown via JS */
    gap: 8px;
    align-items: center;
    color: var(--brevo-blue);
    font-weight: 600;
}

#more-tabs-trigger.visible {
    display: flex;
}

.more-tabs-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.more-tabs-dropdown.active {
    display: block;
}

.more-tabs-search {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
}

.more-tabs-search i { color: #5e6d82; }

.more-tabs-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
}

.more-tabs-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.more-tabs-list .tab-link {
    padding: 12px 16px;
    border-bottom: none;
    color: #1f2d3d;
    width: 100%;
    text-align: left;
}

.more-tabs-list .tab-link:hover {
    background: #f4f7fa;
    color: var(--brevo-blue);
}

.tab-link.hidden-tab {
    display: none !important;
}

/* Section Header & Pricing Controls */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin: 40px 0 30px;
    color: #1f2d3d;
}

.pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.billing-pills {
    display: inline-flex;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 30px;
}

.pill {
    background: none;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: #5e6d82;
    cursor: pointer;
    transition: all 0.2s;
}

.pill.active {
    background: #fff;
    color: var(--brevo-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pill .save-tag {
    color: var(--brevo-blue);
}

/* Currency Selector */
.currency-selector {
    position: relative;
}

.currency-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f5f3ff;
    border-radius: 12px;
    color: var(--brevo-blue);
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.currency-trigger:hover {
    background: #ede9fe;
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ebebeb;
}

.currency-dropdown.active { display: block; }

.currency-option {
    padding: 14px 20px;
    font-size: 14px;
    color: #1f2d3d;
    cursor: pointer;
    transition: background 0.2s;
}

.currency-option:hover {
    background: #f9fafb;
}

/* Main Content Wrapper */
.settings-content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-color: var(--brevo-blue);
}

.pricing-card.popular {
    border: 3px solid var(--brevo-blue);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brevo-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-name { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: #1f2d3d; }
.plan-desc { font-size: 15px; color: #5e6d82; margin-bottom: 32px; line-height: 1.6; min-height: 48px; }
.plan-price { font-size: 40px; font-weight: 900; margin-bottom: 24px; color: #1f2d3d; }
.plan-price span { font-size: 16px; color: #5e6d82; font-weight: 500; }
.plan-price .original-price { font-size: 16px; text-decoration: line-through; color: #ff3b30; margin-right: 12px; opacity: 0.7; }

.select-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 2px solid var(--brevo-blue);
    background: transparent;
    color: var(--brevo-blue);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 32px;
    transition: all 0.2s;
}

.pricing-card.popular .select-btn {
    background: var(--brevo-blue);
    color: #fff;
}

.select-btn:hover {
    background: var(--brevo-blue);
    color: #fff;
}

.plan-features {
    list-style: none;
    padding: 0; margin: 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 16px;
    color: #3c4858;
}

.plan-features li i {
    color: #34c759;
    font-size: 14px;
    margin-top: 4px;
}

/* Sections Management */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Payment & Billing Specifics */
.empty-payment-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.empty-payment-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.empty-payment-card p { color: #5e6d82; font-size: 16px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.billing-info-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 60px; /* Increased padding */
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

.brevo-btn-dark {
    background: #1f2d3d !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-block !important;
    text-align: center !important;
}

.brevo-btn-dark:hover {
    background: #3c4858 !important;
    transform: translateY(-1px);
}

.alert-info {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    color: #1a4a7a;
    font-size: 14px;
}

.alert-info i { color: #0071e3; font-size: 18px; margin-top: 2px; }

.billing-form .form-row { display: flex; gap: 24px; margin-bottom: 24px; }
.billing-form .form-group { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.billing-form label { font-size: 14px; font-weight: 700; color: #3c4858; }
.billing-form input, .billing-form select {
    padding: 14px; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 15px; outline: none; transition: border-color 0.2s;
}
.billing-form input:focus { border-color: var(--brevo-blue); }

.vat-options, .billing-notifications { margin-top: 40px; border-top: 1px solid #eee; padding-top: 32px; }
.section-subtitle { font-size: 20px; font-weight: 800; margin-bottom: 24px; color: #1f2d3d; }

.notif-checks { display: flex; flex-direction: column; gap: 16px; }
.check-item { display: flex; align-items: center; gap: 12px; }
.check-item input { width: 18px; height: 18px; cursor: pointer; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 45, 61, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center; justify-content: center;
    z-index: 2000;
}

.modal-card {
    background: #fff; width: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 32px 64px rgba(0,0,0,0.2);
}

.modal-header { padding: 24px 32px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 20px; font-weight: 800; }
.close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #5e6d82; }

.modal-body { padding: 32px; color: #3c4858; line-height: 1.6; }

.modal-footer { padding: 24px 32px; background: #f9fafb; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 16px; }

.btn-cancel { background: none; border: 1px solid #dcdfe6; padding: 12px 24px; border-radius: 4px; font-weight: 600; cursor: pointer; color: #5e6d82; transition: all 0.2s; }
.btn-cancel:hover { background: #f9fafb; border-color: #c0c4cc; }

.btn-continue { 
    background: #1f2d3d; color: #fff; border: none; padding: 12px 24px; border-radius: 4px; font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.btn-continue:hover { background: #3c4858; transform: translateY(-1px); }

/* Searchable Country Dropdown */
.country-search-container {
    position: relative;
    width: 100%;
}

.country-search-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.country-search-input:focus { border-color: var(--brevo-blue); }

.country-list-dropdown {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    max-height: 300px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
    display: none;
}

.country-list-dropdown.active { display: block; }

.country-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: background 0.2s;
}

.country-item:hover { background: #f4f7fa; }
.country-item img { width: 20px; border-radius: 2px; }

/* Toasts */
.toast-container { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3000; }
.toast-success {
    background: #e6f7ec; border-left: 4px solid #34c759; padding: 16px 24px; border-radius: 4px;
    display: flex; align-items: center; gap: 16px; color: #1e7e34; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: slideUp 0.4s;
}

/* Checkout Flow Styles */
.checkout-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #f4f7fa;
    z-index: 5000;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-header {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 10;
}

.checkout-back {
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.checkout-back:hover { color: var(--brevo-blue); }

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 2;
    justify-content: center;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8c98a4;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.checkout-steps .step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.checkout-steps .step.completed { color: #1f2d3d; }
.checkout-steps .step.completed i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.checkout-steps .step.active {
    color: #004ecc;
}
.checkout-steps .step.active .step-num {
    background: #004ecc;
    color: #fff;
}

.checkout-brand {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
.checkout-brand img { height: 24px; }
.checkout-brand .brand-text { font-weight: 800; font-size: 16px; letter-spacing: 1px; color: #1f2d3d; }

.checkout-main-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    width: 100%;
    padding: 0 20px;
}

.checkout-left-col {
    flex: 1;
    min-width: 0;
}

.checkout-right-col {
    width: 400px;
    flex-shrink: 0;
}

.checkout-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2d3d;
    margin-bottom: 30px;
}

.checkout-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.checkout-card.highlight-card {
    border-color: #d1d5db;
    background: #fcfdff;
}

.checkout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.checkout-card-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-card-title h3 i { color: #8c98a4; font-size: 14px; }

.recommend-tag {
    background: #e6e6fa;
    color: #5551ff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.card-subtitle {
    display: block;
    color: #5e6d82;
    font-size: 14px;
    margin-top: 4px;
}

.card-desc {
    color: #5e6d82;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
    max-width: 90%;
}

.checkout-card-value {
    text-align: right;
}
.checkout-card-value h3 { font-size: 20px; font-weight: 800; color: #1f2d3d; }
.checkout-card-value span { font-size: 14px; color: #5e6d82; }

/* Custom Slider */
.slider-container {
    margin: 40px 0 20px;
}
.brevo-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}
.brevo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5551ff;
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    color: #5e6d82;
    font-weight: 600;
}
.more-link { cursor: pointer; color: #5551ff; }

.slider-info {
    font-size: 13px;
    color: #5e6d82;
    line-height: 1.5;
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-block;
    position: relative;
    width: 44px;
    margin-top: 5px;
}
.toggle-checkbox { display: none; }
.toggle-label {
    display: block;
    width: 44px; height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}
.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-checkbox:checked + .toggle-label { background: #5551ff; }
.toggle-checkbox:checked + .toggle-label::after { transform: translateX(20px); }

/* Cart Summary Box */
.cart-summary-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.cart-summary-box h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2d3d;
}

.billing-toggle-cart {
    display: flex;
    background: #f4f7fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}
.billing-toggle-cart .cart-pill {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #5e6d82;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.billing-toggle-cart .cart-pill.active {
    background: #fff;
    color: #5551ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-items { border-bottom: 1px solid #eee; margin-bottom: 20px; padding-bottom: 20px; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cart-item.highlight { font-weight: 700; color: #1f2d3d; margin-bottom: 16px; }
.cart-item.feature { color: #5e6d82; }

.add-discount-link {
    color: #5551ff; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 24px;
}

.cart-totals { border-bottom: 1px solid #eee; margin-bottom: 24px; padding-bottom: 24px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.total-row.subtotal { font-weight: 700; color: #1f2d3d; font-size: 15px; }
.total-row.grand-total { font-weight: 800; color: #1f2d3d; font-size: 16px; margin-top: 16px; }

.subscription-notice { font-size: 12px; color: #8c98a4; margin-bottom: 16px; line-height: 1.5; margin-top:20px; }
.add-po-link { color: #5551ff; font-size: 14px; font-weight: 600; text-decoration: none; }

.cart-price-big { text-align: right; margin-bottom: 30px; }
.cart-price-big .main-price { font-size: 36px; font-weight: 800; color: #1f2d3d; letter-spacing: -1px; }
.cart-price-big .main-price .period { font-size: 16px; font-weight: 600; color: #5e6d82; letter-spacing: normal; }
.cart-price-big .sub-price { font-size: 13px; color: #8c98a4; margin-top: 4px; }

.checkout-actions .checkout-btn { width: 100%; border-radius: 8px !important; padding: 16px !important; font-size: 16px !important; margin-top: 20px; }

/* Step 3 Styling */
.billing-info-summary {
    background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 24px; position: relative; border: 1px solid #ebebeb;
}
.billing-info-summary h3 { font-size: 18px; font-weight: 700; color: #1f2d3d; margin-bottom: 16px; }
.billing-details { font-size: 15px; color: #3c4858; line-height: 1.6; }
.edit-billing-link { position: absolute; top: 30px; right: 30px; color: #5551ff; font-weight: 600; text-decoration: none; font-size: 14px; }

.payment-method-container { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #ebebeb; }
.payment-method-container h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }

.payment-card-box { border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden; }
.payment-card-box h4 { font-size: 15px; font-weight: 700; padding: 20px; border-bottom: 1px solid #ebebeb; background: #fafbfc; margin: 0; }

.payment-radio-label { display: flex; align-items: center; gap: 12px; padding: 20px; cursor: pointer; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; margin: 0; }
.payment-radio-label input[type="radio"] { width: 18px; height: 18px; accent-color: #5551ff; cursor: pointer; }
.payment-radio-label:last-of-type { border-bottom: none; }

.payment-accordion-content { display: none; padding: 20px; background: #fff; border-bottom: 1px solid #eee; }
.payment-accordion-content.active { display: block; }
.payment-accordion-content .req-text { font-size: 13px; color: #5e6d82; margin-bottom: 20px; }

/* Form Group Styles for Payment Inputs */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #3c4858; margin-bottom: 8px; }
.form-group input { width: 100%; border: 1px solid #dcdfe6; padding: 12px 14px; border-radius: 6px; font-size: 14px; color: #1f2d3d; outline: none; transition: border-color 0.2s; background: #fff; }
.form-group input:focus { border-color: #5551ff; }
.form-group input::placeholder { color: #8c98a4; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; padding-right: 80px; }
.card-icons { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: flex; gap: 8px; color: #8c98a4; font-size: 20px; }

.input-with-prefix { display: flex; align-items: center; border: 1px solid #dcdfe6; border-radius: 6px; overflow: hidden; }
.input-with-prefix .prefix { background: #f4f7fa; padding: 14px; color: #5e6d82; font-weight: 600; border-right: 1px solid #dcdfe6; }
.input-with-prefix input { border: none !important; border-radius: 0 !important; width: 100%; outline: none; }
.input-with-prefix:focus-within { border-color: var(--brevo-blue); }

.secure-info { display: flex; gap: 12px; padding-top: 24px; color: #5e6d82; font-size: 13px; line-height: 1.5; align-items: flex-start; }

/* Custom Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.custom-checkbox:last-child { margin-bottom: 0; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { width: 20px; height: 20px; border: 1px solid #dcdfe6; border-radius: 4px; display: inline-block; position: relative; flex-shrink: 0; margin-top: 2px; }
.custom-checkbox input:checked ~ .checkmark { background: #5551ff; border-color: #5551ff; }
.custom-checkbox input:checked ~ .checkmark:after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); display: block; }
.checkmark:after { display: none; }
.check-text { font-size: 13px; color: #3c4858; line-height: 1.5; }
.check-text a { color: #5551ff; text-decoration: none; }

/* Custom Moncash UI */
.moncash-ui-wrapper {
    background: #eff3f8;
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.mc-header {
    background: linear-gradient(to bottom, #f23c27, #c11000);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 15px;
    text-transform: capitalize;
}
.mc-body {
    background: #eff3f8; /* very light blue/grey */
    padding: 20px;
}
.mc-merchant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dcdfe6;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.mc-merch-details {
    display: flex;
    flex-direction: column;
}
.mc-merch-name {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}
.mc-merch-total {
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 4px;
}
.mc-merch-logo {
    height: 35px;
}
.mc-inputs-area {
    margin-bottom: 20px;
}
.mc-input-group {
    display: flex;
    background: #fff;
    border: 1px solid #cdd4e0;
    border-radius: 4px;
    overflow: hidden;
}
.mt-15 { margin-top: 15px; }
.mc-prefix {
    background: #fdfdfd;
    padding: 12px 15px;
    color: #666;
    font-size: 14px;
    border-right: 1px solid #cdd4e0;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}
.mc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-input-group input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #333;
}
.mc-error {
    color: #d92a4b;
    font-size: 11px;
    display: block;
    margin-top: 4px;
}
.mc-pay-btn {
    width: 100%;
    background: linear-gradient(to bottom, #de2210, #b20a00);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mc-pay-btn:hover {
    background: linear-gradient(to bottom, #e83827, #a20800);
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
    .settings-content-wrapper { padding: 0 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .settings-tabs-container { padding: 20px 20px 0; }
    .form-row { flex-direction: column; }
    
    /* Responsive Checkout Flow */
    .checkout-main-wrapper { flex-direction: column; gap: 20px; margin: 20px auto; }
    .checkout-right-col { width: 100%; order: -1; } /* Order to show summary on top on mobile, or -1 depending on design */
    .cart-summary-box { position: static; padding: 20px; }
    
    .checkout-header { padding: 0 20px; }
    .checkout-steps { display: none; } /* Hide complicated steps on mobile to save space */
    .checkout-page-title { font-size: 24px; margin-bottom: 20px; }
    .checkout-card { padding: 20px; }
}