@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap");

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --ink: #1f2933;
    --muted: #52606d;
    --accent: #123c69;
    --border: #d9e2ec;
    --danger: #b42318;

    /* Uinvest brand palette (from logo) */
    --brand-navy: #0e3a53;
    --brand-navy-700: #0f485c;
    --brand-blue: #2f97d4;
    --brand-blue-700: #1d6fa0;
    --brand-green: #5cb946;
    --brand-green-700: #4aa739;
    --brand-ink: #16242e;
    --brand-muted: #5b6b78;
    --brand-soft: #eef4f8;
    --brand-grad: linear-gradient(140deg, #0e3a53 0%, #1d6fa0 100%);
    --brand-shadow: 0 14px 32px rgba(15, 72, 92, 0.10);
}

* {
    box-sizing: border-box;
}

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

.material-symbols-outlined {
    font-family: "Material Symbols Outlined", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.app-header {
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.app-header h1 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

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

.app-nav a,
.app-nav button {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
}

.app-nav a.active {
    border-color: var(--accent);
    color: var(--accent);
}

#app {
    padding: 16px;
}

.screen {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.screen h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.savings-target-screen {
    margin-bottom: 100px;
}

/* Savings target is an immersive view but retains a few purpose-built financial cards. */
.savings-goal-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.savings-goal-hero-copy {
    max-width: 290px;
}

.savings-goal-hero-icon,
.savings-plan-card-icon,
.savings-empty-plan-icon,
.savings-topup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.savings-goal-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--brand-blue);
    background: linear-gradient(145deg, rgba(47, 151, 212, 0.15), rgba(92, 185, 70, 0.16));
}

.savings-goal-hero-icon .material-symbols-outlined {
    font-size: 27px;
}

.savings-target-form {
    padding: 22px 20px;
    border: 1px solid rgba(15, 72, 92, 0.06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 60, 83, 0.07);
}

.savings-target-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dbe4ea;
    border-radius: 16px;
    background: #f8fafb;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.savings-target-input-wrap:focus-within {
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 151, 212, 0.10);
}

.savings-target-currency {
    padding-left: 17px;
    color: var(--brand-navy);
    font-size: 20px;
    font-weight: 800;
}

.savings-target-input {
    width: 100%;
    padding: 15px 16px 15px 8px;
    border: 0 !important;
    border-radius: 16px;
    outline: 0;
    color: #172d3a;
    background: transparent !important;
    font-size: 20px;
    font-weight: 800;
    box-shadow: none !important;
}

.savings-target-input:focus {
    outline: 0;
}

.savings-plan-card {
    padding: 21px 20px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0e3a53 0%, #15536c 57%, #2278a1 100%);
    box-shadow: 0 16px 28px rgba(14, 58, 83, 0.20);
}

.savings-plan-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.14);
}

.savings-empty-plan {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(47, 151, 212, 0.18);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(47, 151, 212, 0.07), rgba(255, 255, 255, 0.75));
}

.savings-empty-plan-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--brand-blue);
    background: #e8f4fb;
}

.savings-topup-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    color: #334155;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 60, 83, 0.04);
}

.savings-topup-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--brand-blue);
    background: #eaf5fc;
}

.stack {
    display: grid;
    gap: 12px;
}

.two-col {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font: inherit;
}

button {
    cursor: pointer;
    background: #fff;
}

button.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

button.danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

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

.actions button,
.actions a {
    width: auto;
}

.notice {
    border-left: 4px solid var(--accent);
    padding: 8px 10px;
    background: #f8fbff;
    color: var(--muted);
}

.error {
    border-left-color: var(--danger);
    background: #fff5f5;
    color: #7a271a;
}

.auth-login-biometric-hint {
    margin: 10px 4px 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}

.kv {
    display: grid;
    gap: 6px;
}

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

.list {
    margin: 0;
    padding-left: 18px;
}

.list li {
    margin-bottom: 6px;
}

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

.small {
    font-size: 0.85rem;
}

.kyc-screen {
    gap: 14px;
}

.kyc-header h2 {
    margin-bottom: 4px;
}

.kyc-header p {
    margin: 0;
}

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

.kyc-summary-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
}

.kyc-summary-metric {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: #f9fbfd;
    display: grid;
    gap: 4px;
}

.kyc-summary-metric span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6d7784;
}

.kyc-summary-metric strong {
    font-size: 1.15rem;
    color: #0f385f;
}

.kyc-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e6edf4;
    overflow: hidden;
}

.kyc-progress-fill {
    height: 100%;
    background: #1170aa;
    border-radius: inherit;
    transition: width 180ms ease;
}

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

.kyc-item {
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    padding: 12px;
    background: #fbfdff;
    display: grid;
    gap: 8px;
}

.kyc-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kyc-item-id {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c7a89;
    font-weight: 700;
}

.kyc-item-description {
    margin: 0;
    color: #243342;
    line-height: 1.35;
}

.kyc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #5a6875;
    font-size: 0.82rem;
}

.kyc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.kyc-badge-success {
    background: #e8f9ef;
    color: #0d7a3a;
}

.kyc-badge-info {
    background: #e6f2ff;
    color: #1257a0;
}

.kyc-badge-pending {
    background: #f2f4f7;
    color: #5d6a78;
}

.kyc-selected-meta {
    border: 1px dashed #ced8e4;
    border-radius: 8px;
    padding: 10px;
    background: #f8fbff;
    display: grid;
    gap: 4px;
}

.kyc-selected-meta p {
    margin: 0;
    color: #425466;
    font-size: 0.88rem;
}

body.page-kyc {
    background: #f3f4f6;
    overflow-x: hidden;
}

body.page-kyc .shell-header {
    display: none;
}

body.page-kyc #app-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px 106px;
}

.kyc-v2-screen {
    font-family: "Public Sans", "Segoe UI", Tahoma, sans-serif;
    display: grid;
    gap: 16px;
    padding-bottom: 20px;
    overflow-x: clip;
}

.kyc-v2-topbar {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    padding: 10px 0 6px;
    position: sticky;
    top: 0;
    background: #f3f4f6;
    z-index: 6;
}

.kyc-v2-topbar h2 {
    margin: 0;
    text-align: center;
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.kyc-v2-back {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kyc-v2-back svg {
    width: 22px;
    height: 22px;
}

.kyc-v2-spacer {
    display: block;
}

.kyc-v2-progress {
    display: grid;
    gap: 10px;
}

.kyc-v2-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kyc-v2-progress-head p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #64748b;
}

.kyc-v2-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #d8f0ff;
    color: #0b95dd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    white-space: nowrap;
}

.kyc-v2-progress-card {
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(15, 72, 92, 0.05);
}

.kyc-v2-ring {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    position: relative;
    background: conic-gradient(var(--brand-blue) calc(var(--progress, 0) * 1%), #dde4ec 0);
    display: grid;
    place-items: center;
}

.kyc-v2-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

.kyc-v2-ring span {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.kyc-v2-progress-copy {
    display: grid;
    gap: 4px;
}

.kyc-v2-progress-copy h3 {
    margin: 0;
    font-size: 1.38rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.kyc-v2-progress-copy p {
    margin: 0;
    color: #687588;
    line-height: 1.4;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.kyc-v2-list-wrap {
    display: grid;
    gap: 10px;
}

.kyc-v2-list-wrap h3 {
    margin: 2px 0 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.kyc-v2-doc-list {
    display: grid;
    gap: 11px;
}

.kyc-v2-doc-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 13px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.kyc-v2-doc-required {
    border: 2px dashed #b4e0ff;
}

.kyc-v2-doc-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.kyc-v2-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
}

.kyc-v2-doc-icon svg {
    width: 22px;
    height: 22px;
}

.kyc-v2-doc-icon-verified {
    background: #eaf8df;
    color: #75bf45;
}

.kyc-v2-doc-icon-review {
    background: #e9f2fb;
    color: #4a99cb;
}

.kyc-v2-doc-icon-required {
    background: #edf1f6;
    color: #90a0b6;
}

.kyc-v2-doc-copy {
    min-width: 0;
}

.kyc-v2-doc-copy h4 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.28;
    color: #1e293b;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kyc-v2-doc-copy p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.kyc-v2-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.kyc-v2-dot-verified {
    background: #75bf45;
}

.kyc-v2-dot-review {
    background: #4a99cb;
}

.kyc-v2-dot-required {
    background: #cdd6e1;
}

.kyc-v2-doc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 74px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d5dde7;
    text-decoration: none;
    color: #374151;
    background: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
    cursor: default;
    white-space: nowrap;
}

.kyc-v2-doc-action.is-primary {
    background: var(--brand-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 72, 92, 0.2);
}

button.kyc-v2-doc-action {
    cursor: pointer;
}

.kyc-v2-doc-action.is-muted {
    background: #f3f5f8;
    border-color: #dce3ea;
    color: #6b7280;
}

.kyc-v2-doc-empty p {
    margin: 0;
    color: #64748b;
}

.kyc-v2-pending-wrap {
    display: grid;
    gap: 10px;
}

.kyc-v2-pending-wrap h3 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.kyc-v2-pending-list {
    display: grid;
    gap: 9px;
}

.kyc-v2-pending-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.kyc-v2-pending-card h4 {
    margin: 0;
    font-size: 0.84rem;
    color: #1f2937;
    line-height: 1.35;
}

.kyc-v2-pending-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.4;
}

body.kyc-upload-open {
    overflow: hidden;
}

.kyc-upload-scrim {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(9, 15, 27, 0.48);
    backdrop-filter: blur(3px);
}

.kyc-upload-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    pointer-events: none;
}

.kyc-upload-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
    transform: translateY(100%);
    transition: transform 240ms ease;
    pointer-events: auto;
}

.kyc-upload-sheet[aria-hidden="false"] .kyc-upload-shell {
    transform: translateY(0);
}

.kyc-upload-handle {
    height: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
}

.kyc-upload-handle::before {
    content: "";
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
}

.kyc-upload-inner {
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
}

.kyc-upload-header h3 {
    margin: 0;
    color: #0e3a53;
    font-size: 1.3rem;
    line-height: 1.2;
}

.kyc-upload-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
}

.kyc-upload-dropzone {
    border: 2px dashed rgba(70, 151, 200, 0.45);
    background: rgba(70, 151, 200, 0.07);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
    display: grid;
    gap: 10px;
}

.kyc-upload-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 999px;
    color: #2f97d4;
    background: rgba(70, 151, 200, 0.18);
    display: grid;
    place-items: center;
}

.kyc-upload-icon svg {
    width: 28px;
    height: 28px;
}

.kyc-upload-copy-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2740;
}

.kyc-upload-copy-meta {
    margin: 2px 0 0;
    font-size: 0.79rem;
    color: #64748b;
}

.kyc-upload-copy-file {
    margin: 6px 0 0;
    font-size: 0.76rem;
    color: #0f385f;
    font-weight: 600;
    word-break: break-word;
}

.kyc-upload-select-btn {
    width: auto;
    justify-self: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #0e3a53;
    background: #0e3a53;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.kyc-upload-file-input {
    display: none;
}

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

.kyc-upload-checks p {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
    padding-left: 18px;
    position: relative;
}

.kyc-upload-checks p::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    position: absolute;
    left: 0;
    top: 0.42rem;
}

.kyc-upload-actions {
    display: grid;
    gap: 8px;
}

.kyc-upload-actions button[type="submit"] {
    border-radius: 12px;
    background: #0e3a53;
    border-color: #0e3a53;
    color: #fff;
    font-weight: 700;
    min-height: 48px;
}

.kyc-upload-actions button[type="submit"]:disabled {
    background: rgba(9, 63, 90, 0.4);
    border-color: rgba(9, 63, 90, 0.4);
    cursor: not-allowed;
}

.kyc-upload-actions .secondary {
    border-radius: 12px;
    min-height: 44px;
    font-weight: 600;
}

.kyc-v2-hero {
    border-radius: 14px;
    padding: 18px;
    min-height: 106px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:
        radial-gradient(circle at 82% 28%, rgba(30, 164, 236, 0.22), transparent 40%),
        radial-gradient(circle at 15% 80%, rgba(21, 38, 84, 0.35), transparent 45%),
        repeating-radial-gradient(circle at 78% 50%, rgba(26, 114, 174, 0.2) 0, rgba(26, 114, 174, 0.2) 2px, rgba(16, 38, 86, 0) 6px, rgba(16, 38, 86, 0) 12px),
        linear-gradient(115deg, #0c1833 0%, #122f60 55%, #102948 100%);
}

.kyc-v2-hero-content {
    position: relative;
    z-index: 1;
    max-width: 220px;
}

.kyc-v2-hero-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}

.kyc-v2-hero-content p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.4;
}

.kyc-v2-hero-icon {
    color: rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.kyc-v2-hero-icon svg {
    width: 100%;
    height: 100%;
}

.kyc-v2-ops-wrap {
    display: grid;
    gap: 12px;
}

.kyc-v2-ops-wrap > h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.kyc-v2-ops-wrap > p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.kyc-v2-ops-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.kyc-v2-ops-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.kyc-v2-footer-note {
    margin: 8px 0 0;
    text-align: center;
    color: #b5c0d0;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.kyc-v2-home-indicator {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.kyc-v2-home-indicator span {
    width: 128px;
    height: 5px;
    border-radius: 999px;
    background: #c8d0dd;
}

body.page-kyc pre {
    white-space: pre-wrap;
    word-break: break-word;
}

#kyc-upload-dropzone.is-dragover {
    border-color: rgba(70, 151, 200, 0.6);
    background: rgba(70, 151, 200, 0.1);
}

#kyc-upload-submit:not(:disabled) {
    background: #0e3a53;
}

.state {
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 8px;
}

code,
pre {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
}

pre {
    padding: 10px;
    overflow-x: auto;
}

body:has(.auth-login-screen) .app-header,
body:has(.auth-reset-screen) .app-header,
body:has(.auth-set-password-screen) .app-header,
body:has(.auth-password-updated-screen) .app-header,
body.page-login .app-header,
body.page-forgot-password .app-header,
body.page-register .app-header,
body.page-set-new-password .app-header,
body.page-password-updated .app-header {
    display: none;
}

body:has(.auth-login-screen) #app,
body:has(.auth-reset-screen) #app,
body:has(.auth-set-password-screen) #app,
body:has(.auth-password-updated-screen) #app,
body.page-login #app,
body.page-forgot-password #app,
body.page-register #app,
body.page-set-new-password #app,
body.page-password-updated #app,
body:has(.auth-login-screen) #app-shell,
body.page-login #app-shell,
body.page-register #app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: none;
    margin: 0;
    padding: 24px 16px 32px;
}

body:has(.auth-reset-screen) #app,
body.page-forgot-password #app {
    align-items: stretch;
    padding: 0;
}

.auth-login-screen {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

.auth-login-brand {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.auth-login-logo {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.auth-login-logo img {
    width: 152px;
    max-width: 100%;
    height: auto;
    display: block;
}

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

.auth-login-logo svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
}

.auth-login-brand h2 {
    margin: 2px 0 0;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.auth-login-brand p {
    margin: 0;
    color: #6d7683;
    font-weight: 500;
}

.auth-login-card {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 14px 32px rgba(15, 72, 92, 0.08);
}

.auth-login-state {
    margin-bottom: 12px;
}

.auth-login-form {
    display: grid;
    gap: 18px;
}

.auth-login-field {
    display: grid;
    gap: 8px;
}

.auth-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.auth-login-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a7f8d;
}

.auth-login-row a {
    font-size: 0.88rem;
    color: #6a7481;
    text-decoration: none;
    font-weight: 600;
}

.auth-login-row a:hover {
    color: var(--brand-blue);
}

.auth-login-input-wrap {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #c8d2dd;
    background: #f5f8fb;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    transition: box-shadow 120ms ease, border-color 120ms ease;
}

.auth-login-input-wrap:focus-within {
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 151, 212, 0.16);
}

.auth-login-input-wrap input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    color: #55626e;
}

.auth-login-input-wrap input::placeholder {
    color: #a0a9b4;
}

.auth-login-input-wrap input:focus {
    outline: none;
}

.auth-login-icon-button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-login-icon-button svg {
    width: 20px;
    height: 20px;
    fill: #7f8a97;
}

.auth-login-submit {
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    height: 56px;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(15, 72, 92, 0.26);
    transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-login-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(15, 72, 92, 0.32);
}

.auth-login-submit:active {
    transform: scale(0.985);
}

.auth-login-divider {
    margin: 22px 0;
    position: relative;
    text-align: center;
    color: #8a93a0;
    font-weight: 700;
    font-size: 0.85rem;
}

.auth-login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e1e6ec;
    transform: translateY(-50%);
}

.auth-login-divider span {
    position: relative;
    background: #fff;
    padding: 0 14px;
}

.auth-login-biometric {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #d2dce5;
    background: #fff;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.auth-login-biometric:hover {
    border-color: var(--brand-blue);
    background: rgba(47, 151, 212, 0.05);
    box-shadow: 0 6px 16px rgba(47, 151, 212, 0.12);
}

.auth-login-biometric:active {
    transform: scale(0.985);
}

.auth-login-biometric:focus-visible {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(47, 151, 212, 0.18);
}

.auth-login-biometric:disabled,
.auth-login-biometric[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.auth-login-biometric-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(47, 151, 212, 0.12);
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-login-biometric-icon .material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.auth-login-biometric-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--brand-blue);
}

.auth-login-footer {
    text-align: center;
}

.auth-login-footer p {
    margin: 0;
    color: #6f7783;
    font-weight: 500;
}

.auth-login-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
}

.auth-login-footer a:hover {
    text-decoration: underline;
}

.auth-login-trust {
    text-align: center;
    display: grid;
    gap: 10px;
    opacity: 0.55;
}

.auth-login-trust p {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #707985;
}

.auth-login-trust-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-login-trust-badges span {
    width: 36px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, #d4dae1 0%, #e8edf2 100%);
}

.auth-login-feedback {
    width: 100%;
}

.auth-register-screen {
    max-width: 460px;
}

.auth-reset-screen {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: max(884px, 100dvh);
    display: block;
    font-family: "Public Sans", "Inter", "Segoe UI", Tahoma, sans-serif;
}

.auth-reset-shell {
    position: relative;
    min-height: max(884px, 100dvh);
    display: flex;
    flex-direction: column;
    background: #f7f9fb;
    overflow: hidden;
}

.auth-reset-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 24px 18px 20px;
}

.auth-reset-back {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0e3a53;
    text-decoration: none;
}

.auth-reset-back:hover {
    background: rgba(9, 62, 88, 0.08);
}

.auth-reset-back .material-symbols-outlined {
    font-size: 24px;
}

.auth-reset-topbar h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0e3a53;
    line-height: 1.2;
}

.auth-reset-spacer {
    width: 40px;
    height: 40px;
}

.auth-reset-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 28px;
}

.auth-reset-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 6px 16px rgba(15, 72, 92, 0.06);
    display: grid;
    gap: 28px;
}

.auth-reset-state {
    margin: 0;
}

.auth-reset-hero {
    display: grid;
    gap: 12px;
}

.auth-reset-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: var(--brand-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 12px 26px rgba(15, 72, 92, 0.22);
}

.auth-reset-hero-icon .material-symbols-outlined {
    font-size: 40px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
}

.auth-reset-hero h3 {
    margin: 0;
    color: #0e3a53;
    font-size: 1.74rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin-bottom: 30px;
}

.auth-reset-hero p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-reset-form {
    display: grid;
    gap: 30px;
}

.auth-reset-field {
    display: grid;
    gap: 8px;
}

.auth-reset-field > span:first-child {
    margin-left: 1px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-reset-input-wrap {
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f9fbfd;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-reset-input-wrap:focus-within {
    border-color: #2f97d4;
    box-shadow: 0 0 0 2px rgba(70, 151, 200, 0.16);
}

.auth-reset-input-wrap input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    color: #334155;
    font-size: 1rem;
}

.auth-reset-input-wrap input:focus {
    outline: none;
}

.auth-reset-input-wrap input::placeholder {
    color: #94a3b8;
}

.auth-reset-input-wrap .material-symbols-outlined {
    font-size: 22px;
    color: #c0cad6;
    flex: 0 0 22px;
}

.auth-reset-submit {
    border: none;
    border-radius: 14px;
    height: 56px;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(15, 72, 92, 0.24);
    transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-reset-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(15, 72, 92, 0.3);
}

.auth-reset-submit:active {
    transform: scale(0.985);
}

.auth-reset-inline-action {
    display: flex;
    justify-content: center;
}

.auth-reset-code-link {
    color: #2f86bd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
}

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

.auth-reset-footer {
    margin-top: auto;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 30px 0 12px;
}

.auth-reset-footer a {
    color: #2f97d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-reset-footer a:hover {
    text-decoration: underline;
}

.auth-reset-footer .material-symbols-outlined {
    font-size: 14px;
}

.auth-reset-home-indicator {
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: #d7dee7;
}

.auth-reset-bg {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(48px);
}

.auth-reset-bg-a {
    width: 255px;
    height: 255px;
    top: -68px;
    right: -86px;
    background: rgba(9, 62, 88, 0.08);
}

.auth-reset-bg-b {
    width: 255px;
    height: 255px;
    bottom: -112px;
    left: -108px;
    background: rgba(70, 151, 200, 0.07);
}

.auth-set-password-screen {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
    font-family: "Public Sans", "Inter", "Segoe UI", Tahoma, sans-serif;
}

.auth-set-password-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-set-password-back {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0e3a53;
    text-decoration: none;
}

.auth-set-password-back:hover {
    background: rgba(9, 62, 88, 0.08);
}

.auth-set-password-back .material-symbols-outlined {
    font-size: 20px;
}

.auth-set-password-topbar h2 {
    margin: 0;
    color: #0e3a53;
    font-size: 1.15rem;
    font-weight: 700;
}

.auth-set-password-spacer {
    width: 40px;
    height: 40px;
}

.auth-set-password-intro {
    display: grid;
    gap: 8px;
    padding: 2px 4px;
}

.auth-set-password-intro h3 {
    margin: 0;
    color: #111827;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.auth-set-password-intro p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-set-password-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-set-password-form {
    display: grid;
    gap: 20px;
}

.auth-set-password-state {
    margin: 0;
}

.auth-set-password-section {
    display: grid;
    gap: 10px;
}

.auth-set-password-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 700;
}

.auth-set-password-code-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.auth-set-password-code-input {
    width: 100%;
    height: 52px;
    border: 0;
    border-bottom: 2px solid #d1d5db;
    border-radius: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    background: transparent;
    color: #1f2937;
    padding: 0;
}

.auth-set-password-code-input:focus {
    outline: none;
    border-bottom-color: var(--brand-blue);
    box-shadow: none;
}

.auth-set-password-hint {
    margin: 0;
    color: #9ca3af;
    font-size: 0.7rem;
    font-style: italic;
}

.auth-set-password-passwords {
    gap: 14px;
}

.auth-set-password-floating {
    position: relative;
    display: block;
    padding-top: 8px;
}

.auth-set-password-floating input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    background: transparent;
    padding: 8px 32px 8px 0;
    color: #1f2937;
}

.auth-set-password-floating input:focus {
    outline: none;
    border-bottom-color: var(--brand-blue);
}

.auth-set-password-floating span {
    position: absolute;
    left: 0;
    top: 14px;
    color: #6b7280;
    font-size: 0.92rem;
    transition: transform 140ms ease, color 140ms ease, font-size 140ms ease, top 140ms ease;
    pointer-events: none;
}

.auth-set-password-floating input:focus + span,
.auth-set-password-floating input:not(:placeholder-shown) + span {
    top: -2px;
    transform: scale(0.84);
    transform-origin: left top;
    color: #0e3a53;
}

.auth-set-password-eye {
    position: absolute;
    right: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-set-password-eye .material-symbols-outlined {
    font-size: 20px;
}

.auth-set-password-strength {
    display: grid;
    gap: 6px;
}

.auth-set-password-strength-bar {
    height: 4px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.auth-set-password-strength-item {
    border-radius: 999px;
    background: #d1d5db;
}

.auth-set-password-strength-item.active {
    background: #0e3a53;
}

.auth-set-password-strength-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.auth-set-password-strength-meta p {
    margin: 0;
    color: #6b7280;
    font-size: 0.7rem;
}

.auth-set-password-strength-meta span {
    color: #0e3a53;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-set-password-actions {
    display: grid;
    gap: 10px;
}

.auth-set-password-submit {
    border: none;
    border-radius: 14px;
    height: 54px;
    background: var(--brand-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 10px 22px rgba(15, 72, 92, 0.24);
    transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-set-password-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(15, 72, 92, 0.3);
}

.auth-set-password-submit:active {
    transform: scale(0.985);
}

.auth-set-password-support {
    text-align: center;
    color: #2f86bd;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.auth-set-password-support:hover {
    text-decoration: underline;
}

.auth-password-updated-screen {
    width: 100%;
    max-width: 430px;
    min-height: max(884px, 100dvh);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-family: "Public Sans", "Inter", "Segoe UI", Tahoma, sans-serif;
    position: relative;
    background: #f7f9fb;
    overflow: hidden;
}

.auth-password-updated-screen::before {
    content: "";
    position: absolute;
    inset: auto auto 16% -26%;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(9, 62, 88, 0.08);
    filter: blur(36px);
    pointer-events: none;
}

.auth-password-updated-screen::after {
    content: "";
    position: absolute;
    inset: 56% -22% auto auto;
    width: 66%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(117, 191, 69, 0.08);
    filter: blur(40px);
    pointer-events: none;
}

.auth-password-updated-nav {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px 8px;
}

.auth-password-updated-back {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(9, 62, 88, 0.08);
    color: #0e3a53;
}

.auth-password-updated-back:hover {
    background: rgba(9, 62, 88, 0.12);
}

.auth-password-updated-kicker {
    color: rgba(9, 62, 88, 0.62);
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-password-updated-spacer {
    width: 40px;
    height: 40px;
}

.auth-password-updated-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 28px 10px;
}

.auth-password-updated-icon-wrap {
    position: relative;
    margin-bottom: 30px;
}

.auth-password-updated-icon-circle {
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: rgba(92, 185, 70, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-updated-icon-inner {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(92, 185, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-updated-icon-inner .material-symbols-outlined {
    color: var(--brand-green);
    font-size: 56px;
    font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48;
}

.auth-password-updated-dot {
    position: absolute;
    border-radius: 999px;
    background: rgba(117, 191, 69, 0.35);
    filter: blur(1px);
}

.auth-password-updated-dot-a {
    width: 24px;
    height: 24px;
    top: -6px;
    right: -6px;
}

.auth-password-updated-dot-b {
    width: 16px;
    height: 16px;
    bottom: -3px;
    left: -4px;
}

.auth-password-updated-main h1 {
    margin: 0 0 10px;
    color: #0e3a53;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 800;
}

.auth-password-updated-main p {
    margin: 0;
    max-width: 290px;
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-password-updated-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 22px 30px;
    display: grid;
    gap: 16px;
}

.auth-password-updated-submit {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-grad);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 72, 92, 0.24);
    transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-password-updated-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(15, 72, 92, 0.3);
}

.auth-password-updated-submit:active {
    transform: scale(0.985);
}

.auth-password-updated-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.42;
}

.auth-password-updated-brand span {
    width: 32px;
    height: 1px;
    background: #0f172a;
}

.auth-password-updated-brand small {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0f172a;
}

.auth-register-form {
    gap: 14px;
}

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

.auth-register-select-wrap select {
    appearance: none;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    color: #55626e;
    font: inherit;
}

.auth-register-select-wrap select:focus {
    outline: none;
}

.auth-register-payload {
    margin-bottom: 14px;
    border: 1px solid #d6e2ec;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.auth-register-payload-title {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #355062;
}

.auth-register-payload-subtitle {
    margin: 0 0 8px;
    font-size: 0.76rem;
    color: #5f7382;
    font-weight: 600;
}

.auth-register-payload pre {
    margin: 0;
    max-height: 210px;
    overflow: auto;
}

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

@media (max-width: 420px) {
    .auth-login-screen {
        gap: 18px;
    }

    .auth-login-brand h2 {
        font-size: 1.85rem;
    }

    .auth-login-card {
        padding: 22px;
    }

    .auth-reset-card {
        padding: 24px 18px;
        gap: 22px;
    }

    .auth-reset-hero h3 {
        font-size: 1.64rem;
    }

    .auth-reset-main {
        padding: 12px 16px 22px;
    }

    .auth-set-password-card {
        padding: 18px 16px;
    }

    .auth-set-password-code-grid {
        gap: 6px;
    }

    .auth-set-password-code-input {
        height: 48px;
        font-size: 1.2rem;
    }

    .auth-password-updated-nav {
        padding-inline: 16px;
    }

    .auth-password-updated-main {
        padding-inline: 20px;
    }

    .auth-password-updated-main h1 {
        font-size: 1.8rem;
    }

    .auth-password-updated-footer {
        padding-inline: 16px;
        padding-bottom: 24px;
    }
}

body:has(.dashboard-shell) .app-header,
body.page-dashboard .app-header {
    display: none;
}

body:has(.dashboard-shell) #app,
body.page-dashboard #app {
    min-height: max(884px, 100dvh);
    padding: 0 0 106px;
    display: flex;
    justify-content: center;
    background: #f7f9fb;
}

.dashboard-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 16px 18px 108px;
    display: grid;
    align-content: start;
    gap: 18px;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    color: #0e2f44;
    background: #f7f9fb;
}

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

.dashboard-head-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-head-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #2f97d4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-head-logo svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.dashboard-head-brand h2 {
    margin: 0;
    font-size: 2.1rem;
    color: #0e3a53;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.dashboard-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-head-actions button {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa6b5;
}

.dashboard-head-actions button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.dashboard-head-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5d8cf;
    border: 2px solid #efb8a8;
    color: #4e5d6f;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-portfolio-card {
    background: #fff;
    border: 1px solid #edf2f6;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(9, 62, 88, 0.06);
}

.dashboard-portfolio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.dashboard-portfolio-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8ea0;
    font-weight: 600;
}

.dashboard-portfolio-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    padding: 2px 8px;
    background: #e9f8ef;
    color: #2aaf62;
    font-weight: 700;
    font-size: 0.9rem;
}

.dashboard-portfolio-trend svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.dashboard-portfolio-total {
    margin: 0;
    color: #0e3a53;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.dashboard-sparkbars {
    height: 56px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    align-items: end;
    margin: 16px 0 18px;
}

.dashboard-sparkbars span {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: #9bc7e3;
}

.dashboard-portfolio-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf2f6;
    padding-top: 11px;
    gap: 12px;
}

.dashboard-portfolio-meta > div {
    min-width: 0;
}

.dashboard-portfolio-meta > div:first-child {
    border-right: 1px solid #edf2f6;
    padding-right: 10px;
}

.dashboard-portfolio-meta > div:last-child {
    padding-left: 6px;
}

.dashboard-portfolio-meta p {
    margin: 0 0 4px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9aa7b4;
    font-weight: 700;
}

.dashboard-portfolio-meta strong {
    color: #1c2d3f;
    font-size: 1.01rem;
    font-weight: 700;
}

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

.dashboard-action {
    border-radius: 16px;
    height: 56px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.95rem;
}

.dashboard-action .icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-action .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dashboard-action.primary {
    background: #0e3a53;
    color: #fff;
    box-shadow: 0 8px 18px rgba(9, 62, 88, 0.28);
}

.dashboard-action.primary:hover {
    background: #08364d;
}

.dashboard-action.outline {
    border: 2px solid #2f97d4;
    background: #f7fbff;
    color: #2f97d4;
}

.dashboard-wallet-note {
    margin: -4px 0 0;
    color: #617789;
    font-size: 0.78rem;
    font-weight: 500;
}

.dashboard-wallet-note.pending {
    color: #2b6f90;
}

.dashboard-block {
    display: grid;
    gap: 12px;
}

.dashboard-block h3 {
    margin: 0;
    color: #1f2b38;
    font-size: 1.8rem;
    font-weight: 700;
}

.dashboard-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.dashboard-block-head a {
    color: #2f97d4;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.dashboard-empty-state {
    border: 1px dashed #d9e2ea;
    background: #fff;
    color: #708292;
    border-radius: 16px;
    padding: 14px;
}

.dashboard-empty-state p {
    margin: 0;
}

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

.dashboard-activity-card {
    background: #fff;
    border: 1px solid #edf2f5;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dashboard-activity-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-activity-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f2f9;
    color: #2f97d4;
}

.dashboard-activity-icon.invest,
.dashboard-activity-icon.bank,
.dashboard-activity-icon.insight {
    background: #e9f2f9;
    color: #2f97d4;
}

.dashboard-activity-icon.redeem {
    background: #faecec;
    color: #d16d78;
}

.dashboard-activity-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.dashboard-activity-meta {
    min-width: 0;
}

.dashboard-activity-title,
.dashboard-activity-date,
.dashboard-activity-amount,
.dashboard-activity-status {
    margin: 0;
}

.dashboard-activity-title {
    color: #2b3b4a;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
}

.dashboard-activity-date {
    color: #96a2af;
    font-size: 0.76rem;
}

.dashboard-activity-values {
    text-align: right;
}

.dashboard-activity-amount {
    color: #213447;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.dashboard-activity-status {
    font-size: 0.63rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dashboard-activity-status.success {
    color: #15a34a;
}

.dashboard-activity-status.pending {
    color: #d97706;
}

.dashboard-activity-status.failed {
    color: #b42318;
}

.dashboard-activity-status.neutral {
    color: #6b7280;
}

.dashboard-insights-card {
    background: #0e3a53;
    border-radius: 16px;
    padding: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 26px rgba(9, 62, 88, 0.24);
}

.dashboard-insights-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(140deg, #5c6878 0%, #3e4b5b 100%);
    position: relative;
    flex-shrink: 0;
}

.dashboard-insights-thumb::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 35%, #f0f3f6 0%, #b9c2ce 60%, #8f98a6 100%);
}

.dashboard-insights-copy span {
    display: inline-block;
    background: #2f97d4;
    color: #f6fbff;
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dashboard-insights-copy h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dashboard-insights-copy p {
    margin: 7px 0 0;
    color: #c2d6e4;
    font-size: 0.84rem;
    line-height: 1.35;
}

.dashboard-insights-copy a {
    color: #55a8d7;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-retry-row {
    display: flex;
    justify-content: flex-end;
}

.dashboard-retry-row button {
    width: auto;
    border-radius: 10px;
    border: 1px solid #d3dce4;
    background: #fff;
    color: #2b3f51;
    font-weight: 700;
    padding: 8px 12px;
    font-size: 0.78rem;
}

.dashboard-mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e6ebf0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-mobile-nav a {
    text-decoration: none;
    color: #a2adba;
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 0.6rem;
    font-weight: 700;
}

.dashboard-mobile-nav a span {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mobile-nav a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dashboard-mobile-nav a em {
    font-style: normal;
}

.dashboard-mobile-nav a.active {
    color: #2f97d4;
}

@media (max-width: 420px) {
    .dashboard-shell {
        padding: 14px 12px 104px;
    }

    .dashboard-head-brand h2 {
        font-size: 1.8rem;
    }

    .dashboard-portfolio-card {
        padding: 18px;
    }

    .dashboard-portfolio-total {
        font-size: 2.65rem;
    }

    .dashboard-block h3 {
        font-size: 1.55rem;
    }
}

#app-shell {
    padding: 14px 16px 90px;
    max-width: 430px;
    margin: 0 auto;
}

.shell-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shell-header-brand {
    display: inline-grid;
    gap: 1px;
}

.shell-logo-wordmark {
    width: 112px;
    max-width: 100%;
    height: auto;
    display: block;
}

.shell-header-brand-copy {
    display: grid;
    gap: 0;
}

.shell-header-brand-copy small {
    display: block;
    color: #748091;
    margin-top: 1px;
}

.shell-logout {
    width: auto;
    border: 1px solid #d1dae3;
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.82rem;
}

.flash {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.flash-success {
    background: #ecfdf3;
    border-color: #b5ebcd;
    color: #137547;
}

.flash-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.state-panel {
    border: 1px dashed #d0dae3;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.state-panel h3,
.state-panel p {
    margin: 0;
}

.state-panel.state-error {
    border-color: #fda4af;
    background: #fff1f2;
}

.state-panel.state-empty {
    border-color: #c6d3e0;
    background: #f8fafc;
}

.state-panel.state-loading {
    border-color: #c5d7e4;
    background: #f0f7fc;
}

.state-retry {
    display: inline-flex;
    width: fit-content;
    border: 1px solid #c9d4df;
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 600;
}

.app-page-loader {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 140ms ease;
}

.app-page-loader.is-visible {
    opacity: 1;
}

.app-page-loader-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(14, 58, 83, 0.12);
}

.app-page-loader-bar {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #0e3a53, #2f97d4, #68c451);
    box-shadow: 0 0 14px rgba(47, 151, 212, 0.65);
    animation: app-page-loader-slide 1.05s ease-in-out infinite;
}

.app-page-loader-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@keyframes app-page-loader-slide {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(250%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-page-loader-bar {
        width: 100%;
        animation: none;
    }
}

.confirm-toast-layer {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.confirm-toast {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #dbe4ed;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
    padding: 12px;
    display: grid;
    gap: 10px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: auto;
}

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

.confirm-toast-message {
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.4;
}

.confirm-toast-actions {
    display: flex;
    gap: 8px;
}

.confirm-toast-actions button {
    flex: 1;
    width: auto;
    min-height: 40px;
    border-radius: 10px;
    font-weight: 700;
}

.confirm-toast-cancel {
    background: #f8fafc;
    border-color: #d5dee8;
    color: #475569;
}

.confirm-toast-continue {
    background: #0e3a53;
    border-color: #0e3a53;
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #e4ebf2;
    white-space: nowrap;
}

.data-table th {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font: inherit;
}

.shell-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #e1e7ef;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.shell-bottom-nav a {
    text-decoration: none;
    color: #8a96a5;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
}

.shell-bottom-nav a.active {
    color: #1f728f;
    background: #ebf5fb;
}

.dashboard-retry-row a {
    text-decoration: none;
    border: 1px solid #d3dce4;
    border-radius: 10px;
    background: #fff;
    color: #2b3f51;
    font-weight: 700;
    padding: 8px 12px;
    font-size: 0.78rem;
}

@media (min-width: 700px) {
    #app-shell {
        padding-bottom: 110px;
    }

    .shell-bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        width: 430px;
        border-left: 1px solid #e1e7ef;
        border-right: 1px solid #e1e7ef;
    }
}

body.page-dashboard {
    background: #f2f4f7;
}

body.page-dashboard #app-shell {
    max-width: 430px;
    margin: 0 auto;
    padding: 18px 16px 120px;
}

.dash2-shell {
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    color: #263241;
    display: grid;
    gap: 20px;
}

.dash2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dash2-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dash2-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0b4a66;
    color: #dff5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(11, 74, 102, 0.18);
}

.dash2-brand h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    color: #123f59;
    letter-spacing: -0.01em;
}

.dash2-brand p {
    margin: 2px 0 0;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #8a9aab;
    font-weight: 700;
}

.dash2-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dash2-bell {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #8b98aa;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash2-bell svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dash2-bell span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1ac37d;
    position: absolute;
    top: 5px;
    right: 4px;
}

.dash2-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #f1c5ba;
    background: #ffd9d1;
    color: #496172;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}

.dash2-hero {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(26, 44, 65, 0.06);
    border: 1px solid #ecf0f5;
}

.dash2-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dash2-hero-top p {
    margin: 0;
    color: #7e8ea1;
    font-size: 0.9rem;
    font-weight: 600;
}

.dash2-trend {
    color: #1cae78;
    background: #e9fbf2;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.dash2-hero h2 {
    margin: 8px 0 16px;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1f3042;
}

.dash2-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf2f6;
    padding-top: 12px;
}

.dash2-meta > div:first-child {
    border-right: 1px solid #edf2f6;
    padding-right: 8px;
}

.dash2-meta > div:last-child {
    padding-left: 12px;
}

.dash2-meta p {
    margin: 0 0 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #95a2b2;
    font-weight: 700;
}

.dash2-meta strong {
    color: #223447;
    font-size: 1.05rem;
}

.dash2-meta strong.green {
    color: #0ebf7e;
}

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

.dash2-btn {
    height: 52px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    font-weight: 700;
}

.dash2-btn-primary {
    background: #0b4a66;
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 74, 102, 0.25);
}

.dash2-btn-outline {
    border: 2px solid #d7dee7;
    background: #f4f7fa;
    color: #154560;
}

.dash2-section {
    display: grid;
    gap: 10px;
}

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

.dash2-section-head.solo {
    justify-content: flex-start;
}

.dash2-section-head h3 {
    margin: 0;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #93a5b8;
}

.dash2-section-head a {
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    color: #246487;
}

.dash2-empty-card {
    background: #fff;
    border: 1px dashed #d6e0e9;
    border-radius: 16px;
    padding: 14px;
    color: #8092a5;
}

.dash2-empty-card p {
    margin: 0;
}

.dash2-holding {
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dash2-holding-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash2-hold-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dash2-hold-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: #114966;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.dash2-hold-icon.bank::before {
    mask-image: linear-gradient(#000,#000);
    -webkit-mask-image: linear-gradient(#000,#000);
    border-radius: 2px;
}

.dash2-hold-icon.globe::before {
    mask-image: radial-gradient(circle at center, #000 52%, transparent 54%);
    -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 54%);
    border-radius: 50%;
}

.dash2-holding h4 {
    margin: 0;
    font-size: 1.02rem;
    color: #2a3b4d;
}

.dash2-holding p {
    margin: 2px 0 0;
    color: #99a8b8;
    font-size: 0.85rem;
}

.dash2-holding-value {
    text-align: right;
}

.dash2-holding-value strong {
    display: block;
    color: #1f3042;
    font-size: 1.02rem;
}

.dash2-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash2-badge.active {
    color: #2f71de;
    background: #e8f0ff;
}

.dash2-badge.growth {
    color: #9154dd;
    background: #f4eaff;
}

.dash2-activity-list {
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 16px;
    overflow: hidden;
}

.dash2-activity-row {
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dash2-activity-row + .dash2-activity-row {
    border-top: 1px solid #edf2f6;
}

.dash2-activity-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash2-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf4f9;
    position: relative;
    flex-shrink: 0;
}

.dash2-activity-icon::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1rem;
}

.dash2-activity-icon.plus {
    background: #e9f9f0;
}

.dash2-activity-icon.plus::before {
    content: "+";
    color: #22b276;
}

.dash2-activity-icon.coin {
    background: #edf4f9;
}

.dash2-activity-icon.coin::before {
    content: "¤";
    color: #2f6b90;
}

.dash2-activity-icon.minus {
    background: #fdeeee;
}

.dash2-activity-icon.minus::before {
    content: "-";
    color: #df6b6b;
}

.dash2-activity-row h4 {
    margin: 0;
    color: #2a3b4d;
    font-size: 1rem;
}

.dash2-activity-row p {
    margin: 2px 0 0;
    color: #99a8b8;
    font-size: 0.82rem;
}

.dash2-activity-amount {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.dash2-activity-amount.positive {
    color: #1dad73;
}

.dash2-activity-amount.negative {
    color: #293347;
}

.dash2-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5ecf3;
    padding: 10px 8px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
}

.dash2-bottom-nav a {
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #9aa9b8;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dash2-bottom-nav a span {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dash2-bottom-nav a em {
    font-style: normal;
}

.dash2-bottom-nav a.active {
    color: #1f728f;
}

@media (min-width: 700px) {
    .dash2-bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        width: 430px;
        border-left: 1px solid #e5ecf3;
        border-right: 1px solid #e5ecf3;
    }
}

@media (max-width: 420px) {
    body.page-dashboard #app-shell {
        padding: 14px 12px 116px;
    }

    .dash2-brand h1 {
        font-size: 1.72rem;
    }

    .dash2-hero h2 {
        font-size: 2.45rem;
    }

    .dash2-section-head h3 {
        font-size: 0.93rem;
    }
}

body.page-products .products-segmented-control input:checked + label,
body.page-products .segmented-control input:checked + label {
    background-color: #0e3a53;
    color: #ffffff;
}

body.page-products .products-line-clamp {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.page-products.products-drawer-open {
    overflow: hidden;
}

body.page-products .products-detail-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 44;
    opacity: 0;
    transition: opacity 220ms ease;
}

body.page-products.products-drawer-open .products-detail-scrim {
    opacity: 1;
}

body.page-products .products-detail-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -18px 50px rgba(2, 6, 23, 0.28);
    transform: translateY(105%);
    transition: transform 260ms ease;
}

body.page-products.products-drawer-open .products-detail-drawer {
    transform: translateY(0);
}

body.page-products .products-detail-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 8px;
}

body.page-products .products-detail-handle {
    width: 48px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
}

body.page-products .products-detail-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 148px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.page-products .products-detail-scroll::-webkit-scrollbar {
    display: none;
}

body.page-products .products-detail-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
}

body.page-products .products-ai-panel {
    display: grid;
    gap: 14px;
}

body.page-products .products-ai-hint {
    margin: 0;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
}

body.page-products .products-ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-products .products-ai-chip {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0e3a53;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
}

body.page-products .products-ai-field {
    display: grid;
    gap: 8px;
}

body.page-products .products-ai-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-products .products-ai-select,
body.page-products .products-ai-textarea {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.page-products .products-ai-textarea {
    resize: vertical;
    min-height: 112px;
}

body.page-products .products-ai-select:focus,
body.page-products .products-ai-textarea:focus {
    outline: none;
    border-color: #2f97d4;
    box-shadow: 0 0 0 3px rgba(47, 151, 212, 0.12);
}

body.page-products .products-ai-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.page-products .products-ai-meta {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.5;
}

body.page-products .products-ai-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #0e3a53;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(14, 58, 83, 0.18);
}

body.page-products .products-ai-submit[disabled] {
    background: #cbd5e1;
    color: #475569;
    box-shadow: none;
}

body.page-products .products-ai-loading,
body.page-products .products-ai-empty,
body.page-products .products-ai-error,
body.page-products .products-ai-answer {
    border-radius: 18px;
    padding: 16px 18px;
}

body.page-products .products-ai-loading,
body.page-products .products-ai-empty {
    background: #f8fafc;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.6;
}

body.page-products .products-ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-products .products-ai-error {
    background: #fff1f2;
    color: #be123c;
    font-size: 0.9375rem;
    line-height: 1.6;
}

body.page-products .products-ai-answer {
    background: #f8fbfd;
    border: 1px solid #d8e8f2;
    display: grid;
    gap: 14px;
}

body.page-products .products-ai-answer-text {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.7;
}

body.page-products .products-ai-bullets,
body.page-products .products-ai-citations-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

body.page-products .products-ai-bullet-item,
body.page-products .products-ai-citation-item {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.55;
}

body.page-products .products-ai-citations {
    display: grid;
    gap: 8px;
}

body.page-products .products-ai-citations-title {
    margin: 0;
    color: #0e3a53;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-products .products-ai-disclaimer {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    body.page-products .products-detail-drawer {
        background: #ffffff;
    }

    body.page-products .products-detail-handle {
        background: #334155;
    }

    body.page-products .products-detail-footer {
        background: rgba(255, 255, 255, 0.95);
        border-top-color: #e2e8f0;
    }
}

body.page-profile {
    background: #f7f9fb;
    color: #0f172a;
}

body.profile-sheet-open {
    overflow: hidden;
}

body.page-profile .hidden {
    display: none !important;
}

.profile-v2-screen {
    min-height: 100vh;
    background: #f7f9fb;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.profile-v2-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 18px;
    background: rgba(247, 249, 251, 0.94);
    backdrop-filter: blur(10px);
}

.profile-v2-topbar h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.profile-v2-back,
.profile-v2-spacer {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.profile-v2-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0e3a53;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.profile-v2-back:hover {
    background: rgba(9, 63, 90, 0.08);
}

.profile-v2-main {
    flex: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 8px 22px 140px;
}

.profile-v2-notice,
.profile-v2-state,
.profile-v2-inline-note {
    border-radius: 20px;
    padding: 16px 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.profile-v2-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.profile-v2-notice-error,
.profile-v2-state-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.profile-v2-state-empty {
    background: #ffffff;
    border: 1px solid #dbe4ec;
    color: #475569;
}

.profile-v2-state-loading {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.profile-v2-state h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.profile-v2-state p {
    margin: 0;
}

.profile-v2-state-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    margin-top: 14px;
    border-radius: 12px;
    background: #0e3a53;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-v2-skeleton {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: profile-v2-shimmer 1.2s infinite linear;
}

.profile-v2-skeleton + .profile-v2-skeleton {
    margin-top: 12px;
}

.profile-v2-skeleton-lg {
    height: 18px;
    width: 74%;
}

.profile-v2-skeleton-sm {
    width: 42%;
}

@keyframes profile-v2-shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.profile-v2-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 6px 6px;
    margin-bottom: 34px;
}

.profile-v2-avatar-wrap {
    position: relative;
    margin-bottom: 22px;
}

.profile-v2-photo-form {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.profile-v2-photo-stage {
    position: relative;
    display: inline-flex;
}

.profile-v2-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--brand-grad);
    border: 6px solid #ffffff;
    box-shadow: 0 18px 36px rgba(15, 72, 92, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.profile-v2-avatar-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 999px;
    border: 6px solid #ffffff;
    box-shadow: 0 18px 36px rgba(9, 63, 90, 0.12);
    background: #e2e8f0;
}

.profile-v2-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #0e3a53;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-v2-avatar-edit .material-symbols-outlined {
    font-size: 18px;
}

.profile-v2-photo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-v2-photo-actions p {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}

.profile-v2-photo-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-v2-photo-save,
.profile-v2-photo-cancel {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.profile-v2-photo-save {
    border: none;
    background: #0e3a53;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(9, 63, 90, 0.14);
}

.profile-v2-photo-cancel {
    border: 1px solid #d5dde6;
    background: #ffffff;
    color: #475569;
}

.profile-v2-photo-save:hover,
.profile-v2-photo-cancel:hover {
    transform: translateY(-1px);
}

.profile-v2-hero h2 {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0e3a53;
}

.profile-v2-hero p {
    margin: 10px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.profile-v2-group {
    margin-bottom: 28px;
}

.profile-v2-group h3 {
    margin: 0 0 14px;
    padding: 0 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #94a3b8;
}

.profile-v2-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.profile-v2-group-head h3 {
    margin: 0;
    padding: 0;
}

.profile-v2-group-head span {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

.profile-v2-card,
.profile-v2-bank-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.profile-v2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.profile-v2-row + .profile-v2-row {
    border-top: 1px solid #f1f5f9;
}

.profile-v2-row-button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

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

.profile-v2-row-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-v2-row-icon {
    width: 22px;
    height: 22px;
    color: #94a3b8;
    flex: 0 0 auto;
}

.profile-v2-row-icon-success {
    color: #75bf45;
}

.profile-v2-row-copy {
    min-width: 0;
}

.profile-v2-row-copy strong,
.profile-v2-bank-item-copy strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: #334155;
}

.profile-v2-row-copy small,
.profile-v2-bank-item-copy small {
    display: block;
    margin-top: 3px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #64748b;
    word-break: break-word;
}

.profile-v2-chevron {
    color: #cbd5e1;
}

.profile-v2-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-v2-pill-success {
    background: rgba(117, 191, 69, 0.12);
    color: #5b9f30;
}

.profile-v2-pill-info {
    background: rgba(70, 151, 200, 0.14);
    color: #2a7db0;
}

.profile-v2-pill-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.profile-v2-pill-neutral {
    background: #eef2f7;
    color: #64748b;
}

.profile-v2-inline-note {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.profile-v2-bank-card {
    padding: 20px;
}

.profile-v2-bank-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-v2-bank-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #f7f9fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.profile-v2-bank-empty p {
    margin: 0 0 18px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.profile-v2-bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-v2-bank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.profile-v2-bank-item-copy {
    min-width: 0;
}

.profile-v2-bank-check {
    color: #75bf45;
}

.profile-v2-bank-sep {
    color: #cbd5e1;
}

.profile-v2-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    padding: 0 18px;
    border-radius: 16px;
    background: #0e3a53;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(9, 63, 90, 0.16);
    border: none;
    cursor: pointer;
}

.profile-v2-primary-action-light {
    background: #eef5f9;
    color: #0e3a53;
    box-shadow: none;
}

.profile-v2-logout {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 18px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(239, 68, 68, 0.82);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-v2-group-danger {
    margin-top: 4px;
}

.profile-v2-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.64rem;
    line-height: 1.8;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.profile-v2-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.profile-v2-sheet-bg {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
}

.profile-v2-sheet-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 0 12px 0;
}

.profile-v2-sheet {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -16px 44px rgba(15, 23, 42, 0.16);
    padding: 10px 20px calc(28px + env(safe-area-inset-bottom));
}

.profile-v2-sheet-handle {
    width: 48px;
    height: 6px;
    border-radius: 999px;
    background: #dbe4ec;
    margin: 4px auto 16px;
}

.profile-v2-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-v2-sheet-head h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.profile-v2-sheet-head p {
    margin: 8px 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748b;
}

.profile-v2-sheet-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-v2-sheet-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-v2-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-v2-field > span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.profile-v2-field input,
.profile-v2-field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe4ec;
    border-radius: 16px;
    background: #f8fafc;
    padding: 0 16px;
    font-size: 0.96rem;
    color: #0f172a;
    outline: none;
}

.profile-v2-field input:focus,
.profile-v2-field select:focus {
    border-color: rgba(9, 63, 90, 0.28);
    box-shadow: 0 0 0 4px rgba(9, 63, 90, 0.08);
    background: #ffffff;
}

.profile-v2-sheet-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    border: none;
    border-radius: 16px;
    background: #0e3a53;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(9, 63, 90, 0.16);
}

.profile-v2-sheet-error {
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.86rem;
    line-height: 1.55;
    padding: 12px 14px;
}

.profile-v2-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(9, 63, 90, 0.06);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.04);
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
}

.profile-v2-bottom-nav-inner {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.profile-v2-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #94a3b8;
}

.profile-v2-nav-link span:last-child {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-v2-nav-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-v2-nav-link.is-active {
    color: #0e3a53;
}

.profile-v2-nav-link.is-active .profile-v2-nav-icon-wrap {
    background: rgba(9, 63, 90, 0.1);
}

.profile-v2-nav-link.is-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

@media (max-width: 420px) {
    .profile-v2-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-v2-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-v2-hero h2 {
        font-size: 1.65rem;
    }

    .profile-v2-pill {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.64rem;
    }

    .profile-v2-sheet {
        padding-left: 16px;
        padding-right: 16px;
    }
}
