.marketbeast-markets {
    --mbm-ink: #050505;
    --mbm-paper: #ffffff;
    --mbm-soft: #f6f6f3;
    --mbm-line: #d9d9d2;
    --mbm-muted: #62666d;
    --mbm-yellow: #f3c300;
    --mbm-green: #087a3b;
    --mbm-red: #c9252d;
    --mbm-blue: #135f91;
}

.mbm-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 18px 52px;
    color: var(--mbm-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.mbm-page a {
    color: inherit;
    text-decoration: none;
}

.mbm-hero,
.mbm-stock-hero {
    align-items: center;
}

.mbm-hero,
.mbm-stock-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    border-top: 5px solid var(--mbm-ink);
    border-bottom: 1px solid var(--mbm-line);
    padding: 26px 0 24px;
}

.mbm-hero {
    align-items: end;
}

.mbm-hero h1,
.mbm-stock-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 0.92;
    letter-spacing: 0;
    font-weight: 950;
}

.mbm-hero p,
.mbm-stock-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--mbm-muted);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.mbm-kicker {
    margin: 0 0 8px !important;
    color: var(--mbm-red) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
    font-weight: 950 !important;
}

.mbm-search {
    display: flex;
    align-items: center;
    border: 2px solid var(--mbm-ink);
    background: var(--mbm-paper);
    min-height: 48px;
}

.mbm-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 800;
    outline: 0;
}

.mbm-search button,
.mbm-button,
.mbm-watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    background: var(--mbm-ink);
    color: #ffffff !important;
    padding: 0 16px;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.mbm-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mbm-button--secondary {
    background: #ffffff;
    color: var(--mbm-ink) !important;
    box-shadow: inset 0 0 0 2px var(--mbm-ink);
}

.mbm-button:hover,
.mbm-search button:hover,
.mbm-watch-button:hover {
    background: var(--mbm-yellow);
    color: var(--mbm-ink) !important;
}

.mbm-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--mbm-line);
    background: var(--mbm-soft);
}

.mbm-stat-strip div {
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--mbm-line);
}

.mbm-stat-strip div:last-child {
    border-right: 0;
}

.mbm-stat-strip span,
.mbm-stat-strip small {
    display: block;
}

.mbm-stat-strip span {
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.mbm-stat-strip small {
    margin-top: 7px;
    color: var(--mbm-muted);
    font-size: 11px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 900;
}

.mbm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.mbm-sidebar {
    display: grid;
    gap: 18px;
}

.mbm-stack {
    display: grid;
    gap: 24px;
}

.mbm-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 42px;
    align-items: center;
    min-height: 520px;
    border-top: 5px solid var(--mbm-ink);
    border-bottom: 1px solid var(--mbm-line);
    padding: 42px 0;
}

.mbm-auth__intro h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.9;
    letter-spacing: 0;
    font-weight: 950;
}

.mbm-auth__intro p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--mbm-muted);
    font-size: 18px;
    line-height: 1.42;
    font-weight: 750;
}

.mbm-auth__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--mbm-line);
    border-bottom: 1px solid var(--mbm-line);
}

.mbm-auth__points span {
    min-height: 72px;
    padding: 14px 12px;
    border-right: 1px solid var(--mbm-line);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 950;
}

.mbm-auth__points span:last-child {
    border-right: 0;
}

.mbm-auth__card {
    border: 2px solid var(--mbm-ink);
    background: #ffffff;
    padding: 18px;
}

.mbm-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -18px -18px 18px;
    border-bottom: 2px solid var(--mbm-ink);
}

.mbm-auth__tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-right: 1px solid var(--mbm-ink);
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 950;
}

.mbm-auth__tabs a:last-child {
    border-right: 0;
}

.mbm-auth__tabs a.is-active {
    background: var(--mbm-ink);
    color: #ffffff;
}

.mbm-auth-errors {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(201, 37, 45, 0.08);
    border-left: 4px solid var(--mbm-red);
}

.mbm-auth-errors p {
    margin: 0;
    color: var(--mbm-ink);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.mbm-auth__foot {
    margin: 14px 0 0;
    color: var(--mbm-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.mbm-auth__foot a {
    color: var(--mbm-ink);
    font-weight: 950;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mbm-auth__actions {
    display: grid;
    gap: 10px;
}

.mbm-panel {
    border-top: 4px solid var(--mbm-ink);
    background: var(--mbm-paper);
}

.mbm-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0 12px;
    border-bottom: 1px solid var(--mbm-line);
}

.mbm-panel__head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
}

.mbm-panel__head p {
    margin: 0;
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.mbm-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mbm-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.25;
}

.mbm-table th,
.mbm-table td {
    box-sizing: border-box;
    padding: 12px 10px;
    border-bottom: 1px solid var(--mbm-line);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.mbm-table th {
    color: var(--mbm-muted);
    font-size: 11px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 950;
    background: #fbfbf8;
}

.mbm-table th:first-child,
.mbm-table td:first-child,
.mbm-table th:nth-child(2),
.mbm-table td:nth-child(2) {
    text-align: left;
}

.mbm-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 28px;
    padding: 0 8px;
    background: var(--mbm-ink);
    color: #ffffff !important;
    font-weight: 950;
}

.mbm-symbol:hover {
    background: var(--mbm-yellow);
    color: var(--mbm-ink) !important;
}

.mbm-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.mbm-change--up {
    color: var(--mbm-green);
    background: rgba(8, 122, 59, 0.08);
}

.mbm-change--down {
    color: var(--mbm-red);
    background: rgba(201, 37, 45, 0.08);
}

.mbm-change--flat {
    color: var(--mbm-muted);
    background: #eeeeea;
}

.mbm-stock-title {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.mbm-stock-title span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    background: var(--mbm-yellow);
    color: var(--mbm-ink);
    font-size: 17px;
    font-weight: 950;
}

.mbm-stock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mbm-stock-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid var(--mbm-line);
    color: var(--mbm-muted);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 900;
}

.mbm-price-card {
    border: 2px solid var(--mbm-ink);
    padding: 18px;
}

.mbm-price-card small,
.mbm-price-card span {
    display: block;
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.mbm-price-card strong {
    display: block;
    margin: 7px 0 10px;
    font-size: 46px;
    line-height: 0.95;
    font-weight: 950;
}

.mbm-price-card .mbm-watch-form,
.mbm-price-card .mbm-watch-button {
    width: 100%;
    margin-top: 14px;
}

.mbm-secondary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 8px;
    border: 2px solid var(--mbm-ink);
    color: var(--mbm-ink) !important;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 950;
}

.mbm-secondary-link:hover {
    border-color: var(--mbm-yellow);
    background: var(--mbm-yellow);
}

.mbm-stock-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 18px;
    border-top: 2px solid var(--mbm-ink);
    border-bottom: 1px solid var(--mbm-line);
    overflow-x: auto;
}

.mbm-stock-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 150px;
    padding: 0 16px;
    border-right: 1px solid var(--mbm-line);
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 950;
    white-space: nowrap;
}

.mbm-stock-tabs a.is-active,
.mbm-stock-tabs a:hover {
    background: var(--mbm-ink);
    color: #ffffff !important;
}

.mbm-watch-button--compact {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

.mbm-chart-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 24px;
    border-top: 4px solid var(--mbm-ink);
    padding-top: 16px;
}

.mbm-chart-panel__chart {
    min-height: 460px;
    border: 1px solid var(--mbm-line);
}

.mbm-tv-chart,
.mbm-tv-chart .tradingview-widget-container__widget {
    width: 100%;
    height: 460px;
}

.mbm-chart-panel__side {
    border-left: 1px solid var(--mbm-line);
    padding-left: 20px;
}

.mbm-chart-panel__side h2 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
}

.mbm-chart-panel__side p {
    margin: 14px 0 0;
    color: var(--mbm-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.mbm-sparkline {
    display: block;
    width: 100%;
    height: auto;
    background: var(--mbm-soft);
    border-bottom: 2px solid var(--mbm-ink);
}

.mbm-sparkline polyline {
    fill: none;
    stroke: var(--mbm-blue);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.mbm-sparkline--empty {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbm-muted);
    font-size: 12px;
    font-weight: 900;
}

.mbm-key-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 20px;
    border-top: 1px solid var(--mbm-line);
    border-bottom: 1px solid var(--mbm-line);
    background: var(--mbm-soft);
}

.mbm-key-stats div {
    min-width: 0;
    padding: 14px;
    border-right: 1px solid var(--mbm-line);
}

.mbm-key-stats div:last-child {
    border-right: 0;
}

.mbm-key-stats small,
.mbm-key-stats strong {
    display: block;
}

.mbm-key-stats small {
    color: var(--mbm-muted);
    font-size: 11px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 950;
}

.mbm-key-stats strong {
    margin-top: 7px;
    font-size: 19px;
    line-height: 1;
    font-weight: 950;
}

.mbm-movers {
    display: grid;
}

.mbm-mover {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--mbm-line);
}

.mbm-mover span:first-child {
    color: var(--mbm-ink);
    font-size: 13px;
    font-weight: 950;
}

.mbm-mover strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--mbm-ink);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

.mbm-news-list {
    display: grid;
}

.mbm-news-list a {
    display: grid;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid var(--mbm-line);
}

.mbm-news-list a:hover strong {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mbm-news-list span {
    color: var(--mbm-red);
    font-size: 11px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 950;
}

.mbm-news-list strong {
    color: var(--mbm-ink);
    font-size: 14px;
    line-height: 1.22;
    font-weight: 950;
}

.mbm-empty {
    padding: 28px 0;
}

.mbm-empty h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
}

.mbm-empty p,
.mbm-muted {
    margin: 10px 0 0;
    color: var(--mbm-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.mbm-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(8, 122, 59, 0.08);
    border-left: 4px solid var(--mbm-green);
    color: var(--mbm-ink);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
}

.mbm-notice--error {
    background: rgba(201, 37, 45, 0.08);
    border-left-color: var(--mbm-red);
}

.mbm-form {
    display: grid;
    gap: 13px;
    padding-top: 14px;
}

.mbm-form label,
.mbm-form span {
    display: grid;
    gap: 7px;
}

.mbm-form span {
    color: var(--mbm-muted);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 950;
}

.mbm-form input,
.mbm-form select,
.mbm-form textarea {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--mbm-line);
    background: #ffffff;
    color: var(--mbm-ink);
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    outline: 0;
}

.mbm-form textarea {
    min-height: 86px;
    padding-top: 10px;
    resize: vertical;
}

.mbm-form input:focus,
.mbm-form select:focus,
.mbm-form textarea:focus {
    border-color: var(--mbm-ink);
    box-shadow: inset 0 0 0 1px var(--mbm-ink);
}

.mbm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mbm-form button[type="submit"] {
    min-height: 44px;
    border: 0;
    background: var(--mbm-ink);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 950;
    cursor: pointer;
}

.mbm-form button[type="submit"]:hover {
    background: var(--mbm-yellow);
    color: var(--mbm-ink);
}

.mbm-checkline {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 9px !important;
}

.mbm-checkline input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin-top: 1px;
    padding: 0;
}

.mbm-checkline span {
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
    font-weight: 850;
}

.mbm-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mbm-disclaimer {
    margin: 28px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--mbm-line);
    color: var(--mbm-muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .mbm-layout,
    .mbm-chart-panel {
        grid-template-columns: 1fr;
    }

    .mbm-chart-panel__side {
        border-left: 0;
        padding-left: 0;
    }

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

@media (max-width: 760px) {
    .mbm-page {
        padding-top: 18px;
    }

    .mbm-hero,
    .mbm-stock-hero,
    .mbm-auth {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 0;
    }

    .mbm-hero h1,
    .mbm-stock-hero h1,
    .mbm-auth__intro h1 {
        font-size: 40px;
    }

    .mbm-auth {
        min-height: 0;
    }

    .mbm-auth__intro p {
        font-size: 16px;
    }

    .mbm-auth__points {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .mbm-auth__points span {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--mbm-line);
    }

    .mbm-auth__points span:last-child {
        border-bottom: 0;
    }

    .mbm-search {
        align-items: stretch;
        flex-direction: column;
    }

    .mbm-search input {
        min-height: 46px;
    }

    .mbm-search button {
        width: 100%;
    }

    .mbm-hero-actions,
    .mbm-hero-actions .mbm-button {
        width: 100%;
    }

    .mbm-stat-strip,
    .mbm-key-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbm-stat-strip div,
    .mbm-key-stats div {
        border-bottom: 1px solid var(--mbm-line);
    }

    .mbm-price-card strong {
        font-size: 38px;
    }

    .mbm-chart-panel__chart,
    .mbm-tv-chart,
    .mbm-tv-chart .tradingview-widget-container__widget {
        height: 380px;
        min-height: 380px;
    }

    .mbm-panel__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .mbm-form__grid {
        grid-template-columns: 1fr;
    }

    .mbm-table-wrap {
        overflow: visible;
    }

    .mbm-table {
        display: block;
        min-width: 0;
    }

    .mbm-table thead {
        display: none;
    }

    .mbm-table tbody,
    .mbm-table tr,
    .mbm-table td {
        display: block;
        width: 100%;
    }

    .mbm-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--mbm-line);
    }

    .mbm-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 0;
        padding: 7px 10px;
        text-align: right !important;
        white-space: normal;
    }

    .mbm-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--mbm-muted);
        font-size: 11px;
        line-height: 1;
        text-align: left;
        text-transform: uppercase;
        font-weight: 950;
    }

    .mbm-table td:nth-child(2) {
        align-items: flex-start;
        font-weight: 900;
    }
}

@media (max-width: 460px) {
    .mbm-hero h1,
    .mbm-stock-hero h1 {
        font-size: 34px;
    }

    .mbm-auth__intro h1 {
        font-size: 38px;
    }

    .mbm-stat-strip,
    .mbm-key-stats {
        grid-template-columns: 1fr;
    }

    .mbm-stock-title span {
        min-height: 32px;
        font-size: 14px;
    }
}
