:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f2f4f8;
    --surface-strong: #e9edf4;
    --text: #17191f;
    --text-soft: #505867;
    --muted: #717988;
    --line: #dfe3ea;
    --line-strong: #cbd1dc;
    --primary: #a7358c;
    --primary-hover: #872770;
    --primary-soft: #faedf7;
    --brand-blue: #2c5987;
    --brand-blue-soft: #edf5fc;
    --brand-orange: #e97218;
    --success: #137557;
    --success-soft: #eaf8f2;
    --warning: #956000;
    --warning-soft: #fff7df;
    --danger: #b4233a;
    --danger-soft: #fff0f2;
    --info: #315da8;
    --info-soft: #eef4ff;
    --shadow-sm: 0 1px 2px rgba(25, 30, 40, .04);
    --shadow-md: 0 14px 40px rgba(25, 30, 40, .08);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0f1116;
    --surface: #181b22;
    --surface-soft: #20242d;
    --surface-strong: #292e39;
    --text: #f5f6f8;
    --text-soft: #c6cad2;
    --muted: #9aa2b0;
    --line: #303541;
    --line-strong: #444b59;
    --primary: #e47bce;
    --primary-hover: #f096df;
    --primary-soft: #392036;
    --brand-blue: #82b3e0;
    --brand-blue-soft: #172b3e;
    --brand-orange: #ff9f50;
    --success: #65d7ae;
    --success-soft: #153129;
    --warning: #ffd077;
    --warning-soft: #342a15;
    --danger: #ff8292;
    --danger-soft: #3a1b22;
    --info: #9ab8ff;
    --info-soft: #1b2944;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, .34);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --bg: #0f1116;
        --surface: #181b22;
        --surface-soft: #20242d;
        --surface-strong: #292e39;
        --text: #f5f6f8;
        --text-soft: #c6cad2;
        --muted: #9aa2b0;
        --line: #303541;
        --line-strong: #444b59;
        --primary: #e47bce;
        --primary-hover: #f096df;
        --primary-soft: #392036;
        --brand-blue: #82b3e0;
        --brand-blue-soft: #172b3e;
        --brand-orange: #ff9f50;
        --success: #65d7ae;
        --success-soft: #153129;
        --warning: #ffd077;
        --warning-soft: #342a15;
        --danger: #ff8292;
        --danger-soft: #3a1b22;
        --info: #9ab8ff;
        --info-soft: #1b2944;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
        --shadow-md: 0 18px 50px rgba(0, 0, 0, .34);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
body, button, input, select, textarea { font-family: inherit; }
button, input, select, textarea { font-size: 1rem; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; }
h1, h2, h3, p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent); outline-offset: 2px; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.muted { color: var(--muted); }
.text-link { color: var(--primary); font-weight: 700; }
.text-link:hover { color: var(--primary-hover); }

.site-header { position: sticky; top: 0; z-index: 40; border-top: 3px solid var(--primary); border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 178px; height: auto; object-fit: contain; }
.brand-area { padding: 5px 8px; border-left: 1px solid var(--line-strong); color: var(--brand-blue); font-size: 11px; font-weight: 850; letter-spacing: .1em; line-height: 1; text-transform: uppercase; }
.public-links, .desktop-nav, .nav-actions, .header-cta { display: flex; align-items: center; gap: 8px; }
.public-links > a:not(.button), .desktop-nav a { padding: 10px 12px; border-radius: 9px; color: var(--text-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.public-links > a:hover, .desktop-nav a:hover { color: var(--text); background: var(--surface-soft); }
.desktop-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }
.header-question { color: var(--muted); font-size: 13px; }
.theme-button, .icon-button, .link-button { border: 0; background: transparent; color: var(--text-soft); }
.theme-button, .icon-button { width: 40px; height: 40px; padding: 9px; border-radius: 10px; display: grid; place-items: center; }
.theme-button:hover, .icon-button:hover, .link-button:hover { color: var(--text); background: var(--surface-soft); }
.theme-button svg, .icon-button svg { width: 19px; height: 19px; }
.logout-form { margin: 0; }
.link-button { padding: 9px 11px; border-radius: 9px; font-weight: 700; }

.button, button.primary, button.secondary, .google-button { min-height: 44px; border-radius: 11px; padding: 10px 17px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 780; line-height: 1.2; text-align: center; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover, button.primary:hover, button.secondary:hover, .google-button:hover { transform: translateY(-1px); }
.button.primary, button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button.primary:hover, button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary, button.secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-soft); }
.button.tertiary { color: var(--text-soft); background: transparent; border-color: transparent; }
.button.small { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.button.danger { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
button:disabled, .button[aria-disabled="true"] { opacity: .62; cursor: wait; transform: none; }
.button svg, button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.public-main { overflow: hidden; }
.hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 86px 0 74px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: 76px; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 15px 0 22px; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 650px; margin: 0; color: var(--text-soft); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 12px; }
.hero-note { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.trust-row { margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px 18px; list-style: none; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.trust-row li { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--success); }
.product-preview { position: relative; padding: 16px; }
.product-preview::before { content: ""; position: absolute; inset: 4% -5% -4% 8%; z-index: -1; border-radius: 38px; background: radial-gradient(circle at 28% 20%, color-mix(in srgb, var(--primary) 25%, transparent), transparent 53%), radial-gradient(circle at 82% 74%, color-mix(in srgb, var(--brand-blue) 24%, transparent), transparent 47%), var(--surface-soft); transform: rotate(3deg); }
.preview-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.preview-bar { min-height: 52px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.preview-bar b { font-size: 14px; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.preview-body { padding: 22px; }
.preview-total { margin: 4px 0 22px; color: var(--brand-blue); font-size: 36px; font-weight: 850; letter-spacing: -.04em; }
.preview-row { padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.preview-row b { font-size: 14px; }
.preview-row small { display: block; margin-top: 2px; color: var(--muted); }
.preview-caption { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
.section.compact { padding-top: 44px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section h2 { margin: 10px 0 12px; font-size: clamp(31px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.section-lead { margin: 0; color: var(--text-soft); font-size: 18px; }
.feature-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .step-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-icon { width: 42px; height: 42px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3, .step-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p, .step-card p { margin: 0; color: var(--text-soft); }
.step-number { margin-bottom: 18px; color: var(--primary); font-size: 13px; font-weight: 850; }
.qualify-card { padding: 34px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.qualify-card h2 { margin-top: 8px; }
.check-list { margin: 0; padding: 0; display: grid; gap: 16px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-soft); }
.check-list svg { width: 22px; height: 22px; color: var(--success); }
.faq { max-width: 820px; }
.faq-list { margin-top: 26px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 21px 34px 21px 0; position: relative; cursor: pointer; font-size: 16px; font-weight: 780; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--muted); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 0 21px; color: var(--text-soft); }
.cta-band { width: min(1180px, calc(100% - 40px)); margin: 20px auto 76px; padding: 42px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; background: linear-gradient(125deg, #76235f, #ad4091 58%, #2c5987); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.035em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); }
.cta-band .button { flex: 0 0 auto; color: #832968; background: #fff; border-color: #fff; }

.auth-shell { width: min(1040px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 58px 0 70px; display: grid; align-items: center; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: center; gap: 80px; }
.auth-context { max-width: 470px; }
.auth-context h1 { margin: 12px 0 16px; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
.auth-context > p { color: var(--text-soft); font-size: 18px; }
.auth-points { margin: 28px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); }
.auth-points svg { width: 19px; height: 19px; color: var(--success); }
.auth-card { width: 100%; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.auth-card h2, .auth-card > h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 24px; color: var(--text-soft); }
.auth-card .button, .auth-card button.primary, .auth-card .google-button { width: 100%; }
.stack { display: grid; gap: 16px; }
.google-button { width: 100%; color: #1f1f1f; background: #fff; border-color: #747775; font-family: Arial, sans-serif; font-size: 14px; font-weight: 600; }
.google-button:hover { background: #f8f9fa; }
.google-mark { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-help { margin: 17px 0 0; color: var(--muted); font-size: 13px; }
.auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-soft); text-align: center; }
.auth-message { width: min(500px, 100%); margin: 0 auto; text-align: center; }
.message-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 16px; color: var(--primary); background: var(--primary-soft); }
.message-icon svg { width: 28px; height: 28px; }
.verification-card { max-width: 500px; }
.verification-form { margin-top: 24px; text-align: left; }
.verification-code-control { position: relative; width: 100%; }
.verification-code-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; color: transparent; background: transparent; caret-color: transparent; cursor: text; }
.verification-code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.verification-code-boxes span { height: 62px; border: 1px solid var(--line-strong); border-radius: 12px; display: grid; place-items: center; color: var(--text); background: var(--surface); font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 1px rgba(0,0,0,.025); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.verification-code-boxes span.filled { border-color: color-mix(in srgb, var(--primary) 54%, var(--line-strong)); background: var(--primary-soft); }
.verification-code-control:focus-within .verification-code-boxes span.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.verification-code-control.loading .verification-code-boxes { opacity: .68; }
.verification-submit { width: 100%; }
.button-spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.46); border-top-color: currentColor; border-radius: 50%; animation: button-spin .7s linear infinite; }
.button-spinner[hidden] { display: none; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.verification-secondary { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.verification-secondary form, .verification-secondary button { width: 100%; }
.verification-secondary .auth-help { margin: 0; }
.verification-secondary .text-link { justify-self: center; }
.verification-secondary button:disabled { cursor: not-allowed; }

.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field > label, .field-label { color: var(--text); font-size: 13px; font-weight: 760; }
.field-hint { margin: 0; color: var(--muted); font-size: 12px; }
.hint { margin: 0; color: var(--muted); font-size: 12px; }
.hint a, a.hint { color: var(--primary); font-weight: 700; }
.optional { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select { height: 44px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 14%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input:disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.field input[type="file"] { padding: 7px; }
.field input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 7px; color: var(--text); background: var(--surface-strong); font-weight: 700; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: 13px; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.check span { min-width: 0; }
.check a { color: var(--text); font-weight: 650; }
.field-error { margin: 0; color: var(--danger); font-size: 12px; font-weight: 700; }

.app { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 36px 0 110px; }
.page-title { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-title h1 { margin: 7px 0 0; font-size: clamp(29px, 4vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.page-description { max-width: 700px; margin: 9px 0 0; color: var(--text-soft); }
.page-actions { display: flex; align-items: center; gap: 9px; }
.card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card h2 { margin: 0 0 17px; font-size: 18px; letter-spacing: -.02em; }
.card-header { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-header h2 { margin: 0; }
.badge { max-width: 100%; padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); background: var(--surface-strong); font-size: 11px; font-weight: 820; line-height: 1.25; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.info { color: var(--info); background: var(--info-soft); }
.alert { margin: 0 0 20px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); }
.alert svg { width: 19px; height: 19px; margin-top: 1px; flex: 0 0 auto; }
.alert.success { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert.error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert.info { color: var(--info); background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.alert.warning { color: var(--warning); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.form-feedback[hidden] { display: none !important; }
.state-banner { margin-bottom: 20px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface); }
.state-banner-content { display: flex; align-items: flex-start; gap: 12px; }
.state-banner-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--info); background: var(--info-soft); }
.state-banner-icon svg { width: 19px; height: 19px; }
.state-banner h2 { margin: 0 0 2px; font-size: 15px; }
.state-banner p { margin: 0; color: var(--text-soft); font-size: 13px; }

.stats-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-soft); font-size: 13px; }
.stat-value { margin-top: 7px; display: block; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.045em; }
.stat-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr); gap: 18px; }
.account-list { margin: 0; display: grid; gap: 15px; }
.account-list div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.account-list dt { color: var(--muted); font-size: 12px; }
.account-list dd { margin: 4px 0 0; font-weight: 720; overflow-wrap: anywhere; }
.card-actions { margin-top: 20px; }
.section-spaced { margin-top: 18px; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 11px 10px; color: var(--muted); font-size: 10px; font-weight: 820; letter-spacing: .085em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table td:not(.wrap) { white-space: nowrap; }
.data-table tbody tr:hover:not(.empty-row) { background: color-mix(in srgb, var(--surface-soft) 68%, transparent); }
[data-pagination-item][hidden] { display: none!important; }
.list-pagination { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination-status { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pagination-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pagination-button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-soft); background: var(--surface); font-size: 12px; font-weight: 760; }
.pagination-button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pagination-button[aria-current="page"] { border-color: var(--info); color: #fff; background: var(--info); }
.pagination-button:disabled { opacity: .42; cursor: not-allowed; }
.pagination-ellipsis { min-width: 18px; color: var(--muted); text-align: center; }
.amount { font-variant-numeric: tabular-nums; font-weight: 750; }
.amount.positive { color: var(--success); }
.amount.negative { color: var(--danger); }
.empty-state { padding: 42px 24px; text-align: center; }
.empty-state-icon { width: 46px; height: 46px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 13px; color: var(--muted); background: var(--surface-soft); }
.empty-state-icon svg { width: 23px; height: 23px; }
.empty-state h2, .empty-state h3 { margin: 0 0 6px; font-size: 17px; }
.empty-state p { max-width: 480px; margin: 0 auto; color: var(--muted); }

.filters-card { margin-bottom: 18px; padding: 17px; }
.filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filters .field { min-width: 170px; }
.filters-actions { display: flex; gap: 8px; }
.summary-strip { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.summary-item { padding: 17px 20px; background: var(--surface); }
.summary-item span { display: block; color: var(--muted); font-size: 12px; }
.summary-item b { margin-top: 3px; display: block; font-size: 20px; }

.invoice-list, .settlement-list, .claim-list { display: grid; gap: 12px; }
.invoice-card, .settlement-card, .claim-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.invoice-card { padding: 21px; }
.invoice-head, .settlement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.invoice-title, .settlement-title { display: flex; align-items: flex-start; gap: 12px; }
.document-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--info); background: var(--info-soft); }
.document-icon svg { width: 20px; height: 20px; }
.invoice-title h2, .settlement-title h2 { margin: 0; font-size: 16px; }
.invoice-title p, .settlement-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.invoice-amount { font-size: 23px; font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.invoice-meta, .settlement-breakdown { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.invoice-meta span, .settlement-breakdown span { display: block; color: var(--muted); font-size: 11px; }
.invoice-meta b, .settlement-breakdown b { display: block; margin-top: 3px; font-size: 14px; }
.invoice-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.invoice-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.objection { width: min(440px, 100%); }
.objection summary { color: var(--danger); cursor: pointer; font-size: 13px; font-weight: 750; }
.objection-form { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.objection-form textarea { width: 100%; min-height: 90px; margin-bottom: 9px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--surface); }
.invoice-objection-notice { margin: 16px 0 0; }
.settlement-card { overflow: hidden; }
.settlement-head { padding: 21px; }
.settlement-total { display: grid; justify-items: end; gap: 6px; text-align: right; }
.settlement-invoice { min-height: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; color: var(--text-soft); font-size: 12px; }
.settlement-invoice > span:first-child { color: var(--muted); }
.settlement-invoice .badge { margin-left: 2px; }
.settlement-invoice-status { display: inline-flex; border-radius: 999px; text-decoration: none; }
.settlement-invoice-status:hover .badge { filter: brightness(.96); }
.settlement-breakdown { margin: 0; padding: 17px 21px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.settlement-actions { padding: 14px 21px; border-top: 1px solid var(--line); }
.movement-disclosure summary { width: fit-content; color: var(--text-soft); cursor: pointer; font-size: 13px; font-weight: 750; }
.movement-disclosure[open] summary { color: var(--primary); }
.settlement-movements { margin-top: 14px; }
.settlement-movements .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.settlement-movements .data-table th:first-child, .settlement-movements .data-table td:first-child { padding-left: 14px; }
.settlement-movements .data-table th:last-child, .settlement-movements .data-table td:last-child { padding-right: 14px; text-align: right; }
.movement-empty { margin: 0; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.claim-card { padding: 18px 20px; }
.claim-card h3 { margin: 0; font-size: 15px; }
.claim-card p { margin: 8px 0 0; color: var(--text-soft); }
.claim-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 20px; }
.email-change-title { align-items: center; }
.email-change-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; gap: 20px; }
.email-change-card { padding: clamp(24px, 4vw, 38px); }
.email-change-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.email-change-heading .eyebrow { margin: 0 0 5px; }
.email-change-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
.email-change-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); }
.email-change-icon svg { width: 25px; height: 25px; }
.email-current-value { margin: 0 0 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.email-current-value dt { color: var(--muted); font-size: 12px; }
.email-current-value dd { margin: 4px 0 0; font-weight: 720; overflow-wrap: anywhere; }
.email-change-form, .email-change-code-form { max-width: 520px; }
.email-change-copy { margin: -8px 0 24px; color: var(--text-soft); }
.email-change-step { margin: 0 0 30px; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 650; }
.email-change-step span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.email-change-step b { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.email-change-step span.current { color: var(--text); }
.email-change-step span.current b { border-color: var(--primary); color: #fff; background: var(--primary); }
.email-change-step span.complete b { border-color: var(--success); color: #fff; background: var(--success); }
.email-change-step i { width: 58px; height: 1px; margin: 0 12px; background: var(--line-strong); }
.email-change-secondary { max-width: 520px; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.email-change-secondary button { min-width: 150px; }
.email-change-help { padding: 26px; }
.email-change-help h2 { margin: 0 0 22px; font-size: 19px; }
.email-change-help ol { margin: 0; padding: 0; display: grid; gap: 19px; list-style: none; }
.email-change-help li { display: flex; align-items: flex-start; gap: 12px; }
.email-change-help li > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 800; }
.email-change-help strong { font-size: 14px; }
.email-change-help li p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.email-change-help-note { margin: 24px 0 0; padding: 15px; border-radius: 11px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.5; }
.profile-progress { position: sticky; top: 92px; }
.progress-title { margin: 0 0 4px; font-size: 17px; }
.progress-copy { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.progress-bar { width: 100%; height: 7px; margin: 0 0 18px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: var(--surface-strong); }
.progress-bar::-webkit-progress-bar { border-radius: inherit; background: var(--surface-strong); }
.progress-bar::-webkit-progress-value { border-radius: inherit; background: var(--success); }
.progress-bar::-moz-progress-bar { border-radius: inherit; background: var(--success); }
.task-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.task-list li { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 13px; }
.task-dot { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-strong); font-size: 11px; font-weight: 850; }
.task-list li.complete .task-dot { color: #fff; background: var(--success); }
.wizard-step-count { margin: 0 0 4px; color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wizard-steps { counter-reset: wizard-step; }
.wizard-steps li { position: relative; min-height: 30px; padding: 3px 7px 3px 0; border-radius: 9px; }
.wizard-steps li.current { color: var(--text); font-weight: 780; }
.wizard-steps li.current .task-dot { color: #fff; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wizard-steps li.complete.current .task-dot { background: var(--primary); }
.wizard-card { padding: clamp(22px, 4vw, 38px); }
.wizard-heading { max-width: 720px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.wizard-heading > p { margin: 0 0 6px; color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wizard-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 31px); letter-spacing: -.035em; }
.wizard-heading > span { margin-top: 8px; display: block; color: var(--text-soft); }
.wizard-form { display: block; }
.form-feedback { margin: 20px 0 0; }
.wizard-form-grid { padding-top: 25px; }
.document-upload-form { padding-top: 25px; display: grid; gap: 14px; }
.document-upload-actions { display: flex; justify-content: flex-end; }
.document-settings-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.document-settings-grid { padding-top: 0; }
.document-settings-form .irpf-reducido-field { margin-top: 0; padding-top: 0; border-top: 0; }
.irpf-reducido-field { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); gap: 12px; }
.irpf-reducido-field > .check { color: var(--text-soft); font-weight: 400; }
.wizard-channel-list { padding-top: 25px; }
.wizard-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-action-group { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.wizard-actions .button.tertiary { padding-inline: 5px; }
.saved-items { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.saved-items h3 { margin: 0 0 10px; font-size: 14px; }
.wizard-legal { margin-top: 25px; }
.completion-message { display: flex; align-items: flex-start; gap: 12px; }
.completion-message > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-weight: 850; }
.completion-message p { margin: 3px 0 0; color: var(--text-soft); }
.completion-message a { color: var(--primary); font-weight: 700; }
.review-list { margin-top: 24px; display: grid; }
.review-list section { padding: 17px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.review-list section:first-child { padding-top: 0; }
.review-list h3 { margin: 0; font-size: 15px; }
.review-list p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.review-list a { flex: 0 0 auto; color: var(--primary); font-size: 13px; font-weight: 760; }
.review-warning { margin: 12px 0 0; text-align: right; }
.profile-form { min-width: 0; display: grid; gap: 12px; }
.form-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-panel > summary { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.form-panel > summary::-webkit-details-marker { display: none; }
.form-panel > summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.form-panel[open] > summary::after { content: "−"; }
.form-panel-title { display: flex; align-items: center; gap: 12px; }
.form-panel-number { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 850; }
.form-panel-title h2 { margin: 0; font-size: 16px; }
.form-panel-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.form-panel-body { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.form-grid { padding-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.span-2 { grid-column: span 2; }
.channel-list { padding-top: 20px; display: grid; gap: 12px; }
.channel-row { padding: 15px; display: grid; grid-template-columns: .7fr 1.15fr 1fr auto; align-items: end; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.channel-fixed-row { grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr); align-items: center; }
.channel-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.channel-name strong { font-size: 14px; }
.channel-name span { color: var(--muted); font-size: 11px; }
.remove-channel { width: 42px; height: 42px; border: 0; border-radius: 9px; display: grid; place-items: center; color: var(--danger); background: transparent; }
.remove-channel:hover { background: var(--danger-soft); }
.remove-channel svg { width: 18px; height: 18px; }
.section-action { margin-top: 13px; }
.document-list { margin: 18px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.document-list li { padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; }
.document-list a { min-width: 0; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.document-list-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.document-delete-form { margin: 0; }
.document-delete-button { color: var(--danger); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 18%, var(--line)); transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.document-delete-button:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 32%, var(--line)); transform: translateY(-1px); }
.document-delete-button:active { transform: translateY(0); }
.legal-acceptance { margin-top: 20px; padding: 15px; border-radius: 12px; background: var(--surface-soft); }
.form-actions { position: sticky; bottom: 16px; z-index: 15; padding: 13px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(14px); }

.modal { position: fixed; inset: 0; z-index: 80; padding: 22px; display: none; place-items: center; background: rgba(8, 10, 14, .65); }
.modal.open { display: grid; }
body.modal-open { overflow: hidden; }
.modal-card { width: min(540px, 100%); padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.modal-card h2 { margin: 8px 0 8px; font-size: 27px; letter-spacing: -.035em; }
.modal-card > p { margin: 0; color: var(--text-soft); }
.confirm-modal-card { width: min(460px, 100%); padding: clamp(26px, 5vw, 34px); text-align: center; }
.confirm-modal-icon { width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line)); border-radius: 50%; color: var(--danger); background: var(--danger-soft); }
.confirm-modal-icon svg { width: 27px; height: 27px; }
.confirm-modal-card h2 { margin: 8px 0 9px; font-size: clamp(24px, 5vw, 29px); }
.confirm-modal-detail { margin-top: 20px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-soft); text-align: left; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.confirm-modal-detail svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); }
.confirm-modal-actions { margin-top: 24px; display: flex; justify-content: center; gap: 10px; }
.confirm-modal-actions .button { min-width: 145px; }
.objection-trigger { border: 0; cursor: pointer; }
.objection-modal-card { padding: 0; overflow: hidden; }
.objection-modal-header { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.objection-modal-header h2 { margin: 5px 0 0; font-size: clamp(20px, 4vw, 25px); }
.objection-modal-details { margin: 0; padding: 21px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.objection-modal-details div { min-width: 0; }
.objection-modal-details dt, .objection-modal-reason span, .objection-modal-resolution span { color: var(--muted); font-size: 11px; font-weight: 750; }
.objection-modal-details dd { margin: 3px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.objection-modal-reason { margin: 20px 24px 0; padding: 15px; border-radius: 12px; background: var(--danger-soft); }
.objection-modal-reason p { margin: 5px 0 0; color: var(--text); }
.objection-modal-resolution { margin: 12px 24px 0; padding: 15px; border-radius: 12px; background: var(--success-soft); }
.objection-modal-resolution p { margin: 5px 0 0; color: var(--text); }
.objection-history-list { display: grid; gap: 8px; margin-top: 12px; }
.objection-history-item { width: 100%; display: flex; justify-content: space-between; gap: 14px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 11px 13px; color: var(--text); cursor: pointer; }
.objection-history-item:hover { border-color: var(--primary); }
.objection-history-item span:last-child { color: var(--muted); font-size: 12px; }
.objection-modal-card > .actions { padding: 0 24px 22px; justify-content: flex-end; }
.legal-modal-card { width: min(900px, 100%); max-height: min(86vh, 900px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.legal-modal-header { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.legal-modal-header h2 { margin: 5px 0 0; font-size: clamp(21px, 3vw, 27px); }
.modal-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--text-soft); background: var(--surface); }
.modal-close:hover { color: var(--text); background: var(--surface-soft); }
.modal-close svg { width: 19px; height: 19px; }
.legal-modal-status { padding: 36px 22px; color: var(--text-soft); text-align: center; }
.legal-modal-status.error { color: var(--danger); }
.legal-modal-status a { color: var(--primary); font-weight: 750; }
.legal-modal-body { min-height: 0; padding: 24px 28px 32px; overflow-y: auto; overscroll-behavior: contain; }
.legal-modal-body .legal-document { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.legal-modal-body .legal-document h1 { font-size: clamp(24px, 4vw, 34px); }
.modal-tasks { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; list-style: none; }
.modal-tasks li { padding: 10px; border-radius: 9px; display: flex; gap: 8px; align-items: center; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; }
.modal-tasks svg { width: 17px; height: 17px; color: var(--primary); }
.actions { margin-top: 21px; display: flex; gap: 9px; flex-wrap: wrap; }

.legal-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 24px; }
.legal-aside { position: sticky; top: 96px; }
.legal-aside a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 14px; font-weight: 700; }
.legal-document { min-width: 0; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-document h1 { margin-top: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.legal-document h2 { margin-top: 32px; font-size: 21px; letter-spacing: -.02em; }
.legal-document p, .legal-document li { color: var(--text-soft); }
.legal-document ol, .legal-document ul { margin: 14px 0; padding-inline-start: 28px; }
.legal-document li { margin: 6px 0; padding-inline-start: 3px; }
.legal-document li > p { margin: 0; }
.legal-document li::marker { color: var(--text); font-weight: 700; }
.legal-document a { color: var(--primary); }

.mobile-nav { display: none; }
.footer { padding: 32px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: center; gap: 9px 16px; flex-wrap: wrap; }
.footer a { color: var(--text-soft); }

@media (max-width: 960px) {
    .desktop-nav { display: none; }
    .hero { grid-template-columns: 1fr 400px; gap: 38px; }
    .profile-layout { grid-template-columns: 230px minmax(0, 1fr); }
    .channel-row { grid-template-columns: 1fr 1fr; }
    .remove-channel { width: auto; justify-self: start; padding: 0 10px; }
}

@media (max-width: 800px) {
    body.private-page { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .header-inner { width: min(100% - 28px, 1180px); min-height: 62px; }
    .brand-area, .header-question, .public-links > a:not(.button) { display: none; }
    .brand-logo { width: 150px; }
    .public-links { gap: 2px; }
    .hero { width: min(100% - 36px, 1180px); padding: 54px 0 58px; grid-template-columns: 1fr; gap: 42px; }
    .hero h1 { font-size: clamp(40px, 12vw, 58px); }
    .product-preview { width: min(100%, 500px); margin: 0 auto; }
    .section { width: min(100% - 36px, 1180px); padding: 58px 0; }
    .feature-grid, .steps-grid { grid-template-columns: 1fr; }
    .qualify-card { padding: 25px; grid-template-columns: 1fr; gap: 24px; }
    .cta-band { width: min(100% - 36px, 1180px); margin-bottom: 58px; padding: 28px; align-items: flex-start; flex-direction: column; }
    .auth-shell { width: min(100% - 32px, 1040px); min-height: calc(100vh - 130px); padding: 34px 0 50px; align-items: start; }
    .auth-layout { display: block; }
    .auth-context { margin: 0 auto 24px; text-align: center; }
    .auth-context h1 { font-size: 34px; }
    .auth-context > p { margin-bottom: 0; font-size: 16px; }
    .auth-points { display: none; }
    .auth-card { max-width: 500px; margin: 0 auto; padding: 24px 20px; border-radius: 18px; box-shadow: var(--shadow-sm); }
    .verification-code-boxes { gap: 7px; }
    .verification-code-boxes span { height: 56px; border-radius: 10px; font-size: 24px; }
    .app { width: min(100% - 28px, 1180px); padding: 25px 0 42px; }
    .page-title { align-items: flex-start; flex-direction: column; gap: 13px; }
    .stats-grid, .summary-strip { grid-template-columns: 1fr; }
    .summary-strip { gap: 0; }
    .summary-item { border-bottom: 1px solid var(--line); }
    .summary-item:last-child { border-bottom: 0; }
    .content-grid { grid-template-columns: 1fr; }
    .state-banner { align-items: flex-start; flex-direction: column; }
    .filters { align-items: stretch; flex-direction: column; }
    .filters .field { min-width: 0; }
    .filters-actions { width: 100%; }
    .filters-actions .button, .filters-actions button { flex: 1; }
    .list-pagination { align-items: flex-start; flex-direction: column; }
    .pagination-buttons { width: 100%; justify-content: space-between; }
    .pagination-button { min-width: 38px; }
    .pagination-previous, .pagination-next { flex: 1; }
	.profile-layout { display: block; }
	.email-change-layout { display: block; }
	.email-change-help { margin-top: 16px; }
	.email-change-title { align-items: flex-start; }
	.email-change-title .button { margin-top: 2px; }
	.email-change-secondary { display: grid; }
	.email-change-secondary form, .email-change-secondary button { width: 100%; }
	.email-change-step i { width: 30px; margin: 0 8px; }
	.profile-progress { position: static; margin-bottom: 14px; }
	.wizard-page-title { margin-bottom: 18px; }
	.wizard-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
	.wizard-steps li { min-width: 0; padding: 0; justify-content: center; }
	.wizard-steps li span:last-child { display: none; }
	.wizard-steps .task-dot { width: 27px; height: 27px; }
	.wizard-card { padding: 22px 18px; }
	.form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .channel-row { grid-template-columns: 1fr; }
    .form-actions { position: static; margin-top: 4px; padding: 9px; }
	.form-actions .button, .form-actions button { min-width: 0; flex: 1; padding-inline: 10px; }
	.wizard-actions { align-items: stretch; flex-direction: column-reverse; }
	.wizard-actions .button, .wizard-actions button { width: 100%; }
	.wizard-action-group { width: 100%; flex-direction: column-reverse; }
    .document-upload-actions .button { width: 100%; }
	.review-list section { gap: 12px; }
	.review-warning { text-align: left; }
    .invoice-head, .settlement-head, .invoice-actions { align-items: flex-start; flex-direction: column; }
    .settlement-total { justify-items: start; text-align: left; }
    .settlement-invoice { justify-content: flex-start; }
    .invoice-meta, .settlement-breakdown { grid-template-columns: 1fr 1fr; }
    .legal-shell { width: min(100% - 28px, 1080px); padding-top: 22px; grid-template-columns: 1fr; gap: 14px; }
    .legal-aside { position: static; }
    .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 5px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 -7px 25px rgba(0,0,0,.07); backdrop-filter: blur(16px); }
    .mobile-nav a { min-width: 0; padding: 5px 2px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 760; text-decoration: none; }
    .mobile-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
    .mobile-nav svg { width: 20px; height: 20px; }
    .private-page .footer { display: none; }
}

@media (max-width: 520px) {
    .confirm-modal-actions { flex-direction: column; }
    .confirm-modal-actions .button { width: 100%; }
}

@media (max-width: 620px) {
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .trust-row { display: grid; }
    .product-preview { padding: 0; }
    .product-preview::before { inset: 5% -8%; }
    .preview-body { padding: 18px; }
    .card { padding: 18px; }
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { width: 100%; display: block; }
    .responsive-table tbody { display: grid; gap: 10px; }
    .responsive-table tr { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
    .responsive-table td { padding: 6px 0; border: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-align: right; white-space: normal!important; }
    .responsive-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 760; text-align: left; }
    .responsive-table .empty-cell { display: block; text-align: center; }
    .responsive-table .empty-cell::before { display: none; }
    .responsive-table tbody tr:hover { background: var(--surface); }
    .invoice-meta, .settlement-breakdown { grid-template-columns: 1fr; }
    .modal { padding: 0; align-items: end; }
    .modal-card { border-radius: 22px 22px 0 0; }
	.objection-modal-details { grid-template-columns: 1fr; }
	.legal-modal-card { max-height: 92dvh; }
	.legal-modal-header { padding: 17px 18px; }
	.legal-modal-body { padding: 20px 18px 28px; }
    .modal-tasks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}
