/* Shared controls for every page rendered by theme 1. */
body.tlc-theme {
    --tlc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-family: var(--tlc-font); font-size: 14px; line-height: 1.6; letter-spacing: 0;
}
.tlc-theme :is(input, select, textarea, button, .table, .modal, .swal2-popup, .select2-container, .daterangepicker) { font-family: var(--tlc-font); letter-spacing: 0; }
.tlc-theme .tlc-main :is(.row > *, .card, .card-body, .tab-content) { min-width: 0; }
.tlc-theme .tlc-main .card { border-color: var(--tlc-line); box-shadow: 0 3px 12px #172f4303; }
.tlc-theme :is(.card-title, .modal-title, .accordion-header) { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--tlc-ink); }
.tlc-theme :is(.form-label, .col-form-label, .form-check-label) { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--tlc-ink); }
.tlc-theme .form-label { margin-bottom: 7px; }
.tlc-theme :is(.form-control, .form-select, .input-group-text) { min-height: 42px; font-size: 13px; line-height: 1.5; font-weight: 400; }
.tlc-theme :is(.form-control, .form-select) { padding: 10px 13px; border-radius: 8px; }
.tlc-theme .form-select { padding-right: 34px; }
.tlc-theme textarea.form-control { min-height: 96px; resize: vertical; }
.tlc-theme .form-control::placeholder { font-size: inherit; }
.tlc-theme .form-text { font-size: 12px; color: var(--tlc-muted); }
.tlc-theme .input-group > .btn { flex-shrink: 0; }
.tlc-theme .btn { min-height: 38px; padding: 8px 14px; font-size: 13px; line-height: 1.5; font-weight: 600; border-radius: 8px; gap: 7px; letter-spacing: 0; }
.tlc-theme .btn-sm { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.tlc-theme .btn-lg { min-height: 46px; padding: 11px 20px; font-size: 15px; }
.tlc-theme .btn:disabled { opacity: .55; }
.tlc-theme .table { font-family: var(--tlc-font); font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.tlc-theme .table thead th { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; border-color: var(--tlc-line) !important; }
.tlc-theme .table tbody td { font-size: 13px; color: var(--tlc-ink); border-color: var(--tlc-line); }
.tlc-theme .table tbody[style*="font-weight"] { font-weight: 400 !important; }
.tlc-theme .table-responsive { max-width: 100%; border-radius: 10px; }
/* Override legacy light row backgrounds; Bootstrap paints hover/active via its cell shadow. */
.tlc-theme .table {
    --bs-table-color: var(--tlc-ink);
    --bs-table-bg: var(--tlc-surface, #fff);
    --bs-table-border-color: var(--tlc-line);
    --bs-table-striped-bg: #f4f8fa;
    --bs-table-striped-color: var(--tlc-ink);
    --bs-table-hover-bg: #edf6f3;
    --bs-table-hover-color: var(--tlc-ink);
    --bs-table-active-bg: #e2f1eb;
    --bs-table-active-color: var(--tlc-ink);
}
[data-color-mode="dark"] .tlc-theme .table {
    --bs-table-striped-bg: #1d2d3a;
    --bs-table-hover-bg: #233c40;
    --bs-table-active-bg: #284a48;
}
.tlc-theme .table > :is(tbody, tfoot) > tr > :is(td, th) {
    border-color: var(--tlc-line);
    background-color: var(--bs-table-bg);
}
.tlc-theme .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bs-table-striped-bg) !important;
    color: var(--tlc-ink);
}
.tlc-theme .table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.tlc-theme .table input[type="checkbox"] { accent-color: var(--tlc-accent); cursor: pointer; }
.tlc-theme .table > tbody > tr.selected > *,
.tlc-theme .table > tbody > tr:has(input.id_checkbox:checked) > * {
    --bs-table-bg-state: var(--bs-table-active-bg);
    --bs-table-color-state: var(--tlc-ink);
}
@media (min-width: 769px) {
    .tlc-theme .table.order-history-table > tbody > tr:nth-child(odd) > td {
        background-color: var(--bs-table-striped-bg) !important;
    }
}
.tlc-theme .badge { font-size: 11px; padding: 5px 8px; line-height: 1.4; font-weight: 600; }
.tlc-theme .modal-content { border: 1px solid var(--tlc-line); border-radius: 14px; box-shadow: 0 20px 60px #0003; }
.tlc-theme :is(.modal-header, .modal-footer) { padding: 16px 20px; border-color: var(--tlc-line); }
.tlc-theme .modal-body { padding: 20px; font-size: 14px; }
.tlc-theme .modal-footer { gap: 8px; }
.tlc-theme .pagination { gap: 5px; flex-wrap: wrap; }
.tlc-theme .page-link { min-width: 34px; padding: 7px 11px; text-align: center; font-size: 12px; border-radius: 7px !important; border-color: var(--tlc-line); color: var(--tlc-ink); }
.tlc-theme .active > .page-link { background: #087f76; border-color: #087f76; color: white; }
.tlc-theme .disabled > .page-link { opacity: .55; }
.tlc-theme .accordion-item { border-color: var(--tlc-line); background: var(--tlc-surface, #fff); color: var(--tlc-ink); }
.tlc-theme .accordion-button { background: var(--tlc-surface, #fff); color: var(--tlc-ink); font-size: 14px; font-weight: 600; box-shadow: none; }
.tlc-theme .accordion-button:not(.collapsed) { color: var(--tlc-accent); }
.tlc-theme .select2-container .select2-selection { min-height: 42px; border: 1px solid var(--tlc-line); border-radius: 8px; background: var(--tlc-surface, #fff); }
.tlc-theme .select2-container .select2-selection__rendered { color: var(--tlc-ink); font-size: 13px; line-height: 40px; padding-left: 13px; }
.tlc-theme .select2-container .select2-selection__arrow { height: 40px; }
.tlc-theme .select2-dropdown { background: var(--tlc-surface, #fff); border-color: var(--tlc-line); color: var(--tlc-ink); font-size: 13px; }
.tlc-theme .select2-search__field { background: var(--tlc-bg); color: var(--tlc-ink); border: 1px solid var(--tlc-line) !important; border-radius: 6px; }
.tlc-theme .select2-results__option--highlighted[aria-selected] { background: #087f76; color: #fff; }
/* Custom cards used by affiliate, pricing and account views. */
.tlc-theme :is(.card-custom, .stat-card, .price-card) { background: var(--tlc-surface, #fff); border: 1px solid var(--tlc-line); border-radius: 13px; color: var(--tlc-ink); box-shadow: none; }
.tlc-theme :is(.stat-value, .ref-link, .card-custom .card-title, .page-title-box h4) { color: var(--tlc-ink); }
.tlc-theme :is(.stat-label, .text-muted-small, .card-subtitle, .page-title-box .subtitle, .price-unit) { color: var(--tlc-muted); letter-spacing: 0; }
.tlc-theme .ref-box { background: var(--tlc-bg); border-color: var(--tlc-line); }
[data-color-mode="dark"] .tlc-theme .price-box { background: #3d292e; border-color: #6b424a; }
[data-color-mode="dark"] .tlc-theme :is(.price-box, .price-mobile) .price-value { color: #ffaaaa; }
[data-color-mode="dark"] .tlc-theme .select2-results__option[aria-selected=true] { background: #263d4c; }
[data-color-mode="dark"] .tlc-theme .daterangepicker,
[data-color-mode="dark"] .tlc-theme .daterangepicker .calendar-table { background: var(--tlc-surface); color: var(--tlc-ink); border-color: var(--tlc-line); }
[data-color-mode="dark"] .tlc-theme .daterangepicker :is(td.off, td.in-range) { background: #223444; color: #c1d0df; }
[data-color-mode="dark"] .tlc-theme .daterangepicker :is(td.available:hover, th.available:hover, .ranges li:hover) { background: #304557; color: white; }
[data-color-mode="dark"] .tlc-theme .daterangepicker :is(td.active, .ranges li.active) { background: #087f76; color: white; }
[data-color-mode="dark"] .tlc-theme .daterangepicker :is(select, input) { background: #111e2a; color: var(--tlc-ink); border-color: var(--tlc-line); }
[data-color-mode="dark"] .tlc-theme .daterangepicker :is(.next, .prev) span { border-color: var(--tlc-ink); }
@media (max-width: 575px) {
    .tlc-theme :is(.form-control, .form-select, .select2-search__field) { font-size: 16px; }
    .tlc-theme :is(.modal-body, .modal-header, .modal-footer) { padding: 16px; }
    .tlc-theme .modal-dialog { margin: 12px; }
    .tlc-theme .card-header > .d-flex { flex-wrap: wrap; gap: 12px; }
}
/* Statistics overview: contain charts and keep all summary cards aligned. */
.tlc-theme .tlc-overview-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tlc-theme .tlc-overview-toolbar > .col { flex: 1 1 220px; }
.tlc-theme .tlc-overview-toolbar > .col-auto { flex: 0 1 280px; min-width: 0; }
.tlc-theme .tlc-overview-toolbar > input { flex: 0 1 250px; width: 250px; }
.tlc-theme .tlc-overview > .tab-content { padding: 0 22px 22px; }
.tlc-theme .tlc-overview #tab-chart { overflow: visible; }
.tlc-theme .tlc-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 24px; }
.tlc-theme .tlc-summary-card { min-width: 0; padding: 20px; background: var(--tlc-surface, #fff); border: 1px solid var(--tlc-line); border-radius: 12px; }
.tlc-theme .tlc-summary-card h5 { font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.tlc-theme .tlc-summary-amount { font-size: 25px; font-weight: 650; line-height: 1.35; color: var(--tlc-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tlc-theme .tlc-summary-label { font-size: 11px; color: var(--tlc-muted); }
.tlc-theme .tlc-summary-count { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--tlc-line); font-size: 12px; color: var(--tlc-muted); }
.tlc-theme .tlc-summary-count strong { color: var(--tlc-accent); font-weight: 600; }
@media (min-width: 1600px) { .tlc-theme .tlc-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .tlc-theme .tlc-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tlc-theme .tlc-overview-toolbar > :is(.col, .col-auto, input) { flex: 1 1 100%; width: 100%; }
    .tlc-theme .tlc-overview > .tab-content { padding: 0 16px 16px; }
    .tlc-theme .tlc-summary-card { padding: 16px; }
    .tlc-theme .tlc-summary-amount { font-size: 22px; }
}
@media (max-width: 359px) { .tlc-theme .tlc-summary-grid { grid-template-columns: 1fr; } }
/* Account tabs, API controls and security settings. */
.tlc-theme .tlc-profile-page > div { min-width: 0; }
.tlc-theme .tlc-profile-page > .col-lg-8 > .card { box-shadow: none !important; }
.tlc-theme .tlc-profile-page .tab-pane { overflow: visible; }
.tlc-theme .tlc-api-key-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tlc-theme .tlc-api-key-controls > .form-control { flex: 1 1 220px; min-width: 0; text-align: left !important; font-family: ui-monospace, monospace; }
.tlc-theme .tlc-api-key-controls > .btn { min-height: 42px; }
.tlc-theme .tlc-password-card form { max-width: 560px; }
.tlc-theme .tlc-profile-security .card { box-shadow: none !important; }
.tlc-theme .tlc-profile-security .card-body.p-4 { padding: 22px !important; }
.tlc-theme .tlc-profile-security .card.h-100 { margin-bottom: 0; }
.tlc-theme .tlc-profile-security .avatar-sm { width: 36px; height: 36px; flex-shrink: 0; }
.tlc-theme .tlc-profile-security h5 { font-size: 14px !important; line-height: 1.5; }
.tlc-theme .tlc-profile-page .label-sm { font-size: 13px; }
[data-color-mode="dark"] .tlc-theme .tlc-profile-security :is(.bg-primary-subtle, .bg-success-subtle) { background: #193d38 !important; }
[data-color-mode="dark"] .tlc-theme .tlc-profile-security .bg-secondary-subtle { background: #263d4c !important; }
[data-color-mode="dark"] .tlc-theme .tlc-profile-security .bg-warning-subtle { background: #3b3322 !important; }
@media (max-width: 575px) {
    .tlc-theme .tlc-profile-security .card-body.p-4 { padding: 16px !important; }
    .tlc-theme .tlc-api-key-controls > .btn { flex: 1 1 auto; }
    .tlc-theme .tlc-profile-page .nav-tabs .nav-link { font-size: 12px; padding: 10px; }
}
/* Deposit pages: bank transfers, cards, crypto and history. */
.tlc-theme .tlc-payment-page > .col-12 { padding-inline: 0; }
.tlc-theme .tlc-payment-page .tab-pane { overflow: visible; }
.tlc-theme .tlc-payment-page :is(.card, .shadow-sm) { box-shadow: none !important; }
.tlc-theme .tlc-payment-page .payment-card-wrapper { display: flex; min-width: 0; }
.tlc-theme .tlc-payment-page .payment-card {
    width: 100%; margin: 0; border: 1px solid var(--tlc-line) !important;
    border-radius: 13px; background: var(--tlc-surface, #fff) !important;
}
.tlc-theme .tlc-payment-page .payment-card > .card-body { display: flex; flex-direction: column; width: 100%; padding: 20px; }
.tlc-theme .tlc-payment-page .payment-card-content { flex: 1; min-width: 0; font-size: 13px; line-height: 1.7; }
.tlc-theme .tlc-payment-page .payment-card h6 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.tlc-theme .tlc-payment-page .payment-card code { font-size: 13px; color: var(--tlc-accent); }
.tlc-theme .tlc-payment-page .payment-card strong { font-weight: 600; }
.tlc-theme .tlc-payment-page .payment-card .payment-qr { width: 200px; padding: 10px; background: white; border: 1px solid #e3e9ee; border-radius: 10px !important; }
.tlc-theme .tlc-payment-page .payment-action-wrapper { gap: 10px; margin-top: 20px; }
.tlc-theme .tlc-payment-page .payment-action-wrapper .btn { flex: 1 1 auto; }
.tlc-theme .tlc-payment-page .payment-copy-button { padding: 5px 8px; border-radius: 6px; font-size: 11px; line-height: 1.5; }
.tlc-theme .tlc-payment-page :is(.input-group, .payment-card-content p) { min-width: 0; overflow-wrap: anywhere; }
.tlc-theme .tlc-payment-modal .bank-item { background: var(--tlc-surface, #fff) !important; color: var(--tlc-ink); border-color: var(--tlc-line) !important; }
.tlc-theme .tlc-payment-modal .bank-item:hover { border-color: var(--tlc-accent) !important; }
.tlc-theme .tlc-payment-modal .bank-item img { background: white; padding: 6px; border-radius: 6px; }
.tlc-theme .tlc-payment-modal .modal-header { flex-wrap: wrap; gap: 10px; }
.tlc-theme .tlc-payment-modal .modal-header .alert { flex-basis: 100%; }
.tlc-theme .tlc-payment-modal .modal-header.bg-success .modal-title { color: white; }
.tlc-theme .tlc-payment-page .payment-logs-table tbody td { font-size: 13px; font-weight: 400; }
[data-color-mode="dark"] .tlc-theme .payment-logs-table tbody tr { background: var(--tlc-surface); border-color: var(--tlc-line); }
[data-color-mode="dark"] .tlc-theme .payment-logs-table tbody td { border-color: var(--tlc-line) !important; }
[data-color-mode="dark"] .tlc-theme .payment-logs-table tbody td::before { color: var(--tlc-muted); }
@media (max-width: 575px) {
    .tlc-theme .tlc-payment-page .payment-card > .card-body { padding: 16px; }
    .tlc-theme .tlc-payment-modal .input-group > .form-control { min-width: 100px; }
    .tlc-theme .tlc-payment-page .card-header.d-flex { flex-wrap: wrap; gap: 10px; }
}
/* Mobile controls: override the legacy block navigation and retain local scrolling. */
@media (max-width: 767px) {
    .tlc-theme .tlc-main .nav-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; }
    .tlc-theme .tlc-main .nav-tabs > .nav-item { flex: 0 0 auto; }
    .tlc-theme :is(.btn, .btn-sm, .tlc-icon-button, .tlc-account-button, .page-link) { min-height: 44px; }
    .tlc-theme .tlc-icon-button { min-width: 44px; }
    .tlc-theme .tlc-main .nav-link { min-height: 44px; }
    .tlc-theme :is(.form-control, .form-select, .select2-search__field, .swal2-input, .swal2-textarea) { font-size: 16px; }
    .tlc-theme .select2-container { max-width: 100%; }
    .tlc-theme .swal2-popup { max-width: calc(100vw - 24px); padding: 20px 16px; }
    .tlc-theme .swal2-title { font-size: 22px; overflow-wrap: anywhere; }
    .tlc-theme .swal2-input { width: 100%; margin: 16px 0; box-sizing: border-box; }
    .tlc-theme .swal2-actions { flex-wrap: wrap; gap: 8px; }
    .tlc-theme .tlc-payment-page .payment-qr { max-width: 100%; height: auto; }
    .tlc-topbar-start { flex-shrink: 0; }
    .tlc-topbar-actions { min-width: 0; }
    .tlc-balance { min-width: 0; }
    .tlc-balance > span { min-width: 0; }
    .tlc-balance strong { overflow-wrap: anywhere; line-height: 1.4; }
    .tlc-footer { flex-wrap: wrap; overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
    .tlc-topbar { padding-inline: 12px; }
    .tlc-topbar-actions { gap: 8px; }
    .tlc-topbar-actions > .btn { padding-inline: 10px; }
    .tlc-topbar-actions > .btn .tlc-icon { display: none; }
    .tlc-balance > .tlc-icon { display: none; }
    .tlc-theme .tlc-main { padding-inline: 12px; }
}
@media (max-width: 767px) {
    .tlc-theme .order-page { margin-inline: 0; }
    .tlc-theme .order-page > .card { padding-inline: 0; }
    .tlc-theme .order-page .content-box { padding-inline: 0; }
    .tlc-theme .order-page #form_order > .card > .card-body { padding: 12px 0; }
    .tlc-theme .order-page .order-action-button { min-height: 44px; }
}

/* Soft semantic colors shared by buttons and alerts. */
body.tlc-theme :is(.btn-primary, .btn-outline-primary, .btn-light-primary, .alert-primary) { --tlc-tone-bg: #e2f3ef; --tlc-tone-hover: #cce9e2; --tlc-tone-border: #b7dcd3; --tlc-tone-text: #17675f; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-primary, .btn-outline-primary, .btn-light-primary, .alert-primary) { --tlc-tone-bg: #24413e; --tlc-tone-hover: #30534e; --tlc-tone-border: #416b62; --tlc-tone-text: #a5e1d3; }
body.tlc-theme :is(.btn-success, .btn-outline-success, .btn-light-success, .alert-success) { --tlc-tone-bg: #e8f4ec; --tlc-tone-hover: #d4eadd; --tlc-tone-border: #bedcc9; --tlc-tone-text: #286440; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-success, .btn-outline-success, .btn-light-success, .alert-success) { --tlc-tone-bg: #253e31; --tlc-tone-hover: #30513f; --tlc-tone-border: #446950; --tlc-tone-text: #b1dfbf; }
body.tlc-theme :is(.btn-warning, .btn-outline-warning, .btn-light-warning, .alert-warning) { --tlc-tone-bg: #fff4dc; --tlc-tone-hover: #f9e7bf; --tlc-tone-border: #e8d3a2; --tlc-tone-text: #805b19; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-warning, .btn-outline-warning, .btn-light-warning, .alert-warning) { --tlc-tone-bg: #403825; --tlc-tone-hover: #51462c; --tlc-tone-border: #6e5b32; --tlc-tone-text: #ecd29c; }
body.tlc-theme :is(.btn-danger, .btn-outline-danger, .btn-light-danger, .alert-danger) { --tlc-tone-bg: #fbecec; --tlc-tone-hover: #f5dada; --tlc-tone-border: #e8c5c5; --tlc-tone-text: #a13c43; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-danger, .btn-outline-danger, .btn-light-danger, .alert-danger) { --tlc-tone-bg: #432e34; --tlc-tone-hover: #563940; --tlc-tone-border: #744b55; --tlc-tone-text: #edb6bf; }
body.tlc-theme :is(.btn-info, .btn-outline-info, .btn-light-info, .alert-info) { --tlc-tone-bg: #e9f2fa; --tlc-tone-hover: #d7e8f5; --tlc-tone-border: #c0d9ea; --tlc-tone-text: #326181; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-info, .btn-outline-info, .btn-light-info, .alert-info) { --tlc-tone-bg: #293b49; --tlc-tone-hover: #344b5c; --tlc-tone-border: #47667d; --tlc-tone-text: #b6d6ed; }
body.tlc-theme :is(.btn-secondary, .btn-outline-secondary, .btn-light-secondary, .alert-secondary) { --tlc-tone-bg: #eef1f5; --tlc-tone-hover: #e1e7ee; --tlc-tone-border: #d0d8e2; --tlc-tone-text: #526174; }
[data-color-mode="dark"] body.tlc-theme :is(.btn-secondary, .btn-outline-secondary, .btn-light-secondary, .alert-secondary) { --tlc-tone-bg: #333d49; --tlc-tone-hover: #404d5c; --tlc-tone-border: #536376; --tlc-tone-text: #c7d2df; }
body.tlc-theme :is(.btn-primary, .btn-outline-primary, .btn-light-primary, .btn-success, .btn-outline-success, .btn-light-success, .btn-warning, .btn-outline-warning, .btn-light-warning, .btn-danger, .btn-outline-danger, .btn-light-danger, .btn-info, .btn-outline-info, .btn-light-info, .btn-secondary, .btn-outline-secondary, .btn-light-secondary, .alert-primary, .alert-success, .alert-warning, .alert-danger, .alert-info, .alert-secondary) {
    background-color: var(--tlc-tone-bg) !important;
    background-image: none !important;
    border-color: var(--tlc-tone-border) !important;
    color: var(--tlc-tone-text) !important;
    box-shadow: none;
}
body.tlc-theme :is(.btn-primary, .btn-outline-primary, .btn-light-primary, .btn-success, .btn-outline-success, .btn-light-success, .btn-warning, .btn-outline-warning, .btn-light-warning, .btn-danger, .btn-outline-danger, .btn-light-danger, .btn-info, .btn-outline-info, .btn-light-info, .btn-secondary, .btn-outline-secondary, .btn-light-secondary):is(:hover, :focus-visible, :active, .active) {
    background-color: var(--tlc-tone-hover) !important;
    border-color: var(--tlc-tone-text) !important;
    color: var(--tlc-tone-text) !important;
}
body.tlc-theme :is(.btn-primary, .btn-outline-primary, .btn-light-primary, .btn-success, .btn-outline-success, .btn-light-success, .btn-warning, .btn-outline-warning, .btn-light-warning, .btn-danger, .btn-outline-danger, .btn-light-danger, .btn-info, .btn-outline-info, .btn-light-info, .btn-secondary, .btn-outline-secondary, .btn-light-secondary):is(:disabled, .disabled) {
    background-color: var(--tlc-tone-bg) !important;
    border-color: var(--tlc-tone-border) !important;
    opacity: .6;
}
body.tlc-theme :is(.alert-primary, .alert-success, .alert-warning, .alert-danger, .alert-info, .alert-secondary) :is(.alert-link, .text-white, strong, b) { color: inherit !important; }
body.tlc-theme :is(.alert-primary, .alert-success, .alert-warning, .alert-danger, .alert-info, .alert-secondary) .alert-link { text-decoration: underline; }

/* Compact service rows, aligned without separate cards. */
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) { gap: 2px !important; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-choice {
    display: flex; align-items: center; gap: 10px; position: relative;
    padding: 9px 8px; margin: 0; border: 0; border-radius: 7px;
    background: transparent;
}
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-choice > input {
    float: none; flex: 0 0 14px; width: 14px; height: 14px; margin: 0 !important;
}
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-label {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; cursor: pointer;
}
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-label::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-code { font-size: 10px; font-weight: 700; color: var(--tlc-ink); white-space: nowrap; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-name { color: var(--tlc-ink); font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-price {
    padding: 3px 7px; border-radius: 5px; background: #edf6f3; color: #256b60;
    font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-price > span { font-size: 9px; font-weight: 400; color: inherit; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-choice:has(input:checked) .tlc-service-name { color: var(--tlc-accent); font-weight: 600; }
body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-choice:focus-within { outline: 2px solid var(--tlc-accent); outline-offset: 1px; }
[data-color-mode="dark"] body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-price { background: #24413e; color: #a5e1d3; }
@media (max-width: 575px) {
    body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-choice { padding-inline: 0; gap: 8px; }
    body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-label { gap: 8px; }
    body.tlc-theme :is(#serverContainer, #buyMutipleServerContainer) .tlc-service-name { font-size: 12px; }
}

/* Keep the purchase action prominent within the soft palette. */
body.tlc-theme .btn.tlc-order-submit {
    background-color: #087f76 !important; border-color: #087f76 !important;
    color: #fff !important; font-weight: 650 !important;
}
body.tlc-theme .btn.tlc-order-submit:is(:hover, :focus-visible, :active) {
    background-color: #06685f !important; border-color: #06685f !important; color: #fff !important;
}
body.tlc-theme .btn.tlc-order-submit:is(:disabled, .disabled) {
    background-color: #087f76 !important; border-color: #087f76 !important; color: #fff !important; opacity: .6;
}

/* Bulk orders use the same typography and surfaces as the single order form. */
body.tlc-theme #buy_mutiple { font-size: 13px; line-height: 1.6; letter-spacing: 0; }
body.tlc-theme #buy_mutiple > div { min-width: 0; }
body.tlc-theme #buy_mutiple .card-body { padding: 20px; }
body.tlc-theme #buy_mutiple .form-label { display: block; color: var(--tlc-ink); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
body.tlc-theme #buy_mutiple .form-label b { font-weight: 500; }
body.tlc-theme #buy_mutiple :is(.form-control, .btn) { font-size: 13px; letter-spacing: 0; }
body.tlc-theme #buy_mutiple textarea { resize: vertical; line-height: 1.7; }
body.tlc-theme #buy_mutiple .tlc-bulk-notes h3 { font-size: 13px; font-weight: 600; color: inherit; letter-spacing: 0; }
body.tlc-theme #buy_mutiple .tlc-bulk-notes { font-size: 12px; text-align: left; }
body.tlc-theme #buy_mutiple .tlc-bulk-total { padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--tlc-line); border-radius: 9px; background: var(--tlc-bg); color: var(--tlc-ink); font-weight: 500; }
body.tlc-theme #buy_mutiple #buy_mutiple_total_preview { font-size: 18px; font-weight: 650; }
body.tlc-theme #buy_mutiple .tlc-bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
body.tlc-theme #buy_mutiple .tlc-bulk-actions .btn { margin-top: 0 !important; }
body.tlc-theme #buy_mutiple .table th { font-size: 12px; font-weight: 600; white-space: nowrap; }
body.tlc-theme #buy_mutiple .table td { font-size: 13px; font-weight: 400; }
body.tlc-theme #buy_mutiple .table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--tlc-accent); }
body.tlc-theme #buy_mutiple #group_reaction_label { flex: 0 0 100%; max-width: 100%; padding-bottom: 6px; }
body.tlc-theme #buy_mutiple #group_reaction { flex: 0 0 100%; max-width: 100%; }
@media (max-width: 767px) {
    body.tlc-theme #buy_mutiple .card-body { padding: 14px; }
    body.tlc-theme #buy_mutiple .form-control { font-size: 16px; }
    body.tlc-theme #buy_mutiple .tlc-bulk-actions .btn { flex: 1 1 auto; }
}

.tlc-language-form { margin: 0; flex-shrink: 0; }
body.tlc-theme .tlc-language-form .form-select { width: 64px; min-height: 38px; padding: 7px 24px 7px 10px; font-size: 12px; background-color: var(--tlc-surface, #fff); color: var(--tlc-ink); border-color: var(--tlc-line); cursor: pointer; }
@media (max-width: 575px) { .tlc-topbar-actions { gap: 6px; } body.tlc-theme .tlc-language-form .form-select { width: 58px; padding-left: 7px; min-height: 44px; } }
