:root {
    --iconta-blue: #1722a8;
    --iconta-blue-2: #2d39c9;
    --iconta-blue-3: #eef1ff;
    --iconta-ink: #17171f;
    --iconta-muted: #687083;
    --iconta-line: #e3e7f2;
    --iconta-bg: #f7f8fc;
    --iconta-panel: #ffffff;
    --bs-primary: var(--iconta-blue);
    --bs-primary-rgb: 23, 34, 168;
    --bs-link-color: var(--iconta-blue);
    --bs-link-hover-color: var(--iconta-blue-2);
    --bs-border-radius: .5rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--iconta-ink); background: var(--iconta-bg); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.alert {
    position: relative;
    padding-right: 2.75rem;
    transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease;
    overflow: hidden;
}
.alert-close-button {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    opacity: .65;
    line-height: 1;
}
.alert-close-button:hover,
.alert-close-button:focus-visible {
    background: rgba(0, 0, 0, .08);
    opacity: 1;
}
.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
}

.btn, button:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)), .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    font-weight: 700;
}
.btn-primary, button:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)):not(.btn):not(.link-button), .button {
    --bs-btn-bg: var(--iconta-blue);
    --bs-btn-border-color: var(--iconta-blue);
    --bs-btn-hover-bg: var(--iconta-blue-2);
    --bs-btn-hover-border-color: var(--iconta-blue-2);
    background: var(--iconta-blue);
    border-color: var(--iconta-blue);
    color: #fff;
}
button:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)):not(.btn):not(.link-button), .button {
    border: 1px solid var(--iconta-blue);
    border-radius: .5rem;
    padding: .5rem .8rem;
    cursor: pointer;
}
.danger-button {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #fff !important;
}
.link-button { background: transparent; border: 0; padding: 0; color: inherit; }
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(12, 18, 49, .48);
    backdrop-filter: blur(3px);
}
.loading-overlay.show { display: grid; }
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2040;
    background: rgba(12, 18, 49, .52);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .15s ease;
}
.confirm-modal-backdrop.show { opacity: 1; }
.confirm-modal {
    z-index: 2050;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.confirm-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.confirm-modal .modal-content {
    border: 0;
    border-radius: .5rem;
    box-shadow: 0 28px 80px rgba(7, 12, 55, .32);
}
.confirm-modal .modal-header,
.confirm-modal .modal-footer {
    border-color: var(--iconta-line);
}
.confirm-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--iconta-ink);
    font-weight: 900;
}
.support-thread {
    display: grid;
    gap: .85rem;
}
.support-message {
    width: min(760px, 100%);
    padding: .9rem;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #fff;
}
.support-message.admin {
    margin-left: auto;
    background: var(--iconta-blue-3);
    border-color: rgba(23, 34, 168, .18);
}
.support-message.customer {
    margin-right: auto;
}
.support-message div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: var(--iconta-muted);
    font-size: .85rem;
    margin-bottom: .45rem;
}
.support-message p {
    margin: 0;
    white-space: pre-wrap;
}
.plan-card {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
}
.plan-card:has(input:checked) {
    border-color: var(--iconta-blue);
    box-shadow: 0 0 0 3px rgba(23, 34, 168, .10);
}
.contract-paper {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.75;
    color: var(--iconta-ink);
}
.contract-paper h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 900;
}
.loading-card {
    width: min(320px, 100%);
    display: grid;
    place-items: center;
    gap: .85rem;
    padding: 1.35rem;
    border-radius: .5rem;
    background: #fff;
    color: var(--iconta-ink);
    box-shadow: 0 24px 70px rgba(7, 12, 55, .28);
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--iconta-blue-3);
    border-top-color: var(--iconta-blue);
    animation: iconta-spin .8s linear infinite;
}
button.is-loading {
    cursor: wait;
    opacity: .82;
}
button.is-loading::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: iconta-spin .8s linear infinite;
}
@keyframes iconta-spin {
    to { transform: rotate(360deg); }
}

.mobile-menu-toggle,
.menu-backdrop { display: none; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--iconta-blue) 0%, #10186f 100%);
    color: #fff;
    padding: 1.35rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 8px 0 30px rgba(23, 34, 168, .16);
}
.brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: .4rem .65rem;
}
.brand img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--iconta-blue);
    color: #fff;
    font-weight: 800;
}
.nav { display: grid; gap: .25rem; }
.nav a {
    color: rgba(255, 255, 255, .82);
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 42px;
    padding: .65rem .8rem;
    border-radius: .5rem;
    font-weight: 700;
}
.nav a i { width: 20px; text-align: center; font-size: 1rem; }
.nav a.active,
.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    text-decoration: none;
}
.sidebar-footer {
    margin-top: auto;
    padding: .9rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .08);
    display: grid;
    gap: .2rem;
}
.sidebar-footer span { font-weight: 800; }
.sidebar-footer small { color: rgba(255, 255, 255, .72); overflow-wrap: anywhere; }
.sidebar-account {
    display: grid;
    gap: .15rem;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.main { padding: 1.55rem; min-width: 0; }
.main > .client-account-card:first-child { margin-top: 0; }
.topbar {
    min-height: 118px;
    margin-bottom: 1.25rem;
    padding: 1.45rem;
    border-radius: .5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--iconta-blue) 0%, var(--iconta-blue-2) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 14px 34px rgba(23, 34, 168, .22);
}
.topbar h1 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 850; letter-spacing: 0; }
.topbar p { margin: .35rem 0 0; color: rgba(255, 255, 255, .78); }
.language-switcher { margin: 0; }
.language-switcher-label {
    display: block;
    margin-bottom: .35rem;
    color: rgba(255, 255, 255, .74);
    font-size: .75rem;
    font-weight: 700;
}
.language-select-wrap { position: relative; }
.language-current-flag {
    position: absolute;
    left: .7rem;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
}
.language-switcher select {
    min-width: 190px;
    padding-left: 2.25rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
}
.language-current-flag img,
.language-flag-icon img,
.language-admin-flag img {
    display: block;
    object-fit: cover;
    border-radius: .18rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.language-current-flag i { font-size: 1rem; }
.language-switcher select option { color: #17202f; background: #fff; }
.site-nav .language-switcher select {
    min-width: 185px;
    color: var(--iconta-blue);
    background: #fff;
    border-color: rgba(20, 40, 191, .16);
}
.language-flags {
    display: flex;
    gap: .45rem;
    margin: 0;
    padding: .35rem;
    border: 1px solid rgba(20, 40, 191, .14);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(6, 18, 120, .16);
}
.language-flag-option { margin: 0; cursor: pointer; }
.language-flag-option input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.language-flag-option > .language-flag-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2rem;
    border: 2px solid transparent;
    border-radius: .4rem;
    font-size: 1.35rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.language-flag-option:hover > .language-flag-icon { transform: translateY(-1px); background: #eef1ff; }
.language-flag-option input:checked + span {
    border-color: var(--iconta-blue);
    background: #e8ebff;
}
.language-flag-option input:focus-visible + span { outline: 3px solid rgba(20, 40, 191, .25); }
.nav-accordion { display: grid; gap: .35rem; }
.nav-accordion-toggle {
    width: 100%;
    border: 0;
    color: rgba(255,255,255,.88);
    background: transparent;
    border-radius: .5rem;
    padding: .7rem .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    font-weight: 700;
}
.nav-accordion-toggle span { display: inline-flex; align-items: center; gap: .7rem; }
.nav-accordion-toggle:hover, .nav-accordion.open .nav-accordion-toggle { background: rgba(255,255,255,.12); color: #fff; }
.nav-accordion-toggle .bi-chevron-down { transition: transform .18s ease; }
.nav-accordion.open .nav-accordion-toggle .bi-chevron-down { transform: rotate(180deg); }
.nav-accordion-panel { display: none; padding-left: .65rem; }
.nav-accordion.open .nav-accordion-panel { display: grid; gap: .3rem; }
.nav-accordion-panel a { font-size: .92rem; }
.settings-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}
.settings-preview div {
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: .5rem;
    padding: .85rem;
    background: #f8f9ff;
}
.settings-preview span { display: block; color: #6b7280; font-size: .82rem; }
.settings-preview strong { color: var(--iconta-blue); }
.financial-settings-hero {
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: .5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--iconta-blue) 0%, var(--iconta-blue-2) 100%);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.financial-settings-hero h2 { margin: .25rem 0; font-weight: 850; letter-spacing: 0; }
.financial-settings-hero p { margin: 0; max-width: 760px; color: rgba(255,255,255,.82); }
.financial-settings-status { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.financial-settings-status span {
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: .45rem .7rem;
    background: rgba(255,255,255,.12);
    font-size: .86rem;
    font-weight: 700;
}
.financial-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.financial-card { display: grid; gap: 1rem; }
.financial-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(20, 40, 191, .10);
    padding-bottom: .9rem;
}
.financial-card-head > div {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.financial-card-head > div > i {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--iconta-blue);
    flex: 0 0 auto;
}
.financial-card-head h2 { margin: 0; font-size: 1.08rem; font-weight: 850; letter-spacing: 0; }
.financial-card-head p { margin: .18rem 0 0; color: #6b7280; font-size: .9rem; }
.financial-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}
.form-switcher {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: #243047;
}
.form-switcher input {
    width: 2.4rem;
    height: 1.25rem;
    appearance: none;
    border: 1px solid rgba(20, 40, 191, .22);
    border-radius: 999px;
    background: #d8deef;
    position: relative;
    transition: background .15s ease;
}
.form-switcher input::after {
    content: "";
    position: absolute;
    top: .15rem;
    left: .15rem;
    width: .85rem;
    height: .85rem;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.form-switcher input:checked { background: var(--iconta-blue); }
.form-switcher input:checked::after { transform: translateX(1.1rem); }
.financial-switch-row { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; }
.repasse-simulator {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: .5rem;
    overflow: hidden;
    background: #f8f9ff;
}
.repasse-simulator div { padding: .85rem; border-right: 1px solid rgba(20, 40, 191, .10); }
.repasse-simulator div:last-child { border-right: 0; background: #eef8f2; }
.repasse-simulator span, .distribution-total { display: block; color: #6b7280; font-size: .82rem; }
.repasse-simulator strong { display: block; margin-top: .2rem; color: var(--iconta-blue); font-size: 1.02rem; }
.distribution-box {
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: .5rem;
    padding: .9rem;
    background: #f8f9ff;
}
.distribution-box h3 {
    margin: 0 0 .8rem;
    font-size: .98rem;
    font-weight: 850;
    letter-spacing: 0;
    color: #243047;
}
.distribution-total {
    margin-top: .7rem;
    font-weight: 850;
    color: var(--iconta-blue);
}
.distribution-total.invalid { color: #b42318; }
.activation-balance {
    min-width: 180px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .5rem;
    padding: .85rem;
    background: rgba(255,255,255,.12);
}
.activation-balance span { display: block; color: rgba(255,255,255,.78); font-size: .82rem; }
.activation-balance strong { display: block; color: #fff; font-size: 1.3rem; }
.pin-inline label { display: grid; gap: .35rem; }
.plans-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.plan-admin-box {
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: .5rem;
    padding: .9rem;
    background: #f8f9ff;
    display: grid;
    gap: .75rem;
}
.plan-admin-box h3 { margin: 0; font-size: .95rem; font-weight: 900; color: var(--iconta-blue); }
.network-hero {
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: .5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--iconta-blue) 0%, var(--iconta-blue-2) 100%);
}
.network-hero h2 { margin: .25rem 0; font-weight: 850; letter-spacing: 0; }
.network-hero p { margin: 0; color: rgba(255,255,255,.8); }
.network-tree-wrap {
    min-height: 420px;
    overflow-x: auto;
    padding: 1.5rem;
    border-radius: .5rem;
    background: #fff;
    box-shadow: var(--shadow);
}
.network-node-group {
    display: grid;
    justify-items: center;
    gap: 1.2rem;
    animation: networkPop .35s ease both;
}
.network-node-card {
    min-width: 140px;
    padding: .85rem;
    border: 1px solid rgba(20,40,191,.14);
    border-radius: .5rem;
    background: #f8f9ff;
    text-align: center;
    position: relative;
}
.network-avatar {
    width: 54px;
    height: 54px;
    margin: 0 auto .5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--iconta-blue);
    overflow: hidden;
}
.network-avatar img { width: 100%; height: 100%; object-fit: cover; }
.network-children {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
}
.network-children::before {
    content: "";
    position: absolute;
    top: -.65rem;
    left: 15%;
    right: 15%;
    height: 1px;
    background: rgba(20,40,191,.22);
}
@keyframes networkPop {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.sidebar-language-switcher { margin-top: .8rem; }
.sidebar-language-switcher select { width: 100%; min-width: 0; }
.auth-language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}
.auth-language-switcher .language-flags { backdrop-filter: blur(10px); }
.api-pill {
    max-width: 430px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.1rem; }
.metrics div {
    background: var(--iconta-panel);
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(23, 34, 168, .06);
}
.metrics span { display: block; color: var(--iconta-muted); font-size: .82rem; font-weight: 700; }
.metrics strong { display: block; margin-top: .35rem; font-size: clamp(1.28rem, 1.7vw, 1.7rem); letter-spacing: 0; }
.admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.balance-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
    min-width: 0;
    background: var(--iconta-panel);
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    padding: 1.1rem;
    box-shadow: 0 8px 22px rgba(23, 34, 168, .05);
}
.panel + .panel,
.grid + .panel { margin-top: 1.1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .85rem; }
.panel h2,
.panel-head h2 { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 850; letter-spacing: 0; }
.panel-head h2 { margin-bottom: 0; }
.grid { display: grid; gap: 1.1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
}
th, td { padding: .8rem .72rem; border-bottom: 1px solid var(--iconta-line); text-align: left; vertical-align: middle; }
th {
    color: #566078;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f7f8ff;
    font-weight: 850;
}
tbody tr:hover td { background: #fbfcff; }
.table { --bs-table-hover-bg: #f7f8ff; --bs-table-border-color: var(--iconta-line); }
td.actions,
.actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.actions a:not(.btn) {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: .18rem .55rem;
    background: #e9ecf5;
    color: #3c4357;
    font-size: .75rem;
    font-weight: 800;
}
.badge.active, .badge.approved { background: #e8f8ee; color: #157347; }
.badge.pending, .badge.processing, .badge.under_review { background: #fff6db; color: #a16207; }
.badge.blocked, .badge.rejected, .badge.cancelled { background: #ffe9e7; color: #b42318; }

label:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)) { display: grid; gap: .38rem; color: #344054; font-weight: 750; font-size: .84rem; }
input:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)), select:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)), .form-control, .form-select {
    width: 100%;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    padding: .62rem .72rem;
    color: var(--iconta-ink);
    background-color: #fff;
    min-height: 40px;
}
input:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)):focus, select:not(:where(#cardPaymentBrick_container *, #depositCardPaymentBrick_container *)):focus, .form-control:focus, .form-select:focus {
    border-color: var(--iconta-blue-2);
    box-shadow: 0 0 0 .2rem rgba(23, 34, 168, .12);
    outline: 0;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-stack, .mini-form { display: grid; gap: .75rem; }
.mini-form { margin-top: .9rem; }
.span-2, .form-section, .form-actions { grid-column: 1 / -1; }
.form-section {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding-top: .7rem;
    border-top: 1px solid var(--iconta-line);
    color: var(--iconta-muted);
    font-weight: 850;
}
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: .4rem; }
.inline-form { display: flex; gap: .6rem; margin-top: .9rem; }
.inline-form input,
.inline-form select { max-width: 220px; }
.balance-adjust-form select { min-width: 170px; }
.input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}
.customer-type-panel {
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    padding: .95rem;
    background: #fbfcff;
}
.customer-type-panel[hidden] { display: none !important; }
.type-panel-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
    color: var(--iconta-blue);
    font-size: .95rem;
}
.type-panel-head i { font-size: 1.1rem; }
.compact-grid { gap: .75rem; }

.details { display: grid; grid-template-columns: 150px 1fr; gap: .6rem 1rem; margin: 0; }
.details dt { color: var(--iconta-muted); font-weight: 800; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.json {
    background: #111827;
    color: #dbeafe;
    padding: 1rem;
    border-radius: .5rem;
    overflow: auto;
    max-height: 520px;
    font-size: .82rem;
}
.alert { border-radius: .5rem; display: flex; gap: .45rem; align-items: flex-start; }
.muted { color: var(--iconta-muted); font-size: .84rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .55rem;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-hero,
.client-account-card,
.activation-hero {
    margin-bottom: 1.1rem;
    padding: 1.45rem;
    border-radius: .5rem;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .2), transparent 22%),
        linear-gradient(135deg, var(--iconta-blue) 0%, var(--iconta-blue-2) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 16px 38px rgba(23, 34, 168, .2);
}
.admin-hero h2,
.client-account-card h2,
.activation-hero h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 900;
}
.admin-hero p,
.client-account-card p,
.activation-hero p {
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .82);
    max-width: 760px;
}

.activation-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .75rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    box-shadow: 0 8px 22px rgba(23, 34, 168, .05);
}
.activation-empty i {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--iconta-blue);
    font-size: 1.8rem;
}
.activation-empty h2 { margin: 0; font-weight: 900; }
.activation-empty p { max-width: 560px; color: var(--iconta-muted); margin: 0; }
.account-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .5rem .8rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-weight: 850;
}
.activation-lock {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1rem;
    border-radius: .5rem;
    color: #fff;
    background: linear-gradient(135deg, #8a5200 0%, #b7791f 100%);
    box-shadow: 0 12px 28px rgba(138, 82, 0, .18);
}
.activation-lock > i {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    font-size: 1.35rem;
    flex: 0 0 auto;
}
.activation-lock h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
}
.activation-lock p {
    margin: .25rem 0 .7rem;
    color: rgba(255, 255, 255, .84);
}
.movement-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.movement-totals div {
    padding: .75rem;
    border-radius: .5rem;
    background: var(--iconta-blue-3);
}
.movement-totals span {
    display: block;
    color: var(--iconta-muted);
    font-size: .78rem;
    font-weight: 800;
}
.movement-totals strong {
    display: block;
    margin-top: .25rem;
    color: var(--iconta-blue);
    font-size: 1.05rem;
}
.movement-chart {
    min-height: 230px;
    display: grid;
    grid-template-columns: repeat(31, minmax(8px, 1fr));
    align-items: end;
    gap: .25rem;
    padding: .75rem .25rem .25rem;
    border-bottom: 1px solid var(--iconta-line);
}
.movement-day {
    height: 190px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
    position: relative;
}
.movement-day .bar {
    width: 6px;
    min-height: 2px;
    border-radius: 999px 999px 0 0;
}
.movement-day .bar.incoming { background: #157347; }
.movement-day .bar.outgoing { background: #b42318; }
.movement-day small {
    position: absolute;
    bottom: -1.35rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--iconta-muted);
    font-size: .65rem;
}
.chart-legend {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.8rem;
    color: var(--iconta-muted);
    font-size: .82rem;
    font-weight: 800;
}
.legend-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    margin-right: .3rem;
}
.legend-dot.incoming { background: #157347; }
.legend-dot.outgoing { background: #b42318; }
.quick-actions {
    display: grid;
    gap: .75rem;
}
.quick-actions a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .25rem .75rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    color: var(--iconta-ink);
    background: #fbfcff;
}
.quick-actions a:hover {
    text-decoration: none;
    border-color: rgba(23, 34, 168, .3);
    box-shadow: 0 10px 24px rgba(23, 34, 168, .08);
}
.quick-actions i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    color: #fff;
    background: var(--iconta-blue);
    font-size: 1.1rem;
}
.quick-actions span {
    font-weight: 850;
}
.quick-actions small {
    color: var(--iconta-muted);
}
.upload-form input[type="file"] {
    padding: .5rem;
}
.preview-box {
    min-height: 220px;
    border: 1px dashed var(--iconta-line);
    border-radius: .5rem;
    background: #fbfcff;
    display: grid;
    place-items: center;
    padding: .75rem;
    color: var(--iconta-muted);
    overflow: hidden;
}
.preview-box img,
.preview-box iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: .5rem;
    object-fit: contain;
    background: #fff;
}
.camera-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.camera-view {
    width: 100%;
    max-height: 280px;
    border-radius: .5rem;
    background: #111827;
}
.validation-note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    padding: .75rem;
    border-radius: .5rem;
    background: #fff6db;
    color: #8a5200;
    font-weight: 750;
}
.validation-note.ready {
    background: #e8f8ee;
    color: #157347;
}
.kyc-admin-summary {
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.kyc-admin-summary h2 {
    margin: 0 0 .25rem;
}
.kyc-admin-summary p {
    margin: 0;
    color: var(--iconta-muted);
}
.review-list {
    display: grid;
    gap: .85rem;
}
.review-item {
    display: grid;
    gap: .65rem;
    padding: .85rem;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #fbfcff;
}
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.review-preview {
    min-height: 240px;
    display: grid;
    place-items: center;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}
.review-preview.compact-preview {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
    padding: .65rem;
}
.file-thumb {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}
.file-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.file-thumb-icon {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    background: #f3f6ff;
    color: var(--iconta-blue);
    font-size: 2rem;
}
.review-preview:not(.compact-preview) img,
.review-preview:not(.compact-preview) iframe {
    width: 100%;
    height: 300px;
    border: 0;
    object-fit: contain;
    background: #fff;
}
.file-placeholder {
    display: grid;
    place-items: center;
    gap: .5rem;
    padding: 1rem;
    color: var(--iconta-muted);
    text-align: center;
}
.file-placeholder i {
    font-size: 2rem;
    color: var(--iconta-blue);
}
.review-note {
    margin: 0;
    padding: .65rem;
    border-radius: .5rem;
    background: #fff6db;
    color: #8a5200;
    font-weight: 700;
}
.review-actions {
    display: grid;
    gap: .55rem;
}
.review-actions form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.review-actions input {
    flex: 1 1 180px;
}
.empty-state {
    padding: 1rem;
    border: 1px dashed var(--iconta-line);
    border-radius: .5rem;
    color: var(--iconta-muted);
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.plan-card {
    position: relative;
    display: grid;
    gap: .85rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    box-shadow: 0 8px 22px rgba(23, 34, 168, .05);
}
.plan-card.featured {
    border-color: var(--iconta-blue);
    box-shadow: 0 18px 48px rgba(23, 34, 168, .16);
}
.plan-card h2 { margin: 0; font-weight: 900; }
.plan-card p { margin: 0; color: var(--iconta-muted); }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.plan-price strong { font-size: 1.9rem; color: var(--iconta-blue); }
.plan-price span, .plan-card small { color: var(--iconta-muted); }
.plan-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}
.plan-card li { display: flex; align-items: center; gap: .45rem; }
.plan-card li i { color: var(--iconta-blue); }
.plan-ribbon {
    position: absolute;
    top: .85rem;
    right: .85rem;
    border-radius: 999px;
    background: var(--iconta-blue);
    color: #fff;
    padding: .22rem .58rem;
    font-size: .72rem;
    font-weight: 850;
}
.compact-plans { display: grid; gap: .7rem; }
.compact-plans div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem;
    border-radius: .5rem;
    background: var(--iconta-blue-3);
}
.compact-plans strong { color: var(--iconta-blue); }
.compact-plans span { color: var(--iconta-muted); }

.login-body {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
}
.login-panel {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fff;
    overflow: hidden;
}
.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #050816;
}
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, .08), rgba(2, 6, 23, .18));
}
.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-form-logo {
    max-width: 200px;
    width: min(170px, 56%);
    height: auto;
    object-fit: contain;
    margin-bottom: .35rem;
}
.login-logo { width: min(280px, 82%); height: auto; object-fit: contain; margin-bottom: 2.2rem; }
.login-copy h1 { margin: 0 0 .8rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: 0; line-height: 1.02; }
.login-copy p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 540px; font-size: 1.04rem; }
.login-card {
    min-height: 100vh;
    padding: clamp(1rem, 1vw, 1.25rem);
    display: grid;
    align-content: top;
    justify-content: top;
    justify-self: top;
    gap: 0.5rem;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(145deg, var(--iconta-blue) 0%, #10186f 100%);
    color: #fff;
}
.login-card > * {
    width: min(420px, 100%);
    justify-self: center;
}
.login-card .auth-form-logo { justify-self: center; }
.login-card label { color: rgba(255, 255, 255, .9); }
.login-card .muted { color: rgba(255, 255, 255, .72); }
.login-card .btn-outline-primary {
    --bs-btn-color: var(--iconta-blue);
    --bs-btn-border-color: rgba(255, 255, 255, .55);
    --bs-btn-hover-bg: var(--iconta-blue-2);
    --bs-btn-hover-border-color: var(--iconta-blue-2);
    --bs-btn-hover-color: #fff;
}
.login-card .alert { color: var(--iconta-ink); }
.login-card .auth-form-logo {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .16));
}
.login-card h2 { margin: 0; font-size: 1.35rem; font-weight: 850; display: flex; align-items: center; gap: .5rem; }
.login-card .btn { width: 100%; }
.login-card label,
.login-card input,
.login-card .btn,
.login-card a.btn {
    width: min(420px, 100%);
    justify-self: center;
}
.register-body {
    display: block;
    padding: 0;
}
.register-shell {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
}
.register-visual {
    position: sticky;
    top: 0;
}
.register-copy h1 { margin: 0 0 .8rem; font-size: 2.2rem; font-weight: 900; line-height: 1.05; }
.register-copy p { margin: 0; color: rgba(255, 255, 255, .82); }
.register-form {
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    align-content: start;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: none;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .16), transparent 26%),
        linear-gradient(145deg, var(--iconta-blue) 0%, #10186f 100%);
    color: #fff;
}
.register-form > * {
    width: min(640px, 100%);
    justify-self: center;
}
.register-form label,
.register-form .form-section { color: rgba(255, 255, 255, .9); }
.register-form .form-section {
    border-color: rgba(255, 255, 255, .22);
}
.register-form .panel,
.register-form .customer-type-panel {
    background: rgba(255, 255, 255, .96);
    color: var(--iconta-ink);
}
.register-form .customer-type-panel label { color: #344054; }
.register-form .btn-outline-secondary {
    --bs-btn-color: var(--iconta-blue);
    --bs-btn-border-color: rgba(255, 255, 255, .55);
    --bs-btn-hover-bg: var(--iconta-blue);
    --bs-btn-hover-border-color: var(--iconta-blue);
    --bs-btn-hover-color: #fff;
}
.auth-scroll-form { scrollbar-gutter: stable; }
.auth-form-head h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    color: #fff;
}
.auth-form-head p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}
.pin-confirm-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(23, 34, 168, .22);
    border-left: 5px solid var(--iconta-blue);
    border-radius: .5rem;
    background: linear-gradient(135deg, rgba(23, 34, 168, .08), rgba(255, 255, 255, .96));
}
.pin-confirm-box h2 {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 850;
    color: var(--iconta-blue);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.pin-confirm-box p { margin: 0; color: var(--muted); }
.pin-confirm-box label { margin: 0; font-weight: 760; }
.pin-confirm-box input {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: .25rem;
}

.site-body {
    --site-bg: #0a0e1a;
    --site-surface: #101827;
    --site-text: #f6f8ff;
    --site-muted: rgba(246, 248, 255, .68);
    --site-accent: #00d4aa;
    --site-accent-2: #2d39c9;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Outfit, Inter, Arial, sans-serif;
}
.site-intro {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-content: center;
    gap: 1rem;
    text-align: center;
    background: var(--site-bg);
    transition: opacity .45s ease, visibility .45s ease;
}
.site-intro.hide { opacity: 0; visibility: hidden; }
.site-intro img {
    width: 70px;
    justify-self: center;
    animation: iconta-spin 1.4s linear infinite;
}
.site-intro strong { letter-spacing: .22rem; font-size: 1.35rem; }
.site-intro span { letter-spacing: .35rem; opacity: .55; font-size: .78rem; }
.site-container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: 72px;
    padding-left: max(1rem, calc((100vw - 1200px) / 2));
    padding-right: max(1rem, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(10, 14, 26, .86);
    border-bottom: 1px solid rgba(0, 212, 170, .14);
    backdrop-filter: blur(18px);
}
.site-brand img { width: 150px; height: auto; object-fit: contain; }
.site-links { display: flex; align-items: center; gap: 1.15rem; }
.site-links a {
    color: rgba(246, 248, 255, .78);
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08rem;
}
.site-links a:hover { color: #fff; text-decoration: none; }
.site-login,
.site-open,
.site-cta,
.site-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .72rem 1rem;
    border-radius: .5rem;
    font-weight: 900;
    letter-spacing: .04rem;
}
.site-login,
.site-cta,
.site-open {
    color: #07101e !important;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
}
.site-open { background: linear-gradient(135deg, #fff, #dfe8ff); }
.site-outline {
    color: var(--site-accent);
    border: 2px solid rgba(0, 212, 170, .7);
}
.site-outline.light { color: #fff; border-color: rgba(255, 255, 255, .65); }
.site-menu-button {
    display: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
}
.site-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        var(--site-bg);
    background-size: 38px 38px;
}
.site-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .26;
}
.site-orb.one { width: 520px; height: 520px; top: -160px; right: -140px; background: var(--site-accent); }
.site-orb.two { width: 440px; height: 440px; left: -130px; bottom: -160px; background: var(--site-accent-2); }
.site-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.site-kicker {
    margin: 0 0 .75rem;
    color: var(--site-accent);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .28rem;
}
.site-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}
.site-hero h1 span,
.site-stats strong {
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-lead,
.site-section p,
.site-contact-list { color: var(--site-muted); line-height: 1.75; }
.site-lead { max-width: 560px; margin: 1.4rem 0 0; font-size: 1.08rem; }
.site-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.site-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 3rem; }
.site-stats strong { display: block; font-size: 2.15rem; font-weight: 950; }
.site-stats span { display: block; color: rgba(246, 248, 255, .52); font-size: .78rem; text-transform: uppercase; letter-spacing: .12rem; }
.site-hero-media {
    min-height: 520px;
    border: 1px solid rgba(0, 212, 170, .18);
    border-radius: 1.3rem;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.site-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-section { padding: 90px 0; border-top: 1px solid rgba(0, 212, 170, .1); }
.site-section-alt { background: rgba(255, 255, 255, .025); }
.site-section h2,
.site-account-call h2 {
    margin: 0 0 1.35rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 950;
}
.site-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.site-trust,
.site-contact-list { display: grid; gap: .8rem; margin-top: 1.4rem; }
.site-trust span,
.site-contact-list span { display: inline-flex; align-items: center; gap: .6rem; }
.site-trust i,
.site-contact-list i { color: var(--site-accent); }
.site-tech-card,
.site-contact-card,
.site-services article,
.site-partners div {
    background: var(--site-surface);
    border: 1px solid rgba(0, 212, 170, .12);
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.site-tech-card { padding: 3rem; text-align: center; }
.site-tech-card > i { color: var(--site-accent); font-size: 4.5rem; }
.site-tech-card h3 { margin: 1rem 0 .4rem; font-weight: 950; }
.site-partners,
.site-services {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}
.site-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-partners div { padding: 2rem 1rem; display: grid; gap: .3rem; }
.site-partners strong {
    width: 54px;
    height: 54px;
    margin: 0 auto .45rem;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    color: #07101e;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
}
.site-partners span { font-weight: 900; }
.site-partners small { color: rgba(246, 248, 255, .48); }
.site-services { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.site-services article { padding: 2rem; }
.site-services i { color: var(--site-accent); font-size: 2rem; }
.site-services h3 { margin: 1rem 0 .5rem; font-size: 1.2rem; font-weight: 950; }
.site-services p { margin: 0; font-size: .94rem; }
.site-account-call {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--iconta-blue), #10186f);
    color: #fff;
    text-align: center;
}
.site-account-call p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .76); }
.site-account-call .site-actions { justify-content: center; }
.site-contact-card { padding: 2rem; display: grid; gap: .8rem; }
.site-contact-card h3 { margin: 0 0 .6rem; font-weight: 950; }
.site-contact-card label { color: rgba(246, 248, 255, .7); }
.site-contact-card input,
.site-contact-card select,
.site-contact-card textarea {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(0, 212, 170, .16);
    color: #fff;
}
.site-contact-card option { color: var(--iconta-ink); }
.site-footer {
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 170, .1);
    background: #080c16;
}
.site-footer img { width: min(260px, 80%); margin-bottom: 1rem; }
.site-footer div { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer a,
.site-footer p { color: rgba(246, 248, 255, .45); font-size: .82rem; }
.site-page { padding-top: 72px; }
.site-page-hero {
    padding: 90px 0 64px;
    background:
        radial-gradient(circle at 85% 10%, rgba(0, 212, 170, .18), transparent 28%),
        linear-gradient(135deg, #0a0e1a, #10186f);
    border-bottom: 1px solid rgba(0, 212, 170, .12);
}
.site-page-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 950;
}
.site-page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--site-muted);
    line-height: 1.75;
}
.site-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.site-doc-card {
    padding: 1.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 212, 170, .12);
    background: var(--site-surface);
}
.site-doc-card h2 {
    margin: 0 0 .7rem;
    font-size: 1.2rem;
    font-weight: 950;
}
.site-doc-card p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.75;
}

@media (max-width: 1080px) {
    .mobile-menu-toggle {
        display: inline-flex;
        position: fixed;
        top: .9rem;
        left: .9rem;
        z-index: 1060;
        box-shadow: 0 12px 30px rgba(23, 34, 168, .22);
    }
    .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(12, 18, 49, .48);
        backdrop-filter: blur(2px);
    }
    body.menu-open .menu-backdrop { display: block; }
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        width: min(86vw, 310px);
        height: 100vh;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .22s ease;
        border-radius: 0 .8rem .8rem 0;
    }
    body.menu-open .sidebar { transform: translateX(0); }
    .brand img { max-width: 170px; }
    .nav { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-metrics,
    .client-metrics,
    .balance-metrics,
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.two, .form-grid { grid-template-columns: 1fr; }
    .login-panel, .register-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .login-body { overflow: auto; }
    .login-card {
        min-height: 100vh;
        width: 100%;
        margin: 0 auto;
    }
    .register-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .register-form {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .pin-confirm-box { grid-template-columns: 1fr; }
    .register-copy {
        position: static;
        min-height: 300px;
    }
    .login-copy { min-height: 340px; }
    .topbar { display: grid; }
    .topbar { padding-top: 4rem; }
    .site-menu-button { display: inline-flex; }
    .site-links {
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        display: none;
        padding: 1rem;
        border: 1px solid rgba(0, 212, 170, .16);
        border-radius: .75rem;
        background: rgba(10, 14, 26, .96);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
    }
    .site-links.open { display: grid; }
    .site-hero-grid,
    .site-two,
    .site-services,
    .site-partners,
    .site-doc-grid,
    .financial-settings-grid { grid-template-columns: 1fr; }
    .financial-settings-hero { display: grid; }
    .financial-settings-status { justify-content: flex-start; }
    .repasse-simulator { grid-template-columns: 1fr; }
    .repasse-simulator div { border-right: 0; border-bottom: 1px solid rgba(20, 40, 191, .10); }
    .repasse-simulator div:last-child { border-bottom: 0; }
    .site-hero-media { min-height: 360px; }
}

@media (max-width: 680px) {
    .main { padding: 1rem; }
    .sidebar { padding: 1rem; }
    .nav { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr; }
    .admin-metrics,
    .client-metrics,
    .balance-metrics,
    .plans-grid { grid-template-columns: 1fr; }
    .movement-chart {
        grid-template-columns: repeat(31, 10px);
        overflow-x: auto;
        justify-content: start;
    }
    .admin-hero,
    .client-account-card,
    .activation-hero { display: grid; }
    .details { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .login-card { padding: 1.5rem; }
    .inline-form { display: grid; }
    .inline-form input { max-width: none; }
    .input-action { grid-template-columns: 1fr; }
    .kyc-admin-summary { display: grid; }
    .financial-card-head,
    .financial-card-head > div { display: grid; }
    .financial-form-grid { grid-template-columns: 1fr; }
}

.bot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.virtual-card-preview {
    position: relative;
    min-height: 230px;
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 212, 170, .34), transparent 27%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .20), transparent 22%),
        linear-gradient(135deg, #060b2b 0%, #1428bf 48%, #2f39c9 72%, #050829 100%);
    box-shadow: 0 22px 42px rgba(20, 40, 191, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.virtual-card-preview.is-revealed {
    box-shadow: 0 24px 48px rgba(20, 40, 191, .34), 0 0 0 2px rgba(0, 212, 170, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.virtual-card-preview::before,
.virtual-card-preview::after {
    content: "";
    position: absolute;
    inset: auto -18% -38% 12%;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    transform: rotate(-11deg);
    z-index: -1;
}

.virtual-card-preview::after {
    inset: 18% -26% auto 34%;
    height: 110px;
    border-color: rgba(0, 212, 170, .24);
}

.virtual-card-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 0 32%, rgba(255, 255, 255, .15) 43%, transparent 54%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px);
    opacity: .7;
    z-index: -1;
}

.virtual-card-top,
.virtual-card-chip-row,
.virtual-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.virtual-card-logo {
    width: 112px;
    max-height: 38px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22));
}

.virtual-card-type {
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, .86);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.virtual-card-chip {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 31%, rgba(70, 52, 16, .40) 32% 35%, transparent 36%),
        linear-gradient(0deg, transparent 47%, rgba(70, 52, 16, .35) 48% 52%, transparent 53%),
        linear-gradient(135deg, #fff0a8 0%, #d0a841 45%, #fff3b7 100%);
    box-shadow: inset 0 0 0 1px rgba(83, 62, 16, .35), 0 8px 18px rgba(0, 0, 0, .22);
}

.virtual-card-contactless {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, .8);
    transform: rotate(90deg);
}

.virtual-card-number {
    display: block;
    margin-top: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}

.virtual-card-bottom span {
    display: block;
    color: rgba(255, 255, 255, .68);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.virtual-card-bottom strong {
    display: block;
    color: #fff;
    font-size: .86rem;
    letter-spacing: 0;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.virtual-card-brand {
    min-width: 60px;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
}

.virtual-card-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

.virtual-card-secure {
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.secure-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(20, 40, 191, .10);
}

.secure-field:last-child {
    border-bottom: 0;
}

.secure-field span {
    color: #64748b;
    font-size: .82rem;
}

.secure-field strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #17202f;
    letter-spacing: 0;
}

.secure-field button {
    grid-row: span 2;
}

.api-credentials-box {
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8fbff;
}

.kyc-modal-open {
    overflow: hidden;
}
.kyc-file-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(9, 18, 45, .62);
}
.kyc-file-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.kyc-file-modal-content {
    width: min(920px, 96vw);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    overflow: hidden;
}
.kyc-file-modal-head,
.kyc-file-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--iconta-line);
}
.kyc-file-modal-footer {
    border-top: 1px solid var(--iconta-line);
    border-bottom: 0;
    justify-content: flex-end;
}
.kyc-file-modal-head h2 {
    margin: 0;
    font-size: 1rem;
}
.kyc-file-modal-body {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: #f7f9ff;
    overflow: auto;
}
.kyc-file-modal-body img,
.kyc-file-modal-body iframe {
    width: 100%;
    max-height: 72vh;
    border: 0;
    object-fit: contain;
    background: #fff;
}
.kyc-file-modal-body iframe {
    min-height: 70vh;
}

.dashboard-kyc-preview {
    margin-bottom: 1rem;
}
.dashboard-document-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.dashboard-document-thumb {
    width: 100px;
    display: grid;
    gap: .35rem;
    text-align: center;
    color: var(--iconta-text);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
}
.dashboard-document-thumb img,
.dashboard-document-thumb i {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border: 1px solid var(--iconta-line);
    border-radius: .5rem;
    background: #f3f6ff;
    object-fit: cover;
    color: var(--iconta-blue);
    font-size: 2rem;
}

.language-admin-flag { min-width: 90px; }
.language-admin-flag img { margin: 0 auto .35rem; }
.language-admin-flag input { width: 64px; min-width: 64px; text-align: center; text-transform: uppercase; }
.language-dropdown { position: relative; min-width: 190px; }
.language-dropdown > summary {
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: .45rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    list-style: none;
}
.language-dropdown > summary::-webkit-details-marker { display: none; }
.language-dropdown[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.language-dropdown-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + .35rem);
    right: 0;
    min-width: 100%;
    padding: .35rem;
    border: 1px solid rgba(20, 40, 191, .14);
    border-radius: .45rem;
    background: #fff;
    box-shadow: 0 16px 35px rgba(10, 24, 110, .2);
}
.language-dropdown-option {
    width: 100%;
    display: grid;
    grid-template-columns: 30px minmax(130px, 1fr) 18px;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border: 0;
    border-radius: .35rem;
    color: #17202f;
    background: transparent;
    text-align: left;
}
.language-dropdown-option:hover:not(:disabled) { background: #eef1ff; color: var(--iconta-blue); }
.language-dropdown-option:disabled { opacity: 1; font-weight: 700; background: #f3f5ff; }
.language-current-flag { position: static; transform: none; }
.language-current-flag img,
.language-option-flag img { display: block; object-fit: cover; border-radius: .18rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.site-nav .language-dropdown > summary { color: var(--iconta-blue); background: #fff; border-color: rgba(20, 40, 191, .16); }
.sidebar-language-switcher .language-dropdown { width: 100%; min-width: 0; }
.sidebar-language-switcher .language-dropdown > summary { width: 100%; }
.language-admin-list { display: grid; gap: 1rem; }
.language-admin-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(20, 40, 191, .12);
    border-radius: .5rem;
    background: #fff;
}
.language-admin-preview { display: grid; justify-items: center; gap: .35rem; text-align: center; }
.language-admin-preview img { display: block; object-fit: cover; border-radius: .3rem; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.language-admin-preview > i { display: grid; place-items: center; width: 80px; height: 54px; font-size: 2rem; color: var(--iconta-blue); background: #eef1ff; border-radius: .3rem; }
.language-admin-preview small { color: #697386; }
.language-admin-fields { margin: 0; }
@media (max-width: 900px) {
    .language-admin-item { grid-template-columns: 1fr; }
    .language-admin-item > .btn { width: 100%; }
}
.sidebar-language-switcher.language-switcher--flags {
    width: 100%;
    margin-top: .8rem;
}
.sidebar-language-switcher .language-flags {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .45rem;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    box-shadow: none;
}
.sidebar-language-switcher .language-flag-option {
    flex: 0 0 auto;
}
.sidebar-language-switcher .language-flag-icon {
    width: 2.65rem;
    height: 2.15rem;
}
.sidebar-language-switcher .language-flag-icon img {
    width: 34px;
    height: 23px;
}
/* IConta UI standardization layer */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--iconta-line);
    border-radius: .65rem;
    background: #fff;
}
.panel > .table-responsive {
    margin: .25rem 0 0;
}
.table {
    width: 100%;
    min-width: 760px;
    margin-bottom: 0;
    border-color: var(--iconta-line);
    vertical-align: middle;
}
.table > :not(caption) > * > * {
    padding: .82rem .85rem;
    border-bottom-color: var(--iconta-line);
    color: #243047;
}
.table thead th,
.table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #536078;
    background: #f4f6ff;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f7f9ff;
    color: #1722a8;
}
.table tbody td:first-child,
.table tbody th:first-child {
    font-weight: 750;
}
.table td .btn,
.table td button,
.table td .button {
    min-height: 34px;
    padding: .38rem .62rem;
}
.table input,
.table select,
.table textarea {
    min-width: 120px;
}
.table .form-check {
    min-height: 0;
    margin: .18rem 0;
}
.btn {
    border-radius: .5rem;
    box-shadow: 0 8px 18px rgba(23, 34, 168, .08);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(23, 34, 168, .14);
}
.btn-sm {
    min-height: 34px;
    padding: .38rem .65rem;
    font-size: .85rem;
}
.btn-outline-primary {
    --bs-btn-color: var(--iconta-blue);
    --bs-btn-border-color: rgba(23, 34, 168, .28);
    --bs-btn-hover-bg: var(--iconta-blue);
    --bs-btn-hover-border-color: var(--iconta-blue);
    background: #fff;
}
.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-color: #1e293b;
    --bs-btn-hover-border-color: #94a3b8;
    background: #fff;
}
.btn-danger,
.danger-button {
    --bs-btn-bg: #b42318;
    --bs-btn-border-color: #b42318;
    --bs-btn-hover-bg: #931a12;
    --bs-btn-hover-border-color: #931a12;
}
.form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2rem;
    padding-left: 0;
}
.form-check .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid rgba(23, 34, 168, .34);
    cursor: pointer;
}
.form-check .form-check-input:checked {
    background-color: var(--iconta-blue);
    border-color: var(--iconta-blue);
}
.form-check .form-check-input:focus {
    border-color: var(--iconta-blue-2);
    box-shadow: 0 0 0 .2rem rgba(23, 34, 168, .16);
}
.form-check .form-check-label {
    margin: 0;
    color: #334155;
    font-weight: 650;
    cursor: pointer;
}
.form-switch .form-check-input {
    width: 2.35rem;
    height: 1.2rem;
    border-radius: 999px;
}
.form-check-inline {
    display: inline-flex;
    margin-right: .85rem;
}
@media (max-width: 680px) {
    .table-responsive {
        border-radius: .55rem;
    }
    .table {
        min-width: 680px;
        display: table;
        white-space: normal;
    }
    .table > :not(caption) > * > * {
        padding: .7rem .72rem;
    }
}

/* Business plan landing */
.business-plan-body {
    background: #f5f7ff;
    color: #172036;
}
.business-plan-nav {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(20, 40, 191, .12);
    box-shadow: 0 12px 30px rgba(20, 40, 191, .08);
}
.business-hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 7.8rem 0 4.5rem;
    background: linear-gradient(135deg, #07128f 0%, #1722a8 46%, #3043de 100%);
    color: #fff;
    overflow: hidden;
}
.business-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 2rem;
    align-items: center;
}
.business-hero h1 {
    max-width: 900px;
    margin: .4rem 0 1rem;
    font-size: clamp(2.45rem, 6vw, 3.9rem);
    line-height: .98;
    font-weight: 900;
}
.business-hero .site-lead { max-width: 760px; color: rgba(255,255,255,.88); }
.business-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.business-hero-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: .8rem;
    background: rgba(255,255,255,.12);
    box-shadow: 0 28px 70px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
}
.business-hero-card span { display: block; color: rgba(255,255,255,.78); font-weight: 800; text-transform: uppercase; font-size: .78rem; }
.business-hero-card strong { display: block; margin: .4rem 0; font-size: clamp(4rem, 9vw, 7rem); line-height: .9; }
.business-referral-alert {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.25rem;
    padding: .78rem 1rem;
    border-radius: .65rem;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
}
.business-section { padding: 4.6rem 0; }
.business-section-head { max-width: 850px; margin-bottom: 1.7rem; }
.business-section-head h2,
.business-commission-layout h2,
.business-split-grid h2,
.business-register-grid h2 { font-size: clamp(2rem, 4vw, 2.5em); font-weight: 900; color: #111a7d; }
.business-income-grid,
.business-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.business-income-grid article,
.business-plan-grid article,
.business-split-grid article{
    padding: 1.35rem;
    border: 1px solid rgba(20,40,191,.12);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20,40,191,.08);
}

.business-register-card {
    padding: 1.35rem;
    border: 1px solid rgba(20,40,191,.12);
    border-radius: .75rem;
    background: #1722a8;
    box-shadow: 0 18px 45px rgba(20,40,191,.08);
}

.business-income-grid i,
.business-split-grid i {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: .9rem;
    border-radius: .65rem;
    color: #fff;
    background: #1722a8;
    font-size: 1.35rem;
}
.business-income-grid h3,
.business-plan-grid h3 { font-size: 1.12rem; font-weight: 850; color: #172036; }
.business-income-grid p,
.business-plan-grid p,
.business-split-grid p,
.business-register-grid p { color: #5f6b82; }
.business-section-blue { background: #111a7d; color: #fff; }
.business-section-blue h2 { color: #fff; }
.business-section-blue p { color: rgba(255,255,255,.82); }
.business-commission-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center; }
.business-commission-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.business-commission-grid div {
    padding: 1rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}
.business-commission-grid span,
.business-commission-grid small { display: block; color: rgba(255,255,255,.75); }
.business-commission-grid strong { display: block; margin: .35rem 0; font-size: 2rem; }
.business-plan-grid article span {
    display: inline-block;
    margin-bottom: .8rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eef1ff;
    color: #1722a8;
    font-weight: 850;
}
.business-split-section { background: #eef2ff; }
.business-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.business-split-grid strong { color: #1722a8; }
.business-register-section { background: #fff; }
.business-register-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.business-check-list { display: grid; gap: .7rem; padding: 0; margin: 1.3rem 0 0; list-style: none; }
.business-check-list li { display: flex; gap: .65rem; color: #344157; }
.business-check-list i { color: #1722a8; }
.business-register-card { display: grid; gap: .85rem; }
.business-register-card label { display: grid; gap: .35rem; color: #ffffff; font-weight: 750; }
.business-register-card input {
    width: 100%;
    border: 1px solid rgba(20,40,191,.16);
    border-radius: .55rem;
    padding: .78rem .9rem;
    outline: none;
}
.business-register-card input:focus { border-color: #1722a8; box-shadow: 0 0 0 .2rem rgba(23,34,168,.12); }
.business-form-logo { max-width: 150px; margin: 0 auto .4rem; }
.business-register-card h3 { text-align: center; color: #ffffff; font-weight: 900; }
.business-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.business-login-link { text-align: center; color: #1722a8; font-weight: 800; text-decoration: none; }
@media (max-width: 980px) {
    .business-hero-grid,
    .business-commission-layout,
    .business-register-grid { grid-template-columns: 1fr; }
    .business-income-grid,
    .business-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .business-commission-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .business-hero { padding-top: 6.6rem; }
    .business-income-grid,
    .business-plan-grid,
    .business-split-grid,
    .business-form-row { grid-template-columns: 1fr; }
    .business-commission-grid { grid-template-columns: 1fr; }
    .business-section { padding: 3.2rem 0; }
}
/* Business plan corporate refresh */
.business-plan-body {
    background: var(--site-bg);
    color: var(--site-text);
}
.business-plan-nav {
    background: rgba(10, 14, 26, .86);
    border-bottom: 1px solid rgba(0, 212, 170, .14);
    box-shadow: none;
}
.business-plan-nav .site-links a {
    color: rgba(246, 248, 255, .78);
}
.business-plan-nav .site-links a:hover {
    color: #fff;
}
.business-plan-nav .language-dropdown > summary {
    color: #07101e;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
    border-color: transparent;
}
.business-plan-body .site-kicker {
    color: var(--site-accent);
}
.business-hero {
    min-height: 94vh;
    position: relative;
    padding: 8.2rem 0 5rem;
    background:
        linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px),
        radial-gradient(circle at 82% 12%, rgba(0, 212, 170, .18), transparent 28rem),
        radial-gradient(circle at 10% 86%, rgba(45, 57, 201, .22), transparent 24rem),
        var(--site-bg);
    background-size: 38px 38px, 38px 38px, auto, auto, auto;
    color: var(--site-text);
}
.business-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, rgba(245, 247, 255, 1));
    pointer-events: none;
}
.business-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, .88fr);
    gap: clamp(2rem, 5vw, 4rem);
}
.business-hero h1 {
    max-width: 940px;
    font-weight: 950;
    letter-spacing: 0;
}
.business-hero .site-lead {
    color: var(--site-muted);
}
.business-hero-actions .site-outline {
    color: var(--site-accent);
    border-color: rgba(0, 212, 170, .7);
}
.business-referral-alert {
    color: #dffdf6;
    background: rgba(0, 212, 170, .12);
    border-color: rgba(0, 212, 170, .25);
}
.business-hero-card {
    border-radius: 1.1rem;
}
.business-hero-media-card {
    padding: .72rem;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, .18);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}
.business-hero-media-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .85rem;
}
.business-hero-card-panel {
    margin-top: .75rem;
    padding: 1.25rem;
    border-radius: .85rem;
    background: rgba(5, 10, 22, .8);
    border: 1px solid rgba(0, 212, 170, .18);
}
.business-hero-card-panel span {
    display: block;
    color: rgba(246, 248, 255, .7);
    font-weight: 850;
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .08rem;
}
.business-hero-card-panel strong {
    display: block;
    margin: .35rem 0;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: .9;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.business-hero-card-panel p {
    margin-bottom: 0;
    color: var(--site-muted);
}
.business-section {
    background: #f5f7ff;
    color: #172036;
}
.business-section-head h2,
.business-commission-layout h2,
.business-split-grid h2,
.business-register-grid h2 {
    color: #101827;
}
.business-income-grid article,
.business-plan-grid article,
.business-split-grid article,
.business-register-card,
.business-image-band {
    border-radius: .85rem;
    border-color: rgba(0, 212, 170, .12);
    box-shadow: 0 22px 60px rgba(8, 17, 37, .08);
}
.business-income-grid i,
.business-split-grid i {
    color: #07101e;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
}
.business-image-band {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.25rem);
    align-items: center;
    margin-top: 1.4rem;
    padding: 1rem;
    background: #fff;
}
.business-image-band img,
.business-card-image,
.business-register-visual img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: .72rem;
}
.business-image-band img {
    min-height: 260px;
    height: 100%;
}
.business-image-band h3 {
    margin: 0 0 .75rem;
    color: #101827;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    font-weight: 950;
}
.business-image-band p:not(.site-kicker) {
    color: #5f6b82;
    line-height: 1.75;
}
.business-section-blue {
    background: #0a0e1a;
    border-top: 1px solid rgba(0, 212, 170, .14);
    border-bottom: 1px solid rgba(0, 212, 170, .14);
    color: #fff;
}
.business-section-blue h2,
.business-section-blue p {
    color: inherit;
}
.business-commission-grid div {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(0, 212, 170, .18);
}
.business-plan-grid article span {
    border-radius: .45rem;
    color: #07101e;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
}
.business-split-section {
    background: #eef3ff;
}
.business-card-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
}
.business-register-section {
    background: #fff;
}
.business-register-visual {
    margin-top: 1.4rem;
}
.business-register-visual img {
    aspect-ratio: 16 / 10;
    box-shadow: 0 22px 60px rgba(8, 17, 37, .12);
}
.business-register-card .btn-primary {
    color: #07101e;
    border: 0;
    background: linear-gradient(135deg, var(--site-accent), #4be7ff);
    font-weight: 900;
}
.business-login-link {
    color: #ffffff;
}
@media (max-width: 980px) {
    .business-hero-grid,
    .business-image-band {
        grid-template-columns: 1fr;
    }
    .business-hero-media-card img,
    .business-image-band img {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }
}
@media (max-width: 620px) {
    .business-hero {
        min-height: auto;
        padding-top: 6.8rem;
    }
    .business-hero-card-panel {
        padding: 1rem;
    }
}

/* Locale and currency header */
.locale-currency-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1200;
    min-height: 48px;
    color: #fff;
    background: rgba(10, 14, 26, .96);
    border-bottom: 1px solid rgba(0, 212, 170, .18);
    backdrop-filter: blur(18px);
}
.locale-currency-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .78rem;
    font-weight: 750;
}
.locale-currency-message {
    color: rgba(246, 248, 255, .72);
}
.locale-currency-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}
.locale-currency-control {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 32px;
    padding: .25rem .55rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .45rem;
    background: rgba(255, 255, 255, .08);
}
.locale-currency-control select {
    max-width: 180px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: .78rem;
    font-weight: 850;
}
.locale-currency-control select option {
    color: #172036;
    background: #fff;
}
.locale-currency-flag img {
    display: block;
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: .18rem;
    border: 1px solid rgba(255, 255, 255, .22);
}
.locale-currency-symbol {
    color: var(--site-accent, #00d4aa);
    font-weight: 950;
}
.site-body .site-nav,
.business-plan-body .site-nav {
    top: 48px;
    inset: 48px 0 auto;
}
.site-body .site-hero,
.business-plan-body .business-hero {
    padding-top: calc(120px + 48px);
}
.app-body {
    padding-top: 48px;
}
.app-body .locale-currency-header {
    position: fixed;
}
@media (max-width: 760px) {
    .locale-currency-inner {
        justify-content: flex-end;
    }
    .locale-currency-message {
        display: none;
    }
    .locale-currency-control select {
        max-width: 120px;
    }
}
@media (max-width: 520px) {
    .locale-currency-actions {
        width: 100%;
        justify-content: space-between;
    }
    .locale-currency-control {
        flex: 1;
        min-width: 0;
    }
    .locale-currency-control select {
        width: 100%;
        max-width: none;
    }
}
/* Auth pages with locale/currency header */
.login-body .locale-currency-header {
    background: rgba(10, 14, 26, .92);
}
.login-body .login-panel,
.login-body .register-shell {
    min-height: calc(100vh - 48px);
    margin-top: 48px;
}
.login-body .auth-visual,
.login-body .login-card,
.login-body .register-form {
    min-height: calc(100vh - 48px);
}
.login-body .register-shell,
.login-body .register-form {
    height: calc(100vh - 48px);
}
.login-body .register-visual {
    top: 48px;
}
@media (max-width: 1080px) {
    .login-body .login-card,
    .login-body .register-form {
        min-height: calc(100vh - 48px);
    }
    .login-body .register-shell,
    .login-body .register-form {
        height: auto;
    }
}
/* Centered login form inside auth column */
.login-body .login-card {
    place-content: center;
    place-items: center;
    align-self: stretch;
    text-align: left;
}
.login-body .login-card .auth-form-logo {
    margin-left: auto;
    margin-right: auto;
}
.login-body .login-card h2 {
    justify-content: center;
    text-align: center;
}
.login-body .login-card > a:not(.btn) {
    display: block;
    text-align: center;
}

/* Theme modes */
:root[data-theme="dark"] {
    --iconta-blue: #5664ff;
    --iconta-blue-2: #7b86ff;
    --iconta-blue-3: #171f5a;
    --iconta-ink: #f6f7ff;
    --iconta-muted: #aab2c8;
    --iconta-line: #303854;
    --iconta-bg: #090d1b;
    --iconta-panel: #11172a;
    --bs-body-bg: var(--iconta-bg);
    --bs-body-color: var(--iconta-ink);
    --bs-border-color: var(--iconta-line);
}
:root[data-theme="dark"] body { background: var(--iconta-bg); color: var(--iconta-ink); }
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .register-form,
:root[data-theme="dark"] .loading-card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .customer-type-panel,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .financial-card,
:root[data-theme="dark"] .business-hero-card-panel,
:root[data-theme="dark"] .support-message,
:root[data-theme="dark"] .auth-card {
    background: var(--iconta-panel) !important;
    color: var(--iconta-ink);
    border-color: var(--iconta-line);
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
    background-color: #0c1224;
    color: var(--iconta-ink);
    border-color: var(--iconta-line);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #7d879e; }
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .site-section p,
:root[data-theme="dark"] .locale-currency-message { color: var(--iconta-muted) !important; }
:root[data-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--iconta-ink); --bs-table-border-color: var(--iconta-line); --bs-table-hover-bg: rgba(86, 100, 255, .12); --bs-table-hover-color: var(--iconta-ink); }
:root[data-theme="dark"] .badge.bg-light,
:root[data-theme="dark"] .bg-light { background-color: #1a2340 !important; color: var(--iconta-ink) !important; }
:root[data-theme="dark"] .btn-outline-primary { --bs-btn-color: #9ba4ff; --bs-btn-border-color: #5664ff; --bs-btn-hover-bg: #5664ff; --bs-btn-hover-border-color: #5664ff; }
:root[data-theme="dark"] .btn-outline-secondary { --bs-btn-color: #c7cde0; --bs-btn-border-color: #596177; --bs-btn-hover-bg: #252e47; --bs-btn-hover-border-color: #6c748a; }
:root[data-theme="dark"] .site-body { background: #080d1d; color: var(--iconta-ink); }
:root[data-theme="dark"] .site-nav,
:root[data-theme="dark"] .locale-currency-header { background: rgba(7, 10, 24, .92); border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .site-links a:not(.site-login):not(.site-open),
:root[data-theme="dark"] .site-brand,
:root[data-theme="dark"] .site-menu-button { color: var(--iconta-ink); }
:root[data-theme="dark"] .auth-visual::after { background: linear-gradient(90deg, rgba(9, 13, 27, .15), rgba(9, 13, 27, .82)); }
:root[data-theme="dark"] .alert-info { background-color: #122449; border-color: #244a82; color: #d7e7ff; }
:root[data-theme="dark"] .alert-warning { background-color: #3a2d0a; border-color: #7c6219; color: #ffe9a6; }
:root[data-theme="dark"] .alert-danger { background-color: #3a1118; border-color: #7d2736; color: #ffd9df; }
:root[data-theme="dark"] .alert-success { background-color: #0e3123; border-color: #1c6d4d; color: #d7ffe9; }
.theme-switcher { gap: .5rem; }
.theme-options { display: inline-flex; align-items: center; gap: .2rem; padding: .15rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); }
.theme-options label { margin: 0; cursor: pointer; }
.theme-options input { position: absolute; opacity: 0; pointer-events: none; }
.theme-options span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: currentColor; }
.theme-options input:checked + span { background: #fff; color: var(--iconta-blue); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
:root[data-theme="dark"] .theme-options input:checked + span { background: #5664ff; color: #fff; }
@media (max-width: 575.98px) {
    .theme-switcher > i { display: none; }
    .theme-options span { width: 28px; height: 28px; }
}

/* Compact locale/currency controls on mobile */
.locale-currency-control { position: relative; }
.locale-currency-mobile-label { display: none; }
@media (max-width: 760px) {
    .locale-currency-inner { gap: .4rem; }
    .locale-currency-actions { gap: .35rem; }
    .locale-currency-control {
        flex: 0 0 auto;
        width: 42px;
        min-width: 42px;
        min-height: 38px;
        justify-content: center;
        padding: .25rem;
        border-radius: .55rem;
    }
    .locale-currency-control select {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        opacity: 0;
        cursor: pointer;
    }
    .locale-currency-flag img { width: 28px; height: 20px; }
    .locale-currency-symbol { font-size: .82rem; }
    .theme-switcher { width: auto; min-width: auto; padding: .18rem .25rem; }
    .theme-options { gap: .1rem; padding: .08rem; }
    .theme-options span { width: 28px; height: 28px; }
    .app-body .mobile-menu-toggle {
        display: inline-flex;
        position: fixed;
        top: .35rem;
        left: .65rem;
        z-index: 1210;
        width: 38px;
        height: 38px;
        min-width: 38px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: .55rem;
        box-shadow: none;
    }
    .app-body .mobile-menu-toggle span { display: none; }
    .app-body .locale-currency-inner { padding-left: 3rem; }
}
@media (max-width: 520px) {
    .locale-currency-actions {
        width: auto;
        justify-content: flex-end;
    }
    .locale-currency-control { flex: 0 0 40px; width: 40px; min-width: 40px; }
    .theme-switcher { flex-basis: auto; width: auto; }
    .theme-options span { width: 27px; height: 27px; }
}
/* Dashboard fixed navbar layer */
.app-body {
    --dashboard-navbar-height: 48px;
    padding-top: var(--dashboard-navbar-height);
}
.app-body .locale-currency-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1400;
}
.app-body .shell {
    min-height: calc(100vh - var(--dashboard-navbar-height));
}
.app-body .sidebar {
    top: var(--dashboard-navbar-height);
    height: calc(100vh - var(--dashboard-navbar-height));
}
.app-body .menu-backdrop {
    top: var(--dashboard-navbar-height);
    z-index: 1360;
}
.app-body .mobile-menu-toggle {
    z-index: 1410;
}
.app-body .loading-overlay,
.app-body .confirm-modal-backdrop,
.app-body .confirm-modal {
    z-index: 1500;
}
@media (max-width: 1080px) {
    .app-body .sidebar {
        top: var(--dashboard-navbar-height);
        height: calc(100vh - var(--dashboard-navbar-height));
        z-index: 1370;
    }
    .app-body .menu-backdrop {
        inset: var(--dashboard-navbar-height) 0 0;
    }
    .app-body .main {
        padding-top: 1rem;
    }
    .app-body .topbar {
        padding-top: 1.45rem;
    }
}
@media (max-width: 760px) {
    .app-body .mobile-menu-toggle {
        top: .35rem;
        left: .65rem;
        z-index: 1410;
    }
}
/* Global responsive tables and dark table readability */
.table-responsive,
.responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: .5rem;
}
.table-responsive > table,
.responsive-table > table {
    margin-bottom: 0;
}
.panel > table,
.main > table,
form > table,
section > table,
.table:not(.no-responsive) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}
.panel > table > :not(caption),
.main > table > :not(caption),
form > table > :not(caption),
section > table > :not(caption),
.table:not(.no-responsive) > :not(caption) {
    display: table;
    width: 100%;
    min-width: 760px;
}
.table th,
.table td,
table th,
table td {
    overflow-wrap: normal;
    word-break: normal;
}
td.actions,
.table td.actions {
    min-width: max-content;
}
@media (max-width: 760px) {
    .panel > table > :not(caption),
    .main > table > :not(caption),
    form > table > :not(caption),
    section > table > :not(caption),
    .table:not(.no-responsive) > :not(caption) {
        min-width: 680px;
    }
}
:root[data-theme="dark"] table,
:root[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f6f7ff;
    --bs-table-striped-color: #f6f7ff;
    --bs-table-hover-color: #ffffff;
    --bs-table-border-color: #303854;
    --bs-table-hover-bg: rgba(86, 100, 255, .16);
    color: #f6f7ff !important;
    border-color: #303854 !important;
}
:root[data-theme="dark"] table th,
:root[data-theme="dark"] table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table > :not(caption) > * > * {
    color: #f6f7ff !important;
    background-color: transparent;
    border-color: #303854 !important;
}
:root[data-theme="dark"] table thead th,
:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .table > thead > tr > th {
    color: #ffffff !important;
    background: #171f3b !important;
    border-color: #303854 !important;
}
:root[data-theme="dark"] table tbody tr:hover td,
:root[data-theme="dark"] .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] tbody tr:hover td {
    color: #ffffff !important;
    background: rgba(86, 100, 255, .16) !important;
}
:root[data-theme="dark"] table a,
:root[data-theme="dark"] .table a {
    color: #aeb6ff !important;
}
:root[data-theme="dark"] table small,
:root[data-theme="dark"] .table small,
:root[data-theme="dark"] table span:not(.badge),
:root[data-theme="dark"] .table span:not(.badge) {
    color: inherit !important;
}
:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .responsive-table {
    border-color: #303854;
    scrollbar-color: #5664ff #11172a;
}
/* Empty table responsive reinforcement */
.table-responsive > table,
.responsive-table > table,
.table-responsive > .table,
.responsive-table > .table {
    display: table;
    width: 100%;
    min-width: 760px;
    white-space: nowrap;
}
.table-responsive > table > :not(caption),
.responsive-table > table > :not(caption),
.table-responsive > .table > :not(caption),
.responsive-table > .table > :not(caption) {
    display: table-row-group;
    width: 100%;
}
.table-responsive > table > thead,
.responsive-table > table > thead,
.table-responsive > .table > thead,
.responsive-table > .table > thead {
    display: table-header-group;
}
.table tbody tr:only-child td[colspan],
table tbody tr:only-child td[colspan],
.table td[colspan],
table td[colspan] {
    min-width: 680px;
    width: 100%;
    white-space: normal;
    text-align: center;
    color: var(--iconta-muted);
    font-weight: 750;
}
.panel > table tbody tr:only-child td[colspan],
.main > table tbody tr:only-child td[colspan],
section > table tbody tr:only-child td[colspan],
form > table tbody tr:only-child td[colspan] {
    min-width: 760px;
}
@media (max-width: 760px) {
    .table-responsive > table,
    .responsive-table > table,
    .table-responsive > .table,
    .responsive-table > .table {
        min-width: 680px;
    }
    .table tbody tr:only-child td[colspan],
    table tbody tr:only-child td[colspan],
    .table td[colspan],
    table td[colspan] {
        min-width: 620px;
    }
}
:root[data-theme="dark"] .table td[colspan],
:root[data-theme="dark"] table td[colspan],
:root[data-theme="dark"] .table tbody tr:only-child td[colspan],
:root[data-theme="dark"] table tbody tr:only-child td[colspan] {
    color: #f6f7ff !important;
    background: rgba(86, 100, 255, .08) !important;
}
/* Dark theme solid table surface */
:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .responsive-table {
    background: #0f1629 !important;
    border: 1px solid #303854 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
:root[data-theme="dark"] .table-responsive > table,
:root[data-theme="dark"] .responsive-table > table,
:root[data-theme="dark"] .table-responsive > .table,
:root[data-theme="dark"] .responsive-table > .table,
:root[data-theme="dark"] table,
:root[data-theme="dark"] .table {
    --bs-table-bg: #0f1629;
    --bs-table-color: #ffffff;
    --bs-table-striped-bg: #131c33;
    --bs-table-striped-color: #ffffff;
    --bs-table-hover-bg: #1a2441;
    --bs-table-hover-color: #ffffff;
    background-color: #0f1629 !important;
    color: #ffffff !important;
}
:root[data-theme="dark"] .table tbody,
:root[data-theme="dark"] table tbody,
:root[data-theme="dark"] .table tr,
:root[data-theme="dark"] table tr,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] table th {
    color: #ffffff !important;
    background-color: #0f1629 !important;
    border-color: #303854 !important;
}
:root[data-theme="dark"] .table thead,
:root[data-theme="dark"] table thead,
:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] table thead th {
    color: #ffffff !important;
    background-color: #171f3b !important;
}
:root[data-theme="dark"] .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] table tbody tr:hover > * {
    color: #ffffff !important;
    background-color: #1a2441 !important;
}
.customer-form input[readonly],
.customer-form textarea[readonly],
.customer-form select[readonly] {
    background-color: #f1f3f5 !important;
    border-color: #d8dde3 !important;
    color: #6c757d !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

[data-theme="dark"] .customer-form input[readonly],
[data-theme="dark"] .customer-form textarea[readonly],
[data-theme="dark"] .customer-form select[readonly] {
    background-color: #2b3037 !important;
    border-color: #3c4652 !important;
    color: #c7cdd4 !important;
}
/* IConta dashboard professional polish */
:root {
    --iconta-radius-sm: .375rem;
    --iconta-radius: .5rem;
    --iconta-shadow-sm: 0 8px 24px rgba(16, 24, 64, .06);
    --iconta-shadow: 0 16px 42px rgba(16, 24, 64, .10);
    --iconta-focus: 0 0 0 .22rem rgba(23, 34, 168, .14);
}

.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.65rem);
}

.topbar,
.admin-hero,
.client-account-card,
.activation-lock,
.activation-empty,
.panel,
.card {
    border-radius: var(--iconta-radius) !important;
}

.panel,
.card {
    border: 1px solid rgba(227, 231, 242, .95) !important;
    background: var(--iconta-panel) !important;
    box-shadow: var(--iconta-shadow-sm);
    overflow: hidden;
}

.panel {
    padding: clamp(1rem, 1.8vw, 1.35rem);
    margin-bottom: 1rem;
}

.card {
    color: var(--iconta-ink);
}

.panel.border-0,
.card .panel.border-0 {
    border: 0 !important;
    box-shadow: none;
    background: transparent !important;
    padding: 0;
    margin-bottom: 0;
}

.grid,
.grid.two,
section.grid,
.financial-form-grid,
.form-grid,
.compact-grid {
    min-width: 0;
}

.grid,
section.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 1rem;
    align-items: start;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-head,
.financial-card-head,
.type-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    min-width: 0;
    margin-bottom: 1rem;
}

.panel-head > div,
.financial-card-head > div,
.type-panel-head > div {
    min-width: 0;
}

.panel-head h2,
.financial-card-head h2,
.type-panel-head strong,
.panel h2,
.card h2 {
    margin: 0;
    color: var(--iconta-ink);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0;
}

.panel-head h2,
.financial-card-head h2,
.panel h2 {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.panel-head h2 i,
.financial-card-head h2 i,
.panel h2 i {
    color: var(--iconta-blue);
    flex: 0 0 auto;
}

.panel-head p,
.financial-card-head p,
.panel p.text-muted {
    margin: .18rem 0 0;
    max-width: 760px;
    line-height: 1.45;
}

.metrics,
.admin-metrics,
.client-metrics,
.balance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: .85rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.metrics > div,
.admin-metrics > div,
.client-metrics > div,
.balance-metrics > div,
.metric-card,
.movement-totals > div {
    min-width: 0;
    min-height: 108px;
    padding: 1rem;
    border: 1px solid rgba(227, 231, 242, .92);
    border-radius: var(--iconta-radius);
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    box-shadow: 0 10px 26px rgba(16, 24, 64, .055);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .65rem;
}

.metrics span,
.metric-card span,
.movement-totals span {
    color: var(--iconta-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.25;
}

.metrics strong,
.metric-card strong,
.movement-totals strong {
    color: var(--iconta-ink);
    font-size: clamp(1.18rem, 2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.metrics small,
.metric-card small {
    color: var(--iconta-muted);
    font-weight: 700;
}

.client-account-card,
.admin-hero,
.activation-lock,
.activation-empty {
    margin-bottom: 1rem;
    padding: clamp(1.1rem, 2.2vw, 1.65rem);
    box-shadow: var(--iconta-shadow);
}

.client-account-card,
.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.client-account-card > div,
.admin-hero > div {
    min-width: 0;
}

.client-account-card h2,
.admin-hero h2 {
    margin: .15rem 0 .35rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.client-account-card p,
.admin-hero p {
    margin: 0;
    max-width: 860px;
    line-height: 1.45;
}

.account-status-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 1.75rem;
    border-radius: 999px !important;
    padding: .35rem .62rem;
    font-size: .75rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.table-responsive,
.responsive-table {
    border: 1px solid var(--iconta-line);
    border-radius: var(--iconta-radius);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.table,
table.table {
    vertical-align: middle;
    font-size: .92rem;
}

.table thead th,
table.table thead th {
    padding: .82rem .9rem;
    background: #f2f4fb !important;
    color: #37405a;
    border-bottom: 1px solid var(--iconta-line) !important;
    font-size: .73rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
}

.table tbody td,
table.table tbody td {
    padding: .86rem .9rem;
    color: var(--iconta-ink);
    border-color: #edf0f7 !important;
    line-height: 1.35;
}

.table tbody tr:last-child td,
table.table tbody tr:last-child td {
    border-bottom-width: 0;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: rgba(23, 34, 168, .045);
}

.table td:last-child,
.table th:last-child {
    text-align: right;
}

.table td .btn,
.table td a.btn,
.table td button.btn {
    white-space: nowrap;
}

.details {
    display: grid;
    grid-template-columns: minmax(130px, .36fr) minmax(0, 1fr);
    gap: .65rem .9rem;
    margin: 0;
}

.details dt {
    color: var(--iconta-muted);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.details dd {
    min-width: 0;
    margin: 0;
    color: var(--iconta-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.btn {
    border-radius: var(--iconta-radius-sm) !important;
    min-height: 40px;
    padding-inline: .85rem;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    min-height: 34px;
    padding: .35rem .62rem;
    font-size: .82rem;
}

.btn i {
    font-size: 1em;
    line-height: 1;
    flex: 0 0 auto;
}

.btn-primary {
    box-shadow: 0 10px 20px rgba(23, 34, 168, .16) !important;
}

.btn-outline-primary {
    background: #fff;
    border-color: rgba(23, 34, 168, .35);
    color: var(--iconta-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    color: #fff;
    background: var(--iconta-blue);
    border-color: var(--iconta-blue);
}

.form-actions,
.actions,
.panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .65rem;
    min-width: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: .85rem;
}

.quick-actions a {
    min-width: 0;
    min-height: 132px;
    padding: 1rem;
    border: 1px solid var(--iconta-line);
    border-radius: var(--iconta-radius);
    background: #fff;
    color: var(--iconta-ink);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .18rem .75rem;
    align-content: start;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(16, 24, 64, .055);
}

.quick-actions a > i {
    grid-row: span 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--iconta-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--iconta-blue);
}

.quick-actions a span {
    min-width: 0;
    font-weight: 900;
    line-height: 1.2;
}

.quick-actions a small {
    min-width: 0;
    color: var(--iconta-muted);
    line-height: 1.35;
}

.filter-bar,
.financial-form-grid,
.form-grid {
    align-items: end;
}

label,
.form-label {
    color: var(--iconta-ink);
    font-weight: 800;
    line-height: 1.3;
}

.form-control,
.form-select,
input:not([type="checkbox"]):not([type="radio"]):not(.form-check-input),
select,
textarea {
    min-height: 42px;
    border-radius: var(--iconta-radius-sm) !important;
    border-color: #dbe1ee !important;
    color: var(--iconta-ink);
    background-color: #fff;
}

textarea.form-control,
textarea {
    min-height: auto;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(23, 34, 168, .55) !important;
    box-shadow: var(--iconta-focus) !important;
    outline: none;
}

.movement-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.movement-chart {
    min-height: 230px;
    padding: 1rem .75rem .65rem;
    border: 1px solid var(--iconta-line);
    border-radius: var(--iconta-radius);
    background: linear-gradient(180deg, #fbfcff 0%, #fff 100%);
    overflow-x: auto;
}

.movement-day {
    min-width: 22px;
}

.chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: .75rem;
    color: var(--iconta-muted);
    font-weight: 800;
}

.sidebar .nav a,
.nav-accordion-toggle,
.nav-accordion-panel a {
    border-radius: var(--iconta-radius-sm) !important;
    min-height: 42px;
}

.sidebar-footer {
    border-radius: var(--iconta-radius);
}

.alert {
    border-radius: var(--iconta-radius) !important;
    border-width: 1px;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    line-height: 1.45;
}

.alert > i {
    margin-top: .1rem;
    flex: 0 0 auto;
}

code,
.font-monospace {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .metrics > div,
:root[data-theme="dark"] .admin-metrics > div,
:root[data-theme="dark"] .client-metrics > div,
:root[data-theme="dark"] .balance-metrics > div,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .movement-totals > div,
:root[data-theme="dark"] .quick-actions a {
    background: #11172a !important;
    border-color: #303854 !important;
    color: #f6f7ff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

:root[data-theme="dark"] .panel h2,
:root[data-theme="dark"] .card h2,
:root[data-theme="dark"] .panel-head h2,
:root[data-theme="dark"] .metrics strong,
:root[data-theme="dark"] .metric-card strong,
:root[data-theme="dark"] .details dd,
:root[data-theme="dark"] label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .quick-actions a span {
    color: #ffffff !important;
}

:root[data-theme="dark"] .metrics span,
:root[data-theme="dark"] .metric-card span,
:root[data-theme="dark"] .details dt,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .quick-actions a small,
:root[data-theme="dark"] .panel p.text-muted {
    color: #b7bfd6 !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not(.form-check-input),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background-color: #0f1629 !important;
    border-color: #303854 !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .btn-outline-primary {
    background: #11172a;
    border-color: #5664ff;
    color: #cbd1ff;
}

:root[data-theme="dark"] .movement-chart,
:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .responsive-table {
    background: #0f1629 !important;
    border-color: #303854 !important;
}

@media (max-width: 1080px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .main {
        padding: 1rem;
    }

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

@media (max-width: 760px) {
    .main {
        padding: .75rem;
    }

    .topbar,
    .panel,
    .card,
    .client-account-card,
    .admin-hero,
    .activation-lock,
    .activation-empty {
        padding: .9rem !important;
    }

    .client-account-card,
    .admin-hero,
    .panel-head,
    .financial-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .panel-head .btn,
    .financial-card-head .btn,
    .client-account-card .btn,
    .admin-hero .btn,
    .form-actions .btn,
    .actions .btn {
        width: 100%;
    }

    .metrics,
    .admin-metrics,
    .client-metrics,
    .balance-metrics,
    .movement-totals,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .details {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .details dd {
        padding-bottom: .55rem;
        border-bottom: 1px solid var(--iconta-line);
    }

    .details dd:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .filter-bar .btn,
    .filter-bar .btn-outline-secondary {
        width: 100%;
    }

    .btn {
        min-height: 42px;
    }
}
/* IConta polish final alignment guards */
.table td[colspan],
table td[colspan],
.table tbody tr:only-child td[colspan],
table tbody tr:only-child td[colspan] {
    text-align: center !important;
    vertical-align: middle;
}

.table th:last-child,
.table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.table td:last-child:has(.btn),
.table th:last-child {
    text-align: right;
}

.table td:last-child:not(:has(.btn)) {
    width: auto;
}

.panel-head .btn,
.financial-card-head .btn,
.form-actions .btn,
.actions .btn {
    flex: 0 0 auto;
}

.filter-bar label,
.financial-form-grid label,
.form-grid label {
    width: 100%;
}

.filter-bar .col-md-1,
.filter-bar .col-md-2,
.filter-bar .col-md-3,
.filter-bar .col-md-4 {
    min-width: 0;
}

@media (max-width: 760px) {
    .table th:last-child,
    .table td:last-child {
        width: auto;
    }

    .panel-head .btn,
    .financial-card-head .btn,
    .form-actions .btn,
    .actions .btn {
        flex: 1 1 100%;
    }
}
/* Sidebar fixed account details with scrollable menu */
.sidebar {
    overflow: hidden !important;
    min-height: 0;
}

.sidebar .brand,
.sidebar .sidebar-footer {
    flex: 0 0 auto;
}

.sidebar-menu-scroll,
.sidebar .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.36) transparent;
}

.sidebar-menu-scroll::-webkit-scrollbar,
.sidebar .nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu-scroll::-webkit-scrollbar-thumb,
.sidebar .nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.28);
    border-radius: 999px;
}

.sidebar-account-title {
    color: #fff !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .95;
}

.nav-accordion-toggle span,
.nav-accordion-panel a span,
.sidebar .nav > a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-accordion-panel {
    margin-top: .15rem;
    border-left: 1px solid rgba(255,255,255,.14);
}

@media (max-width: 1080px) {
    .sidebar {
        overflow: hidden !important;
    }

    .sidebar-menu-scroll,
    .sidebar .nav {
        max-height: none;
    }
}