/* =========================================================
   Inteligentão Investimentos — design system
   ========================================================= */

:root {
    --navy-950: #0b241f;
    --navy-900: #102e28;
    --navy-850: #143a31;
    --navy-800: #1a463b;
    --navy-700: #226054;
    --blue-700: #0d5f54;
    --blue-600: #167a6c;
    --blue-500: #1d9180;
    --blue-400: #5bc4b2;
    --blue-300: #9de3d5;
    --violet: #6b5b95;
    --green: #0b8f68;
    --green-bright: #37cba7;
    --red: #c64b52;
    --orange: #c4882d;
    --ink: #1c2b26;
    --ink-soft: #53655e;
    --ink-muted: #7f9086;
    --line: #dedbd0;
    --line-soft: #ece9df;
    --surface: #ffffff;
    --surface-soft: #f5f1e7;
    --surface-blue: #edf5f1;
    --shadow-sm: 0 4px 16px rgba(43, 53, 40, .06);
    --shadow-md: 0 14px 40px rgba(43, 53, 40, .08);
    --shadow-lg: 0 30px 80px rgba(10, 30, 24, .2);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Sora", "Inter", sans-serif;
    --sidebar-width: 268px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface-soft);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body:has(.sidebar) {
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -.025em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(29, 145, 128, .22);
}

:focus-visible {
    outline: 3px solid rgba(29, 145, 128, .38);
    outline-offset: 2px;
}

.icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    transform: translateY(-160%);
    background: #fff;
    color: var(--navy-900);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.text-gradient {
    background: linear-gradient(100deg, var(--blue-400) 5%, #e8c98e 48%, #c9b8d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.is-positive,
.positive {
    color: var(--green) !important;
}

.is-negative,
.negative {
    color: var(--red) !important;
}

.is-neutral,
.neutral {
    color: var(--ink-muted) !important;
}

.tabular {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.muted-text {
    color: var(--ink-muted);
    font-size: 13px;
}

.muted-small {
    color: var(--ink-muted);
    font-size: 12px;
}

/* =========================================================
   Botões, links e elementos de ação
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: var(--font-body);
    font-weight: 650;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600) 60%, #0d5f54);
    box-shadow: 0 10px 24px rgba(13, 95, 84, .25);
}

.button--primary:hover {
    box-shadow: 0 14px 30px rgba(13, 95, 84, .34);
}

.button--secondary {
    color: var(--blue-700);
    background: #eaf2ff;
    border-color: #d9e8ff;
}

.button--secondary:hover {
    background: #dfebff;
}

.button--white {
    color: var(--navy-900);
    background: #fff;
    border-color: #dbe7f5;
    box-shadow: 0 6px 18px rgba(12, 38, 75, .07);
}

.button--white:hover {
    background: #f7fbff;
}

.button--glass {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
}

.button--glass:hover {
    background: rgba(255, 255, 255, .12);
}

.button--ghost {
    color: var(--ink-soft);
    background: transparent;
    border-color: var(--line);
}

.button--ghost:hover {
    color: var(--ink);
    border-color: #c7d8eb;
    background: #fff;
}

.button--danger-ghost {
    color: var(--red);
    background: #fff5f6;
    border-color: #ffd8de;
}

.button--danger-ghost:hover {
    background: #ffe9ec;
}

.button--sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 9px;
}

.button--xs {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.button--lg {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 13px;
}

.button--block {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink-soft);
    transition: .18s ease;
}

.icon-button:hover {
    color: var(--blue-600);
    border-color: #c9ddf6;
    background: #f7fbff;
}

.icon-button--ghost {
    border-color: transparent;
    background: transparent;
}

.icon-button .icon {
    width: 19px;
    height: 19px;
}

.icon-link {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink-soft);
    background: #fff;
    transition: .18s ease;
}

.icon-link:hover {
    color: var(--blue-600);
    border-color: #c9ddf6;
    background: #f7fbff;
}

.icon-link--danger {
    color: var(--red);
    border-color: transparent;
    background: transparent;
}

.icon-link--danger:hover {
    color: #c62e44;
    background: #fff0f2;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-600);
    font-weight: 650;
    font-size: 13px;
    transition: gap .18s ease, color .18s ease;
}

.text-link .icon {
    width: 16px;
    height: 16px;
}

.text-link:hover {
    gap: 9px;
    color: var(--blue-700);
}

.text-link--dark {
    color: var(--navy-900);
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-muted);
}

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

.back-link .icon {
    width: 16px;
    height: 16px;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.row-actions form {
    display: inline-flex;
}

/* =========================================================
   Formulários
   ========================================================= */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label,
.field-label {
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.label-hint,
.optional {
    font-size: 11px;
    color: var(--ink-muted);
    font-weight: 500;
}

.optional {
    font-weight: 500;
    font-style: italic;
}

.required-dot {
    color: var(--blue-500);
}

.field input,
.field select,
.field textarea,
.input-wrap input,
.input-wrap select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder,
.input-wrap input::placeholder {
    color: #98a49c;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input-wrap input:focus,
.input-wrap select:focus {
    outline: none;
    border-color: #8cbdb0;
    box-shadow: 0 0 0 4px rgba(29, 145, 128, .11);
}

.field input[readonly] {
    background: #f7f4ec;
    color: var(--ink-soft);
    cursor: default;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    pointer-events: none;
    display: flex;
}

.input-wrap .input-icon .icon {
    width: 18px;
    height: 18px;
}

.input-wrap .input-icon + input {
    padding-left: 40px;
}

.input-wrap--icon input {
    padding-left: 40px;
}

.input-wrap--money .input-prefix {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
    pointer-events: none;
}

.input-wrap--money input {
    padding-left: 47px;
}

.input-wrap--select select {
    appearance: none;
    padding-right: 38px;
    cursor: pointer;
}

.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    pointer-events: none;
    display: flex;
}

.select-chevron .icon {
    width: 16px;
    height: 16px;
}

.input-wrap--compact input,
.input-wrap--compact select {
    min-height: 40px;
    font-size: 13px;
}

.field-hint {
    font-size: 11.5px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.field-error {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    border-radius: 7px;
}

.password-toggle:hover {
    color: var(--blue-600);
    background: #f1f7ff;
}

.password-toggle .icon {
    width: 18px;
    height: 18px;
}

.static-field {
    min-height: 46px;
    padding: 8px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #f7faff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.static-field strong {
    font-size: 13px;
    font-weight: 650;
}

.static-field span {
    font-size: 11px;
    color: var(--ink-muted);
}

.form-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 17px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
}

.form-alert .icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.form-alert strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 2px;
}

.form-alert p {
    color: inherit;
    opacity: .8;
    font-size: 12.5px;
}

.form-alert--error {
    color: #9d2234;
    background: #fff3f5;
    border: 1px solid #ffd7dd;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.form-actions--inline {
    padding-top: 0;
}

.inline-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f1f8ff;
    border: 1px solid #dcecff;
    color: #3f5e82;
    font-size: 12.5px;
    line-height: 1.55;
    margin-top: 14px;
}

.inline-note .icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.inline-note--warning {
    background: #fff8eb;
    border-color: #ffe9bf;
    color: #78551c;
}

/* =========================================================
   Badges, tags, progresso
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.badge--positive {
    color: #067353;
    background: #e4f9f0;
}

.badge--negative {
    color: #bd2d43;
    background: #ffedf0;
}

.badge--warning {
    color: #8d5b08;
    background: #fff4d9;
}

.badge--soft {
    color: #345a88;
    background: #edf4fc;
}

.badge--neutral {
    color: var(--ink-muted);
    background: #f0f4fa;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 650;
    color: var(--ink-soft);
    background: #f1f6fd;
    white-space: nowrap;
}

.tag--low,
.tag--safety-high {
    color: #087254;
    background: #e6f8f1;
}

.tag--medium {
    color: #8a5a0b;
    background: #fff4dc;
}

.tag--high,
.tag--safety-low {
    color: #b93246;
    background: #ffedf0;
}

.tag--safety-medium {
    color: #8a5a0b;
    background: #fff4dc;
}

.tag--neutral {
    color: var(--ink-muted);
    background: #f2f5fa;
}

.change-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    background: #eef4fb;
}

.change-pill.is-positive {
    color: var(--green) !important;
    background: #e7f8f1;
}

.change-pill.is-negative {
    color: var(--red) !important;
    background: #ffedf0;
}

.performance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.performance .icon {
    width: 16px;
    height: 16px;
}

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

.progress span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
}

.progress--lg {
    height: 9px;
}

/* =========================================================
   Cabeçalho público e rodapé
   ========================================================= */

.site-header,
.simple-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(4, 16, 31, .88);
    border-bottom-color: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 80px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.045em;
}

.brand-copy span {
    margin-top: 4px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: .62;
}

.brand--light {
    color: #fff;
}

.brand--dark {
    color: var(--navy-900);
}

.brand--dark .brand-mark {
    color: var(--blue-500);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 18px;
}

.site-nav a {
    font-size: 13px;
    font-weight: 550;
    color: rgba(255, 255, 255, .72);
    transition: color .18s ease;
}

.site-nav a:hover {
    color: #fff;
}

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

.header-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 600;
}

.header-login:hover {
    color: #fff;
}

.header-login .icon {
    width: 16px;
    height: 16px;
}

.mobile-nav-toggle {
    display: none;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
}

.mobile-nav {
    display: none;
    padding: 14px 24px 22px;
    background: rgba(4, 16, 31, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(18px);
}

.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav a {
    padding: 12px 8px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    border-radius: 8px;
}

.mobile-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.mobile-nav .button {
    margin-top: 8px;
    color: #fff;
}

.site-footer {
    background: var(--navy-950);
    color: #fff;
    padding: 66px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr .8fr .9fr 1fr;
    gap: 40px;
    padding-bottom: 52px;
}

.footer-brand p {
    max-width: 310px;
    margin-top: 20px;
    color: rgba(255, 255, 255, .46);
    font-size: 12.5px;
    line-height: 1.7;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 5px;
}

.footer-col h4 {
    margin: 0 0 8px;
    color: rgba(237, 196, 125, .78);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
}

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

.footer-note p {
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
}

.dot-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 4px rgba(42, 214, 163, .12);
    flex: 0 0 auto;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.footer-bottom p {
    color: rgba(255, 255, 255, .33);
    font-size: 11px;
}

/* =========================================================
   Landing page
   ========================================================= */

.landing-page {
    background: var(--surface-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 79% 15%, rgba(29, 145, 128, .22), transparent 33%),
        radial-gradient(circle at 9% 60%, rgba(91, 196, 178, .1), transparent 32%),
        linear-gradient(180deg, #102e28 0%, #143a31 54%, #173d34 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 82%);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.hero-orb--one {
    width: 420px;
    height: 420px;
    top: 140px;
    right: -220px;
    background: radial-gradient(circle, rgba(29, 145, 128, .22), transparent 66%);
}

.hero-orb--two {
    width: 280px;
    height: 280px;
    bottom: 40px;
    left: -160px;
    background: radial-gradient(circle, rgba(106, 92, 255, .16), transparent 68%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 58px;
    min-height: 590px;
    padding-bottom: 50px;
}

.hero-copy {
    max-width: 610px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px 7px 10px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .045);
    font-size: 11.5px;
    font-weight: 550;
    letter-spacing: .02em;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 67px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.052em;
    margin-bottom: 22px;
}

.hero-lead {
    max-width: 540px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .63);
    font-size: 16.5px;
    line-height: 1.7;
}

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

.hero-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: rgba(255, 255, 255, .42);
    font-size: 11.5px;
}

.hero-note .icon {
    width: 14px;
    height: 14px;
}

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 39px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid rgba(255, 255, 255, .09);
}

.hero-stats div:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.hero-stats strong {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.04em;
}

.hero-stats span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .4);
    font-size: 10.5px;
    letter-spacing: .04em;
}

.hero-visual {
    position: relative;
    justify-self: end;
    width: min(100%, 540px);
    padding: 16px 0;
}

.hero-preview {
    position: relative;
    z-index: 2;
    padding: 19px;
    color: var(--ink);
    background: linear-gradient(160deg, #ffffff 0%, #f7f4ec 100%);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    box-shadow: 0 40px 100px rgba(0, 12, 32, .5), 0 0 0 1px rgba(255, 255, 255, .05);
    transform: perspective(1500px) rotateY(-2.5deg) rotateX(1deg);
    transition: transform .5s ease;
}

.hero-preview:hover {
    transform: perspective(1500px) rotateY(0) rotateX(0);
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e7eff9;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    color: #3d5471;
}

.preview-logo {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #647b95;
    font-size: 9.5px;
}

.preview-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 2px 4px;
}

.preview-total > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-total span:first-child {
    color: #7a8fa7;
    font-size: 10px;
    font-weight: 550;
}

.preview-total strong {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -.045em;
    line-height: 1.1;
}

.preview-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #067353;
    background: #e8f9f2;
    font-size: 10px;
    font-weight: 700;
}

.preview-change .icon {
    width: 12px;
    height: 12px;
}

.preview-chart {
    position: relative;
    margin: 8px 0 10px;
    padding: 3px 0 0;
}

.preview-chart svg {
    display: block;
    width: 100%;
    height: 126px;
}

.preview-chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    color: #a0b1c4;
    font-size: 8px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e9f0f9;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 2px;
    border-bottom: 1px solid #eef4fa;
}

.preview-asset {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 750;
    color: #fff;
    background: linear-gradient(135deg, #167a6c, #5bc4b2);
}

.preview-asset--vale {
    background: linear-gradient(135deg, #0b8c68, #32c79e);
}

.preview-asset--aapl {
    background: linear-gradient(135deg, #353b4d, #6a7b99);
}

.preview-asset-copy {
    display: flex;
    flex-direction: column;
    min-width: 88px;
    line-height: 1.25;
}

.preview-asset-copy strong {
    font-size: 10.5px;
    color: #1c2b26;
}

.preview-asset-copy span {
    color: #8a9eb4;
    font-size: 8px;
}

.preview-row-value {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: right;
    line-height: 1.25;
}

.preview-row-value strong {
    font-size: 10px;
    color: #283f5b;
    font-variant-numeric: tabular-nums;
}

.preview-row-value span {
    color: #9aabbe;
    font-size: 8px;
}

.preview-badge {
    min-width: 53px;
    padding: 4px 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.preview-badge.positive {
    color: #087654 !important;
    background: #e8f9f2;
}

.preview-badge.negative {
    color: #bc3146 !important;
    background: #ffedf0;
}

.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    color: #7d91a8;
    font-size: 9px;
}

.preview-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.preview-footer .icon {
    width: 12px;
    height: 12px;
}

.preview-radar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #f1f5ef;
    font-size: 9px;
}

.preview-radar strong {
    color: #2b4667;
}

.preview-radar span {
    color: #087654;
    font-weight: 700;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(1, 14, 35, .28);
    border: 1px solid rgba(255, 255, 255, .7);
    animation: float 7s ease-in-out infinite;
}

.floating-card--one {
    top: -4px;
    left: -36px;
}

.floating-card--two {
    right: -27px;
    bottom: 24px;
    animation-delay: -3.5s;
}

.floating-icon,
.floating-check {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #eaf3ff;
    color: var(--blue-600);
}

.floating-check {
    color: #067353;
    background: #e6f9f1;
}

.floating-icon .icon,
.floating-check .icon {
    width: 15px;
    height: 15px;
}

.floating-card div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.floating-card small {
    color: #8498ad;
    font-size: 8px;
}

.floating-card strong {
    color: #1c2b26;
    font-size: 9.5px;
    font-weight: 650;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.market-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 69px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.market-strip-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.ticker-item > span {
    color: rgba(255, 255, 255, .35);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
}

.ticker-item strong {
    color: rgba(255, 255, 255, .88);
    font-size: 11.5px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.ticker-item small {
    font-size: 9.5px;
    font-weight: 650;
}

.market-strip-time {
    margin-left: auto;
    color: rgba(255, 255, 255, .28);
    font-size: 9px;
    white-space: nowrap;
}

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

.section--light {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--blue-300);
}

.section-heading h2,
.thesis-copy h2,
.catalog-copy h2,
.product-copy h2,
.radar-copy h2 {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: -.045em;
    color: var(--navy-900);
}

.section-heading p {
    max-width: 650px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.7;
}

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

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 258px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% -30%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(29, 145, 128, .1), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #c4daf5;
    box-shadow: var(--shadow-md);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 25px;
    border-radius: 12px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.feature-icon .icon {
    width: 21px;
    height: 21px;
}

.feature-icon--cyan {
    color: #0d6f66;
    background: #e4f7fd;
}

.feature-icon--violet {
    color: var(--violet);
    background: #efedff;
}

.feature-icon--green {
    color: #087755;
    background: #e7f9f2;
}

.feature-card h3 {
    margin-bottom: 9px;
    color: var(--navy-900);
    font-size: 17px;
    font-weight: 650;
}

.feature-card p {
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.65;
}

.feature-tag {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 20px;
    color: var(--blue-600);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .04em;
}

.section--product {
    color: #fff;
    background:
        radial-gradient(circle at 86% 16%, rgba(29, 145, 128, .19), transparent 34%),
        linear-gradient(180deg, #143a31, #102e28);
    overflow: hidden;
}

.product-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: 70px;
}

.product-copy h2 {
    color: #fff;
    margin-bottom: 20px;
}

.product-copy > p {
    max-width: 450px;
    color: rgba(255, 255, 255, .58);
    font-size: 14.5px;
    line-height: 1.75;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 26px 0 31px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .75);
    font-size: 12.5px;
}

.check-list .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--blue-300);
}

.product-visual {
    position: relative;
}

.product-window {
    position: relative;
    z-index: 2;
    color: var(--ink);
    background: #fff;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 5, 18, .55);
    transform: perspective(1800px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 15px;
    background: #f3f7fd;
    border-bottom: 1px solid #e7eef8;
    color: #8194aa;
    font-size: 8.5px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2dfed;
}

.window-dots span:first-child { background: #f3b6be; }
.window-dots span:nth-child(2) { background: #f0d497; }
.window-dots span:nth-child(3) { background: #a8ddc0; }

.window-lock {
    margin-left: auto;
    display: flex;
}

.window-lock .icon {
    width: 11px;
    height: 11px;
}

.window-content {
    display: flex;
    min-height: 325px;
}

.window-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: 46px;
    padding-top: 16px;
    background: #143a31;
}

.window-logo {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
}

.window-nav {
    width: 17px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .16);
}

.window-nav.active {
    background: var(--blue-400);
    box-shadow: 0 0 10px rgba(91, 196, 178, .5);
}

.window-main {
    flex: 1;
    padding: 18px;
    background: #f8fbff;
}

.window-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 17px;
}

.window-kpis > div {
    padding: 11px;
    background: #fff;
    border: 1px solid #e8f0fa;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
}

.window-kpis span {
    color: #8b9db2;
    font-size: 7.5px;
}

.window-kpis strong {
    margin: 2px 0;
    color: #1c2b26;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: -.03em;
}

.window-kpis small {
    color: #0b8b68;
    font-size: 7px;
}

.window-table {
    border: 1px solid #e8f0fa;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.window-tr {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .6fr;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #eef4fb;
    font-size: 8px;
    color: #415873;
    align-items: center;
}

.window-tr:last-child {
    border-bottom: 0;
}

.window-tr > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.window-tr span:nth-child(n+2) {
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.window-th {
    color: #96a7ba;
    background: #fbfdff;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--blue-500);
}

.mini-dot--cyan { background: var(--blue-400); }
.mini-dot--violet { background: var(--violet); }
.mini-dot--green { background: var(--green-bright); }

.product-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -80px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 145, 128, .35), transparent 68%);
    filter: blur(20px);
}

.section--thesis {
    background: #fff;
}

.thesis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 78px;
}

.thesis-visual {
    position: relative;
}

.thesis-card {
    position: relative;
    z-index: 2;
    padding: 22px;
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(18, 53, 98, .12);
}

.thesis-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf3fa;
}

.thesis-card-top > div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.thesis-card-top strong {
    color: var(--navy-900);
    font-size: 12px;
}

.thesis-card-top span:not(.asset-avatar):not(.badge) {
    color: var(--ink-muted);
    font-size: 9.5px;
}

.thesis-card-top .badge {
    margin-left: auto;
}

.thesis-body {
    padding: 18px 2px 8px;
}

.thesis-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blue-600);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.thesis-body h3 {
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 20px;
}

.thesis-body p {
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.7;
}

.thesis-body ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0;
    padding-left: 17px;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.thesis-body blockquote {
    margin: 15px 0 4px;
    padding: 11px 14px;
    border-left: 2px solid var(--blue-400);
    border-radius: 0 8px 8px 0;
    background: #f7f4ec;
    color: #46617f;
    font-family: var(--font-display);
    font-size: 12px;
    font-style: italic;
    line-height: 1.55;
}

.thesis-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #edf3fa;
}

.thesis-tags span {
    color: #547291;
    font-size: 9px;
}

.thesis-float {
    position: absolute;
    z-index: 3;
    right: -26px;
    bottom: -17px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #27496e;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 53, 98, .16);
    font-size: 10px;
    font-weight: 650;
}

.thesis-float .icon {
    width: 15px;
    height: 15px;
    color: var(--blue-600);
}

.thesis-copy p {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.75;
}

.mini-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 28px;
}

.mini-points > div {
    padding: 14px;
    border-radius: 12px;
    background: #f5f9ff;
    border: 1px solid #e7f0fb;
}

.mini-points span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--blue-600);
    background: #e7f1ff;
}

.mini-points .icon {
    width: 15px;
    height: 15px;
}

.mini-points strong {
    display: block;
    margin-bottom: 3px;
    color: var(--navy-900);
    font-size: 12px;
}

.mini-points p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.section--radar {
    color: #fff;
    background:
        radial-gradient(circle at 18% 35%, rgba(29, 145, 128, .14), transparent 33%),
        #102e28;
    overflow: hidden;
}

.radar-bg {
    position: absolute;
    width: 720px;
    height: 720px;
    right: -270px;
    top: -160px;
    border: 1px solid rgba(91, 196, 178, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(91, 196, 178, .025), 0 0 0 160px rgba(91, 196, 178, .015), 0 0 0 240px rgba(91, 196, 178, .008);
}

.radar-grid {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 76px;
}

.radar-copy h2 {
    color: #fff;
}

.radar-copy > p {
    max-width: 450px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .56);
    font-size: 14.5px;
    line-height: 1.75;
}

.radar-schedule {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 30px;
}

.schedule-line {
    display: grid;
    grid-template-columns: 10px 45px 1fr;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .42);
    font-size: 11px;
}

.schedule-line strong {
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.schedule-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(91, 196, 178, .12);
}

.radar-visual {
    position: relative;
}

.radar-panel {
    position: relative;
    z-index: 2;
    padding: 19px;
    color: var(--ink);
    background: #fff;
    border-radius: 19px;
    box-shadow: 0 35px 90px rgba(0, 7, 22, .55);
}

.radar-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9f1fa;
}

.radar-panel-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #233d5d;
}

.radar-scan-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.radar-scan-icon .icon {
    width: 14px;
    height: 14px;
}

.radar-asset {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid #eef4fb;
}

.radar-asset > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 82px;
    line-height: 1.3;
}

.radar-asset > div:first-child strong {
    color: #1c2b26;
    font-size: 11px;
}

.radar-asset > div:first-child span {
    color: #91a3b7;
    font-size: 8.5px;
}

.radar-asset-prices {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: right;
    line-height: 1.3;
}

.radar-asset-prices span {
    color: #95a6b9;
    font-size: 8px;
}

.radar-asset-prices strong {
    color: #253e5b;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.radar-asset .badge {
    min-width: 63px;
    justify-content: center;
}

.radar-asset--muted {
    opacity: .72;
}

.radar-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    color: #94a6ba;
    font-size: 8.5px;
}

.radar-footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.radar-pulse {
    position: absolute;
    z-index: 1;
    width: 380px;
    height: 380px;
    left: -120px;
    bottom: -140px;
    border: 1px solid rgba(29, 145, 128, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(29, 145, 128, .05), 0 0 0 90px rgba(29, 145, 128, .025);
}

.catalog-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.catalog-copy p {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.75;
}

.catalog-badges {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 25px 0;
}

.catalog-badges span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.catalog-badges strong {
    min-width: 39px;
    padding: 3px 6px;
    border-radius: 5px;
    color: var(--blue-700);
    background: #e9f2ff;
    font-size: 9px;
    text-align: center;
}

.catalog-visual {
    padding: 19px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dce8f6;
    border-radius: 10px;
    background: #f7faff;
    color: #8ea2b8;
}

.catalog-search .icon {
    width: 17px;
    height: 17px;
}

.catalog-placeholder {
    font-size: 12px;
}

.catalog-key {
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 4px;
    color: #91a4b9;
    background: #fff;
    border: 1px solid #e2ebf6;
    font-size: 8px;
}

.catalog-results {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.catalog-result {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 5px;
    border-bottom: 1px solid #eef4fb;
}

.catalog-result:last-child {
    border-bottom: 0;
}

.catalog-code {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 29px;
    padding: 0 6px;
    border-radius: 6px;
    color: #0d5f54;
    background: #eaf3ff;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .02em;
}

.catalog-code--blue { color: #3353a5; background: #eef0ff; }
.catalog-code--violet { color: #5b3da8; background: #f1edff; }
.catalog-code--green { color: #0a6f56; background: #e8f9f2; }

.catalog-result > div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.catalog-result strong {
    color: #1c2b26;
    font-size: 11px;
}

.catalog-result > div span {
    color: #93a5b8;
    font-size: 8.5px;
}

.catalog-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    border-radius: 6px;
    color: #8ba0b6;
    background: #f5f9fe;
}

.catalog-arrow .icon {
    width: 12px;
    height: 12px;
}

.landing-ad {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 56px;
    padding: 17px 20px;
    border: 1px dashed #ccdff4;
    border-radius: 13px;
    background: #f9fcff;
}

.landing-ad-label {
    align-self: flex-start;
    color: #9aabbe;
    font-size: 7.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.landing-ad-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--blue-600);
    background: #e9f2ff;
}

.landing-ad-icon .icon {
    width: 18px;
    height: 18px;
}

.landing-ad > div:nth-of-type(2) {
    flex: 1;
}

.landing-ad strong {
    display: block;
    color: var(--navy-900);
    font-size: 12px;
}

.landing-ad p {
    color: var(--ink-muted);
    font-size: 10.5px;
}

.cta-section {
    padding-top: 36px;
    padding-bottom: 96px;
    background: #eaf2fd;
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: 66px 40px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 50% 120%, rgba(29, 145, 128, .35), transparent 55%),
        linear-gradient(135deg, #102e28, #173d34);
    border-radius: 26px;
}

.cta-card .eyebrow {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    font-size: clamp(34px, 4.3vw, 52px);
    letter-spacing: -.05em;
}

.cta-card > p:not(.cta-note) {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

.cta-note {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
}

.cta-note .icon {
    width: 13px;
    height: 13px;
}

.cta-orb {
    position: absolute;
    width: 480px;
    height: 480px;
    left: 50%;
    bottom: -470px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(91, 196, 178, .35);
    box-shadow: 0 0 0 70px rgba(91, 196, 178, .04), 0 0 0 140px rgba(91, 196, 178, .02);
}

/* =========================================================
   Páginas institucionais
   ========================================================= */

.simple-header {
    position: relative;
    background: var(--navy-900);
    border-bottom-color: rgba(255, 255, 255, .08);
}

.simple-page {
    background: var(--surface-soft);
}

.simple-hero {
    padding: 100px 0 90px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(29, 145, 128, .24), transparent 35%),
        linear-gradient(160deg, #102e28, #1a463b);
}

.simple-hero-inner {
    max-width: 780px;
    margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.simple-hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: -.055em;
}

.simple-hero p {
    max-width: 690px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .6);
    font-size: 15.5px;
    line-height: 1.75;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 38px;
    padding: 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #143a31, #173d34);
}

.contact-panel h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: 22px;
}

.contact-panel p {
    max-width: 600px;
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

.legal-hero {
    padding: 80px 0 55px;
    color: #fff;
    background: linear-gradient(160deg, #143a31, #1a463b);
}

.legal-hero h1 {
    font-size: clamp(38px, 5vw, 56px);
}

.legal-hero p {
    max-width: 700px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 740px);
    gap: 70px;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-nav a {
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: 12px;
}

.legal-nav a:hover {
    color: var(--blue-600);
    background: #fff;
}

.legal-content section {
    margin-bottom: 34px;
}

.legal-content h2 {
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 20px;
}

.legal-content p {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   Autenticação
   ========================================================= */

.auth-page {
    background: #f5f9ff;
}

.auth-shell {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 46px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(29, 145, 128, .25), transparent 35%),
        radial-gradient(circle at 8% 85%, rgba(91, 196, 178, .11), transparent 30%),
        #102e28;
}

.auth-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 92%);
    pointer-events: none;
}

.auth-brand-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .45);
    font-size: 10.5px;
}

.auth-back:hover {
    color: #fff;
}

.auth-back .icon {
    width: 14px;
    height: 14px;
}

.auth-brand-copy {
    position: relative;
    z-index: 2;
    margin: auto 0 0;
    padding-top: 50px;
    max-width: 430px;
}

.auth-brand-copy h1 {
    margin-bottom: 19px;
    font-size: clamp(42px, 4.4vw, 63px);
    letter-spacing: -.06em;
    line-height: 1.02;
}

.auth-brand-copy p {
    max-width: 370px;
    color: rgba(255, 255, 255, .5);
    font-size: 13.5px;
    line-height: 1.75;
}

.auth-mini-dashboard {
    position: relative;
    z-index: 2;
    width: min(100%, 390px);
    margin: 38px 0 auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
}

.auth-mini-head {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.auth-mini-head > span:first-child {
    color: rgba(255, 255, 255, .42);
    font-size: 8px;
}

.auth-mini-head strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: -.03em;
}

.auth-mini-head .preview-badge {
    margin-left: auto;
}

.auth-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 74px;
    padding: 13px 0 9px;
}

.auth-mini-bars span {
    flex: 1;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, var(--blue-400), rgba(29, 145, 128, .3));
    opacity: .8;
}

.auth-mini-bars span:nth-child(3n) {
    opacity: .48;
}

.auth-mini-foot {
    display: flex;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .34);
    font-size: 7.5px;
}

.auth-mini-foot span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-brand-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.auth-brand-foot p {
    color: rgba(255, 255, 255, .4);
    font-family: var(--font-display);
    font-size: 11px;
    font-style: italic;
}

.auth-brand-foot span {
    color: rgba(255, 255, 255, .25);
    font-size: 8.5px;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px;
    background: #fff;
}

.auth-mobile-brand {
    display: none;
}

.auth-card {
    width: min(100%, 430px);
    margin: 0 auto;
}

.auth-card--wide {
    width: min(100%, 640px);
}

.auth-card .eyebrow {
    margin-bottom: 10px;
}

.auth-card > .flash {
    margin-bottom: 20px;
}

.auth-card h2 {
    margin-bottom: 7px;
    color: var(--navy-900);
    font-size: 34px;
    letter-spacing: -.045em;
}

.auth-subtitle {
    margin-bottom: 29px;
    color: var(--ink-muted);
    font-size: 13px;
}

.auth-card .form-stack {
    gap: 17px;
}

.auth-card .button--block {
    margin-top: 5px;
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 23px;
    padding: 12px 13px;
    border-radius: 9px;
    color: #6d7f76;
    background: #f1f6f0;
    border: 1px solid #dce8dc;
}

.auth-security-note .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--blue-500);
}

.auth-security-note p {
    font-size: 10.5px;
    line-height: 1.55;
}

.auth-form-foot {
    display: flex;
    justify-content: space-between;
    width: min(100%, 430px);
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-muted);
    font-size: 10.5px;
}

.auth-card--wide + .auth-form-foot {
    width: min(100%, 640px);
}

.auth-form-foot a {
    color: var(--blue-600);
    font-weight: 600;
}

.setup-steps {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 36px 0 auto;
    max-width: 400px;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.setup-step > span {
    color: var(--blue-300);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    padding-top: 2px;
}

.setup-step strong {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 11.5px;
}

.setup-step p {
    margin-top: 2px;
    color: rgba(255, 255, 255, .38);
    font-size: 9.5px;
}

.auth-brand-panel--setup .auth-brand-copy {
    margin-top: 35px;
}

.auth-form-panel--setup {
    overflow-y: auto;
}

/* =========================================================
   Aplicação — shell, sidebar e topbar
   ========================================================= */

.app-page {
    background: var(--surface-soft);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 23px 18px 17px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0%, rgba(29, 145, 128, .18), transparent 32%),
        linear-gradient(180deg, #143a31 0%, #0b241f 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    overflow-y: auto;
    transition: transform .28s ease;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px 22px;
}

.sidebar .brand-mark {
    width: 36px;
    height: 36px;
}

.sidebar .brand-copy strong {
    font-size: 17px;
}

.sidebar-close {
    display: none;
    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
}

.sidebar-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(91, 196, 178, .2);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(29, 145, 128, .18), rgba(91, 196, 178, .07));
    transition: .18s ease;
}

.sidebar-cta:hover {
    border-color: rgba(91, 196, 178, .4);
    background: linear-gradient(135deg, rgba(29, 145, 128, .26), rgba(91, 196, 178, .1));
}

.sidebar-cta-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: var(--blue-500);
    box-shadow: 0 4px 12px rgba(29, 145, 128, .35);
}

.sidebar-cta-icon .icon {
    width: 16px;
    height: 16px;
}

.sidebar-cta > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sidebar-cta strong {
    color: rgba(255, 255, 255, .9);
    font-size: 11.5px;
    font-weight: 650;
}

.sidebar-cta small {
    color: rgba(255, 255, 255, .38);
    font-size: 8.5px;
}

.sidebar-cta-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: rgba(255, 255, 255, .4);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-label {
    padding: 0 10px 7px;
    color: rgba(255, 255, 255, .28);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 39px;
    padding: 0 11px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 500;
    transition: .16s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .045);
}

.nav-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(29, 145, 128, .24), rgba(29, 145, 128, .09));
}

.nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 2px;
    background: var(--blue-400);
    box-shadow: 0 0 8px rgba(91, 196, 178, .5);
}

.nav-icon {
    width: 17px;
    height: 17px;
    opacity: .82;
}

.nav-link.is-active .nav-icon {
    color: var(--blue-300);
    opacity: 1;
}

.nav-spark {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--green-bright);
}

.sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: auto;
    padding-top: 28px;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(42, 214, 163, .12);
}

.status-dot.is-closed {
    background: #8095ad;
    box-shadow: 0 0 0 3px rgba(128, 149, 173, .12);
}

.sidebar-status div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sidebar-status strong {
    color: rgba(255, 255, 255, .67);
    font-size: 9px;
    font-weight: 550;
}

.sidebar-status small {
    color: rgba(255, 255, 255, .28);
    font-size: 7.5px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0 3px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #1d9180, #5bc4b2);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
}

.avatar--lg {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 15px;
}

.sidebar-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.sidebar-user-copy strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .86);
    font-size: 10.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy small {
    color: rgba(255, 255, 255, .3);
    font-size: 8px;
}

.sidebar-user .icon-button {
    width: 30px;
    height: 30px;
    margin-left: auto;
    color: rgba(255, 255, 255, .33);
}

.sidebar-user .icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.sidebar-user .icon-button .icon {
    width: 15px;
    height: 15px;
}

.logout-form {
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .3);
    font-size: 9.5px;
    text-align: left;
}

.logout-button:hover {
    color: rgba(255, 255, 255, .7);
}

.logout-button .icon {
    width: 13px;
    height: 13px;
}

.sidebar-backdrop {
    display: none;
}

.app-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 74px;
    padding: 0 31px;
    background: rgba(244, 248, 254, .86);
    border-bottom: 1px solid rgba(217, 230, 245, .8);
    backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-menu {
    display: none;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    font-size: 10.5px;
}

.topbar-breadcrumb strong {
    color: var(--ink);
    font-weight: 600;
}

.crumb-sep {
    color: #b6c4d5;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-muted);
    font-size: 10px;
}

.topbar-date .icon {
    width: 14px;
    height: 14px;
}

.market-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: #fff;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.market-pill.is-closed .status-dot {
    background: #8ea1b7;
    box-shadow: 0 0 0 3px rgba(142, 161, 183, .12);
}

.sync-form {
    display: flex;
}

.sync-form .button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 10.5px;
}

.sync-form .icon {
    width: 14px;
    height: 14px;
}

.topbar-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #167a6c, #5bc4b2);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
}

.app-content {
    flex: 1;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 29px 32px 44px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 32px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-muted);
    font-size: 8.5px;
}

.app-footer strong {
    color: var(--ink-soft);
    font-weight: 600;
}

/* =========================================================
   Cabeçalhos internos e componentes gerais
   ========================================================= */

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.page-heading-copy {
    min-width: 0;
}

.page-heading h1 {
    color: var(--navy-900);
    font-size: clamp(27px, 2.5vw, 35px);
    font-weight: 700;
    letter-spacing: -.045em;
}

.page-heading p {
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 12px;
}

.page-heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.page-heading-actions form {
    display: inline-flex;
}

.page-heading--compact {
    align-items: flex-start;
    margin-bottom: 22px;
}

.asset-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.asset-title h1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-title p {
    margin-top: 4px;
}

.asset-avatar--lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 12px;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 18px;
    border-right: 1px solid var(--line-soft);
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item span {
    color: var(--ink-muted);
    font-size: 9.5px;
}

.summary-item strong {
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card + .card {
    margin-top: 22px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 23px 17px;
}

.card-header--tight {
    padding-bottom: 13px;
}

.card-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-600);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.card-header h2 {
    color: var(--navy-900);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.03em;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-quote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-muted);
    font-size: 8.5px;
    white-space: nowrap;
}

.live-quote .icon {
    width: 12px;
    height: 12px;
}

.card-header > .icon-link,
.card-header > .icon-link .icon {
    flex: 0 0 auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 24px 60px;
    text-align: center;
}

.empty-state--compact {
    padding: 28px 22px 31px;
}

.empty-state--large {
    padding: 80px 24px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.empty-icon .icon {
    width: 23px;
    height: 23px;
}

.empty-state h3 {
    margin-bottom: 7px;
    color: var(--navy-900);
    font-size: 16px;
}

.empty-state p {
    max-width: 400px;
    margin-bottom: 17px;
    color: var(--ink-muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.empty-state--compact p {
    margin-bottom: 0;
}

.notice-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #cfe2fb;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f7ff, #f8fbff);
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--blue-600);
    background: #e1efff;
}

.notice-icon .icon {
    width: 16px;
    height: 16px;
}

.notice-banner > div {
    flex: 1;
}

.notice-banner strong {
    display: block;
    color: #21446c;
    font-size: 11px;
}

.notice-banner p {
    color: #6581a0;
    font-size: 10px;
}

/* =========================================================
   Dashboard
   ========================================================= */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

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

.metric-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.metric-card--dark {
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 196, 178, .22), transparent 43%),
        linear-gradient(135deg, #143a31, #1a463b);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(7, 26, 52, .18);
}

.metric-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.metric-label {
    color: var(--ink-muted);
    font-size: 9.5px;
    font-weight: 500;
}

.metric-card--dark .metric-label {
    color: rgba(255, 255, 255, .47);
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--ink-soft);
    background: #f1f6fd;
}

.metric-icon .icon {
    width: 15px;
    height: 15px;
}

.metric-card--dark .metric-icon {
    color: var(--blue-300);
    background: rgba(255, 255, 255, .08);
}

.metric-icon--blue { color: var(--blue-600); background: #eaf3ff; }
.metric-icon--cyan { color: #0d6f66; background: #e6f8fd; }
.metric-icon--green { color: var(--green); background: #e8f9f2; }
.metric-icon--red { color: var(--red); background: #ffedf0; }

.metric-value {
    margin: 14px 0 auto;
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.metric-card--dark .metric-value {
    color: #fff;
}

.metric-link {
    color: var(--blue-300);
    font-size: 17px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.metric-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 14px;
}

.metric-caption,
.metric-mini {
    color: var(--ink-muted);
    font-size: 8.5px;
}

.metric-card--dark .metric-caption {
    color: rgba(255, 255, 255, .35);
}

.metric-tag {
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--blue-300);
    background: rgba(91, 196, 178, .1);
    font-size: 7.5px;
    font-weight: 650;
    white-space: nowrap;
}

.metric-arrow {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-muted);
    transition: .18s ease;
}

.metric-arrow:hover {
    color: var(--blue-600);
    border-color: #c9ddf6;
}

.metric-arrow .icon {
    width: 11px;
    height: 11px;
}

.metric-orb {
    position: absolute;
    width: 130px;
    height: 130px;
    right: -45px;
    bottom: -60px;
    border: 1px solid rgba(91, 196, 178, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 25px rgba(91, 196, 178, .025), 0 0 0 52px rgba(91, 196, 178, .015);
}

.metric-card .change-pill {
    margin-top: 0;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .78fr);
    gap: 22px;
    align-items: start;
}

.dashboard-main,
.dashboard-rail {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.dashboard-main > .card + .card,
.dashboard-rail > .card + .card {
    margin-top: 0;
}

.portfolio-card .card-header {
    padding-bottom: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table th {
    padding: 9px 11px;
    color: #93a4b8;
    background: #fbfdff;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    font-size: 7.5px;
    font-weight: 650;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 11px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    vertical-align: middle;
}

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

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:hover {
    background: #fcfdff;
}

.data-table .align-right {
    text-align: right;
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 160px;
}

.asset-avatar--logo {
    padding: 3px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.asset-avatar--logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.asset-avatar {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #175aa8;
    background: linear-gradient(145deg, #eaf3ff, #dcebff);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.asset-avatar--sm {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 8px;
}

.asset-cell-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.asset-cell-copy strong {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--navy-900);
    font-size: 10.5px;
    font-weight: 700;
}

.asset-cell-copy span {
    overflow: hidden;
    max-width: 190px;
    color: var(--ink-muted);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-cell-copy small {
    color: #a0b1c2;
    font-size: 7.5px;
}

.thesis-mark {
    display: inline-flex;
    color: var(--blue-500);
}

.thesis-mark .icon {
    width: 11px;
    height: 11px;
}

.cell-sub {
    display: block;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 7.5px;
    font-weight: 500;
}

.allocation-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 92px;
}

.allocation-cell .progress {
    width: 48px;
    flex: 0 0 auto;
}

.allocation-cell strong {
    color: var(--ink-soft);
    font-size: 8.5px;
    font-weight: 650;
    white-space: nowrap;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 23px;
    border-top: 1px solid var(--line-soft);
    transition: background .14s ease;
}

.activity-item:hover {
    background: #fbfdff;
}

.activity-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-title strong {
    color: var(--navy-900);
    font-size: 10px;
}

.activity-date {
    color: var(--ink-muted);
    font-size: 8px;
}

.activity-copy > span {
    color: var(--ink-muted);
    font-size: 8.5px;
}

.activity-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    margin-left: auto;
    text-align: right;
}

.activity-result strong {
    font-size: 10.5px;
    font-weight: 700;
}

.activity-result small {
    color: var(--ink-muted);
    font-size: 8px;
}

.activity-arrow {
    width: 13px;
    height: 13px;
    margin-left: 5px;
    color: #b6c5d6;
}

.radar-card .card-header {
    padding-bottom: 13px;
}

.radar-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 17px;
}

.radar-mini {
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: #fbfdff;
    transition: .18s ease;
}

.radar-mini:hover {
    border-color: #c7dcf5;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.radar-mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.radar-mini-top > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.radar-mini-top strong {
    color: var(--navy-900);
    font-size: 10.5px;
}

.radar-mini-top span:not(.badge) {
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-mini-top .badge {
    padding: 3px 6px;
    font-size: 8px;
}

.radar-mini-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 8px;
}

.radar-mini-prices div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.radar-mini-prices small {
    color: var(--ink-muted);
    font-size: 7px;
}

.radar-mini-prices strong {
    color: var(--ink-soft);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.radar-mini-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.radar-mini-meta .tag {
    padding: 2px 5px;
    font-size: 7px;
}

.allocation-card {
    padding-bottom: 16px;
}

.allocation-card .card-header {
    padding-bottom: 5px;
}

.donut-wrap {
    display: grid;
    place-items: center;
    padding: 10px 0 17px;
}

.donut {
    position: relative;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(22, 65, 119, .12);
}

.donut::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    pointer-events: none;
}

.donut-hole {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    box-shadow: inset 0 0 0 1px #edf3fb;
}

.donut-hole span {
    max-width: 88px;
    color: var(--ink-muted);
    font-size: 6.5px;
    line-height: 1.4;
}

.donut-hole strong {
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.045em;
}

.donut-hole small {
    color: var(--ink-muted);
    font-size: 7px;
}

.donut--empty {
    background: conic-gradient(#e7f0fb 0 100%);
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex: 0 0 auto;
}

.legend-label {
    color: var(--ink-soft);
}

.legend-row strong {
    margin-left: auto;
    color: var(--navy-900);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.allocation-note {
    display: flex;
    gap: 7px;
    margin: 13px 20px 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-muted);
    font-size: 8px;
    line-height: 1.5;
}

.allocation-note .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    color: var(--blue-500);
}

.allocation-empty {
    padding: 15px 20px 20px;
    text-align: center;
}

.allocation-empty .donut {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    box-shadow: none;
}

.allocation-empty p {
    color: var(--ink-muted);
    font-size: 9.5px;
    line-height: 1.6;
}

.ad-slot {
    position: relative;
    min-height: 250px;
    padding: 15px;
    overflow: hidden;
    border: 1px dashed #e3d2ae;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 100%, rgba(196, 136, 45, .16), transparent 45%),
        linear-gradient(145deg, #fffaf0, #f7eedf);
}

.ad-slot-label {
    display: flex;
    justify-content: space-between;
    color: #9daec1;
    font-size: 6.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-slot-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 198px;
    padding: 12px 5px;
}

.ad-slot-eyebrow {
    color: var(--orange);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-slot h3 {
    max-width: 245px;
    margin: 8px 0;
    color: var(--navy-900);
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.ad-slot p {
    max-width: 250px;
    color: var(--ink-muted);
    font-size: 9px;
    line-height: 1.6;
}

.ad-slot a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--orange);
    font-size: 9px;
    font-weight: 650;
}

.ad-slot a .icon {
    width: 12px;
    height: 12px;
}

.ad-slot-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    right: -55px;
    bottom: -55px;
    border: 1px solid rgba(29, 145, 128, .25);
    border-radius: 50%;
    box-shadow: 0 0 0 25px rgba(29, 145, 128, .035), 0 0 0 50px rgba(29, 145, 128, .018);
}

.sync-card {
    padding-bottom: 15px;
}

.sync-card .card-header {
    padding-bottom: 11px;
}

.sync-card-icon {
    width: 22px;
    height: 22px;
    color: var(--blue-500);
}

.sync-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 0 17px 12px;
}

.sync-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    background: #f7faff;
    border: 1px solid #edf3fb;
}

.sync-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4d3e5;
}

.sync-dot.is-done {
    background: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(42, 214, 163, .1);
}

.sync-time strong {
    color: var(--ink);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.sync-time small {
    color: var(--ink-muted);
    font-size: 6.5px;
}

.sync-meta {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    padding: 0 17px 11px;
    color: var(--ink-muted);
    font-size: 7.5px;
}

.sync-meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sync-meta .icon {
    width: 11px;
    height: 11px;
}

.sync-card form {
    padding: 0 17px;
}

.sync-card .button {
    min-height: 35px;
    font-size: 10px;
}

.sync-caption {
    padding: 8px 17px 0;
    color: #9caec0;
    font-size: 7px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   Formulários de página
   ========================================================= */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.form-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.form-card {
    padding: 22px;
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 19px;
}

.step-badge {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--blue-600);
    background: #eaf3ff;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
}

.form-section-head h2 {
    margin-top: 1px;
    color: var(--navy-900);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.03em;
}

.form-section-head p {
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 10px;
}

.form-card .form-grid-2 + .form-grid-2 {
    margin-top: 14px;
}

.form-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.side-card--gradient {
    border-color: transparent;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 196, 178, .22), transparent 42%),
        linear-gradient(145deg, #143a31, #1a463b);
}

.side-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 13px;
    border-radius: 8px;
    color: var(--blue-300);
    background: rgba(255, 255, 255, .08);
}

.side-icon .icon {
    width: 16px;
    height: 16px;
}

.side-card h3 {
    margin-bottom: 8px;
    color: var(--navy-900);
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.side-card--gradient h3 {
    color: #fff;
}

.side-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px;
    list-style: none;
}

.side-list li {
    display: flex;
    gap: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 9.5px;
}

.side-list li span {
    color: var(--blue-300);
    font-size: 7.5px;
    font-weight: 700;
    padding-top: 1px;
}

.side-note,
.weights-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.weights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.weights-form label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--ink-muted);
    font-size: 7.5px;
    font-weight: 600;
}

.weights-form input {
    width: 100%;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font-size: 9px;
}

.weights-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 9px 0;
    color: var(--ink-muted);
    font-size: 8px;
}

.weights-total strong {
    color: var(--navy-900);
    font-size: 11px;
}

.weights-form .button {
    width: 100%;
}
.liquidity-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.liquidity-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-muted);
    font-size: 8px;
    font-weight: 600;
}

.liquidity-row {
    display: flex;
    gap: 6px;
}

.liquidity-row input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    font-size: 10px;
}

.liquidity-row .button {
    flex: 0 0 auto;
    height: 34px;
}

.side-text {
    color: var(--ink-muted);
    font-size: 9.5px;
    line-height: 1.65;
}

.side-card--gradient .side-note,
.side-card--gradient .weights-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.weights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.weights-form label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--ink-muted);
    font-size: 7.5px;
    font-weight: 600;
}

.weights-form input {
    width: 100%;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font-size: 9px;
}

.weights-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 9px 0;
    color: var(--ink-muted);
    font-size: 8px;
}

.weights-total strong {
    color: var(--navy-900);
    font-size: 11px;
}

.weights-form .button {
    width: 100%;
}
.liquidity-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.liquidity-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-muted);
    font-size: 8px;
    font-weight: 600;
}

.liquidity-row {
    display: flex;
    gap: 6px;
}

.liquidity-row input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    font-size: 10px;
}

.liquidity-row .button {
    flex: 0 0 auto;
    height: 34px;
}

.side-text {
    color: rgba(255, 255, 255, .42);
}

.side-text + .weights-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.weights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.weights-form label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--ink-muted);
    font-size: 7.5px;
    font-weight: 600;
}

.weights-form input {
    width: 100%;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font-size: 9px;
}

.weights-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 9px 0;
    color: var(--ink-muted);
    font-size: 8px;
}

.weights-total strong {
    color: var(--navy-900);
    font-size: 11px;
}

.weights-form .button {
    width: 100%;
}
.liquidity-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.liquidity-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-muted);
    font-size: 8px;
    font-weight: 600;
}

.liquidity-row {
    display: flex;
    gap: 6px;
}

.liquidity-row input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    font-size: 10px;
}

.liquidity-row .button {
    flex: 0 0 auto;
    height: 34px;
}

.side-text {
    margin-top: 9px;
}

.side-text strong {
    color: var(--ink-soft);
    font-weight: 650;
}

.side-card--gradient .side-text strong {
    color: rgba(255, 255, 255, .78);
}

.side-card .text-link {
    margin-top: 13px;
}

.side-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.side-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-stat span {
    color: var(--ink-muted);
    font-size: 9px;
}

.side-stat strong {
    color: var(--navy-900);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.side-delete {
    margin-top: 2px;
}

.back-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: .18s ease;
}

.back-card:hover {
    border-color: #c7dcf5;
    background: #fbfdff;
}

.back-card .icon {
    width: 17px;
    height: 17px;
    color: var(--blue-600);
}

.back-card > span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.back-card strong {
    color: var(--ink);
    font-size: 10px;
}

.back-card small {
    color: var(--ink-muted);
    font-size: 8px;
}

.calc-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding: 11px 13px;
    border: 1px solid #e5f0fc;
    border-radius: 9px;
    background: #f7fbff;
}

.calc-preview span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-muted);
    font-size: 9.5px;
}

.calc-preview span .icon {
    width: 14px;
    height: 14px;
    color: var(--blue-500);
}

.calc-preview strong {
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

/* Asset picker */
.asset-picker {
    position: relative;
}

.asset-picker-control {
    position: relative;
    display: flex;
    align-items: center;
}

.asset-picker-control .input-icon {
    position: absolute;
    left: 13px;
    display: flex;
    color: var(--ink-muted);
    pointer-events: none;
}

.asset-picker-control .input-icon .icon {
    width: 17px;
    height: 17px;
}

.asset-picker-search {
    width: 100%;
    height: 48px;
    padding: 10px 78px 10px 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    transition: .18s ease;
}

.asset-picker-search:focus {
    outline: none;
    border-color: #8cbdb0;
    box-shadow: 0 0 0 4px rgba(29, 145, 128, .11);
}

.asset-picker-search[readonly] {
    background: #f4f8fd;
    color: var(--ink-soft);
}

.asset-picker-clear {
    position: absolute;
    right: 39px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: var(--ink-muted);
    background: transparent;
}

.asset-picker-clear:hover {
    color: var(--red);
    background: #fff0f2;
}

.asset-picker-clear .icon {
    width: 14px;
    height: 14px;
}

.asset-picker-spinner {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid #dce9f8;
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.asset-picker-results {
    position: absolute;
    z-index: 70;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 310px;
    overflow-y: auto;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 18px 50px rgba(14, 48, 91, .16);
}

.asset-result {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    text-align: left;
}

.asset-result:hover,
.asset-result.is-highlighted {
    background: #f1f7ff;
}

.asset-result-code {
    display: grid;
    place-items: center;
    min-width: 51px;
    height: 27px;
    padding: 0 5px;
    border-radius: 5px;
    color: #1559b2;
    background: #eaf3ff;
    font-size: 8.5px;
    font-weight: 750;
}

.asset-result-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.asset-result-copy strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
}

.asset-result-copy span {
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-result-meta {
    margin-left: auto;
    color: #98a49c;
    font-size: 7.5px;
    white-space: nowrap;
}

.asset-picker-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 8px;
}

.picker-chip {
    padding: 2px 5px;
    border-radius: 4px;
    color: #2160aa;
    background: #eaf3ff;
    font-size: 7px;
    font-weight: 700;
}

.picker-chip--ghost {
    color: var(--ink-muted);
    background: #f1f5fa;
}

/* Rich editor */
.rich-editor {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rich-editor:focus-within {
    border-color: #8cbdb0;
    box-shadow: 0 0 0 4px rgba(29, 145, 128, .1);
}

.rich-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
    background: #f8fbff;
    border-bottom: 1px solid var(--line-soft);
}

.rich-btn {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 5px;
    border: 0;
    border-radius: 5px;
    color: var(--ink-soft);
    background: transparent;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 650;
}

.rich-btn:hover {
    color: var(--navy-900);
    background: #eaf3ff;
}

.rich-btn.is-active {
    color: var(--blue-700);
    background: #e1eeff;
}

.rich-btn .icon {
    width: 13px;
    height: 13px;
}

.rich-sep {
    width: 1px;
    height: 15px;
    margin: 0 4px;
    background: var(--line);
}

.rich-spacer {
    flex: 1;
}

.rich-btn--source {
    color: var(--blue-600);
    padding: 0 8px;
    font-size: 7.5px;
    letter-spacing: .05em;
}

.rich-surface {
    min-height: 190px;
    max-height: 500px;
    overflow-y: auto;
    padding: 14px 15px;
    outline: none;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.7;
}

.rich-surface:empty::before {
    content: attr(data-placeholder);
    color: #9cacc0;
    pointer-events: none;
}

.rich-surface h2,
.rich-surface h3,
.rich-surface h4 {
    margin: 14px 0 6px;
    color: var(--navy-900);
    font-size: 15px;
}

.rich-surface p {
    margin: 0 0 9px;
}

.rich-surface ul,
.rich-surface ol {
    margin: 7px 0;
    padding-left: 22px;
}

.rich-surface blockquote {
    margin: 10px 0;
    padding: 7px 12px;
    border-left: 2px solid var(--blue-400);
    background: #f5faff;
    color: #48637f;
}

.rich-surface a {
    color: var(--blue-600);
    text-decoration: underline;
}

.rich-surface code {
    padding: 1px 4px;
    border-radius: 3px;
    background: #f0f5fb;
    font-size: 11px;
}

.rich-source {
    width: 100%;
    min-height: 190px;
    padding: 13px 14px;
    border: 0;
    outline: none;
    resize: vertical;
    color: #315274;
    background: #f8fbff;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 11px;
    line-height: 1.6;
}

.editor-initial {
    display: none;
}

.rich-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-top: 1px solid var(--line-soft);
    background: #fbfdff;
    color: #99aabd;
    font-size: 7.5px;
}

.rich-footer span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.rich-footer .icon {
    width: 10px;
    height: 10px;
}

/* Tipos de venda, escolhas */
.sale-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sale-type-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 93px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdff;
    cursor: pointer;
    transition: .18s ease;
}

.sale-type-card:hover {
    border-color: #c3d9f3;
}

.sale-type-card.is-selected {
    border-color: #8cbdb0;
    background: #f7f4ec;
    box-shadow: 0 0 0 3px rgba(29, 145, 128, .08);
}

.sale-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sale-type-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.sale-type-icon .icon {
    width: 16px;
    height: 16px;
}

.sale-type-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sale-type-copy strong {
    color: var(--navy-900);
    font-size: 10.5px;
    font-weight: 650;
}

.sale-type-copy small {
    color: var(--ink-muted);
    font-size: 8.5px;
    line-height: 1.45;
}

.sale-type-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue-500);
}

.sale-type-check .icon {
    width: 9px;
    height: 9px;
}

.sale-type-card.is-selected .sale-type-check {
    display: grid;
}

.position-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #e3effc;
    border-radius: 9px;
    background: #f8fbff;
}

.position-preview div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.position-preview span {
    color: var(--ink-muted);
    font-size: 7.5px;
}

.position-preview strong {
    color: var(--navy-900);
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
}

.choice-grid {
    display: grid;
    gap: 10px;
}

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

.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 128px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdff;
    cursor: pointer;
    transition: .18s ease;
}

.choice-card:hover {
    border-color: #c3d9f3;
}

.choice-card.is-selected {
    border-color: #8cbdb0;
    background: #f7f4ec;
    box-shadow: 0 0 0 3px rgba(29, 145, 128, .07);
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    border-radius: 7px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.choice-icon--low { color: #087755; background: #e7f9f2; }
.choice-icon--medium { color: #9a650c; background: #fff4dc; }
.choice-icon--high { color: #bd3045; background: #ffedf0; }

.choice-icon .icon {
    width: 15px;
    height: 15px;
}

.choice-card strong {
    color: var(--navy-900);
    font-size: 11px;
}

.choice-card small {
    color: var(--ink-muted);
    font-size: 8px;
    line-height: 1.4;
}

.choice-check {
    position: absolute;
    top: 9px;
    right: 9px;
    display: none;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue-500);
}

.choice-check .icon {
    width: 9px;
    height: 9px;
}

.choice-card.is-selected .choice-check {
    display: grid;
}

.choice-card:has(input:focus-visible),
.sale-type-card:has(input:focus-visible) {
    outline: 3px solid rgba(29, 145, 128, .38);
    outline-offset: 2px;
}

.definition {
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

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

.definition strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 9.5px;
}

.definition p {
    color: var(--ink-muted);
    font-size: 8.5px;
    line-height: 1.5;
}

/* =========================================================
   Detalhes
   ========================================================= */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.detail-main > .card + .card {
    margin-top: 0;
}

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-hero {
    padding: 23px;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 196, 178, .1), transparent 38%),
        #fff;
}

.detail-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-value {
    display: block;
    margin: 4px 0 5px;
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.detail-change {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--ink-muted);
    font-size: 9.5px;
}

.detail-quote {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 11px 14px;
    border: 1px solid #e4eefb;
    border-radius: 10px;
    background: #f8fbff;
    text-align: right;
}

.detail-quote span {
    color: var(--ink-muted);
    font-size: 8px;
}

.detail-quote strong {
    color: var(--blue-700);
    font-family: var(--font-display);
    font-size: 23px;
    letter-spacing: -.04em;
}

.detail-quote small {
    color: var(--ink-muted);
    font-size: 7.5px;
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.detail-metrics div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 14px;
    border-right: 1px solid var(--line-soft);
}

.detail-metrics div:last-child {
    border-right: 0;
}

.detail-metrics span {
    color: var(--ink-muted);
    font-size: 8px;
}

.detail-metrics strong {
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.position-progress {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line-soft);
}

.position-progress-head,
.position-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 8.5px;
}

.position-progress-head {
    margin-bottom: 7px;
}

.position-progress-foot {
    margin-top: 7px;
}

.position-progress-foot strong {
    color: var(--ink-soft);
}

.thesis-render {
    padding: 0 23px 25px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

.thesis-render h2,
.thesis-render h3,
.thesis-render h4 {
    margin: 20px 0 8px;
    color: var(--navy-900);
    font-size: 18px;
}

.thesis-render h2:first-child,
.thesis-render h3:first-child {
    margin-top: 0;
}

.thesis-render p {
    margin-bottom: 11px;
}

.thesis-render ul,
.thesis-render ol {
    margin: 8px 0 14px;
    padding-left: 22px;
}

.thesis-render li {
    margin-bottom: 4px;
}

.thesis-render blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--blue-400);
    border-radius: 0 8px 8px 0;
    background: #f7f4ec;
    color: #4c6681;
    font-style: italic;
}

.thesis-render a {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thesis-render code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef4fb;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
}

.thesis-render table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
}

.thesis-render th,
.thesis-render td {
    padding: 7px 9px;
    border: 1px solid var(--line);
    font-size: 11px;
    text-align: left;
}

.simple-list {
    display: flex;
    flex-direction: column;
    padding: 0 23px 18px;
}

.simple-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--line-soft);
}

.simple-row:first-child {
    border-top: 0;
}

.simple-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.simple-icon .icon {
    width: 14px;
    height: 14px;
}

.simple-row > div {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.simple-row > div strong {
    color: var(--ink);
    font-size: 9.5px;
}

.simple-row > div span {
    color: var(--ink-muted);
    font-size: 8px;
}

.simple-row > strong {
    margin-left: auto;
    font-size: 10px;
}

.simple-row > .icon {
    width: 13px;
    height: 13px;
    color: #b4c4d6;
}

.info-list {
    padding: 0 20px 18px;
}

.info-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.info-list > div:last-child {
    border-bottom: 0;
}

.info-list span {
    color: var(--ink-muted);
    font-size: 8.5px;
}

.info-list strong {
    color: var(--ink);
    font-size: 9.5px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   Radar
   ========================================================= */

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

.radar-item {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.radar-item:hover {
    border-color: #c7dcf5;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.radar-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.radar-item-head .asset-cell {
    min-width: 0;
}

.radar-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 12px;
    border-radius: 9px;
    background: #f8fbff;
    border: 1px solid #e9f2fc;
}

.radar-price-grid div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radar-price-grid span {
    color: var(--ink-muted);
    font-size: 7.5px;
}

.radar-price-grid strong {
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.radar-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    font-size: 8.5px;
    font-weight: 600;
}

.radar-delta .icon {
    width: 12px;
    height: 12px;
}

.radar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 11px;
}

.radar-notes {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-muted);
    font-size: 8.5px;
    line-height: 1.55;
}

.radar-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
}

.radar-item-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #98a49c;
    font-size: 7.5px;
}

.radar-item-foot > span .icon {
    width: 11px;
    height: 11px;
}

/* =========================================================
   Configurações
   ========================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.settings-nav > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 500;
}

.settings-nav > a:hover {
    color: var(--blue-600);
    background: #fff;
}

.settings-nav > a.is-active {
    color: var(--blue-700);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-weight: 650;
}

.settings-nav > a .icon {
    width: 15px;
    height: 15px;
    color: var(--ink-muted);
}

.settings-nav > a.is-active .icon {
    color: var(--blue-600);
}

.settings-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.settings-nav-card .avatar {
    margin-bottom: 9px;
}

.settings-nav-card strong {
    color: var(--navy-900);
    font-size: 10.5px;
}

.settings-nav-card > span:not(.avatar) {
    color: var(--ink-muted);
    font-size: 8.5px;
}

.settings-nav-card small {
    margin-top: 5px;
    color: #98a49c;
    font-size: 7.5px;
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.settings-card {
    padding: 23px;
    scroll-margin-top: 95px;
}

.section-heading-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.section-icon--violet { color: var(--violet); background: #efedff; }
.section-icon--cyan { color: #0d6f66; background: #e6f8fd; }

.section-icon .icon {
    width: 16px;
    height: 16px;
}

.section-heading-card h2 {
    color: var(--navy-900);
    font-size: 17px;
    font-weight: 650;
}

.section-heading-card p {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 10px;
}

.portfolio-fieldset {
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) 210px;
    gap: 12px;
    align-items: start;
    margin-top: 3px;
    padding: 16px;
    border: 1px solid #dceafb;
    border-radius: 11px;
    background: linear-gradient(100deg, #f5faff, #fbfdff);
}

.portfolio-fieldset-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    color: var(--blue-600);
    background: #e4efff;
}

.portfolio-fieldset-icon .icon {
    width: 16px;
    height: 16px;
}

.portfolio-fieldset-copy h3 {
    margin: 1px 0 4px;
    color: var(--navy-900);
    font-size: 11.5px;
    font-weight: 650;
}

.portfolio-fieldset-copy p {
    color: var(--ink-muted);
    font-size: 8.5px;
    line-height: 1.55;
}

.portfolio-field {
    gap: 5px;
}

.portfolio-field label {
    font-size: 8.5px;
}

.portfolio-field .input-wrap input {
    min-height: 40px;
    font-size: 12px;
}

.quote-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    border: 1px solid #e2eefc;
    border-radius: 11px;
    background: #f8fbff;
}

.quote-status-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.status-orb {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    color: var(--ink-muted);
    background: #eef3fa;
}

.status-orb.is-active {
    color: var(--green);
    background: #e5f8f0;
}

.status-orb .icon {
    width: 16px;
    height: 16px;
}

.quote-status-main > div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.quote-status-main span {
    color: var(--ink-muted);
    font-size: 7.5px;
}

.quote-status-main strong {
    color: var(--navy-900);
    font-size: 10px;
}

.quote-status-main small {
    color: #98a9bb;
    font-size: 7.5px;
}

.automation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 14px;
}

.automation-card {
    padding: 13px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfdff;
}

.automation-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--blue-600);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.automation-kicker .icon {
    width: 12px;
    height: 12px;
}

.time-chips {
    display: flex;
    gap: 5px;
    margin: 9px 0;
}

.time-chips span {
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--blue-700);
    background: #e9f3ff;
    font-size: 9px;
    font-weight: 700;
}

.automation-card > strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--navy-900);
    font-size: 10px;
}

.automation-card p {
    color: var(--ink-muted);
    font-size: 8.5px;
    line-height: 1.55;
}

.cron-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fcfdff;
}

.cron-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cron-box-head strong {
    color: var(--ink);
    font-size: 9.5px;
}

.copy-field {
    display: flex;
    gap: 7px;
}

.copy-field input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-soft);
    background: #f8fbff;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 8px;
}

.copy-field .button {
    flex: 0 0 auto;
    min-height: 36px;
}

.cron-help {
    margin-top: 7px;
    color: var(--ink-muted);
    font-size: 8px;
    line-height: 1.5;
}

.cron-help code {
    padding: 1px 4px;
    border-radius: 3px;
    background: #eef4fb;
    font-size: 7.5px;
}

.cron-box form {
    margin-top: 7px;
}

.cron-box .text-link {
    font-size: 8px;
}

.runs-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.runs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.runs-head strong {
    color: var(--ink);
    font-size: 9.5px;
}

.runs-head span {
    color: var(--ink-muted);
    font-size: 7.5px;
}

.data-table--compact th,
.data-table--compact td {
    padding: 8px 10px;
    font-size: 8.5px;
}

.data-table--compact th {
    font-size: 7px;
}

/* =========================================================
   Catálogo
   ========================================================= */

.catalog-card {
    overflow: hidden;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.search-field {
    position: relative;
    flex: 1;
    max-width: 370px;
}

.search-field .icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-muted);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
}

.search-field input:focus {
    outline: none;
    border-color: #8cbdb0;
    box-shadow: 0 0 0 3px rgba(29, 145, 128, .1);
}

.catalog-filters .input-wrap {
    width: 150px;
}

.catalog-filters .button {
    min-height: 40px;
}

.catalog-count {
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 9px;
}

.catalog-count strong {
    color: var(--navy-900);
    font-size: 12px;
}

.exchange-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    color: #345e8f;
    background: #eef4fc;
    font-size: 7.5px;
    font-weight: 700;
}

.type-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--ink-soft);
    background: #f2f6fb;
    font-size: 7.5px;
}

.catalog-table td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--line-soft);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 600;
}

.pagination-btn:hover {
    border-color: #c7dcf5;
    color: var(--blue-600);
    background: #f8fbff;
}

.pagination-btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pagination-btn .icon {
    width: 12px;
    height: 12px;
}

.pagination-info {
    color: var(--ink-muted);
    font-size: 9px;
}

.pagination-info strong {
    color: var(--navy-900);
}

.custom-asset-card {
    margin-top: 22px;
    padding: 23px;
}

/* =========================================================
   Filtros e busca em tabelas
   ========================================================= */

.inline-search {
    position: relative;
}

.inline-search .icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: var(--ink-muted);
    pointer-events: none;
}

.inline-search input {
    width: 180px;
    height: 33px;
    padding: 0 10px 0 28px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 9.5px;
}

.inline-search input:focus {
    outline: none;
    border-color: #8cbdb0;
    box-shadow: 0 0 0 3px rgba(29, 145, 128, .08);
}

.table-empty-filter {
    padding: 24px;
    color: var(--ink-muted);
    font-size: 10px;
    text-align: center;
}

.table-empty-filter .icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
}

/* =========================================================
   Flash, erros e páginas simples
   ========================================================= */

.public-flash-wrap {
    position: fixed;
    z-index: 130;
    top: 92px;
    right: 24px;
    width: min(420px, calc(100vw - 32px));
}

.public-flash-wrap .flash-stack {
    margin-bottom: 0;
}

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    animation: flashIn .3s ease both;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash--success {
    border-color: #c8efe1;
    background: #f3fdf9;
}

.flash--error {
    border-color: #ffd4da;
    background: #fff7f8;
}

.flash--info {
    border-color: #d7e8fb;
    background: #f7fbff;
}

.flash-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 7px;
    color: var(--blue-600);
    background: #eaf3ff;
}

.flash--success .flash-icon { color: var(--green); background: #e2f8ef; }
.flash--error .flash-icon { color: var(--red); background: #ffe8ec; }

.flash-icon .icon {
    width: 13px;
    height: 13px;
}

.flash p {
    flex: 1;
    color: var(--ink-soft);
    font-size: 10.5px;
    line-height: 1.5;
    padding-top: 2px;
}

.flash-close {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 5px;
    color: var(--ink-muted);
    background: transparent;
}

.flash-close:hover {
    background: rgba(0, 0, 0, .04);
}

.flash-close .icon {
    width: 12px;
    height: 12px;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at 75% 20%, rgba(29, 145, 128, .18), transparent 35%),
        var(--navy-900);
}

.error-shell {
    width: min(100%, 560px);
}

.error-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(14px);
    color: #fff;
}

.error-card .brand {
    margin-bottom: 30px;
}

.error-code {
    color: var(--blue-300);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
}

.error-card h1 {
    margin: 9px 0 11px;
    font-size: 32px;
    letter-spacing: -.04em;
}

.error-card p {
    color: rgba(255, 255, 255, .52);
    font-size: 13px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 9px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.error-detail {
    max-width: 100%;
    margin-top: 16px;
    padding: 12px;
    overflow: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, .3);
    color: #ffc6ce;
    font-size: 10px;
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1260px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 220px;
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(275px, .8fr);
    }

    .detail-metrics {
        gap: 8px;
    }

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

@media (max-width: 1120px) {
    :root {
        --sidebar-width: 250px;
    }

    .hero-inner {
        gap: 35px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .floating-card--one {
        left: -15px;
    }

    .floating-card--two {
        right: -10px;
    }

    .product-grid,
    .radar-grid,
    .catalog-grid,
    .thesis-grid {
        gap: 48px;
    }

    .testimonial-grid {
        gap: 35px;
    }

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

    .summary-item:nth-child(2) {
        border-right: 0;
    }

    .summary-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line-soft);
    }

    .settings-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .form-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

@media (max-width: 1020px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(3, 13, 30, .35);
    }

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

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

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 190;
        display: block;
        background: rgba(3, 13, 30, .55);
        backdrop-filter: blur(3px);
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }

    .app-frame {
        margin-left: 0;
    }

    .topbar-menu {
        display: inline-grid;
    }

    .topbar-breadcrumb span:first-child,
    .crumb-sep {
        display: none;
    }

    .topbar {
        height: 68px;
        padding: 0 22px;
    }

    .app-content {
        padding: 24px 22px 38px;
    }

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

    .dashboard-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .sync-card {
        grid-column: 1 / -1;
    }

    .ad-slot {
        min-height: 250px;
    }

    .form-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-side .side-delete {
        grid-column: 1 / -1;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-side .back-card {
        align-self: start;
    }

    .settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .settings-nav-card {
        display: none;
    }

    .settings-nav > a {
        padding: 8px 11px;
        background: #fff;
        border: 1px solid var(--line);
    }

    .settings-nav > a.is-active {
        border-color: #b8d5f6;
        box-shadow: none;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-filters {
        flex-wrap: wrap;
    }

    .search-field {
        max-width: none;
        flex-basis: 100%;
    }

    .catalog-count {
        text-align: right;
    }
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 36px);
    }

    .site-nav {
        display: none;
    }

    .header-actions .header-login {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-grid;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-bottom: 30px;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-visual {
        justify-self: center;
        width: min(100%, 560px);
        margin-bottom: 10px;
    }

    .market-strip {
        flex-wrap: wrap;
        gap: 15px 24px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .market-strip-title {
        flex-basis: 100%;
    }

    .market-strip-time {
        flex-basis: 100%;
        margin-left: 0;
    }

    .section {
        padding: 78px 0;
    }

    .product-grid,
    .radar-grid,
    .catalog-grid,
    .thesis-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .product-copy,
    .radar-copy,
    .catalog-copy,
    .thesis-copy {
        max-width: 620px;
    }

    .thesis-visual {
        order: 2;
    }

    .thesis-copy {
        order: 1;
    }

    .radar-visual,
    .catalog-visual,
    .product-visual {
        width: min(100%, 620px);
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }

    .footer-note {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 30px 28px;
    }

    .auth-mobile-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: min(100%, 520px);
        margin: 0 auto 45px;
    }

    .auth-card,
    .auth-card--wide,
    .auth-form-foot {
        width: min(100%, 520px);
    }

    .auth-card--wide + .auth-form-foot {
        width: min(100%, 520px);
    }

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

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

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .page-heading-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .form-side {
        display: flex;
    }

    .detail-side {
        display: flex;
    }

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

    .legal-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .legal-nav a {
        background: #fff;
        border: 1px solid var(--line);
    }

    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .simple-hero-inner {
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .topbar-date {
        display: none;
    }

    .topbar-right {
        gap: 9px;
    }

    .market-pill {
        display: none;
    }

    .sync-form .button span {
        display: none;
    }

    .sync-form .button {
        width: 34px;
        padding: 0;
    }

    .app-content {
        padding: 20px 16px 34px;
    }

    .topbar {
        padding: 0 16px;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 15px 16px;
    }

    .dashboard-rail {
        display: flex;
    }

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

    .metric-card {
        min-height: 136px;
        padding: 15px;
    }

    .metric-value {
        font-size: 21px;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        padding: 18px 17px 14px;
    }

    .card-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .portfolio-table,
    .data-table {
        min-width: 0;
    }

    .table-wrap {
        overflow: visible;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        padding: 12px 17px;
        border-top: 1px solid var(--line-soft);
    }

    .data-table tr:first-child {
        border-top: 1px solid var(--line-soft);
    }

    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 5px 0;
        border-bottom: 0;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--ink-muted);
        font-size: 8px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        text-align: left;
    }

    .data-table td:first-child {
        display: block;
        padding-bottom: 8px;
        text-align: left;
    }

    .data-table td:first-child::before {
        display: none;
    }

    .data-table td.align-right {
        text-align: right;
    }

    .data-table td:last-child {
        padding-top: 8px;
    }

    .data-table td:last-child::before {
        display: none;
    }

    .data-table td .asset-cell {
        min-width: 0;
    }

    .data-table td .allocation-cell {
        min-width: 140px;
        justify-content: flex-end;
    }

    .activity-item {
        padding: 10px 17px;
    }

    .activity-result small {
        display: none;
    }

    .radar-mini-grid {
        grid-template-columns: 1fr;
        padding: 0 14px 15px;
    }

    .summary-strip {
        grid-template-columns: 1fr;
    }

    .summary-item {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
        padding: 11px 15px;
    }

    .summary-item:last-child {
        border-bottom: 0;
    }

    .form-card,
    .settings-card {
        padding: 18px;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .form-grid-3 {
        gap: 14px;
    }

    .sale-type-grid,
    .choice-grid--three {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 92px;
    }

    .position-preview {
        grid-template-columns: 1fr 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }

    .form-actions--inline {
        flex-direction: row;
    }

    .form-actions--inline .button {
        width: auto;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-hero-top {
        flex-direction: column;
        gap: 14px;
    }

    .detail-quote {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .detail-value {
        font-size: 28px;
    }

    .detail-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 17px;
    }

    .detail-metrics div {
        padding-right: 0;
        border-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line-soft);
    }

    .detail-metrics div:nth-last-child(-n+2) {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .thesis-render {
        padding: 0 18px 20px;
        font-size: 12px;
    }

    .simple-list {
        padding: 0 18px 15px;
    }

    .info-list {
        padding: 0 17px 15px;
    }

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

    .portfolio-fieldset {
        grid-template-columns: 33px minmax(0, 1fr);
    }

    .portfolio-field {
        grid-column: 1 / -1;
    }

    .quote-status {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-status .button {
        width: 100%;
    }

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

    .copy-field {
        flex-direction: column;
    }

    .catalog-toolbar {
        padding: 14px 16px;
    }

    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-filters .input-wrap {
        width: 100%;
    }

    .catalog-filters .button {
        width: 100%;
    }

    .catalog-count {
        text-align: left;
    }

    .catalog-table {
        padding-bottom: 4px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .inline-search {
        flex: 1;
    }

    .inline-search input {
        width: 100%;
    }

    .flash-stack {
        margin-bottom: 14px;
    }

    .page-heading h1 {
        font-size: 28px;
    }

    .page-heading-actions .button {
        flex: 1;
    }

    .auth-form-panel {
        padding: 22px 20px;
    }

    .auth-card h2 {
        font-size: 29px;
    }

    .auth-mobile-brand {
        margin-bottom: 35px;
    }

    .auth-form-foot {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .setup-steps {
        display: none;
    }
}

@media (max-width: 620px) {
    .header-inner {
        height: 70px;
    }

    .header-actions .button {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-grid;
    }

    .hero {
        padding-top: 105px;
    }

    .hero h1 {
        font-size: 41px;
        letter-spacing: -.05em;
    }

    .hero-lead {
        font-size: 14.5px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        gap: 0;
    }

    .hero-stats div {
        padding-right: 17px;
        margin-right: 17px;
    }

    .hero-stats strong {
        font-size: 19px;
    }

    .hero-stats span {
        font-size: 8.5px;
    }

    .hero-preview {
        padding: 14px;
        border-radius: 19px;
        transform: none;
    }

    .hero-preview:hover {
        transform: none;
    }

    .preview-total strong {
        font-size: 22px;
    }

    .preview-chart svg {
        height: 100px;
    }

    .preview-row {
        gap: 7px;
    }

    .preview-asset-copy {
        min-width: 65px;
    }

    .preview-badge {
        min-width: 46px;
        font-size: 8px;
    }

    .floating-card {
        display: none;
    }

    .ticker-item {
        flex: 1 1 45%;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .ticker-item > span {
        min-width: 66px;
    }

    .ticker-item small {
        min-width: 50px;
        text-align: right;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .thesis-copy h2,
    .catalog-copy h2,
    .product-copy h2,
    .radar-copy h2 {
        font-size: 30px;
    }

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

    .feature-card {
        min-height: 0;
    }

    .product-window {
        transform: none;
    }

    .window-content {
        min-height: 280px;
    }

    .window-kpis {
        grid-template-columns: 1fr;
    }

    .window-kpis > div {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .window-kpis small {
        margin-left: auto;
    }

    .thesis-card {
        padding: 16px;
    }

    .thesis-float {
        right: 10px;
        bottom: -14px;
    }

    .mini-points {
        grid-template-columns: 1fr;
    }

    .inline-ad,
    .landing-ad {
        flex-wrap: wrap;
    }

    .landing-ad .button {
        width: 100%;
    }

    .cta-card {
        padding: 48px 20px;
        border-radius: 20px;
    }

    .cta-card h2 {
        font-size: 34px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 18px 0;
    }

    .simple-hero {
        padding: 65px 0;
    }

    .simple-hero h1 {
        font-size: 38px;
    }

    .metric-grid,
    .metric-grid--three {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 126px;
    }

    .metric-value {
        margin-top: 12px;
    }

    .page-heading-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-heading-actions .button {
        flex: none;
    }

    .card {
        border-radius: 16px;
    }

    .card-header .text-link {
        align-self: flex-start;
    }

    .summary-item {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    .detail-side,
    .form-side {
        gap: 10px;
    }

    .form-actions--inline {
        flex-direction: column-reverse;
    }

    .form-actions--inline .button {
        width: 100%;
    }

    .auth-card .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-card h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Revelação suave no scroll (ativa somente com JS) */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-ready .reveal--delay {
    transition-delay: .12s;
}

/* Logos de empresas nos avatares administrativos */
.asset-avatar.asset-avatar--logo {
    padding: 2px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.asset-avatar.asset-avatar--logo img {
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
}
/* Leitura confortável no celular */
@media (max-width: 900px) {
    html {
        -webkit-text-size-adjust: 106%;
        text-size-adjust: 106%;
    }
}
/* Leitura confortável no notebook */
@media (min-width: 1200px) and (max-width: 1920px) {
    html {
        zoom: 1.06;
    }
}