:root {
    /* TengaSale design tokens — unified v2 */

    /* Brand — orange is the ONLY action/brand colour */
    --ts-orange:        #ff5a00;
    --ts-orange-dark:   #e64d00;
    --ts-orange-soft:   rgba(255, 90, 0, 0.10);
    --ts-orange-border: rgba(255, 90, 0, 0.22);

    /* Semantic — green=success/paid/approved, red=danger/rejected, amber=pending/warning */
    --ts-success: #16a34a;
    --ts-danger:  #dc2626;
    --ts-warning: #f59e0b;

    /* Backgrounds */
    --ts-bg:          #fffaf7;
    --ts-surface:     #ffffff;
    --ts-surface-soft:#f8fafc;

    /* Text */
    --ts-text:  #101828;
    --ts-black: #101828;
    --ts-muted: #667085;

    /* Borders */
    --ts-border: #e5e7eb;

    /* Legacy aliases — kept for backwards compat with existing templates */
    --orange:      #ff5a00;
    --orange-dark: #e64d00;
    --orange-soft: rgba(255, 90, 0, 0.10);

    --black:         #101828;
    --ink-soft:      #344054;
    --blue-gray:     #667085;
    --blue-gray-soft:#f2f4f7;
    --green:         #16a34a;
    --green-soft:    #dcfce7;
    --red:           #dc2626;
    --red-soft:      #fee2e2;
    --surface:       #ffffff;
    --app-bg:        #fffaf7;
    --border:        #e5e7eb;
    --muted:         #667085;
    --shadow:        0 16px 36px rgba(17, 17, 17, 0.08);
    --app-header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    background: #dfe5eb;
}

body {
    margin: 0;
    background: #dfe5eb;
    color: var(--black);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
}

a {
    color: inherit;
}

.app-shell {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--app-bg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.topbar {
    min-height: 72px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand-left,
.brand-lockup,
.top-actions {
    display: flex;
    align-items: center;
}

.brand-lockup {
    gap: 11px;
    text-decoration: none;
}

.ts-logo,
.logo-mark {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
}

.ts-logo-icon,
img.ts-logo-icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.ts-logo.ts-logo-icon {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
}

.ts-logo-wordmark,
img.ts-logo-wordmark,
.brand-wordmark-img,
.ts-logo-img {
    max-height: 36px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ts-logo-auth,
img.ts-logo-auth {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ts-logo-hero,
img.ts-logo-hero {
    max-width: 280px;
    max-height: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-title {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-wordmark-img,
.auth-wordmark-img {
    max-width: 180px;
    max-height: 36px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.auth-wordmark-img {
    max-width: 220px;
    max-height: 90px;
    margin: 0 auto;
    object-position: center;
}

.brand-tagline {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.top-actions {
    gap: 8px;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--blue-gray);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.logout-form {
    margin: 0;
}

.logout-button:hover,
.notification-button:hover,
.admin-button:hover {
    border-color: var(--blue-gray);
}

.icon-button:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.18);
    outline-offset: 2px;
}

.whatsapp-button {
    color: var(--green);
}

.whatsapp-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.whatsapp-button:hover {
    border-color: var(--green);
    background: var(--green-soft);
}

.content {
    padding: 22px 18px 40px;
}

.greeting {
    margin: 0 0 16px;
    color: var(--black);
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.page-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.flag-chip {
    min-width: 46px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, #111111 0 33%, #d71920 33% 66%, #149954 66% 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
}

.claim-button {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 2px 0 18px;
    border: 0;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 950;
    text-decoration: none;
}

.claim-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.claim-button-ready {
    background: var(--orange);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(255, 90, 0, 0.22);
}

.badge-pending,
.badge-tenga-processing,
.badge-external-processing,
.badge-paid,
.badge-failed,
.badge-reversed,
.badge-cancelled,
.badge-risk-low,
.badge-risk-watch,
.badge-risk-medium,
.badge-risk-high {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.badge-pending { background: #111827; color: #ffffff; }
.badge-tenga-processing { background: #ffd600; color: #111827; }
.badge-external-processing { background: #2563eb; color: #ffffff; }
.badge-paid { background: #16a34a; color: #ffffff; }
.badge-failed { background: #dc2626; color: #ffffff; }
.badge-reversed { background: #4f46e5; color: #ffffff; }
.badge-cancelled { background: #6b7280; color: #ffffff; }
.badge-risk-low { background: #dcfce7; color: #166534; }
.badge-risk-watch { background: #fff7d6; color: #92400e; }
.badge-risk-medium { background: #ffedd5; color: #9a3412; }
.badge-risk-high { background: #fee2e2; color: #991b1b; }

.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
}

.payment-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.payment-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.payment-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.payment-table th,
.payment-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.claim-button-disabled {
    background: #f8fafc;
    color: #7a828c;
    border: 1.5px dashed #d7dde3;
}

.active-review-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.pending-queue-card {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 14px 26px rgba(22, 163, 74, 0.22);
    margin-bottom: 24px;
}

.review-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
}

.review-card-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.review-card-arrow {
    justify-self: end;
    font-size: 30px;
    line-height: 1;
    opacity: 0.84;
}

.active-review-card span {
    font-size: 13px;
    font-weight: 950;
}

.active-review-card strong {
    font-size: 34px;
    line-height: 1;
}

.active-review-card small {
    color: rgba(255, 255, 255, 0.80);
    font-size: 12px;
    font-weight: 800;
}

.hero-card,
.card,
.auth-card,
.deal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(34, 44, 54, 0.05);
}

.hero-card {
    padding: 20px;
    margin-bottom: 18px;
}

.hero-card p {
    max-width: 320px;
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 20px;
    font-weight: 800;
}

.money-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.new-application-button,
.big-button,
.primary-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: var(--orange);
    color: #111111;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.new-application-button {
    width: 100%;
    min-height: 86px;
    margin: 2px 0 22px;
    font-size: 23px;
    letter-spacing: 0;
    box-shadow: 0 14px 26px rgba(255, 106, 0, 0.24);
}

.new-application-button:active,
.primary-button:active,
.btn:active {
    transform: translateY(1px);
}

.menu-list {
    margin: 0 0 24px;
}

.menu-list h2 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.menu-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--black);
    font-size: 18px;
    font-weight: 760;
    text-decoration: none;
}

.menu-row .arrow {
    justify-self: end;
    color: #94a3b8;
    line-height: 1;
}

.menu-row .left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 15px;
    font-weight: 900;
}

.menu-row-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.menu-row-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

/* icon-active: orange brand (default action) */
.icon-active {
    background: var(--orange-soft);
    color: var(--orange);
}

/* icon-success / icon-money: keep semantic green */
.icon-success,
.icon-money {
    background: var(--green-soft);
    color: var(--green);
}

/* icon-alert: semantic red for danger */
.icon-alert {
    background: var(--red-soft);
    color: var(--red);
}

/* icon-tools / icon-payments: orange brand */
.icon-tools,
.icon-payments {
    background: var(--orange-soft);
    color: var(--orange);
}

.arrow {
    color: var(--blue-gray);
    font-size: 22px;
    font-weight: 900;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    position: sticky;
    bottom: 0;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    z-index: 20;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 20px;
}

.auth-brand {
    margin: 0 0 28px;
    text-align: center;
}

.auth-brand .logo-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    object-fit: contain;
}

.auth-brand h1 {
    margin: 0;
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.auth-brand h1 span {
    color: var(--orange-dark);
}

.auth-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 17px;
    font-weight: 700;
}

.auth-card {
    padding: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    margin-bottom: 17px;
    padding: 13px 14px;
    border: 1px solid #cfd6de;
    border-radius: 14px;
    background: #ffffff;
    color: var(--black);
    font: inherit;
    font-size: 17px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(255, 106, 0, 0.18);
    border-color: var(--orange);
}

.password-field {
    position: relative;
    margin-bottom: 17px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 54px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
    display: none;
}

.password-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    right: 6px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--blue-gray);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.16s ease, color 0.16s ease;
}

.password-toggle:hover {
    background: #fff4ec;
    color: var(--orange-dark);
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.18);
    outline-offset: 2px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.primary-button {
    width: 100%;
    margin-top: 2px;
    font-size: 17px;
}

.auth-link {
    display: block;
    margin-top: 18px;
    color: var(--blue-gray);
    font-size: 15px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 16px;
}

.errorlist {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--red-soft);
    color: var(--red);
    list-style-position: inside;
    font-weight: 700;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-left: 5px solid var(--orange);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink-soft);
    font-weight: 700;
}

.alert-success {
    border-left-color: var(--green);
    background: #f4fbf7;
}

.alert-error {
    border-left-color: var(--red);
    background: var(--red-soft);
}

.success-tick,
.error-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 950;
    animation: success-pop 0.34s ease-out both;
}

.success-tick {
    background: var(--green);
}

.error-mark {
    background: var(--red);
}

@keyframes success-pop {
    0% {
        transform: scale(0.58);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card,
.deal-card {
    padding: 18px;
    margin-bottom: 16px;
}

.hq-user-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.stat-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(34, 44, 54, 0.05);
}

.stat-card > span,
.metric-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.stat-card strong {
    font-size: 22px;
}

.earnings-home-card .btn {
    width: 100%;
}

.spin-promo-card,
.support-card {
    display: grid;
    gap: 12px;
}

.disabled-button {
    background: #d7dde3;
    color: #7a828c;
    box-shadow: none;
}

.btn {
    min-height: 48px;
    padding: 12px 16px;
}

.btn-outline {
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
}

.btn-danger {
    background: var(--red);
    color: #ffffff;
}

.btn-danger-soft {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

.btn-blue {
    background: var(--orange);
    color: #ffffff;
}

.back-link,
.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.back-link {
    margin-bottom: 12px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h2,
.card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
}

.section-title-row h2 {
    margin-bottom: 0;
}

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

.mini-table-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.mini-table-row:last-child {
    border-bottom: 0;
}

.mini-table-row strong,
.mini-table-row small {
    display: block;
}

.mini-table-row strong {
    font-size: 15px;
}

.mini-table-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mini-table-row > span {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.link-row {
    color: inherit;
    text-decoration: none;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 10px 14px;
}

.detail-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.detail-list strong {
    text-align: right;
}

.stacked-form,
.action-form,
.pin-form {
    display: grid;
    gap: 12px;
}

.phone-control-hero {
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff5a00, #ffb15f);
    color: #111111;
}

.phone-control-hero h1,
.phone-control-hero p {
    margin: 0;
}

.phone-control-hero h1 {
    font-size: 30px;
    line-height: 1.05;
}

.phone-status-card {
    border-color: rgba(255, 106, 0, 0.28);
}

.phone-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.phone-placeholder-grid button {
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    font-weight: 900;
}

.phone-footer-code {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.green-button {
    background: var(--green);
    color: #ffffff;
}

.blue-button {
    background: var(--blue-gray);
    color: #ffffff;
}

.form-group {
    margin-bottom: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.form-actions .btn {
    flex: 1;
}

.status-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

/* Under review / pending — amber */
.status-pending_review,
.status-under_review {
    background: #fff3df;
    color: #b44a00;
}

/* Needs edit / rejected / sent back — red */
.status-correction_requested,
.status-sent_back,
.status-needs_edit,
.status-rejected {
    background: var(--red-soft);
    color: var(--red);
}

/* Approved / complete — green */
.status-approved,
.status-contract_complete,
.status-completed {
    background: var(--green-soft);
    color: var(--green);
}

/* Active contract steps — orange/amber */
.status-contract_terms,
.status-contract_signature,
.status-imei_entry,
.status-contract_creating,
.status-warranty_check,
.status-locking,
.status-deposit_pending {
    background: rgba(255, 90, 0, 0.10);
    color: var(--ts-orange-dark, #e64d00);
}

.clean-list,
.terms-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-weight: 750;
}

.clean-list li,
.terms-list li {
    margin-bottom: 8px;
}

.correction-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.correction-section h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.progress-step {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.progress-step:last-child {
    border-bottom: 0;
}

.progress-step span {
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

.progress-step.done strong,
.progress-step.done span {
    color: var(--green);
}

.complete-card {
    text-align: center;
}

.complete-card h1 {
    margin: 8px 0 4px;
}

.complete-check {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 46px;
    font-weight: 950;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.amount-positive {
    color: var(--green);
}

.amount-negative {
    color: var(--red);
}

.text-muted {
    color: var(--muted);
}

.soft-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    padding: 12px 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(20, 30, 40, 0.06);
}

.soft-back:hover {
    background: #f7f9fb;
}

.soft-back-icon {
    font-size: 24px;
    line-height: 1;
    color: #111111;
}

.selection-section {
    margin-bottom: 20px;
}

.selection-section h2 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-card-grid,
.spec-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.brand-card,
.spec-card {
    min-height: 78px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #ffffff;
    color: var(--black);
    box-shadow: 0 10px 24px rgba(34, 44, 54, 0.05);
    cursor: pointer;
}

.brand-card {
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 17px;
    font-weight: 950;
    text-align: center;
    overflow-wrap: anywhere;
}

.deals-hero-card {
    border-color: var(--ts-orange-border);
    background: linear-gradient(180deg, #ffffff, #fff8f2);
}

.deals-hero-card h2 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.brand-card-premium {
    gap: 6px;
    min-height: 112px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.brand-card-logo {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ts-orange);
    color: #ffffff;
    font-size: 18px;
}

.brand-card-premium small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.brand-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.deal-select {
    border-color: #d6dde5;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(34, 44, 54, 0.04);
}

.brand-card.active,
.spec-card.active {
    border-color: var(--orange);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.14);
}

.spec-card {
    min-height: 58px;
    padding: 10px;
    font-size: 16px;
    font-weight: 900;
}

.selected-offer-card {
    border-color: rgba(255, 106, 0, 0.35);
}

.deal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
}

.deal-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f0f4f8;
    color: #52677a;
    font-size: 11px;
    font-weight: 900;
}

.deal-mini-badge--lock {
    background: #e8f6ee;
    color: #168a45;
}

.offer-kicker {
    margin: 0 0 4px;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.selected-offer-card h2 {
    margin: 0;
    color: var(--black);
    font-size: 22px;
    text-transform: none;
}

.selected-offer-card input[type="range"] {
    min-height: auto;
    padding: 0;
    accent-color: var(--orange);
}

.early-pay-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--green-soft);
}

.deal-summary-card {
    border-color: rgba(255, 106, 0, 0.35);
}

.tab-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tab-button {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.tab-button.active {
    border-color: var(--orange);
    background: #fff4ec;
    color: var(--black);
}

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

.metric-grid > div {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: var(--blue-gray-soft);
}

.metric-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.transaction-row:last-child {
    border-bottom: 0;
}

.transaction-row p {
    margin: 4px 0;
    color: var(--ink-soft);
    font-weight: 750;
}

.transaction-side {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 900;
}

.view-contract-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid var(--black);
    border-radius: 999px;
    background: #ffffff;
    color: var(--black);
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.payout-breakdown {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--blue-gray-soft);
}

.status-guide {
    display: grid;
    gap: 10px;
}

.status-guide span {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
}

.compact-form {
    display: grid;
    gap: 10px;
}

.compact-form input,
.compact-form select {
    margin-bottom: 0;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.mobile-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
}

.mobile-table th,
.mobile-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.mobile-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.mobile-table tr:last-child td {
    border-bottom: 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.pagination-controls a {
    color: var(--black);
    text-decoration: none;
}

.early-pay-panel h3 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 16px;
}

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

.early-pay-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
}

.early-pay-row strong,
.early-pay-row span,
.early-pay-row small {
    display: block;
}

.early-pay-row strong {
    color: var(--black);
    font-size: 16px;
}

.early-pay-row span {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 850;
}

.early-pay-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.empty-state {
    color: var(--ink-soft);
    font-weight: 750;
}

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

.merchant-correction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-radius: 14px;
    background: #fff8f2;
}

.merchant-correction-item strong,
.merchant-correction-item span {
    display: block;
}

.merchant-correction-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.merchant-correction-edit {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    flex-shrink: 0;
}

.deal-header,
.brand-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-tabs {
    margin-bottom: 18px;
}

.brand-tab {
    flex: 1;
    padding: 18px 10px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #ffffff;
    color: var(--black);
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.brand-tab.active {
    border-color: var(--orange);
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfd6de;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.phone-input span {
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0 12px;
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    font-weight: 900;
}

.phone-input input {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.phone-input:focus-within {
    outline: 3px solid rgba(255, 106, 0, 0.18);
    border-color: var(--orange);
}

.field-error {
    color: #d93025;
    background: #fdeaea;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.field-help {
    margin: -8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.input-prefix-group {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #eef3f8;
    border: 1px solid #cfd8e3;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    font-weight: 800;
    color: #52677a;
}

.input-prefix-group input {
    margin-bottom: 0;
    border-radius: 0 12px 12px 0;
}

.required-star {
    color: #ff5a00;
}

.pricing-card {
    display: block;
    padding: 18px;
}

.pricing-card > input[type="radio"] {
    width: auto;
    min-height: auto;
    margin: 0 0 12px;
    accent-color: var(--orange);
}

.pricing-card input[type="range"] {
    min-height: auto;
    padding: 0;
    accent-color: var(--orange);
}

.price-row,
.range-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.price-row {
    margin: 16px 0 10px;
    color: var(--ink-soft);
}

.range-meta {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.pricing-grid,
.summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pricing-grid div,
.summary-card {
    border-radius: 14px;
    background: var(--blue-gray-soft);
}

.pricing-grid div {
    padding: 12px;
}

.pricing-grid span,
.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.pricing-grid strong,
.summary-card strong {
    display: block;
    margin-top: 4px;
    color: var(--black);
    font-size: 15px;
}

.deposit-inline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.upload-preview {
    width: 100%;
    max-height: 220px;
    margin: 0 0 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.instruction-card p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 750;
}

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

.kyc-section {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(34, 44, 54, 0.05);
}

.kyc-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kyc-section h2 {
    margin: 0 0 4px;
    font-size: 19px;
    letter-spacing: 0;
}

.kyc-section p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.capture-button,
.recapture-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.capture-button {
    background: var(--black);
    color: #ffffff;
}

.recapture-button {
    margin-top: 12px;
    border: 1px solid var(--black);
    background: #ffffff;
    color: var(--black);
}

.capture-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.capture-status.captured {
    background: var(--green-soft);
    color: var(--green);
}

.kyc-preview {
    display: none;
    margin-top: 14px;
}

.camera-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.camera-panel[hidden] {
    display: none;
}

.camera-panel video {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #111111;
    object-fit: cover;
}

.kyc-preview.is-visible {
    display: block;
}

.kyc-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--blue-gray-soft);
    object-fit: cover;
}

.kyc-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.kyc-preview-meta strong {
    font-size: 15px;
}

.next-disabled-note {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.kyc-next-button {
    width: 100%;
    min-height: 58px;
    font-size: 17px;
}

.btn:disabled,
.kyc-next-button:disabled {
    background: #d7dde3;
    color: #7a828c;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 18px;
    color: var(--ink-soft);
}

.check-row input {
    width: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    accent-color: var(--orange);
}

.summary-card {
    margin: 18px 0;
    padding: 14px;
}

.signature-pad {
    width: 100%;
    min-height: 220px;
    margin-bottom: 12px;
    border: 2px dashed #cfd6de;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 220px;
    touch-action: none;
    cursor: crosshair;
}

.signature-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
}

.signature-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    font-size: 13px;
    font-weight: 900;
}

.signature-status.saved {
    background: var(--green-soft);
    color: var(--green);
}

.signature-preview {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.signature-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.signature-disabled-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.detail-signature {
    display: grid;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-signature span {
    color: var(--muted);
    font-weight: 750;
}

.detail-signature img {
    width: 100%;
    max-height: 180px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    object-fit: contain;
}

.list-card {
    padding: 0;
    overflow: hidden;
}

.application-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.application-filter-card {
    margin-bottom: 14px;
}

.application-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e7e3de;
    border-radius: 18px;
    padding: 15px 14px 15px 16px;
    color: #111111;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.application-card:first-child {
    border-radius: 18px;
}

.application-card:last-child {
    border-radius: 18px;
}

.application-card:only-child {
    border-radius: 18px;
}

.application-card:hover {
    background: #fffaf6;
    border-color: #ffd9bd;
}

.application-card:active {
    transform: translateY(1px);
}

.application-card-main {
    min-width: 0;
    flex: 1;
}

.application-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.application-card h3 {
    min-width: 0;
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.application-card p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.application-meta {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.application-reviewer {
    padding-top: 5px;
}

.application-card-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.soft-card-arrow {
    display: grid;
    place-items: center;
    width: 24px;
    height: 100%;
    font-size: 30px;
    line-height: 1;
    color: var(--orange-dark);
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    color: #4f7891;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-pending_review {
    background: #fff4cc;
    color: #8a5a00;
}

.status-under_review {
    background: #ffe8cc;
    color: #ad4f00;
}

.status-needs_edit,
.status-correction_requested {
    background: #fff0e7;
    color: #c2410c;
}

.status-rejected {
    background: var(--red-soft);
    color: var(--red);
}

.status-approved,
.status-contract_complete,
.status-completed {
    background: var(--green-soft);
    color: var(--green);
}

.application-status-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.application-status-card h2 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.25;
}

.application-status-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.submitted-status-card {
    margin-bottom: 12px;
}

.detail-card {
    display: grid;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: var(--muted);
    font-weight: 750;
}

.detail-row strong {
    color: var(--black);
    text-align: right;
}

.review-summary-card,
.review-section {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(34, 44, 54, 0.05);
}

.review-summary-card h2,
.review-section h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.2;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr) 38px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.review-row strong {
    min-width: 0;
    color: var(--black);
    font-size: 15px;
    text-align: right;
    overflow-wrap: anywhere;
}

.review-row.needs-correction,
[data-field-row].needs-correction {
    margin-inline: -8px;
    padding-inline: 8px;
    border-radius: 12px;
    background: #fff2cc;
}

.image-correction {
    width: 100%;
    border-radius: 14px;
    text-transform: capitalize;
}

.review-image-grid {
    display: grid;
    gap: 12px;
}

.signature-preview-image {
    object-fit: contain;
    background: #ffffff;
}

.correction-hidden-list {
    display: none;
}

.stacked-actions {
    display: grid;
    grid-template-columns: 1fr;
}

.application-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.application-row:last-child {
    border-bottom: 0;
}

.application-row h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.application-row p {
    margin: 0 0 4px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 6px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-row strong {
    grid-row: span 3;
    color: var(--orange-dark);
    font-size: 20px;
}

.leaderboard-row span {
    font-weight: 800;
}

.leaderboard-row span + span {
    color: var(--muted);
    font-size: 14px;
}

.spin-card {
    text-align: center;
}

.spin-card h1 {
    margin: 8px 0 18px;
    font-size: 54px;
}

.spin-button {
    width: 100%;
}

.reward-result-card {
    border-color: rgba(255, 106, 0, 0.45);
    background: #fff7f2;
}

.check-question {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.check-question:last-of-type {
    border-bottom: 0;
}

.check-question h2 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.3;
}

.yes-no-grid {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: center;
    gap: 10px;
}

.choice-no,
.choice-yes {
    margin: 0;
}

.choice-no input,
.choice-yes input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-no span,
.choice-yes span,
.choice-indicator {
    min-height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    font-weight: 950;
}

.choice-no input:checked + span {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

.choice-yes input:checked + span {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green);
}

.choice-indicator {
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
}

@media (max-width: 360px) {
    .topbar {
        padding-inline: 14px;
    }

    .brand-tagline {
        display: none;
    }

    .content {
        padding-inline: 14px;
    }

    .menu-row {
        font-size: 16px;
    }
}

/* ============================================================
   SALES APP COMPONENTS ? Phase 1
   ============================================================ */

/* Greeting */
.greeting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.greeting-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.country-flag-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* CLAIM NEXT Button */
.claim-section {
    margin: 20px 0;
}

.btn-claim {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 18px;
    background: var(--green);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.16s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(22, 138, 69, 0.28);
}

.btn-claim:hover:not(:disabled) {
    background: #137a3d;
    transform: translateY(-1px);
}

.btn-claim--disabled {
    background: var(--border);
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    font-size: 17px;
}

.btn-claim--empty {
    background: var(--blue-gray-soft);
    color: var(--blue-gray);
    box-shadow: none;
    cursor: not-allowed;
    font-size: 16px;
}

/* Active Card */
.active-card {
    display: block;
    margin-bottom: 20px;
    padding: 18px 20px 14px;
    background: var(--surface);
    border-radius: 20px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

.active-card__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.active-card__count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.active-card__num {
    font-size: 42px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.active-card__sep {
    font-size: 28px;
    color: var(--border);
    font-weight: 300;
}

.active-card__max {
    font-size: 28px;
    color: var(--muted);
    font-weight: 600;
}

.active-card__bar {
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 10px;
}

.active-card__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--orange);
    transition: width 0.4s ease;
}

.active-card__hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: var(--surface);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.stat-card:hover { border-color: var(--orange); }

.stat-card__num {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--black);
}

.stat-card--pending .stat-card__num { color: var(--orange); }

.stat-card__label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--surface);
    border-radius: 20px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }

.tool-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--border);
    display: grid;
    place-items: center;
}

.tool-card__icon svg {
    width: 24px; height: 24px;
    fill: none; stroke: var(--blue-gray);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.tool-card__icon--orange { background: rgba(255,106,0,0.1); }
.tool-card__icon--orange svg { stroke: var(--orange); }
.tool-card__icon--blue { background: var(--blue-gray-soft); }
.tool-card__icon--blue svg { stroke: var(--blue-gray); }
.tool-card__icon--green { background: var(--green-soft); }
.tool-card__icon--green svg { stroke: var(--green); }

.tool-card__sub {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

/* App Row Card */
.app-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.app-row-card:hover { border-color: var(--orange); }

.app-row-card__left { flex: 1; min-width: 0; }
.app-row-card__name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-card__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.app-row-card__date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.app-row-card__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.chevron-right {
    width: 20px; height: 20px;
    fill: none; stroke: var(--muted);
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.status-badge--review { background: rgba(255,106,0,0.12); color: var(--orange); }
.status-badge--approved { background: var(--green-soft); color: var(--green); }
.status-badge--rejected { background: var(--red-soft); color: var(--red); }
.status-badge--pending { background: var(--blue-gray-soft); color: var(--blue-gray); }

/* Toast / Snackbar */
.toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 460px;
    width: calc(100% - 36px);
    padding: 14px 20px;
    background: var(--black);
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.32);
}

/* Glass Card */
.glass-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 4px 16px rgba(17,17,17,0.05);
    margin-bottom: 16px;
}

/* Step Bar */
.step-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 16px 0 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    z-index: 1;
}

.step-dot svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

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

.step-dot--done {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2.5px;
    background: var(--border);
    min-width: 12px;
}

.step-line--done {
    background: var(--green);
}

/* Yes/No Toggle */
.yes-no-field {
    margin-bottom: 18px;
}

.yes-no-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.3;
}

.yes-no-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-yn {
    height: 56px;
    border: 2.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
}

.btn-yn--yes:hover, .btn-yn--yes.btn-yn--active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green);
}

.btn-yn--no:hover, .btn-yn--no.btn-yn--active {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

/* Review Cards */
.review-card { margin-bottom: 12px; }
.review-card__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.review-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.review-row:last-child { border-bottom: none; }
.review-row span { color: var(--muted); flex-shrink: 0; }
.review-row strong { text-align: right; word-break: break-word; }

/* KYC Images */
.kyc-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.kyc-img-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 10px 8px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    overflow: hidden;
}

.kyc-img-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    background: var(--app-bg);
}

.kyc-img-card--missing {
    background: var(--app-bg);
    border-style: dashed;
    aspect-ratio: 3/4;
    display: grid;
    place-items: center;
}

/* Map preview */
.map-preview { border-radius: 16px; overflow: hidden; }
.map-img { width: 100%; display: block; }

/* Completeness Ring */
.completeness-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: 20px;
    border: 1.5px solid var(--border);
    margin-bottom: 16px;
}

.completeness-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }

.completeness-svg { width: 80px; height: 80px; transform: rotate(-90deg); }

.completeness-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}

.completeness-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.completeness-fill.score-green { stroke: var(--green); }
.completeness-fill.score-orange { stroke: var(--orange); }
.completeness-fill.score-red { stroke: var(--red); }

.completeness-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: 900;
    color: var(--black);
}

.completeness-text strong { font-size: 15px; font-weight: 700; }
.completeness-text p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Checklist check rows */
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.check-row:last-child { border-bottom: none; }

.check-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    display: grid; place-items: center;
}

.check-icon.check-yes {
    background: var(--green-soft);
    border: 2px solid var(--green);
}

.check-icon.check-yes::after {
    content: "?";
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.check-icon.check-no {
    background: var(--red-soft);
    border: 2px solid var(--red);
}

.check-icon.check-no::after {
    content: "?";
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

/* Decision Row */
.decision-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.btn-approve {
    height: 64px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    text-decoration: none;
}

.btn-approve:hover { background: #137a3d; }

.btn-approve svg, .btn-reject svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.btn-reject {
    height: 64px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-reject:hover { background: #b5261e; }

.btn-big { min-height: 64px; }

/* Confirm Screen / Success Screen */
.confirm-screen, .success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 0;
}

.confirm-icon, .success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 3px solid var(--green);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.confirm-icon--approve, .success-icon { }
.success-icon--reject {
    background: var(--red-soft);
    border-color: var(--red);
}

.confirm-icon svg, .success-icon svg {
    width: 40px; height: 40px;
    fill: none; stroke: var(--green);
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.success-icon--reject svg { stroke: var(--red); }

.confirm-heading, .success-heading {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px;
}

.confirm-body, .success-body {
    font-size: 16px;
    color: var(--ink-soft);
    margin: 0 0 8px;
}

.success-sub { font-size: 14px; color: var(--muted); margin: 0 0 8px; }

.confirm-summary { width: 100%; max-width: 360px; text-align: left; }

/* Queue Rule Cards */
.queue-rule-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.queue-rule-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--blue-gray-soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.queue-rule-card__icon svg {
    width: 24px; height: 24px;
    fill: none; stroke: var(--blue-gray);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.queue-rule-card__icon--orange { background: rgba(255,106,0,0.1); }
.queue-rule-card__icon--orange svg { stroke: var(--orange); }
.queue-rule-card__icon--blue { background: var(--blue-gray-soft); }
.queue-rule-card__icon--green { background: var(--green-soft); }
.queue-rule-card__icon--green svg { stroke: var(--green); }

.queue-rule-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.queue-rule-card__body {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* Wallet */
.wallet-balance-card {
    background: var(--orange);
    border-radius: 22px;
    padding: 22px 20px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 28px rgba(255,106,0,0.3);
}

.wallet-balance-card__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

.wallet-balance-card__amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.wallet-currency { font-size: 18px; font-weight: 700; opacity: 0.85; }
.wallet-amount { font-size: 42px; font-weight: 900; line-height: 1; }

.wallet-balance-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.wallet-stat__label { font-size: 11px; opacity: 0.8; display: block; }
.wallet-stat__value { font-size: 15px; font-weight: 700; display: block; }

/* Transaction Rows */
.tx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 14px;
    border: 1.5px solid var(--border);
    margin-bottom: 8px;
}

.tx-row__type { font-weight: 600; font-size: 14px; }
.tx-row__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tx-row__date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tx-row__amount { font-weight: 800; font-size: 16px; white-space: nowrap; }

/* Tab Bar */
.tab-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.tab-item {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}

.tab-item--active, .tab-item:hover {
    border-color: var(--orange);
    background: rgba(255,106,0,0.08);
    color: var(--orange);
}

/* Back Row */
.page-back-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back-link svg {
    width: 20px; height: 20px;
    fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.back-link:hover { color: var(--orange); }

.page-label {
    font-size: 17px;
    font-weight: 800;
}

.review-app-number {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

/* Section header */
.section-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 20px 0 10px;
}

.section-description {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Utilities */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.btn-full { width: 100%; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }

/* Primary / Secondary Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 24px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 20px;
    background: var(--surface);
    color: var(--ink-soft);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--blue-gray); }

/* Form Inputs */
.textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--app-bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--black);
    resize: vertical;
    line-height: 1.5;
}

.textarea:focus { outline: none; border-color: var(--orange); }

.input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--app-bg);
    font-family: inherit;
    font-size: 15px;
    color: var(--black);
}

.input:focus { outline: none; border-color: var(--orange); }

.select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--app-bg);
    font-family: inherit;
    font-size: 15px;
    color: var(--black);
    appearance: none;
    cursor: pointer;
}

.select:focus { outline: none; border-color: var(--orange); }

.field-group { margin-bottom: 14px; }

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.required { color: var(--red); }

.phone-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-prefix {
    height: 52px;
    padding: 0 12px;
    background: var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-soft);
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.empty-state__icon {
    width: 64px; height: 64px;
    background: var(--blue-gray-soft);
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.empty-state__icon svg {
    width: 32px; height: 32px;
    fill: none; stroke: var(--blue-gray);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.empty-sub { font-size: 13px; }

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* ============================================================
   PORTAL COMPONENTS ? Phase 2
   ============================================================ */

/* Contract Card */
.portal-contract-card { padding: 20px; }

.portal-contract-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portal-contract-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 4px;
}

.portal-contract-card__value {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.portal-contract-card__badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.portal-status-badge--active { background: var(--green-soft); color: var(--green); }
.portal-status-badge--overdue { background: var(--red-soft); color: var(--red); }
.portal-status-badge--locked { background: var(--red-soft); color: var(--red); }
.portal-status-badge--completed { background: var(--green-soft); color: var(--green); }
.portal-status-badge--cancelled { background: var(--blue-gray-soft); color: var(--blue-gray); }

/* Progress Bar */
.portal-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 8px;
}

.portal-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.portal-progress-fill--orange { background: var(--orange); }
.portal-progress-fill--green { background: var(--green); }

.portal-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

/* Stats Row */
.portal-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portal-stat__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 3px;
}

.portal-stat__value {
    font-size: 14px;
    font-weight: 700;
}

/* Early Options */
.early-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.early-option-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px 12px;
    position: relative;
    overflow: hidden;
}

.early-option-card--highlight {
    border-color: var(--orange);
    background: rgba(255, 106, 0, 0.04);
}

.early-option-card__term {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.early-option-card__badge {
    display: inline-flex;
    padding: 2px 8px;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.early-option-card__total {
    font-size: 14px;
    font-weight: 800;
}

.early-option-card__sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.quick-amount-btn {
    padding: 10px 4px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: border-color 0.15s, background 0.15s;
}

.quick-amount-btn small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.quick-amount-btn:hover {
    border-color: var(--orange);
    background: rgba(255, 106, 0, 0.06);
}

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.ts-logo-img {
    max-height: 36px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .ts-logo-wordmark,
    img.ts-logo-wordmark,
    .brand-wordmark-img,
    .ts-logo-img {
        max-width: 140px;
        max-height: 32px;
    }
}

/* ============================================================
   PORTAL SUPPORT CARD
   Lives here (style.css) so portal pages can use it.
   website.css duplicates these rules for the public site.
   ============================================================ */

.portal-support-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-support-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
}

.portal-support-card__desc {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 4px;
}

.portal-support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: var(--app-bg);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
    border: 1.5px solid var(--border);
    transition: background 0.12s, border-color 0.12s;
    min-height: 48px;
}

.portal-support-link:hover {
    background: var(--border);
    border-color: var(--muted);
}

/* Hard cap: ALL SVGs inside support links must be icon-sized */
.portal-support-link svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-support-link--whatsapp {
    color: #168a45;
    border-color: rgba(22, 138, 69, 0.2);
    background: rgba(22, 138, 69, 0.05);
}

.portal-support-link--whatsapp:hover {
    background: rgba(22, 138, 69, 0.10);
    border-color: rgba(22, 138, 69, 0.5);
}

/* WhatsApp icon is a filled SVG, not stroked */
.portal-support-link--whatsapp svg {
    stroke: none;
    fill: #168a45;
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE ? Phase 6
   Audited at 360px, 390px, 414px, 768px
   ============================================================ */

/* Ensure the app shell never causes horizontal overflow */
.app-shell {
    overflow-x: hidden;
}

/* Tables should scroll horizontally on small screens */
.table-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 100%;
}

/* Stack table rows on very small screens */
@media (max-width: 480px) {
    .stacked-table thead {
        display: none;
    }

    .stacked-table tr {
        display: block;
        border: 1.5px solid var(--border);
        border-radius: 16px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: var(--surface);
    }

    .stacked-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 5px 0;
        font-size: 14px;
    }

    .stacked-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        flex-shrink: 0;
        margin-right: 12px;
    }
}

/* Improve button touch targets on mobile */
@media (max-width: 520px) {
    .btn, .submit-btn {
        min-height: 48px;
        font-size: 16px;
    }

    /* Prevent topbar text from overflowing */
    .topbar {
        min-height: 64px;
        padding: 10px 14px;
    }

    .brand-title {
        font-size: 17px;
    }

    /* Cards full-width */
    .review-card,
    .application-card,
    .wallet-card {
        border-radius: 16px;
    }

    /* Reduce oversized headings */
    .page-title {
        font-size: 18px;
    }

    /* Portal quick-amount buttons ? 2 cols on very small screens */
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Early settlement options ? single column */
    .early-options-grid {
        grid-template-columns: 1fr !important;
    }

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

    .brand-card,
    .spec-card {
        min-height: 72px;
        border-radius: 14px;
    }

    .deal-header,
    .price-row,
    .range-meta,
    .early-pay-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pricing-grid,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .selected-offer-card h2 {
        font-size: 20px;
        overflow-wrap: anywhere;
    }
}

/* Landscape / 768px tweaks */
@media (min-width: 768px) {
    .app-shell {
        max-width: 760px;
    }
}

/* Prevent footer/version text from overlapping content */
.app-footer-version {
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* ═══════════════════════════════════════════════════════════════
   TENGASALE DESIGN SYSTEM — Reusable Component Classes
   Used across HQ, sales, and finance pages.
   ═══════════════════════════════════════════════════════════════ */

/* ── Extended CSS variables ──────────────────────────────────── */
:root {
    --ts-card: #ffffff;
    --ts-glass-bg: rgba(255, 255, 255, 0.88);
    --ts-glass-border: rgba(255, 255, 255, 0.72);
    --ts-shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
    --ts-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --ts-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.10);
    --ts-radius: 14px;
    --ts-radius-sm: 9px;
    --ts-radius-lg: 20px;
}

/* ── Glass card ──────────────────────────────────────────────── */
.ts-glass-card {
    background: var(--ts-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ts-glass-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow);
}

/* ── Standard card ───────────────────────────────────────────── */
.ts-card {
    background: var(--ts-card);
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow-sm);
    padding: 18px;
}

/* ── Stat card ───────────────────────────────────────────────── */
.ts-stat-card {
    background: var(--ts-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ts-glass-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow-sm);
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ts-stat-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ts-orange-soft);
    border: 1px solid var(--ts-orange-border);
    display: grid;
    place-items: center;
    color: var(--ts-orange);
    flex-shrink: 0;
}

.ts-stat-card__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-stat-card__body { flex: 1; min-width: 0; }

.ts-stat-card__val {
    font-size: 24px;
    font-weight: 900;
    color: var(--ts-black);
    line-height: 1;
    letter-spacing: -0.03em;
}

.ts-stat-card__val--sm { font-size: 16px; letter-spacing: -0.01em; }

.ts-stat-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ts-muted);
    margin-top: 4px;
}

/* ── Icon chip ───────────────────────────────────────────────── */
.ts-icon-chip {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ts-orange-soft);
    border: 1px solid var(--ts-orange-border);
    display: grid;
    place-items: center;
    color: var(--ts-orange);
    flex-shrink: 0;
}

.ts-icon-chip svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-icon-chip--success {
    background: rgba(22, 138, 69, 0.10);
    border-color: rgba(22, 138, 69, 0.20);
    color: var(--ts-success);
}

.ts-icon-chip--danger {
    background: rgba(217, 48, 37, 0.10);
    border-color: rgba(217, 48, 37, 0.20);
    color: var(--ts-danger);
}

/* ── Section card (nav/menu card) ────────────────────────────── */
.ts-section-card {
    background: var(--ts-card);
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow-sm);
    overflow: hidden;
}

/* ── Action button ───────────────────────────────────────────── */
.ts-action-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--ts-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s, transform 0.10s;
    white-space: nowrap;
}

.ts-action-button:hover {
    background: var(--ts-orange-dark);
    transform: translateY(-1px);
}

.ts-action-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ── Mobile grid ─────────────────────────────────────────────── */
.ts-mobile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 14px;
}

/* ── Muted text ──────────────────────────────────────────────── */
.ts-muted {
    color: var(--ts-muted);
    font-size: 13px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.ts-empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1.5px dashed var(--ts-border);
    border-radius: var(--ts-radius);
    background: rgba(255, 255, 255, 0.60);
}

.ts-empty-state__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--ts-orange-soft);
    display: grid;
    place-items: center;
    color: var(--ts-orange);
}

.ts-empty-state__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-empty-state__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ts-black);
    margin-bottom: 6px;
}

.ts-empty-state__body {
    font-size: 13px;
    color: var(--ts-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ── Application Progress Indicator ─────────────────────────── */
.application-progress {
    margin: 0 0 18px;
}

.application-progress-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.application-progress-meta-step {
    color: #374151;
    font-weight: 700;
}

.application-progress-meta-sep {
    color: #94a3b8;
    font-weight: 400;
}

.application-progress-meta-name {
    color: var(--orange);
    font-weight: 700;
}

.application-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.application-progress-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Desktop horizontal mini stepper — hidden on mobile */
.application-stepper {
    display: none;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.application-stepper::-webkit-scrollbar { display: none; }

@media (min-width: 600px) {
    .application-stepper { display: flex; }
}

.application-stepper-sep {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    min-width: 6px;
    max-width: 20px;
}

.application-step {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.application-step-active {
    color: var(--orange);
}

.application-step-complete {
    color: var(--green);
}

.application-step-upcoming {
    color: #94a3b8;
}

/* ── Fix footer overlap with enough bottom padding ───────────── */
.content {
    padding-bottom: 96px !important;
}

/* ── Underwriter Review UI ───────────────────────────────────── */
.uw-canvas {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.uw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.uw-header h1 {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.uw-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 2px;
}

.uw-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(17, 17, 17, 0.05);
}

.uw-card h2 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.uw-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--orange);
    margin: 14px 0 6px;
}

.uw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.uw-warning {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    background: #fff8ed;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 8px 0 0;
    line-height: 1.5;
}

.uw-score {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.score-green { color: var(--green); }
.score-orange { color: var(--orange); }
.score-red { color: var(--red, #d93025); }

/* Identity comparison grid */
.uw-comparison {
    display: grid;
    gap: 10px;
}

.uw-comparison-card {
    background: var(--app-bg);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uw-comparison-card > span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.uw-comparison-card small {
    font-size: 11px;
    color: var(--muted);
}

.uw-comparison-card strong {
    font-size: 14px;
    color: var(--black);
}

.uw-ok {
    color: var(--green);
    font-weight: 900;
}

/* KYC image grid */
.uw-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.uw-image-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uw-image-block img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 12px;
    background: var(--app-bg);
    border: 1px solid var(--border);
    max-width: 100%;
}

/* Missing image placeholder */
.uw-image-missing {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    background: var(--app-bg);
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

.uw-image-missing svg {
    width: 28px;
    height: 28px;
    stroke: var(--border);
    fill: none;
    stroke-width: 1.5;
}

/* KYC image section header row */
.uw-kyc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.uw-kyc-label-row .review-field__label {
    font-size: 11px;
}

/* Call row */
.uw-call-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Hub step checklist */
.uw-step-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uw-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--black);
    background: var(--app-bg);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.14s;
}

.uw-step:hover { background: var(--orange-soft); }

.uw-step > span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.uw-step > b {
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
    font-weight: 400;
}

/* ── Review field row ────────────────────────────────────────── */
.review-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.review-field:last-of-type {
    border-bottom: none;
}

.review-field--needs-correction {
    border-left: 3px solid var(--orange);
    padding-left: 10px;
    margin-left: -10px;
    background: rgba(255, 106, 0, 0.03);
    border-radius: 0 8px 8px 0;
}

.review-field__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.review-field__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.review-field__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    word-break: break-word;
}

.review-field__note {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    margin-top: 2px;
}

/* ── Edit / correction button ────────────────────────────────── */
.review-edit-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.12);
    color: #ff5a00;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.12s;
    min-width: 38px;
}

.review-edit-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-edit-btn:hover,
.review-edit-btn:focus-visible {
    background: rgba(255, 106, 0, 0.22);
    transform: scale(1.08);
    outline: none;
}

.review-edit-btn--active {
    background: #ff5a00;
    color: #fff;
}

.review-edit-btn--active:hover {
    background: #e64d00;
}

/* ── Yes / No review question ────────────────────────────────── */
.review-question {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.review-question:last-of-type {
    border-bottom: none;
}

.review-question__text {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px;
    line-height: 1.45;
}

.review-choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-choice {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--surface);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s, color 0.14s;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.review-choice:hover {
    border-color: var(--muted);
    color: var(--black);
}

.review-choice--yes.is-selected {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.review-choice--no.is-selected {
    background: var(--red, #d93025);
    border-color: var(--red, #d93025);
    color: #fff;
}

.review-choice-tick {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--green);
    background: transparent;
    flex-shrink: 0;
    transition: color 0.14s;
}

.review-choice-tick.is-no {
    color: var(--red, #d93025);
}

/* ── Correction modal ────────────────────────────────────────── */
.correction-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.correction-modal[hidden] {
    display: none;
}

.correction-modal__backdrop {
    flex: 1;
}

.correction-modal__sheet {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.correction-modal__title {
    font-size: 15px;
    font-weight: 900;
    color: var(--black);
    margin: 0;
}

.correction-modal__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    margin: 0;
}

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

/* ── Camera switch button ────────────────────────────────────── */
.camera-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.40);
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.14s;
    align-self: flex-start;
}

.camera-switch-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.camera-switch-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.camera-msg {
    font-size: 11px;
    color: #ffd7b5;
    margin: 4px 0 0;
    min-height: 16px;
}

/* ── Corrections summary in final review ─────────────────────── */
.uw-correction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.uw-correction-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff8ed;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
}

.uw-correction-item__field {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #92400e;
}

.uw-correction-item__note {
    font-size: 12px;
    color: #78350f;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   TengaSale Design System — Component Classes  v2
   These are the canonical shared components used across all pages.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────────────────── */
.ts-page-header {
    margin-bottom: 22px;
}

.ts-page-header__title {
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 800;
    color: var(--ts-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.ts-page-header__sub {
    font-size: 14px;
    color: var(--ts-muted);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Section title ───────────────────────────────────────────── */
.ts-section-title {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 750;
    color: var(--ts-text);
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    line-height: 1.2;
}

/* ── KPI card ────────────────────────────────────────────────── */
.ts-kpi-card {
    background: var(--ts-surface);
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow-sm);
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ts-kpi-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ts-orange-soft);
    border: 1px solid var(--ts-orange-border);
    display: grid;
    place-items: center;
    color: var(--ts-orange);
    flex-shrink: 0;
}

.ts-kpi-card__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-kpi-card__icon--success {
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.20);
    color: var(--ts-success);
}

.ts-kpi-card__icon--danger {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.20);
    color: var(--ts-danger);
}

.ts-kpi-card__icon--warning {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.20);
    color: var(--ts-warning);
}

.ts-kpi-card__body { flex: 1; min-width: 0; }

.ts-kpi-card__val {
    font-size: 26px;
    font-weight: 900;
    color: var(--ts-text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.ts-kpi-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ts-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* ── Action card ─────────────────────────────────────────────── */
.ts-action-card {
    background: var(--ts-surface);
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: var(--ts-shadow-sm);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ts-text);
    transition: box-shadow 0.14s, border-color 0.14s;
}

.ts-action-card:hover {
    border-color: var(--ts-orange-border);
    box-shadow: var(--ts-shadow);
}

/* ── Field card (underwriter review) ─────────────────────────── */
.ts-field-card {
    background: var(--ts-surface);
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ts-field-card__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ts-muted);
}

.ts-field-card__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ts-text);
}

.ts-field-card__hint {
    font-size: 12px;
    color: var(--ts-muted);
    font-style: italic;
}

/* ── Status pill ─────────────────────────────────────────────── */
.ts-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ts-status-pill--success {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.ts-status-pill--danger {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.22);
}

.ts-status-pill--warning {
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.ts-status-pill--orange {
    background: var(--ts-orange-soft);
    color: var(--ts-orange-dark);
    border: 1px solid var(--ts-orange-border);
}

.ts-status-pill--neutral {
    background: var(--ts-surface-soft);
    color: var(--ts-muted);
    border: 1px solid var(--ts-border);
}

/* ── Primary and secondary buttons ──────────────────────────── */
.ts-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--ts-orange);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s, transform 0.10s;
    white-space: nowrap;
    line-height: 1;
}

.ts-btn-primary:hover {
    background: var(--ts-orange-dark);
    transform: translateY(-1px);
}

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

.ts-btn-primary.ts-btn-full { width: 100%; }

.ts-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: transparent;
    color: var(--ts-text);
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid var(--ts-border);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.14s, background 0.14s;
    white-space: nowrap;
    line-height: 1;
}

.ts-btn-secondary:hover {
    border-color: var(--ts-orange);
    color: var(--ts-orange);
    background: var(--ts-orange-soft);
}

.ts-btn-secondary.ts-btn-full { width: 100%; }

/* ── Edit / send-back icon button ────────────────────────────── */
.ts-edit-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ts-orange-soft);
    border: 1.5px solid var(--ts-orange-border);
    color: var(--ts-orange);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.13s, transform 0.10s;
    padding: 0;
    min-width: 40px;
}

.ts-edit-btn:hover {
    background: var(--ts-orange);
    color: #ffffff;
    transform: scale(1.08);
}

.ts-edit-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Active/flagged state — stays orange, not amber */
.ts-edit-btn--active {
    background: var(--ts-orange);
    border-color: var(--ts-orange);
    color: #ffffff;
}
.ts-edit-btn--active:hover {
    background: var(--ts-orange-dark);
    border-color: var(--ts-orange-dark);
    color: #ffffff;
}

/* ── Post-approval next-step banner ─────────────────────────── */
.app-next-step-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1.5px solid rgba(22, 163, 74, 0.3);
    border-radius: 14px;
    margin-bottom: 16px;
}

.app-next-step-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.app-next-step-banner__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-next-step-banner__body {
    flex: 1;
    min-width: 0;
}

.app-next-step-banner__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #14532d;
}

.app-next-step-banner__sub {
    font-size: 0.82rem;
    color: #166534;
    margin-top: 2px;
}

.app-next-step-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.13s;
}

.app-next-step-banner__btn:hover {
    background: #15803d;
}

/* ── Yes / No decision controls ─────────────────────────────── */
.ts-yn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ts-border);
}

.ts-yn-group:last-child { border-bottom: none; }

.ts-yn-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ts-text);
    line-height: 1.4;
}

.ts-yn-hint {
    font-size: 12px;
    color: var(--ts-muted);
    font-style: italic;
    margin-top: 1px;
}

.ts-yn-buttons {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.ts-yn-btn {
    min-width: 72px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--ts-border);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ts-yn-btn--yes.ts-yn-btn--active {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.40);
    color: #15803d;
}

.ts-yn-btn--no.ts-yn-btn--active {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.40);
    color: #b91c1c;
}

.ts-yn-comment {
    margin-top: 8px;
    display: none;
}

.ts-yn-comment.ts-yn-comment--visible { display: block; }

.ts-yn-comment textarea {
    width: 100%;
    min-height: 70px;
    border: 1.5px solid var(--ts-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ts-text);
    resize: vertical;
    background: var(--ts-surface-soft);
}

.ts-yn-comment textarea:focus {
    outline: none;
    border-color: var(--ts-orange);
}



/* =====================================================================
   TENGASALE SILICON VALLEY POLISH v2.0
   KulaSell-level: white, calm, sharp, card-based
   All string literals are pure ASCII to guarantee UTF-8 safety.
   ===================================================================== */

/* App background: light grey */
html,
body {
    background: #f1f5f9;
}

.app-shell {
    background: #f1f5f9;
}

/* Topbar page title */
.topbar-title {
    font-size: 17px;
    font-weight: 800;
    color: #101828;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notification bell live badge */
.notification-count--live {
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: 2px;
    right: 2px;
    line-height: 1;
    pointer-events: none;
}

/* KulaSell-style brand card grid */
.brand-card-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 18px 18px;
}

.brand-card-v2 {
    background: linear-gradient(145deg, #fff 55%, var(--brand-bg, #f8fafc));
    border: 1.5px solid color-mix(in srgb, var(--brand-color, #94a3b8) 20%, #e5e7eb);
    border-radius: 16px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color var(--motion-quick, 140ms) ease-out, box-shadow var(--motion-quick, 140ms) ease-out, transform var(--motion-quick, 140ms) ease-out;
    text-decoration: none;
    color: #101828;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.brand-card-v2:active {
    transform: scale(0.98);
    box-shadow: none;
}

@media (hover:hover) {
    .brand-card-v2:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-color, #315be8) 42%, #dbe2ee); box-shadow: 0 10px 24px rgba(31,42,68,.08); }
    .brand-card-v2:hover .brand-card-v2__arrow { transform: translateX(3px); }
}

.brand-card-v2.active,
.brand-card-v2:focus-visible {
    border-color: var(--brand-color, #ff5a00);
    box-shadow: 0 0 0 3px var(--brand-bg, rgba(255,90,0,0.15));
    background: var(--brand-bg, #fff8f5);
}

.brand-card-v2__logo-img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.brand-card-v2__logo-stage { min-height: 76px; width:100%; display:flex; align-items:center; justify-content:center; }

.brand-card-v2__logo-text {
    width: 64px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-color, #101828);
    background: var(--brand-bg, #f8fafc);
    border-radius: 10px;
}

/* Hide the letter when a real logo image is shown */
.brand-card-v2__logo-img ~ .brand-card-v2__logo-text {
    display: none;
}

.brand-card-v2__sub {
    font-size: 12px;
    color: #526078;
    font-weight: 700;
}

.brand-card-v2__footer { width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.brand-card-v2__arrow { width:18px; height:18px; fill:none; stroke:var(--brand-color,#315be8); stroke-width:2.2; transition:transform var(--motion-quick,140ms) ease-out; }

/* Product card list */
.product-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 18px 18px;
}

.product-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color var(--motion-quick,140ms) ease-out, box-shadow var(--motion-normal,240ms) ease-out, transform var(--motion-quick,140ms) ease-out;
    animation: productCardReveal var(--motion-reveal,360ms) ease-out both;
    text-decoration: none;
    color: #101828;
}

.product-card:active {
    border-color: #315be8;
    transform:scale(.99);
}

.product-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.product-card__name {
    font-size: 16px;
    font-weight: 800;
    color: #101828;
    flex: 1;
}

.product-card__specs {
    font-size: 13px;
    color: #667085;
    margin-bottom: 12px;
}

.product-card__price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card__price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card__price-label {
    font-size: 11px;
    color: #667085;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card__price-value {
    font-size: 14px;
    font-weight: 800;
    color: #101828;
}

.product-card__price-item:nth-child(2) .product-card__price-value { color:#b66c08; }
@keyframes productCardReveal { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .brand-card-v2,.brand-card-v2__arrow,.product-card { animation:none; transition:none; } }

.deal-config-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 18px 16px;padding:8px;border:1px solid #e7ebf3;border-radius:14px;background:#fff}
.deal-config-progress span{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:7px 4px;border-radius:9px;color:#7b879c;font-size:10px;font-weight:750;white-space:nowrap}
.deal-config-progress b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#eef2f7;color:#667085;font-size:9px}
.deal-config-progress .is-active{background:#eef2ff;color:#315be8}.deal-config-progress .is-active b{background:#315be8;color:#fff}.deal-config-progress .is-complete{color:#15803d}.deal-config-progress .is-complete b{background:#dcfce7;color:#15803d}
.product-card__brand-action{display:grid;grid-template-columns:auto 18px;align-items:center;justify-items:end;gap:4px 8px;flex:0 0 auto}.product-card__brand-logo{display:block;width:auto;max-width:72px;max-height:23px;object-fit:contain}.product-card__availability{grid-column:1;font-size:9px;font-weight:750;color:#15803d;background:#effbf4;border-radius:999px;padding:3px 6px}.product-card__arrow{grid-column:2;grid-row:1/3;color:#94a3b8;transition:transform var(--motion-quick,140ms) ease-out}.product-card:hover .product-card__arrow{transform:translateX(3px)}
.deal-detail-brand-logo{display:block;width:auto;max-width:92px;max-height:28px;object-fit:contain;margin-bottom:2px}.deal-detail-brand-logo[hidden]{display:none}
.deal-savings-summary{display:grid;grid-template-columns:1fr auto;gap:3px 10px;margin:10px 0;padding:11px 12px;border:1px solid #e5eaf3;border-radius:12px;background:#f8fafc}.deal-savings-summary span{font-size:11px;font-weight:700;color:#667085}.deal-savings-summary strong{color:#101828;font-size:13px}.deal-savings-summary small{grid-column:1/-1;color:#7b879c;font-size:10px}.deal-savings-summary.has-savings{border-color:#ccebd8;background:#f0fbf5}.deal-savings-summary.has-savings strong{color:#15803d}
#dd-apply-btn[aria-disabled="true"]{pointer-events:none;opacity:.7}
@media(max-width:360px){.deal-config-progress{margin-inline:12px}.deal-config-progress span{font-size:0}.deal-config-progress b{font-size:9px}.product-card__price-grid[style]{grid-template-columns:1fr 1fr!important}.product-card__brand-logo{max-width:58px}}
@media(prefers-reduced-motion:reduce){.product-card__arrow{transition:none}}

/* Term selector chips */
.term-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.term-chip {
    flex: 1;
    padding: 8px 4px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: #667085;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.term-chip.active,
.term-chip:focus-visible {
    border-color: #ff5a00;
    background: rgba(255, 90, 0, 0.08);
    color: #ff5a00;
}

/* Page header */
.ts-page-header {
    padding: 18px 18px 10px;
}

.ts-page-header__title {
    font-size: 22px;
    font-weight: 900;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.25;
}

.ts-page-header__sub {
    font-size: 13px;
    color: #667085;
    margin: 0;
    line-height: 1.5;
}

/* Section divider label */
.ts-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 14px 18px 6px;
}

/* Application list cards */
.app-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 14px;
}

.app-card-v2 {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #101828;
    transition: border-color 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.app-card-v2:active {
    border-color: #ff5a00;
}

.app-card-v2__photo {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1.5px solid #e5e7eb;
}

.app-card-v2__photo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: #f1f5f9;
    border: 1.5px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.app-card-v2__body {
    flex: 1;
    min-width: 0;
}

.app-card-v2__name {
    font-size: 15px;
    font-weight: 800;
    color: #101828;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-v2__id {
    font-size: 12px;
    color: #667085;
    margin-bottom: 4px;
}

.app-card-v2__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-card-v2__date {
    font-size: 11px;
    color: #94a3b8;
}

.app-card-v2__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* Status chips */
.ts-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ts-status-chip--pending {
    background: #fef9ee;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ts-status-chip--review {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ts-status-chip--approved {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ts-status-chip--rejected {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ts-status-chip--active {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ts-status-chip--completed {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ts-status-chip--draft {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ts-status-chip--sent_back {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.ts-status-chip--defaulted {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Tab bar */
.ts-tabs-v2 {
    display: flex;
    border-bottom: 1.5px solid #e5e7eb;
    background: #ffffff;
    padding: 0 18px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-tabs-v2::-webkit-scrollbar { display: none; }

.ts-tab-v2 {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #667085;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.ts-tab-v2--active,
.ts-tab-v2:focus-visible {
    color: #ff5a00;
    border-bottom-color: #ff5a00;
}

/* Notification list */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 14px 24px;
}

.notif-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.notif-card--unread {
    border-color: rgba(255, 90, 0, 0.30);
    background: rgba(255, 90, 0, 0.03);
}

.notif-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-dot--info    { background: #3b82f6; }
.notif-dot--success { background: #16a34a; }
.notif-dot--warning { background: #f59e0b; }
.notif-dot--danger  { background: #dc2626; }

.notif-card__body { flex: 1; min-width: 0; }

.notif-card__title {
    font-size: 14px;
    font-weight: 850;
    color: #101828;
    margin-bottom: 2px;
}

.notif-card__sub {
    font-size: 13px;
    color: #667085;
    margin-bottom: 4px;
}

.notif-card__meta {
    font-size: 11px;
    color: #94a3b8;
}

.notif-card__actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: flex-end;
    justify-content: flex-end;
    flex-shrink: 0;
}

.notif-card__actions form {
    margin: 0;
}

.notif-mark-all {
    margin: 0 18px 12px;
}

@media (max-width: 430px) {
    .notif-card {
        grid-template-columns: auto 1fr;
    }

    .notif-card__actions {
        grid-column: 2;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

/* Notification dropdown */
.notif-dropdown {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    width: 320px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
}

.notif-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.notif-dropdown__title {
    font-size: 15px;
    font-weight: 800;
    color: #101828;
}

.notif-dropdown__list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-drop-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.notif-drop-item--unread {
    background: rgba(255, 90, 0, 0.03);
}

.notif-drop-item__dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
}

.notif-drop-item__body { flex: 1; min-width: 0; }

.notif-drop-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-drop-item__time {
    font-size: 11px;
    color: #94a3b8;
}

.notif-drop-empty {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.notif-dropdown__footer {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #ff5a00;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}

/* ts-badge */
.ts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.ts-badge--orange {
    background: rgba(255, 90, 0, 0.12);
    color: #ff5a00;
}

.ts-badge--green {
    background: #dcfce7;
    color: #166534;
}

.ts-badge--red {
    background: #fee2e2;
    color: #991b1b;
}

.ts-badge--grey {
    background: #f1f5f9;
    color: #64748b;
}

/* Empty state */
.ts-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #94a3b8;
}

.ts-empty-state__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #cbd5e1;
}

.ts-empty-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

/* Contract structured cards */
.contract-section-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    margin: 0 14px 10px;
    overflow: hidden;
}

.contract-section-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    gap: 10px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.contract-section-card__title {
    font-size: 14px;
    font-weight: 800;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contract-section-card__chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.contract-section-card__chevron--open {
    transform: rotate(180deg);
}

.contract-section-card__body {
    padding: 0 16px 14px;
    display: none;
}

.contract-section-card__body--open {
    display: block;
}

.contract-field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contract-field-row:last-child {
    border-bottom: none;
}

.contract-field-label {
    font-size: 12px;
    color: #667085;
    font-weight: 600;
    flex-shrink: 0;
    max-width: 45%;
}

.contract-field-value {
    font-size: 13px;
    color: #101828;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

/* Queue card */
.queue-card-v2 {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    margin: 0 14px 10px;
    overflow: hidden;
    text-decoration: none;
    color: #101828;
    display: block;
    transition: border-color 0.12s;
}

.queue-card-v2:active {
    border-color: #ff5a00;
}

.queue-card-v2__header {
    padding: 14px 16px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.queue-card-v2__customer {
    font-size: 16px;
    font-weight: 800;
    color: #101828;
}

.queue-card-v2__app-id,
.queue-card-v2__merchant {
    font-size: 12px;
    color: #667085;
    margin-top: 2px;
}

.queue-card-v2__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 16px 10px;
}

.queue-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.queue-badge--new       { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.queue-badge--urgent    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.queue-badge--sent_back { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.queue-badge--resub     { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.queue-badge--high_risk { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.queue-badge--review    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.queue-card-v2__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px 12px;
    border-top: 1px solid #f1f5f9;
}

.queue-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
}

.queue-meta-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.queue-meta-value {
    font-size: 13px;
    font-weight: 700;
    color: #101828;
}

.queue-card-v2__actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
}

/* Summary card */
.ts-summary-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    margin: 0 14px 12px;
    padding: 18px 16px;
}

.ts-summary-card__label {
    font-size: 11px;
    color: #667085;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ts-summary-card__value {
    font-size: 28px;
    font-weight: 900;
    color: #101828;
    line-height: 1.1;
}

.ts-summary-card__sub {
    font-size: 12px;
    color: #667085;
    margin-top: 4px;
}

/* Wallet balance card */
.ts-wallet-card {
    background: #101828;
    border-radius: 18px;
    margin: 0 14px 14px;
    padding: 22px 20px;
    color: #ffffff;
}

.ts-wallet-card__label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.ts-wallet-card__amount {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.ts-wallet-card__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* KYC image grid */
.kyc-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 14px;
}

.kyc-image-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kyc-image-item__label {
    font-size: 11px;
    color: #667085;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kyc-image-item__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f1f5f9;
    cursor: pointer;
}

.kyc-image-item__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    border: 1.5px dashed #e5e7eb;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

/* Image modal lightbox */
.img-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.90);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.img-modal-overlay[hidden] { display: none; }

.img-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.img-modal-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
}

.img-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}

.img-modal-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* Contact hub */
.contact-hub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-hub-row:last-child { border-bottom: none; }

.contact-hub-row__body { flex: 1; min-width: 0; }

.contact-hub-row__name {
    font-size: 13px;
    font-weight: 700;
    color: #101828;
}

.contact-hub-row__phone {
    font-size: 12px;
    color: #667085;
}

.contact-hub-row__rel {
    font-size: 11px;
    color: #94a3b8;
}

.contact-hub-row__actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.contact-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #101828;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.12s;
}

.contact-action-btn--call  { border-color: #bfdbfe; color: #1d4ed8; }
.contact-action-btn--wa    { border-color: #bbf7d0; color: #166534; }

/* IMEI/Warranty status pills */
.imei-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.imei-status-pill--match    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.imei-status-pill--mismatch { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.imei-status-pill--pending  { background: #fef9ee; color: #92400e; border: 1px solid #fde68a; }
.imei-status-pill--unchecked{ background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.imei-status-pill--override { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

/* Decision command center */
.decision-center {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    margin: 0 14px 14px;
    overflow: hidden;
}

.decision-center__header {
    background: #101828;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.decision-center__title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.decision-score {
    font-size: 22px;
    font-weight: 900;
    color: #ff5a00;
}

.decision-center__body {
    padding: 16px 18px;
}

.decision-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.decision-item:last-child { border-bottom: none; }

.decision-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.decision-item--ok    .decision-item__icon { color: #16a34a; }
.decision-item--warn  .decision-item__icon { color: #f59e0b; }
.decision-item--block .decision-item__icon { color: #dc2626; }

.decision-center__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #f1f5f9;
}

/* Setup health cards */
.health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 14px;
}

.health-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 14px;
}

.health-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.health-card__dot--green  { background: #16a34a; }
.health-card__dot--yellow { background: #f59e0b; }
.health-card__dot--red    { background: #dc2626; }
.health-card__dot--grey   { background: #cbd5e1; }

.health-card__name {
    font-size: 12px;
    font-weight: 800;
    color: #101828;
    margin-bottom: 2px;
}

.health-card__status {
    font-size: 11px;
    color: #667085;
}

/* Progress stepper */
.ts-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 18px;
}

.ts-progress-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.ts-progress-step__line {
    position: absolute;
    left: 9px;
    top: 28px;
    bottom: -10px;
    width: 2px;
    background: #e5e7eb;
}

.ts-progress-step:last-child .ts-progress-step__line { display: none; }

.ts-progress-step__dot {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    margin-top: 1px;
}

.ts-progress-step__dot--done    { background: #16a34a; color: #ffffff; }
.ts-progress-step__dot--current { background: #ff5a00; color: #ffffff; }
.ts-progress-step__dot--pending { background: #e5e7eb; color: #94a3b8; }

.ts-progress-step__body { flex: 1; }

.ts-progress-step__title {
    font-size: 13px;
    font-weight: 700;
    color: #101828;
}

.ts-progress-step__sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Sticky footer actions */
.ts-sticky-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1.5px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.ts-sticky-actions .btn {
    flex: 1;
}

/* Button size variants */
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-ghost {
    background: transparent;
    color: #667085;
    border: 1.5px solid #e5e7eb;
}

/* =====================================================================
   END SILICON VALLEY POLISH v2.0
   ===================================================================== */

/* ═══════════════════════════════════════════════════════════════════
   TENGASALE PREMIUM POLISH v3.0
   Questionnaire, Call Screens, Empty States, Pills, Recording UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Premium Yes/No Controls ─────────────────────────────────────── */
.yes-no-field,
.ts-yn-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f4f8;
}
.yes-no-field:last-child,
.ts-yn-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.yes-no-label,
.ts-yn-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #101828;
    line-height: 1.4;
    margin-bottom: 10px;
}
.ts-yn-hint {
    font-size: 12px;
    color: #667085;
    margin: -6px 0 10px;
    line-height: 1.4;
}
.yes-no-buttons,
.ts-yn-buttons {
    display: flex;
    gap: 8px;
}
.btn-yn,
.ts-yn-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn-yn--no,
.ts-yn-btn--no {
    color: #dc2626;
}
.btn-yn--no:hover,
.ts-yn-btn--no:hover {
    border-color: #dc2626;
    background: rgba(220,38,38,.06);
}
.btn-yn--no.btn-yn--active,
.ts-yn-btn--no.ts-yn-btn--active {
    border-color: #dc2626;
    background: rgba(220,38,38,.08);
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.btn-yn--yes,
.ts-yn-btn--yes {
    color: #16a34a;
}
.btn-yn--yes:hover,
.ts-yn-btn--yes:hover {
    border-color: #16a34a;
    background: rgba(22,163,74,.06);
}
.btn-yn--yes.btn-yn--active,
.ts-yn-btn--yes.ts-yn-btn--active {
    border-color: #16a34a;
    background: rgba(22,163,74,.08);
    color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.ts-yn-comment {
    margin-top: 8px;
}
.ts-yn-comment textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    resize: none;
    color: #101828;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.ts-yn-comment textarea:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 3px rgba(255,90,0,.10);
}

/* ── Premium Recording Card ──────────────────────────────────────── */
.ts-recording-pilot-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(245,158,11,.07);
    border: 1.5px solid rgba(245,158,11,.20);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin: 10px 0 0;
    line-height: 1.5;
}
.ts-recording-pilot-note svg { flex-shrink: 0; color: #f59e0b; margin-top: 1px; }

.ts-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #101828;
    cursor: pointer;
    line-height: 1.5;
}
.ts-consent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #ff5a00;
    cursor: pointer;
}
.ts-field-optional {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.ts-recording-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.ts-recording-empty svg { opacity: .5; }

.ts-badge--soft {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 99px;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Address Confidence Items ────────────────────────────────────── */
.ts-address-confidence-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.ts-confidence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}
.ts-confidence-item span { color: #667085; font-weight: 700; }
.ts-confidence-item strong { font-weight: 800; }
.ts-confidence-item--ok {
    background: rgba(22,163,74,.07);
    border: 1.5px solid rgba(22,163,74,.20);
}
.ts-confidence-item--ok strong { color: #16a34a; }
.ts-confidence-item--missing {
    background: rgba(220,38,38,.06);
    border: 1.5px solid rgba(220,38,38,.18);
}
.ts-confidence-item--missing strong { color: #dc2626; }

/* ── Premium Empty States ────────────────────────────────────────── */
.ts-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}
.ts-empty-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.ts-empty-state__title {
    font-size: 16px;
    font-weight: 900;
    color: #101828;
    margin: 0;
}
.ts-empty-state__sub {
    font-size: 13px;
    color: #667085;
    margin: 0;
    line-height: 1.5;
    max-width: 280px;
}
.ts-empty-state__action {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ff5a00;
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s;
}
.ts-empty-state__action:hover { background: #e64d00; }

/* ── Premium Status Pills ────────────────────────────────────────── */
.ts-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.ts-pill--green   { background: rgba(22,163,74,.10);   color: #16a34a;  border: 1px solid rgba(22,163,74,.20);  }
.ts-pill--red     { background: rgba(220,38,38,.10);   color: #dc2626;  border: 1px solid rgba(220,38,38,.20);  }
.ts-pill--amber   { background: rgba(245,158,11,.10);  color: #d97706;  border: 1px solid rgba(245,158,11,.20); }
.ts-pill--blue    { background: rgba(29,78,216,.10);   color: #1d4ed8;  border: 1px solid rgba(29,78,216,.20);  }
.ts-pill--orange  { background: rgba(255,90,0,.10);    color: #ff5a00;  border: 1px solid rgba(255,90,0,.20);   }
.ts-pill--gray    { background: #f1f5f9;               color: #64748b;  border: 1px solid #e2e8f0;              }
.ts-pill--purple  { background: rgba(124,58,237,.10);  color: #7c3aed;  border: 1px solid rgba(124,58,237,.20); }

/* ── Premium Card ────────────────────────────────────────────────── */
.ts-premium-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(15,23,42,.06);
    overflow: hidden;
}
.ts-premium-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #f0f4f8;
}
.ts-premium-card__title {
    font-size: 14px;
    font-weight: 900;
    color: #101828;
    margin: 0;
}
.ts-premium-card__sub {
    font-size: 12px;
    color: #667085;
    margin: 2px 0 0;
}
.ts-premium-card__body { padding: 16px 20px; }

/* ── Section headings ────────────────────────────────────────────── */
.ts-section-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin: 0 0 6px;
}
.ts-page-title {
    font-size: 22px;
    font-weight: 900;
    color: #101828;
    margin: 0 0 4px;
    line-height: 1.2;
}
.ts-page-subtitle {
    font-size: 14px;
    color: #667085;
    margin: 0;
    line-height: 1.5;
}

/* ── MWK Money formatting helper class ──────────────────────────── */
.ts-money {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.ts-money--large { font-size: 1.25em; }
.ts-money--small { font-size: 0.85em; color: #667085; }

/* ── Questionnaire step pill ─────────────────────────────────────── */
.ts-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,90,0,.08);
    border: 1.5px solid rgba(255,90,0,.20);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 900;
    color: #ff5a00;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

/* ── Guarantor / Action large buttons polish ─────────────────────── */
.action-btn-large {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.action-btn-large.primary {
    background: #ff5a00;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,90,0,.28);
}
.action-btn-large.primary:hover { background: #e64d00; }
.action-btn-large.primary:active { transform: scale(.98); }
.action-btn-large.whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,.25);
}
.action-btn-large.whatsapp:hover { background: #20bd5a; }
.btn-label { font-size: 13px; }

/* ── Review card polish ──────────────────────────────────────────── */
.ts-review-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    padding: 16px;
    margin-bottom: 14px;
}
.ts-review-card__title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #101828;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ts-review-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}
.ts-review-row:last-child { border-bottom: none; }
.ts-review-row > span { color: #667085; font-weight: 700; flex-shrink: 0; }
.ts-review-row > strong { color: #101828; font-weight: 800; text-align: right; }

/* ── Call script card ────────────────────────────────────────────── */
.ts-call-script {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.ts-call-script__label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0369a1;
    margin-bottom: 8px;
}
.ts-call-script__text {
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ── Check note ──────────────────────────────────────────────────── */
.ts-check-note {
    font-size: 13px;
    color: #667085;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 14px;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
}

/* ── Guarantor strength hints ────────────────────────────────────── */
.ts-guarantor-hints {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    border: 1.5px solid #e5e7eb;
}
.ts-guarantor-hints ul {
    margin: 6px 0 0 16px;
    padding: 0;
}
.ts-guarantor-hints li {
    font-size: 13px;
    color: #667085;
    margin-bottom: 4px;
    line-height: 1.5;
}
.ts-guarantor-hints li:last-child { margin-bottom: 0; }

/* ── Back row ────────────────────────────────────────────────────── */
.ts-back-row {
    padding: 8px 0 4px;
}
.ts-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #667085;
    text-decoration: none;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
}
.ts-back-btn:hover { color: #101828; }
.ts-back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* ── App number label ────────────────────────────────────────────── */
.ts-app-num {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 12px;
    padding: 0 2px;
}

/* ── Section description ─────────────────────────────────────────── */
.ts-section-desc {
    font-size: 14px;
    color: #667085;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* ── Call section grid ───────────────────────────────────────────── */
.ts-call-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ts-call-section-card {
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
}
.ts-call-section-card strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.ts-call-section-card p {
    font-size: 13px;
    font-weight: 800;
    color: #101828;
    margin: 0;
}

/* ── Recording item card ─────────────────────────────────────────── */
.ts-recording-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ts-recording-item {
    background: #f8fafc;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
}
.ts-recording-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.ts-recording-item__name { font-size: 13px; font-weight: 800; color: #101828; }
.ts-recording-item__meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ts-recording-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}
.ts-recording-status--pending  { background: rgba(245,158,11,.10); color: #d97706; }
.ts-recording-status--reviewed { background: rgba(22,163,74,.10);  color: #16a34a; }
.ts-recording-status--flagged  { background: rgba(220,38,38,.10);  color: #dc2626; }

/* ── Recording card header ───────────────────────────────────────── */
.ts-recording-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

/* ── Badge variants ──────────────────────────────────────────────── */
.ts-badge--green  { background: rgba(22,163,74,.10);  color: #16a34a;  border: 1px solid rgba(22,163,74,.20);  }
.ts-badge--orange { background: rgba(255,90,0,.10);   color: #ff5a00;  border: 1px solid rgba(255,90,0,.20);   }
.ts-badge--blue   { background: rgba(29,78,216,.10);  color: #1d4ed8;  border: 1px solid rgba(29,78,216,.20);  }
.ts-badge--amber  { background: rgba(245,158,11,.10); color: #d97706;  border: 1px solid rgba(245,158,11,.20); }
.ts-badge--red    { background: rgba(220,38,38,.10);  color: #dc2626;  border: 1px solid rgba(220,38,38,.20);  }
.ts-badge--gray   { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ── Meta small ──────────────────────────────────────────────────── */
.ts-meta-small {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ── Spacing helpers ─────────────────────────────────────────────── */
.ts-mt-8  { margin-top:  8px !important; }
.ts-mt-16 { margin-top: 16px !important; }
.ts-mb-8  { margin-bottom:  8px !important; }
.ts-mb-16 { margin-bottom: 16px !important; }

/* ── Primary/secondary buttons ───────────────────────────────────── */
.ts-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 20px;
    background: #ff5a00;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255,90,0,.28);
    transition: background .15s, transform .1s;
}
.ts-btn-primary:hover  { background: #e64d00; }
.ts-btn-primary:active { transform: scale(.98); }
.ts-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    background: #fff;
    color: #101828;
    border: 1.5px solid #d0d5dd;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.ts-btn-secondary:hover { background: #f8fafc; border-color: #a8b2bf; }
.ts-btn-full { width: 100%; }

/* ── Bottom action bar polish ────────────────────────────────────── */
.mobile-bottom-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1.5px solid #e5e7eb;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-action-bar__inner {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}
.mobile-bottom-action-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.mobile-bottom-action-bar__btn--back {
    background: #f1f5f9;
    color: #667085;
    border: 1.5px solid #e5e7eb;
    flex: 0 0 auto;
    min-width: 80px;
}
.mobile-bottom-action-bar__btn--back:hover { background: #e2e8f0; }
.mobile-bottom-action-bar__btn--secondary {
    background: #fff;
    color: #101828;
    border: 1.5px solid #d0d5dd;
}
.mobile-bottom-action-bar__btn--primary.mobile-bottom-action-bar__btn--orange {
    background: #ff5a00;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,90,0,.28);
}
.mobile-bottom-action-bar__btn--primary.mobile-bottom-action-bar__btn--orange:hover { background: #e64d00; }
.mobile-bottom-action-bar__btn--primary.mobile-bottom-action-bar__btn--orange:active { transform: scale(.98); }
.mobile-bottom-action-bar__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════
   END TENGASALE PREMIUM POLISH v3.0
   ══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   TENGASALE APPLICATION FLOW POLISH v4.0
   Mobile-first · Big inputs · Clean validation · Sticky actions
   ══════════════════════════════════════════════════════════════════ */

/* ── Application flow page shell ───────────────────────────────── */
.application-flow-page {
  padding: 0 16px 120px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Form card ──────────────────────────────────────────────────── */
.form-card {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 20px;
}

/* ── Form group labels ──────────────────────────────────────────── */
.application-flow-page .form-group label,
.form-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #344054;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* ── Large inputs — 56px min touch target ───────────────────────── */
.application-flow-page input[type="text"],
.application-flow-page input[type="email"],
.application-flow-page input[type="number"],
.application-flow-page input[type="date"],
.application-flow-page input[type="tel"],
.application-flow-page select,
.application-flow-page textarea,
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: #101828;
  background: #fff;
  border: 1.5px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.application-flow-page input:focus,
.application-flow-page select:focus,
.application-flow-page textarea:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: #ff5a00;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.12);
}

/* ── Error states ───────────────────────────────────────────────── */
.application-flow-page .errorlist,
.form-card .errorlist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.application-flow-page .errorlist li,
.form-card .errorlist li,
.field-error {
  font-size: 12px;
  font-weight: 600;
  color: #b42318;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.application-flow-page .errorlist li::before,
.form-card .errorlist li::before,
.field-error::before {
  content: '⚠';
  font-size: 11px;
}

/* ── Required star ──────────────────────────────────────────────── */
.required-star {
  color: #dc2626;
  margin-left: 2px;
}

/* ── Input prefix group (+265) ──────────────────────────────────── */
.input-prefix-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d0d5dd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input-prefix-group:focus-within {
  border-color: #ff5a00;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.12);
}

.input-prefix-group .input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #667085;
  background: #f9fafb;
  border-right: 1.5px solid #e5e7eb;
  white-space: nowrap;
  flex-shrink: 0;
}

.input-prefix-group input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 52px;
  flex: 1;
}

/* ── Form actions — sticky bottom ───────────────────────────────── */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.form-actions .btn {
  flex: 1;
  min-height: 52px;
  font-size: 14px;
  font-weight: 800;
}

.form-actions .btn-outline,
.form-actions .ts-button-outline {
  background: #f9fafb;
  border: 1.5px solid #d0d5dd;
  color: #374151;
  border-radius: 14px;
  flex: 0 0 auto;
  padding: 0 20px;
}

.form-actions .ts-button-primary {
  background: #ff5a00;
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255,90,0,0.28);
  letter-spacing: 0.03em;
}

.form-actions .ts-button-primary:hover { background: #e64d00; }
.form-actions .ts-button-primary:active { transform: scale(.98); }

/* Sticky bottom action bar variant */
.form-actions--sticky-bottom {
  position: sticky;
  bottom: 0;
  background: #fff;
  margin: 24px -20px -20px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e5e7eb;
  z-index: 10;
}

/* ── Progress stepper — polished ────────────────────────────────── */
.application-progress {
  margin-bottom: 20px;
}

.application-progress-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
  margin-bottom: 8px;
}

.application-progress-meta-step {
  color: #ff5a00;
  font-weight: 800;
}

.application-progress-meta-sep {
  color: #d0d5dd;
}

.application-progress-bar {
  height: 5px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.application-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5a00, #ff8c42);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* Step dots */
.application-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.application-stepper::-webkit-scrollbar { display: none; }

.application-step {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.application-step-active {
  background: rgba(255,90,0,0.12);
  color: #ff5a00;
}

.application-step-complete {
  color: #16a34a;
  font-weight: 800;
}

.application-step-upcoming {
  color: #9ca3af;
}

.application-stepper-sep {
  display: block;
  width: 16px;
  height: 1px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ── Section lock header ────────────────────────────────────────── */
.section-lock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.section-lock-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}

.section-edit-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background .12s;
}

.section-edit-btn:hover { background: #f3f4f6; }

/* ── Field help text ────────────────────────────────────────────── */
.field-help {
  font-size: 12px;
  color: #667085;
  margin: 5px 0 0;
}

/* ── Phone OTP card ─────────────────────────────────────────────── */
.phone-otp-card {
  padding: 16px;
  margin-bottom: 16px;
}

.phone-otp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.phone-otp-card__head h2 {
  font-size: 15px;
  font-weight: 800;
  color: #101828;
  margin: 0 0 3px;
}

.phone-otp-card__head p {
  font-size: 13px;
  color: #667085;
  margin: 0;
}

.phone-otp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.phone-otp-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #667085;
  margin-top: 6px;
}

.phone-otp-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.phone-otp-badge--verified  { background: #dcfce7; color: #15803d; }
.phone-otp-badge--sent      { background: #dbeafe; color: #1d4ed8; }
.phone-otp-badge--skipped   { background: #f1f5f9; color: #64748b; }
.phone-otp-badge--failed    { background: #fee2e2; color: #b91c1c; }
.phone-otp-badge--not_verified { background: #f1f5f9; color: #64748b; }

/* ── OTP verify row ─────────────────────────────────────────────── */
.phone-otp-verify {
  display: flex;
  gap: 8px;
  flex: 1;
}

.phone-otp-verify input[type="text"] {
  flex: 1;
  min-height: 44px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  outline: none;
}

.phone-otp-verify input:focus {
  border-color: #ff5a00;
}

/* ── Has-correction highlight ───────────────────────────────────── */
.has-correction {
  position: relative;
}

.has-correction::before {
  content: 'Correction required';
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 6px;
}

/* ── Alert styles ───────────────────────────────────────────────── */
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  margin: 8px 0;
}

/* ── Greeting heading ───────────────────────────────────────────── */
.greeting {
  font-size: 24px;
  font-weight: 900;
  color: #101828;
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}

/* ── Summary card ───────────────────────────────────────────────── */
.summary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  font-size: 13px;
}

.summary-card span {
  color: #667085;
  font-weight: 500;
  padding: 4px 0;
}

.summary-card strong {
  color: #101828;
  font-weight: 700;
  padding: 4px 0;
  text-align: right;
}

/* ── Textarea ───────────────────────────────────────────────────── */
.application-flow-page textarea,
.form-card textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── Spin animation for GPS ─────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════
   END APPLICATION FLOW POLISH v4.0
   ══════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════
   TASK 10 — Design Token Reinforcement
   Consistent surface, shadow, radius, tap targets, typography
   ══════════════════════════════════════════════════════════════════ */

/* Ensure global body background is the soft off-white brand surface */
body {
  background-color: var(--ts-bg, #fffaf7);
}

/* Consistent card surface */
.card,
.app-card,
.form-card,
.tool-card,
.stat-card,
.home-card,
.menu-row,
.app-row-card {
  background: var(--ts-surface, #fff);
  border-radius: var(--ts-radius, 14px);
  box-shadow: var(--ts-shadow-sm, 0 1px 4px rgba(15,23,42,.06));
}

/* Minimum tap target for all interactive controls */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
button:not([aria-hidden="true"]):not([tabindex="-1"]),
a.btn,
a.nav-link,
.topbar-icon,
.menu-row,
.app-row-card,
.ts-modal-btn {
  min-height: 44px;
}

/* Remove hover state color leakage on non-clickable elements */
.hq-kpi__label,
.hq-chart-title,
.section-label {
  color: var(--ts-muted, #667085);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Consistent blue for active/review state across all roles */
.status-active,
.badge-active,
.kpi-blue {
  color: #1d4ed8;
}
.status-active-bg { background: rgba(29,78,216,.10); }

/* Consistent success green */
.status-success,
.badge-success,
.text-green { color: var(--ts-success, #16a34a); }

/* Consistent amber warning */
.status-warning,
.badge-warning,
.text-amber { color: var(--ts-warning, #f59e0b); }

/* Consistent red danger */
.status-danger,
.badge-danger,
.text-red { color: var(--ts-danger, #dc2626); }

/* Section labels — consistent across all dashboards */
.section-label,
.wallet-section-label,
.hq-sl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ts-muted, #667085);
  padding: 4px 0 6px;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════════
   TASK 11 — Responsiveness Audit Fixes
   360px / 390px / 430px / tablet
   ══════════════════════════════════════════════════════════════════ */

/* Global: prevent unwanted horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix wide fixed-width elements that can break narrow viewports */
.app-shell,
.content,
.page-wrap,
.form-container {
  max-width: 100%;
  box-sizing: border-box;
}

/* Make all <img> safe on narrow screens */
img {
  max-width: 100%;
  height: auto;
}

/* Tables: force horizontal scroll container instead of overflow */
table {
  min-width: 0;
}
.table-responsive,
.table-scroll,
.table-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ts-radius-sm, 9px);
}

/* Modals: ensure they don't exceed screen width */
.ts-modal-box,
.modal-box,
.drawer-panel {
  max-width: min(480px, calc(100vw - 32px));
  box-sizing: border-box;
}

/* Action button rows: wrap gracefully instead of clipping */
.action-row,
.btn-row,
.card-actions,
.ts-oha__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Topbar icons on very narrow screens */
@media (max-width: 360px) {
  .topbar {
    padding-inline: 12px;
    gap: 6px;
  }
  .topbar-icon,
  .topbar-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .brand-name {
    font-size: 15px;
  }
  .content {
    padding-inline: 12px;
  }
  .btn-primary,
  .btn,
  .btn-secondary {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* Earnings/wallet KPI grid on narrow screens */
@media (max-width: 400px) {
  .earnings-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qc-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Status/application row cards on narrow screens: prevent clipping */
@media (max-width: 430px) {
  .app-row-card__meta,
  .app-row-card__label,
  .tx-row__type {
    font-size: 12px;
  }
  .app-row-card__amount,
  .tx-row__amount {
    font-size: 14px;
  }
  .app-row-card__name {
    font-size: 14px;
  }
}

/* Underwriter mobile pages should use the full phone viewport, not the compact app frame. */
@media (max-width: 767px) {
  body.role-underwriter {
    background: var(--app-bg);
  }

  body.role-underwriter .app-shell {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
    overflow-x: hidden;
  }

  body.role-underwriter .mobile-header,
  body.role-underwriter .ts-mobile-role-nav,
  body.role-underwriter .sales-footer {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  body.role-underwriter .content {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  body.role-underwriter .sales-main,
  body.role-underwriter .ts-review-page,
  body.role-underwriter .uw-canvas {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  body.role-underwriter .ts-review-card,
  body.role-underwriter .uw-card,
  body.role-underwriter .queue-privacy-card,
  body.role-underwriter .app-card-v2,
  body.role-underwriter .active-review-card,
  body.role-underwriter .review-card,
  body.role-underwriter .application-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.role-underwriter .page-enter,
  body.role-underwriter .ts-motion-page {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* /pay/ search portal mobile width fix. */
@media (max-width: 767px) {
  .content:has(.portal-search-shell),
  .content:has(.cpd-shell) {
    padding-left: 0;
    padding-right: 0;
  }

  .portal-search-shell {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .portal-search-shell .glass-card,
  .portal-search-shell .portal-support-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .portal-search-shell .input,
  .portal-search-shell .select,
  .portal-search-shell .btn-full {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portal-heading {
    font-size: 24px;
    line-height: 1.15;
  }
}

/* HQ charts: ensure they don't overflow on tablet */
@media (max-width: 768px) {
  .hq-charts-grid {
    grid-template-columns: 1fr !important;
  }
  .hq-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* KYC/form pages: landscape ID preview keeps ratio on all widths */
@media (max-width: 430px) {
  .kyc-id-front-preview,
  .kyc-id-back-preview {
    aspect-ratio: 1.586 / 1;
    width: 100%;
  }
}

/* Performance / QC penalty cards: prevent right-side amount from wrapping oddly */
@media (max-width: 380px) {
  .qc-penalty-card {
    flex-direction: column;
  }
  .qc-penalty-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   END TASKS 10 & 11
   ══════════════════════════════════════════════════════════════════ */
