:root {
    --bg: #0b0f1a;
    --bg-2: #111827;
    --surface: rgba(17, 24, 39, 0.86);
    --surface-2: rgba(26, 34, 53, 0.92);
    --surface-3: rgba(31, 45, 68, 0.94);
    --border: rgba(255,255,255,0.07);
    --border-active: rgba(99,179,237,0.4);
    --text: #e8edf5;
    --muted: #7a8fa8;
    --text-dim: #4a5568;
    --accent: #3b9de8;
    --accent-2: #63b3ed;
    --accent-glow: rgba(59,157,232,0.15);
    --gold: #d69e2e;
    --gold-soft: rgba(214, 158, 46, 0.14);
    --success: #38a169;
    --danger: #e53e3e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    --card-bg: linear-gradient(180deg, rgba(15, 24, 41, 0.94), rgba(8, 14, 25, 0.98));
    --card-border: rgba(140, 165, 209, 0.12);
    --card-border-strong: rgba(119, 199, 255, 0.24);
    --card-line: linear-gradient(90deg, rgba(99, 179, 237, 0.72), rgba(214, 158, 46, 0.42), transparent);
    --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    --radius: 12px;
    --max: 1200px;
    --font-head: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

/* Desktop overlay using ::before for consistent layering */
@media (min-width: 1024px) {
    .hero-home::before {
        content: "";
        position: absolute;
        inset: 0;
        /* match mobile overlay opacity for consistent look */
        background: linear-gradient(180deg, rgba(5, 12, 23, 0.72), rgba(5, 12, 23, 0.46), rgba(5, 12, 23, 0.78));
        z-index: 0;
        pointer-events: none;
    }
    .hero-home { position: relative; }
    .hero-home .container { position: relative; z-index: 2; }
}

/* Desktop eyebrow override - ensure visible on large screens */
@media (min-width: 1024px) {
    .hero-home .eyebrow {
        font-size: 24px !important;
        line-height: 1.02;
        font-weight: 800 !important;
        color: rgba(59, 157, 232, 1) !important;
        letter-spacing: 0.02em;
    }
}

/* Desktop uses ::before overlay above the image; no gradient in the background rule */

/* Strong desktop overlay enforcement (highest specificity) */
@media (min-width: 1024px) {
    .hero-home {
        background-image: url("../img/operations-team.jpg") !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
    }

    .hero-home::before {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(180deg, rgba(5, 12, 23, 0.72), rgba(5, 12, 23, 0.46), rgba(5, 12, 23, 0.78)) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    .hero-home .container {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* Strong override: ensure About page content clears the fixed header + ticker on small screens */
@media (max-width: 600px) {
    body.about-page .site-header + main,
    body.about-page .site-header + .page-hero,
    body.about-page .page-hero,
    body.about-page main {
        padding-top: 140px !important;
    }
    body.about-page .page-hero {
        padding-bottom: 12px !important;
    }
    /* Ensure main content sits below the header/ticker on About mobile */
    body.about-page main {
        padding-top: 150px !important;
    }
}

/* Unified mobile compact layer for all public/client pages */
@media (max-width: 600px) {
    html,
    body {
        overflow-x: hidden;
    }

    .page-section,
    .section,
    .hero,
    .page-hero,
    .client-bank-content,
    .client-app-body {
        max-width: 100%;
    }

    .container,
    .client-bank-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-hero,
    .hero {
        padding-top: 78px;
        padding-bottom: 34px;
    }

    .page-section,
    .section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .section-title,
    .hero h1,
    .page-hero h1,
    .toolbar-card .section-title {
        font-size: clamp(1.45rem, 8vw, 2rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em;
    }

    .section-intro,
    .hero p,
    .page-hero p,
    .card-copy,
    .client-app-body .card-copy,
    .meta-line {
        font-size: 0.78rem !important;
        line-height: 1.42 !important;
    }

    .eyebrow,
    .mini-label {
        font-size: 0.58rem !important;
        letter-spacing: 0.12em !important;
    }

    .detail-card,
    .case-card,
    .step-card,
    .testimonial-card,
    .form-shell,
    .toolbar-card,
    .trust-shell-head,
    .trust-deposit-card,
    .payment-record-item,
    .crypto-method-card,
    .client-case-item,
    .client-doc-item,
    .timeline-item,
    .upload-tile,
    .mobile-bank-welcome,
    .mobile-bank-balance-card,
    .mobile-bank-case-card,
    .mobile-bank-next-card,
    .mobile-bank-small-card,
    .client-history-row,
    .client-history-stat {
        max-width: 100%;
        min-width: 0;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .steps-grid,
    .case-grid,
    .stats-grid,
    .testimonials-grid,
    .detail-grid,
    .feature-grid,
    .form-grid,
    .settings-grid,
    .contact-grid,
    .legal-grid,
    .credibility-grid,
    .client-stat-grid,
    .client-dashboard-grid,
    .payment-page-grid,
    .client-review-grid,
    .submit-grid,
    .case-type-grid,
    .timeline-grid,
    .detailed-case-grid,
    .operate-grid,
    .kyc-upload-grid,
    .trust-wallet-grid,
    .crypto-method-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button,
    .text-link,
    .input,
    .select,
    .textarea,
    .note-input {
        max-width: 100%;
        min-width: 0;
    }

    /* Hide PAY metric on small screens */
    .about-metrics > *:nth-child(3) {
        display: none !important;
    }
    /* Hide DOC metric and 'Our Mission' label on small screens */
    .about-metrics > *:nth-child(2) {
        display: none !important;
    }
    .about-page .why-grid .eyebrow {
        display: none !important;
    }
    /* Ensure INT (first metric) remains visible on mobile */
    .about-metrics > *:nth-child(1) {
        display: block !important;
    }
    /* Hide entire 'Our Mission' block on mobile per request */
    .about-page .why-grid {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Collapse parent section padding so no empty space remains */
    .about-page .section.section-tight {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Reduce the gap specifically above the Our Values section on mobile */
    body.about-page main > section:nth-of-type(2) .container {
        padding-top: 4px !important;
    }
    /* Reduce hero/main top clearance on small screens to avoid large gaps */
    .site-header + main,
    .site-header + .page-hero,
    .page-hero,
    .hero {
        padding-top: 140px !important;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button {
        min-height: 36px !important;
        padding: 8px 11px !important;
        border-radius: 12px !important;
        font-size: 0.76rem !important;
    }

    .input,
    .select,
    .textarea,
    .note-input {
        min-height: 38px !important;
        padding: 8px 10px !important;
        border-radius: 11px !important;
        font-size: 0.78rem !important;
    }

    .pill,
    .status-pill,
    .kicker-chip {
        max-width: 100%;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        font-size: 0.58rem !important;
        line-height: 1.05 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-case-list,
    .timeline-list,
    .payment-record-list,
    .client-history-list,
    .client-doc-list,
    .trust-wallet-grid,
    .crypto-method-grid {
        gap: 7px !important;
    }

    .client-case-top,
    .payment-record-item,
    .client-history-row {
        align-items: center;
    }

    .client-case-top .case-ref,
    .client-history-main strong,
    .payment-record-item strong,
    .trust-wallet-name,
    .card-title {
        min-width: 0;
        font-size: 0.82rem !important;
        line-height: 1.16 !important;
        overflow-wrap: anywhere;
    }

    .timeline-item .card-copy,
    .payment-record-item small,
    .client-history-main small,
    .mobile-bank-activity small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .amount,
    .mobile-bank-activity b,
    .client-history-meta strong {
        font-size: 0.72rem !important;
        white-space: nowrap;
    }
}

body.client-app-body .client-bank-shell,
body.client-app-body .client-bank-main,
body.client-app-body .client-bank-content,
body.client-app-body .client-dashboard-grid,
body.client-app-body .client-dashboard-grid-single,
body.client-app-body .toolbar-card,
body.client-app-body .form-shell {
    min-width: 0;
}

body.client-app-body .client-bank-main {
    width: calc(100% - 280px);
    margin-left: 280px;
}

body.client-app-body .client-bank-content {
    width: min(1360px, 100%);
    max-width: calc(100vw - 280px);
    box-sizing: border-box;
}

body.client-app-body .client-dashboard-grid,
body.client-app-body .client-dashboard-grid-single,
body.client-app-body .client-stat-grid {
    display: grid;
}

@media (max-width: 1080px) {
    body.client-app-body .client-bank-main {
        width: 100%;
        margin-left: 0;
        display: block;
    }

    body.client-app-body .client-bank-header {
        position: fixed;
        left: 0;
        right: 0;
    }

    body.client-app-body .client-bank-content {
        width: 100%;
        max-width: 100vw;
    }
}

/* Shared compact transaction/timeline container for dashboard + history */
.mobile-bank-activity-list,
.client-history-list.client-history-scroll {
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(119, 199, 255, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 8%, rgba(82, 178, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(7, 13, 25, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 46px rgba(0,0,0,0.18);
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 178, 255, 0.42) rgba(255,255,255,0.04);
}

.mobile-bank-activity-list::before,
.client-history-list.client-history-scroll::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 27px;
    width: 1px;
    background: linear-gradient(180deg, rgba(91, 178, 255, 0.3), rgba(219, 168, 77, 0.08));
    pointer-events: none;
}

.mobile-bank-activity,
.client-history-row {
    position: relative;
    border: 1px solid rgba(145, 167, 197, 0.1);
    background: linear-gradient(180deg, rgba(17, 29, 52, 0.78), rgba(10, 17, 30, 0.92));
    box-shadow: none;
}

.mobile-bank-activity > span,
.client-history-icon {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(119, 199, 255, 0.14);
    box-shadow: 0 0 0 5px rgba(54, 168, 238, 0.05);
}

.mobile-bank-activity strong,
.client-history-main strong {
    font-weight: 850;
}

.mobile-bank-activity small,
.client-history-main small {
    color: #8ea7c4;
}

@media (max-width: 600px) {
    .mobile-bank-activity-list,
    .client-history-list.client-history-scroll {
        max-height: 260px !important;
        gap: 8px !important;
        padding: 9px !important;
        border-radius: 15px !important;
    }

    .client-history-list.client-history-scroll {
        max-height: 58vh !important;
    }

    .mobile-bank-activity-list::before,
    .client-history-list.client-history-scroll::before {
        left: 24px;
        top: 14px;
        bottom: 14px;
    }

    .mobile-bank-activity,
    .client-history-row {
        min-height: 54px;
        padding: 9px !important;
        border-radius: 13px !important;
    }

    .mobile-bank-activity > span,
    .client-history-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 10px !important;
        font-size: 0.78rem !important;
    }

    .mobile-bank-activity strong,
    .client-history-main strong {
        font-size: 0.74rem !important;
    }

    .mobile-bank-activity small,
    .client-history-main small {
        font-size: 0.58rem !important;
    }

    .mobile-bank-activity b,
    .client-history-meta strong {
        font-size: 0.66rem !important;
    }

    .client-history-meta .pill {
        max-width: 82px !important;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(59, 157, 232, 0.18), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(219, 168, 77, 0.1), transparent 18%),
        linear-gradient(180deg, #08101d 0%, #09121f 45%, #0b1322 100%);
    overflow-x: hidden;
}

a, button { transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 999px; }
::-webkit-scrollbar-track { background: rgba(5, 9, 17, 0.9); }

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.24s ease, border-color 0.24s ease, backdrop-filter 0.24s ease;
}

.site-header.scrolled {
    background: rgba(9, 16, 29, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(140, 165, 209, 0.12);
}

.site-header + main,
.site-header + .page-hero {
    padding-top: 118px;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 1.8vw, 28px);
}

.mobile-login-btn {
    display: none !important;
    min-width: 110px;
    padding: 12px 16px;
}

@media (max-width: 860px) {
    .mobile-login-btn {
        display: inline-flex !important;
    }
}

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

/* Desktop-friendly form / payment panel adjustments */
@media (min-width: 900px) {
    .form-shell,
    .trust-deposit-card,
    .trust-deposit-body,
    .payment-record-item,
    .crypto-method-card,
    .client-history-row {
        padding: 22px 26px !important;
        border-radius: 16px !important;
    }

    /* Ensure content does not sit under the fixed header + ticker: use header(183) + ticker(47) */
    body.about-page main {
        padding-top: 235px !important;
    }

    .trust-deposit-card {
        min-height: 220px;
    }

    .trust-deposit-body {
        padding: 26px !important;
    }

    .field {
        margin-bottom: 18px;
    }

    .trust-amount-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .trust-amount-wrap .input,
    .input,
    .select,
    .textarea {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 0.98rem;
        border-radius: 10px;
    }

    .trust-cur-tag {
        background: rgba(255,255,255,0.03);
        padding: 8px 10px;
        border-radius: 10px;
        font-weight: 700;
        color: var(--muted);
        font-size: 0.9rem;
    }

    .cp-modal-shell {
        width: min(960px, 94vw) !important;
        max-width: 960px !important;
    }

    .cp-modal-body {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 20px;
        padding: 20px;
    }

    .cp-addr-box,
    .cp-copy-box,
    .cp-bank-details-grid .cp-addr-box {
        padding: 18px;
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .cp-amount-note {
        font-size: 1.02rem;
    }

    .cp-copy-box .cp-copy-btn,
    .cp-copy-btn {
        min-height: 40px;
        padding: 8px 12px;
    }

    .cp-submit-button,
    .btn {
        min-height: 46px;
        padding: 12px 18px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .trust-deposit-actions {
        margin-top: 18px;
    }

    /* Give deposit selector more breathing room */
    #payment-method-selector-panel {
        padding: 18px 22px;
    }

    body.client-payments-page .payment-page-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
        gap: 28px;
    }

    body.client-payments-page #payment-method-selector-panel {
        max-width: 100%;
    }

    body.client-payments-page .trust-deposit-card {
        width: 100%;
        min-height: 0;
    }

    body.client-payments-page .trust-deposit-body {
        padding: 30px 30px 28px !important;
    }

    body.client-payments-page .trust-deposit-body #crypto-form-panel,
    body.client-payments-page .trust-deposit-body #bank-form-panel {
        display: grid;
        gap: 18px;
    }

    body.client-payments-page .trust-deposit-body .field {
        margin-bottom: 0;
    }

    body.client-payments-page .trust-deposit-body .select,
    body.client-payments-page .trust-deposit-body .input:not(.trust-amount-input),
    body.client-payments-page .trust-deposit-body .textarea {
        min-height: 52px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    body.client-payments-page .trust-deposit-body .cp-file-zone {
        min-height: 92px;
        padding: 16px 18px;
        border-radius: 18px;
        gap: 12px;
        align-items: center;
        background: rgba(7, 12, 22, 0.88);
        border-color: rgba(140, 165, 209, 0.2);
    }

    body.client-payments-page .trust-deposit-body .cp-file-zone-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    body.client-payments-page .trust-deposit-body .cp-file-zone strong {
        font-size: 0.98rem;
    }

    body.client-payments-page .trust-deposit-body .cp-file-zone span:last-child {
        font-size: 0.78rem;
    }

    body.client-payments-page .trust-amount-wrap {
        gap: 10px;
    }

    body.client-payments-page .trust-amount-wrap .input {
        flex: 1 1 auto;
    }

    body.client-payments-page .trust-amount-wrap .trust-cur-tag {
        min-width: 64px;
        text-align: center;
    }

    body.client-payments-page .cp-modal-shell.trust-style {
        width: min(1080px, 94vw) !important;
        max-width: 1080px !important;
    }
}

/* Case result modal (public track-case) */
.case-result-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1500;
}
.case-result-modal.open {
    display: flex;
}
.case-result-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6,10,16,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.case-result-dialog {
    position: relative;
    width: min(960px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
}
.case-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--card-border);
}
.case-result-body {
    padding: 20px 24px;
    overflow: auto;
    min-height: 88px;
}

/* Ensure text inside the tracking modal wraps and isn't clipped */
.case-track-body p.card-copy {
    margin-bottom: 12px;
    line-height: 1.45;
    word-break: break-word;
}
.case-result-close,
.case-track-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(59, 157, 232, 0.18), rgba(219, 168, 77, 0.16)), rgba(14, 23, 40, 0.95);
    border: 1px solid rgba(119, 199, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-logo-image {
    display: block;
    object-fit: contain;
    padding: 6px;
}

.brand-logo-only {
    gap: 0;
    flex: 0 0 clamp(190px, 15vw, 265px);
    overflow: visible;
}

.brand-logo-full.brand-logo-image {
    width: clamp(205px, 19vw, 315px);
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: left center;
}

.site-header .brand-logo-full.brand-logo-image {
    transform: scale(1.28);
    transform-origin: left center;
}

.footer-brand-logo-only,
.auth-brand-logo-only {
    gap: 0;
}

.footer-brand-logo.brand-logo-image,
.auth-brand-logo.brand-logo-image {
    width: min(300px, 78vw);
    height: 110px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: center;
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.9vw, 30px);
    flex: 0 1 auto;
    justify-content: flex-start;
    margin-left: clamp(12px, 2vw, 36px);
    min-width: 0;
}

.nav-links a,
.mobile-links a {
    color: var(--muted);
    font-size: clamp(0.78rem, 0.95vw, 0.95rem);
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a.active,
.mobile-links a.active,
.nav-links a:hover,
.mobile-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 14px);
    margin-left: auto;
    flex: 0 0 auto;
}

.nav-actions .btn {
    min-width: 112px;
    padding-inline: clamp(18px, 2vw, 24px);
    white-space: nowrap;
}

.security-activity {
    width: 100vw;
    max-width: none;
    margin: 4px 0 0 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid rgba(119, 199, 255, 0.14);
    border-left: 0;
    border-right: 0;
    background:
        linear-gradient(90deg, rgba(39, 126, 225, 0.08), rgba(244, 171, 62, 0.08), rgba(92, 238, 178, 0.07)),
        rgba(8, 15, 27, 0.58);
}

.security-activity-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 8px 0;
    color: #d7ecff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: securityTicker 42s linear infinite;
}

.security-activity-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid rgba(119, 199, 255, 0.12);
    border-radius: 999px;
    background: rgba(12, 24, 43, 0.58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.security-activity-track span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 14px rgba(99, 179, 237, 0.65);
}

.security-activity-track span:nth-child(3n + 1) {
    color: #7fd0ff;
    border-color: rgba(127, 208, 255, 0.2);
}

.security-activity-track span:nth-child(3n + 1)::before {
    background: #52b2ff;
    box-shadow: 0 0 14px rgba(82, 178, 255, 0.7);
}

.security-activity-track span:nth-child(3n + 2) {
    color: #ffd27a;
    border-color: rgba(255, 210, 122, 0.2);
}

.security-activity-track span:nth-child(3n + 2)::before {
    background: #f4ab3e;
    box-shadow: 0 0 14px rgba(244, 171, 62, 0.7);
}

.security-activity-track span:nth-child(3n) {
    color: #8ff0c4;
    border-color: rgba(143, 240, 196, 0.2);
}

.security-activity-track span:nth-child(3n)::before {
    background: #5ceeb2;
    box-shadow: 0 0 14px rgba(92, 238, 178, 0.7);
}

.site-header:hover .security-activity-track {
    animation-play-state: paused;
}

body.client-app-body .client-bank-content > .security-activity {
    position: fixed;
    top: 58px;
    left: 280px;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
    z-index: 54;
}

body.client-app-body .client-bank-content > .security-activity .security-activity-track {
    padding: 8px 0;
}

@keyframes securityTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px) scale(1.01); }

.btn-primary {
    background: linear-gradient(135deg, #2588d8, #52b2ff);
    box-shadow: 0 14px 34px rgba(59, 157, 232, 0.26);
}

.btn-outline {
    background: transparent;
    border-color: rgba(119, 199, 255, 0.32);
    color: var(--accent-2);
}

.btn-ghost {
    background: rgba(18, 28, 48, 0.78);
    border-color: rgba(140, 165, 209, 0.14);
}

.menu-toggle {
    display: none;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(14, 23, 40, 0.94);
    color: #fff;
}

.hamburger-toggle {
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
    display: none;
}

.section {
    padding: 92px 0;
    position: relative;
}

.section-tight {
    padding: 70px 0;
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-home {
    min-height: calc(100vh - 120px);
    padding-top: 0;
    margin-top: -10px;
    /* image-only here; overlay applied via ::before on desktop */
    background: url("../img/operations-team.jpg") center / cover no-repeat;
    position: relative;
}

.hero-home::after,
.hero::before,
.page-hero::before {
    content: none;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(119, 199, 255, 0.4);
    box-shadow: 0 0 20px rgba(119, 199, 255, 0.4);
    animation: drift linear infinite;
}

.particle.gold {
    background: rgba(219, 168, 77, 0.32);
    box-shadow: 0 0 18px rgba(219, 168, 77, 0.3);
}

@keyframes drift {
    from { transform: translateY(0) translateX(0); opacity: 0.15; }
    50% { opacity: 0.7; }
    to { transform: translateY(-120px) translateX(24px); opacity: 0.1; }
}

.hero-grid,
.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-home .hero-grid {
    grid-template-columns: minmax(0, 0.78fr);
    min-height: calc(100vh - 150px);
        align-content: start;
        padding-top: 28px;
    min-height: 56vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title,
.page-title {
    margin: 0 0 18px;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 700;
}

@media (min-width: 1080px) {
    .hero-title {
        font-size: clamp(2.75rem, 4vw, 3.25rem);
    }
}

.page-title {
    font-size: clamp(2.05rem, 4.2vw, 3.35rem);
}

.hero-title .reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-title .reveal span {
    display: inline-block;
    transform: translateY(110%);
    animation: wordUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-title .reveal:nth-child(2) span { animation-delay: 0.15s; }
.hero-title .reveal:nth-child(3) span { animation-delay: 0.3s; }

.hero-title-mobile {
    display: none;
}

@keyframes wordUp {
    to { transform: translateY(0); }
}

.hero-subtitle,
.page-subtitle,
.section-intro,
.card-copy,
.faq-answer,
.footer-copy {
    color: var(--muted);
    line-height: 1.75;
}

.hero-home .hero-subtitle {
    color: #ffffff;
}

.hero-subtitle,
.page-subtitle {
    font-size: clamp(0.98rem, 1.25vw, 1.06rem);
    max-width: 660px;
    margin: 0 0 28px;
}

.section-title {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #d6e8ff;
    font-size: 0.94rem;
    font-weight: 600;
}

.trust-badges span,
.kicker-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(17, 28, 49, 0.86);
    border: 1px solid rgba(140, 165, 209, 0.12);
}

.hero-panel,
.info-panel,
.step-card,
.case-card,
.testimonial,
.mock-card,
.faq-item,
.detail-card,
.cta-box,
.form-shell {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.hero-panel::before,
.info-panel::before,
.step-card::before,
.case-card::before,
.testimonial::before,
.mock-card::before,
.faq-item::before,
.detail-card::before,
.cta-box::before,
.form-shell::before,
.toolbar-card::before,
.operate-card::before,
.case-type-card::before,
.case-help-panel::before,
.legal-card::before,
.client-case-item::before,
.client-doc-item::before,
.payment-record-item::before,
.crypto-method-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-line);
    opacity: 0.9;
    pointer-events: none;
}

.hero-panel,
.info-panel,
.mock-card,
.cta-box,
.form-shell {
    padding: 28px;
}

.site-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(140, 165, 209, 0.14);
    background: rgba(8, 14, 26, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.site-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.04) brightness(0.76);
}

.site-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 28%, rgba(4, 11, 21, 0.82) 100%),
        linear-gradient(90deg, rgba(4, 11, 21, 0.38), transparent 52%);
    pointer-events: none;
}

.site-visual figcaption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.site-visual figcaption span {
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-visual figcaption strong {
    color: #f4f8ff;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.3;
    max-width: 520px;
}

.hero-visual img {
    min-height: 500px;
}

.hero-home .hero-visual {
    display: block;
}

.about-brief-visual {
    padding: 0;
}

.about-brief-visual img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02) brightness(0.86);
}

.about-brief-visual > :not(img) {
    margin-left: 30px;
    margin-right: 30px;
}

.about-brief-visual .mini-label {
    margin-top: 26px;
}

.about-brief-visual .text-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #8fe0ff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.case-type-visual,
.process-visual-row {
    margin-bottom: 24px;
}

.case-type-visual img {
    min-height: 360px;
}

.process-visual img {
    min-height: 360px;
}

.contact-visual {
    margin: -28px -28px 24px;
    border-width: 0 0 1px;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: none;
}

.contact-visual img {
    min-height: 220px;
    max-height: 260px;
}

.mini-panel,
.detail-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.mini-label,
.card-kicker {
    color: var(--accent-2);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.mini-value,
.mock-amount,
.stat-number {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.mini-value { font-size: 1.5rem; }

.status-pill,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(219, 168, 77, 0.12);
    border: 1px solid rgba(219, 168, 77, 0.26);
    color: #f6d288;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

body.client-payments-page .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

.steps-grid,
.case-grid,
.stats-grid,
.testimonials-grid,
.detail-grid,
.feature-grid,
.form-grid {
    display: grid;
    gap: 18px;
}

.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-dashboard-grid { grid-template-columns: 0.92fr 1.08fr; }

.steps-wrap {
    position: relative;
}

.toolbar-card,
.client-case-item,
.client-doc-item,
.timeline-item,
.client-case-list,
.client-doc-list,
.timeline-list,
.toolbar-actions,
.client-stat-grid,
.client-dashboard-grid {
    display: grid;
    gap: 18px;
}

.toolbar-card {
    grid-template-columns: 1.2fr auto;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.toolbar-actions {
    grid-auto-flow: column;
    gap: 12px;
    align-items: center;
}

.client-case-item,
.client-doc-item,
.timeline-item {
    padding: 18px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.client-case-item.active {
    border-color: rgba(119, 199, 255, 0.36);
    box-shadow: 0 18px 44px rgba(59, 157, 232, 0.14);
}

.client-case-top,
.client-doc-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.timeline-item {
    grid-template-columns: 16px 1fr;
    align-items: start;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    box-shadow: 0 0 0 5px rgba(59, 157, 232, 0.08);
}

.step-line {
    position: absolute;
    top: 62px;
    left: calc(25% + 16px);
    right: calc(25% + 16px);
    height: 1px;
    background: linear-gradient(90deg, rgba(119, 199, 255, 0.2), rgba(219, 168, 77, 0.18));
    z-index: 0;
}

.step-card,
.case-card,
.testimonial,
.faq-item,
.detail-card {
    padding: 26px;
    position: relative;
    z-index: 1;
}

.step-num,
.case-icon,
.faq-icon,
.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(59, 157, 232, 0.14);
    border: 1px solid rgba(119, 199, 255, 0.22);
    color: var(--accent-2);
    font-weight: 700;
}

.case-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #d8ecff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(59, 157, 232, 0.14);
    border: 1px solid rgba(119, 199, 255, 0.22);
    color: #d8ecff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.why-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(59, 157, 232, 0.12);
    border: 1px solid rgba(119, 199, 255, 0.18);
    color: #d8ecff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.card-title {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.card-copy {
    font-size: 0.9rem;
    line-height: 1.62;
}

.case-card:hover,
.detail-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-strong);
    box-shadow: 0 22px 46px rgba(59, 157, 232, 0.1);
}

.stats-band {
    background: linear-gradient(180deg, rgba(11, 19, 34, 0.88), rgba(8, 14, 26, 0.94));
    border-top: 1px solid rgba(140, 165, 209, 0.1);
    border-bottom: 1px solid rgba(140, 165, 209, 0.1);
}

.stat-box {
    text-align: center;
    padding: 18px;
}

.stat-number {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    letter-spacing: -0.01em;
    color: var(--accent-2);
}

.stat-text { color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 0.18em; margin-bottom: 14px; font-size: 0.95rem; }

.rating-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #f6d288;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rating-mark::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(246, 210, 136, 0.1));
}
.quote { margin: 0 0 18px; color: #dbe7ff; line-height: 1.8; font-size: 0.97rem; }

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

.testimonial-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: var(--gold-soft);
    border: 1px solid rgba(219, 168, 77, 0.2);
    color: #f2ca84;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.why-list { display: grid; gap: 16px; }

.why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(16, 25, 42, 0.68);
    border: 1px solid rgba(140, 165, 209, 0.1);
}

.why-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.why-item p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.94rem; }

.mock-card {
    position: relative;
    overflow: hidden;
}

.mock-card::after {
    content: "";
    position: absolute;
    inset: auto auto -65px -65px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 157, 232, 0.18), transparent 70%);
}

.mock-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.mock-kicker {
    color: var(--accent-2);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.mock-amount {
    font-size: 1.65rem;
    color: var(--gold);
}

.mock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(59, 157, 232, 0.12);
    border: 1px solid rgba(119, 199, 255, 0.16);
    color: var(--accent-2);
    font-size: 0.86rem;
    font-weight: 700;
}

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

.faq-item { overflow: hidden; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.faq-question span:first-child {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.faq-icon {
    margin-bottom: 0;
    width: 34px;
    height: 34px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
    opacity: 0;
    margin-top: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    max-height: 260px;
    opacity: 1;
    margin-top: 16px;
}

.faq-item.active .faq-icon {
    background: rgba(219, 168, 77, 0.12);
    color: #f2ca84;
}

.cta-band { padding: 56px 0; }

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(24, 75, 124, 0.98), rgba(10, 25, 47, 0.98));
}

.cta-box p {
    max-width: 720px;
    margin: 14px auto 26px;
    color: #d3e7ff;
    line-height: 1.7;
}

.site-footer {
    padding: 46px 0 24px;
    border-top: 1px solid rgba(140, 165, 209, 0.1);
    background: rgba(6, 11, 20, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
}

.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.94rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; max-width: 280px; }
.footer-brand { margin-bottom: 12px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(140, 165, 209, 0.1);
    color: var(--muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(20, 31, 52, 0.86);
    border: 1px solid rgba(140, 165, 209, 0.14);
    color: #dcecff;
}

.socials a:hover {
    background: rgba(59, 157, 232, 0.16);
    box-shadow: 0 10px 22px rgba(59, 157, 232, 0.14);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 0.92rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.hero-scroll span:last-child { animation: bounce 1.4s ease-in-out infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

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

.list-clean li {
    padding-left: 24px;
    position: relative;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.9rem;
}

.list-clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.1);
}

.form-shell {
    max-width: 960px;
}

/* Submit page specific overrides to ensure the wizard panels
   occupy the full form column and do not leave empty space */
.submit-page .form-shell {
    max-width: none;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.submit-page .public-case-step {
    background: rgba(7, 13, 24, 0.96);
    border: 1px solid rgba(119, 199, 255, 0.12);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 14px;
}

.submit-page .public-case-step:last-child {
    margin-bottom: 0;
}

.submit-page .public-case-wizard .public-case-step.active {
    grid-column: 1 / -1;
    width: 100%;
}

.submit-page .public-case-step .field {
    min-width: 0;
}

.field,
.field-full {
    display: grid;
    gap: 14px;
    grid-column: 1 / -1;
}

.field-note {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.submit-page .input,
.submit-page .select,
.submit-page .textarea,
.submit-page .note-input {
    color: #eef5ff;
    background: rgba(10, 18, 35, 0.92);
    border: 1px solid rgba(119, 199, 255, 0.16);
    border-radius: 14px;
    font: inherit;
    outline: none;
}

.submit-page .input::placeholder,
.submit-page .textarea::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(119, 199, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(59, 157, 232, 0.14);
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(119, 199, 255, 0.18);
    background: rgba(59, 157, 232, 0.08);
    color: #d4ecff;
    margin-bottom: 20px;
}

.stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-inline .kicker-chip {
    color: #d6e8ff;
}

.fade-in,
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible,
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-home .container {
    position: relative;
    z-index: 1;
}

/* Ensure hero content sits above overlay */
.hero-home .container { z-index: 2; }

.page-hero-simple {
    min-height: 48vh;
}

.page-hero-copy {
    max-width: 760px;
}

.about-page .page-hero-simple,
.case-types-page .page-hero-simple,
.process-page .page-hero-simple,
.contact-page .page-hero-simple,
.faq-page .page-hero-simple,
.submit-page .page-hero-simple,
.legal-page .page-hero-simple {
    min-height: 42vh;
}

.contact-page .form-shell {
    padding: 14px;
}

.contact-page .form-shell .field,
.contact-page .form-shell .field-full {
    margin-bottom: 7px;
}

.contact-page .form-shell .field label,
.contact-page .form-shell .field-full label {
    font-size: 0.74rem;
    margin-bottom: 3px;
}

.contact-page .form-shell .input,
.contact-page .form-shell .select,
.contact-page .form-shell .textarea,
.contact-page .form-shell .note-input {
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 0.8rem;
    background: rgba(8, 14, 25, 0.96) !important;
    color: #eef5ff;
    border: 1px solid rgba(119, 199, 255, 0.16);
}

.contact-page .form-shell .textarea,
.contact-page .form-shell .note-input {
    min-height: 80px;
}

.contact-page .form-shell .btn {
    min-height: 38px;
    padding: 7px 10px;
}

body.case-types-page .site-header + .page-hero,
body.case-types-page .page-hero {
    padding-top: 90px !important;
    padding-bottom: 10px !important;
}

body.case-types-page .page-hero-simple {
    min-height: 0 !important;
}

body.case-types-page .page-hero-simple .container {
    padding-top: 8px !important;
}

.text-link {
    color: var(--accent-2);
    font-weight: 700;
}

.process-stack,
.detailed-case-grid,
.faq-columns,
.submit-grid,
.stack {
    display: grid;
    gap: 20px;
}

.operate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.operate-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.operate-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(119, 199, 255, 0.13);
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
}

.operate-card .card-title,
.operate-card .card-copy {
    position: relative;
    z-index: 1;
}

.operate-card .card-copy {
    max-width: 320px;
}

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

.about-metrics div,
.about-brief,
.case-type-card,
.case-help-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.about-metrics div {
    padding: 18px;
    border-radius: 14px;
}

.about-metrics strong {
    display: block;
    margin-bottom: 6px;
    color: #eaf4ff;
    font-family: var(--font-head);
    font-size: 1.45rem;
}

.about-metrics span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.about-brief {
    align-self: center;
    padding: 30px;
    border-radius: var(--radius);
}

.about-page .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-page .testimonials-grid .detail-card {
    text-align: center;
}

.case-type-intro {
    display: grid;
    gap: 8px;
    align-items: end;
    margin-bottom: 18px;
}

.case-type-heading {
    display: grid;
    gap: 4px;
}

.case-type-subtitle {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #f4f8ff;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.case-type-intro .section-intro {
    margin: 0;
}

.case-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.case-type-card {
    position: relative;
    min-height: 310px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius);
}

.case-type-card::after {
    content: attr(data-case);
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(119, 199, 255, 0.1);
    font-family: var(--font-head);
    font-size: 4.2rem;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}

.case-type-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.case-type-head .case-icon {
    margin-bottom: 0;
}

.case-type-card .card-copy {
    margin: 0;
}

.case-type-card > * {
    position: relative;
    z-index: 1;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.case-tags span {
    padding: 8px 10px;
    border-radius: 999px;
    color: #d6e8ff;
    background: rgba(59, 157, 232, 0.1);
    border: 1px solid rgba(119, 199, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 700;
}

body.case-types-page .case-tags {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

body.case-types-page .case-tags span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.82rem;
    line-height: 1.42;
    font-weight: 600;
    color: var(--muted);
}

body.case-types-page .case-tags span::before {
    content: "•";
    color: var(--accent-2);
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    margin-top: 1px;
}

.case-help-panel {
    margin-top: 26px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    border-radius: var(--radius);
}

.case-help-panel .hero-actions {
    margin: 0;
    justify-content: flex-end;
}

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

.credibility-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.credibility-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-line);
}

.credibility-card .card-copy {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 24px;
    align-items: start;
}

.contact-page .stack {
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-page .detail-card {
    min-height: 150px;
}

.submit-page .form-shell {
    max-width: none;
}

.intake-card {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(16, 25, 42, 0.9), rgba(10, 16, 28, 0.96)),
        radial-gradient(circle at 82% 10%, rgba(214, 158, 46, 0.12), transparent 34%);
}

.process-page .process-stack {
    gap: 16px;
}

.process-page .process-card {
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

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

.faq-page .case-help-panel {
    margin-top: 28px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.legal-card {
    min-height: 220px;
    padding: 26px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.legal-card .card-copy {
    margin-bottom: 0;
}

.client-app-body {
    background:
        radial-gradient(circle at 14% 10%, rgba(59, 157, 232, 0.18), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(214, 158, 46, 0.08), transparent 18%),
        linear-gradient(180deg, #08101d 0%, #09121f 45%, #0b1322 100%);
    color: var(--text);
}

.client-bank-shell {
    min-height: 100vh;
    background: transparent;
}

.client-bank-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 157, 232, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(8, 14, 24, 0.99));
    border-right: 1px solid rgba(140, 165, 209, 0.1);
    z-index: 60;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 48px rgba(0, 0, 0, 0.22);
}

.client-bank-sidebar-head {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(140, 165, 209, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.client-bank-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
}

.client-bank-sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.client-bank-brand > div {
    min-width: 0;
}

.client-bank-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 157, 232, 0.28), rgba(214, 158, 46, 0.14)), rgba(14, 23, 40, 0.96);
    border: 1px solid rgba(119, 199, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 22px rgba(59,157,232,0.12);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.client-bank-brand-mark.brand-logo-image {
    display: block;
    object-fit: contain;
    padding: 5px;
}

.client-bank-brand-logo-only {
    gap: 0;
    width: 100%;
}

.client-bank-brand-logo.brand-logo-image {
    width: min(240px, 100%);
    height: 82px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: left center;
}

.client-bank-brand-name {
    font-size: 1.05rem;
    line-height: 1.08;
    font-weight: 700;
    color: #f8fbff;
    overflow-wrap: anywhere;
}

.client-verification-page .toolbar-card {
    align-items: center;
}

.kyc-form {
    max-width: none;
}

.kyc-upload-grid {
    display: grid;
    gap: 14px;
    margin: 20px 0 16px;
}

.kyc-upload-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto minmax(150px, 0.45fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(140, 165, 209, 0.12);
    background: rgba(8, 14, 25, 0.7);
}

.kyc-upload-row .case-icon {
    margin-bottom: 0;
}

.kyc-upload-copy {
    display: grid;
    gap: 6px;
}

.kyc-upload-copy strong {
    color: #f5f9ff;
}

.kyc-upload-copy span:not(.badge) {
    color: #89a1bc;
    font-size: 0.88rem;
}

.kyc-file-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(99, 179, 237, 0.26);
    background: rgba(59, 157, 232, 0.1);
    color: #d8ecff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.kyc-file-control input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.kyc-file-name {
    min-width: 0;
    color: #89a1bc;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kyc-file-name.has-file {
    color: #84f5b7;
}

.kyc-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.kyc-submit-row .btn {
    min-width: 260px;
}

.support-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(99, 179, 237, 0.18);
    background: rgba(7, 12, 22, 0.72);
    color: #d8ecff;
    font-size: 0.86rem;
}

.support-attachment small {
    color: var(--muted);
    white-space: nowrap;
}

.support-chat-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(320px, 56vh) auto;
    overflow: visible;
    border: 1px solid rgba(119, 199, 255, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(78, 169, 255, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(14, 25, 45, 0.96), rgba(7, 14, 27, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.case-track-dialog.support-chat-shell {
    overflow: visible;
}

.support-chat-shell > .case-track-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    margin: 0;
}

.support-chat-mobile-close {
    display: none;
}

.case-track-dialog.support-chat-shell {
    position: relative;
    width: min(100%, 580px);
    max-height: 88vh;
    overflow: visible;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(78, 169, 255, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(14, 25, 45, 0.96), rgba(7, 14, 27, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.support-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid rgba(119, 199, 255, 0.1);
}

.support-header-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.support-header-meta {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.support-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.support-avatar svg {
    display: block;
    width: 16px;
    height: 16px;
    color: inherit;
}

.support-case-compact {
    color: rgba(235, 245, 255, 0.72);
    font-size: 0.82rem;
}

.support-chat-head h1 {
    margin: 4px 0;
    color: var(--text);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    line-height: 1.05;
}

.support-chat-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.support-case-switch {
    width: min(100%, 360px);
    min-width: 140px;
    position: relative;
    z-index: 2;
}

.support-case-switch select {
    width: 100%;
    min-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(119, 199, 255, 0.14);
    background: rgba(9, 15, 27, 0.82);
    color: #f5f9ff;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 5;
}

.support-case-switch select:focus {
    outline: 1px solid rgba(82, 178, 255, 0.9);
    outline-offset: 1px;
}

.support-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(82, 178, 255, 0.45) rgba(8, 15, 27, 0.6);
}

.support-chat-message {
    display: flex;
}

.support-chat-message.is-client {
    justify-content: flex-end;
}

.support-chat-message.is-support {
    justify-content: flex-start;
}

.support-chat-bubble {
    width: fit-content;
    max-width: min(76%, 620px);
    padding: 12px 13px;
    border: 1px solid rgba(119, 199, 255, 0.13);
    border-radius: 18px;
    background: rgba(13, 24, 43, 0.9);
}

.support-chat-message.is-client .support-chat-bubble {
    border-color: rgba(82, 178, 255, 0.24);
    background: linear-gradient(135deg, rgba(33, 111, 197, 0.92), rgba(25, 72, 139, 0.9));
}

.support-chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.support-chat-meta strong {
    color: var(--text);
    font-size: 0.78rem;
}

.support-chat-meta span {
    color: rgba(205, 224, 255, 0.68);
    font-size: 0.64rem;
    white-space: nowrap;
}

.support-chat-bubble p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.support-chat-message.is-client .support-chat-bubble p {
    color: rgba(245, 250, 255, 0.92);
}

.support-chat-attachment {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(119, 199, 255, 0.14);
    border-radius: 12px;
    color: var(--accent);
    text-decoration: none;
    background: rgba(3, 9, 19, 0.24);
}

.support-chat-attachment span,
.support-chat-attachment small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-chat-attachment small {
    color: rgba(205, 224, 255, 0.64);
    font-size: 0.66rem;
}

.support-chat-empty {
    margin: auto;
    display: grid;
    gap: 6px;
    max-width: 320px;
    text-align: center;
    color: var(--text-muted);
}

.support-chat-empty strong {
    color: var(--text);
}

.support-chat-composer {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(119, 199, 255, 0.1);
    background: rgba(5, 11, 22, 0.72);
    position: relative;
    z-index: 2;
}

.support-chat-composer .textarea {
    min-height: 74px;
    resize: vertical;
    width: 100%;
}

.support-chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.support-chat-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(119, 199, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    font-weight: 800;
    font-size: 0.82rem;
    background: rgba(17, 28, 49, 0.74);
    cursor: pointer;
}

.support-chat-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.support-chat-actions .btn {
    min-width: 132px;
}

.support-chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1605;
    pointer-events: auto;
    transform: translateZ(0);
}

.support-chat-button {
    width: 52px;
    height: 52px;
    position: relative;
    z-index: 1606;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #2d6fd3, #1e4fb0);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(32, 88, 201, 0.28);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}

.support-chat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-chat-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.support-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 62px rgba(32, 88, 201, 0.42);
}

.support-chat-button.alive {
    animation: chat-button-bob 3s ease-in-out infinite;
}

.support-chat-button.alive::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(94,152,255,0.18), transparent 40%);
    filter: blur(8px);
    z-index: -1;
    animation: chat-button-pulse 1.8s ease-out infinite;
}

@keyframes chat-button-bob {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes chat-button-pulse {
    0% { transform: scale(0.9); opacity: 0.85; }
    70% { transform: scale(1.18); opacity: 0.18; }
    100% { transform: scale(1.28); opacity: 0; }
}

.support-chat-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff4d5e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 6px;
    box-shadow: 0 8px 20px rgba(255, 77, 94, 0.34);
}

.support-chat-badge.pulse {
    animation: badge-pulse 1.6s infinite ease-in-out;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

@media (max-width: 700px) {
    .support-chat-shell {
        grid-template-rows: auto minmax(90px, 1fr) auto;
        border-radius: 18px;
        margin-top: 4px;
        max-height: calc(100vh - 140px);
        height: auto;
    }

    .case-track-modal {
        padding: 4px;
    }

    .case-track-dialog.support-chat-shell {
        width: min(100%, 96vw);
        max-height: calc(100vh - 140px);
        height: auto;
    }

    .support-chat-head {
        display: grid;
        gap: 6px;
        padding: 10px 10px 6px;
    }

    .support-chat-head h1 {
        font-size: 1rem;
        margin-top: 0;
    }

    .support-header-compact {
        gap: 12px;
    }

    .support-avatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .support-chat-shell > .case-track-close {
        display: none;
    }

    .support-chat-mobile-close {
        display: inline-flex !important;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 4;
        width: 38px;
        height: 38px;
        margin: 0;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        font-size: 1.2rem;
        line-height: 1;
    }

    .support-chat-head p {
        font-size: 0.66rem;
        line-height: 1.2;
    }

    .support-case-switch {
        width: 100%;
    }

    .support-chat-thread {
        gap: 8px;
        padding: 0 12px 12px;
    }

    .support-chat-bubble {
        max-width: 88%;
        padding: 8px;
        border-radius: 14px;
    }

    .support-chat-meta {
        gap: 6px;
        margin-bottom: 4px;
    }

    .support-chat-meta strong {
        font-size: 0.7rem;
    }

    .support-chat-meta span {
        font-size: 0.55rem;
    }

    .support-chat-bubble p {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .support-chat-composer {
        padding: 10px;
        gap: 8px;
    }

    .support-chat-composer .textarea {
        min-height: 58px;
        font-size: 0.74rem;
    }

    .support-chat-actions {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .support-chat-file {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.7rem;
        border-radius: 12px;
    }

    .support-chat-actions .btn {
        min-width: 88px;
        min-height: 36px;
        font-size: 0.72rem;
    }
}

.client-bank-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a8fa8;
    margin-top: 2px;
}

.client-bank-sidebar-body {
    padding: 16px 14px 22px;
    overflow-y: auto;
}

.client-bank-balance-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(3, 61, 117, 0.98) 0%, rgba(15, 92, 168, 0.96) 60%, rgba(21, 104, 192, 0.92) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(3, 61, 117, 0.22);
    margin-bottom: 18px;
}

.client-bank-balance-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -48px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    pointer-events: none;
}

.client-bank-balance-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
}

.client-bank-balance-amount {
    font-size: 1.5rem;
    line-height: 1.05;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.client-bank-balance-amount small {
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    opacity: 0.72;
}

.client-bank-balance-sub {
    margin-top: 4px;
    font-size: 0.82rem;
    opacity: 0.72;
}

.client-bank-balance-data {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.client-bank-balance-data li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.client-bank-balance-data strong {
    font-size: 0.82rem;
    font-weight: 700;
}

.client-bank-balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.client-bank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.client-bank-action.primary {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.client-bank-action.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.client-bank-mobile-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(140, 165, 209, 0.12);
    margin-bottom: 18px;
}

.client-bank-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-bank-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #033d75, #0f5ca8);
    font-size: 0.78rem;
    font-weight: 700;
}

.client-bank-user-avatar.large {
    width: 44px;
    height: 44px;
    font-size: 0.92rem;
}

.client-bank-mobile-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f4f8ff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.client-bank-mobile-account {
    font-size: 0.78rem;
    color: #8ea4c2;
}

.client-bank-menu-heading {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7288a3;
    margin: 4px 4px 8px;
    font-weight: 700;
}

.client-bank-nav {
    display: grid;
    gap: 2px;
}

.client-bank-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 0;
    color: #9bb1cb;
    font-size: 0.87rem;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

@media (max-width: 860px) {
    .client-bank-nav-link {
        padding: 12px 10px;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
        min-height: 46px;
        color: #c9d8e9;
        font-size: 0.92rem;
    }

    .client-bank-nav-link.active {
        background: rgba(99, 179, 237, 0.08);
        color: #fff;
        box-shadow: inset 3px 0 0 rgba(99, 179, 237, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    }

    .client-bank-nav-link:hover,
    .client-bank-nav-link.active:hover {
        background: rgba(99, 179, 237, 0.14);
        color: #fff;
    }

    .client-bank-nav-link .client-bank-nav-icon {
        background: rgba(99, 179, 237, 0.10);
        border-color: rgba(99, 179, 237, 0.14);
    }
}

.client-bank-nav-link.active {
    background: linear-gradient(90deg, rgba(59, 157, 232, 0.12), rgba(59, 157, 232, 0.02));
    color: #fff;
    border-left-color: rgba(99, 179, 237, 0.9);
    padding-left: 12px;
}

.client-bank-nav-link:hover {
    background: rgba(59, 157, 232, 0.06);
    color: #f7fbff;
    padding-left: 12px;
}

.client-bank-nav-link.active:hover {
    background: rgba(59, 157, 232, 0.12);
    color: #fff;
}

.client-bank-nav-signout {
    color: #ff5c5c;
    background: transparent;
}

.client-bank-nav-signout:hover {
    background: rgba(255, 92, 92, 0.08);
    color: #fff;
}

.client-bank-nav-signout .client-bank-nav-icon {
    background: rgba(255, 92, 92, 0.12);
    border-color: rgba(255, 92, 92, 0.18);
    color: #ff5c5c;
}

.client-bank-nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(99, 179, 237, 0.06);
    border: 1px solid rgba(99, 179, 237, 0.12);
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
}

.client-bank-main {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.client-bank-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 280px;
    height: 64px;
    padding: 0 24px;
    background: rgba(9, 16, 29, 0.78);
    border-bottom: 1px solid rgba(140, 165, 209, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 55;
    backdrop-filter: blur(10px);
}

.client-bank-header-left,
.client-bank-header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-bank-menu-toggle {
    display: none;
    width: 42px;
    min-width: 42px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(140, 165, 209, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e8edf5;
}

.client-bank-page-head strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #f4f8ff;
}

.client-bank-page-head span {
    display: block;
    font-size: 0.72rem;
    color: #7f94ad;
}

.client-bank-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-bank-user-meta {
    text-align: left;
}

.client-bank-user-status {
    font-size: 0.68rem;
    color: #16a34a;
    font-weight: 700;
}

.client-bank-user-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f4f8ff;
}

.client-bank-content {
    width: min(1360px, calc(100vw - 320px));
    margin: 0 auto;
    padding: 130px 26px 34px;
    position: relative;
    z-index: 1;
}

.client-app-body .toolbar-card {
    background: linear-gradient(135deg, rgba(15, 24, 41, 0.82), rgba(8, 14, 25, 0.58));
    border: 1px solid rgba(140, 165, 209, 0.1);
    box-shadow: var(--card-shadow);
    padding: 20px;
    border-radius: 20px;
    grid-template-columns: 1fr auto;
}

.client-app-body .client-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-dashboard-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.client-case-wizard {
    display: grid;
    gap: 22px;
}

.client-case-step {
    display: none;
}

.client-case-step.active {
    display: grid;
    gap: 18px;
}

.client-case-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.client-case-progress {
    margin-bottom: 22px;
}

.client-case-progress span.done {
    color: #d8e8ff;
    border-color: rgba(99, 179, 237, 0.3);
    background: rgba(59, 157, 232, 0.1);
}

.client-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.client-review-card {
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.client-review-card::before,
.client-home-action-card::before,
.client-home-highlight::before,
.trust-wallet-card::before,
.trust-deposit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-line);
    opacity: 0.9;
    pointer-events: none;
}

.client-review-card-wide {
    grid-column: 1 / -1;
}

.client-review-list {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
}

.client-review-list div {
    display: grid;
    gap: 4px;
}

.client-review-list dt {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f94ad;
}

.client-review-list dd,
.client-review-copy {
    margin: 0;
    color: #f4f8ff;
    font-weight: 600;
    line-height: 1.6;
}

.client-review-consent {
    display: grid;
    gap: 10px;
}

.client-home-actions {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.client-home-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.client-home-action-card strong {
    color: #f5f9ff;
    font-size: 0.98rem;
}

.client-home-action-card span {
    color: #8fa4bd;
    font-size: 0.84rem;
    text-align: right;
}

.client-home-highlight {
    margin-top: 18px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.client-app-body .eyebrow {
    color: #63b3ed;
    margin-bottom: 10px;
}

.client-app-body .section-title,
.client-app-body .card-title,
.client-app-body .mini-label,
.client-app-body .payment-summary-row strong,
.client-app-body .trust-wallet-label,
.client-app-body .cp-file-preview-name {
    color: #f5f9ff;
}

.client-app-body .mini-label,
.client-app-body .meta-line,
.client-app-body .card-copy,
.client-app-body .section-intro,
.client-app-body .payment-summary-row span,
.client-app-body .trust-wallet-name,
.client-app-body .trust-amount-help {
    color: #89a1bc;
}

.client-app-body .form-shell,
.client-app-body .detail-card,
.client-app-body .payment-record-item,
.client-app-body .crypto-method-card,
.client-app-body .client-case-item,
.client-app-body .client-doc-item,
.client-app-body .timeline-item,
.client-app-body .step-card,
.client-app-body .upload-tile,
.client-app-body .trust-deposit-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(10, 17, 30, 0.98));
    border: 1px solid rgba(140, 165, 209, 0.12);
    color: #f1f6ff;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
}

.client-app-body .form-shell:hover,
.client-app-body .detail-card:hover,
.client-app-body .payment-record-item:hover,
.client-app-body .crypto-method-card:hover,
.client-app-body .client-case-item:hover,
.client-app-body .client-doc-item:hover,
.client-app-body .timeline-item:hover,
.client-home-action-card:hover,
.client-home-highlight:hover {
    border-color: var(--card-border-strong);
    transform: translateY(-1px);
}

.client-app-body .stats-inline .kicker-chip,
.client-app-body .kicker-chip,
.client-app-body .pill {
    background: rgba(17, 28, 49, 0.82);
    border-color: rgba(140, 165, 209, 0.12);
    color: #d4e8ff;
}

.client-app-body .notice {
    border-color: rgba(99, 179, 237, 0.18);
    background: rgba(59, 157, 232, 0.08);
    color: #d4ecff;
}

.client-app-body .flash-notice,
.client-pin-setup-page .notice {
    width: fit-content;
    max-width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.client-dashboard-compact .flash-notice {
    margin-top: 14px !important;
    margin-bottom: 14px;
}

.client-pin-setup-page .notice {
    margin-bottom: 14px;
    text-align: center;
}

.client-dashboard-compact .client-bank-content {
    padding-top: 130px;
}

.client-dashboard-compact .toolbar-card {
    padding: 18px 22px;
    border-radius: 18px;
    max-width: 1080px;
}

.client-dashboard-compact .toolbar-card .eyebrow {
    margin-bottom: 6px;
    font-size: 0.68rem;
}

.client-dashboard-compact .section-title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: 6px !important;
}

.client-dashboard-compact .section-intro {
    font-size: 0.92rem;
    line-height: 1.45;
}

.client-dashboard-compact .form-shell {
    max-width: 880px;
    padding: 18px 22px;
    border-radius: 18px;
}

.client-dashboard-compact .client-dashboard-grid,
.client-dashboard-compact .client-dashboard-grid-single {
    gap: 14px;
}

.client-dashboard-compact .mini-label {
    font-size: 0.68rem;
    margin-bottom: 8px;
    letter-spacing: 0.13em;
}

.client-dashboard-compact .card-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.client-dashboard-compact .card-copy {
    font-size: 0.9rem;
    line-height: 1.5;
}

.client-dashboard-compact .stats-inline {
    gap: 8px;
}

.client-dashboard-compact .kicker-chip {
    padding: 7px 11px;
    font-size: 0.82rem;
}

.client-dashboard-compact .client-dashboard-grid[style],
.client-dashboard-compact .form-shell[style] {
    margin-top: 16px !important;
}

.mobile-bank-home {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.mobile-bank-welcome,
.mobile-bank-balance-card,
.mobile-bank-case-card,
.mobile-bank-next-card,
.mobile-bank-small-card,
.mobile-bank-activity,
.mobile-bank-empty {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(140, 165, 209, 0.13);
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(10, 17, 30, 0.98));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.mobile-bank-welcome {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    padding: 22px;
    border-radius: 22px;
}

.mobile-bank-welcome h1 {
    margin: 0 0 6px;
    color: #f5f9ff;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.mobile-bank-welcome p {
    margin: 0;
    color: #9db3cf;
}

.mobile-bank-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-bank-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-bank-section-head h2 {
    margin: 0;
    color: #f6f9ff;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
}

.mobile-bank-section-head.compact {
    margin-bottom: -4px;
}

.mobile-bank-section-head a {
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 800;
}

.mobile-bank-next-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    text-decoration: none;
    background:
        radial-gradient(circle at 96% 0%, rgba(82, 178, 255, 0.15), transparent 24%),
        linear-gradient(180deg, rgba(17, 29, 52, 0.96), rgba(9, 16, 29, 0.98));
}

.mobile-bank-quiet-card {
    border-style: dashed;
    background: rgba(10, 18, 34, 0.48);
    box-shadow: none;
}

.mobile-bank-next-card span {
    color: var(--accent-2);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-bank-next-card strong {
    color: #f6f9ff;
    font-size: 1rem;
    line-height: 1.2;
}

.mobile-bank-next-card small {
    color: #9db3cf;
    line-height: 1.45;
}

.mobile-bank-balance-card {
    display: grid;
    align-items: center;
    padding: 18px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 18%, rgba(82, 178, 255, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(12, 59, 128, 0.96), rgba(20, 81, 184, 0.96));
}

.mobile-bank-balance-card::after,
.mobile-bank-case-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 148px;
    height: 148px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-bank-avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.mobile-bank-balance-copy span,
.mobile-bank-mini span,
.mobile-bank-small-card span,
.mobile-bank-case-main span {
    display: block;
    color: rgba(235, 244, 255, 0.74);
    font-size: 0.78rem;
}

.mobile-bank-balance-copy strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.mobile-bank-balance-copy small,
.mobile-bank-small-card small,
.mobile-bank-activity small {
    color: rgba(226, 240, 255, 0.72);
}

.mobile-bank-mini {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(6, 20, 45, 0.28);
    border: 1px solid rgba(255,255,255,0.1);
}

.mobile-bank-balance-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    grid-column: 1 / -1;
    margin-top: 2px;
}

.mobile-bank-balance-stats .mobile-bank-mini {
    min-height: 100%;
}

.mobile-bank-mini strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 0.92rem;
}

.mobile-bank-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mobile-bank-card-grid-trim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-bank-small-card {
    display: grid;
    gap: 7px;
    min-height: 126px;
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
}

.mobile-bank-small-card strong {
    color: #f6f9ff;
    font-size: 1rem;
    line-height: 1.2;
}

.mobile-bank-case-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 12%, rgba(65, 121, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(21, 45, 98, 0.92), rgba(16, 28, 52, 0.98));
}

.mobile-bank-case-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.mobile-bank-case-main strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 1.2rem;
}

.mobile-bank-case-main small {
    display: block;
    margin-top: 4px;
    color: #9db3cf;
    font-size: 0.78rem;
}

.mobile-bank-case-amount {
    color: #6fc0ff;
    font-weight: 900;
    font-size: 1.05rem;
}

.mobile-bank-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    position: relative;
    z-index: 1;
}

.mobile-bank-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #52b2ff, #d69e2e);
}

.mobile-bank-case-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #9db3cf;
    line-height: 1.55;
}

.mobile-bank-case-step {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(6, 20, 45, 0.26);
    border: 1px solid rgba(255,255,255,0.1);
}

.mobile-bank-case-step span {
    color: var(--accent-2);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-bank-case-step strong {
    color: #fff;
    font-size: 0.88rem;
}

.mobile-bank-case-step small {
    color: #9db3cf;
    font-size: 0.72rem;
}

.mobile-bank-case-step.recovery-credit {
    border-color: rgba(73, 214, 146, 0.2);
    background: linear-gradient(135deg, rgba(73, 214, 146, 0.12), rgba(54, 168, 238, 0.08));
}

.mobile-bank-case-step.recovery-credit span {
    color: #7ee2b2;
}

.kyc-verified-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-color: rgba(73, 214, 146, 0.18);
    background:
        radial-gradient(circle at 96% 0%, rgba(73, 214, 146, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(12, 22, 40, 0.9), rgba(7, 13, 25, 0.98));
}

.kyc-reupload-panel:not([open]) {
    padding: 0 !important;
}

.kyc-reupload-panel > summary {
    color: var(--accent-2);
}

.verification-history-card .stack {
    gap: 10px;
}

.verification-history-card .client-doc-item {
    border-radius: 16px;
}

@media (max-width: 600px) {
    .client-verification-page .toolbar-card {
        padding: 12px !important;
        border-radius: 15px !important;
    }

    .client-verification-page .toolbar-card .section-title {
        font-size: clamp(1.12rem, 6.4vw, 1.5rem) !important;
        line-height: 1.05 !important;
    }

    .client-verification-page .toolbar-card .section-intro {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .kyc-verified-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .kyc-verified-card .card-title {
        font-size: 0.86rem !important;
        margin-bottom: 4px !important;
    }

    .kyc-verified-card .card-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 0.68rem !important;
        line-height: 1.32 !important;
    }

    .verification-history-card {
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .verification-history-card .stack {
        max-height: 260px;
        overflow-y: auto;
        padding-right: 2px;
    }

    .verification-history-card .client-doc-item {
        padding: 10px !important;
        border-radius: 13px !important;
    }

    .verification-history-card .client-doc-item strong {
        font-size: 0.78rem !important;
    }

    .verification-history-card .client-doc-item .card-copy {
        font-size: 0.66rem !important;
        line-height: 1.28 !important;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .kyc-upload-row {
        padding: 10px !important;
        border-radius: 13px !important;
        gap: 8px !important;
    }

    .kyc-upload-copy strong {
        font-size: 0.82rem !important;
    }

    .kyc-upload-copy span:not(.badge) {
        font-size: 0.68rem !important;
        line-height: 1.28 !important;
    }
}

.mobile-bank-activity-list {
    display: grid;
    gap: 10px;
}

.mobile-bank-activity-scroll {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 178, 255, 0.45) rgba(255,255,255,0.04);
}

.mobile-bank-activity-scroll::-webkit-scrollbar,
.client-history-scroll::-webkit-scrollbar {
    width: 6px;
}

.mobile-bank-activity-scroll::-webkit-scrollbar-track,
.client-history-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.mobile-bank-activity-scroll::-webkit-scrollbar-thumb,
.client-history-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(82, 178, 255, 0.75), rgba(214, 158, 46, 0.55));
    border-radius: 999px;
}

.mobile-bank-activity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
}

.mobile-bank-activity > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(73, 214, 146, 0.11);
    color: #7ee2b2;
    font-weight: 900;
}

.mobile-bank-activity > span.debit {
    background: rgba(255, 109, 138, 0.12);
    color: #ff9caf;
}

.mobile-bank-activity strong {
    display: block;
    color: #f6f9ff;
    line-height: 1.2;
}

.mobile-bank-activity b {
    color: #f6f9ff;
}

.mobile-bank-empty {
    padding: 16px;
    border-radius: 18px;
    color: #9db3cf;
}

.client-history-page .client-bank-content {
    padding-top: 30px;
}

.client-history-page .trust-shell-head {
    margin-top: 8px;
}

.client-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.client-history-stat,
.client-history-row,
.client-history-modal-card {
    border: 1px solid rgba(91, 178, 255, 0.16);
    background: rgba(10, 18, 34, 0.78);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.client-history-stat {
    border-radius: 18px;
    padding: 16px;
}

.client-history-stat span,
.client-history-row small,
.client-history-detail-grid span {
    color: var(--muted);
}

.client-history-stat strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.client-history-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

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

.client-history-controls .input {
    min-width: min(100%, 260px);
}

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

.client-history-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: -4px 0 12px;
    padding: 5px 10px;
    border: 1px solid rgba(91, 178, 255, 0.16);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.client-history-scroll {
    max-height: min(62vh, 620px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 178, 255, 0.45) rgba(255,255,255,0.04);
}

.client-history-row {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 14px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.client-history-row:hover {
    transform: translateY(-1px);
    border-color: rgba(91, 178, 255, 0.34);
}

.client-history-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 900;
    background: rgba(54, 168, 238, 0.14);
    color: var(--accent);
}

.client-history-icon.debit {
    background: rgba(255, 109, 138, 0.12);
    color: #ff8fa3;
}

.client-history-main strong,
.client-history-main small,
.client-history-meta {
    display: block;
}

.client-history-main small {
    margin-top: 4px;
}

.client-history-meta {
    text-align: right;
}

.client-history-meta strong {
    display: block;
    margin-top: 7px;
}

.client-history-empty {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed rgba(145, 167, 197, 0.24);
    border-radius: 18px;
    color: var(--muted);
}

.client-history-empty strong {
    color: var(--text);
}

.client-history-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 100;
    background: rgba(2, 8, 18, 0.74);
    backdrop-filter: blur(12px);
}

.client-history-modal.open {
    display: flex;
}

.client-history-modal-card {
    width: min(100%, 620px);
    position: relative;
    border-radius: 26px;
    padding: 28px;
}

.client-history-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(145, 167, 197, 0.22);
    border-radius: 999px;
    background: rgba(15, 26, 46, 0.92);
    color: var(--text);
    cursor: pointer;
}

.client-history-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.client-history-detail-grid div {
    border: 1px solid rgba(145, 167, 197, 0.16);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.client-history-detail-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
}

.pill.success {
    border-color: rgba(73, 214, 146, 0.32);
    background: rgba(73, 214, 146, 0.1);
    color: #7ee2b2;
}

.pill.danger {
    border-color: rgba(255, 109, 138, 0.32);
    background: rgba(255, 109, 138, 0.1);
    color: #ff9caf;
}

.pill.warning,
.pill.pending {
    border-color: rgba(235, 174, 49, 0.32);
    background: rgba(235, 174, 49, 0.1);
    color: #ffd27a;
}

@media (max-width: 760px) {
    .client-history-stats {
        grid-template-columns: 1fr;
    }

    .client-history-toolbar {
        display: grid;
        align-items: start;
    }

    .client-history-controls .input {
        width: 100%;
    }

    .client-history-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .client-history-meta {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .client-history-detail-grid {
        grid-template-columns: 1fr;
    }
}

.client-app-body .input,
.client-app-body .select,
.client-app-body .textarea,
.client-app-body .password-toggle,
.client-app-body .trust-cur-tag {
    background: rgba(9, 15, 27, 0.82);
    border-color: rgba(140, 165, 209, 0.16);
    color: #e8edf5;
}

.client-app-body .wallet-address-box,
.client-app-body .payment-summary-box,
.client-app-body .cp-copy-box,
.client-app-body .cp-addr-box,
.client-app-body .cp-file-preview {
    background: rgba(7, 12, 22, 0.9);
    border-color: rgba(140, 165, 209, 0.14);
    color: #d8e8ff;
}

.client-app-body .cp-copy-box-green {
    background: rgba(11, 35, 24, 0.82);
    border-color: rgba(56, 161, 105, 0.22);
}

.client-app-body .cp-copy-box-green span {
    color: #84f5b7;
}

.client-app-body .cp-modal-shell.trust-style {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.99), rgba(10, 15, 25, 0.99));
    color: #e8edf5;
}

.client-app-body .cp-modal-header {
    background: linear-gradient(135deg, #033d75, #0f5ca8);
}

.client-app-body .cp-file-zone {
    background: rgba(9, 15, 27, 0.72);
    border-color: rgba(140, 165, 209, 0.22);
}

.client-shell-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.client-shell-main {
    min-width: 0;
}

.client-sidepanel {
    align-self: start;
    position: sticky;
    top: 110px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(10, 17, 30, 0.98));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.client-sidebrand {
    margin-bottom: 22px;
}

.client-sidecard {
    padding: 18px;
    border-radius: 20px;
    background: rgba(8, 14, 24, 0.82);
    border: 1px solid rgba(140, 165, 209, 0.12);
    margin-bottom: 18px;
}

.client-side-nav {
    display: grid;
    gap: 10px;
}

.client-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(8, 14, 24, 0.5);
    border: 1px solid rgba(140, 165, 209, 0.1);
    font-weight: 700;
}

.client-side-link:hover,
.client-side-link.active {
    color: #fff;
    background: rgba(59, 157, 232, 0.14);
    border-color: rgba(99, 179, 237, 0.26);
}

.payment-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    margin-top: 28px;
}

.trust-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 24px;
    margin-top: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(10, 17, 30, 0.98));
    border: 1px solid rgba(140, 165, 209, 0.12);
    box-shadow: 0 2px 12px rgba(3, 61, 117, 0.08);
}

.trust-shell-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5f9ff;
}

.trust-shell-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #89a1bc;
}

.trust-tab-nav {
    display: flex;
    gap: 4px;
    margin: 22px 0 20px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(17, 28, 49, 0.82);
    border: 1px solid rgba(140, 165, 209, 0.12);
}

.trust-tab-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8fa6c3;
}

.trust-tab-nav a.active {
    background: rgba(59, 157, 232, 0.16);
    color: #f8fbff;
    border: 1px solid rgba(99, 179, 237, 0.22);
}

.trust-tab-nav a:hover {
    color: #f8fbff;
}

.payment-record-list,
.crypto-method-grid {
    display: grid;
    gap: 18px;
}

.trust-deposit-card {
    position: relative;
    margin-top: 18px;
    border-radius: 22px;
    border: 1px solid rgba(140, 165, 209, 0.12);
    background: rgba(9, 15, 27, 0.84);
    overflow: hidden;
}

.trust-deposit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(140, 165, 209, 0.08);
}

.trust-deposit-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.trust-deposit-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.trust-deposit-body {
    padding: 20px 22px 22px;
}

.trust-amount-wrap {
    position: relative;
}

.trust-amount-input {
    padding-right: 72px;
}

.trust-cur-tag {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(17, 28, 49, 0.92);
    border: 1px solid rgba(140, 165, 209, 0.12);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.trust-amount-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.trust-deposit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.trust-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.trust-wallet-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.trust-wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(59, 157, 232, 0.1);
    border-color: var(--card-border-strong);
}

.trust-wallet-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-wallet-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #033d75, #0f5ca8);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.trust-wallet-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.trust-wallet-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

.trust-wallet-bal {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}

.payment-record-item,
.crypto-method-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-record-item.active,
.crypto-method-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-strong);
    box-shadow: 0 18px 38px rgba(59, 157, 232, 0.1);
}

.crypto-method-top,
.payment-summary-row,
.payment-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payment-summary-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(8, 14, 24, 0.82);
    border: 1px solid rgba(140, 165, 209, 0.12);
}

.payment-summary-row span {
    color: var(--muted);
}

.payment-summary-row strong {
    font-size: 1rem;
}

.wallet-address-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(7, 12, 22, 0.86);
    border: 1px solid rgba(140, 165, 209, 0.12);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #d8e8ff;
    word-break: break-all;
}

.copy-feedback {
    color: var(--accent-2);
    font-size: 0.88rem;
    min-width: 48px;
}

.cp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(4, 11, 21, 0.76);
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}

@media (max-width: 720px) {
    .cp-modal-overlay {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }
}

.cp-modal-overlay.open {
    display: flex;
}

.cp-modal-shell {
    width: min(100%, 520px);
    height: min(92dvh, calc(100dvh - 20px));
    max-height: min(92dvh, calc(100dvh - 20px));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px;
    border: 1px solid rgba(140, 165, 209, 0.16);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 25, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

@media (max-width: 720px) {
    .cp-modal-shell {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
}

.cp-modal-shell.trust-style {
    border-radius: 20px;
    border: 1px solid rgba(140, 165, 209, 0.12);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.99), rgba(10, 15, 25, 0.99));
}

.cp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 24px 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(15, 53, 91, 0.98), rgba(37, 136, 216, 0.96));
}

.cp-modal-tag {
    color: rgba(235, 245, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.cp-modal-tag:empty {
    display: none;
}

.cp-modal-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
}

.cp-modal-sub {
    color: rgba(235, 245, 255, 0.82);
    font-size: 0.9rem;
    margin-top: 6px;
}

.cp-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.cp-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
    .cp-modal-body {
        padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
    }
}

.public-case-form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 110;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.public-case-form-modal.open {
    display: flex;
}

.public-case-form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 11, 21, 0.82);
    backdrop-filter: blur(10px);
}

.public-case-form-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 20px;
    background: #08121f;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.public-case-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(140, 165, 209, 0.12);
    background: linear-gradient(135deg, rgba(15, 53, 91, 0.98), rgba(37, 136, 216, 0.92));
}

.public-case-form-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.45rem;
    line-height: 1.2;
    color: #fff;
}

.public-case-form-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.public-case-form-frame {
    width: 100%;
    height: min(76vh, 760px);
    border: none;
    background: #fff;
}

.public-case-form-modal.open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.case-track-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1500;
}

.case-track-modal.open {
    display: flex;
}

.case-track-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 11, 21, 0.78);
    backdrop-filter: blur(10px);
}

.case-track-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(140, 165, 209, 0.16);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.99), rgba(9, 15, 27, 0.99));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

.case-track-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(140, 165, 209, 0.12);
    background: linear-gradient(135deg, rgba(15, 53, 91, 0.98), rgba(37, 136, 216, 0.92));
}

.case-track-title {
    margin: 4px 0 0;
    font-family: var(--font-head);
    font-size: 1.22rem;
    line-height: 1.2;
}

.case-track-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.support-chat-shell > .case-track-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    margin: 0;
}

.support-chat-mobile-close {
    display: none;
}

.case-track-body {
    padding: 18px 20px 20px;
}

.case-track-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.case-track-actions,
.case-track-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

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

.case-track-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(119, 199, 255, 0.24);
    background: rgba(11, 20, 38, 0.76);
    color: #eef5ff;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.case-track-action-link:hover,
.case-track-action-link:focus-visible {
    border-color: rgba(119, 199, 255, 0.52);
    background: rgba(37, 136, 216, 0.18);
    transform: translateY(-1px);
}

.case-track-item {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(140, 165, 209, 0.14);
    background: rgba(9, 15, 27, 0.72);
}

.case-track-item span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.cp-qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 18px;
    padding: 6px;
    border-radius: 16px;
    border: 2px solid rgba(140, 165, 209, 0.14);
    background: #fff;
    display: grid;
    place-items: center;
}

.cp-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.cp-qr-loading {
    color: #48617f;
    font-size: 0.9rem;
    text-align: center;
}

.cp-section-label {
    margin: 18px 0 8px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.cp-addr-box {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(7, 12, 22, 0.9);
    border: 1px solid rgba(140, 165, 209, 0.14);
}

.cp-addr-box .cp-section-label {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.cp-addr-box span {
    grid-column: 1 / 2;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-word;
    white-space: pre-wrap;
    display: block;
}

.cp-addr-box button {
    grid-row: 2;
    justify-self: end;
    align-self: center;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.cp-bank-details-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
}

.cp-bank-details-grid .cp-addr-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 12px 14px;
}

.cp-bank-details-grid .cp-addr-box .cp-section-label {
    grid-column: 1 / -1;
    margin: 0 0 6px;
}

.cp-bank-details-grid .cp-addr-box span {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

.cp-bank-details-grid .cp-addr-box button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    min-width: 0;
    margin-top: 0;
}

@media (max-width: 720px) {
    .cp-modal-overlay {
        align-items: flex-start;
        padding: 0;
    }

    .cp-bank-details-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .cp-bank-details-grid .cp-addr-box {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        padding: 10px 12px;
    }

    .cp-bank-details-grid .cp-addr-box button {
        width: auto;
        padding: 6px 8px;
        font-size: 0.76rem;
        grid-row: 2;
        justify-self: end;
    }

    .cp-modal-shell {
        width: min(100%, 420px);
        max-width: 100%;
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        overflow: hidden;
    }

    .cp-modal-header {
        padding: 12px 12px 10px;
        flex-shrink: 0;
    }

    .cp-modal-body {
        padding: 12px 12px calc(72px + env(safe-area-inset-bottom));
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .cp-modal-title {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .cp-modal-sub,
    .cp-section-label {
        font-size: 0.72rem;
    }

    .cp-section-label {
        margin: 8px 0 5px;
    }

    .cp-addr-box,
    .cp-copy-box,
    .cp-file-zone,
    .cp-file-preview {
        padding: 10px 12px;
        gap: 8px;
    }

    .cp-addr-box,
    .cp-copy-box {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
    }

    .cp-addr-box span,
    .cp-copy-box span {
        font-size: 0.78rem;
    }

    .cp-copy-btn,
    .cp-copy-btn-green {
        width: auto;
        padding: 6px 8px;
        font-size: 0.74rem;
    }

    .cp-file-zone {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        align-items: center;
        justify-content: stretch;
        min-height: 64px;
    }

    .cp-file-zone strong {
        font-size: 0.9rem;
    }

    .cp-file-zone span:last-child {
        font-size: 0.72rem;
    }

    .cp-file-preview img {
        width: 40px;
        height: 40px;
    }

    .cp-file-preview-name {
        font-size: 0.84rem;
    }

    .cp-file-preview-size {
        font-size: 0.72rem;
    }

    .cp-submit-form {
        gap: 10px;
    }

    .cp-receipt-card {
        padding: 12px 12px 14px;
        gap: 10px;
    }

    .cp-receipt-card .cp-file-zone {
        min-height: 58px;
    }

    .cp-amount-note {
        font-size: 0.82rem;
    }

    .field label {
        font-size: 0.74rem;
    }

    .textarea {
        min-height: 60px;
    }

    .cp-qr-box {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 420px) {
    .cp-modal-overlay {
        align-items: flex-start;
        padding: 0;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .cp-modal-shell {
        width: 100%;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .cp-modal-header {
        padding: 12px 12px 10px;
        gap: 10px;
        flex-shrink: 0;
    }

    .cp-modal-body {
        padding: 10px 10px calc(96px + env(safe-area-inset-bottom));
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .cp-modal-title {
        font-size: 0.92rem;
    }

    .cp-modal-sub {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .cp-section-label {
        margin: 6px 0 4px;
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    .cp-amount-note {
        font-size: 0.78rem;
    }

    .cp-copy-box,
    .cp-addr-box,
    .cp-file-zone,
    .cp-file-preview {
        padding: 9px 10px;
        gap: 6px;
    }

    .cp-copy-box,
    .cp-bank-details-grid .cp-addr-box {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-items: start;
    }

    .cp-copy-box span,
    .cp-addr-box span {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .cp-copy-box button,
    .cp-addr-box button {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        width: auto;
        min-width: 0;
        padding: 6px 9px;
        font-size: 0.7rem;
    }

    .cp-bank-details-grid {
        gap: 8px;
    }

    .cp-bank-details-grid .cp-addr-box {
        padding: 10px;
        grid-template-columns: 1fr;
    }

    .cp-bank-details-grid .cp-addr-box .cp-section-label {
        margin-bottom: 2px;
    }

    .cp-file-zone {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
        min-height: 54px;
    }

    .cp-file-zone-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .cp-file-zone strong {
        font-size: 0.82rem;
    }

    .cp-file-zone span:last-child {
        font-size: 0.66rem;
    }

    .cp-receipt-card {
        padding: 10px;
        gap: 8px;
    }

    .cp-receipt-card .cp-file-zone {
        min-height: 54px;
    }

    .cp-receipt-card .cp-file-preview {
        align-items: flex-start;
    }

    .cp-file-preview img {
        width: 36px;
        height: 36px;
    }

    .cp-file-preview-name {
        font-size: 0.78rem;
    }

    .cp-file-preview-size {
        font-size: 0.68rem;
    }

    .cp-submit-form {
        gap: 8px;
    }

    .cp-submit-button {
        margin-top: 0;
    }
}

.cp-amount-note {
    margin-top: 12px;
    color: #d8ebff;
    text-align: center;
    font-size: 0.88rem;
}

.cp-amount-note strong,
.cp-amount-note b {
    font-size: 0.95rem;
    font-weight: 700;
}

.cp-copy-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(7, 12, 22, 0.9);
    border: 1px solid rgba(140, 165, 209, 0.14);
}

.cp-copy-box span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    word-break: break-word;
    display: block;
}

.cp-copy-box button {
    padding: 6px 10px;
    font-size: 0.74rem;
}

.cp-copy-box-green {
    background: rgba(11, 35, 24, 0.82);
    border-color: rgba(56, 161, 105, 0.22);
}

.cp-copy-box-green span {
    color: #84f5b7;
}

.cp-copy-box span.loading {
    color: var(--muted);
    font-family: var(--font-body);
}

.cp-copy-btn,
.cp-copy-btn-green {
    padding: 6px 10px;
    border-radius: 10px;
    border: 0;
    min-width: auto;
    background: linear-gradient(135deg, #2588d8, #52b2ff);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
}

.cp-copy-btn-green {
    background: linear-gradient(135deg, #1f8f5e, #39c47a);
}

.cp-amount-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(59, 157, 232, 0.1);
    border: 1px solid rgba(99, 179, 237, 0.2);
    color: #d8ebff;
    text-align: center;
}

.cp-receipt-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.cp-receipt-card {
    padding: 16px 16px 18px;
    display: grid;
    gap: 12px;
    border-radius: 18px;
    background: rgba(8, 14, 24, 0.84);
    border: 1px solid rgba(140, 165, 209, 0.14);
}

.cp-receipt-card .cp-receipt-head {
    margin-bottom: -2px;
}

.cp-receipt-card .cp-receipt-title {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.cp-receipt-card .cp-file-preview {
    margin-top: 2px;
}

.cp-receipt-card .cp-file-zone {
    min-height: 68px;
}

.cp-sub-result {
    margin-top: 14px;
}

.cp-submit-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding-bottom: 8px;
}

@media (min-width: 900px) {
    body.client-payments-page .cp-modal-body {
        display: block;
        padding: 24px 28px 28px;
    }

    body.client-payments-page #crypto-payment-section,
    body.client-payments-page #bank-payment-section {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    body.client-payments-page #bank-payment-section {
        max-width: 840px;
    }

    body.client-payments-page .cp-bank-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body.client-payments-page .cp-bank-details-grid .cp-addr-box,
    body.client-payments-page .cp-addr-box,
    body.client-payments-page .cp-copy-box {
        display: grid;
        align-items: start;
    }
}

.cp-file-zone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(140, 165, 209, 0.18);
    background: rgba(9, 15, 27, 0.72);
    text-align: left;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}

.cp-file-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cp-file-zone-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(59, 157, 232, 0.12);
    border: 1px solid rgba(119, 199, 255, 0.18);
    color: var(--accent-2);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.cp-file-zone strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
}

.cp-file-zone span:last-child {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.cp-file-zone > span:last-child {
    width: 100%;
}

.cp-file-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(9, 15, 27, 0.82);
    border: 1px solid rgba(140, 165, 209, 0.12);
}

.cp-file-preview.show {
    display: flex;
}

.cp-file-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.cp-file-name {
    font-weight: 700;
}

.cp-file-size {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 4px;
}

.cp-file-preview-name {
    font-weight: 700;
}

.cp-file-preview-size {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 4px;
}

.client-app-body .payment-record-item.active {
    border-color: var(--card-border-strong);
    box-shadow: 0 18px 38px rgba(59, 157, 232, 0.1);
}

.cp-file-remove {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(229, 62, 62, 0.14);
    color: #ffb3b3;
    font-size: 1.2rem;
    cursor: pointer;
}

.cp-submit-button {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.process-card {
    position: relative;
    padding: 28px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.92), rgba(12, 18, 31, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.process-bg {
    position: absolute;
    right: 24px;
    top: 16px;
    font-family: var(--font-head);
    font-size: 4rem;
    color: rgba(255,255,255,0.04);
    font-weight: 700;
}

.process-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(59, 157, 232, 0.1);
    border: 1px solid rgba(119, 199, 255, 0.24);
    font-size: 1.4rem;
}

.timeline-connector {
    width: 2px;
    height: 36px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(119, 199, 255, 0.18), rgba(219, 168, 77, 0.18));
}

.timeline-grid,
.detailed-case-grid,
.faq-columns,
.submit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-columns {
    align-items: start;
}

.faq-col {
    display: grid;
    gap: 16px;
}

.map-box {
    min-height: 200px;
    display: grid;
    place-items: center;
    text-align: center;
}

.submit-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
}

.submit-page .form-shell {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.submit-page .public-case-wizard {
    width: 100%;
    display: block;
    position: relative;
}

.submit-page .public-case-step {
    width: 100%;
    display: none;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 14px;
    border-radius: 14px;
    min-height: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(140, 165, 209, 0.12);
    box-sizing: border-box;
}

.submit-page .public-case-step.active {
    display: grid;
}

.submit-page .public-case-step:not(.active) {
    display: none !important;
}

.submit-page .field,
.submit-page .field-full {
    width: 100%;
    gap: 7px;
    grid-column: 1 / -1;
}

.submit-page .field {
    min-width: 0;
}

.submit-page .form-grid {
    display: grid;
    gap: 8px;
}

.submit-page .public-case-step .field-full {
    margin-top: 2px;
}

.submit-page .public-case-step .btn {
    width: auto;
}

.submit-page .public-review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.submit-page .public-review-card {
    min-height: 100%;
}

.submit-page .public-review-card-wide {
    grid-column: 1 / -1;
}

.sticky-card {
    position: sticky;
    top: 110px;
}

.progress-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.progress-bar span {
    padding: 12px 14px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    background: rgba(17, 28, 49, 0.82);
    border: 1px solid rgba(140, 165, 209, 0.12);
}

.progress-bar span.active {
    color: #fff;
    border-color: rgba(119, 199, 255, 0.28);
    background: rgba(59, 157, 232, 0.14);
}

.checkbox-line,
.radio-line {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
}

.radio-line label,
.checkbox-line span {
    font-weight: 500;
}

.auth-public-page {
    min-height: 100vh;
}

.auth-public-page .site-footer {
    display: none;
}

.auth-public-page .site-header {
    display: none;
}

.auth-public-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px 12px;
}

.auth-public-card {
    width: min(100%, 340px);
    padding: 22px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(10, 17, 30, 0.98));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-public-card .input,
.auth-public-card .select,
.auth-public-card .textarea,
.auth-public-card .note-input,
.case-track-form .input,
.case-track-form .select,
.case-track-form .textarea,
.case-track-form .note-input {
    background: rgba(11, 20, 38, 0.92);
    border: 1px solid rgba(119, 199, 255, 0.16);
    color: #eef5ff;
}

.auth-public-card .input::placeholder,
.case-track-form .input::placeholder,
.auth-public-card .textarea::placeholder,
.case-track-form .textarea::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.case-track-form {
    gap: 16px;
}

.case-track-form .field,
.case-track-form .field-full,
.auth-public-card .field,
.auth-public-card .field-full {
    gap: 14px;
}

.case-track-form button.btn,
.case-track-form .button,
.auth-public-card .button,
.auth-public-card .btn {
    min-height: 44px;
}

.auth-compact {
    max-width: 380px;
}

.public-brand-center {
    justify-content: center;
    margin-bottom: 16px;
}

    @media (max-width: 600px) {
        .auth-public-wrap {
            padding: 14px 10px;
        }

        .auth-public-card {
            width: 100%;
            padding: 18px 12px;
            border-radius: 14px;
        }

        .auth-compact {
            max-width: 100%;
        }

        .auth-public-card .field,
        .auth-public-card .field-full,
        .case-track-form .field,
        .case-track-form .field-full {
            gap: 8px;
        }

        .password-row {
            gap: 10px;
        }

        .public-brand-center {
            margin-bottom: 10px;
        }

        .auth-switch,
        .auth-links {
            margin: 8px 0 0;
        }

        .divider-line {
            margin: 12px 0 10px;
        }

        .auth-public-card .button,
        .auth-public-card .btn,
        .case-track-form button.btn,
        .case-track-form .button {
            min-height: 36px;
            font-size: 0.95rem;
        }
    }

.auth-switch,
.auth-links {
    color: var(--muted);
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.85rem;
}

.auth-switch a,
.auth-links a {
    color: var(--accent-2);
    font-weight: 700;
}

.divider-line::before,
.divider-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(140, 165, 209, 0.16);
}

.password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
}
.password-toggle {
    height: 50px;
    min-width: 52px;
    border-radius: 14px;
    border: 1px solid rgba(140, 165, 209, 0.16);
    background: rgba(9, 15, 27, 0.82);
    color: var(--text);
    cursor: pointer;
}

.notice-danger {
    border-color: rgba(255, 109, 138, 0.24);
    background: rgba(255, 109, 138, 0.08);
    color: #ffd6df;
}

.client-pin-setup-shell,
.verify-pin-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 16px;
    background: linear-gradient(180deg, rgba(5, 11, 21, 0.95), rgba(7, 12, 21, 0.98));
}

.client-pin-setup-card,
.verify-pin-card {
    width: min(100%, 300px);
    padding: 20px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 25, 42, 0.96), rgba(10, 17, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.verify-pin-header,
.client-pin-setup-card .verify-pin-header {
    margin-bottom: 12px;
}

.pin-greeting-title {
    font-size: clamp(1.5rem, 3.4vw, 1.9rem);
    line-height: 1.08;
    margin: 0 0 10px;
}

.section-sub {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.setup-pin-form {
    display: grid;
    gap: 14px;
}

.pin-entry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 56px));
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.pin-box {
    width: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #eef5ff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.pin-box:focus {
    outline: none;
    border-color: rgba(99, 179, 237, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 157, 232, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.pin-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pin-actions .btn {
    min-width: 180px;
    width: 100%;
    max-width: 220px;
}

.pin-help-row {
    margin-top: 10px;
    text-align: center;
}

.pin-help-link {
    color: var(--accent-2);
    font-weight: 700;
}

@media (max-width: 600px) {
    .client-pin-setup-shell,
    .verify-pin-shell {
        padding: 20px 12px;
    }

    .client-pin-setup-card,
    .verify-pin-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .pin-entry {
        gap: 10px;
    }

    .pin-box {
        min-height: 48px;
        font-size: 1.3rem;
        padding: 0 10px;
    }
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 157, 232, 0.18), rgba(219, 168, 77, 0.18));
    border: 1px solid rgba(119, 199, 255, 0.22);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
}

.case-ref,
.wallet-address-box,
.cp-copy-box span,
.mock-amount,
.mini-value,
.stat-number,
#usd-due-copy {
    font-family: var(--font-mono);
}

.case-ref {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0;
}

.payment-summary-row strong,
.cp-amount-banner strong,
.cp-file-name {
    font-weight: 700;
}

.hero-subtitle,
.page-subtitle,
.section-intro,
.card-copy,
.faq-answer,
.footer-copy,
.mock-status,
.stat-text,
.quote,
.client-side-link,
.payment-summary-row span {
    letter-spacing: -0.01em;
}

@media (max-width: 1080px) {
    .hero-grid,
    .page-hero-grid,
    .why-grid,
    .footer-grid,
    .operate-grid,
    .about-page .feature-grid,
    .case-type-grid,
    .case-type-intro,
    .contact-grid,
    .contact-page .stack,
    .legal-grid,
    .credibility-grid,
    .steps-grid,
    .stats-grid,
    .case-grid,
    .testimonials-grid,
    .detail-grid,
    .feature-grid,
    .client-stat-grid,
    .client-dashboard-grid,
    .timeline-grid,
    .detailed-case-grid,
    .faq-columns,
    .submit-grid,
    .payment-page-grid,
    .client-shell-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-line { display: none; }

    .client-bank-main {
        margin-left: 0;
    }

    .client-bank-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
        z-index: 1500;
    }

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

    .client-bank-header {
        left: 0;
        position: fixed;
        z-index: 80;
    }

    body.client-app-body .client-bank-header-tools {
        display: none;
    }

    body.client-sidebar-open .client-bank-header {
        pointer-events: none;
    }

    body.client-sidebar-open .client-bank-menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .client-bank-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.client-app-body .client-bank-content > .security-activity {
        top: 58px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 54;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 1401;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .security-activity {
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        box-sizing: border-box;
    }

    .security-activity-track {
        font-size: 0.7rem;
        gap: 20px;
        animation-duration: 42s;
    }

    body.client-app-body .client-bank-content > .security-activity {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        margin: 0;
        transform: none;
        z-index: 54;
    }

    .mobile-panel {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        padding: 18px;
        border-radius: 22px;
        background: rgba(10, 18, 31, 0.98);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 1400;
    }

    .nav-shell {
        justify-content: space-between;
        gap: 10px;
        align-items: center;
    }

    .mobile-trigger-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .mobile-login-btn {
        display: inline-flex !important;
        margin: 0;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .menu-toggle {
        order: 0;
    }

    .mobile-panel.open { display: grid; gap: 16px; }
    .mobile-links,
    .mobile-actions { display: grid; gap: 12px; }

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

    .client-bank-menu-toggle {
        display: inline-flex;
    }

    .toolbar-actions {
        grid-auto-flow: row;
    }

    .hero,
    .page-hero {
        padding: 42px 0 78px;
        min-height: auto;
    }

    .hero-home {
        min-height: 72vh;
        background:
            linear-gradient(180deg, rgba(5, 12, 23, 0.72), rgba(5, 12, 23, 0.46), rgba(5, 12, 23, 0.78)),
            url("../img/operations-team.jpg") center / cover no-repeat;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-home .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-home .eyebrow {
        font-size: clamp(2.6rem, 3.2vw, 3.6rem);
        line-height: 1.02;
    }

    .page-hero-grid {
        gap: 32px;
    }

    .hero-grid,
    .page-hero-grid,
    .why-grid,
    .footer-grid,
    .operate-grid,
    .about-page .feature-grid,
    .case-type-grid,
    .case-type-intro,
    .case-help-panel,
    .contact-grid,
    .contact-page .stack,
    .legal-grid,
    .credibility-grid,
    .steps-grid,
    .stats-grid,
    .case-grid,
    .testimonials-grid,
    .detail-grid,
    .feature-grid,
    .form-grid,
    .client-stat-grid,
    .client-dashboard-grid,
    .timeline-grid,
    .detailed-case-grid,
    .faq-columns,
    .submit-grid,
    .process-card,
    .payment-page-grid,
    .client-shell-layout {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        grid-template-columns: 1fr;
    }

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

    body.case-types-page .site-header + .page-hero,
    body.case-types-page .page-hero {
        padding-top: 90px !important;
        padding-bottom: 10px !important;
    }

    body.case-types-page .page-hero-simple {
        min-height: 0 !important;
    }

    body.case-types-page .page-hero-simple .container {
        padding-top: 8px !important;
    }

    .trust-deposit-actions {
        flex-direction: column;
    }

    .sticky-card {
        position: static;
    }

    .client-bank-content {
        padding: 92px 16px 24px;
    }

    .client-bank-news span:last-child {
        display: none;
    }

    .process-bg {
        font-size: 3rem;
    }

    .hero-scroll { display: none; }
}

@media (max-width: 520px) {
    .site-header .container {
        width: calc(100% - 6px);
    }

    .site-header {
        padding: 14px 0;
    }

    .nav-shell {
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        justify-content: flex-start;
    }

    .brand-logo-full.brand-logo-image {
        width: min(276px, 72vw);
        max-height: 80px;
        height: auto;
        transform: none;
    }

    .site-header .brand-logo-full.brand-logo-image {
        transform: none;
    }

    .mobile-trigger-group {
        display: flex;
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        margin-left: auto;
        min-width: fit-content;
    }

    .mobile-login-btn {
        display: inline-flex !important;
        min-width: 82px;
        padding: 9px 10px;
        font-size: 0.72rem;
        line-height: 1;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .menu-toggle {
        width: 42px;
        min-width: 42px;
        height: 42px;
        border-radius: 12px;
        flex: 0 0 auto;
    }

    .hamburger-toggle span {
        width: 17px;
    }

    .site-header + main,
    .site-header + .page-hero {
        padding-top: 120px;
    }

    .mobile-panel {
        top: 88px;
        left: 12px;
        right: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .security-activity {
        margin-top: 8px;
    }

    .security-activity-track {
        font-size: 0.56rem;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .section { padding: 38px 0; }
    .container { width: min(calc(100% - 24px), var(--max)); }

    .progress-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 14px;
    }

    .progress-bar span {
        padding: 8px 6px;
        border-radius: 999px;
        font-size: 0.58rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .client-bank-main {
        justify-content: stretch;
    }

    .client-bank-content {
        width: min(100%, 520px);
        padding: 104px 8px 18px;
    }

    .eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
    }

    .hero,
    .page-hero {
        padding: 16px 0 34px;
    }

    .site-header {
        padding: 10px 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo-full.brand-logo-image {
        width: min(205px, 56vw);
        height: 70px;
    }

    .site-header .brand-logo-full.brand-logo-image {
        transform: scale(1.1);
    }

    .brand-badge {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 0.62rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-tag {
        display: none;
    }

    .security-activity {
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        box-sizing: border-box;
    }

    .security-activity-track {
        padding: 5px 0;
        font-size: 0.56rem;
        gap: 14px;
    }

    .client-bank-content {
        padding-top: 104px;
    }

    .hero-title {
        margin-bottom: 6px;
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.02;
        letter-spacing: -0.02em;
    }

    .hero-title-desktop {
        display: none;
    }

    .hero-title-mobile {
        display: block;
        max-width: 330px;
    }

    .hero-home .eyebrow {
        margin-bottom: 8px;
        font-size: 1.08rem !important;
        line-height: 1.18 !important;
    }

    .page-title {
        margin-bottom: 10px;
        font-size: clamp(1.55rem, 8vw, 2.2rem);
        line-height: 1.08;
    }

    .hero-subtitle,
    .page-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 8px;
    }

    .hero-home .hero-subtitle {
        color: #f9fbff;
        display: -webkit-box;
        max-width: 360px;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .section-title,
    .toolbar-card .section-title,
    .client-bank-content .section-title {
        margin-bottom: 8px;
        font-size: clamp(1.02rem, 4.6vw, 1.35rem) !important;
        line-height: 1.16;
    }

    .section-intro {
        margin-bottom: 16px;
        font-size: 0.82rem;
    }

    .hero-actions,
    .cta-actions,
    .nav-shell { gap: 8px; }

    .hero-actions,
    .cta-actions {
        margin-bottom: 8px;
    }

    .hero-actions {
        flex-wrap: nowrap;
        align-items: stretch;
        margin-top: 0;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        min-height: 0;
        padding: 11px 12px;
        font-size: 0.78rem;
        justify-content: center;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        min-height: 44px;
    }

    .hero-home .hero-grid {
        padding-top: 0;
    }

    .trust-badges {
        display: none;
    }

    .trust-badges span,
    .kicker-chip {
        padding: 6px 9px;
    }

    .hero-home .hero-visual {
        display: none;
    }

    .steps-grid,
    .case-grid,
    .testimonials-grid,
    .detail-grid,
    .feature-grid,
    .credibility-grid,
    .why-list {
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

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

    .stat-box {
        padding: 16px 10px;
        min-height: 92px;
        display: grid;
        align-content: center;
    }

    .stat-number {
        margin-bottom: 8px;
        font-size: 1.62rem;
    }

    .stat-text {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .cta-band { padding: 34px 0; }
    .cta-box { padding: 22px 16px; }
    .cta-box p {
        margin: 8px auto 16px;
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .section-tight { padding: 30px 0; }
    .step-card,
    .case-card,
    .testimonial,
    .faq-item,
    .detail-card,
    .case-type-card,
    .credibility-card,
    .legal-card,
    .operate-card,
    .form-shell,
    .toolbar-card {
        padding: 14px;
        border-radius: 16px;
    }

    .card-title {
        margin-bottom: 6px;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .card-copy,
    .section-intro {
        font-size: 0.78rem;
        line-height: 1.48;
    }

    .list-clean li {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .faq-answer {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .case-grid .card-copy,
    .testimonials-grid .card-copy,
    .credibility-grid .card-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .case-grid .case-icon,
    .steps-grid .step-num {
        margin-bottom: 8px;
    }

    .step-num,
    .case-icon,
    .faq-icon,
    .icon-badge,
    .site-icon,
    .why-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin-bottom: 10px;
        border-radius: 10px;
        font-size: 0.64rem;
    }

    .site-visual img,
    .case-type-visual img,
    .process-visual img {
        min-height: 170px;
        max-height: 210px;
    }

    .site-visual figcaption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 4px;
    }

    .site-visual figcaption span {
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .site-visual figcaption strong {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .about-brief-visual > :not(img) {
        margin-left: 14px;
        margin-right: 14px;
    }

    .contact-visual {
        margin: -14px -14px 14px;
    }

    .about-metrics {
        grid-template-columns: 1fr;
    }
    .operate-card {
        min-height: auto;
        padding: 14px;
    }
    .contact-page .detail-card,
    .legal-card {
        min-height: auto;
    }
    .case-type-card {
        min-height: auto;
    }

    body.case-types-page .case-tags {
        display: grid;
        gap: 6px;
        margin-top: 0;
    }

    body.case-types-page .case-tags span {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        border-radius: 0;
        font-size: 0.72rem;
        line-height: 1.38;
        font-weight: 600;
        color: var(--muted);
    }

    body.case-types-page .case-tags span::before {
        content: "•";
        color: var(--accent-2);
        font-size: 1rem;
        line-height: 1;
        font-weight: 700;
        margin-top: 1px;
    }

    body.case-types-page .case-type-card .card-copy {
        font-size: 0.78rem;
        line-height: 1.48;
    }

    .credibility-card {
        min-height: auto;
    }
    .case-help-panel .hero-actions {
        justify-content: flex-start;
    }

    .why-item {
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .why-item strong {
        font-size: 0.88rem;
    }

    .why-item p {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .rating-mark {
        margin-bottom: 8px;
        font-size: 0.66rem;
    }

    .pill,
    .status-pill {
        padding: 5px 9px;
        font-size: 0.68rem;
    }

    .site-footer {
        padding: 28px 0 18px;
    }

    .footer-grid {
        gap: 18px;
        margin-bottom: 18px;
    }

    .footer-title {
        margin-bottom: 8px;
        font-size: 0.72rem;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a,
    .footer-copy,
    .footer-bottom {
        font-size: 0.76rem;
    }

    .footer-bottom {
        padding-top: 14px;
    }

    .cp-copy-box,
    .payment-copy-row,
    .crypto-method-top,
    .payment-summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kyc-upload-row {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .kyc-file-control,
    .kyc-file-name {
        grid-column: 1 / -1;
    }

    .kyc-file-control {
        width: 100%;
    }

    .kyc-submit-row {
        justify-content: stretch;
    }

    .kyc-submit-row .btn {
        width: 100%;
        min-width: 0;
    }

    .cp-modal-shell {
        width: 100%;
    }

    .case-track-dialog {
        width: 100%;
        max-width: 360px;
        max-height: min(88vh, 620px);
        border-radius: 14px;
    }

    .case-track-modal {
        align-items: center;
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .case-track-head {
        padding: 13px 14px;
        gap: 10px;
    }

    .case-track-head .mini-label {
        font-size: 0.68rem;
    }

    .case-track-title {
        font-size: 1rem;
        line-height: 1.16;
    }

    .case-track-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .case-track-body {
        padding: 13px 14px 14px;
    }

    .case-track-body p.card-copy {
        margin-bottom: 0;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .case-track-form {
        gap: 8px;
        margin-top: 10px;
    }

    .case-track-form label {
        font-size: 0.78rem;
    }

    .case-track-form .input,
    .case-track-form .select,
    .case-track-form .textarea,
    .case-track-form .note-input {
        min-height: 38px;
        padding: 9px 10px;
        font-size: 0.9rem;
    }

    .case-track-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .case-track-action-link {
        min-height: 36px;
        padding: 8px 10px;
        border-radius: 9px;
        font-size: 0.84rem;
    }

    .case-track-form button.btn,
    .case-track-form .button {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .client-bank-content {
        padding: 82px 12px 22px;
    }

    .cp-qr-box {
        width: 180px;
        height: 180px;
    }
}

/* Trust-inspired mobile-first polish for portal density and overflow control */
@media (max-width: 860px) {
    html,
    body {
        overflow-x: hidden;
    }

    .client-bank-shell {
        display: block;
    }

    .client-bank-sidebar {
        width: min(84vw, 300px);
        max-width: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .client-bank-sidebar-head {
        padding: 14px 16px;
    }

    .client-bank-sidebar-body {
        padding: 14px 12px 18px;
    }

    .client-bank-balance-card {
        padding: 14px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .client-bank-balance-amount {
        font-size: 1.12rem;
    }

    .client-bank-balance-data {
        gap: 7px;
        margin-top: 10px;
    }

    .client-bank-nav {
        gap: 2px;
    }

    .client-bank-nav-link {
        min-height: 42px;
        padding: 10px 10px;
        border-radius: 0;
        font-size: 0.82rem;
    }

    .client-bank-nav-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.56rem;
    }

    .client-bank-header {
        height: 58px;
        padding: 0 12px;
    }

    .client-bank-header-left,
    .client-bank-header-tools {
        gap: 8px;
        min-width: 0;
    }

    .client-bank-page-head {
        min-width: 0;
    }

    .client-bank-page-head strong,
    .client-bank-page-head span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 58vw;
    }

    .client-bank-user-toggle {
        display: none;
    }

    .client-bank-content {
        width: 100%;
        max-width: 100vw;
        padding: 104px 12px 20px;
    }

    .client-app-body .toolbar-card,
    .trust-shell-head,
    .form-shell,
    .client-app-body .form-shell,
    .payment-record-item,
    .trust-deposit-card,
    .client-history-stat,
    .client-history-row {
        max-width: 100%;
        min-width: 0;
    }

    .trust-shell-head {
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
        border-radius: 16px;
    }

    .trust-shell-title {
        font-size: clamp(1rem, 5.2vw, 1.35rem);
        line-height: 1.16;
    }

    .trust-shell-sub,
    .client-bank-page-head span,
    .card-copy,
    .meta-line {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .trust-shell-head .amount,
    .amount {
        font-size: clamp(1rem, 5vw, 1.25rem);
        line-height: 1.1;
        word-break: break-word;
    }

    .trust-tab-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .trust-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .trust-tab-nav a {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 9px 13px;
        font-size: 0.78rem;
        border-radius: 999px;
    }

    .form-shell,
    .client-app-body .form-shell,
    .client-app-body .toolbar-card {
        padding: 14px;
        border-radius: 16px;
    }

    .form-grid,
    .settings-grid,
    .client-history-stats,
    .client-history-detail-grid,
    .client-review-grid,
    .client-app-body .client-stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .field {
        margin-bottom: 10px;
    }

    .field label,
    .mini-label {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .contact-page .form-grid {
        gap: 7px;
    }

    .contact-page .form-shell .field,
    .contact-page .form-shell .field-full {
        margin-bottom: 5px;
    }

    .contact-page .form-shell .field label,
    .contact-page .form-shell .field-full label {
        font-size: 0.66rem;
        letter-spacing: 0.02em;
        margin-bottom: 2px;
    }

    .contact-page .form-shell .mini-label {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .contact-page .form-shell .input,
    .contact-page .form-shell .select,
    .contact-page .form-shell .textarea,
    .contact-page .form-shell .note-input {
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 9px;
        font-size: 0.74rem;
        background: rgba(8, 14, 25, 0.96) !important;
        color: #eef5ff;
        border: 1px solid rgba(119, 199, 255, 0.16);
    }

    .contact-page .form-shell .textarea,
    .contact-page .form-shell .note-input {
        min-height: 74px;
    }

    .textarea,
    .note-input {
        min-height: 92px;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button {
        min-height: 42px;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 0.84rem;
    }

    .cp-submit-button,
    .quick-form .button,
    .quick-form .button-secondary {
        width: 100%;
    }

    .payment-record-list,
    .client-history-list {
        gap: 8px;
    }

    .client-history-scroll {
        max-height: 430px;
        padding-right: 3px;
    }

    .payment-record-item,
    .client-history-row,
    .client-history-stat {
        padding: 12px;
        border-radius: 14px;
    }

    .client-history-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .client-history-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 1rem;
    }

    .client-history-main strong,
    .card-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .client-history-main small {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .client-history-meta {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        text-align: left;
    }

    .client-history-toolbar,
    .client-history-controls,
    .client-case-top,
    .stats-inline,
    .trust-deposit-actions,
    .case-actions,
    .client-case-step-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
    }

    .client-history-toolbar {
        display: grid;
    }

    .client-history-controls .input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .client-history-controls .btn,
    .stats-inline .btn,
    .stats-inline .button-secondary {
        flex: 1 1 auto;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .cp-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    body.client-payments-page .cp-modal-overlay {
        align-items: stretch;
        padding: 0;
    }

    body.client-payments-page .cp-modal-shell,
    body.client-payments-page .cp-modal-shell.trust-style {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding: 0;
        border-radius: 0;
    }

    body.client-payments-page .cp-modal-header {
        padding: 12px 12px 10px;
    }

    body.client-payments-page .cp-modal-body {
        padding: 12px 12px 14px;
    }

    .cp-modal-header {
        gap: 10px;
        align-items: flex-start;
    }

    .cp-modal-title {
        font-size: 1rem;
    }

    .mobile-bank-home {
        gap: 14px;
    }

    .mobile-bank-welcome {
        display: grid;
        align-items: start;
        padding: 16px;
        border-radius: 18px;
    }

    .mobile-bank-welcome h1 {
        font-size: clamp(1.35rem, 7vw, 1.75rem);
    }

    .mobile-bank-welcome p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .mobile-bank-actions .btn {
        width: auto;
        flex: 1 1 120px;
    }

    .mobile-bank-section-head h2 {
        font-size: 1rem;
    }

    .mobile-bank-balance-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px 14px;
        padding: 18px;
        border-radius: 20px;
    }

    .mobile-bank-avatar {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        font-size: 1rem;
    }

    .mobile-bank-balance-copy strong {
        font-size: clamp(1.22rem, 7vw, 1.65rem);
    }

    .mobile-bank-mini {
        padding: 10px;
    }

    .mobile-bank-balance-stats {
        gap: 10px;
    }

    .mobile-bank-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-bank-small-card {
        min-height: 104px;
        padding: 13px;
        border-radius: 16px;
    }

    .mobile-bank-small-card strong {
        font-size: 0.88rem;
    }

    .mobile-bank-small-card span,
    .mobile-bank-small-card small,
    .mobile-bank-balance-copy span,
    .mobile-bank-mini span {
        font-size: 0.7rem;
    }

    .mobile-bank-case-card {
        padding: 16px;
        border-radius: 18px;
    }

    .mobile-bank-case-main {
        display: grid;
    }

    .mobile-bank-case-main strong {
        font-size: 1rem;
    }

    .mobile-bank-case-card p {
        font-size: 0.8rem;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-bank-activity {
        padding: 12px;
        border-radius: 16px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .mobile-bank-activity > span {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .mobile-bank-activity b {
        grid-column: 2;
        font-size: 0.84rem;
    }
}

@media (max-width: 420px) {
    .client-bank-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .client-bank-menu-toggle {
        width: 44px;
        min-width: 44px;
        height: 34px;
    }

    .client-bank-page-head strong {
        font-size: 0.76rem;
    }

    .client-bank-page-head span {
        font-size: 0.66rem;
    }

    .form-shell,
    .client-app-body .form-shell,
    .client-app-body .toolbar-card,
    .trust-shell-head {
        padding: 12px;
        border-radius: 14px;
    }

    .trust-shell-head .amount {
        width: 100%;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button {
        width: 100%;
    }

    .pill,
    .status-pill,
    .kicker-chip {
        font-size: 0.64rem;
        padding: 5px 8px;
    }
}

/* Extra compact Trust-like dashboard cards on small screens */
@media (max-width: 600px) {
    .client-dashboard-compact .client-bank-content {
        padding: 118px 6px 18px;
    }

    .client-app-body .flash-notice,
    .client-pin-setup-page .notice {
        width: 100%;
        max-width: 100%;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .client-dashboard-compact .flash-notice {
        margin-top: 8px !important;
        margin-bottom: 8px;
    }

    .client-bank-content {
        max-width: 560px;
        margin: 0 auto;
        padding-left: 6px;
        padding-right: 6px;
    }

    .client-bank-content .section-title {
        font-size: 1.25rem !important;
        line-height: 1.18;
    }

    .mobile-bank-home {
        gap: 7px;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .mobile-bank-welcome,
    .mobile-bank-balance-card,
    .mobile-bank-case-card,
    .mobile-bank-next-card,
    .mobile-bank-small-card,
    .mobile-bank-activity,
    .mobile-bank-empty {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border-color: rgba(119, 199, 255, 0.08);
        background-color: rgba(11, 20, 38, 0.68);
    }

    .mobile-bank-welcome {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .mobile-bank-welcome .eyebrow {
        margin-bottom: 5px;
        font-size: 0.52rem;
        letter-spacing: 0.1em;
    }

    .mobile-bank-welcome h1 {
        margin-bottom: 4px;
        font-size: clamp(1rem, 5.4vw, 1.24rem);
        line-height: 1.08;
        letter-spacing: 0;
    }

    .mobile-bank-welcome p {
        max-width: 260px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .mobile-bank-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .mobile-bank-actions .btn {
        width: auto;
        min-height: 32px;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .mobile-bank-section-head {
        margin-top: 2px;
    }

    .mobile-bank-section-head h2 {
        font-size: 0.94rem;
        line-height: 1.15;
    }

    .mobile-bank-section-head a {
        font-size: 0.68rem;
    }

    .mobile-bank-next-card {
        gap: 4px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .mobile-bank-next-card span {
        font-size: 0.54rem;
        letter-spacing: 0.1em;
    }

    .mobile-bank-next-card strong {
        font-size: 0.82rem;
    }

    .mobile-bank-next-card small {
        font-size: 0.68rem;
        line-height: 1.32;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-bank-balance-card {
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "avatar balance"
            "verify verify"
            "cases cases";
        gap: 7px 9px;
        padding: 9px;
        border-radius: 13px;
    }

    .mobile-bank-balance-card::after,
    .mobile-bank-case-card::after {
        right: -52px;
        bottom: -64px;
        width: 124px;
        height: 124px;
    }

    .mobile-bank-avatar {
        grid-area: avatar;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .mobile-bank-balance-copy {
        grid-area: balance;
        min-width: 0;
    }

    .mobile-bank-balance-copy span,
    .mobile-bank-mini span,
    .mobile-bank-small-card span,
    .mobile-bank-case-main span {
        font-size: 0.62rem;
        letter-spacing: 0.01em;
    }

    .mobile-bank-balance-copy strong {
        font-size: clamp(0.92rem, 5vw, 1.16rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bank-balance-copy small {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.68rem;
    }

    .mobile-bank-mini {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 5px 7px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.035);
    }

    .mobile-bank-balance-copy + .mobile-bank-mini {
        grid-area: verify;
    }

    .mobile-bank-balance-copy + .mobile-bank-mini + .mobile-bank-mini {
        grid-area: cases;
    }

    .mobile-bank-mini strong {
        margin-top: 0;
        font-size: 0.68rem;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bank-card-grid {
        gap: 8px;
    }

    .mobile-bank-card-grid-trim {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-bank-small-card {
        min-height: 74px;
        gap: 4px;
        padding: 9px;
        border-radius: 12px;
    }

    .mobile-bank-small-card strong {
        font-size: 0.76rem;
        line-height: 1.18;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-bank-small-card small {
        font-size: 0.62rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bank-case-card {
        gap: 7px;
        padding: 9px;
        border-radius: 13px;
    }

    .mobile-bank-case-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
    }

    .mobile-bank-case-main strong {
        margin-top: 3px;
        font-size: 0.82rem;
        line-height: 1.18;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .mobile-bank-case-amount {
        font-size: 0.82rem;
    }

    .mobile-bank-progress {
        height: 5px;
    }

    .mobile-bank-case-card p {
        font-size: 0.7rem;
        line-height: 1.38;
    }

    .mobile-bank-case-step {
        padding: 8px 9px;
        border-radius: 11px;
    }

    .mobile-bank-case-step span {
        font-size: 0.52rem;
    }

    .mobile-bank-case-step strong {
        font-size: 0.74rem;
    }

    .mobile-bank-case-step small {
        font-size: 0.62rem;
    }

    .mobile-bank-activity-list {
        gap: 7px;
    }

    .mobile-bank-activity-scroll {
        max-height: 216px;
        padding-right: 2px;
    }

    .mobile-bank-activity {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 9px;
        border-radius: 12px;
    }

    .mobile-bank-activity > span {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .mobile-bank-activity strong {
        font-size: 0.76rem;
    }

    .mobile-bank-activity small {
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .mobile-bank-activity b {
        grid-column: auto;
        font-size: 0.72rem;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .mobile-bank-welcome {
        grid-template-columns: 1fr;
    }

    .mobile-bank-balance-card {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-areas:
            "avatar balance"
            "verify verify"
            "cases cases";
    }

    .mobile-bank-avatar {
        width: 48px;
        height: 48px;
    }

    .mobile-bank-card-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bank-small-card {
        min-height: 68px;
    }

    .mobile-bank-actions {
        width: 100%;
        justify-content: stretch;
    }

    .mobile-bank-actions .btn {
        width: 100%;
    }
}

/* Mobile-first transaction history: compact Trust-style ledger */
@media (max-width: 600px) {
    .client-history-page .client-bank-content {
        padding-top: 66px;
    }

    .client-history-page .trust-shell-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 12px;
        border-radius: 15px;
    }

    .client-history-page .trust-shell-title {
        font-size: 1.02rem;
        line-height: 1.12;
    }

    .client-history-page .trust-shell-sub {
        max-width: 220px;
        font-size: 0.68rem;
        line-height: 1.32;
    }

    .client-history-page .trust-shell-head .amount {
        width: auto;
        font-size: 0.88rem;
        padding: 7px 9px;
        border-radius: 12px;
        white-space: nowrap;
    }

    .client-history-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .client-history-stat {
        padding: 9px;
        border-radius: 13px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .client-history-stat span {
        display: block;
        font-size: 0.52rem;
        line-height: 1.15;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .client-history-stat strong {
        margin-top: 5px;
        font-size: 0.76rem;
        line-height: 1.12;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .client-history-page .form-shell {
        margin-top: 10px !important;
        padding: 10px;
        border-radius: 15px;
    }

    .client-history-toolbar {
        gap: 9px;
        margin-bottom: 9px;
    }

    .client-history-toolbar .mini-label {
        font-size: 0.54rem;
    }

    .client-history-toolbar .card-title {
        font-size: 0.86rem;
    }

    .client-history-controls {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .client-history-controls .input {
        grid-column: 1 / -1;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.76rem;
        border-radius: 11px;
    }

    .client-history-controls .btn {
        width: auto;
        min-height: 32px;
        padding: 7px 6px;
        border-radius: 10px;
        font-size: 0.62rem;
        line-height: 1;
    }

    .client-history-count {
        margin: -1px 0 8px;
        padding: 4px 8px;
        font-size: 0.58rem;
    }

    .client-history-scroll {
        max-height: 55vh;
        padding-right: 2px;
    }

    .client-history-list {
        gap: 6px;
    }

    .client-history-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 9px;
        border-radius: 13px;
        min-height: 58px;
    }

    .client-history-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 0.88rem;
    }

    .client-history-main strong {
        font-size: 0.74rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .client-history-main small {
        margin-top: 3px;
        font-size: 0.58rem;
        line-height: 1.18;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .client-history-meta {
        grid-column: auto;
        display: grid;
        justify-items: end;
        gap: 4px;
        min-width: 74px;
        text-align: right;
    }

    .client-history-meta .pill {
        max-width: 98px;
        padding: 4px 6px;
        font-size: 0.48rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-history-meta strong {
        margin-top: 0;
        font-size: 0.64rem;
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* Compact mobile client pages with heavy cards */
@media (max-width: 600px) {
    .client-app-body .client-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px !important;
    }

    .client-app-body .toolbar-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 13px;
        border-radius: 15px;
        min-height: auto;
    }

    .client-app-body .toolbar-card .section-title {
        margin-bottom: 0 !important;
        font-size: clamp(1.18rem, 7vw, 1.55rem);
        line-height: 1.06;
    }

    .client-app-body .toolbar-card .eyebrow,
    .client-app-body .form-shell .mini-label {
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }

    .client-app-body .form-shell {
        padding: 11px;
        border-radius: 15px;
    }

    .client-app-body .form-shell .card-title {
        font-size: 0.9rem;
        line-height: 1.15;
    }

    .client-case-list,
    .timeline-list {
        gap: 8px;
    }

    .client-case-list {
        max-height: 280px;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-width: thin;
    }

    .client-case-item {
        min-height: 0;
        padding: 11px;
        border-radius: 13px;
    }

    .client-case-top {
        align-items: center;
        gap: 8px;
    }

    .client-case-top .case-ref {
        min-width: 0;
        font-size: 0.72rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-case-top .pill {
        flex: 0 0 auto;
        max-width: 90px;
        padding: 5px 8px;
        font-size: 0.58rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-case-item .card-title {
        margin-top: 6px !important;
        font-size: 0.86rem !important;
        line-height: 1.15;
    }

    .client-app-body .stats-inline {
        gap: 6px;
        margin-bottom: 10px !important;
    }

    .client-app-body .stats-inline .kicker-chip {
        padding: 6px 9px;
        font-size: 0.62rem;
    }

    .client-app-body .card-copy {
        font-size: 0.72rem;
        line-height: 1.38;
    }

    .timeline-list {
        max-height: 390px;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-width: thin;
    }

    .timeline-item {
        grid-template-columns: 10px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
        border-radius: 13px;
    }

    .timeline-dot {
        width: 8px;
        height: 8px;
        margin-top: 5px;
        box-shadow: 0 0 0 4px rgba(59, 157, 232, 0.08);
    }

    .timeline-item strong {
        display: block;
        font-size: 0.82rem;
        line-height: 1.18;
    }

    .timeline-item .card-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin-top: 4px !important;
    }

    .timeline-item .mini-label {
        margin-top: 6px !important;
        font-size: 0.55rem;
    }
}

/* Final unified mobile compact override for every public/client page */
@media (max-width: 600px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container,
    .client-bank-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-section,
    .section {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    .hero,
    .page-hero {
        padding-top: 90px !important;
        padding-bottom: 34px !important;
    }

    .section-title,
    .hero h1,
    .page-hero h1,
    .toolbar-card .section-title {
        font-size: clamp(1.35rem, 7.4vw, 1.95rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em;
    }

    .section-intro,
    .hero p,
    .page-hero p,
    .card-copy,
    .client-app-body .card-copy,
    .meta-line {
        font-size: 0.76rem !important;
        line-height: 1.4 !important;
    }

    .eyebrow,
    .mini-label {
        font-size: 0.56rem !important;
        letter-spacing: 0.12em !important;
    }

    .detail-card,
    .case-card,
    .step-card,
    .testimonial-card,
    .form-shell,
    .toolbar-card,
    .trust-shell-head,
    .trust-deposit-card,
    .payment-record-item,
    .crypto-method-card,
    .client-case-item,
    .client-doc-item,
    .timeline-item,
    .upload-tile,
    .mobile-bank-welcome,
    .mobile-bank-balance-card,
    .mobile-bank-case-card,
    .mobile-bank-next-card,
    .mobile-bank-small-card,
    .client-history-row,
    .client-history-stat {
        max-width: 100%;
        min-width: 0;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    .steps-grid,
    .case-grid,
    .stats-grid,
    .testimonials-grid,
    .detail-grid,
    .feature-grid,
    .form-grid,
    .settings-grid,
    .contact-grid,
    .legal-grid,
    .credibility-grid,
    .client-stat-grid,
    .client-dashboard-grid,
    .payment-page-grid,
    .client-review-grid,
    .submit-grid,
    .case-type-grid,
    .timeline-grid,
    .detailed-case-grid,
    .operate-grid,
    .kyc-upload-grid,
    .trust-wallet-grid,
    .crypto-method-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button {
        min-height: 36px !important;
        padding: 8px 11px !important;
        border-radius: 12px !important;
        font-size: 0.76rem !important;
    }

    .input,
    .select,
    .textarea,
    .note-input {
        min-height: 38px !important;
        padding: 8px 10px !important;
        border-radius: 11px !important;
        font-size: 0.78rem !important;
    }

    .pill,
    .status-pill,
    .kicker-chip {
        max-width: 100%;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        font-size: 0.58rem !important;
        line-height: 1.05 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .client-case-list,
    .timeline-list,
    .payment-record-list,
    .client-history-list,
    .client-doc-list,
    .trust-wallet-grid,
    .crypto-method-grid {
        gap: 7px !important;
    }

    .client-case-top .case-ref,
    .client-history-main strong,
    .payment-record-item strong,
    .trust-wallet-name,
    .card-title {
        min-width: 0;
        font-size: 0.82rem !important;
        line-height: 1.16 !important;
        overflow-wrap: anywhere;
    }

    .timeline-item .card-copy,
    .payment-record-item small,
    .client-history-main small,
    .mobile-bank-activity small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .amount,
    .mobile-bank-activity b,
    .client-history-meta strong {
        font-size: 0.72rem !important;
        white-space: nowrap;
    }
}

/* Final auth gate sizing: wider desktop, compact mobile. */
.auth-public-page .auth-public-wrap {
    min-height: 100svh;
    padding: 36px 16px;
}

.auth-public-page .auth-public-card.auth-compact {
    width: min(100%, 460px);
    max-width: 460px;
    padding: 30px 32px;
    border-radius: 20px;
}

.auth-public-page .auth-public-card .card-title {
    margin-bottom: 8px;
    font-size: 1.28rem !important;
    line-height: 1.16 !important;
    text-align: center;
}

.auth-public-page .auth-public-card .card-copy {
    margin-bottom: 18px;
    text-align: center;
}

.auth-public-page .auth-public-card .notice {
    width: fit-content;
    max-width: min(100%, 420px);
    margin: 0 auto 14px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.auth-public-page .auth-brand-logo.brand-logo-image {
    width: min(260px, 70vw);
    height: 90px;
}

.auth-public-page .password-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
}

.auth-public-page .password-toggle {
    height: 46px;
    min-width: 58px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.auth-public-page .divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 16px 0 14px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.auth-public-page .divider-line span {
    flex: 0 0 auto;
    line-height: 1;
}

@media (max-width: 600px) {
    .auth-public-page .auth-public-wrap {
        align-items: start;
        padding: 8px 14px 18px;
    }

    .auth-public-page .auth-public-card.auth-compact {
        width: min(100%, 350px);
        padding: 17px 15px;
        border-radius: 14px;
    }

    .auth-public-page .auth-brand-logo.brand-logo-image {
        width: min(190px, 64vw);
        height: 64px;
    }

    .auth-public-page .public-brand-center {
        width: 100%;
        justify-content: center;
        align-self: center;
        margin-bottom: 8px;
        text-align: center;
    }

    .auth-public-page .auth-public-card .card-title {
        margin-bottom: 5px;
        font-size: 1rem !important;
    }

    .auth-public-page .auth-public-card .card-copy {
        margin-bottom: 12px;
        font-size: 0.74rem !important;
        line-height: 1.32 !important;
    }

    .auth-public-page .auth-public-card .notice {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .auth-public-page .auth-public-card .field,
    .auth-public-page .auth-public-card .field-full {
        gap: 6px;
        margin-bottom: 8px;
    }

    .auth-public-page .auth-public-card .input {
        min-height: 36px !important;
        padding: 7px 10px !important;
        font-size: 16px !important;
    }

    .auth-public-page .password-row {
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 8px;
    }

    .auth-public-page .password-toggle {
        height: 36px;
        min-width: 48px;
        border-radius: 10px;
        font-size: 0.68rem;
    }

    .auth-public-page .auth-public-card .btn {
        min-height: 36px !important;
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }

    .auth-public-page .auth-switch,
    .auth-public-page .auth-links {
        margin-top: 7px;
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .auth-public-page .divider-line {
        gap: 9px;
        margin: 10px 0 9px;
        font-size: 0.68rem;
    }
}
}

/* Final PIN gate sizing for setup and verification pages. */
.client-pin-setup-page .client-pin-setup-shell,
.client-pin-setup-page .verify-pin-shell {
    min-height: 100svh;
    padding: 38px 18px;
}

.client-pin-setup-page .client-pin-setup-card,
.client-pin-setup-page .verify-pin-card {
    width: min(100%, 430px);
    padding: 30px 32px;
    border-radius: 22px;
}

.client-pin-setup-page .section-title,
.client-pin-setup-page .pin-greeting-title {
    margin-bottom: 8px;
    font-size: clamp(1.34rem, 2.25vw, 1.62rem) !important;
    line-height: 1.16 !important;
    text-align: center;
}

.client-pin-setup-page .section-sub {
    margin: 0 0 20px;
    text-align: center;
    color: var(--muted);
    line-height: 1.45;
}

.client-pin-setup-page .setup-pin-form {
    gap: 18px;
}

.client-pin-setup-page .pin-step-label {
    text-align: center;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-pin-setup-page .pin-entry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 58px));
    justify-content: center;
    gap: 12px;
}

.client-pin-setup-page .pin-box {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 16px;
    font-size: 1.45rem;
    text-align: center;
}

.client-pin-setup-page .pin-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.client-pin-setup-page .pin-actions .btn {
    min-width: 132px;
    min-height: 42px;
}

.client-pin-setup-page .pin-help-row {
    margin-top: 14px;
    text-align: center;
}

@media (max-width: 600px) {
    .client-pin-setup-page .client-pin-setup-shell,
    .client-pin-setup-page .verify-pin-shell {
        padding: 18px 14px;
    }

    .client-pin-setup-page .client-pin-setup-card,
    .client-pin-setup-page .verify-pin-card {
        width: min(100%, 350px);
        padding: 18px 15px;
        border-radius: 16px;
    }

    .client-pin-setup-page .section-title,
    .client-pin-setup-page .pin-greeting-title {
        margin-bottom: 5px;
        font-size: 1.14rem !important;
    }

    .client-pin-setup-page .section-sub {
        margin-bottom: 14px;
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .client-pin-setup-page .setup-pin-form {
        gap: 12px;
    }

    .client-pin-setup-page .pin-step-label {
        font-size: 0.64rem;
    }

    .client-pin-setup-page .pin-entry {
        grid-template-columns: repeat(4, minmax(0, 48px));
        gap: 9px;
    }

    .client-pin-setup-page .pin-box {
        width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 13px;
        font-size: 1.2rem;
    }

    .client-pin-setup-page .pin-actions {
        gap: 8px;
    }

    .client-pin-setup-page .pin-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
    }

    .client-pin-setup-page .pin-help-row {
        margin-top: 10px;
    }

    .client-pin-setup-page .pin-help-link {
        font-size: 0.76rem;
    }
}

/* Final public header clearance for inner pages. Home/auth/client shells opt out. */
body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + main,
body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + .page-hero {
    padding-top: 178px !important;
}

@media (max-width: 860px) {
    body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + main,
    body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + .page-hero {
        padding-top: 150px !important;
    }
}

@media (max-width: 600px) {
    body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + main,
    body:not(.home-page):not(.auth-public-page):not(.client-app-body) .site-header + .page-hero {
        padding-top: 132px !important;
    }
}

body.client-dashboard-compact .mobile-bank-actions .btn,
body.client-dashboard-compact .mobile-bank-section-head .btn {
    width: auto;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
}

body.client-dashboard-compact .mobile-bank-section-head .btn {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 0.76rem;
}

@media (max-width: 860px) {
    body.client-dashboard-compact .mobile-bank-actions {
        width: auto;
        justify-content: flex-end;
        align-items: center;
    }

    body.client-dashboard-compact .mobile-bank-actions .btn,
    body.client-dashboard-compact .mobile-bank-section-head .btn {
        min-height: 30px !important;
        padding: 7px 10px !important;
        border-radius: 9px !important;
        font-size: 0.68rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 380px) {
    body.client-dashboard-compact .mobile-bank-actions .btn {
        width: auto;
        max-width: 100%;
    }
}

@media (min-width: 1040px) {
    body.client-dashboard-compact .client-bank-content {
        padding-top: 112px;
    }

    body.client-dashboard-compact .mobile-bank-home {
        max-width: 1160px;
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
        grid-template-areas:
            "welcome balance"
            "case balance"
            "case activity-head"
            "case activity";
        align-items: start;
        gap: 18px;
    }

    body.client-dashboard-compact .mobile-bank-welcome {
        grid-area: welcome;
        min-height: 132px;
        align-items: center;
        padding: 20px 22px;
        border-radius: 16px;
    }

    body.client-dashboard-compact .mobile-bank-welcome h1 {
        font-size: clamp(1.25rem, 1.9vw, 1.65rem);
        letter-spacing: 0;
    }

    body.client-dashboard-compact .mobile-bank-welcome p {
        font-size: 0.84rem;
    }

    body.client-dashboard-compact .mobile-bank-balance-card {
        grid-area: balance;
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px 16px;
        min-height: 250px;
        padding: 20px;
        border-radius: 20px;
    }

    body.client-dashboard-compact .mobile-bank-avatar {
        width: 68px;
        height: 68px;
        border-radius: 20px;
        font-size: 1.06rem;
    }

    body.client-dashboard-compact .mobile-bank-balance-copy strong {
        font-size: clamp(1.28rem, 1.8vw, 1.7rem);
        letter-spacing: -0.02em;
    }

    body.client-dashboard-compact .mobile-bank-mini {
        padding: 13px 14px;
        border-radius: 14px;
    }

    body.client-dashboard-compact .mobile-bank-balance-stats {
        gap: 12px;
        margin-top: 4px;
    }

    body.client-dashboard-compact .mobile-bank-mini span {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    body.client-dashboard-compact .mobile-bank-mini strong {
        margin-top: 6px;
        font-size: 1rem;
    }

    body.client-dashboard-compact .mobile-bank-balance-stats {
        gap: 10px;
    }

    body.client-dashboard-compact .mobile-bank-case-card,
    body.client-dashboard-compact .mobile-bank-next-card {
        grid-area: case;
        min-height: 316px;
        padding: 20px;
        border-radius: 18px;
    }

    body.client-dashboard-compact .mobile-bank-home > .mobile-bank-section-head {
        grid-area: activity-head;
        margin-top: 0;
        align-self: end;
    }

    body.client-dashboard-compact .mobile-bank-activity-list {
        grid-area: activity;
        max-height: 360px;
        padding: 0 4px 0 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.client-dashboard-compact .mobile-bank-activity {
        padding: 10px 11px;
        border-radius: 13px;
    }

    body.client-dashboard-compact .mobile-bank-empty {
        display: grid;
        place-items: center;
        text-align: center;
    }
}

body.client-submit-case-page .toolbar-card,
body.client-track-case-page .toolbar-card {
    max-width: 980px;
    padding: 16px 20px;
    border-radius: 16px;
}

body.client-submit-case-page .toolbar-card .section-title,
body.client-track-case-page .toolbar-card .section-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    line-height: 1.12;
    letter-spacing: 0;
}

body.client-submit-case-page .toolbar-card + div,
body.client-track-case-page .toolbar-card + .notice,
body.client-track-case-page .toolbar-card + .form-shell {
    margin-top: 16px !important;
}

body.client-track-case-page .form-shell,
body.client-submit-case-page .form-shell {
    max-width: 980px;
}

@media (max-width: 860px) {
    body.client-submit-case-page .toolbar-card,
    body.client-track-case-page .toolbar-card {
        padding: 13px 14px;
        border-radius: 14px;
    }

    body.client-submit-case-page .toolbar-card .section-title,
    body.client-track-case-page .toolbar-card .section-title {
        font-size: clamp(1.05rem, 5.5vw, 1.28rem) !important;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 18px;
    }

    body {
        line-height: 1.62;
    }

    .section-intro,
    .hero p,
    .page-hero p,
    .card-copy,
    .meta-line,
    .auth-public-page .auth-public-card .card-copy,
    .auth-public-page .auth-public-card .notice,
    .client-pin-setup-page .section-sub,
    .client-history-main small,
    .payment-record-item small,
    .timeline-item .card-copy,
    .mobile-bank-activity small,
    .why-item p,
    .footer-links a,
    .nav-links a {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    .eyebrow,
    .mini-label,
    .pill,
    .status-pill,
    .kicker-chip,
    .auth-public-page .auth-switch,
    .auth-public-page .auth-links,
    .client-pin-setup-page .pin-step-label,
    .client-history-meta strong,
    .mobile-bank-activity b {
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
    }

    .btn,
    .button,
    .button-secondary,
    .cp-submit-button,
    .input,
    .select,
    .textarea,
    .note-input {
        font-size: 0.92rem !important;
    }

    .card-title,
    .client-case-top .case-ref,
    .client-history-main strong,
    .payment-record-item strong,
    .trust-wallet-name {
        font-size: 1rem !important;
        line-height: 1.22 !important;
    }
}
