/* Homepage redesign - BitBank */

:root {
    --bb-bg: #06111f;
    --bb-bg-2: #0a1729;
    --bb-panel: rgba(16, 26, 43, 0.78);
    --bb-panel-strong: rgba(21, 31, 49, 0.92);
    --bb-border: rgba(148, 163, 184, 0.22);
    --bb-text: #f7f8fb;
    --bb-muted: #aab6c7;
    --bb-soft: #c7d1df;
    --bb-gold: #f5bf3d;
    --bb-gold-2: #ce8f21;
    --bb-green: #23c987;
    --bb-red: #ff6b5f;
    --bb-blue: #4d7dff;
    --bb-purple: #9c5cff;
}

html,
body {
    background: var(--bb-bg);
}

.home-redesign {
    position: relative;
    margin-top: -64px;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 8%, rgba(62, 132, 216, 0.32), transparent 34rem),
        radial-gradient(circle at 12% 36%, rgba(11, 60, 114, 0.35), transparent 28rem),
        linear-gradient(180deg, #071528 0%, #07111f 36%, #08121f 100%);
    color: var(--bb-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-redesign,
.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.home-redesign p,
.home-redesign a,
.home-redesign span,
.home-redesign strong,
.home-redesign small,
.home-redesign li {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.home-redesign::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 780px;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 56%, rgba(246, 195, 65, 0.08) 56.2%, transparent 56.6%),
        radial-gradient(circle at 19% 25%, rgba(245, 191, 61, 0.22) 0 2px, transparent 3px),
        radial-gradient(circle at 27% 19%, rgba(245, 191, 61, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 34% 31%, rgba(245, 191, 61, 0.15) 0 2px, transparent 3px),
        radial-gradient(circle at 12% 42%, rgba(77, 125, 255, 0.18) 0 2px, transparent 3px);
    opacity: 0.85;
}

.bb-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
}

.home-redesign .mdl-layout__content,
.home-redesign .page-content {
    background: transparent;
}

.mdl-layout__header {
    position: relative;
    z-index: 20;
    background: transparent !important;
    box-shadow: none !important;
}

.mdl-layout__header-row {
    width: min(1280px, calc(100% - 56px));
    margin: 0 auto;
    padding: 0;
    height: 72px;
}

.mdl-layout__header .mdl-navigation__link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.mdl-layout__header .mdl-layout-title {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0;
}

.mdl-layout__header .hero-bitbank {
    color: #fff;
    margin-right: 7px;
}

.mdl-layout__header .header-credits-link,
.mdl-layout__header .header-account:not(.header-credits-link) {
    border: 1px solid rgba(245, 191, 61, 0.55);
    border-radius: 8px;
    height: 40px;
    line-height: 40px;
    margin-left: 12px;
    padding: 0 18px !important;
    color: #fff !important;
    background: rgba(6, 13, 24, 0.58);
}

.mdl-mega-footer {
    display: none;
}

.bb-hero {
    position: relative;
    padding: 142px 0 32px;
}


.bb-eyebrow,
.bb-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    border: 1px solid rgba(245, 191, 61, 0.26);
    border-radius: 10px;
    padding: 0 13px;
    background: rgba(18, 28, 48, 0.72);
    color: var(--bb-gold);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.bb-eyebrow i {
    font-size: 15px;
}

.bb-hero h1 {
    max-width: 600px;
    margin: 28px 0 22px;
    color: #fff;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 760;
    letter-spacing: 0;
}

.bb-hero h1 span,
.bb-preview-section h2 span,
.bb-tools-section h2 span,
.bb-api-section h2 span {
    color: var(--bb-gold);
}

.bb-hero p,
.bb-section-copy p,
.bb-tools-copy p {
    max-width: 540px;
    margin: 0;
    color: var(--bb-soft);
    font-size: 17px;
    line-height: 1.7;
}

.bb-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bb-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.bb-btn i {
    font-size: 18px;
}

.bb-btn-primary {
    border: 1px solid rgba(255, 227, 143, 0.54);
    background: linear-gradient(135deg, #ffd86a 0%, #f0bd3c 48%, #bd821e 100%);
    color: #111827;
    box-shadow: 0 16px 36px rgba(245, 191, 61, 0.24);
}

.bb-btn-primary:hover {
    color: #111827;
}

.bb-btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(8, 18, 32, 0.5);
    color: #fff;
}

.bb-btn-secondary:hover {
    border-color: rgba(245, 191, 61, 0.42);
    color: #fff;
}

.bb-btn-binance {
    border: 1px solid rgba(240, 185, 11, 0.55);
    background: linear-gradient(135deg, #f8d12f 0%, #f0b90b 48%, #c98f05 100%);
    color: #1a1f36;
    box-shadow: 0 16px 36px rgba(240, 185, 11, 0.28);
}

.bb-btn-binance:hover {
    color: #1a1f36;
}

.bb-chart-card {
    min-width: 0;
    border: 1px solid rgba(245, 191, 61, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(13, 23, 39, 0.95), rgba(12, 20, 33, 0.82));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 18px;
}

.bb-chart-hero {
    margin-top: 46px;
    padding: 24px 26px 20px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bb-chart-hero .bb-pair-title {
    font-size: 15px;
}

.bb-chart-hero .bb-pair-title strong {
    font-size: 19px;
}

.bb-chart-hero .bb-price-line {
    font-size: 15px;
}

.bb-chart-hero .bb-price-line strong {
    font-size: 26px;
    letter-spacing: -0.01em;
}

.bb-chart-hero .bb-chart-legend {
    margin: 18px 0 8px;
    font-size: 12.5px;
}

.bb-engine-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    border: 1px solid rgba(245, 191, 61, 0.38);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(245, 191, 61, 0.09);
    color: var(--bb-gold);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bb-engine-badge i {
    font-size: 14px;
}

.bb-chart-topline,
.bb-chart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bb-pair-title,
.bb-price-line,
.bb-chart-legend {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bb-pair-title {
    color: var(--bb-soft);
    font-size: 13px;
}

.bb-pair-title strong {
    color: #fff;
    font-size: 15px;
}

.bb-coin-badge,
.bb-row-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ffb21e, #f7931a);
    font-weight: 800;
    flex: 0 0 auto;
}

.bb-live-dot,
.bb-table-foot span,
.bb-status-card i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bb-green);
    box-shadow: 0 0 10px rgba(35, 201, 135, 0.8);
}

.bb-price-line {
    justify-content: flex-end;
    font-size: 13px;
}

.bb-price-line strong {
    color: #fff;
}

.bb-price-line span,
.up {
    color: var(--bb-green);
}

.down {
    color: var(--bb-red);
}

.bb-chart-legend {
    margin: 22px 0 6px;
    color: var(--bb-muted);
    font-size: 12px;
}

.legend-candle,
.legend-box {
    display: inline-block;
    width: 14px;
    height: 8px;
    margin-right: 5px;
}

.legend-candle {
    position: relative;
    width: 11px;
    height: 17px;
    border-radius: 3px;
    vertical-align: middle;
    background: #dfe5ef;
}

.legend-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 1px;
    transform: translateX(-50%);
    background: currentColor;
}

.legend-candle.historical {
    color: #dfe5ef;
}

.legend-candle.forecast {
    color: var(--bb-gold);
    background: var(--bb-gold);
}

.legend-box.forecast {
    background: rgba(245, 191, 61, 0.42);
}

.legend-box.range {
    background: rgba(148, 163, 184, 0.22);
}

#btc-chart-container {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: 10px;
}

.btc-chart-canvas-wrap,
.btc-chart-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.btc-chart-canvas-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(7, 15, 28, 0.68), rgba(5, 11, 21, 0.1));
}

.btc-chart-tooltip {
    position: absolute;
    z-index: 4;
    min-width: 178px;
    padding: 9px 10px;
    border: 1px solid rgba(245, 191, 61, 0.24);
    border-radius: 7px;
    background: rgba(9, 17, 30, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: #e5edf8;
    font: 12px/1.45 system-ui, sans-serif;
    pointer-events: none;
}

.btc-chart-loading,
.btc-chart-message {
    color: var(--bb-muted);
    text-align: center;
    padding: 90px 20px;
    margin: 0;
}

.bb-chart-actions {
    margin-top: 14px;
}

.bb-time-tabs {
    display: flex;
    gap: 9px;
}

.bb-time-tabs span,
.bb-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    padding: 0 13px;
    color: var(--bb-muted);
    background: rgba(8, 16, 28, 0.6);
    font-size: 12px;
    text-decoration: none;
}

.bb-time-tabs .active {
    color: var(--bb-gold);
    border-color: rgba(245, 191, 61, 0.5);
}

.bb-mini-link {
    gap: 7px;
    color: #fff;
}

.bb-mini-link i {
    font-size: 14px;
}

.bb-stats-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    padding: 34px 0 0;
}

.bb-stats-row div {
    min-width: 0;
}

.bb-stats-row strong {
    display: block;
    color: var(--bb-gold);
    font-size: 21px;
    font-weight: 800;
}

.bb-stats-row span {
    display: block;
    margin-top: 8px;
    color: var(--bb-muted);
    font-size: 12px;
}

.bb-feature-cards,
.bb-preview-section,
.bb-tools-section,
.bb-api-section,
.bb-final-cta,
.bb-home-footer {
    position: relative;
    z-index: 1;
}

.bb-feature-cards {
    padding: 40px 0 64px;
}

.bb-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    border: 1px solid var(--bb-border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(21, 31, 49, 0.9), rgba(14, 24, 41, 0.78));
    padding: 34px 42px;
}

.bb-card-grid article {
    min-width: 0;
}

.bb-card-grid h3 {
    color: #fff;
    margin: 18px 0 12px;
    font-size: 17px;
    line-height: 1.3;
}

.bb-card-grid p {
    margin: 0;
    color: var(--bb-soft);
    font-size: 13px;
    line-height: 1.65;
}

.bb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 50%;
    background: rgba(9, 16, 29, 0.76);
}

.bb-icon i {
    font-size: 32px;
}

.bb-icon.blue i {
    color: #6b86ff;
}

.bb-icon.green i,
.bb-icon.code i {
    color: var(--bb-green);
}

.bb-icon.gold i {
    color: var(--bb-gold);
}

.bb-preview-section {
    padding: 26px 0 54px;
    scroll-margin-top: 84px;
}

.bb-preview-grid,
.bb-tools-grid,
.bb-api-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.bb-section-kicker {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.bb-section-kicker span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bb-gold);
    box-shadow: 0 0 10px rgba(245, 191, 61, 0.75);
}

.bb-section-kicker.muted {
    color: #c7d1df;
}

.bb-section-copy h2,
.bb-tools-copy h2 {
    margin: 20px 0 16px;
    color: #fff;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.08;
    font-weight: 720;
    letter-spacing: 0;
}

.bb-forecast-table,
.bb-code-card {
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 30, 47, 0.94), rgba(13, 24, 39, 0.88));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.bb-table-head,
.bb-table-row {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 0.9fr 1.5fr 0.72fr;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 0 22px;
}

.bb-table-head {
    min-height: 54px;
    color: var(--bb-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.bb-table-row {
    color: #fff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    font-size: 14px;
}

.bb-pair-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-row-coin {
    width: 34px;
    height: 34px;
    font-size: 13px;
    overflow: hidden;
}

.bb-row-coin img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.bb-row-coin.coin-image {
    background: rgba(8, 16, 28, 0.55);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.bb-row-coin.bnb {
    background: linear-gradient(135deg, #f5c542, #e6a400);
    font-size: 10px;
    color: #101827;
}

.bb-pair-cell strong,
.bb-pair-cell small {
    display: block;
}

.bb-pair-cell small {
    color: var(--bb-muted);
    margin-top: 3px;
}

.bb-forecast-bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(5px, 1fr));
    align-items: end;
    gap: 5px;
    height: 44px;
    min-width: 126px;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid rgba(245, 191, 61, 0.16);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(245, 191, 61, 0.08), rgba(245, 191, 61, 0.015)),
        linear-gradient(90deg, transparent 0 48%, rgba(245, 191, 61, 0.16) 48% 52%, transparent 52% 100%);
}

.bb-forecast-bars::before,
.bb-forecast-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.bb-forecast-bars::before {
    top: 50%;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
}

.bb-forecast-bars::after {
    top: 6px;
    bottom: 6px;
    background: linear-gradient(90deg, rgba(245, 191, 61, 0.03), rgba(245, 191, 61, 0.13));
}

.bb-forecast-bars em {
    position: relative;
    z-index: 1;
    display: block;
    height: var(--h);
    min-height: 8px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #ffe49b, var(--bb-gold) 58%, #b97917);
    box-shadow: 0 0 12px rgba(245, 191, 61, 0.18);
}

.bb-forecast-bars.mixed em:nth-child(-n+3) {
    background: linear-gradient(180deg, #ffb0a8, var(--bb-red));
    box-shadow: 0 0 12px rgba(255, 107, 95, 0.16);
}

.bb-confidence {
    justify-self: end;
    padding: 8px 12px;
    border-radius: 7px;
    color: #68e0aa;
    background: rgba(35, 201, 135, 0.12);
    border: 1px solid rgba(35, 201, 135, 0.2);
}

.bb-table-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    color: var(--bb-muted);
    font-size: 12px;
}

.bb-tools-section {
    padding: 78px 0;
    background:
        radial-gradient(circle at 24% 58%, rgba(245, 191, 61, 0.13), transparent 18rem),
        radial-gradient(circle at 82% 35%, rgba(130, 65, 255, 0.24), transparent 30rem),
        linear-gradient(112deg, #081521, #151338 58%, #101a35);
}

.bb-tools-grid {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
}

.bb-device-art {
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
}

.bb-device-stage {
    position: relative;
    width: min(100%, 520px);
    height: 410px;
    isolation: isolate;
}

.bb-device-stage::before,
.bb-device-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bb-device-stage::before {
    z-index: -2;
    width: 310px;
    height: 310px;
    top: 26px;
    left: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 73, 255, 0.32), rgba(77, 125, 255, 0.12) 42%, transparent 70%);
    filter: blur(10px);
}

.bb-device-stage::after {
    z-index: -1;
    right: 52px;
    bottom: 20px;
    left: 38px;
    height: 52px;
    border-radius: 50%;
    background: rgba(1, 5, 16, 0.76);
    filter: blur(20px);
    transform: rotate(-2deg);
}

.bb-device-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(129, 91, 255, 0.22);
    border-radius: 50%;
    transform: rotate(-16deg);
}

.bb-device-orbit::before,
.bb-device-orbit::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9c76ff;
    box-shadow: 0 0 15px rgba(156, 92, 255, 0.92);
}

.orbit-one {
    width: 430px;
    height: 250px;
    top: 62px;
    left: 15px;
}

.orbit-one::before { top: 24px; right: 66px; }
.orbit-one::after { bottom: 20px; left: 83px; }

.orbit-two {
    width: 310px;
    height: 380px;
    top: -4px;
    left: 90px;
    transform: rotate(42deg);
}

.orbit-two::before { top: 51px; left: 34px; }
.orbit-two::after { right: 27px; bottom: 84px; }

.bb-terminal {
    position: absolute;
    z-index: 2;
    width: 440px;
    height: 315px;
    top: 45px;
    left: 38px;
    overflow: hidden;
    border: 1px solid rgba(148, 174, 225, 0.22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 31, 56, 0.96), rgba(7, 17, 35, 0.98));
    box-shadow:
        0 32px 65px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(90, 112, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotateY(-7deg) rotateX(3deg) rotateZ(-1.5deg);
    transform-style: preserve-3d;
}

.bb-terminal::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: -80px;
    left: -105px;
    width: 270px;
    height: 180px;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.055), transparent 64%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.bb-terminal-topbar {
    height: 37px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border-bottom: 1px solid rgba(148, 174, 225, 0.12);
    color: #75839b;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.bb-window-controls {
    display: flex;
    gap: 5px;
}

.bb-window-controls i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3e4b61;
}

.bb-window-controls i:first-child { background: #ff6b5f; }
.bb-window-controls i:nth-child(2) { background: #f5bf3d; }
.bb-window-controls i:last-child { background: #23c987; }

.bb-terminal-status {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #69dca9;
}

.bb-terminal-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #23c987;
    box-shadow: 0 0 8px rgba(35, 201, 135, 0.75);
}

.bb-terminal-body {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    height: calc(100% - 37px);
}

.bb-terminal-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-right: 1px solid rgba(148, 174, 225, 0.1);
    background: rgba(4, 12, 25, 0.28);
}

.bb-terminal-rail .material-icons {
    position: relative;
    color: #74839c;
    font-size: 15px;
}
.code-comment { color: #8b9cb5; }
.bb-terminal-rail .active {
    color: var(--bb-gold);
    filter: drop-shadow(0 0 5px rgba(245, 191, 61, 0.48));
}

.bb-terminal-rail .active::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    top: -3px;
    left: -15px;
    border-radius: 2px;
    background: var(--bb-gold);
}

.bb-terminal-content {
    padding: 14px 16px 12px;
}

.bb-terminal-pair {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bb-terminal-coin {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #11182a;
    background: linear-gradient(145deg, #ffe68e, #e6a929);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 5px 16px rgba(245, 191, 61, 0.16);
}

.bb-terminal-pair > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-terminal-pair strong {
    color: #f7f9fc;
    font-size: 10px;
    letter-spacing: 0.03em;
}

.bb-terminal-pair small,
.bb-floating-card small,
.bb-terminal-metrics small {
    color: #8090a9;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.bb-terminal-pair .bb-terminal-price {
    margin-left: auto;
    align-items: flex-end;
}

.bb-terminal-price strong { font-size: 13px; }
.bb-terminal-price small { color: #45d49a; font-size: 7px; }

.bb-terminal-chart {
    position: relative;
    height: 162px;
    margin-top: 9px;
    border-top: 1px solid rgba(116, 142, 181, 0.09);
    border-bottom: 1px solid rgba(116, 142, 181, 0.09);
    background:
        linear-gradient(rgba(110, 135, 171, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 135, 171, 0.075) 1px, transparent 1px);
    background-size: 100% 40px, 60px 100%;
}

.bb-terminal-chart::after {
    content: "NOW";
    position: absolute;
    top: 11px;
    left: 48.4%;
    bottom: 11px;
    padding-left: 5px;
    border-left: 1px dashed rgba(245, 191, 61, 0.3);
    color: rgba(245, 191, 61, 0.48);
    font-size: 5px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.bb-terminal-chart svg {
    position: absolute;
    z-index: 1;
    inset: 8px 0 17px;
    width: 100%;
    height: calc(100% - 25px);
    overflow: visible;
}

.bb-chart-area { fill: url(#bb-terminal-area); }

.bb-chart-history,
.bb-chart-projection {
    fill: none;
    stroke: var(--bb-gold);
    stroke-width: 2.4;
    vector-effect: non-scaling-stroke;
    filter: url(#bb-terminal-glow);
}

.bb-chart-projection {
    stroke-dasharray: 5 5;
    opacity: 0.86;
}

.bb-chart-now {
    fill: #0c1a30;
    stroke: var(--bb-gold);
    stroke-width: 2;
}

.bb-chart-target {
    fill: #fff2b7;
    stroke: var(--bb-gold);
    stroke-width: 3;
    filter: url(#bb-terminal-glow);
}

.bb-chart-tag {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 4px;
    padding: 3px 5px;
    border: 1px solid rgba(245, 191, 61, 0.22);
    border-radius: 3px;
    color: #e8bb50;
    background: rgba(245, 191, 61, 0.08);
    font-size: 5px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.bb-volume-bars {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 15px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    opacity: 0.46;
}

.bb-volume-bars i {
    flex: 1;
    height: var(--v);
    min-height: 2px;
    border-radius: 1px 1px 0 0;
    background: #6b85af;
}

.bb-volume-bars i:nth-child(n+8) { background: var(--bb-gold); }

.bb-terminal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px;
}

.bb-terminal-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 12px;
    border-left: 1px solid rgba(148, 174, 225, 0.12);
}

.bb-terminal-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.bb-terminal-metrics strong {
    display: flex;
    align-items: center;
    color: #e7ecf5;
    font-size: 9px;
}

.bb-terminal-metrics .material-icons {
    margin-right: 3px;
    color: #38ce94;
    font-size: 10px;
}

.bb-terminal-metrics .low { color: #5bdda9; }

.bb-floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    border: 1px solid rgba(171, 191, 226, 0.2);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(25, 41, 70, 0.96), rgba(9, 20, 39, 0.98));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.bb-signal-card {
    left: 2px;
    bottom: 19px;
    width: 190px;
    gap: 10px;
    padding: 11px 12px;
    transform: rotate(-2deg);
}

.bb-float-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: var(--bb-gold);
    background: rgba(245, 191, 61, 0.1);
    border: 1px solid rgba(245, 191, 61, 0.22);
}
.bb-code-card .hljs-comment, .bb-code-card .hljs-quote { color: #8b9cb5; }
.bb-float-icon .material-icons { font-size: 16px; }

.bb-floating-card > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-floating-card strong {
    color: #f5f7fb;
    font-size: 10px;
}

.bb-signal-arrow {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-left: auto;
    border-radius: 50%;
    color: #55dca8;
    background: rgba(35, 201, 135, 0.11);
}

.bb-signal-arrow .material-icons { font-size: 13px; }

.bb-confidence-card {
    right: 0;
    top: 4px;
    gap: 9px;
    padding: 9px 12px 9px 9px;
    transform: rotate(2deg);
}

.bb-confidence-ring {
    display: grid;
    place-items: center;
    grid-auto-flow: column;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle, #111d34 58%, transparent 61%),
        conic-gradient(var(--bb-gold) 0 94%, rgba(122, 143, 178, 0.18) 94% 100%);
    font-size: 9px;
    font-weight: 800;
}

.bb-confidence-ring small {
    margin-left: -4px;
    color: var(--bb-gold);
    font-size: 5px;
}

.bb-bitcoin-orb {
    position: absolute;
    z-index: 5;
    right: 7px;
    bottom: 34px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 226, 129, 0.62);
    border-radius: 50%;
    background:
        radial-gradient(circle at 33% 27%, rgba(255, 246, 193, 0.95), rgba(245, 191, 61, 0.96) 24%, #c57e16 72%);
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(245, 191, 61, 0.28),
        inset -8px -10px 16px rgba(111, 59, 4, 0.34),
        inset 5px 5px 12px rgba(255, 246, 201, 0.34);
    transform: rotate(9deg);
}

.bb-bitcoin-orb::before,
.bb-bitcoin-orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.bb-bitcoin-orb::before {
    inset: 6px;
    border: 1px solid rgba(119, 65, 6, 0.44);
}

.bb-bitcoin-orb::after {
    width: 83px;
    height: 83px;
    border: 1px dashed rgba(245, 191, 61, 0.34);
}

.bb-bitcoin-orb span {
    color: #fff5c6;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 3px rgba(93, 48, 2, 0.56);
}

.bb-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 36px;
    margin-top: 36px;
}

.bb-tool-list div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 14px;
}

.bb-tool-list i {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 191, 61, 0.32);
    border-radius: 7px;
    color: var(--bb-gold);
    background: rgba(245, 191, 61, 0.08);
}

.bb-tool-list strong {
    color: #fff;
    font-size: 13px;
}

.bb-tool-list span {
    color: var(--bb-muted);
    font-size: 12px;
    line-height: 1.45;
}

.bb-api-section {
    padding: 70px 0 64px;
    background: linear-gradient(180deg, rgba(5, 16, 28, 0.96), rgba(6, 17, 31, 0.98));
}

.bb-api-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.bb-check-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 28px;
}

.bb-check-list li {
    color: var(--bb-soft);
    font-size: 13px;
    margin-bottom: 13px;
}

.bb-check-list li::before {
    content: "✓";
    color: var(--bb-green);
    margin-right: 10px;
}

.bb-code-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.bb-code-tabs button {
    border: 0;
    color: var(--bb-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 13px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: color 0.16s ease, background 0.16s ease;
}

.bb-code-tabs button:hover,
.bb-code-tabs button:focus-visible {
    color: #fff;
    background: rgba(148, 163, 184, 0.12);
    outline: none;
}

.bb-code-tabs .active {
    color: #fff;
    background: rgba(77, 125, 255, 0.18);
}

.bb-code-card pre {
    margin: 0;
    max-height: 470px;
    padding: 24px 26px 32px;
    overflow: auto;
    color: #d9e3f0;
    font: 13px/1.75 "SF Mono", Consolas, monospace;
}

.code-comment { color: #6f7d93; }
.code-keyword { color: #c083ff; }
.code-string { color: #bce573; }

.bb-final-cta {
    padding: 0 0 36px;
}

.bb-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid rgba(106, 72, 255, 0.42);
    border-radius: 12px;
    padding: 34px 92px;
    background:
        radial-gradient(circle at 80% 40%, rgba(245, 191, 61, 0.14), transparent 18rem),
        linear-gradient(135deg, rgba(39, 26, 93, 0.82), rgba(16, 28, 62, 0.82));
}

.bb-final-card h2 {
    margin: 0 0 10px;
    font-size: 27px;
    color: #fff;
}

.bb-final-card p {
    max-width: 440px;
    margin: 0;
    color: var(--bb-soft);
    line-height: 1.6;
}

.bb-home-footer {
    padding: 32px 0 36px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(3, 12, 22, 0.62);
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 1.35fr;
    gap: 48px;
}

.bb-footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 19px;
}

.bb-footer-brand p,
.bb-home-footer a,
.bb-status-card span,
.bb-status-card small {
    color: var(--bb-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bb-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.bb-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 7px;
    color: #b9c7db;
    background: rgba(8, 16, 28, 0.62);
    text-decoration: none;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.bb-socials a:hover,
.bb-socials a:focus-visible {
    color: #fff;
    border-color: rgba(245, 191, 61, 0.44);
    background: rgba(245, 191, 61, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.bb-socials i {
    font-size: 15px;
    line-height: 1;
}

.bb-home-footer nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bb-home-footer nav strong {
    color: #fff;
    font-size: 12px;
    margin-bottom: 5px;
}

.bb-home-footer a {
    text-decoration: none;
}

.bb-status-card {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    background: rgba(15, 24, 39, 0.72);
    padding: 18px;
}

.bb-status-card div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.bb-status-card strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8ed8ab;
    font-size: 11px;
    text-align: right;
}

.bb-status-card small {
    display: block;
    margin-top: 20px;
    text-align: right;
}

@media (max-width: 1020px) {
    .bb-preview-grid,
    .bb-tools-grid,
    .bb-api-grid {
        grid-template-columns: 1fr;
    }

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

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

    .bb-section-copy {
        max-width: 620px;
    }

    #btc-chart-container {
        height: 420px;
    }
}

@media (max-width: 760px) {
    .home-redesign {
        margin-top: -56px;
    }

    .bb-shell,
    .mdl-layout__header-row {
        width: min(100% - 32px, 1180px);
    }

    .mdl-layout__header .mdl-navigation {
        display: none;
    }

    .bb-hero {
        padding-top: 112px;
    }

    .bb-hero h1 {
        font-size: 42px;
    }

    .bb-actions,
    .bb-final-card,
    .bb-chart-topline,
    .bb-chart-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-chart-card {
        padding: 14px;
    }

    .bb-device-art {
        min-height: 390px;
    }

    .bb-device-stage {
        height: 350px;
    }

    .bb-terminal {
        width: calc(100% - 16px);
        height: 290px;
        top: 36px;
        left: 8px;
        transform: rotateZ(-1deg);
    }

    .bb-terminal-body {
        grid-template-columns: 35px minmax(0, 1fr);
    }

    .bb-terminal-rail .active::after {
        left: -11px;
    }

    .bb-terminal-content {
        padding: 12px 10px 10px;
    }

    .bb-terminal-chart {
        height: 141px;
    }

    .bb-terminal-metrics > div {
        padding-left: 7px;
    }

    .bb-signal-card {
        bottom: -2px;
        left: 0;
        width: 172px;
    }

    .bb-confidence-card {
        top: 0;
        right: -1px;
    }

    .bb-bitcoin-orb {
        right: 3px;
        bottom: -2px;
        width: 58px;
        height: 58px;
    }

    .bb-bitcoin-orb::after {
        width: 67px;
        height: 67px;
    }

    .bb-bitcoin-orb span {
        font-size: 34px;
    }

    #btc-chart-container {
        height: 300px;
    }

    .bb-card-grid,
    .bb-footer-grid,
    .bb-tool-list,
    .bb-stats-row {
        grid-template-columns: 1fr;
    }

    .bb-table-head {
        display: none;
    }

    .bb-table-row {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        padding: 18px;
    }

    .bb-forecast-bars {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bb-confidence {
        justify-self: start;
    }

    .bb-final-card {
        padding: 28px;
    }
}

@media (max-width: 390px) {
    .bb-terminal-topbar > span {
        display: none;
    }

    .bb-terminal-topbar {
        grid-template-columns: 1fr 1fr;
    }

    .bb-terminal-rail {
        display: none;
    }

    .bb-terminal-body {
        grid-template-columns: 1fr;
    }

    .bb-terminal-price strong {
        font-size: 11px;
    }
}

.bb-code-card .hljs { background: transparent; color: #d9e3f0; padding: 0; }
.bb-code-card .hljs-comment, .bb-code-card .hljs-quote { color: #6f7d93; }
.bb-code-card .hljs-keyword, .bb-code-card .hljs-selector-tag, .bb-code-card .hljs-subst { color: #c083ff; }
.bb-code-card .hljs-string, .bb-code-card .hljs-doctag { color: #bce573; }
.bb-code-card .hljs-number, .bb-code-card .hljs-literal { color: #f5bf3d; }
.bb-code-card .hljs-title, .bb-code-card .hljs-section, .bb-code-card .hljs-attr, .bb-code-card .hljs-attribute { color: #7cc7ff; }
.bb-code-card .hljs-built_in, .bb-code-card .hljs-type { color: #64d8cb; }
.bb-code-card .hljs-variable, .bb-code-card .hljs-template-variable { color: #ffa657; }
