* {
    box-sizing: border-box;
}

:root {
    --background: #07111f;
    --surface: #0d1929;
    --surface-light: #132238;

    --border: #20324a;

    --text: #edf4ff;
    --muted: #8fa3bd;

    --primary: #32d296;
    --primary-dark: #1ca875;

    --danger: #ff667a;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
}


/* LOGIN */

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top,
            #10243d,
            var(--background) 55%
        );
}

.login-container {
    width: 100%;
    max-width: 430px;
    padding: 24px;
}

.login-card {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 42px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .35);
}

.brand {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand span {
    color: var(--primary);
}

.subtitle {
    color: var(--muted);
    margin-top: 6px;
    margin-bottom: 32px;
}

label {
    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    font-size: 14px;
    color: var(--muted);
}

input {
    width: 100%;

    background: #081321;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 13px;

    font-size: 15px;

    outline: none;
}

input:focus {
    border-color: var(--primary);
}

button {
    width: 100%;

    margin-top: 25px;
    padding: 13px;

    border: 0;
    border-radius: 8px;

    background: var(--primary);
    color: #04140e;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;
}

button:hover {
    background: var(--primary-dark);
}

.alert-error {
    background: rgba(255, 102, 122, .12);
    color: var(--danger);

    border: 1px solid rgba(255, 102, 122, .35);
    border-radius: 8px;

    padding: 12px;

    margin-bottom: 20px;
}

.login-footer {
    text-align: center;

    color: var(--muted);

    font-size: 12px;

    margin-top: 25px;
}


/* APPLICATION */

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

.topbar {
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;

    color: var(--muted);
}

.user-area a {
    color: var(--text);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 6px;

    padding: 8px 24px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.main-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--muted);

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;

    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

.main-nav a:hover {
    background: rgba(255,255,255,.035);
}

.main-nav a.active {
    background: rgba(50,210,150,.08);
}

.main-nav a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.container {
    max-width: 1450px;

    margin: auto;

    padding: 32px;
}

.page-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
}

.page-header p {
    color: var(--muted);
    margin: 5px 0 0;
}

.market-status {
    color: var(--primary);
    font-size: 13px;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 20px;
}

.card,
.panel {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.card {
    padding: 22px;
}

.card-label {
    display: block;

    color: var(--muted);

    font-size: 13px;

    margin-bottom: 12px;
}

.card strong {
    font-size: 24px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, .8fr)
        minmax(400px, 1.2fr);

    gap: 20px;

    margin-bottom: 20px;
}

.panel {
    padding: 22px;
}

.panel-header {
    border-bottom: 1px solid var(--border);

    padding-bottom: 14px;

    margin-bottom: 14px;
}

.panel-header h2 {
    margin: 0;
    font-size: 16px;
}

.position-section-title {
    margin: 0 0 14px;
    font-size: 18px;
}

.institution-panel {
    margin-bottom: 20px;
}

.institution-panel--agora {
    border-top: 3px solid #32d296;
}

.institution-panel--agora .panel-header h2 {
    color: #32d296;
}

.institution-panel--binance {
    border-top: 3px solid #ffa04b;
}

.institution-panel--binance .panel-header h2 {
    color: #ffa04b;
}

.allocation-row {
    display: flex;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid rgba(255,255,255,.04);

    color: var(--muted);
}

.allocation-panel {
    margin-top: 20px;
}

.allocation-chart {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(220px, 1fr);
    align-items: center;
    gap: 32px;
}

.allocation-pie {
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: auto;
    border: 14px solid var(--surface-light);
    border-radius: 50%;
    background: var(--allocation-gradient);
    box-shadow: 0 0 0 1px var(--border);
}

.allocation-legend {
    display: grid;
    gap: 12px;
}

.allocation-legend-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 28px;
}

.allocation-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--allocation-color);
}

.allocation-legend-name {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.allocation-legend-row strong {
    font-size: 14px;
}

.allocation-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    text-align: center;

    padding: 45px 20px;

    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
}

.empty-state p {
    font-size: 13px;
}

.dashboard-page .page-header p {
    font-size: 15px;
    line-height: 1.5;
}

.dashboard-page .market-status {
    font-size: 14px;
    font-weight: 600;
}

.dashboard-page .card-label {
    font-size: 14px;
}

.dashboard-page .card strong {
    font-size: 26px;
}

.dashboard-page .dashboard-result-positive {
    color: var(--primary);
}

.dashboard-page .dashboard-result-negative {
    color: var(--danger);
}

.dashboard-page .dashboard-result-neutral {
    color: var(--muted);
}

.dashboard-page .panel-header h2 {
    font-size: 18px;
}

.dashboard-page .allocation-row {
    min-height: 48px;
    align-items: center;
    font-size: 15px;
}

.dashboard-page .allocation-row strong {
    font-size: 15px;
}

.dashboard-page .opportunity-row {
    gap: 18px;
}

.dashboard-page .opportunity-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.dashboard-page .opportunity-update {
    margin: -4px 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-page .dashboard-trade-row {
    gap: 18px;
}

.dashboard-page .dashboard-trade-summary {
    min-width: 0;
}

.dashboard-page .dashboard-trade-value {
    flex: 0 0 auto;
    color: var(--text);
    white-space: nowrap;
}

.dashboard-page .trade-side-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: middle;
}

.dashboard-page .trade-side-buy {
    color: var(--primary);
    background: rgba(50, 210, 150, .12);
    border-color: rgba(50, 210, 150, .28);
}

.dashboard-page .trade-side-sell {
    color: var(--danger);
    background: rgba(255, 102, 122, .12);
    border-color: rgba(255, 102, 122, .28);
}

.dashboard-page .opportunity-score {
    flex: 0 0 auto;
    font-size: 18px;
}

.dashboard-page .empty-state strong {
    font-size: 16px;
}

.dashboard-page .empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

footer {
    text-align: center;

    padding: 25px;

    color: var(--muted);

    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 550px) {

    .allocation-chart {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 18px;
    }

    .main-nav {
        gap: 4px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .main-nav a {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 14px;
    }

    .container {
        padding: 20px;
    }
}
.button-link {
    display: inline-block;
    background: var(--primary);
    color: #04140e;
    text-decoration: none;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 8px;
}

.secondary-link {
    color: var(--muted);
    text-decoration: none;
}

.secondary-link:hover {
    color: var(--text);
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.filters button {
    margin: 0;
    width: auto;
}

select,
textarea {
    width: 100%;
    background: #081321;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    outline: none;
}

select:focus,
textarea:focus {
    border-color: var(--primary);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    vertical-align: middle;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 13px;
    border-bottom: 1px solid var(--border);
}

.table-sort-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
    color: var(--text);
}

.table-sort-indicator {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(50, 210, 150, .08);
    color: var(--primary);
    font-size: 13px;
    line-height: 1;
}

.data-table td {
    padding: 15px 13px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,.02);
}

.data-table tbody tr.position-row--agora {
    background: rgba(50, 210, 150, .07);
}

.data-table tbody tr.position-row--agora:hover {
    background: rgba(50, 210, 150, .13);
}

.data-table tbody tr.position-row--agora td:first-child {
    border-left: 3px solid #32d296;
}

.data-table tbody tr.position-row--binance {
    background: rgba(255, 160, 75, .08);
}

.data-table tbody tr.position-row--binance:hover {
    background: rgba(255, 160, 75, .14);
}

.data-table tbody tr.position-row--binance td:first-child {
    border-left: 3px solid #ffa04b;
}

.status-active {
    color: var(--primary);
}

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

.actions {
    white-space: nowrap;
}

.actions a,
.text-button {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.trade-actions {
    white-space: nowrap;
    vertical-align: middle;
}

.trade-action-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trade-actions a {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
}

.trade-actions form {
    display: inline-flex;
    align-items: center;
}

.trade-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: #ff667a;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 17px;
    line-height: 1;
}

.trade-actions button:hover {
    background: rgba(255, 102, 122, .1);
    color: #ff667a;
}

.inline-form {
    display: inline;
    margin-left: 12px;
}

.text-button {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.text-button:hover {
    background: transparent;
}

.empty-table {
    text-align: center;
    color: var(--muted);
    padding: 40px !important;
}

.success-message {
    margin-bottom: 20px;
    padding: 13px 16px;
    background: rgba(50,210,150,.10);
    border: 1px solid rgba(50,210,150,.30);
    color: var(--primary);
    border-radius: 8px;
}

.form-container {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px 20px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 20px 0 0;
}

.checkbox-row input {
    width: auto;
}

@media (max-width: 800px) {
    .filters,
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   TECHNICAL ANALYSIS
   ========================================================= */

.technical-page {
    padding-bottom: 10px;
}

.technical-page > .panel {
    margin-bottom: 20px;
}


/* Cabeçalho */

.technical-page-header {
    margin-bottom: 24px;
}

.technical-page-header p {
    max-width: 720px;
}

.technical-engine-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 12px;

    padding: 8px 12px;

    background: rgba(50, 210, 150, .06);

    border: 1px solid rgba(50, 210, 150, .20);
    border-radius: 20px;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: var(--primary);

    border-radius: 50%;

    box-shadow:
        0 0 8px rgba(50, 210, 150, .65);
}


/* Seletor */

.technical-selector-panel {
    padding: 18px 22px;
}

.selector-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.selector-form .field {
    flex: 1;
}

.selector-form label {
    margin-top: 0;
}

.selector-form select {
    min-width: 280px;
}

.selector-form button {
    width: auto;
    min-width: 125px;

    margin: 0;

    padding-left: 22px;
    padding-right: 22px;
}


/* Snapshot do ativo */

.asset-snapshot {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.asset-snapshot-main {
    min-width: 180px;
}

.asset-symbol {
    font-size: 28px;
    font-weight: 800;

    letter-spacing: -.5px;
}

.asset-tags {
    display: flex;
    gap: 7px;

    margin-top: 8px;
}

.asset-tags span {
    display: inline-flex;

    padding: 4px 8px;

    color: var(--muted);

    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 5px;

    font-size: 11px;
    font-weight: 600;
}

.asset-snapshot-data {
    display: flex;

    justify-content: flex-end;

    gap: 42px;

    flex: 1;
}

.asset-snapshot-data > div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.snapshot-label {
    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.asset-snapshot-data strong {
    font-size: 16px;
}

.snapshot-date {
    font-size: 13px !important;
}


/* =========================================================
   SCORES
   ========================================================= */

.technical-score-layout {
    display: grid;

    grid-template-columns:
        minmax(300px, 1.15fr)
        minmax(420px, 1.85fr);

    gap: 20px;

    margin-bottom: 32px;
}

.technical-score-main {
    position: relative;

    overflow: hidden;

    padding: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(50, 210, 150, .11),
            rgba(13, 25, 41, 1) 55%
        );

    border: 1px solid rgba(50, 210, 150, .28);
    border-radius: 12px;
}

.technical-score-main::after {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    right: -70px;
    top: -80px;

    background:
        radial-gradient(
            circle,
            rgba(50, 210, 150, .13),
            transparent 70%
        );

    pointer-events: none;
}

.technical-score-main-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.score-eyebrow {
    display: block;

    color: var(--primary);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 5px;
}

.technical-score-main h2 {
    margin: 0;

    font-size: 16px;
}

.score-version {
    color: var(--muted);

    font-size: 11px;
}

.technical-score-number {
    margin-top: 24px;

    font-size: 46px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1px;
}

.technical-score-number span {
    color: var(--muted);

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 0;
}

.score-progress {
    height: 6px;

    overflow: hidden;

    margin-top: 20px;

    background: #081321;

    border-radius: 20px;
}

.score-progress-value {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary)
        );

    border-radius: inherit;
}

.score-progress.compact {
    height: 4px;

    margin-top: 15px;
}

.score-description {
    max-width: 440px;

    margin: 16px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.55;
}

.technical-score-components {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.score-card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.score-title {
    color: var(--muted);

    font-size: 12px;

    margin-bottom: 12px;
}

.score-value {
    color: var(--text);

    font-size: 28px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.technical-section {
    margin-bottom: 32px;
}

.technical-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 14px;
}

.technical-section-heading h2 {
    margin: 0;

    font-size: 18px;
}

.technical-section-heading p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.state-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.state-card {
    min-width: 0;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.state-title {
    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .4px;

    margin-bottom: 14px;
}

.state-badge {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;
}

.state-positive {
    color: var(--primary);

    background:
        rgba(50, 210, 150, .10);

    border:
        1px solid rgba(50, 210, 150, .22);
}

.state-negative {
    color: var(--danger);

    background:
        rgba(255, 102, 122, .10);

    border:
        1px solid rgba(255, 102, 122, .22);
}

.state-warning {
    color: #f3c969;

    background:
        rgba(243, 201, 105, .10);

    border:
        1px solid rgba(243, 201, 105, .22);
}

.state-neutral {
    color: var(--muted);

    background:
        rgba(143, 163, 189, .08);

    border:
        1px solid rgba(143, 163, 189, .18);
}

.state-detail {
    margin-top: 13px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.45;
}

.state-detail strong {
    color: var(--text);

    font-weight: 600;
}


/* =========================================================
   INDICADORES
   ========================================================= */

.indicator-groups {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.indicator-panel {
    margin: 0 !important;
}

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

.indicator-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 42px;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

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

.indicator-row span {
    color: var(--muted);

    font-size: 12px;
}

.indicator-row strong {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   EVIDÊNCIAS
   ========================================================= */

.evidence-panel {
    padding: 0;

    overflow: hidden;
}

.evidence-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 22px;

    border-bottom: 1px solid var(--border);
}

.evidence-header h2 {
    margin: 0;

    font-size: 17px;
}

.evidence-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.evidence-summary {
    display: flex;

    gap: 8px;
}

.evidence-summary > span {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-width: 68px;

    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;
}

.evidence-summary small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 500;
}

.evidence-positive {
    color: var(--primary);
}

.evidence-negative {
    color: var(--danger);
}

.evidence-neutral,
.evidence-total {
    color: var(--text);
}

.signal-list {
    padding: 4px 22px;
}

.signal {
    display: grid;

    grid-template-columns:
        3px minmax(0, 1fr);

    gap: 14px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.signal:last-child {
    border-bottom: 0;
}

.signal-marker {
    width: 3px;

    min-height: 100%;

    background: var(--muted);

    border-radius: 5px;
}

.signal-positive .signal-marker {
    background: var(--primary);
}

.signal-negative .signal-marker {
    background: var(--danger);
}

.signal-neutral .signal-marker {
    background: var(--muted);
}

.signal-content {
    min-width: 0;
}

.signal-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.signal-code {
    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}

.signal-strength {
    color: var(--muted);

    font-size: 10px;

    padding: 3px 7px;

    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 5px;
}

.signal-meta {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: .35px;
}

.signal-message {
    margin-top: 7px;

    color: #c7d4e5;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   METADADOS
   ========================================================= */

.technical-metadata {
    display: flex;

    justify-content: center;

    gap: 24px;

    flex-wrap: wrap;

    margin: 26px 0 5px;

    color: var(--muted);

    font-size: 10px;
}

.technical-metadata strong {
    color: var(--text);

    font-weight: 500;
}


/* =========================================================
   ERRO
   ========================================================= */

.error {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 20px;

    padding: 14px 16px;

    background:
        rgba(255, 102, 122, .10);

    border:
        1px solid rgba(255, 102, 122, .30);

    border-radius: 8px;

    color: var(--danger);

    font-size: 13px;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1100px) {

    .technical-score-layout {
        grid-template-columns: 1fr;
    }

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


@media (max-width: 850px) {

    .asset-snapshot {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-snapshot-data {
        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

    .indicator-groups {
        grid-template-columns: 1fr;
    }

    .evidence-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 700px) {

    .technical-page-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .selector-form {
        display: block;
    }

    .selector-form .field {
        margin-bottom: 12px;
    }

    .selector-form select {
        min-width: 0;
    }

    .selector-form button {
        width: 100%;
    }

    .technical-score-components {
        grid-template-columns: 1fr;
    }

    .state-grid {
        grid-template-columns: 1fr;
    }

    .asset-snapshot-data {
        gap: 22px;
    }

    .evidence-summary {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);
    }

    .evidence-summary > span {
        min-width: 0;
    }
}


@media (max-width: 500px) {

    .technical-score-number {
        font-size: 38px;
    }

    .asset-snapshot-data {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .asset-snapshot-data > div:last-child {
        grid-column: 1 / -1;
    }

    .evidence-summary {
        grid-template-columns:
            repeat(2, 1fr);
    }
}
/* Sinal compartilhado entre dashboard e radar. */
.crypto-allocation-alert { border-left: 4px solid #94a3b8; margin-bottom: 24px; }
.crypto-allocation-alert h2 { margin-top: 0; }
.crypto-allocation-alert p { line-height: 1.6; }
.crypto-allocation-alert summary { cursor: pointer; }
.crypto-allocation-defensive { border-left-color: #f43f5e; }
.crypto-allocation-return { border-left-color: #22c55e; }
.crypto-allocation-neutral { border-left-color: #eab308; }
.dashboard-allocation-alert { color: #fb923c; }

.dashboard-overview { align-items: start; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.overview-heading h2 { margin: 0; font-size: 18px; }
.overview-heading a { color: #94a3b8; font-size: 12px; text-decoration: none; }
.overview-heading a:hover { color: #e2e8f0; text-decoration: underline; }
.overview-period { font-size: 11px; color: #cbd5e1; background: #1e293b; padding: 4px 8px; border-radius: 6px; }
.overview-caption { color: var(--muted); font-size: 12px; margin: 10px 0 22px; }
.allocation-meter { margin: 22px 0; }
.allocation-meter-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.allocation-meter-track { height: 6px; border-radius: 6px; background: #1e293b; overflow: hidden; }
.allocation-meter-track span { display: block; height: 100%; border-radius: inherit; }
.opportunity-columns { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding-bottom: 8px; }
.opportunity-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #1e293b; font-size: 14px; }
.opportunity-detail { margin-top: 6px; color: var(--muted); font-size: 12px; }
.opportunity-trend-up { color: #4ade80; }
.opportunity-trend-down { color: #fb7185; }
.opportunity-trend-flat { color: #94a3b8; }
.opportunity-score-value { color: #e2e8f0; font-size: 18px; font-variant-numeric: tabular-nums; }

.daily-result-scroll { overflow-x: auto; }
.daily-result-chart { width: 100%; min-width: 480px; display: block; }
.daily-result-chart text { fill: #94a3b8; font-size: 12px; }
.daily-result-panel summary { cursor: pointer; color: #94a3b8; font-size: 12px; margin-top: 12px; }
.consensus-history-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; font-size: 12px; }
.consensus-history-legend span { display: inline-flex; align-items: center; gap: 7px; }
.consensus-history-legend i { width: 18px; height: 3px; display: inline-block; }
.consensus-history summary { cursor: pointer; color: #94a3b8; font-size: 12px; margin-top: 12px; }
