:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #edf3fb;
    --line: #d7e0ee;
    --ink: #111827;
    --muted: #5f728e;
    --brand: #0f9d94;
    --brand-soft: #d9f3f1;
    --danger: #d82f2f;
    --warning: #f59e0b;
    --success: #17a65c;
    --shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
    margin: 0;
}

p {
    margin: 0;
    color: var(--muted);
}

a {
    color: var(--brand);
    text-decoration: none;
}

.btn {
    position: relative;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.is-busy {
    cursor: wait;
    opacity: 0.82;
}

.btn.is-busy::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: button-spin 0.7s linear infinite;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 157, 148, 0.28);
}

.btn-light {
    background: #fff;
    border-color: var(--line);
    color: #213143;
}

.btn-danger {
    background: #fff1f1;
    border-color: #f3b8b8;
    color: #9f2020;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

textarea {
    resize: vertical;
}

label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: #33475f;
    font-weight: 700;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

.split-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: hidden;
}

.auth-promo {
    position: relative;
    background: linear-gradient(180deg, #dcf6f3 0%, #b9e7e2 100%);
    overflow: hidden;
    padding: 56px;
    display: flex;
    align-items: center;
}

.promo-blue {
    background: linear-gradient(180deg, #12a39a 0%, #0b7f78 100%);
}

.promo-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 54px 54px;
}

.promo-content {
    position: relative;
    max-width: 540px;
    min-width: 0;
}

.promo-content h2 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.promo-blue .promo-content h2,
.promo-blue .promo-content p,
.promo-blue .feature-list li {
    color: #fff;
}

.promo-content p {
    font-size: 1.28rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.feature-list,
.trust-badges {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
}

.feature-list li,
.trust-badges span {
    list-style: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #0f4f4b;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-panel {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 510px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-card-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

#login-alert {
    margin-top: 12px;
}

.form-stack {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.auth-switch {
    margin-top: 18px;
    font-size: 0.95rem;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 45, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 20px 16px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4eaf3;
    padding: 8px 6px 18px;
    margin-bottom: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.brand h1 {
    font-size: 1.05rem;
}

.brand p {
    font-size: 0.7rem;
}

.brand-mark-circle {
    min-width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-list {
    display: grid;
    gap: 8px;
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid #e4eaf3;
    padding: 14px 8px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f0faf8;
    border: 1px solid #c8ede8;
    color: #0b6f69;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.sidebar-user strong {
    display: block;
    font-size: 0.92rem;
    color: #172a42;
}

.sidebar-user p {
    font-size: 0.8rem;
}

.nav-group {
    display: grid;
    gap: 5px;
}

.nav-sep {
    border-top: 1px solid #e4eaf3;
    margin: 10px 6px;
}

.nav-item {
    padding: 11px 12px;
    border-radius: 14px;
    color: #1f2937;
    font-weight: 700;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e6ecf4;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-label {
    font-size: 1rem;
    line-height: 1.2;
}

.nav-item.active {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: #a6e4df;
}

.nav-item.active .nav-icon {
    color: var(--brand);
    border-color: #a6e4df;
}

.hidden {
    display: none !important;
}

.main-content {
    display: grid;
    grid-template-rows: auto 1fr;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    max-width: 760px;
}

.sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: #1f334e;
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sidebar-close-btn {
    display: none;
}

.search-box {
    width: 100%;
    min-width: 0;
    background: #f0faf8;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.sidebar-hidden .app-shell {
    grid-template-columns: 1fr;
}

body.sidebar-hidden .sidebar {
    display: none;
}

.content-wrap {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.table-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    margin-bottom: 16px;
}

.transactions-scroll-region {
    width: 100%;
}

.transactions-scroll-content {
    width: 100%;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
}

.tx-table th,
.tx-table td {
    border-top: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    font-size: 0.9rem;
}

.tx-table th {
    color: var(--muted);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.badge.warn {
    background: #fff3dc;
    color: #9a6000;
}

.badge.info {
    background: #e4f7f5;
    color: #0b6f69;
}

.badge.success {
    background: #ddf8ea;
    color: #176b3f;
}

.badge.danger {
    background: #ffe7e7;
    color: #a11f1f;
}

.state-box {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 14px;
    color: var(--muted);
}

.state-box.error {
    border-color: #f4bcbc;
    background: #fff3f3;
    color: #9e2626;
}

.state-box.success {
    border-color: #b8efcf;
    background: #ecfef3;
    color: #0f6d3d;
}

.state-box.loading {
    background: #f2fbfa;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-size: 0.8rem;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e6f8f6;
    color: #0b6f69;
    border: 1px solid #bdebe7;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.payment-method-card {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #f7fafc;
    min-height: 110px;
    padding: 12px;
    text-align: left;
    display: grid;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.payment-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-method-icon {
    color: #47627d;
    font-size: 1rem;
}

.payment-method-radio {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #c9d7e6;
    background: #fff;
    position: relative;
}

.payment-method-card strong {
    color: #1a2f47;
    font-size: 1.02rem;
}

.payment-method-card span {
    color: #5e728e;
    font-size: 0.83rem;
    line-height: 1.35;
}

.payment-method-card.active {
    border-color: var(--brand);
    background: #eef8f7;
}

.payment-method-card.active .payment-method-icon {
    color: var(--brand);
}

.payment-method-card.active .payment-method-radio {
    border-color: var(--brand);
}

.payment-method-card.active .payment-method-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--brand);
}

.payment-method-empty {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 16px;
    color: var(--muted);
    background: #f8fbff;
}

.actions-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-tx-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-tx-controls select {
    min-width: 180px;
    padding: 8px 10px;
}

.admin-transaction-chat-panel {
    margin-top: 16px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.timeline-list li {
    padding: 10px 12px;
    background: #f1faf9;
    border-radius: 10px;
    border: 1px solid #cbece9;
    font-size: 0.9rem;
}

.summary-grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
    column-gap: 12px;
}

.summary-grid dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.summary-grid dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
}

.txd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f728e;
    font-size: 0.95rem;
}

.txd-breadcrumb strong {
    color: #1a2e47;
}

.txd-action-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-left: 4px solid #f4ad34;
}

.txd-action-banner.warn {
    border-left-color: #f4ad34;
}

.txd-action-banner.info {
    border-left-color: #5c95d6;
}

.txd-action-banner.success {
    border-left-color: #22a766;
}

.txd-action-banner.danger {
    border-left-color: #d24a4a;
}

.txd-action-copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.txd-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff4de;
    color: #b6750d;
    font-size: 1.05rem;
    font-weight: 800;
}

.txd-action-banner.info .txd-action-icon {
    background: #eaf4ff;
    color: #356fae;
}

.txd-action-banner.success .txd-action-icon {
    background: #e7faef;
    color: #1c8a54;
}

.txd-action-banner.danger .txd-action-icon {
    background: #fff1f1;
    color: #b43b3b;
}

.txd-action-copy h3 {
    margin: 0 0 4px;
}

.txd-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
}

.txd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.txd-section-head span {
    color: #6d809a;
    font-size: 0.84rem;
    font-weight: 700;
}

.txd-timeline-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.txd-timeline-item {
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    background: #f1f5fa;
}

.txd-step-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e3eef9;
    color: #4f6885;
    font-size: 0.92rem;
    font-weight: 800;
}

.txd-timeline-item strong {
    color: #1b2f47;
}

.txd-timeline-item small {
    color: #6d809a;
    font-size: 0.8rem;
}

.txd-timeline-item.done {
    border-color: #bde9d8;
    background: #ecfbf4;
}

.txd-timeline-item.done .txd-step-icon {
    background: #d8f5e8;
    color: #128452;
}

.txd-timeline-item.current {
    border-color: #f2c88c;
    background: #f7efe2;
}

.txd-timeline-item.current .txd-step-icon {
    background: #ffeacc;
    color: #b46f0d;
}

.txd-timeline-item.pending {
    border-color: #d7e1ec;
    background: #edf2f7;
}

.txd-timeline-item.pending .txd-step-icon {
    background: #dce7f3;
    color: #5e748f;
}

.txd-inspection-note {
    margin-top: 12px;
    border: 1px solid #f1d8af;
    border-radius: 10px;
    background: #fff7ec;
    color: #9a5b00;
    padding: 12px;
    font-size: 0.9rem;
}

.txd-summary-card h3 {
    margin-bottom: 6px;
}

.txd-summary-id {
    font-size: 0.86rem;
}

.txd-total-wrap {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e3ebf4;
    border-radius: 12px;
    background: #fbfdff;
}

.txd-total-wrap small {
    color: #637792;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.txd-total-line {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.txd-total-line strong {
    font-size: 2rem;
    color: #13263d;
}

.txd-total-line span {
    color: #60738f;
}

.txd-cost-grid {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ebf0f6;
}

.txd-party-block,
.txd-terms-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ebf0f6;
}

.txd-party-block small,
.txd-terms-block small {
    color: #6b7f9a;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.txd-party-block p {
    margin-top: 4px;
    color: #1a2e47;
    font-weight: 700;
}

.txd-terms-block ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.txd-terms-block li {
    color: #49627e;
}

.txd-docs-card {
    padding-top: 0;
}

.txd-doc-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e3ebf4;
    margin: 0 -22px;
    padding: 0 22px;
}

.txd-doc-tabs button {
    border: none;
    background: transparent;
    color: #627794;
    font-weight: 700;
    padding: 12px 2px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.txd-doc-tabs button.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.txd-doc-empty {
    padding-top: 16px;
    color: #6b7f9a;
}

.muted {
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 1.6rem;
    color: #12263f;
}

.admin-link-wrap {
    margin-top: 12px;
}

.pill-link {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e6f8f6;
    border: 1px solid #bdebe7;
    color: #0b6f69;
    font-weight: 700;
}

.table-cell-clip {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.faq-card h3 {
    margin-bottom: 14px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    background: #f9fcff;
    padding: 0 14px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    color: #1f334e;
    padding: 14px 4px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--brand);
}

.faq-item p {
    padding: 0 4px 14px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.kyc-wizard-card {
    padding: 24px;
}

.kyc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.kyc-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #60738f;
    font-size: 0.8rem;
    font-weight: 800;
}

.kyc-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e9eef6;
    color: #60738f;
}

.kyc-step.active {
    color: var(--brand);
}

.kyc-step.active .kyc-step-dot {
    background: var(--brand);
    color: #fff;
}

.kyc-step-line {
    width: min(190px, 24vw);
    border-top: 2px solid #dbe5f0;
}

.kyc-status {
    margin-bottom: 16px;
}

.kyc-form-grid {
    display: grid;
    gap: 16px;
}

.kyc-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fcfdff;
    padding: 16px;
}

.kyc-section h3 {
    margin-bottom: 8px;
}

.kyc-section .muted {
    margin: 0 0 14px;
}

.kyc-doc-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kyc-doc-type {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    min-height: 88px;
    color: #1d2f45;
    font-weight: 700;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
}

.kyc-doc-type.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.kyc-doc-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.kyc-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kyc-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.kyc-upload-drop {
    border: 1px dashed #c7d7e9;
    border-radius: 14px;
    background: #f8fbff;
    min-height: 158px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    text-align: center;
    padding: 16px;
    color: #5a6f8b;
    cursor: pointer;
}

.kyc-upload-drop strong {
    color: var(--brand);
    font-size: 1rem;
}

.kyc-upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.15rem;
}

.kyc-file-name {
    font-size: 0.8rem;
    color: #1d2f45;
    font-weight: 700;
    margin-top: 4px;
    max-width: 240px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.kyc-note {
    margin: 10px 0 0;
    border: 1px solid #cde4ff;
    border-radius: 10px;
    background: #edf5ff;
    color: #2b5b93;
    font-size: 0.86rem;
    padding: 10px 12px;
}

.kyc-secure-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #0d7f4b;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 16px;
}

.contact-info-card h3 {
    margin-bottom: 14px;
}

.contact-channel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.contact-channel-list li {
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    background: #f9fcff;
    padding: 12px;
    display: grid;
    gap: 5px;
}

.contact-channel-title {
    color: #33475f;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.profile-main-card h3,
.profile-side-card h3 {
    margin-bottom: 12px;
}

.alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert.warn {
    background: #fff6e5;
    color: #915c06;
    border-color: #f6d08c;
}

.alert.error {
    background: #fff1f1;
    color: #9f2020;
    border-color: #f3b8b8;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #0f3f3b;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.network-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 63, 59, 0.96);
    color: #fff;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1100;
}

.network-indicator::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-right-color: transparent;
    animation: button-spin 0.7s linear infinite;
}

.network-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.landing-shell {
    background: #f2f4f7;
    color: #0f2d44;
}

.landing-container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.landing-hero-band {
    background:
        radial-gradient(circle at 82% 24%, rgba(73, 166, 216, 0.2) 0%, rgba(73, 166, 216, 0) 34%),
        linear-gradient(180deg, #055282 0%, #014973 100%);
    padding: 40px 0 96px;
    color: #fff;
}

.landing-topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Sora", sans-serif;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.landing-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #015684;
    font-size: 0.95rem;
    font-weight: 800;
}

.landing-brand-accent {
    color: #59d989;
}

.landing-top-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-top-links a,
.landing-top-actions a {
    color: #d8ecfb;
    font-size: 0.83rem;
    font-weight: 700;
}

.landing-top-links a:hover,
.landing-top-actions a:hover {
    color: #fff;
}

.landing-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-link-strong {
    color: #fff !important;
}

.landing-hero-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.22fr 0.88fr;
    gap: 20px;
}

.landing-hero-copy {
    animation: landing-rise 0.6s ease-out;
}

.landing-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    line-height: 1.06;
    max-width: 16ch;
    color: #fff;
}

.landing-hero-copy p {
    margin-top: 12px;
    color: #d2e9fa;
    font-size: 0.98rem;
    line-height: 1.48;
    max-width: 60ch;
}

.landing-hero-form {
    margin-top: 18px;
    max-width: 560px;
}

.landing-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.landing-hero-form input,
.landing-hero-form select {
    border-radius: 0;
    border-color: #bcd7e8;
    padding: 10px 11px;
    height: 40px;
    background: #fff;
    color: #14334e;
}

.landing-hero-form .btn {
    margin-top: 2px;
    border-radius: 0;
    padding: 10px 16px;
    height: 40px;
    min-width: 170px;
}

.landing-hero-side {
    border: 1px solid rgba(143, 204, 238, 0.32);
    border-radius: 18px;
    background: rgba(5, 108, 161, 0.28);
    padding: 16px;
    align-self: start;
    animation: landing-rise 0.8s ease-out;
    display: grid;
    gap: 12px;
}

.landing-service-slider {
    display: grid;
}

.landing-service-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
}

.landing-service-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.landing-service-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.landing-service-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid #7ab9dd;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.landing-service-dots button.is-active {
    background: #ffffff;
    border-color: #ffffff;
}

.landing-side-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 30%, #7dd0ff 0%, #4aa5d7 100%);
    color: #0d3d63;
    font-size: 2rem;
    margin-bottom: 10px;
}

.landing-hero-side h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.landing-hero-side ul {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.landing-hero-side li {
    color: #d8eefc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.landing-proof-bar {
    border-bottom: 1px solid #dce2e9;
    background: #fff;
}

.landing-proof-inner {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.landing-proof-stats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-proof-stats div {
    display: grid;
    gap: 2px;
}

.landing-proof-stats strong {
    font-size: 0.9rem;
    color: #0f2f48;
}

.landing-proof-stats span {
    font-size: 0.74rem;
    color: #607890;
}

.landing-proof-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-proof-logos span {
    border-radius: 999px;
    border: 1px solid #d7e2ee;
    padding: 5px 10px;
    font-size: 0.78rem;
    color: #244864;
    background: #f8fbff;
    font-weight: 700;
}

.landing-process,
.landing-categories,
.landing-certifications,
.landing-report,
.landing-recommended,
.landing-product-block,
.landing-world {
    border-bottom: 1px solid #e4e9ef;
}

.landing-process,
.landing-categories,
.landing-certifications,
.landing-report,
.landing-recommended,
.landing-product-block,
.landing-world {
    padding: 44px 0;
}

.landing-center-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.landing-center-head h2 {
    font-size: clamp(1.65rem, 3.4vw, 2.3rem);
    color: #102f48;
}

.landing-center-head p {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.52;
    color: #5d748d;
}

.landing-steps {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.landing-steps article {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.landing-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid #7ec8a3;
    background: #f2fbf5;
    color: #128252;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.landing-steps p {
    color: #3d5874;
    font-size: 0.84rem;
    line-height: 1.35;
    max-width: 150px;
}

.landing-process .btn,
.landing-recommended .btn {
    margin: 20px auto 0;
    display: inline-flex;
}

.landing-process .landing-container,
.landing-recommended .landing-container {
    text-align: center;
}

.landing-categories {
    background: #f8fafd;
}

.landing-certifications {
    background: #f4f8fc;
}

.landing-cert-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.landing-cert-card {
    border: 1px solid #d7e4f1;
    border-radius: 14px;
    background: #ffffff;
    padding: 10px;
    display: grid;
    place-items: center;
}

.landing-cert-card img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.landing-category-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.landing-category-grid article {
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.landing-category-grid h3 {
    margin: 0;
    font-size: 1.02rem;
    color: #123852;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #cfe0ef;
    background: #f3f9ff;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

.landing-category-grid p {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #56708b;
    line-height: 1.5;
}

.landing-inline-cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.landing-inline-link {
    color: #168948;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.landing-report-form {
    margin: 16px auto 0;
    max-width: 760px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr auto;
    gap: 8px;
}

.landing-report-form input,
.landing-report-form select {
    background: #fff;
    border-color: #d4e1ef;
    height: 42px;
    border-radius: 4px;
}

.landing-report-form .btn {
    height: 42px;
    border-radius: 4px;
}

.landing-logo-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-logo-row span {
    border: 1px solid #d6e4f3;
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: #2e4f6e;
    font-weight: 700;
}

.landing-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.landing-product-grid.is-reverse .landing-product-art {
    order: 2;
}

.landing-product-grid.is-reverse .landing-product-copy {
    order: 1;
}

.landing-product-art {
    display: grid;
    place-items: center;
}

.landing-window {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid #cddceb;
    background: #fff;
    box-shadow: 0 18px 34px rgba(24, 43, 68, 0.08);
    padding: 12px;
}

.landing-window span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 4px;
    background: #9fb8cf;
}

.landing-window-body {
    margin-top: 10px;
    border-radius: 10px;
    min-height: 170px;
    background: linear-gradient(180deg, #eff6ff 0%, #e6f7f4 100%);
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    color: #274861;
}

.landing-product-copy h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: #12324d;
}

.landing-product-copy p {
    margin-top: 10px;
    color: #57708a;
    line-height: 1.55;
}

.landing-product-copy .landing-inline-link {
    margin-top: 10px;
    display: inline-block;
}

.landing-product-block.is-alt {
    background: #f8fbff;
}

.landing-map-art {
    width: min(500px, 100%);
    min-height: 220px;
    border-radius: 14px;
    border: 1px solid #d4dfec;
    background:
        radial-gradient(circle at 15% 40%, #42bb71 0 4px, transparent 4px),
        radial-gradient(circle at 42% 55%, #42bb71 0 4px, transparent 4px),
        radial-gradient(circle at 67% 38%, #42bb71 0 4px, transparent 4px),
        radial-gradient(circle at 81% 58%, #42bb71 0 4px, transparent 4px),
        linear-gradient(180deg, #f7fbff 0%, #f1f8f6 100%);
    position: relative;
}

.landing-map-art span {
    position: absolute;
    height: 2px;
    background: #8bd2a5;
    transform-origin: left center;
}

.landing-map-art span:nth-child(1) {
    width: 130px;
    left: 17%;
    top: 43%;
    transform: rotate(13deg);
}

.landing-map-art span:nth-child(2) {
    width: 115px;
    left: 44%;
    top: 55%;
    transform: rotate(-15deg);
}

.landing-map-art span:nth-child(3) {
    width: 84px;
    left: 68%;
    top: 41%;
    transform: rotate(23deg);
}

.landing-map-art span:nth-child(4) {
    width: 72px;
    left: 72%;
    top: 56%;
    transform: rotate(-18deg);
}

.landing-footer {
    background: #023b5e;
    color: #d6eaf7;
    padding: 40px 0 20px;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.landing-footer-grid h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: "Sora", sans-serif;
}

.landing-footer-grid a {
    display: block;
    color: #beddef;
    font-size: 0.82rem;
    margin-bottom: 7px;
}

.landing-footer-grid a:hover {
    color: #fff;
}

.landing-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.landing-footer-legal a {
    color: #d6eaf7;
    font-size: 0.86rem;
    font-weight: 700;
}

.landing-footer-legal a:hover {
    color: #ffffff;
}

.landing-footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(155, 199, 224, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-footer-bottom p {
    color: #aacde3;
    font-size: 0.78rem;
}

.landing-top-links a.is-active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.about-shell {
    background: #f3f6fa;
    color: #13314a;
}

.about-hero-band {
    background:
        radial-gradient(circle at 84% 18%, rgba(88, 190, 241, 0.2) 0%, rgba(88, 190, 241, 0) 40%),
        linear-gradient(180deg, #05507d 0%, #014062 100%);
    color: #fff;
    padding: 26px 0 42px;
}

.about-hero-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
}

.about-kicker {
    color: #8ed3f8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.76rem;
    font-weight: 800;
}

.about-hero-grid h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 5.3vw, 3.2rem);
    line-height: 1.06;
    color: #fff;
    max-width: 14ch;
}

.about-hero-grid p {
    color: #cfe7f8;
    margin-top: 12px;
    line-height: 1.56;
    max-width: 66ch;
}

.about-hero-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-hero-panel {
    border-radius: 16px;
    border: 1px solid rgba(126, 195, 233, 0.34);
    background: rgba(7, 99, 151, 0.26);
    padding: 16px;
}

.about-hero-panel h2 {
    color: #fff;
    font-size: 1.2rem;
}

.about-hero-panel ul {
    margin: 10px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.about-hero-panel li {
    color: #d5ebfb;
    line-height: 1.44;
}

.about-stats {
    border-bottom: 1px solid #dee6ef;
    background: #fff;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 0;
}

.about-stats-grid article {
    border: 1px solid #d8e3f0;
    border-radius: 12px;
    background: #f9fcff;
    padding: 12px;
}

.about-stats-grid strong {
    display: block;
    color: #123852;
    font-size: 1rem;
}

.about-stats-grid span {
    display: block;
    margin-top: 3px;
    color: #607991;
    font-size: 0.82rem;
}

.about-section {
    padding: 40px 0;
    border-bottom: 1px solid #e2e9f1;
}

.about-section.alt {
    background: #f8fbff;
}

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

.about-card {
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.about-card h2 {
    font-size: 1.15rem;
    color: #123450;
}

.about-card p {
    margin-top: 8px;
    color: #56718b;
    line-height: 1.56;
}

.about-head {
    max-width: 760px;
}

.about-head h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: #133450;
}

.about-head p {
    margin-top: 8px;
    color: #5e7791;
}

.about-timeline {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.about-timeline article {
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.about-timeline span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e8f7ef;
    border: 1px solid #bde7cc;
    color: #167f4f;
    font-weight: 800;
    font-size: 0.85rem;
}

.about-timeline h3 {
    margin-top: 10px;
    font-size: 1rem;
    color: #173954;
}

.about-timeline p {
    margin-top: 6px;
    color: #58718c;
    font-size: 0.9rem;
    line-height: 1.46;
}

.about-values {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.about-values article {
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.about-values h3 {
    font-size: 0.98rem;
    color: #1a3c58;
}

.about-values p {
    margin-top: 6px;
    font-size: 0.88rem;
    color: #5a748f;
    line-height: 1.45;
}

.about-cta {
    padding: 44px 0 56px;
    background: linear-gradient(180deg, #eaf5f4 0%, #e0f2ef 100%);
}

.about-cta h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: #123a54;
}

.about-cta p {
    margin-top: 8px;
    color: #4d6983;
}

.faq-shell,
.contact-public-shell {
    background: #f3f6fa;
    color: #13314a;
}

.legal-shell {
    background: #f3f6fa;
    color: #13314a;
}

.faq-hero {
    margin-top: 24px;
    max-width: 760px;
}

.faq-hero h1 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 4.7vw, 3rem);
    line-height: 1.08;
    color: #fff;
}

.faq-hero p {
    margin-top: 10px;
    color: #cfe7f8;
    max-width: 66ch;
}

.faq-main {
    padding: 38px 0 52px;
    border-bottom: 1px solid #e2e9f1;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.4fr;
    gap: 14px;
}

.faq-side-card,
.faq-content-card,
.contact-public-card {
    border: 1px solid #d9e4f1;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.faq-side-card h2,
.contact-public-card h2 {
    font-size: 1.1rem;
    color: #123852;
}

.faq-side-card ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.faq-side-card li {
    margin: 0;
}

.faq-side-card li a {
    display: block;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    background: #f9fcff;
    padding: 9px 10px;
    color: #56708b;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.45;
}

.faq-side-card li a:hover {
    border-color: #c8ddf0;
    background: #f2f8ff;
    color: #2b5a7d;
}

.faq-side-card .landing-inline-link {
    margin-top: 12px;
    display: inline-block;
}

.faq-content-card .faq-list {
    gap: 10px;
}

.faq-topic + .faq-topic {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4ebf3;
}

.faq-topic h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #123852;
}

.contact-public-main {
    padding: 38px 0 56px;
    border-bottom: 1px solid #e2e9f1;
}

#contact-public-alert {
    margin-bottom: 14px;
}

.contact-public-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-public-card ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.contact-public-card li {
    border: 1px solid #e0e8f2;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 11px;
    display: grid;
    gap: 4px;
}

.contact-public-card li span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #5f7892;
}

.contact-public-card li a,
.contact-public-card li strong {
    color: #173d58;
    font-size: 0.95rem;
}

.contact-public-card p {
    margin-top: 10px;
    color: #5b748f;
    line-height: 1.55;
}

.contact-public-form {
    margin-top: 12px;
}

.contact-public-form .actions-row {
    justify-content: flex-start;
}

.contact-public-note {
    margin-top: 14px;
    font-size: 0.86rem;
}

.contact-public-note a {
    font-weight: 700;
}

.legal-main {
    padding: 38px 0 56px;
    border-bottom: 1px solid #e2e9f1;
}

.legal-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 14px;
    align-items: start;
}

.legal-nav-card,
.legal-content-card {
    border: 1px solid #d9e4f1;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.legal-nav-card h2 {
    font-size: 1.08rem;
    color: #123852;
    margin: 0 0 10px;
}

.legal-nav-card a {
    display: block;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    background: #f8fbff;
    color: #275170;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 10px;
    margin-bottom: 8px;
}

.legal-nav-card a:hover {
    border-color: #c8ddf0;
    background: #f2f8ff;
}

.legal-content-card {
    padding: 18px 18px 14px;
}

.legal-section + .legal-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e6edf5;
}

.legal-section h2 {
    margin: 0;
    color: #123852;
    font-size: 1.2rem;
}

.legal-section p {
    margin-top: 9px;
    color: #56708b;
    line-height: 1.6;
}

.legal-meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e6edf5;
    color: #627b94;
    font-size: 0.84rem;
}

.legal-content-card-wide {
    max-width: 920px;
    margin: 0 auto;
}

.legal-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #56708b;
    line-height: 1.6;
    display: grid;
    gap: 5px;
}

.legal-list-numbered {
    list-style: decimal;
}

.legal-list-columns {
    columns: 2;
    column-gap: 30px;
}

.legal-list-columns li {
    break-inside: avoid;
}

.legal-subhead {
    margin: 12px 0 0;
    color: #123852;
    font-size: 1rem;
}

.tx-chat-card {
    display: grid;
    gap: 18px;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 46px rgba(17, 24, 39, 0.08);
}

.tx-chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e3ebf5;
    background:
        radial-gradient(circle at top left, rgba(15, 157, 148, 0.12), transparent 34%),
        linear-gradient(180deg, #fcfeff 0%, #f5f9fe 100%);
}

.tx-chat-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tx-chat-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 8px;
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.14);
}

.tx-chat-eyebrow {
    margin-bottom: 6px;
    color: #0f7f78;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tx-chat-topbar h3 {
    font-size: 1.28rem;
    color: #123852;
}

.tx-chat-topbar .muted {
    margin-top: 6px;
}

.tx-chat-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tx-chat-sync-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d4deeb;
    background: #fff;
    color: #45627d;
    font-size: 0.82rem;
    font-weight: 700;
}

.tx-chat-sync-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.tx-chat-sync-state.is-loading {
    color: #9a6000;
    border-color: #f4d8a1;
    background: #fff8e8;
}

.tx-chat-sync-state.is-live {
    color: #0b7f78;
    border-color: #bdebe7;
    background: #eef8f7;
}

.tx-chat-sync-state.is-stale {
    color: #8f2d2d;
    border-color: #efc4c4;
    background: #fff4f4;
}

.tx-chat-window {
    position: relative;
    padding: 18px 18px 0;
    background:
        linear-gradient(180deg, #f9fbfe 0%, #f4f8fc 100%);
}

.tx-chat-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(211, 222, 236, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 222, 236, 0.45) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
    pointer-events: none;
}

.tx-chat-list {
    position: relative;
    display: grid;
    gap: 16px;
    max-height: 560px;
    overflow-y: auto;
    padding: 10px 6px 18px;
}

.tx-chat-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: min(760px, 96%);
}

.tx-chat-row.is-own {
    margin-left: auto;
    flex-direction: row-reverse;
}

.tx-chat-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #dff5f3 0%, #c2ece8 100%);
    border: 1px solid #bdebe7;
    color: #0b6f69;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 157, 148, 0.12);
}

.tx-chat-row.is-own .tx-chat-avatar {
    background: linear-gradient(180deg, #eef3ff 0%, #dde8ff 100%);
    border-color: #c9d7f6;
    color: #35528c;
    box-shadow: 0 10px 20px rgba(53, 82, 140, 0.12);
}

.tx-chat-message {
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #d8e3f0;
    border-radius: 22px 22px 22px 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(12px);
}

.tx-chat-row.is-own .tx-chat-message {
    border-color: #bdebe7;
    border-radius: 22px 22px 8px 22px;
    background: linear-gradient(180deg, #f5fdfc 0%, #ebf8f6 100%);
}

.tx-chat-row.is-own .tx-chat-message-meta {
    color: #48677f;
}

.tx-chat-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--muted);
}

.tx-chat-message-meta strong {
    color: #163049;
    font-size: 0.9rem;
}

.tx-chat-message-body {
    color: #23384e;
    line-height: 1.6;
}

.tx-chat-image {
    display: block;
    width: min(100%, 380px);
    border: 1px solid #dbe4f1;
    border-radius: 16px;
    background: #fff;
}

.tx-chat-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid #e4ebf4;
    background: #fff;
}

.tx-chat-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #dbe4f1;
    border-radius: 16px;
    background: #f8fbfe;
}

.tx-chat-preview-image {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dbe4f1;
    background: #fff;
}

.tx-chat-preview-copy {
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
}

.tx-chat-preview-copy strong {
    color: #17314a;
    font-size: 0.95rem;
}

.tx-chat-preview-copy span {
    color: var(--muted);
    font-size: 0.83rem;
}

.tx-chat-composer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: end;
}

.tx-chat-attach-btn {
    margin: 0;
    min-height: 52px;
    width: 56px;
    padding: 0;
    border: 1px solid #d6e0ed;
    border-radius: 16px;
    background: #f8fbfe;
    color: #1f3952;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.tx-chat-attach-btn:hover {
    background: #eef5fc;
    border-color: #c7d5e6;
}

.tx-chat-attach-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tx-chat-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tx-chat-composer textarea {
    min-height: 52px;
    max-height: 140px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 18px;
    background: #fbfdff;
}

.tx-chat-send-btn {
    min-width: 108px;
    min-height: 52px;
}

.tx-chat-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tx-chat-draft-status {
    color: #1f3952;
    font-size: 0.84rem;
    font-weight: 700;
}

.tx-chat-shortcut-hint {
    color: var(--muted);
    font-size: 0.82rem;
}

#tx-chat-image-name {
    margin-top: 0;
    font-size: 0.92rem;
}

.payment-request-ach-fields {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe8f5;
    border-radius: 16px;
    background: #f8fbfe;
}

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

.payment-request-summary-grid > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    background: #f8fbfe;
}

.payment-request-summary-grid > div span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-request-summary-grid > div strong {
    color: #14334d;
    font-size: 1rem;
}

.payment-request-summary-grid > div small {
    color: #5c728d;
    line-height: 1.5;
}

.payment-request-summary-grid > div.is-wide {
    grid-column: 1 / -1;
}

.admin-kyc-preview-card {
    display: grid;
    gap: 14px;
}

.admin-kyc-preview-card .tx-chat-head {
    margin-bottom: 0;
}

#admin-kyc-preview-title {
    margin-top: 0;
    color: #17314a;
    font-weight: 700;
}

.admin-kyc-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: #f8fbfe;
    color: var(--muted);
    text-align: center;
}

.admin-kyc-preview-image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #fff;
}

.admin-kyc-preview-frame {
    width: 100%;
    min-height: 560px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #fff;
}

@keyframes landing-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes button-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 88vw;
        border-right: 1px solid var(--line);
        border-bottom: none;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        box-shadow: 0 20px 45px rgba(16, 33, 50, 0.2);
        overflow-y: auto;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-hidden .sidebar {
        display: flex;
    }

    .sidebar-close-btn {
        display: grid;
    }

    .topbar {
        padding: 12px 14px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .topbar-left {
        max-width: none;
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }

    .top-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .page-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .grid-layout,
    .grid-2,
    .split-auth,
    .table-toolbar,
    .stats-grid,
    .contact-grid,
    .profile-grid,
    .txd-layout {
        grid-template-columns: 1fr;
    }

    .kyc-doc-types,
    .kyc-upload-grid,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .auth-promo {
        padding: 26px;
    }

    .txd-action-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .txd-action-banner .actions-row {
        width: 100%;
        justify-content: flex-start;
    }

    .promo-content h2 {
        font-size: 2.2rem;
    }

    .transactions-scroll-region {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .transactions-scroll-content {
        min-width: 860px;
    }

    .transactions-card .table-toolbar {
        grid-template-columns: 1fr 240px;
    }
}

@media (max-width: 1100px) {
    .landing-topnav {
        flex-wrap: wrap;
    }

    .landing-top-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-product-grid,
    .landing-product-grid.is-reverse {
        grid-template-columns: 1fr;
    }

    .landing-product-grid.is-reverse .landing-product-art,
    .landing-product-grid.is-reverse .landing-product-copy {
        order: initial;
    }

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

    .about-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .landing-proof-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-proof-stats {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .landing-proof-logos {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .landing-category-grid {
        grid-template-columns: 1fr;
    }

    .landing-cert-grid {
        grid-template-columns: 1fr;
    }

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

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

    .landing-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-public-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .split-auth {
        min-height: auto;
    }

    .auth-promo,
    .auth-panel {
        padding: 22px 18px;
    }

    .promo-content {
        max-width: 100%;
    }

    .promo-content h2 {
        font-size: clamp(1.9rem, 9vw, 2.4rem);
        line-height: 1.08;
    }

    .promo-content p {
        font-size: clamp(1rem, 5vw, 1.15rem);
        line-height: 1.45;
    }

    .trust-badges {
        margin-top: 22px;
        gap: 8px;
    }

    .trust-badges span {
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .auth-card {
        padding: 26px 20px;
    }
}

@media (max-width: 760px) {
    .tx-chat-topbar,
    .tx-chat-title-wrap,
    .tx-chat-preview,
    .tx-chat-footnote {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-chat-composer {
        grid-template-columns: 1fr;
    }

    .tx-chat-send-btn,
    .tx-chat-attach-btn {
        width: 100%;
    }

    .tx-chat-row,
    .tx-chat-message,
    .payment-request-summary-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .tx-chat-row,
    .tx-chat-row.is-own {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-chat-avatar {
        width: 38px;
        height: 38px;
    }

    .transactions-scroll-region {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .transactions-scroll-content {
        min-width: 0;
        width: 100%;
    }

    .transactions-card .table-toolbar {
        grid-template-columns: 1fr;
    }

    #transactions-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    #transactions-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    #transactions-table,
    #transactions-table tbody,
    #transactions-table tr,
    #transactions-table td {
        display: block;
        width: 100%;
    }

    #transactions-table tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
    }

    #transactions-table td {
        position: relative;
        border-top: 1px solid #e8edf5;
        padding: 10px 12px 10px 44%;
        min-height: 42px;
        text-align: right;
    }

    #transactions-table td:first-child {
        border-top: none;
    }

    #transactions-table td::before {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 38%;
        text-align: left;
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    #transactions-table td:nth-child(1)::before { content: "ID"; }
    #transactions-table td:nth-child(2)::before { content: "Description"; }
    #transactions-table td:nth-child(3)::before { content: "Amount"; }
    #transactions-table td:nth-child(4)::before { content: "Role"; }
    #transactions-table td:nth-child(5)::before { content: "Status"; }
    #transactions-table td:nth-child(6)::before { content: "Updated"; }

    #transactions-table .table-cell-clip {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (max-width: 640px) {
    .auth-promo,
    .auth-panel {
        padding: 18px 14px;
    }

    .promo-content h2 {
        font-size: clamp(1.7rem, 10vw, 2rem);
    }

    .promo-content p {
        font-size: 1rem;
    }

    .auth-card {
        border-radius: 16px;
        padding: 22px 16px;
    }

    .network-indicator {
        top: auto;
        right: 16px;
        bottom: 76px;
        left: 16px;
        justify-content: center;
    }

    .landing-container {
        width: min(1140px, 94vw);
    }

    .landing-top-links {
        justify-content: flex-start;
    }

    .landing-hero-copy h1 {
        font-size: 1.88rem;
    }

    .landing-field-row {
        grid-template-columns: 1fr;
    }

    .landing-proof-stats {
        gap: 10px;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-inline-cta {
        flex-direction: column;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid,
    .about-timeline,
    .about-values,
    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .legal-list-columns {
        columns: 1;
    }

    .topbar-left {
        gap: 8px;
    }
}
