
.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.btfp-toast {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    border-left: 5px solid #0d6efd;
}

.btfp-toast.success {
    border-left-color: #198754;
}

.btfp-toast.danger {
    border-left-color: #dc3545;
}

.btfp-toast.warning {
    border-left-color: #ffc107;
}

.btfp-toast.info {
    border-left-color: #0d6efd;
}

.btfp-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btfp-confirm-dialog {
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
}

.btfp-dashboard-v3 {
    background: radial-gradient(circle at top left, #102347 0, #06111f 38%, #030712 100%);
    color: #e5edf7;
    min-height: calc(100vh - 48px);
    padding: 20px;
    border-radius: 18px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dashboard-header h2 {
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: .04em;
}

.dashboard-header span {
    color: #8ea4c2;
}

.dashboard-status {
    background: rgba(15, 23, 42, .8);
    border: 1px solid rgba(148, 163, 184, .18);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .8rem;
}

.market-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.6fr .75fr 1fr;
    gap: 14px;
}

.terminal-card {
    background: linear-gradient(180deg, rgba(15, 30, 54, .94), rgba(8, 19, 35, .94));
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    padding: 16px;
}

.terminal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.terminal-card-header h5 {
    margin: 0;
    font-size: .92rem;
    letter-spacing: .03em;
}

.terminal-card-header a {
    color: #60a5fa;
    font-size: .78rem;
    text-decoration: none;
}

.metric-card span {
    color: #a8b7cc;
    font-size: .75rem;
    font-weight: 700;
}

.metric-card h3 {
    margin: 8px 0 3px;
    font-size: 1.55rem;
}

.metric-card small {
    color: #93a4bd;
}

.positive {
    color: #22c55e !important;
}

.negative {
    color: #ef4444 !important;
}

.terminal-table {
    width: 100%;
    font-size: .82rem;
}

.terminal-table th {
    color: #9fb0c7;
    font-weight: 600;
    padding: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.terminal-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
}

.terminal-table tr {
    cursor: pointer;
}

.terminal-table tr:hover {
    background: rgba(59, 130, 246, .08);
}

.terminal-table small {
    color: #8ea4c2;
}

.allocation-box {
    display: flex;
    gap: 16px;
    align-items: center;
}

.donut-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #081323 0 48%, transparent 49%),
        conic-gradient(#2563eb 0 56%, #22c55e 56% 88%, #f97316 88% 100%);
    display: grid;
    place-items: center;
    text-align: center;
}

.donut-placeholder strong {
    display: block;
    font-size: .9rem;
}

.donut-placeholder small {
    color: #93a4bd;
}

.allocation-list {
    flex: 1;
}

.allocation-list div,
.terminal-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
}

.terminal-list span {
    color: #93a4bd;
    font-size: .78rem;
}

.market-placeholder h3,
.fund-summary h3 {
    margin: 6px 0;
}

.market-placeholder span,
.fund-summary span,
.empty-mini {
    color: #93a4bd;
    font-size: .82rem;
}

.mini-market-grid,
.ipo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.ipo-grid {
    grid-template-columns: repeat(3, 1fr);
}

.mini-market-grid div,
.ipo-grid div {
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 10px;
    padding: 10px;
    color: #93a4bd;
}

.ipo-grid strong {
    display: block;
    color: #e5edf7;
    font-size: 1.4rem;
}

.portfolio-table-card {
    grid-row: span 2;
}

@media (max-width: 1200px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .btfp-dashboard-v3 {
        padding: 12px;
    }
}

.btfp-dashboard-v3 {
    background: #06111f;
    color: #e5eefb;
    min-height: calc(100vh - 32px);
    padding: 22px;
    margin: -24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.dashboard-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
}

.dashboard-header span {
    color: #8fa3bd;
}

.market-status {
    background: rgba(15, 23, 42, .85);
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
}

.top-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card {
    background: linear-gradient(145deg, rgba(15, 30, 52, .95), rgba(8, 18, 34, .95));
    border: 1px solid rgba(96, 165, 250, .12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    height: 28px;
    border-bottom: 1px solid rgba(59, 130, 246, .55);
    border-radius: 50%;
    opacity: .6;
}

.metric-title {
    color: #a7b7cc;
    font-size: 12px;
    font-weight: 700;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

.metric-subtitle {
    color: #91a5bf;
    font-size: 13px;
}

.metric-card.green .metric-value { color: #22c55e; }
.metric-card.cyan .metric-value { color: #22d3ee; }
.metric-card.purple .metric-value { color: #c084fc; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.35fr;
    gap: 16px;
}

.panel {
    background: rgba(8, 18, 34, .94);
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 35px rgba(0,0,0,.20);
}

.panel-large {
    grid-column: span 1;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.panel-title h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

.panel-title a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 13px;
}

.dashboard-table {
    width: 100%;
    font-size: 13px;
}

.dashboard-table th {
    color: #8fa3bd;
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148,163,184,.15);
}

.dashboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148,163,184,.08);
}

.avatar {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.positive { color: #22c55e; }
.negative { color: #ef4444; }

.donut-wrap, .fund-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.donut, .mini-donut {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: conic-gradient(#0d6efd 0 56%, #22c55e 56% 82%, #f97316 82% 96%, #64748b 96% 100%);
    position: relative;
}

.mini-donut {
    width: 120px;
    height: 120px;
}

.donut::after, .mini-donut::after {
    content: "";
    position: absolute;
    inset: 32px;
    background: #081222;
    border-radius: 50%;
}

.legend {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 8px;
}

.legend.blue { background: #0d6efd; }
.legend.green { background: #22c55e; }
.legend.orange { background: #f97316; }

.placeholder-chart {
    height: 170px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(59,130,246,.18), rgba(59,130,246,.03));
    border: 1px solid rgba(96,165,250,.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.placeholder-chart strong {
    font-size: 24px;
}

.placeholder-chart span {
    color: #8fa3bd;
}

.market-mini {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
    color: #a7b7cc;
}

.ipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ipo-grid div {
    border: 1px solid rgba(96,165,250,.14);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.ipo-grid strong {
    display: block;
    font-size: 24px;
}

.ipo-grid span {
    color: #8fa3bd;
    font-size: 12px;
}

.empty-mini {
    color: #8fa3bd;
    border: 1px dashed rgba(148,163,184,.18);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 12px;
}

.notification-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

.notification-row small {
    display: block;
    color: #8fa3bd;
}

.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    background: #3b82f6;
}

.notif-dot.danger { background: #ef4444; }
.notif-dot.warning { background: #f59e0b; }
.notif-dot.success { background: #22c55e; }

@media (max-width: 1200px) {
    .top-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-metrics {
        grid-template-columns: 1fr;
    }
}

/* Dashboard V3 layout tuning */
.btfp-dashboard-v3 .dashboard-grid {
    grid-template-columns: minmax(520px, 1.8fr) minmax(320px, 1fr) minmax(360px, 1.1fr);
    align-items: stretch;
}

.btfp-dashboard-v3 .panel {
    min-height: 220px;
}

.btfp-dashboard-v3 .panel-large {
    min-height: 360px;
}

.btfp-dashboard-v3 .dashboard-table td,
.btfp-dashboard-v3 .dashboard-table th {
    white-space: nowrap;
}

.btfp-dashboard-v3 .placeholder-chart {
    min-height: 160px;
}

.btfp-dashboard-v3 .fund-summary {
    min-height: 130px;
}

.btfp-dashboard-v3 .empty-mini {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btfp-dashboard-v3 .metric-card {
    min-height: 150px;
}

.btfp-dashboard-v3 .notification-row {
    align-items: flex-start;
}

@media (min-width: 1201px) {
    .btfp-dashboard-v3 .portfolio-table-card,
    .btfp-dashboard-v3 .panel-large:first-child {
        grid-row: span 2;
    }
}

/* ===========================
   BTFP DASHBOARD V3 FINAL PASS
   =========================== */

body {
    background: #020817;
}

.page main {
    background: #020817;
}

.top-row {
    background: #020817 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .10) !important;
}

.content.px-4 {
    padding: 0 !important;
}

.btfp-dashboard-v3 {
    min-height: calc(100vh - 40px);
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .20), transparent 34%),
        linear-gradient(135deg, #06111f 0%, #020817 55%, #030712 100%);
    color: #e5edf7;
}

.btfp-dashboard-v3 .dashboard-header {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.btfp-dashboard-v3 .dashboard-header h2 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: .03em;
}

.btfp-dashboard-v3 .dashboard-header span {
    color: #9fb2cc;
    font-size: .88rem;
}

.btfp-dashboard-v3 .market-status {
    background: rgba(3, 10, 24, .88);
    border: 1px solid rgba(34, 197, 94, .22);
    color: #bbf7d0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .78rem;
}

.btfp-dashboard-v3 .status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .9);
}

.btfp-dashboard-v3 .top-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.btfp-kpi-card {
    min-height: 142px;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(15, 30, 54, .96), rgba(8, 19, 35, .96));
    border: 1px solid rgba(96, 165, 250, .13);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.btfp-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, .18), transparent 36%);
    pointer-events: none;
}

.btfp-kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(96, 165, 250, .18);
    z-index: 1;
}

.btfp-kpi-card.green .btfp-kpi-icon {
    background: rgba(34, 197, 94, .16);
}

.btfp-kpi-card.cyan .btfp-kpi-icon {
    background: rgba(6, 182, 212, .16);
}

.btfp-kpi-card.purple .btfp-kpi-icon {
    background: rgba(168, 85, 247, .16);
}

.btfp-kpi-content {
    z-index: 1;
    flex: 1;
}

.btfp-kpi-title {
    color: #a8b7cc;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.btfp-kpi-value {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 850;
    margin: 8px 0 2px;
}

.btfp-kpi-card.green .btfp-kpi-value {
    color: #22c55e;
}

.btfp-kpi-card.cyan .btfp-kpi-value {
    color: #22d3ee;
}

.btfp-kpi-card.purple .btfp-kpi-value {
    color: #c084fc;
}

.btfp-kpi-subtitle {
    color: #91a5bf;
    font-size: .82rem;
}

.btfp-kpi-sparkline {
    height: 28px;
    margin-top: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, .55);
    border-radius: 50%;
    opacity: .65;
}

.btfp-dashboard-v3 .dashboard-grid {
    display: grid;
    grid-template-columns: 1.55fr .78fr 1.08fr;
    gap: 14px;
    align-items: stretch;
}

.btfp-dashboard-v3 .panel {
    background:
        linear-gradient(180deg, rgba(12, 27, 49, .97), rgba(6, 17, 31, .97));
    border: 1px solid rgba(148, 163, 184, .13);
    border-radius: 16px;
    padding: 16px;
    color: #e5edf7;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
    min-height: 220px;
}

.btfp-dashboard-v3 .panel-large {
    min-height: 350px;
}

.btfp-dashboard-v3 .panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .11);
}

.btfp-dashboard-v3 .panel-title h3 {
    margin: 0;
    color: #ffffff;
    font-size: .92rem;
    font-weight: 850;
    letter-spacing: .03em;
}

.btfp-dashboard-v3 .panel-title a {
    color: #60a5fa;
    text-decoration: none;
    font-size: .78rem;
}

.btfp-dashboard-v3 .dashboard-table {
    width: 100%;
    color: #e5edf7;
    font-size: .80rem;
}

.btfp-dashboard-v3 .dashboard-table th {
    padding: 9px 8px;
    color: #94a9c5;
    font-weight: 650;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
    white-space: nowrap;
}

.btfp-dashboard-v3 .dashboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
    white-space: nowrap;
}

.btfp-dashboard-v3 .dashboard-table tr:hover {
    background: rgba(59, 130, 246, .07);
}

.btfp-dashboard-v3 .avatar {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 50%;
    font-size: .72rem;
    color: #fff;
    font-weight: 800;
}

.btfp-dashboard-v3 .positive {
    color: #22c55e !important;
}

.btfp-dashboard-v3 .negative {
    color: #ef4444 !important;
}

.btfp-dashboard-v3 .donut-wrap,
.btfp-dashboard-v3 .fund-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btfp-dashboard-v3 .donut,
.btfp-dashboard-v3 .mini-donut {
    border-radius: 50%;
    background:
        radial-gradient(circle, #081323 0 48%, transparent 49%),
        conic-gradient(#0d6efd 0 36%, #22c55e 36% 92%, #f97316 92% 100%);
    box-shadow: inset 0 0 18px rgba(0,0,0,.25);
}

.btfp-dashboard-v3 .donut {
    width: 150px;
    height: 150px;
}

.btfp-dashboard-v3 .mini-donut {
    width: 120px;
    height: 120px;
}

.btfp-dashboard-v3 .legend {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 2px;
}

.btfp-dashboard-v3 .legend.blue { background: #0d6efd; }
.btfp-dashboard-v3 .legend.green { background: #22c55e; }
.btfp-dashboard-v3 .legend.orange { background: #f97316; }

.btfp-dashboard-v3 .placeholder-chart {
    min-height: 160px;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .03));
    border: 1px solid rgba(96, 165, 250, .12);
}

.btfp-dashboard-v3 .placeholder-chart strong {
    color: #ffffff;
    font-size: 1.45rem;
}

.btfp-dashboard-v3 .placeholder-chart span,
.btfp-dashboard-v3 .empty-mini,
.btfp-dashboard-v3 .terminal-list span,
.btfp-dashboard-v3 .notification-row small {
    color: #93a4bd;
}

.btfp-dashboard-v3 .market-mini,
.btfp-dashboard-v3 .ipo-grid {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.btfp-dashboard-v3 .market-mini {
    grid-template-columns: repeat(4, 1fr);
}

.btfp-dashboard-v3 .ipo-grid {
    grid-template-columns: repeat(3, 1fr);
}

.btfp-dashboard-v3 .market-mini div,
.btfp-dashboard-v3 .ipo-grid div {
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 12px;
    padding: 11px;
    color: #a8b7cc;
    font-size: .78rem;
}

.btfp-dashboard-v3 .ipo-grid div {
    text-align: center;
}

.btfp-dashboard-v3 .ipo-grid strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
}

.btfp-dashboard-v3 .terminal-list div,
.btfp-dashboard-v3 .notification-row {
    border-bottom: 1px solid rgba(148, 163, 184, .08);
    padding: 9px 0;
}

.btfp-dashboard-v3 .terminal-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btfp-dashboard-v3 .notification-row {
    display: flex;
    gap: 10px;
}

.btfp-dashboard-v3 .notification-row strong {
    display: block;
    color: #ffffff;
    font-size: .83rem;
}

.btfp-dashboard-v3 .notif-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #3b82f6;
}

.btfp-dashboard-v3 .notif-dot.danger { background: #ef4444; }
.btfp-dashboard-v3 .notif-dot.warning { background: #f59e0b; }
.btfp-dashboard-v3 .notif-dot.success { background: #22c55e; }

.btfp-dashboard-v3 .empty-mini {
    min-height: 120px;
    border: 1px dashed rgba(148, 163, 184, .15);
    border-radius: 12px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
}

@media (max-width: 1300px) {
    .btfp-dashboard-v3 .top-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .btfp-dashboard-v3 .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .btfp-dashboard-v3 {
        padding: 12px;
    }

    .btfp-dashboard-v3 .top-metrics {
        grid-template-columns: 1fr;
    }
}

.command-center-page {
    padding: 18px;
    color: #e7f0ff;
}

.command-header {
    margin-bottom: 16px;
}

.command-header h1 {
    margin: 0;
    font-size: 26px;
}

.command-header p {
    margin: 5px 0 0;
    color: #91a4bd;
    font-size: 13px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.command-card {
    background: rgba(7, 17, 31, .94);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 14px;
    min-height: 150px;
}

.command-card span {
    display: block;
    color: #91a4bd;
    font-size: 12px;
    margin-bottom: 8px;
}

.command-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.command-card p {
    margin: 0;
    color: #91a4bd;
    font-size: 12px;
    line-height: 1.45;
}

.command-card.danger {
    border-color: rgba(255,77,94,.35);
}

.command-card.success {
    border-color: rgba(49,217,112,.35);
}

.command-card.warning {
    border-color: rgba(255,193,7,.35);
}

.command-card.info {
    border-color: rgba(13,110,253,.35);
}

.portfolio-center-page {

    padding: 18px;

    color: #e7f0ff;

}

.portfolio-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 14px;

}

.portfolio-header h1 {

    margin: 0;

    font-size: 26px;

}

.portfolio-header p {

    margin: 4px 0 0;

    color: #91a4bd;

    font-size: 13px;

}

.portfolio-primary {

    background: #0d6efd;

    border: 0;

    border-radius: 10px;

    color: white;

    padding: 9px 14px;

    font-weight: 800;

}

.portfolio-grid {

    display: grid;

    grid-template-columns: 300px minmax(0, 1fr);

    gap: 12px;

}

.portfolio-sidebar,

.portfolio-main {

    background: rgba(7, 17, 31, .94);

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 14px;

    padding: 12px;

}

.portfolio-sidebar-title,

.portfolio-section-title {

    color: #91a4bd;

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 10px;

}

.portfolio-list-item {

    width: 100%;

    display: grid;

    grid-template-columns: 38px minmax(0, 1fr);

    gap: 10px;

    align-items: center;

    text-align: left;

    background: transparent;

    border: 1px solid transparent;

    color: #e7f0ff;

    border-radius: 12px;

    padding: 9px;

    margin-bottom: 8px;

}

.portfolio-list-item.selected {

    background: rgba(13,110,253,.20);

    border-color: rgba(13,110,253,.50);

}

.portfolio-icon {

    width: 34px;

    height: 34px;

    border-radius: 10px;

    display: grid;

    place-items: center;

}

.portfolio-list-item strong,

.portfolio-list-item small {

    display: block;

}

.portfolio-list-item small {

    color: #91a4bd;

    font-size: 11px;

}

.portfolio-title-row {

    display: flex;

    justify-content: space-between;

    align-items: start;

    margin-bottom: 12px;

}

.portfolio-title-row h2 {

    margin: 0;

    font-size: 24px;

}

.portfolio-title-row p {

    margin: 4px 0 0;

    color: #91a4bd;

}

.portfolio-status-pill {

    background: rgba(49,217,112,.15);

    color: #31d970;

    border: 1px solid rgba(49,217,112,.30);

    border-radius: 999px;

    padding: 5px 10px;

    font-size: 11px;

    font-weight: 800;

}

.portfolio-kpi-grid {

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 14px;

}

.portfolio-kpi-grid > div {

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 12px;

    padding: 10px;

}

.portfolio-kpi-grid span {

    color: #91a4bd;

    font-size: 11px;

}

.portfolio-kpi-grid strong {

    display: block;

    margin-top: 6px;

    font-size: 16px;

}

.portfolio-table {

    width: 100%;

    border-collapse: collapse;

    font-size: 12px;

}

.portfolio-table th {

    color: #91a4bd;

    font-weight: 800;

    text-align: left;

    padding: 8px;

    border-bottom: 1px solid rgba(255,255,255,.10);

}

.portfolio-table td {

    padding: 9px 8px;

    border-bottom: 1px solid rgba(255,255,255,.06);

}

.portfolio-table td small {

    display: block;

    color: #91a4bd;

    font-size: 10px;

}

.portfolio-empty {

    height: 420px;

    display: grid;

    place-items: center;

    color: #91a4bd;

}

.portfolio-empty.small {

    height: 180px;

}

.positive {

    color: #31d970 !important;

}

.negative {

    color: #ff4d5e !important;

}


.portfolio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.portfolio-modal {
    width: min(720px, calc(100vw - 32px));
    background: #07111f;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px;
    color: #e7f0ff;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.portfolio-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.portfolio-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.portfolio-modal-header p {
    margin: 4px 0 0;
    color: #91a4bd;
    font-size: 13px;
}

.portfolio-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #e7f0ff;
    font-size: 20px;
}

.portfolio-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.portfolio-form-grid label {
    display: grid;
    gap: 6px;
}

.portfolio-form-grid span,
.portfolio-picker-block > span {
    color: #91a4bd;
    font-size: 11px;
    font-weight: 800;
}

.portfolio-form-grid input {
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #e7f0ff;
    padding: 0 10px;
}

.portfolio-picker-block {
    margin-top: 12px;
}

.portfolio-icon-picker,
.portfolio-color-picker {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.portfolio-icon-picker button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #e7f0ff;
    font-size: 18px;
}

.portfolio-color-picker button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid transparent;
}

.portfolio-icon-picker button.active,
.portfolio-color-picker button.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(13,110,253,.65);
}

.portfolio-preview {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px;
}

.portfolio-preview strong,
.portfolio-preview small {
    display: block;
}

.portfolio-preview small {
    color: #91a4bd;
    font-size: 11px;
}

.portfolio-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.portfolio-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #e7f0ff;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 800;
}

.portfolio-form-error {
    background: rgba(255,77,94,.12);
    border: 1px solid rgba(255,77,94,.28);
    color: #ffb4bd;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.portfolio-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-export-wrap {
    position: relative;
}

.portfolio-export-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 180px;
    background: #07111f;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 6px;
    z-index: 30;
    box-shadow: 0 18px 45px rgba(0,0,0,.40);
}

.portfolio-export-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #e7f0ff;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.portfolio-export-menu button:hover {
    background: rgba(255,255,255,.07);
}


.portfolio-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-add-position {
    background: rgba(13,110,253,.16);
    border: 1px solid rgba(13,110,253,.42);
    color: #e7f0ff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.portfolio-list-shell {
    position: relative;
    margin-bottom: 8px;
}

.portfolio-list-shell .portfolio-list-item {
    margin-bottom: 0;
    padding-right: 38px;
}

.portfolio-more-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: #e7f0ff;
    border-radius: 8px;
    line-height: 1;
    font-size: 16px;
}

.portfolio-card-menu {
    position: absolute;
    top: 40px;
    right: 8px;
    width: 130px;
    background: #07111f;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 6px;
    z-index: 25;
    box-shadow: 0 16px 40px rgba(0,0,0,.38);
}

.portfolio-card-menu button {
    width: 100%;
    background: transparent;
    border: 0;
    color: #e7f0ff;
    text-align: left;
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.portfolio-card-menu button:hover {
    background: rgba(255,255,255,.07);
}

.portfolio-card-menu button.danger {
    color: #ffb4bd;
}


/* RECOVERY: Market Center equalized left/chart layout */
.mc-grid-v3 {
    align-items: stretch !important;
}

.mc-left,
.mc-left > .mc-watchlist-pro,
.mc-watchlist-pro {
    height: 820px !important;
    min-height: 820px !important;
    max-height: 820px !important;
}

.mc-watchlist-pro {
    display: flex !important;
    flex-direction: column !important;
}

.mc-watchlist-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
}

.mc-chart-panel {
    height: 820px !important;
    min-height: 820px !important;
    max-height: 820px !important;
    display: flex !important;
    flex-direction: column !important;
}

.real-chart {
    flex: 1 1 auto !important;
    height: 610px !important;
    min-height: 610px !important;
}

.real-chart canvas {
    height: 610px !important;
    min-height: 610px !important;
}

/* Market Center compact final top strip */
.mc-selected-strip-v3 {
    grid-template-columns: 270px 170px 170px 170px 190px 170px 130px 170px !important;
    gap: 10px !important;
    align-items: stretch;
}

.mc-selected-card-v3 {
    min-height: 126px !important;
    padding: 13px !important;
}

.mc-grid-v3 {
    grid-template-columns: 330px minmax(0, 1fr) 390px !important;
    gap: 18px !important;
}

.mc-grid-v3 .mc-chart-panel,
.mc-analysis-center {
    min-height: 640px !important;
}

.mc-grid-v3 .real-chart,
.mc-grid-v3 .real-chart canvas {
    min-height: 435px !important;
}

/* RECOVERY: Market Center top strip 9-card layout */
.mc-selected-strip-v3 {
    display: grid !important;
    grid-template-columns: 300px 150px 150px 150px 180px 180px 120px 160px 160px !important;
    gap: 10px !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
}

.mc-selected-card-v3 {
    min-height: 136px !important;
    padding: 12px !important;
}

.mc-selected-card-v3.stock {
    min-height: 136px !important;
}

.mc-stock-card-head h2 {
    font-size: 19px !important;
}

.mc-stock-card-head p {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

.mc-stock-price-main strong {
    font-size: 23px !important;
}

.mc-stock-price-main span {
    font-size: 12px !important;
}

.mc-stock-mini-grid {
    gap: 6px !important;
}

.mc-stock-action-inline {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) auto !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.mc-stock-action-inline button {
    min-height: 30px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
}

.mc-selected-card-v3 > span {
    font-size: 10px !important;
}

.mc-selected-card-v3 > strong {
    font-size: 15px !important;
}

.mc-selected-card-v3 p {
    font-size: 11px !important;
    margin: 6px 0 !important;
}

.mc-selected-card-v3.score strong {
    width: 72px !important;
    height: 72px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    border: 8px solid rgba(34,197,94,.78) !important;
    font-size: 24px !important;
    margin: 6px auto 0 !important;
}

/* RECOVERY: selected top strip card surfaces */
.mc-selected-strip-v3 {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.mc-selected-card-v3 {
    background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(13,31,55,.88)) !important;
    border: 1px solid rgba(59,130,246,.24) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.20) !important;
    color: #e5eefc !important;
}

.mc-selected-card-v3.stock {
    background: linear-gradient(145deg, rgba(12,31,62,.96), rgba(12,22,42,.92)) !important;
}

.mc-selected-card-v3 span,
.mc-selected-card-v3 small {
    color: #94a3b8 !important;
}

.mc-selected-card-v3 strong,
.mc-selected-card-v3 b {
    color: #e5eefc;
}

.mc-selected-card-v3 .positive,
.positive {
    color: #22c55e !important;
}

.mc-selected-card-v3 .negative,
.negative {
    color: #ef4444 !important;
}

.mc-progress {
    height: 7px !important;
    border-radius: 999px !important;
    background: rgba(148,163,184,.16) !important;
    overflow: hidden !important;
    margin: 10px 0 6px !important;
}

.mc-progress i {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #22c55e, #67e8f9) !important;
}

.mc-progress.purple i {
    background: linear-gradient(90deg, #c084fc, #f0abfc) !important;
}

.mc-progress.red i {
    background: linear-gradient(90deg, #ef4444, #fb7185) !important;
}

.mc-star-btn {
    border: 1px solid rgba(59,130,246,.35) !important;
    background: rgba(37,99,235,.14) !important;
    color: #93c5fd !important;
    border-radius: 10px !important;
}

/* EXPERIMENT: Market Center wide chart layout without right panel */
.mc-selected-strip-v3 {
    grid-template-columns: 310px repeat(6, minmax(145px, 1fr)) !important;
}

.mc-grid-v3 {
    grid-template-columns: 330px minmax(0, 1fr) !important;
}

.mc-detail-column {
    display: none !important;
}

.mc-center {
    min-width: 0 !important;
}

.mc-add-portfolio-btn {
    width: 100%;
    margin-top: 10px;
    border: 1px solid rgba(34,197,94,.28);
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
}

.mc-chart-panel {
    min-height: 760px !important;
}

.real-chart,
.real-chart canvas {
    min-height: 560px !important;
}

/* FINAL LAYOUT ONLY: Market Center reference placement */
.mc-selected-strip-v3 {
    display: grid !important;
    grid-template-columns: 270px repeat(6, minmax(135px, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin: 14px 0 18px !important;
}

.mc-selected-card-v3 {
    min-height: 138px !important;
    max-height: 138px !important;
    overflow: hidden !important;
}

.mc-grid-v3 {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) 390px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.mc-left,
.mc-center,
.mc-detail-column {
    min-width: 0 !important;
}

.mc-detail-column {
    display: block !important;
}

.mc-watchlist-pro {
    height: 690px !important;
    min-height: 690px !important;
    max-height: 690px !important;
    display: flex !important;
    flex-direction: column !important;
}

.mc-watchlist-scroll {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

.mc-chart-panel {
    height: 690px !important;
    min-height: 690px !important;
    max-height: 690px !important;
    display: flex !important;
    flex-direction: column !important;
}

.real-chart {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 430px !important;
}

.real-chart canvas {
    height: 100% !important;
    min-height: 430px !important;
}

.mc-analysis-center {
    height: 690px !important;
    min-height: 690px !important;
    max-height: 690px !important;
    overflow-y: auto !important;
}

/* FINAL LAYOUT PASS: reference-like Market Center placement */

/* Top 9-card strip */
.mc-selected-strip-v3 {
    display: grid !important;
    grid-template-columns: 245px 145px 145px 145px 170px 165px 115px 145px 145px !important;
    gap: 10px !important;
    align-items: stretch !important;
    margin: 14px 0 16px !important;
    overflow: hidden !important;
}

.mc-selected-card-v3 {
    min-height: 132px !important;
    max-height: 132px !important;
    padding: 12px !important;
    overflow: hidden !important;
}

/* Main 3-column layout: wider left, center chart, narrower right */
.mc-grid-v3 {
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr) 300px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.mc-left,
.mc-center,
.mc-detail-column {
    min-width: 0 !important;
}

.mc-detail-column {
    display: block !important;
}

/* Left watchlist */
.mc-watchlist-pro {
    height: 700px !important;
    min-height: 700px !important;
    max-height: 700px !important;
    display: flex !important;
    flex-direction: column !important;
}

.mc-watchlist-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* Chart panel with integrated RSI */
.mc-chart-panel {
    height: 700px !important;
    min-height: 700px !important;
    max-height: 700px !important;
    display: flex !important;
    flex-direction: column !important;
}

.real-chart {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 520px !important;
}

.real-chart canvas {
    height: 100% !important;
    min-height: 520px !important;
}

/* Right analysis card */
.mc-analysis-center {
    height: 700px !important;
    min-height: 700px !important;
    max-height: 700px !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border: 1px solid rgba(59,130,246,.24) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(15,23,42,.97), rgba(13,31,55,.90)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 34px rgba(0,0,0,.22) !important;
}

.mc-analysis-title h3 {
    margin: 0 0 14px !important;
    font-size: 17px !important;
    color: #eaf2ff !important;
}

.mc-analysis-tabs {
    display: flex !important;
    gap: 7px !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(148,163,184,.15) !important;
}

.mc-analysis-tabs button {
    padding: 7px 9px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.mc-ai-head {
    display: grid !important;
    grid-template-columns: 1fr 72px !important;
    gap: 12px !important;
    align-items: center !important;
    margin-bottom: 14px !important;
}

.mc-score-ring {
    width: 72px !important;
    height: 72px !important;
    border-width: 8px !important;
}

.mc-analysis-table th,
.mc-analysis-table td {
    padding: 8px !important;
    font-size: 11px !important;
}

.mc-support-box {
    gap: 10px !important;
    padding: 12px !important;
    margin-bottom: 14px !important;
}

.mc-quick-actions {
    padding: 12px !important;
}

.mc-quick-actions div {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

/* TOP STRIP POLISH: reference-like balanced cards */
.mc-selected-strip-v3 {
    grid-template-columns: 300px repeat(8, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.mc-selected-card-v3 {
    height: 174px !important;
    min-height: 174px !important;
    max-height: 174px !important;
    padding: 13px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.mc-selected-card-v3.stock {
    height: 174px !important;
    min-height: 174px !important;
    max-height: 174px !important;
}

.mc-stock-card-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

.mc-stock-card-head h2 {
    font-size: 21px !important;
    line-height: 1 !important;
    margin: 0 0 5px !important;
    color: #f8fafc !important;
}

.mc-stock-card-head p {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    max-width: 220px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mc-star-btn {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
}

.mc-stock-price-main {
    margin: 4px 0 8px !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
}

.mc-stock-price-main strong {
    font-size: 29px !important;
    line-height: 1 !important;
    letter-spacing: -.4px !important;
}

.mc-stock-price-main span {
    font-size: 12px !important;
    font-weight: 900 !important;
}

.mc-stock-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
}

.mc-stock-mini-grid div {
    padding-top: 5px !important;
    border-top: 1px solid rgba(148,163,184,.10) !important;
}

.mc-stock-mini-grid span {
    display: block !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin-bottom: 3px !important;
}

.mc-stock-mini-grid b {
    display: block !important;
    font-size: 12.5px !important;
    color: #f8fafc !important;
}

.mc-stock-footer-row {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.mc-stock-footer-row small {
    color: #64748b !important;
    font-size: 10px !important;
}

.mc-live-dot {
    color: #22c55e !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.mc-stock-action-inline {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.mc-stock-action-inline button {
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    background: rgba(15,23,42,.68) !important;
    color: #dbeafe !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.mc-selected-card-v3:not(.stock) > span {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .2px !important;
    margin-bottom: 8px !important;
}

.mc-selected-card-v3:not(.stock) > strong {
    font-size: 18px !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
}

.mc-selected-card-v3:not(.stock) > small {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.mc-selected-card-v3 p {
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin: 5px 0 !important;
}

.mc-selected-card-v3.technical p,
.mc-selected-card-v3.support p,
.mc-selected-card-v3.trade-plan p,
.mc-selected-card-v3.ipo-mini p {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.mc-selected-card-v3.score {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.mc-selected-card-v3.score > span {
    align-self: stretch !important;
    text-align: left !important;
}

.mc-selected-card-v3.score strong {
    width: 82px !important;
    height: 82px !important;
    border-width: 9px !important;
    font-size: 27px !important;
}

/* TOP CARD FIXES: stock actions, IPO link, support/resistance grouping */
.mc-selected-card-v3.stock {
    justify-content: flex-start !important;
}

.mc-stock-action-inline {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.mc-stock-action-inline button {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    background: rgba(15,23,42,.72) !important;
    color: #dbeafe !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.mc-stock-footer-row {
    margin-top: 7px !important;
}

.mc-stock-footer-row small {
    max-width: 180px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.mc-selected-card-v3.ipo-mini a {
    display: block !important;
    margin-top: auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.mc-selected-card-v3.support {
    gap: 6px !important;
}

.mc-level-group {
    padding-top: 2px !important;
}

.mc-level-group > b {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    margin-bottom: 3px !important;
}

.mc-level-group p {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 3px 0 !important;
}

.mc-level-group p small {
    color: #cbd5e1 !important;
    font-size: 10px !important;
}

.mc-level-group p strong {
    font-size: 11px !important;
}

/* FIX: stock top card internal fit */
.mc-selected-card-v3 {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
}

.mc-selected-card-v3.stock {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
    padding: 12px 13px 10px !important;
}

.mc-star-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.mc-stock-price-main {
    margin: 8px 0 7px !important;
}

.mc-stock-price-main strong {
    font-size: 27px !important;
}

.mc-stock-mini-grid {
    margin-top: 4px !important;
}

.mc-stock-action-inline {
    margin-top: 7px !important;
}

.mc-stock-action-inline button {
    height: 24px !important;
    min-height: 24px !important;
    font-size: 9.5px !important;
}

.mc-stock-footer-row {
    margin-top: 5px !important;
}

/* FIX: stock card vertical alignment */
.mc-selected-card-v3.stock {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
}

.mc-stock-card-head {
    margin-bottom: 4px !important;
}

.mc-stock-price-main {
    margin: 4px 0 4px !important;
}

.mc-stock-mini-grid {
    margin-top: 0 !important;
    gap: 6px !important;
}

.mc-stock-mini-grid div {
    padding-top: 4px !important;
}

.mc-stock-action-inline {
    margin-top: 5px !important;
}

.mc-stock-footer-row {
    margin-top: 3px !important;
}

/* WATCHLIST POLISH: search, columns and dynamic sectors */
.mc-search-wrap {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 13px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    background: rgba(15,23,42,.74) !important;
}

.mc-search-wrap span {
    width: 18px !important;
    flex: 0 0 18px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 15px !important;
}

.mc-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #e5eefc !important;
    font-size: 13px !important;
    height: 100% !important;
}

.mc-filter-row.compact-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 10px !important;
    max-height: 88px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
}

.mc-watch-columns.pro,
.mc-stock-row {
    grid-template-columns: minmax(0, 1fr) 92px 78px !important;
}

.mc-watch-columns.pro span {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 900 !important;
}

.mc-watch-columns.pro span:nth-child(2),
.mc-stock-price-cell {
    text-align: right !important;
    justify-self: end !important;
}

.mc-watch-columns.pro span:nth-child(3),
.stock-change-pill {
    text-align: center !important;
    justify-self: center !important;
}

.mc-stock-price-cell strong,
.mc-stock-price-cell small {
    display: block !important;
    text-align: right !important;
}

.stock-change-pill {
    min-width: 70px !important;
    justify-content: center !important;
}

/* WATCHLIST FINAL HEADER ALIGNMENT */
.mc-search-wrap span {
    font-size: 0 !important;
}

.mc-search-wrap span::before {
    content: "⌕";
    font-size: 16px !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
}

.mc-filter-row.compact-filter {
    max-height: none !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
}

.mc-watch-columns.pro,
.mc-stock-row {
    grid-template-columns: minmax(0, 1fr) 96px 82px !important;
}

.mc-watch-columns.pro span:nth-child(1) {
    padding-left: 43px !important;
    text-align: left !important;
}

.mc-watch-columns.pro span:nth-child(2) {
    text-align: right !important;
    padding-right: 10px !important;
}

.mc-watch-columns.pro span:nth-child(3) {
    text-align: center !important;
    padding-left: 0 !important;
    transform: translateX(-6px);
}

.mc-stock-price-cell {
    justify-self: end !important;
    text-align: right !important;
    padding-right: 4px !important;
}

.stock-change-pill {
    justify-self: center !important;
    transform: translateX(-5px);
}

/* ===== SEARCH ICON FINAL ===== */

.mc-search-wrap{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
}

.mc-search-wrap > span{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    font-size:0 !important;
    flex-shrink:0 !important;
}

.mc-search-wrap > span::before{
    content:"🔍";
    font-size:18px !important;
    line-height:1 !important;
    opacity:.75;
}

.mc-search{
    flex:1 !important;
}


/* SEARCH ICON PROFESSIONAL SVG */
.mc-search-wrap{
    position:relative !important;
    display:block !important;
    padding:0 !important;
}

.mc-search-wrap > span{
    position:absolute !important;
    left:14px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:18px !important;
    height:18px !important;
    font-size:0 !important;
    pointer-events:none !important;
}

.mc-search-wrap > span::before{
    content:"" !important;
    display:block !important;
    width:18px !important;
    height:18px !important;
    background-color:#94a3b8 !important;
    opacity:.85 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.6-5.65a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.6-5.65a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.mc-search{
    width:100% !important;
    height:42px !important;
    padding:0 14px 0 42px !important;
}

/* SEARCH TEXT ALIGN FIX */
.mc-search-wrap {
    height: 42px !important;
}

.mc-search-wrap > span {
    left: 16px !important;
    width: 17px !important;
    height: 17px !important;
}

.mc-search {
    box-sizing: border-box !important;
    display: block !important;
    padding-left: 50px !important;
    padding-right: 14px !important;
    line-height: 42px !important;
    text-indent: 0 !important;
}

/* SEARCH FINAL FIX: icon inside input, no overlap */
.mc-search-wrap {
    position: relative !important;
    display: block !important;
    height: 42px !important;
    padding: 0 !important;
}

.mc-search-wrap > span {
    display: none !important;
}

.mc-search-wrap input.mc-search,
input.mc-search {
    width: 100% !important;
    height: 42px !important;
    box-sizing: border-box !important;

    padding: 0 14px 0 44px !important;
    margin: 0 !important;

    border: 0 !important;
    outline: none !important;
    background-color: transparent !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.6-5.65a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 17px 17px !important;

    color: #e5eefc !important;
    font-size: 13px !important;
    line-height: 42px !important;
}

.mc-search::placeholder {
    color: #94a3b8 !important;
    opacity: .9 !important;
}

/* SEARCH BAR PROFESSIONAL ALIGNMENT */
.mc-search-wrap{
    display:flex !important;
    align-items:center !important;
    position:relative !important;
}

.mc-search{
    height:42px !important;
    padding-left:46px !important;
    padding-right:14px !important;

    background-position:14px center !important;
    background-size:18px 18px !important;

    line-height:42px !important;
    font-size:14px !important;
    vertical-align:middle !important;
}

.mc-search::placeholder{
    font-size:14px !important;
    line-height:42px !important;
    color:#9aa8bc !important;
}

/* Search bar final left alignment */
.mc-search{
    padding-left:34px !important;
    background-position:10px center !important;
    background-size:16px 16px !important;
}

/* SEARCH BAR ULTRA LEFT ALIGN */
.mc-search{
    padding-left:26px !important;
    background-position:6px center !important;
    background-size:16px 16px !important;
}

.mc-search::placeholder{
    padding:0 !important;
    margin:0 !important;
    line-height:42px !important;
}

/* SEARCH BAR HARD RESET */
.mc-search-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 42px !important;
    padding: 0 10px !important;
}

.mc-search-wrap > span,
.mc-search-wrap > span::before {
    display: none !important;
}

.mc-search-icon {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    background: #94a3b8 !important;
    opacity: .9 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.6-5.65a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35m1.6-5.65a7.25 7.25 0 1 1-14.5 0 7.25 7.25 0 0 1 14.5 0Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.mc-search-wrap input.mc-search {
    flex: 1 1 auto !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    line-height: 40px !important;
}

/* SEARCH ICON RESTORE + BALANCE */
.mc-search-wrap {
    padding: 0 12px !important;
    gap: 9px !important;
}

.mc-search-wrap > span.mc-search-icon {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex: 0 0 17px !important;
    background: #94a3b8 !important;
    opacity: .95 !important;
}

.mc-search-wrap > span.mc-search-icon::before {
    display: none !important;
    content: none !important;
}

.mc-search-wrap input.mc-search {
    padding: 0 !important;
    line-height: 40px !important;
}


/* ================================
   SEARCH BAR FINAL (FLEX VERSION)
   ================================ */

.mc-search-wrap{
    display:flex !important;
    align-items:center !important;

    gap:10px !important;

    height:42px !important;

    padding:0 14px !important;

    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:12px !important;

    background:#162238 !important;
}

.mc-search-icon{
    width:18px !important;
    height:18px !important;

    flex:0 0 18px !important;

    color:#94a3b8 !important;
}

.mc-search{
    flex:1 !important;

    border:none !important;
    outline:none !important;

    background:none !important;
    background-image:none !important;

    padding:0 !important;
    margin:0 !important;

    color:#e2e8f0 !important;

    font-size:14px !important;
    line-height:42px !important;
}

.mc-search::placeholder{
    color:#94a3b8 !important;
    opacity:1 !important;
}


/* =======================================
   MARKET HEADER STATS
======================================= */

.market-chart-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.market-header-stats{
    display:flex;
    gap:34px;
    align-items:flex-start;
}

.market-header-stat{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.market-header-stat span{
    font-size:11px;
    color:#7f91aa;
    font-weight:700;
}

.market-header-stat strong{
    font-size:18px;
    font-weight:800;
    color:#eef5ff;
}

.market-ohlc{
    display:flex;
    align-items:flex-start;
    gap:18px;

    font-size:14px;
    font-weight:700;
}

.market-ohlc span{
    color:#7f91aa;
}

.market-ohlc b{
    color:#eef5ff;
}

/* =======================================
   GRAPH SPACING
======================================= */

.mc-chart-panel{
    padding-right:18px !important;
}

.real-chart{
    margin-right:16px !important;
}

.real-chart canvas{
    width:calc(100% - 12px) !important;
}

/* =====================================
   MARKET HEADER REFINEMENT
===================================== */

.mc-grid-v3{
    grid-template-columns:320px minmax(0,1fr) 390px !important;
}

.mc-center{
    padding-right:28px !important;
}

.real-chart{
    width:calc(100% - 110px) !important;
}

.real-chart canvas{
    width:calc(100% - 110px) !important;
}

.market-summary-card{
    display:grid;
    grid-template-columns:repeat(5,max-content);
    gap:18px;
    align-items:start;
}

.market-summary-card div{
    display:flex;
    flex-direction:column;
}

.market-summary-card span{
    font-size:11px;
    color:#7e91ab;
    font-weight:700;
}

.market-summary-card strong{
    font-size:15px;
    color:#eef4ff;
    font-weight:800;
}

.market-header-stat strong{
    white-space:nowrap;
}


/* CHART HEADER FINAL: remove old metrics, readable daily summary */
.chart-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.chart-header .metrics {
    display: none !important;
}

.mc-ohlc-strip {
    display: none !important;
}

.mc-daily-summary-card {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(72px, max-content)) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(148,163,184,.14) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.46) !important;
    white-space: nowrap !important;
}

.mc-daily-summary-card div {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mc-daily-summary-card span {
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.mc-daily-summary-card strong {
    color: #e5eefc !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* CHART PRICE STATS UNDER PRICE */
.mc-chart-price-stats {
    display: flex !important;
    gap: 18px !important;
    margin-top: 10px !important;
    align-items: flex-start !important;
}

.mc-chart-price-stats div {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.mc-chart-price-stats span {
    font-size: 10px !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
}

.mc-chart-price-stats strong {
    font-size: 12px !important;
    color: #e5eefc !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* CHART PRICE INLINE FIX */
.mc-chart-price-stats {
    display: none !important;
}

.mc-price-line {
    display: flex !important;
    align-items: baseline !important;
    gap: 18px !important;
    margin-top: 8px !important;
    flex-wrap: nowrap !important;
}

.mc-price-line .price {
    margin: 0 !important;
    white-space: nowrap !important;
}

.mc-chart-price-stats-inline {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    white-space: nowrap !important;
}

.mc-chart-price-stats-inline span {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
}

.mc-chart-price-stats-inline b {
    font-size: 12px !important;
    color: inherit !important;
    font-weight: 900 !important;
}

.mc-chart-price-stats-inline .positive,
.mc-chart-price-stats-inline span.positive {
    color: #22c55e !important;
}

.mc-chart-price-stats-inline .negative,
.mc-chart-price-stats-inline span.negative {
    color: #ef4444 !important;
}

/* CHART PRICE STATS STACKED AND CENTERED */
.chart-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
    column-gap: 28px !important;
}

.mc-price-line {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: end !important;
    column-gap: 26px !important;
}

.mc-chart-price-stats-inline {
    justify-self: center !important;
    display: grid !important;
    grid-template-columns: repeat(3, max-content) !important;
    gap: 22px !important;
    align-items: end !important;
}

.mc-chart-price-stats-inline span {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.mc-chart-price-stats-inline b {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}

/* PRICE INFO FINAL PLACEMENT */
.chart-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.mc-price-line {
    display: block !important;
}

.mc-chart-price-stats-inline {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    margin-top: 10px !important;
    transform: none !important;
}

.mc-chart-price-stats-inline span {
    text-align: left !important;
    align-items: flex-start !important;
}

.mc-chart-price-stats-inline b {
    margin-top: 2px !important;
}

/* RESPONSIVE CHART WIDTH FIX */
.mc-grid-v3 {
    grid-template-columns: 320px minmax(620px, 1fr) 360px !important;
}

.mc-center {
    padding-right: 0 !important;
    min-width: 0 !important;
}

.real-chart,
.real-chart canvas {
    width: 100% !important;
    max-width: 100% !important;
}

/* Large screens */
@media (min-width: 1600px) {
    .mc-grid-v3 {
        grid-template-columns: 340px minmax(760px, 1fr) 390px !important;
    }
}

/* Medium screens */
@media (max-width: 1450px) {
    .mc-grid-v3 {
        grid-template-columns: 300px minmax(560px, 1fr) 320px !important;
    }

    .mc-analysis-center {
        font-size: 12px !important;
    }
}

/* CHART HEADER RESPONSIVE STABILIZE */
.chart-header {
    display: grid !important;
    grid-template-columns: minmax(260px, 420px) 1fr auto !important;
    align-items: start !important;
    column-gap: 24px !important;
}

.chart-header > div:first-child {
    grid-column: 1 / 3 !important;
    max-width: 620px !important;
}

.mc-daily-summary-card {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: start !important;
    min-width: 520px !important;
    max-width: 520px !important;
}

.mc-price-line {
    display: block !important;
}

.mc-chart-price-stats-inline {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    gap: 24px !important;
}

@media (max-width: 1450px) {
    .chart-header {
        grid-template-columns: minmax(240px, 360px) 1fr auto !important;
        column-gap: 18px !important;
    }

    .chart-header > div:first-child {
        max-width: 520px !important;
    }

    .mc-daily-summary-card {
        min-width: 430px !important;
        max-width: 430px !important;
        gap: 12px !important;
    }
}

/* CHART HEADER FINAL LOCKED POSITION */
.chart-header {
    position: relative !important;
    display: block !important;
    min-height: 165px !important;
    padding-right: 560px !important;
}

.chart-header > div:first-child {
    max-width: 520px !important;
}

.mc-daily-summary-card {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;

    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;

    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 10px !important;
}

.mc-price-line {
    display: block !important;
}

.mc-chart-price-stats-inline {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    margin-top: 12px !important;
}

.mc-chart-price-stats-inline span {
    text-align: left !important;
}

/* Smaller screens */
@media (max-width: 1450px) {
    .chart-header {
        padding-right: 440px !important;
        min-height: 160px !important;
    }

    .mc-daily-summary-card {
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
        right: 14px !important;
    }

    .mc-daily-summary-card strong {
        font-size: 11px !important;
    }

    .mc-daily-summary-card span {
        font-size: 9px !important;
    }
}

/* CHART FINAL FIT PASS */
.mc-chart-panel {
    height: 820px !important;
    min-height: 820px !important;
    max-height: 820px !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
}

.real-chart {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.real-chart canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.chart-header {
    margin-bottom: 14px !important;
}

.ranges {
    margin-bottom: 12px !important;
}

.indicator-toggle-row {
    margin-bottom: 12px !important;
}

/* CHART CANVAS EDGE FIT */
.real-chart {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.real-chart canvas {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* CHART EDGE FINAL TIGHTEN */
.mc-chart-panel {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.real-chart {
    margin-left: -4px !important;
    margin-right: -4px !important;
}

.real-chart canvas {
    width: calc(100% + 8px) !important;
}

/* CHART CUSTOM TOOLTIP + RSI LEGEND COLOR */
.real-chart {
    position: relative !important;
}

.btfp-chart-tooltip {
    position: absolute;
    z-index: 30;
    min-width: 190px;
    pointer-events: none;
    transform: translateY(-50%);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(2,6,23,.92);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
    color: #e5eefc;
    opacity: 0;
    transition: opacity .08s ease;
}

.btfp-tooltip-title {
    font-size: 12px;
    font-weight: 900;
    color: #f8fafc;
    margin-bottom: 6px;
}

.btfp-tooltip-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 7px;
    align-items: center;
    padding: 4px 5px;
    border-radius: 7px;
    font-size: 11px;
}

.btfp-tooltip-row.active {
    background: rgba(59,130,246,.24);
    outline: 1px solid rgba(96,165,250,.35);
}

.btfp-tooltip-color {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.btfp-tooltip-label {
    color: #cbd5e1;
    font-weight: 700;
}

.btfp-tooltip-row strong {
    color: #f8fafc;
    font-weight: 900;
}

.indicator-toggle.rsi span {
    background: #c084fc !important;
    border-color: #c084fc !important;
}

.indicator-toggle.rsi.active {
    border-color: rgba(192,132,252,.85) !important;
}

/* RSI toggle active/passive color fix */
.indicator-toggle.rsi span {
    background: transparent !important;
    border: 1px solid #64748b !important;
}

.indicator-toggle.rsi.active span {
    background: #c084fc !important;
    border-color: #c084fc !important;
}

.indicator-toggle.rsi {
    border-color: rgba(148,163,184,.22) !important;
}

.indicator-toggle.rsi.active {
    border-color: rgba(192,132,252,.85) !important;
    color: #e9d5ff !important;
}

/* TOP 3 METRIC CARDS - REFERENCE STYLE FINAL */
.mc-selected-card-v3.mc-ref-metric {
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 18px 18px 16px !important;
}

.mc-ref-head {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin-bottom: 18px !important;
}

.mc-ref-icon {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 23px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.mc-ref-metric.trend .mc-ref-icon { color: #22c55e !important; }
.mc-ref-metric.momentum .mc-ref-icon { color: #c084fc !important; }
.mc-ref-metric.risk .mc-ref-icon { color: #ef4444 !important; }

.mc-ref-head b {
    color: #e5eefc !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .2px !important;
}

.mc-ref-metric > strong {
    font-size: 20px !important;
    line-height: 1.1 !important;
    margin: 0 0 18px !important;
    font-weight: 950 !important;
}

.mc-ref-info {
    min-height: 44px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(148,163,184,.07) !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.mc-ref-info.row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mc-ref-info b,
.mc-ref-info small {
    color: #22c55e !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.mc-ref-metric .mc-progress {
    margin: 7px 0 8px !important;
    height: 7px !important;
}

.mc-ref-foot {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
}

.mc-ref-foot b {
    font-size: 12px !important;
    font-weight: 950 !important;
}

.purple-text {
    color: #c084fc !important;
}

/* REVERT TOP 3 METRIC CARDS TO CLEAN SIMPLE STYLE */
.mc-selected-card-v3.metric {
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 13px !important;
    gap: 0 !important;
}

.mc-selected-card-v3.metric > span {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.mc-selected-card-v3.metric > strong {
    font-size: 17px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
}

.mc-selected-card-v3.metric > small {
    font-size: 12px !important;
    color: #cbd5e1 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

.mc-selected-card-v3.metric .mc-progress {
    margin: 4px 0 8px !important;
}

.mc-ref-head,
.mc-ref-icon,
.mc-ref-info,
.mc-ref-foot {
    display: none !important;
}

/* EMERGENCY RESTORE - ANALYSIS CENTER */
.mcx-analysis{
    display:block !important;
    padding:20px !important;
    min-height:760px !important;
    height:760px !important;
    border:1px solid rgba(59,130,246,.28) !important;
    border-radius:18px !important;
    background:linear-gradient(145deg,rgba(10,21,38,.98),rgba(8,30,48,.92)) !important;
}

.mcx-analysis h3{margin:0 0 16px!important;font-size:18px!important;color:#f1f5f9!important;font-weight:950!important}

.mcx-tabs{display:flex!important;gap:9px!important;padding-bottom:14px!important;margin-bottom:18px!important;border-bottom:1px solid rgba(148,163,184,.14)!important}
.mcx-tabs button{height:34px!important;padding:0 13px!important;border-radius:10px!important;border:1px solid rgba(148,163,184,.14)!important;background:rgba(15,23,42,.42)!important;color:#cbd5e1!important;font-size:11px!important;font-weight:850!important}
.mcx-tabs button.active{color:#fff!important;background:linear-gradient(135deg,rgba(37,99,235,.95),rgba(30,64,175,.72))!important;border-color:rgba(96,165,250,.42)!important}

.mcx-ai{display:grid!important;grid-template-columns:minmax(0,1fr) 84px!important;gap:14px!important;align-items:center!important;margin-bottom:18px!important}
.mcx-ai span{display:block!important;color:#94a3b8!important;font-size:10px!important;font-weight:950!important;margin-bottom:8px!important}
.mcx-ai strong{display:block!important;font-size:25px!important;line-height:1!important;font-weight:950!important}
.mcx-ai p{margin:10px 0 0!important;color:#cbd5e1!important;font-size:12px!important;line-height:1.45!important}

.mcx-ring{width:80px!important;height:80px!important;border-radius:999px!important;border:7px solid var(--score-color,#22c55e)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.mcx-ring strong{color:var(--score-color,#22c55e)!important;font-size:23px!important}
.mcx-ring small{color:#dbeafe!important;font-size:11px!important;font-weight:800!important}

.mcx-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid rgba(148,163,184,.08)!important;border-radius:12px!important;background:rgba(15,23,42,.18)!important;margin-bottom:0!important;overflow:hidden!important}
.mcx-table th,.mcx-table td{padding:10px 11px!important;font-size:11px!important;border-bottom:1px solid rgba(148,163,184,.055)!important;border-right:1px solid rgba(148,163,184,.045)!important}
.mcx-table th{background:rgba(15,23,42,.25)!important;color:rgba(148,163,184,.78)!important;text-align:left!important}
.mcx-table td{color:rgba(226,232,240,.92)!important;font-weight:700!important}
.mcx-table tr:last-child td{border-bottom:0!important}
.mcx-table th:last-child,.mcx-table td:last-child{border-right:0!important}
.mcx-table .positive{color:#22c55e!important}
.mcx-table .negative{color:#ef4444!important}
.mcx-table .warn{color:#facc15!important}

.mcx-levels{display:grid!important;grid-template-columns:1fr 1fr!important;border:1px solid rgba(148,163,184,.09)!important;border-radius:0 0 14px 14px!important;border-top:0!important;background:rgba(15,23,42,.20)!important;min-height:185px!important;overflow:hidden!important}
.mcx-levels>div{padding:17px!important}
.mcx-levels>div+div{border-left:1px solid rgba(148,163,184,.12)!important}
.mcx-levels h4{margin:0 0 15px!important;font-size:12px!important;font-weight:950!important;color:#22c55e!important}
.mcx-levels h4.red{color:#ef4444!important}
.mcx-levels p{display:flex!important;gap:6px!important;margin:15px 0!important}
.mcx-levels strong{font-size:14px!important;font-weight:900!important;color:#f8fafc!important}
.mcx-levels span{font-size:11px!important;font-weight:700!important;color:#94a3b8!important}

/* SCORE CARD TARGET FINAL */
.mc-selected-card-v3.score {
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 14px !important;
}

.mc-selected-card-v3.score > span {
    width: 100% !important;
    align-self: stretch !important;
    text-align: left !important;
    margin: 0 0 11px 0 !important;
    padding: 0 !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #94a3b8 !important;
}

.mc-selected-card-v3.score .mc-score-orb {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    min-height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;

    border-radius: 999px !important;
    border: 9px solid var(--score-color, #22c55e) !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mc-selected-card-v3.score .mc-score-orb strong {
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    color: #f8fafc !important;
    margin: 0 !important;
}

.mc-selected-card-v3.score .mc-score-orb small {
    display: block !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #cbd5e1 !important;
}

.mc-selected-card-v3.score .mc-score-status {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
    color: var(--score-color, #22c55e) !important;
}

.mc-selected-card-v3.score .mc-score-bottom-line,
.mc-selected-card-v3.score em {
    display: none !important;
}

/* SCORE ORB SINGLE RING FIX */
.mc-selected-card-v3.score .mc-score-orb {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.mc-selected-card-v3.score .mc-score-orb::before,
.mc-selected-card-v3.score .mc-score-orb::after {
    display: none !important;
    content: none !important;
}

.mc-selected-card-v3.score .mc-score-orb strong {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* SCORE TEXT ALIGNMENT */
.mc-selected-card-v3.score .mc-score-orb{
    gap:0 !important;
}

.mc-selected-card-v3.score .mc-score-orb strong{
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
}

.mc-selected-card-v3.score .mc-score-orb small{
    margin-top:-2px !important;
    line-height:1 !important;
    font-size:11px !important;
    font-weight:800 !important;
    color:#dbeafe !important;
    transform:translateY(-2px) !important;
}

/* SCORE /100 ABSOLUTE ALIGN FINAL */
.mc-selected-card-v3.score .mc-score-orb {
    position: relative !important;
}

.mc-selected-card-v3.score .mc-score-orb strong {
    position: absolute !important;
    top: 42% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.mc-selected-card-v3.score .mc-score-orb small {
    position: absolute !important;
    top: 61% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}



/* SCORE /100 FINAL POSITION */
.mc-selected-card-v3.score .mc-score-orb{
    position:relative !important;
}

.mc-selected-card-v3.score .mc-score-orb small{

    position:absolute !important;

    left:50% !important;
    top:65% !important;

    transform:translate(-50%,-50%) !important;

    font-size:15px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:.02em !important;

    color:#dbeafe !important;

    margin:0 !important;
    padding:0 !important;
}

/* ANALYSIS CENTER TAB CONTENT */
.mcx-tab-card {
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.18) !important;
    padding: 16px !important;
    margin-bottom: 18px !important;
}

.mcx-tab-card h4 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.mcx-tab-card p {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 12px 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
}

.mcx-tab-card p span {
    color: #94a3b8 !important;
    font-weight: 750 !important;
}

.mcx-tab-card p strong {
    color: #e5eefc !important;
    font-weight: 900 !important;
}

.mcx-tab-card ul {
    margin: 14px 0 0 !important;
    padding-left: 18px !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.mcx-tab-card li {
    margin: 7px 0 !important;
}

/* ANALYSIS CENTER SUMMARY REPLACEMENT */
.mcx-decision-summary {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

.mcx-decision-summary > div {
    padding: 13px 12px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.22) !important;
}

.mcx-decision-summary span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.mcx-decision-summary strong {
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.mcx-decision-summary .positive {
    color: #22c55e !important;
}

.mcx-decision-summary .negative {
    color: #ef4444 !important;
}

/* TOP STRIP HEIGHT BALANCE */
.mc-selected-card-v3 {
    min-height: 210px !important;
    height: 210px !important;
    max-height: 210px !important;
}

.mc-selected-card-v3.support {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.mc-selected-card-v3.support > span {
    margin-bottom: 10px !important;
}

.mc-level-group {
    margin-bottom: 8px !important;
}

.mc-level-group b {
    margin-bottom: 6px !important;
}

.mc-level-group p {
    margin: 4px 0 !important;
    line-height: 1.15 !important;
}

.mc-level-group small,
.mc-level-group strong {
    font-size: 10px !important;
}

/* Keep score card balanced after height increase */
.mc-selected-card-v3.score {
    justify-content: flex-start !important;
}

.mc-selected-card-v3.score .mc-score-orb {
    margin-top: 4px !important;
}

.mc-selected-card-v3.score .mc-score-status {
    margin-top: 10px !important;
}

/* =======================================================
   STOCK CARD HEIGHT ALIGNMENT
   ======================================================= */

.mc-selected-card-v3.stock{

    min-height:210px !important;
    height:210px !important;

    display:flex !important;
    flex-direction:column !important;

    justify-content:space-between !important;
}

.mc-stock-card-head{
    margin-bottom:8px !important;
}

.mc-stock-price-main{
    margin-bottom:8px !important;
}

.mc-stock-mini-grid{
    margin:8px 0 10px 0 !important;
}

.mc-stock-action-inline{
    margin-top:auto !important;
}

.mc-stock-footer-row{
    margin-top:8px !important;
}


/* ANALYSIS CENTER SIZE LOCK - CONTENT FIT */
.mc-detail-column {
    display: block !important;
    align-items: initial !important;
    min-height: 0 !important;
}

.mc-detail-column > .mcx-analysis,
.mcx-analysis {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0 !important;
}

.mcx-decision-summary {
    margin-bottom: 0 !important;
}

/* ANALYSIS CENTER HEIGHT RESTORE */
.mc-detail-column > .mcx-analysis,
.mcx-analysis {
    min-height: 720px !important;
    height: 720px !important;
    max-height: 720px !important;
}

/* RIGHT COLUMN TWO CARD LAYOUT */
.mc-detail-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 0 !important;
}

.mc-detail-column > .mcx-analysis,
.mcx-analysis {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* AI MARKET INSIGHT CARD */
.mcx-insight {
    padding: 18px !important;
    border: 1px solid rgba(59,130,246,.24) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(10,21,38,.96), rgba(8,30,48,.88)) !important;
}

.mcx-insight h3 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 17px !important;
    font-weight: 950 !important;
}

.mcx-insight-block {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.20) !important;
    margin-bottom: 12px !important;
}

.mcx-insight-block span,
.mcx-insight-grid span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.mcx-insight-block p {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.mcx-insight-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.mcx-insight-grid > div {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.20) !important;
}

.mcx-insight-grid strong {
    font-size: 15px !important;
    font-weight: 950 !important;
}

/* ANALYSIS TECHNICAL TAB */
.mcx-technical-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}

.mcx-tech-card {
    min-height: 118px !important;
    padding: 14px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 13px !important;
    background: rgba(15,23,42,.20) !important;
}

.mcx-tech-card span {
    display: block !important;
    margin-bottom: 10px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.mcx-tech-card strong {
    display: block !important;
    margin-bottom: 8px !important;
    color: #e5eefc !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

.mcx-tech-card small {
    display: block !important;
    margin-top: 5px !important;
    color: #cbd5e1 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.mcx-tech-card .positive {
    color: #22c55e !important;
}

.mcx-tech-card .negative {
    color: #ef4444 !important;
}

.mcx-tech-bar {
    height: 7px !important;
    margin-top: 12px !important;
    border-radius: 999px !important;
    background: rgba(148,163,184,.18) !important;
    overflow: hidden !important;
}

.mcx-tech-bar i {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: #c084fc !important;
}

.mcx-tech-bar.purple i {
    background: #c084fc !important;
}

/* ANALYSIS AI TAB */
.mcx-ai-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.mcx-ai-card {
    padding: 14px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 13px !important;
    background: rgba(15,23,42,.20) !important;
}

.mcx-ai-card.full {
    grid-column: 1 / -1 !important;
}

.mcx-ai-card span {
    display: block !important;
    margin-bottom: 10px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.mcx-ai-card > strong {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

.mcx-ai-card small {
    color: #cbd5e1 !important;
    font-size: 11px !important;
}

.mcx-ai-card p {
    display: flex !important;
    justify-content: space-between !important;
    margin: 10px 0 !important;
    font-size: 12px !important;
}

.mcx-ai-card p b {
    color: #94a3b8 !important;
}

.mcx-ai-card p strong {
    color: #f1f5f9 !important;
}

.mcx-ai-card ul {
    margin: 0 !important;
    padding-left: 18px !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

/* ANALYSIS HISTORY TAB */
.mcx-history-list {
    display: grid !important;
    gap: 12px !important;
}

.mcx-history-item {
    padding: 14px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 13px !important;
    background: rgba(15,23,42,.20) !important;
}

.mcx-history-item span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #60a5fa !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.mcx-history-item strong {
    display: block !important;
    color: #f1f5f9 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    margin-bottom: 5px !important;
}

.mcx-history-item small {
    color: #cbd5e1 !important;
    font-size: 12px !important;
}

/* ANALYSIS CENTER FINAL FIXED HEIGHT */
.mcx-insight {
    display: none !important;
}

.mc-detail-column {
    display: block !important;
}

.mcx-analysis {
    height: 690px !important;
    min-height: 690px !important;
    max-height: 690px !important;
    overflow: hidden !important;
}

/* ANALYSIS CENTER ABSOLUTE HEIGHT LOCK */
.mc-grid-v3 .mc-detail-column > aside.mcx-analysis {
    height: 690px !important;
    min-height: 690px !important;
    max-height: 690px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.mc-grid-v3 .mc-detail-column {
    align-self: flex-start !important;
}

/* Tab içerikleri kısa olsa bile panel boyu değişmesin */
.mcx-technical-grid,
.mcx-ai-grid,
.mcx-history-list,
.mcx-tab-card {
    min-height: 380px !important;
}

/* MARKET BOTTOM PANEL - PRO POLISH */
.mc-bottom-pro {
    margin-top: 22px !important;
    padding: 22px !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(10,21,38,.98), rgba(8,30,48,.90)) !important;
    border: 1px solid rgba(59,130,246,.24) !important;
}

.bottom-tabs.interactive {
    display: flex !important;
    gap: 22px !important;
    padding: 0 0 16px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid rgba(148,163,184,.12) !important;
}

.bottom-tabs.interactive button {
    border: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    padding: 0 0 10px !important;
    position: relative !important;
}

.bottom-tabs.interactive button.active {
    color: #38bdf8 !important;
}

.bottom-tabs.interactive button.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -17px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56,189,248,.55) !important;
}

.market-bottom-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.bottom-grid.pro.investor {
    display: grid !important;
    grid-template-columns: 420px minmax(0, 1fr) !important;
    gap: 18px !important;
}

.bottom-section {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,23,42,.22) !important;
}

.bottom-section.wide {
    min-height: 170px !important;
}

.bottom-section h4 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.summary.compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.summary.compact > div,
.trade-plan-grid > div {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.26) !important;
}

.summary.compact span,
.trade-plan-grid span,
.decision-card span,
.decision-note span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.summary.compact b,
.trade-plan-grid b {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.market-note {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.market-bottom-side.decision-side {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 16px !important;
    background: rgba(15,23,42,.22) !important;
}

.market-bottom-side h4 {
    margin: 0 0 16px !important;
    color: #f1f5f9 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.decision-card,
.decision-note {
    padding: 15px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 13px !important;
    background: rgba(15,23,42,.28) !important;
    margin-bottom: 12px !important;
}

.decision-card strong {
    display: block !important;
    color: #f8fafc !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    margin-bottom: 6px !important;
}

.decision-card small,
.decision-note p {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.decision-note.warning {
    border-color: rgba(245,158,11,.22) !important;
}

/* BOTTOM PANEL - AI ANALYSIS TAB */
.btm-ai-layout {
    display: grid !important;
    grid-template-columns: 170px 420px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.btm-ai-score,
.btm-ai-metrics,
.btm-ai-comment {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,23,42,.22) !important;
}

.btm-ai-score {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.btm-ai-score span {
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

.btm-ai-score strong {
    font-size: 42px !important;
    line-height: 1 !important;
    color: #22c55e !important;
    font-weight: 950 !important;
}

.btm-ai-score small {
    margin-top: 4px !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.btm-ai-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.btm-ai-metrics > div {
    padding: 14px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.24) !important;
}

.btm-ai-metrics span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.btm-ai-metrics b {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-ai-comment h4 {
    margin: 0 0 12px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-ai-comment p {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* BOTTOM PANEL - ALARMS TAB */
.btm-alarm-layout {
    display: grid !important;
    grid-template-columns: 260px 420px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.btm-alarm-actions,
.btm-alarm-levels,
.btm-alarm-empty {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,23,42,.22) !important;
}

.btm-alarm-actions h4,
.btm-alarm-levels h4,
.btm-alarm-empty h4 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-alarm-actions {
    display: grid !important;
    gap: 10px !important;
}

.btm-alarm-actions button {
    height: 38px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(148,163,184,.12) !important;
    background: rgba(15,23,42,.34) !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.btm-alarm-actions button.primary {
    background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(30,64,175,.72)) !important;
    color: #fff !important;
    border-color: rgba(96,165,250,.40) !important;
}

.btm-alarm-levels {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.btm-alarm-levels h4 {
    grid-column: 1 / -1 !important;
}

.btm-alarm-levels div {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.24) !important;
}

.btm-alarm-levels span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.btm-alarm-levels b {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-alarm-empty p {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* BOTTOM PANEL - NOTES TAB */
.btm-notes-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.btm-note-editor,
.btm-note-summary {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,23,42,.22) !important;
}

.btm-note-editor h4,
.btm-note-summary h4 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.market-note-input {
    width: 100% !important;
    min-height: 150px !important;
    resize: vertical !important;
    border-radius: 13px !important;
    border: 1px solid rgba(148,163,184,.12) !important;
    background: rgba(15,23,42,.36) !important;
    color: #e5eefc !important;
    padding: 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    outline: none !important;
}

.market-note-input::placeholder {
    color: #64748b !important;
}

.btm-note-summary div {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.24) !important;
    margin-bottom: 10px !important;
}

.btm-note-summary span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.btm-note-summary strong {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-note-summary p {
    margin: 12px 0 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* BOTTOM PANEL - TRADE PLAN TAB */
.btm-plan-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.btm-plan-main,
.btm-plan-comment {
    padding: 18px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,23,42,.22) !important;
}

.btm-plan-main h4,
.btm-plan-comment h4 {
    margin: 0 0 14px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-plan-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

.btm-plan-grid > div,
.btm-plan-rule {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.08) !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.24) !important;
}

.btm-plan-grid span,
.btm-plan-rule span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.btm-plan-grid strong,
.btm-plan-rule strong {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.btm-plan-comment p {
    margin: 0 0 14px !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* PORTFOLIO POSITION ACTION MENU */
.portfolio-table {
    overflow: visible !important;
}

.portfolio-row-actions {
    position: relative !important;
    width: 42px !important;
    text-align: right !important;
}

.portfolio-action-menu-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    background: rgba(15,23,42,.55) !important;
    color: #cbd5e1 !important;
    font-size: 18px !important;
    cursor: pointer !important;
}

.portfolio-action-menu-btn:hover {
    border-color: rgba(96,165,250,.45) !important;
    color: #fff !important;
}

.portfolio-action-menu {
    position: absolute !important;
    right: 0 !important;
    top: 38px !important;
    z-index: 40 !important;
    width: 260px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    background: rgba(2,6,23,.96) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.45) !important;
}

.portfolio-action-menu button {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 28px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #e5eefc !important;
    text-align: left !important;
    cursor: pointer !important;
}

.portfolio-action-menu button:hover {
    background: rgba(37,99,235,.18) !important;
}

.portfolio-action-menu button > span {
    font-size: 17px !important;
}

.portfolio-action-menu strong {
    display: block !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.portfolio-action-menu small {
    display: block !important;
    margin-top: 2px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
}

.portfolio-action-menu hr {
    border: 0 !important;
    border-top: 1px solid rgba(148,163,184,.12) !important;
    margin: 6px 4px !important;
}

.portfolio-action-menu button.danger strong,
.portfolio-action-menu button.danger > span {
    color: #ef4444 !important;
}

/* PORTFOLIO SIDEBAR CARD MENU */
.portfolio-list-item-wrap {
    position: relative !important;
}

.portfolio-card-menu-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    background: rgba(15,23,42,.50) !important;
    color: #cbd5e1 !important;
    font-size: 18px !important;
    cursor: pointer !important;
}

.portfolio-card-menu-btn:hover {
    color: #fff !important;
    border-color: rgba(96,165,250,.45) !important;
}

.portfolio-card-menu {
    position: absolute !important;
    right: 8px !important;
    top: 46px !important;
    z-index: 80 !important;
    width: 250px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    background: rgba(2,6,23,.97) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.45) !important;
}

.portfolio-card-menu button {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 28px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #e5eefc !important;
    text-align: left !important;
    cursor: pointer !important;
}

.portfolio-card-menu button:hover {
    background: rgba(37,99,235,.18) !important;
}

.portfolio-card-menu strong {
    display: block !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.portfolio-card-menu small {
    display: block !important;
    margin-top: 2px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
}

.portfolio-card-menu hr {
    border: 0 !important;
    border-top: 1px solid rgba(148,163,184,.12) !important;
    margin: 6px 4px !important;
}

.portfolio-card-menu button.danger strong,
.portfolio-card-menu button.danger span {
    color: #ef4444 !important;
}

.portfolio-add-position.secondary {
    background: rgba(15,23,42,.55) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    color: #dbeafe !important;
}

/* PORTFOLIO POSITION MODAL */
.portfolio-note-field {
    display: block !important;
    margin-top: 16px !important;
}

.portfolio-note-field span {
    display: block !important;
    margin-bottom: 8px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.portfolio-note-field textarea {
    width: 100% !important;
    min-height: 90px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    background: rgba(15,23,42,.55) !important;
    color: #e5eefc !important;
    padding: 12px !important;
    resize: vertical !important;
    outline: none !important;
}

/* PORTFOLIO ASSET SEARCH + COST PREVIEW */
.portfolio-asset-search-field {
    position: relative !important;
}

.portfolio-asset-search-results {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 72px !important;
    z-index: 120 !important;
    padding: 8px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    background: rgba(2,6,23,.98) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.45) !important;
}

.portfolio-asset-search-results button {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 72px 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #e5eefc !important;
    text-align: left !important;
    cursor: pointer !important;
}

.portfolio-asset-search-results button:hover {
    background: rgba(37,99,235,.18) !important;
}

.portfolio-asset-search-results strong {
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.portfolio-asset-search-results small {
    color: #94a3b8 !important;
    font-size: 11px !important;
}

.portfolio-asset-search-results em {
    color: #22c55e !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 850 !important;
}

.portfolio-position-cost-preview {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
}

.portfolio-position-cost-preview > div {
    padding: 13px !important;
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 13px !important;
    background: rgba(15,23,42,.35) !important;
}

.portfolio-position-cost-preview span {
    display: block !important;
    margin-bottom: 7px !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

.portfolio-position-cost-preview strong {
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

/* NEW POSITION MODAL - PRO SEARCH + CALC */
.portfolio-asset-search-results button {
    grid-template-columns: minmax(0,1fr) 120px auto !important;
}

.portfolio-asset-search-results button > div {
    min-width: 0 !important;
}

.portfolio-asset-search-results button > span {
    color: #94a3b8 !important;
    font-size: 11px !important;
    text-align: right !important;
}

.portfolio-asset-search-results em.positive {
    color: #22c55e !important;
}

.portfolio-asset-search-results em.negative {
    color: #ef4444 !important;
}

.portfolio-position-cost-preview.pro {
    grid-template-columns: repeat(3, 1fr) !important;
}

.portfolio-position-cost-preview.pro > div {
    min-height: 72px !important;
}

.portfolio-position-cost-preview .positive {
    color: #22c55e !important;
}

.portfolio-position-cost-preview .negative {
    color: #ef4444 !important;
}

/* =========================================================
   BTFP MARKET CENTER - CLEAN FINAL LAYOUT
   ========================================================= */

.mc-grid-v3 {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) 380px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.mc-watchlist-pro,
.mc-chart-panel,
.mcx-analysis {
    height: 820px !important;
    min-height: 820px !important;
    max-height: 820px !important;
}

.mc-chart-panel {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.mc-chart-panel .btfp-chart-header-final {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) 520px !important;
    gap: 22px !important;
    align-items: start !important;
    min-height: 165px !important;
    padding-bottom: 12px !important;
}

.mc-chart-panel .btfp-chart-left-title h2 {
    margin: 0 0 4px !important;
    font-size: 28px !important;
}

.mc-chart-panel .btfp-chart-left-title p {
    margin: 0 0 14px !important;
    max-width: 300px !important;
}

.mc-chart-panel .btfp-chart-left-title .price {
    margin: 0 0 14px !important;
    font-size: 36px !important;
    font-weight: 950 !important;
}

.mc-chart-panel .btfp-chart-left-title .mc-chart-price-stats-inline {
    display: flex !important;
    gap: 20px !important;
    margin: 0 !important;
}

.mc-chart-panel .btfp-chart-left-title .mc-chart-price-stats-inline span {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    font-size: 11px !important;
}

.mc-chart-panel .btfp-chart-right-stack {
    width: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    justify-self: end !important;
}

.mc-chart-panel .btfp-chart-right-stack .mc-daily-summary-card {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 13px 15px !important;
    box-sizing: border-box !important;
}

.mc-chart-panel .btfp-fixed-line-chips {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

.mc-chart-panel .btfp-line-chip {
    width: 100% !important;
    min-height: 28px !important;
    padding: 5px 7px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
}

.mc-chart-panel .btfp-line-chip.active {
    border-color: rgba(59,130,246,.95) !important;
    background: rgba(37,99,235,.24) !important;
    box-shadow: 0 0 0 1px rgba(59,130,246,.35), 0 0 18px rgba(59,130,246,.22) !important;
}

.mc-chart-panel .real-chart {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.mc-chart-panel .real-chart canvas {
    height: 100% !important;
    min-height: 0 !important;
}

.mcx-tabs button {
    min-height: 54px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.15 !important;
}

