:root {
  color-scheme: dark;
  --bg: #100f10;
  --panel: #262529;
  --panel-lift: #302d30;
  --border: rgba(235, 216, 196, .14);
  --ink: #f7f3ee;
  --muted: #b6aaa2;
  --dim: #91827a;
  --crypto: #fba441;
  --stocks: #58d7c6;
  --danger: #ff798b;
  --warm: #e9d7a8;
  --radius: 23px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

.wallet-section { padding: 28px; min-width: 0; border-color: rgba(88,215,198,.3); }
.wallet-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.wallet-metrics span { color: var(--muted); font-size: 12px; display: block; margin-bottom: 10px; }
.wallet-metrics strong { font-size: 23px; display: block; overflow-wrap: anywhere; }
.wallet-position { color: var(--warm); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.wallet-updated { color: var(--stocks); font-size: 12px; margin: -8px 0 14px; }
.wallet-operations { margin-top: 24px; padding: 20px; border: 1px solid rgba(88,215,198,.3); border-radius: 16px; background: rgba(88,215,198,.045); }
.wallet-operations h3 { margin: 0; font-size: 18px; }
.wallet-operations .activity-heading > span { color: var(--muted); font-size: 12px; }
.wallet-operations ol { margin: 16px 0 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; }
.wallet-operations li { padding: 12px 0; border-top: 1px solid var(--border); color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.wallet-button { padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-lift); color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; }
.wallet-button:disabled { opacity: .45; cursor: not-allowed; }
.wallet-section :focus-visible { outline: 2px solid var(--stocks); outline-offset: 3px; }
.wallet-feedback { color: var(--warm); font-size: 13px; line-height: 1.6; }
.wallet-history { border-top: 1px solid var(--border); padding: 17px 0 0; margin-top: 18px; }
.wallet-history summary { cursor: pointer; font-size: 14px; }
.wallet-history ul { padding-left: 20px; max-height: 260px; overflow: auto; color: var(--muted); font-size: 12px; line-height: 1.8; }
.wallet-history li { padding: 7px 0; overflow-wrap: anywhere; }
@media (max-width: 650px) { .wallet-section { padding: 22px; } .wallet-metrics { grid-template-columns: 1fr 1fr; } .wallet-metrics strong { font-size: 19px; } }
.activity-section { padding: 28px; min-width: 0; }
.activity-heading, .activity-controls, .activity-event-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.activity-heading p:not(.section-kicker), .activity-help { color: var(--muted); font-size: 13px; line-height: 1.6; }
.activity-health { color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 8px 12px; font-size: 12px; }
.activity-health--fresh { color: var(--stocks); border-color: var(--stocks); }
.activity-system { color: var(--warm); font-size: 13px; line-height: 1.6; margin: 18px 0; }
.activity-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(0,0,0,.12); overflow-wrap: anywhere; }
.activity-card h3 { font-size: 17px; margin: 15px 0 10px; }
.activity-card p, .activity-events p { font-size: 13px; line-height: 1.65; margin: 8px 0; }
.activity-card .activity-cycle { display: flex; flex-direction: column; gap: 5px; margin: 17px 0 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--ink); }
.activity-cycle-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.activity-time, .activity-event-header time { font-size: 11px; color: var(--muted); }
.activity-controls { margin-top: 26px; }
.activity-controls h3 { font-size: 16px; margin: 0; }
.activity-controls label { font-size: 12px; color: var(--muted); }
.activity-controls select { margin-left: 8px; padding: 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.activity-events { padding: 0; margin: 14px 0 0; list-style: none; max-height: 370px; overflow-y: auto; scrollbar-color: var(--dim) transparent; }
.activity-events li { padding: 16px 4px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.activity-action { font-size: 12px; letter-spacing: .03em; }
.activity-action[data-action="COMPRA"] { color: var(--stocks); }
.activity-action[data-action="VENDA"] { color: var(--crypto); }
.activity-action[data-action="BLOQUEADO"] { color: var(--danger); }
.activity-empty { color: var(--muted); font-size: 13px; }
@media (max-width: 650px) { .activity-cards { grid-template-columns: 1fr; } .activity-section { padding: 22px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 950px 650px at 7% -8%, rgba(151, 91, 51, .2), transparent 75%),
    radial-gradient(ellipse 950px 700px at 94% 54%, rgba(214, 101, 27, .18), transparent 70%),
    radial-gradient(ellipse 600px 450px at 42% 70%, rgba(96, 57, 37, .15), transparent 75%),
    linear-gradient(180deg, #151313, #100f10 55%, #100e10);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(192, 163, 138, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 163, 138, .08) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

.page-shell { width: min(1240px, calc(100% - 72px)); margin: 0 auto; }
.skip-link { position: absolute; left: 18px; top: -80px; z-index: 10; color: #0a111e; background: #e7fff9; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--crypto); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[hidden] { display: none !important; }

.site-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { position: relative; width: 36px; height: 36px; display: flex; align-items: center; gap: 4px; transform: rotate(-22deg); }
.brand-mark span { display: block; width: 5px; border-radius: 7px; background: var(--crypto); box-shadow: 0 0 18px rgba(54, 222, 195, .4); }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 29px; }
.brand-mark span:nth-child(3) { height: 20px; }
.brand-name { display: block; line-height: 1; letter-spacing: .14em; font-size: 19px; font-weight: 850; }
.brand-dot { color: var(--crypto); }
.brand-subtitle { display: block; margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .25em; color: var(--muted); }
.header-meta { display: flex; align-items: center; gap: 16px; }
.account-menu { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border: 1px solid rgba(181,206,231,.19); border-radius: 100px; background: rgba(24,39,57,.62); box-shadow: inset 0 1px rgba(255,255,255,.06); white-space: nowrap; }
.account-menu-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #e8fff9; background: linear-gradient(135deg, rgba(54,222,195,.44), rgba(177,164,255,.48)); font-size: 11px; font-weight: 800; }
.account-menu-name { padding: 0 3px; color: #e2ecf4; font-size: 11px; font-weight: 700; }
.logout-button { padding: 7px 9px; border: 0; border-radius: 100px; background: rgba(255,255,255,.07); color: #c9d6e2; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.logout-button:hover, .logout-button:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.logout-button:disabled { opacity: .55; cursor: wait; }
.experiment-tag, .section-kicker, .mini-label, .market-code, .value-label, .transactions-note { font-size: 10px; letter-spacing: .17em; font-weight: 750; color: var(--dim); }
.experiment-tag { color: var(--muted); }
.connection { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(54,222,195,.2); background: rgba(54,222,195,.075); border-radius: 100px; padding: 9px 12px; color: #bbf4e9; font-size: 11px; font-weight: 700; white-space: nowrap; }
.connection-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--crypto); box-shadow: 0 0 0 4px rgba(54,222,195,.13), 0 0 13px var(--crypto); }
.connection--loading { color: var(--muted); border-color: var(--border); background: rgba(255,255,255,.03); }
.connection--loading .connection-dot { background: var(--muted); box-shadow: none; }
.connection--stale { color: #ffe0a5; border-color: rgba(233, 199, 115, .22); background: rgba(233, 199, 115, .07); }
.connection--stale .connection-dot { background: #e9c777; box-shadow: 0 0 0 4px rgba(233,199,115,.13); }
.connection--offline { color: #ffc8d0; border-color: rgba(255,121,139,.23); background: rgba(255,121,139,.07); }
.connection--offline .connection-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,121,139,.13); }
.connection--complete { color: #d8ceff; border-color: rgba(177,164,255,.27); background: rgba(177,164,255,.09); }
.connection--complete .connection-dot { background: var(--stocks); box-shadow: 0 0 0 4px rgba(177,164,255,.13); }

.intro { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(32px, 6vw, 92px); padding: 76px 0 68px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 10px; color: var(--crypto); letter-spacing: .19em; font-weight: 800; }
.eyebrow-line { width: 22px; height: 1px; background: var(--crypto); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 21px; font-size: clamp(52px, 6vw, 88px); font-weight: 760; letter-spacing: -.068em; line-height: 1.01; }
h1 em { font-style: normal; color: var(--crypto); }
.intro-description { max-width: 480px; color: #a7b7c7; font-size: 16px; line-height: 1.7; }
.intro-footnote { display: flex; align-items: center; gap: 10px; margin-top: 33px; font-size: 11px; color: var(--dim); letter-spacing: .03em; }
.tiny-diamond { display: inline-block; flex: none; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--crypto); }
.panel { position: relative; border: 1px solid rgba(181,206,231,.18); border-radius: var(--radius); background: linear-gradient(145deg, rgba(31,47,67,.76), rgba(12,23,38,.89)); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 22px 58px rgba(0,0,0,.16); backdrop-filter: blur(18px); }
.timeline { padding: 29px 30px 30px; overflow: hidden; }
.timeline::after { content: ""; position: absolute; width: 250px; height: 250px; right: -105px; top: -140px; border-radius: 50%; background: rgba(54,222,195,.06); filter: blur(5px); pointer-events: none; }
.panel-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-kicker { margin-bottom: 10px; color: var(--crypto); }
.panel-topline .section-kicker { margin: 0; }
.status-chip { display: inline-flex; padding: 5px 9px; border-radius: 100px; border: 1px solid rgba(54,222,195,.22); color: #b8eade; background: rgba(54,222,195,.07); font-size: 10px; white-space: nowrap; }
.status-chip--paused { border-color: rgba(233,199,115,.28); background: rgba(233,199,115,.08); color: #f7dfab; }
.status-chip--complete { border-color: rgba(177,164,255,.29); background: rgba(177,164,255,.08); color: #ded5ff; }
.countdown { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; padding: 37px 0 32px; }
.count-unit { min-width: 48px; display: flex; flex-direction: column; gap: 8px; }
.count-unit strong { font-size: clamp(32px, 3vw, 47px); letter-spacing: -.065em; font-weight: 650; font-variant-numeric: tabular-nums; line-height: .92; }
.count-unit span { color: var(--dim); font-size: 9px; letter-spacing: .16em; font-weight: 750; }
.count-divider { padding-top: 2px; color: var(--dim); font-size: 30px; font-weight: 300; }
.progress-copy, .timeline-dates { display: flex; justify-content: space-between; gap: 12px; }
.progress-copy { margin-bottom: 10px; color: var(--dim); font-size: 10px; letter-spacing: .13em; font-weight: 750; }
.progress-copy strong { color: var(--ink); font-size: 11px; }
.progress-track { height: 7px; border-radius: 20px; overflow: hidden; background: #263344; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1bbaaa, #59efc8); box-shadow: 0 0 16px rgba(54,222,195,.55); transition: width .6s ease; }
.timeline-dates { padding-top: 13px; color: var(--dim); font-size: 10px; }

.summary-strip { display: flex; align-items: center; gap: 0; min-height: 99px; padding: 22px 31px; border: 1px solid rgba(181,206,231,.19); border-radius: 18px; background: linear-gradient(110deg, rgba(29,52,67,.56), rgba(28,29,54,.52)); box-shadow: inset 0 1px rgba(255,255,255,.055); backdrop-filter: blur(15px); }
.summary-strip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.summary-strip .mini-label { color: var(--dim); }
.summary-strip strong { font-size: clamp(17px, 2vw, 23px); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#leader { white-space: normal; overflow: visible; line-height: 1.25; }
.strip-divider { align-self: stretch; width: 1px; margin: 0 30px; background: var(--border); }
.strip-spark { color: var(--crypto); font-size: 23px; }

.portfolio-section, .chart-section, .insights-grid, .transactions-section { margin-top: 52px; }
.section-heading, .chart-header, .transactions-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading { margin-bottom: 21px; }
h2 { margin: 0; font-size: clamp(25px, 2.5vw, 33px); letter-spacing: -.04em; font-weight: 700; }
.section-heading > p, .chart-description, .panel-section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.portfolio-card { --market-color: var(--crypto); position: relative; padding: 30px 31px 0; min-width: 0; min-height: 442px; overflow: hidden; border: 1px solid rgba(54,222,195,.24); border-radius: var(--radius); background: radial-gradient(circle at 100% 0%, rgba(54,222,195,.15), transparent 42%), linear-gradient(145deg, rgba(29,52,67,.83), rgba(15,31,47,.9) 72%); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 22px 55px rgba(0,0,0,.14); backdrop-filter: blur(18px); }
.portfolio-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--market-color), transparent 65%); }
.portfolio-card--stocks { --market-color: var(--stocks); border-color: rgba(177,164,255,.27); background: radial-gradient(circle at 100% 0%, rgba(177,164,255,.17), transparent 42%), linear-gradient(145deg, rgba(36,43,69,.84), rgba(22,31,52,.91) 72%); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.market-icon { width: 39px; height: 39px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--market-color); border: 1px solid color-mix(in srgb, var(--market-color) 35%, transparent); background: color-mix(in srgb, var(--market-color) 10%, transparent); font-size: 23px; font-weight: 600; }
.market-code { color: var(--muted); }
.portfolio-card h3 { margin: 22px 0 3px; font-size: 26px; letter-spacing: -.045em; font-weight: 680; }
.card-subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.card-value { display: flex; flex-direction: column; gap: 9px; margin-top: 30px; }
.value-label { color: var(--muted); }
.card-value strong { font-size: clamp(35px, 3.4vw, 48px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.055em; font-weight: 710; }
.pnl-pill { display: inline-flex; align-items: center; align-self: start; width: max-content; max-width: 100%; margin-top: 12px; padding: 7px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pnl-pill--positive { background: rgba(54,222,195,.12); color: #8bf3df; }
.pnl-pill--negative { background: rgba(255,121,139,.12); color: #ffadba; }
.pnl-pill--neutral { background: rgba(255,255,255,.06); color: #bdc8d2; }
.card-rule { height: 1px; margin-top: 24px; background: var(--border); }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; row-gap: 18px; margin: 22px 0 24px; }
.card-stats div { min-width: 0; }
.card-stats dt { color: var(--muted); font-size: 11px; }
.card-stats dd { margin: 4px 0 0; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin: 0 -31px; padding: 13px 31px; border-top: 1px solid var(--border); background: rgba(255,255,255,.018); color: var(--muted); font-size: 11px; }
.card-footer-mark { color: var(--market-color); font-size: 19px; }

.chart-section { padding: 30px 32px 25px; }
.chart-header { align-items: start; }
.chart-description { margin-top: 8px; }
.chart-legend { display: flex; gap: 20px; padding-top: 8px; color: #b6c3cf; font-size: 11px; white-space: nowrap; }
.chart-legend span, .sentiment-market { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.legend-dot--crypto { background: var(--crypto); box-shadow: 0 0 10px rgba(54,222,195,.55); }
.legend-dot--stocks { background: var(--stocks); box-shadow: 0 0 10px rgba(177,164,255,.55); }
.chart-wrap { position: relative; width: 100%; margin-top: 28px; }
.equity-chart { display: block; width: 100%; height: auto; min-height: 210px; overflow: visible; font: 10px Inter, "Segoe UI", Arial, sans-serif; }
.chart-grid { stroke: #304152; stroke-width: 1; opacity: .66; }
.chart-grid--zero { stroke: #8295a7; stroke-dasharray: 4 6; opacity: .65; }
.chart-axis-label { fill: #70859a; font-size: 10px; }
.chart-path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-path--crypto { stroke: var(--crypto); filter: drop-shadow(0 0 5px rgba(54,222,195,.35)); }
.chart-path--stocks { stroke: var(--stocks); filter: drop-shadow(0 0 5px rgba(177,164,255,.35)); }
.chart-point { stroke: #152333; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.chart-note { margin: 4px 0 0; padding-top: 15px; border-top: 1px solid var(--border); color: var(--dim); font-size: 11px; }

.insights-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 19px; }
.sentiment-section, .radar-section { padding: 29px 31px; min-width: 0; }
.panel-section-heading h2 { margin-bottom: 6px; font-size: 25px; }
.sentiment-list { display: grid; gap: 18px; margin-top: 23px; }
.sentiment-item { padding: 18px 19px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.022); }
.sentiment-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sentiment-market { color: #d5e0e9; font-size: 12px; font-weight: 680; }
.sentiment-top strong { font-variant-numeric: tabular-nums; font-size: 17px; }
.sentiment-meter { position: relative; margin-top: 15px; height: 5px; border-radius: 20px; background: #344153; overflow: hidden; }
.meter-zero { position: absolute; z-index: 1; left: 50%; width: 1px; height: 100%; background: #d2dde7; opacity: .75; }
.meter-fill { position: absolute; top: 0; height: 100%; left: 50%; width: 0; background: var(--crypto); border-radius: 20px; transition: left .4s ease, width .4s ease; }
.meter-fill--negative { background: var(--danger); }
.headline { margin: 13px 0 8px; color: #d5dfe8; font-size: 12px; line-height: 1.55; min-height: 36px; overflow-wrap: anywhere; }
.article-count { color: var(--dim); font-size: 10px; }
.radar-list { display: grid; gap: 14px; margin-top: 23px; }
.radar-item { display: flex; align-items: center; gap: 15px; min-height: 86px; padding: 14px 17px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.022); }
.radar-orb { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 19px; }
.radar-orb--crypto { color: var(--crypto); background: rgba(54,222,195,.12); }
.radar-orb--stocks { color: var(--stocks); background: rgba(177,164,255,.13); }
.radar-item > div { min-width: 0; flex: 1; }
.radar-item .mini-label { display: block; margin-bottom: 6px; }
.radar-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.radar-arrow { color: var(--dim); font-size: 18px; }
.radar-foot { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 15px 2px 0; color: var(--muted); border-top: 1px solid var(--border); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.radar-foot .tiny-diamond { margin-top: 4px; }

.transactions-section { padding: 29px 31px 16px; }
.transactions-header { margin-bottom: 23px; }
.transactions-note { color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; text-align: left; }
th { padding: 0 13px 14px; border-bottom: 1px solid var(--border); color: var(--dim); font-size: 9px; letter-spacing: .13em; font-weight: 750; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; text-align: right; }
td { padding: 17px 13px; border-bottom: 1px solid rgba(181,206,231,.075); color: #c8d6e1; font-size: 11px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.table-empty { padding: 37px 0; text-align: center !important; color: var(--muted); }
.operation-pill { display: inline-block; min-width: 58px; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 750; text-align: center; }
.operation-pill--buy { color: #83ead4; background: rgba(54,222,195,.1); }
.operation-pill--sell { color: #d3c9ff; background: rgba(177,164,255,.1); }
.transaction-market { font-weight: 650; }
.transaction-result--positive { color: var(--crypto); }
.transaction-result--negative { color: var(--danger); }

.final-section { margin-top: 50px; padding: 37px 39px; overflow: hidden; }
.final-glow { position: absolute; width: 360px; height: 240px; border-radius: 50%; right: -100px; top: -150px; background: rgba(177,164,255,.11); filter: blur(22px); pointer-events: none; }
.final-section .section-kicker { color: var(--stocks); }
.final-winner { margin: 12px 0 22px; color: #c2d0df; font-size: 15px; }
.final-report { max-height: 410px; overflow: auto; padding: 21px 24px; border: 1px solid var(--border); border-radius: 13px; background: rgba(2,8,16,.45); color: #cbd6df; line-height: 1.55; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 57px 0 35px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: .1em; }

/* A porta de entrada segue a linguagem glassy do painel, sem expor dados
   privados antes da verificação da sessão no servidor. */
.auth-screen { min-height: 100vh; min-height: 100svh; padding: clamp(16px, 3vw, 38px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(380px, .85fr); min-height: calc(100vh - clamp(32px, 6vw, 76px)); min-height: calc(100svh - clamp(32px, 6vw, 76px)); max-width: 1440px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(181,206,231,.18); border-radius: 30px; background: linear-gradient(130deg, rgba(21,42,58,.67), rgba(14,22,38,.8) 56%, rgba(31,29,56,.6)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 30px 100px rgba(0,0,0,.33); backdrop-filter: blur(22px); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; padding: clamp(32px, 4.6vw, 66px); overflow: hidden; isolation: isolate; border-right: 1px solid rgba(181,206,231,.14); background: radial-gradient(circle at 20% 92%, rgba(32,173,171,.14), transparent 42%), radial-gradient(circle at 81% 35%, rgba(102,72,176,.18), transparent 40%); }
.auth-story::before { content: ""; position: absolute; z-index: -1; width: min(62vw, 740px); aspect-ratio: 1; top: 7%; left: 10%; border-radius: 50%; border: 1px solid rgba(103,209,209,.11); box-shadow: 0 0 0 52px rgba(103,209,209,.025), 0 0 0 110px rgba(103,209,209,.018), inset 0 0 110px rgba(54,222,195,.05); transform: rotate(-21deg) scaleX(1.2); }
.auth-story::after { content: ""; position: absolute; z-index: -1; width: 72%; height: 46%; right: -18%; top: 24%; border-radius: 50%; background: rgba(78,65,160,.15); filter: blur(80px); pointer-events: none; }
.auth-brand { align-self: flex-start; }
.auth-story-main { max-width: 670px; padding: 75px 0 55px; }
.auth-story-main h1 { max-width: 640px; margin-bottom: 26px; font-size: clamp(48px, 5.4vw, 78px); }
.auth-story-main > p:last-of-type { max-width: 520px; color: #acbfce; font-size: 16px; line-height: 1.75; }
.auth-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 540px; margin-top: 40px; }
.auth-preview > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 15px; border: 1px solid rgba(181,206,231,.16); border-radius: 14px; background: rgba(14,29,45,.46); box-shadow: inset 0 1px rgba(255,255,255,.055); backdrop-filter: blur(16px); color: #d6e4ed; font-size: 11px; }
.auth-preview strong { margin-left: auto; color: #f2f7fb; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.auth-preview-icon { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.auth-preview-icon--crypto { background: rgba(54,222,195,.13); color: var(--crypto); }
.auth-preview-icon--stocks { background: rgba(177,164,255,.13); color: var(--stocks); }
.auth-disclaimer { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: clamp(26px, 4vw, 64px); background: linear-gradient(145deg, rgba(20,32,50,.55), rgba(13,23,39,.66)); }
.auth-panel-inner { width: min(100%, 410px); }
.auth-panel-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 25px; color: var(--crypto); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.auth-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--crypto); box-shadow: 0 0 0 5px rgba(54,222,195,.11), 0 0 16px rgba(54,222,195,.55); }
.auth-panel h2 { font-size: clamp(30px, 3vw, 42px); }
.auth-subtitle { margin: 12px 0 35px; color: #a4b5c5; font-size: 13px; line-height: 1.65; }
.account-picker { min-width: 0; margin: 0 0 25px; padding: 0; border: 0; }
.account-picker legend, .auth-input-label { display: block; margin-bottom: 11px; color: #dce7ef; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.account-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.account-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px 13px; border: 1px solid rgba(181,206,231,.18); border-radius: 14px; background: rgba(255,255,255,.025); color: #c4d2dd; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.account-option:hover { border-color: rgba(54,222,195,.38); background: rgba(255,255,255,.045); }
.account-option:has(input:checked) { border-color: rgba(54,222,195,.59); background: linear-gradient(135deg, rgba(54,222,195,.13), rgba(54,222,195,.035)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 0 25px rgba(54,222,195,.055); color: #f0fffb; }
.account-option:focus-within { outline: 2px solid var(--crypto); outline-offset: 3px; }
.account-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.account-avatar { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(181,206,231,.2); border-radius: 11px; background: rgba(181,206,231,.08); color: #dce7f2; font-size: 13px; font-weight: 800; }
.account-option:has(input:checked) .account-avatar { border-color: rgba(54,222,195,.3); background: rgba(54,222,195,.16); color: #d5fff6; }
.account-option-name { font-size: 13px; font-weight: 750; }
.account-option-check { margin-left: auto; color: var(--crypto); font-size: 13px; opacity: 0; }
.account-option:has(input:checked) .account-option-check { opacity: 1; }
.password-wrap { position: relative; }
.password-wrap input { display: block; width: 100%; height: 53px; padding: 0 88px 0 15px; border: 1px solid rgba(181,206,231,.22); border-radius: 12px; outline: none; background: rgba(8,18,31,.55); color: #f4f9fb; font: inherit; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.password-wrap input::placeholder { color: #72889c; }
.password-wrap input:focus { border-color: rgba(54,222,195,.65); box-shadow: 0 0 0 3px rgba(54,222,195,.1); }
.password-toggle { position: absolute; right: 9px; top: 9px; height: 35px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #afc1ce; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.password-toggle:hover { color: #e9fff9; background: rgba(255,255,255,.06); }
.login-feedback { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.login-feedback--error { border: 1px solid rgba(255,121,139,.23); color: #ffbac3; background: rgba(255,121,139,.08); }
.login-feedback--success { border: 1px solid rgba(54,222,195,.23); color: #bff8ec; background: rgba(54,222,195,.08); }
.auth-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 53px; margin-top: 22px; padding: 0 18px; border: 1px solid rgba(119,247,221,.46); border-radius: 12px; background: linear-gradient(105deg, #34d6bf, #6fe1d0); box-shadow: 0 12px 28px rgba(27,180,157,.18), inset 0 1px rgba(255,255,255,.34); color: #06231f; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(27,180,157,.25); }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-submit > span:last-child { font-size: 19px; font-weight: 500; }
.auth-panel-foot { display: flex; align-items: flex-start; gap: 11px; margin-top: 32px; padding-top: 21px; border-top: 1px solid rgba(181,206,231,.12); color: #8196aa; font-size: 10px; line-height: 1.6; }
.auth-foot-lock { color: var(--stocks); font-size: 10px; line-height: 1.7; }

/* O vídeo de referência usa uma aplicação compacta e fumada: dock estreito,
   gráfico dominante à esquerda e contexto/conta à direita. */
#dashboard-shell { padding: 28px 0; }
.dashboard-frame { display: grid; grid-template-columns: 64px minmax(0, 1fr); width: min(1600px, calc(100% - 42px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(247,229,207,.17); border-radius: 28px; background: linear-gradient(135deg, rgba(43,42,43,.83), rgba(26,25,28,.91) 62%, rgba(35,30,29,.82)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 30px 100px rgba(0,0,0,.36), 0 0 80px rgba(236,118,39,.06); backdrop-filter: blur(25px); }
.dashboard-frame > .page-shell { width: 100%; min-width: 0; margin: 0; padding: 0 28px; }
.icon-rail { display: flex; align-items: center; flex-direction: column; gap: 44px; padding: 24px 7px 24px; border-right: 1px solid rgba(247,229,207,.11); background: linear-gradient(180deg, rgba(51,49,49,.8), rgba(23,22,24,.58)); }
.rail-logo { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(251,164,65,.38); border-radius: 12px; background: rgba(251,164,65,.12); color: var(--ink); font-size: 17px; font-weight: 850; letter-spacing: -.09em; }
.rail-logo span { color: var(--crypto); }
.rail-links { display: grid; gap: 12px; }
.rail-links a, .sidebar-quick a { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid transparent; border-radius: 11px; color: #a79a92; font-size: 20px; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.rail-links a:hover, .rail-links a:focus-visible, .rail-links a[aria-current="page"] { border-color: rgba(251,164,65,.24); background: rgba(251,164,65,.12); color: var(--crypto); }
.rail-end { margin-top: auto; color: #9b8a7c; font-size: 9px; font-weight: 850; letter-spacing: .12em; writing-mode: vertical-rl; }
.dashboard-main { display: grid; grid-template-columns: minmax(0, 2.22fr) minmax(285px, .9fr); gap: 20px 22px; align-items: start; }
.dashboard-main > .wallet-section { grid-column: 1 / -1; grid-row: 1; }
.dashboard-main > .intro { grid-column: 1; grid-row: 2; }
.dashboard-main > .summary-strip { grid-column: 1; grid-row: 3; }
.dashboard-main > .chart-section { grid-column: 1; grid-row: 4; }
.dashboard-main > .portfolio-section { grid-column: 1; grid-row: 5; }
.dashboard-main > .dashboard-side { grid-column: 2; grid-row: 2 / span 4; }
.dashboard-main > .activity-section { grid-column: 1 / -1; grid-row: 6; }
.dashboard-main > .transactions-section { grid-column: 1 / -1; grid-row: 7; }
.dashboard-main > .final-section { grid-column: 1 / -1; grid-row: 8; }
.dashboard-main .intro { gap: 22px; padding: 30px 0 0; }
.dashboard-main .intro h1 { font-size: clamp(39px, 3.5vw, 58px); }
.dashboard-main .intro-description { font-size: 13px; line-height: 1.58; }
.dashboard-main .intro-footnote { margin-top: 17px; }
.dashboard-main .timeline { padding: 19px 20px 20px; }
.dashboard-main .countdown { padding: 24px 0 21px; }
.dashboard-main .count-unit strong { font-size: clamp(24px, 2.4vw, 34px); }
.dashboard-main .count-divider { font-size: 23px; }
.dashboard-main .summary-strip { min-height: 74px; padding: 13px 20px; }
.dashboard-main .summary-strip strong { font-size: clamp(14px, 1.4vw, 18px); }
.dashboard-main .strip-divider { margin: 0 17px; }
.dashboard-main .chart-section, .dashboard-main .portfolio-section, .dashboard-main .transactions-section, .dashboard-main .final-section { margin-top: 0; }
.dashboard-main .chart-section { min-height: 360px; }
.dashboard-main .chart-wrap { margin-top: 16px; }
.dashboard-main .portfolio-card { min-height: 410px; }
.dashboard-main .portfolio-section { margin-top: 10px; }
.dashboard-side { display: grid; align-content: start; gap: 14px; padding-top: 22px; min-width: 0; }
.sidebar-profile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; }
.sidebar-profile > div:first-child { min-width: 0; }
.sidebar-profile strong { display: block; margin-top: 4px; color: #f0e9e1; font-size: 13px; white-space: nowrap; }
.sidebar-kicker { color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.sidebar-quick { display: flex; justify-content: space-between; gap: 8px; }
.sidebar-quick a { flex: 1; width: auto; min-width: 0; height: 43px; border-color: rgba(247,229,207,.14); background: rgba(255,255,255,.035); }
.sidebar-quick a:hover, .sidebar-quick a:focus-visible { border-color: rgba(251,164,65,.45); background: rgba(251,164,65,.12); color: var(--crypto); }
.sidebar-feature { min-height: 173px; padding: 21px 22px; overflow: hidden; border-color: rgba(255,179,91,.52); background: radial-gradient(circle at 89% 15%, rgba(255,223,150,.35), transparent 37%), linear-gradient(133deg, #d9662c 0%, #f69d3a 78%, #f3b05b); box-shadow: inset 0 1px rgba(255,255,255,.26), 0 16px 40px rgba(231,105,36,.2); color: #2b1710; }
.sidebar-feature::after { content: ""; position: absolute; right: -33px; bottom: -86px; width: 176px; height: 176px; border: 1px solid rgba(255,239,195,.4); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,239,195,.09), 0 0 0 70px rgba(255,239,195,.06); }
.sidebar-feature > span:first-child { display: block; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.sidebar-feature strong { display: block; margin-top: 18px; font-size: 25px; line-height: 1.05; letter-spacing: -.05em; }
.sidebar-feature p { position: relative; z-index: 1; margin: 10px 0 0; font-size: 11px; font-weight: 750; }
.sidebar-feature-arrow { position: absolute; z-index: 1; right: 19px; top: 19px; font-size: 23px; }
.dashboard-side .insights-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.dashboard-side .sentiment-section, .dashboard-side .radar-section, .sidebar-last { padding: 21px; }
.dashboard-side .panel-section-heading h2, .sidebar-last h2 { font-size: 21px; }
.dashboard-side .sentiment-list { gap: 11px; margin-top: 17px; }
.dashboard-side .sentiment-item { padding: 12px 14px; }
.dashboard-side .headline { min-height: 0; }
.dashboard-side .radar-list { margin-top: 15px; }
.dashboard-side .radar-item { min-height: 69px; padding: 10px 12px; }
.dashboard-side .radar-orb { width: 35px; height: 35px; }
.sidebar-last h2 { margin-bottom: 12px; }
.sidebar-order-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sidebar-order-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(247,229,207,.09); color: var(--muted); font-size: 10px; line-height: 1.4; }
.sidebar-order-list li:last-child { border-bottom: 0; }
.sidebar-order-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-order-list li strong { flex: none; color: var(--ink); font-size: 10px; }

/* Paleta do vídeo: âmbar para cripto, turquesa discreto para ações. */
.brand-mark span { box-shadow: 0 0 18px rgba(251,164,65,.38); }
.panel { border-color: rgba(247,229,207,.16); background: linear-gradient(145deg, rgba(58,55,55,.66), rgba(31,30,33,.76)); }
.timeline::after { background: rgba(251,164,65,.08); }
.summary-strip { border-color: rgba(247,229,207,.17); background: linear-gradient(110deg, rgba(63,57,53,.58), rgba(40,38,41,.53)); }
.portfolio-card { border-color: rgba(251,164,65,.26); background: radial-gradient(circle at 100% 0%, rgba(251,164,65,.16), transparent 42%), linear-gradient(145deg, rgba(61,52,47,.82), rgba(35,32,34,.87) 72%); }
.portfolio-card--stocks { border-color: rgba(88,215,198,.25); background: radial-gradient(circle at 100% 0%, rgba(88,215,198,.13), transparent 42%), linear-gradient(145deg, rgba(47,55,54,.8), rgba(33,35,37,.88) 72%); }
.connection, .status-chip { border-color: rgba(251,164,65,.25); background: rgba(251,164,65,.09); color: #ffd5a7; }
.connection-dot { box-shadow: 0 0 0 4px rgba(251,164,65,.14), 0 0 13px var(--crypto); }
.progress-track { background: #4a3e39; }
.progress-track span { background: linear-gradient(90deg, #ce6b30, #fbb45d); box-shadow: 0 0 16px rgba(251,164,65,.48); }
.legend-dot--crypto { box-shadow: 0 0 10px rgba(251,164,65,.5); }
.legend-dot--stocks { box-shadow: 0 0 10px rgba(88,215,198,.48); }
.chart-grid { stroke: #65594f; }
.chart-grid--zero { stroke: #c3a78f; }
.chart-axis-label { fill: #a7988d; }
.chart-area--crypto { fill: url(#crypto-area-gradient); }
.chart-path--crypto { filter: drop-shadow(0 0 6px rgba(251,164,65,.45)); }
.chart-path--stocks { filter: drop-shadow(0 0 5px rgba(88,215,198,.36)); }
.chart-point { stroke: #302a29; }
.radar-orb--crypto { background: rgba(251,164,65,.14); }
.radar-orb--stocks { background: rgba(88,215,198,.13); }
.auth-layout { background: linear-gradient(130deg, rgba(49,44,42,.75), rgba(25,24,27,.86) 56%, rgba(49,39,34,.72)); }
.auth-story { border-right-color: rgba(247,229,207,.14); background: radial-gradient(circle at 20% 92%, rgba(215,114,43,.16), transparent 42%), radial-gradient(circle at 81% 35%, rgba(251,164,65,.1), transparent 40%); }
.auth-story::after { background: rgba(224,102,42,.16); }
.auth-panel { background: linear-gradient(145deg, rgba(53,47,43,.49), rgba(30,28,30,.69)); }
.auth-panel-kicker, .account-option-check { color: var(--crypto); }
.auth-kicker-dot { box-shadow: 0 0 0 5px rgba(251,164,65,.11), 0 0 16px rgba(251,164,65,.55); }
.auth-preview-icon--crypto { background: rgba(251,164,65,.14); }
.auth-preview-icon--stocks { background: rgba(88,215,198,.13); }
.account-option:has(input:checked) { border-color: rgba(251,164,65,.59); background: linear-gradient(135deg, rgba(251,164,65,.14), rgba(251,164,65,.035)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 0 25px rgba(251,164,65,.06); }
.account-option:has(input:checked) .account-avatar { border-color: rgba(251,164,65,.32); background: rgba(251,164,65,.16); color: #ffe6c6; }
.account-option-check { color: var(--crypto); }
.password-wrap input { border-color: rgba(247,229,207,.22); background: rgba(17,16,18,.55); }
.password-wrap input:focus { border-color: rgba(251,164,65,.65); box-shadow: 0 0 0 3px rgba(251,164,65,.11); }
.auth-submit { border-color: rgba(255,192,112,.51); background: linear-gradient(105deg, #ee8e3b, #fcb15a); box-shadow: 0 12px 28px rgba(226,113,45,.19), inset 0 1px rgba(255,255,255,.32); color: #28140e; }
.auth-submit:hover:not(:disabled) { box-shadow: 0 16px 36px rgba(226,113,45,.29); }

@media (max-width: 1020px) {
  .dashboard-main { grid-template-columns: minmax(0, 1fr); }
  .dashboard-main > .intro { grid-column: 1; grid-row: 2; }
  .dashboard-main > .summary-strip { grid-column: 1; grid-row: 3; }
  .dashboard-main > .chart-section { grid-column: 1; grid-row: 4; }
  .dashboard-main > .portfolio-section { grid-column: 1; grid-row: 5; }
  .dashboard-main > .dashboard-side { grid-column: 1; grid-row: 6; }
  .dashboard-main > .activity-section { grid-column: 1; grid-row: 7; }
  .dashboard-main > .transactions-section { grid-column: 1; grid-row: 8; }
  .dashboard-main > .final-section { grid-column: 1; grid-row: 9; }
  .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-profile, .sidebar-quick, .sidebar-last { grid-column: 1 / -1; }
  .sidebar-feature { min-height: 214px; }
  .page-shell { width: min(100% - 42px, 900px); }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
  .auth-story { padding: 38px; }
  .auth-panel { padding: 34px; }
  .auth-preview { grid-template-columns: 1fr; max-width: 270px; }
  .intro { gap: 32px; }
  .count-unit strong { font-size: 34px; }
  .portfolio-card { padding-left: 25px; padding-right: 25px; }
  .card-footer { margin-left: -25px; margin-right: -25px; padding-left: 25px; padding-right: 25px; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  #dashboard-shell { padding: 15px 0; }
  .dashboard-frame { grid-template-columns: minmax(0, 1fr); width: calc(100% - 28px); }
  .dashboard-frame > .page-shell { padding: 0 18px; }
  .icon-rail { flex-direction: row; justify-content: space-between; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid rgba(247,229,207,.11); }
  .rail-links { display: flex; gap: 6px; }
  .rail-links a { width: 35px; height: 35px; font-size: 18px; }
  .rail-logo { width: 35px; height: 35px; }
  .rail-end { display: none; }
  .dashboard-side { grid-template-columns: 1fr; padding-top: 0; }
  .sidebar-profile, .sidebar-quick, .sidebar-last { grid-column: 1; }
  .sidebar-feature { min-height: 174px; }
  .auth-screen { padding: 13px; }
  .auth-layout { grid-template-columns: 1fr; min-height: calc(100svh - 26px); }
  .auth-story { min-height: auto; padding: 24px 26px; border-right: 0; border-bottom: 1px solid rgba(181,206,231,.13); }
  .auth-story-main { display: none; }
  .auth-disclaimer { display: none; }
  .auth-panel { padding: 34px 26px 42px; }
  .auth-panel-inner { width: min(100%, 460px); }
  .site-header { min-height: 82px; }
  .experiment-tag { display: none; }
  .intro { grid-template-columns: 1fr; padding: 53px 0 37px; gap: 26px; }
  .intro-description { max-width: 610px; }
  .intro-footnote { margin-top: 22px; }
  .summary-strip { padding: 20px 23px; }
  .strip-divider { margin: 0 17px; }
  .portfolio-grid, .insights-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: auto; }
  .section-heading > p { display: none; }
  .chart-header { display: block; }
  .chart-legend { padding-top: 18px; }
  .portfolio-section, .chart-section, .insights-grid, .transactions-section { margin-top: 36px; }
  .site-footer { flex-wrap: wrap; line-height: 1.7; }
}
@media (max-width: 520px) {
  .dashboard-frame { width: calc(100% - 16px); border-radius: 18px; }
  .dashboard-frame > .page-shell { padding: 0 14px; }
  .icon-rail { padding: 9px 11px; }
  .rail-links { gap: 1px; }
  .rail-links a { width: 32px; height: 32px; font-size: 17px; }
  .dashboard-main { gap: 16px; }
  .dashboard-main .intro { padding-top: 26px; }
  .dashboard-main .summary-strip { gap: 8px; }
  .dashboard-main .chart-section { min-height: 0; }
  .dashboard-main .portfolio-card { min-height: 0; }
  .auth-screen { padding: 0; }
  .auth-layout { min-height: 100svh; border: 0; border-radius: 0; }
  .auth-story { padding: 22px 21px; }
  .auth-panel { display: block; padding: 33px 21px 40px; }
  .auth-panel-kicker { margin-bottom: 23px; }
  .auth-subtitle { margin-bottom: 30px; }
  .account-option { min-height: 62px; padding: 8px; gap: 8px; }
  .account-avatar { width: 32px; height: 32px; }
  .account-option-name { font-size: 12px; }
  .page-shell { width: calc(100% - 28px); }
  .site-header { gap: 12px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 0; }
  .header-meta { width: 100%; margin-left: 0; }
  .account-menu { margin-left: auto; }
  .experiment-tag { display: none; }
  .connection { max-width: 100%; white-space: normal; line-height: 1.3; }
  .brand-name { font-size: 17px; }
  .brand-subtitle { font-size: 7px; }
  .connection { padding: 8px 9px; font-size: 10px; }
  .intro { padding-top: 45px; }
  h1 { font-size: clamp(39px, 10.9vw, 54px); letter-spacing: -.06em; }
  .intro-description { font-size: 14px; }
  .timeline { width: 100%; min-width: 0; padding: 23px 20px; }
  .panel-topline { align-items: flex-start; flex-wrap: wrap; }
  .countdown { gap: 0; padding: 32px 0 29px; }
  .count-unit { min-width: 0; flex: 1 1 0; }
  .count-unit strong { font-size: clamp(25px, 7.7vw, 35px); }
  .count-divider { flex: none; margin: 0 3px; font-size: 21px; }
  .timeline-dates { flex-wrap: wrap; }
  .summary-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 20px; }
  .summary-strip > div:last-of-type { grid-column: 1 / -1; }
  .summary-strip strong { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .strip-divider, .strip-spark { display: none; }
  .portfolio-grid, .insights-grid { grid-template-columns: minmax(0, 1fr); }
  .portfolio-card { padding: 25px 23px 0; }
  .card-footer { margin-left: -23px; margin-right: -23px; padding-left: 23px; padding-right: 23px; }
  .chart-section, .sentiment-section, .radar-section, .transactions-section, .final-section { padding-left: 22px; padding-right: 22px; }
  .chart-wrap { overflow-x: auto; }
  .equity-chart { min-width: 620px; min-height: 220px; }
  .chart-legend { gap: 13px; flex-wrap: wrap; }
  .chart-note { line-height: 1.5; }
  .timeline-dates { font-size: 9px; }
  .transactions-header { display: block; }
  .transactions-note { display: block; margin-top: 12px; }
  .site-footer { margin-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Vista focada no pedido atual; o histórico A/B permanece na base, não no ecrã. */
.meme-focus .intro, .meme-focus .summary-strip, .meme-focus .portfolio-section,
.meme-focus .chart-section, .meme-focus .activity-section,
.meme-focus .transactions-section, .meme-focus .final-section,
.meme-focus .sidebar-quick, .meme-focus .sidebar-feature,
.meme-focus .sidebar-last, .meme-focus .radar-section,
.meme-focus .sentiment-item:nth-child(2) { display: none !important; }
.meme-focus .dashboard-main > .meme-section { grid-column: 1; grid-row: 1; }
.meme-focus .dashboard-main > .dashboard-side { grid-column: 2; grid-row: 1; padding-top: 0; }
.meme-focus .dashboard-main > .telegram-section { grid-column: 1 / -1; grid-row: 2; padding: 24px 28px; }
.meme-focus .dashboard-main > .wallet-section { grid-column: 1 / -1; grid-row: 3; }
.meme-focus .dashboard-side .insights-grid { display: block; }
.meme-focus .dashboard-side .sentiment-section { margin-top: 14px; }
.meme-section { padding: 28px; min-width: 0; }
.meme-section h1 { font-size: clamp(25px, 3vw, 38px); margin: 7px 0 10px; letter-spacing: -.04em; }
.meme-section .activity-heading p:not(.section-kicker) { max-width: 650px; }
.meme-current { margin: 17px 0; padding: 22px; border: 1px solid rgba(251,164,65,.33); border-radius: 16px; background: rgba(251,164,65,.07); overflow-wrap: anywhere; }
.meme-current > p { margin: 0; color: var(--muted); line-height: 1.65; }
.meme-current h2 { margin: 0 0 8px; font-size: 24px; }
.meme-current .meme-badge { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 20px; background: rgba(251,164,65,.19); color: var(--crypto); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.meme-price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 17px 0; }
.meme-price-grid div { padding: 10px; background: rgba(0,0,0,.19); border-radius: 10px; }
.meme-price-grid span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.meme-price-grid strong { font-size: 13px; overflow-wrap: anywhere; }
.meme-history { list-style: none; padding: 0; margin: 10px 0 0; max-height: 280px; overflow: auto; }
.meme-history li { padding: 13px 2px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.6; }
.meme-history strong { color: var(--crypto); }
.meme-history small { display: block; color: var(--muted); }
@media (max-width: 1100px) {
  .meme-focus .dashboard-main > .meme-section { grid-column: 1; grid-row: 1; }
  .meme-focus .dashboard-main > .telegram-section { grid-column: 1; grid-row: 2; }
  .meme-focus .dashboard-main > .dashboard-side { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .meme-focus .dashboard-main > .wallet-section { grid-column: 1; grid-row: 4; }
  .meme-focus .dashboard-side .sentiment-section { margin-top: 0; }
}
@media (max-width: 650px) {
  .meme-focus .dashboard-main > .dashboard-side { grid-template-columns: 1fr; }
  .meme-focus .dashboard-side .sentiment-section { margin-top: 14px; }
  .meme-section { padding: 22px; }
  .meme-price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* BM live workspace: motion indicates connection and real value changes. */
.ui-icon { width: 22px; height: 22px; flex: none; display: block; }
body { background-image: radial-gradient(ellipse at 15% 0%,rgba(251,164,65,.07),transparent 45%),radial-gradient(ellipse at 95% 45%,rgba(88,215,198,.045),transparent 40%); background-attachment: fixed; }
.panel { position: relative; background: linear-gradient(145deg,rgba(48,44,43,.94),rgba(26,25,28,.98)); box-shadow: 0 14px 44px rgba(0,0,0,.15),inset 0 1px rgba(255,255,255,.035); transition: border-color .25s ease,box-shadow .25s ease; }
.panel:hover { border-color: rgba(235,216,196,.24); box-shadow: 0 18px 50px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.dashboard-main > .panel,.dashboard-side > .panel { animation: bm-reveal .65s both; }
.dashboard-main > .telegram-section { animation-delay: .08s; }
.dashboard-main > .wallet-section { animation-delay: .16s; }
.icon-rail { background: linear-gradient(180deg,#242123,#171719); }
.rail-logo { letter-spacing: -.06em; font-size: 15px; box-shadow: 0 4px 20px rgba(251,164,65,.08); }
.rail-links { gap: 16px; }
.rail-links a { position: relative; width: 44px; height: 44px; border-radius: 14px; transition: transform .2s,background .2s,color .2s,box-shadow .2s; }
.rail-links a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.rail-links a[aria-current="page"]::before { content: ""; position: absolute; left: -11px; top: 13px; height: 18px; width: 3px; border-radius: 4px; background: var(--crypto); box-shadow: 0 0 12px rgba(251,164,65,.5); }
.rail-end { display: flex; align-items: center; gap: 12px; }
.rail-orbit { display: block; width: 6px; height: 6px; border: 1px solid var(--crypto); border-radius: 50%; }
.connection:not(.connection--loading):not(.connection--offline):not(.connection--stale) .connection-dot { animation: bm-heartbeat 2.6s ease-out infinite; }
.connection--offline .connection-dot,.connection--stale .connection-dot { animation: none; }
.meme-current { position: relative; background: radial-gradient(ellipse at top right,rgba(251,164,65,.09),transparent 70%),rgba(251,164,65,.025); border-color: rgba(251,164,65,.25); box-shadow: inset 3px 0 var(--crypto); }
.meme-price-grid div { border: 1px solid rgba(255,255,255,.04); background: rgba(0,0,0,.17); }
.wallet-metrics { gap: 12px; }
.wallet-metrics > div { padding: 18px; border: 1px solid rgba(235,216,196,.08); border-radius: 15px; background: linear-gradient(140deg,rgba(255,255,255,.035),rgba(255,255,255,.008)); transition: background .25s,border-color .25s,transform .25s; }
.wallet-metrics > div:hover { transform: translateY(-2px); border-color: rgba(251,164,65,.25); background: rgba(251,164,65,.035); }
.wallet-metrics > div:nth-child(2) { border-color: rgba(251,164,65,.3); background: linear-gradient(135deg,rgba(251,164,65,.10),rgba(251,164,65,.015)); }
.wallet-metrics > div:nth-child(2) strong { color: #ffd4a0; }
.wallet-metrics strong { font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.wallet-metrics span { line-height: 1.5; font-size: 11px; }
.wallet-operations { background: linear-gradient(125deg,rgba(88,215,198,.055),transparent); }
#wallet-live-orders { list-style: none; margin: 18px 0 0; padding: 0; }
#wallet-live-orders li { position: relative; margin-left: 5px; padding: 14px 14px 14px 23px; border-left: 1px solid rgba(88,215,198,.24); color: var(--muted); font-size: 12px; line-height: 1.8; }
#wallet-live-orders li::before { content: ""; position: absolute; left: -4px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--stocks); box-shadow: 0 0 0 4px rgba(88,215,198,.07); }
.meme-history li { padding: 15px 10px; border-radius: 9px; transition: background .2s; }
.meme-history li:hover { background: rgba(255,255,255,.025); }
.sentiment-meter .meter-fill { transition: width .7s ease,left .7s ease; }
.wallet-button,.auth-submit,.logout-button { transition: transform .2s,box-shadow .2s,background .2s; }
.wallet-button:not(:disabled):hover,.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 7px 25px rgba(251,164,65,.16); }
.auth-story { position: relative; overflow: hidden; }
.auth-story::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -170px; bottom: -180px; border: 1px solid rgba(251,164,65,.14); box-shadow: 0 0 0 45px rgba(251,164,65,.018),0 0 0 90px rgba(251,164,65,.012); pointer-events: none; animation: bm-breathe 8s ease-in-out infinite alternate; }
.auth-panel-inner { animation: bm-reveal .7s both; }
@keyframes bm-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bm-heartbeat { 0% { box-shadow: 0 0 0 0 rgba(251,164,65,.3); } 75%,100% { box-shadow: 0 0 0 8px rgba(251,164,65,0); } }
@keyframes bm-breathe { from { transform: scale(.94); opacity: .5; } to { transform: scale(1.08); opacity: 1; } }
@media(max-width:650px) { .wallet-metrics > div { padding: 13px; } .rail-links { gap: 5px; } .rail-links a { width: 36px; height: 36px; } .rail-links a[aria-current="page"]::before { display: none; } .ui-icon { width: 20px; height: 20px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }
.rail-logo { display: inline-flex; justify-content: center; align-items: center; gap: 1px; }
.rail-links a[aria-current="location"] { border-color: rgba(251,164,65,.24); background: rgba(251,164,65,.12); color: var(--crypto); }
.rail-links a[aria-current="location"]::before { content: ""; position: absolute; left: -11px; top: 13px; height: 18px; width: 3px; border-radius: 4px; background: var(--crypto); }
@media(max-width:650px) { .rail-links a[aria-current="location"]::before { display: none; } }
.risk-control { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:22px 0; padding:18px; border:1px solid rgba(251,164,65,.2); border-radius:15px; background:rgba(251,164,65,.035); }
.risk-control strong { font-size:14px; }
.risk-control p { font-size:12px; color:var(--muted); line-height:1.6; max-width:740px; margin:7px 0 0; }
.risk-switch { display:flex; padding:4px; gap:4px; background:rgba(0,0,0,.25); border:1px solid var(--border); border-radius:12px; flex:none; }
.risk-switch button { padding:11px 17px; border:0; border-radius:8px; background:transparent; color:var(--muted); font:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:background .2s,color .2s; }
.risk-switch button[aria-pressed="true"] { background:rgba(88,215,198,.16); color:var(--stocks); }
#risk-high[aria-pressed="true"] { background:rgba(255,121,139,.17); color:var(--danger); }
.risk-switch button:disabled { cursor:not-allowed; opacity:.55; }
.risk-switch button:focus-visible { outline:2px solid var(--crypto); outline-offset:2px; }
@media(max-width:650px) { .risk-control { flex-direction:column; align-items:stretch; } .risk-switch button { flex:1; } }
