/* Homepage — Live market widgets (TradingView), warm light-glass theme */
.bc-markets {
    --mk-ocean: #e8822a;
    --mk-ocean-light: #e8822a;
    --mk-midnight: var(--bc-dark, #1c1e24);
    --mk-bg-mid: #f6f7f9;
    --mk-surface: rgba(255, 255, 255, 0.9);
    --mk-ice: var(--bc-light, #e8e2d9);
    --mk-off-white: #1c1e24;
    --mk-muted: #6b7280;
    --mk-dim: #8b8f98;
    --mk-border: rgba(226, 220, 210, 0.95);
    --mk-border-strong: rgba(232, 130, 42, 0.28);
    --mk-success: #059669;

    padding: 3.25rem 0 3.5rem;
    background:
        radial-gradient(ellipse 46% 62% at 88% 6%, rgba(245, 166, 35, 0.18) 0%, transparent 62%),
        radial-gradient(ellipse 40% 58% at 3% 44%, rgba(255, 214, 130, 0.2) 0%, transparent 62%),
        linear-gradient(180deg, #f6f7f9 0%, #f9f3ea 100%);
    border-top: 1px solid rgba(232, 130, 42, 0.14);
    border-bottom: 1px solid rgba(232, 130, 42, 0.14);
}

.bc-markets__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.bc-markets__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mk-ocean-light);
    background: rgba(232, 130, 42, 0.12);
    border: 1px solid rgba(232, 130, 42, 0.24);
    border-radius: 999px;
}

.bc-markets__live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mk-success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
    animation: bc-markets-pulse 2s ease-in-out infinite;
}

@keyframes bc-markets-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.bc-markets__title {
    margin: 0 0 0.375rem;
    font-size: clamp(1.625rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--mk-off-white);
}

.bc-markets__sub {
    margin: 0;
    max-width: 38rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mk-muted);
}

.bc-markets__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mk-off-white);
    text-decoration: none;
    background: rgba(232, 130, 42, 0.22);
    border: 1px solid rgba(232, 130, 42, 0.38);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s ease;
}

.bc-markets__cta svg {
    width: 0.9375rem;
    height: 0.9375rem;
}

.bc-markets__cta:hover {
    color: var(--mk-off-white);
    background: rgba(232, 130, 42, 0.34);
    border-color: rgba(232, 130, 42, 0.62);
    transform: translateY(-2px);
}

/* Ticker strip */
.bc-markets__ticker {
    margin-bottom: 1rem;
    min-height: 46px;
    border: 1px solid var(--mk-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
}

.bc-markets__ticker .tradingview-widget-container,
.bc-markets__ticker .tradingview-widget-container__widget {
    width: 100%;
}

/* Board */
.bc-markets__board {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--mk-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px -18px rgba(60, 50, 40, 0.35);
}

.bc-markets__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--mk-border);
    background: rgba(255, 255, 255, 0.62);
}

.bc-markets__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mk-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.bc-markets__tab svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.bc-markets__tab:hover {
    color: var(--mk-off-white);
    background: rgba(232, 130, 42, 0.06);
    border-color: var(--mk-border);
}

.bc-markets__tab.is-active {
    color: var(--mk-off-white);
    background: rgba(232, 130, 42, 0.16);
    border-color: rgba(232, 130, 42, 0.32);
}

.bc-markets__tab.is-active svg {
    color: var(--mk-ocean-light);
}

.bc-markets__panels {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .bc-markets__panels {
        padding: 1rem;
    }
}

.bc-markets__panel.is-hidden {
    display: none;
}

.bc-markets__widget-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: var(--mk-surface);
    border: 1px solid var(--mk-border);
}

.bc-markets__widget {
    min-height: 420px;
}

.bc-markets__widget[data-widget="calendar"] {
    min-height: 480px;
}

.bc-markets__widget .tradingview-widget-container,
.bc-markets__widget .tradingview-widget-container__widget {
    width: 100% !important;
}

.bc-markets__widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    color: var(--mk-dim);
    font-size: 0.875rem;
}

.bc-markets__credit {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--mk-dim);
}

.bc-markets__credit a {
    color: var(--mk-ocean-light);
    text-decoration: none;
}

.bc-markets__credit a:hover {
    color: var(--mk-off-white);
    text-decoration: underline;
}

@media (max-width: 639px) {
    .bc-markets__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .bc-markets__tabs::-webkit-scrollbar {
        display: none;
    }

    .bc-markets__tab {
        flex-shrink: 0;
    }

    .bc-markets__head {
        align-items: flex-start;
    }

    .bc-markets__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-markets__live-dot {
        animation: none;
    }

    .bc-markets__cta:hover {
        transform: none;
    }
}
