/* FLASHHUB_API_PHASE1H_ROLE_ANALYTICS_R1 */
/* FLASHHUB_API_PHASE1H_BALANCED_LAYOUT_R11 */
/* FLASHHUB_API_PHASE1H_BALANCED_LAYOUT_R10 */
/* FLASHHUB_API_PHASE1H_BALANCED_LAYOUT_R9 */
:root {
    --fha-bg: #071423;
    --fha-panel: rgba(11, 28, 47, .96);
    --fha-panel-2: rgba(15, 37, 61, .86);
    --fha-border: rgba(132, 171, 216, .18);
    --fha-text: #f4f8ff;
    --fha-muted: #8fa7c2;
    --fha-blue: #4f8cff;
    --fha-cyan: #22d3ee;
    --fha-violet: #8b5cf6;
    --fha-green: #34d399;
    --fha-amber: #fbbf24;
    --fha-red: #fb7185;
}

.fha-shell,
.fha-shell * {
    box-sizing: border-box;
}

.fha-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 18px 0 24px;
    overflow: hidden;
    border: 1px solid var(--fha-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% -15%, rgba(79, 140, 255, .20), transparent 34%),
        radial-gradient(circle at 8% 115%, rgba(139, 92, 246, .15), transparent 35%),
        linear-gradient(145deg, rgba(10, 28, 48, .99), rgba(6, 17, 31, .99));
    color: var(--fha-text);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .25);
}

.fha-public-wrap {
    width: min(1480px, calc(100% - 36px));
    margin: 0 auto;
    padding: 6px 0 22px;
}

.fha-customer-overview,
.fha-partner-overview {
    min-width: 0;
}

body:not(.customer-mode) .fha-customer-overview,
body.customer-mode[data-fh-customer-page]:not([data-fh-customer-page="overview"]) .fha-customer-overview,
body.fh-partner-v3b-ready[data-fh-pv3b-section]:not([data-fh-pv3b-section="dashboard"]) .fha-partner-overview {
    display: none !important;
}

.fha-empty-ring {
    background: conic-gradient(rgba(100, 116, 139, .42) 0 100%);
}

body.customer-mode .fha-public-wrap {
    display: none !important;
}

.fha-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .11;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 184, 224, .20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 184, 224, .20) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.fha-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 19px;
    border-bottom: 1px solid rgba(148, 184, 224, .12);
}

.fha-head-copy {
    min-width: 0;
}

.fha-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.fha-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fha-green);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .12), 0 0 18px rgba(52, 211, 153, .65);
    animation: fha-pulse 2s ease-out infinite;
}

@keyframes fha-pulse {
    0%, 100% { transform: scale(.9); opacity: .75; }
    50% { transform: scale(1.15); opacity: 1; }
}

.fha-title {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.fha-subtitle {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--fha-muted);
    font-size: 12px;
    line-height: 1.65;
}

.fha-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fha-periods {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(148, 184, 224, .14);
    border-radius: 12px;
    background: rgba(3, 13, 25, .55);
}

.fha-period,
.fha-refresh,
.fha-series-button {
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font: inherit;
}

.fha-period {
    min-width: 45px;
    padding: 7px 9px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #7890aa !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.fha-period:hover,
.fha-period.active {
    background: linear-gradient(135deg, #4169e1, #7657e8) !important;
    color: #fff !important;
}

.fha-refresh {
    min-height: 39px;
    padding: 8px 13px !important;
    border: 1px solid rgba(125, 211, 252, .24) !important;
    border-radius: 11px !important;
    background: rgba(14, 45, 70, .70) !important;
    color: #d9f4ff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.fha-refresh:hover {
    border-color: rgba(125, 211, 252, .58) !important;
    background: rgba(20, 69, 104, .78) !important;
}

.fha-refresh[disabled] {
    opacity: .55;
    cursor: wait;
}

.fha-updated {
    width: 100%;
    color: #657e99;
    font-size: 9px;
    text-align: right;
}

.fha-body {
    padding: 20px 24px 24px;
}

.fha-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.fha-kpi {
    position: relative;
    min-width: 0;
    min-height: 118px;
    overflow: hidden;
    padding: 15px 16px 14px;
    border: 1px solid rgba(148, 184, 224, .13);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(20, 46, 73, .86), rgba(11, 26, 45, .88));
}

.fha-kpi::after {
    content: "";
    position: absolute;
    width: 75px;
    height: 75px;
    right: -30px;
    bottom: -35px;
    border-radius: 50%;
    background: var(--fha-kpi-color, var(--fha-blue));
    opacity: .13;
    filter: blur(2px);
}

.fha-kpi-label {
    display: block;
    overflow: hidden;
    color: #8fa7c2;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fha-kpi-value {
    display: block;
    margin-top: 9px;
    overflow: hidden;
    color: #fff;
    font-size: clamp(21px, 2.1vw, 31px);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fha-kpi-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    margin-top: 8px;
    color: #7189a3;
    font-size: 9px;
    line-height: 1.35;
}

.fha-trend {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: #7ee7bf;
    background: rgba(16, 185, 129, .13);
    font-weight: 900;
}

.fha-trend.down {
    color: #fda4af;
    background: rgba(244, 63, 94, .13);
}

.fha-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(250px, .65fr);
    gap: 14px;
}

.fha-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(148, 184, 224, .13);
    border-radius: 17px;
    background: rgba(8, 23, 40, .70);
}

.fha-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fha-panel-head h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 14px;
    font-weight: 900;
}

.fha-panel-head p {
    margin: 4px 0 0;
    color: #6f88a4;
    font-size: 9px;
}

.fha-series-picker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.fha-series-button {
    padding: 5px 8px !important;
    border-radius: 8px !important;
    background: rgba(36, 55, 78, .65) !important;
    color: #839bb6 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

.fha-series-button.active {
    background: rgba(79, 140, 255, .19) !important;
    color: #a9ccff !important;
    box-shadow: inset 0 0 0 1px rgba(79, 140, 255, .33) !important;
}

.fha-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 276px;
}

.fha-chart {
    display: block;
    width: 100%;
    height: 276px;
    overflow: visible;
}

.fha-grid-line {
    stroke: rgba(133, 163, 196, .12);
    stroke-width: 1;
}

.fha-axis-text {
    fill: #627d99;
    font-size: 9px;
    font-family: Inter, system-ui, sans-serif;
}

.fha-area {
    opacity: .42;
}

.fha-line {
    fill: none;
    stroke: var(--fha-cyan);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, .34));
}

.fha-point {
    fill: #071423;
    stroke: #67e8f9;
    stroke-width: 2;
    cursor: crosshair;
}

.fha-point:hover,
.fha-point:focus {
    fill: #67e8f9;
    outline: none;
    r: 5;
}

.fha-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 122px;
    padding: 9px 10px;
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 10px;
    background: rgba(3, 13, 25, .95);
    color: #dcecff;
    font-size: 10px;
    line-height: 1.5;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 9px));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.fha-empty-chart {
    position: absolute;
    inset: 48px 30px 40px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(148, 184, 224, .16);
    border-radius: 14px;
    color: #7189a3;
    font-size: 11px;
    text-align: center;
    pointer-events: none;
}

.fha-donut-layout {
    display: grid;
    place-items: center;
    gap: 17px;
    min-height: 276px;
}

.fha-donut {
    position: relative;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: rgba(55, 79, 105, .4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 50px rgba(0, 0, 0, .22);
}

.fha-privacy-ring {
    border: 13px solid rgba(34, 211, 238, .76);
    background: rgba(34, 211, 238, .08) !important;
    box-shadow:
        inset 0 0 24px rgba(34, 211, 238, .10),
        0 0 32px rgba(34, 211, 238, .09);
}

.fha-donut::after {
    content: "";
    position: absolute;
    inset: 27px;
    border-radius: 50%;
    background: #0a1c30;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .45);
}

.fha-donut-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.fha-donut-center strong {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.fha-donut-center span {
    color: #7189a3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fha-status-list {
    display: grid;
    width: 100%;
    gap: 7px;
}

.fha-status-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    color: #8da4be;
    font-size: 9px;
}

.fha-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.fha-status-row strong {
    color: #dce8f6;
    font-variant-numeric: tabular-nums;
}

.fha-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.fha-rank-list {
    display: grid;
    gap: 11px;
}

.fha-rank-row {
    display: grid;
    grid-template-columns: minmax(95px, .7fr) minmax(110px, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.fha-rank-name {
    min-width: 0;
    overflow: hidden;
    color: #b9c9da;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fha-rank-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(85, 108, 134, .23);
}

.fha-rank-fill {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fha-blue), var(--fha-violet));
    box-shadow: 0 0 12px rgba(79, 140, 255, .34);
}

.fha-rank-value {
    color: #eaf2fb;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    text-align: right;
}

/* FLASHHUB_API_PHASE1H_BOUNDARY_STYLE_R11 */
.fha-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(52, 211, 153, .14);
    border-radius: 12px;
    background: rgba(6, 78, 59, .09);
    color: #7795ac;
    font-size: 9px;
    line-height: 1.55;
}

.fha-privacy strong {
    flex: 0 0 auto;
    color: #6ee7b7;
    letter-spacing: .08em;
}

.fha-error {
    margin: 16px 24px 24px;
    padding: 15px;
    border: 1px solid rgba(251, 113, 133, .30);
    border-radius: 13px;
    background: rgba(127, 29, 29, .16);
    color: #fecdd3;
    font-size: 11px;
}

.fha-skeleton {
    position: relative;
    overflow: hidden;
    min-height: 90px;
}

.fha-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
    animation: fha-shimmer 1.5s infinite;
}

@keyframes fha-shimmer {
    to { transform: translateX(100%); }
}

.fha-compact .fha-head {
    padding: 18px 20px 14px;
}

.fha-compact .fha-body {
    padding: 14px 18px 18px;
}

.fha-compact .fha-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.fha-compact .fha-kpi {
    min-height: 92px;
    padding: 12px 13px;
}

.fha-compact .fha-kpi-value {
    margin-top: 6px;
    font-size: 22px;
}

.fha-compact .fha-bottom-grid,
.fha-compact .fha-privacy,
.fha-compact .fha-periods {
    display: none;
}

.fha-compact .fha-main-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
}

.fha-compact .fha-side-panel {
    display: none;
}

.fha-compact .fha-chart-wrap,
.fha-compact .fha-chart {
    min-height: 205px;
    height: 205px;
}

body.fh-admin-login-mode .fha-admin-mount,
body:not(.fh-admin-authenticated) .fha-admin-mount {
    display: none !important;
}

#page-statistics.fha-phase1h-active > .toolbar {
    display: none !important;
}

#fhCustomerAnalyticsView.fha-phase1h-active > :not(.fha-shell),
#statisticsContent.fha-phase1h-active > :not(.fha-shell) {
    display: none !important;
}

@media (max-width: 1180px) {
    .fha-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fha-main-grid { grid-template-columns: minmax(0, 1.45fr) minmax(240px, .65fr); }
}

@media (max-width: 820px) {
    .fha-public-wrap { width: min(100% - 22px, 1480px); }
    .fha-head { flex-direction: column; }
    .fha-controls { width: 100%; justify-content: flex-start; }
    .fha-updated { text-align: left; }
    .fha-kpis,
    .fha-compact .fha-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fha-main-grid,
    .fha-bottom-grid { grid-template-columns: 1fr; }
    .fha-chart-wrap,
    .fha-chart { min-height: 238px; height: 238px; }
}

@media (max-width: 520px) {
    .fha-shell { border-radius: 17px; }
    .fha-head { padding: 18px 16px 15px; }
    .fha-body { padding: 14px; }
    .fha-kpis,
    .fha-compact .fha-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .fha-kpi { min-height: 98px; padding: 12px; }
    .fha-kpi-value { font-size: 21px; }
    .fha-panel { padding: 13px; }
    .fha-panel-head { flex-direction: column; }
    .fha-rank-row { grid-template-columns: minmax(75px, .7fr) minmax(65px, 1fr) auto; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .fha-live-dot,
    .fha-skeleton::after { animation: none; }
}

/* Homepage motion is decorative and never generates marketplace events. */
.fha-bottom-grid[hidden] { display: none; }
.fha-public-mix-note { color: #91a9c2; font-size: 11px; line-height: 1.7; margin: 18px 0 0; }
body:not(.customer-mode) .fh-motion-toggle {
    padding: 8px 10px; min-height: 36px; border: 1px solid #365777;
    background: rgba(8, 25, 44, .6); color: #b7d5ef; border-radius: 9px;
    font: inherit; font-size: 11px; cursor: pointer;
}
.fh-motion-toggle:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
@keyframes fh-home-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fh-home-signal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fh-home-light { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes fh-home-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fh-home-reveal { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    body:not(.customer-mode) .fh-ref-app { animation: fh-home-float 6s ease-in-out infinite; }
    body:not(.customer-mode) .fh-ref-app:nth-child(3n+1) { animation-delay: -2s; }
    body:not(.customer-mode) .fh-ref-app:nth-child(3n+2) { animation-delay: -4s; }
    body:not(.customer-mode) .fh-ref-globe svg { animation: fh-home-float 11s ease-in-out infinite; }
    .fh-globe-routes path { stroke-dasharray: .12 .88; animation: fh-home-signal 6s linear infinite; }
    .fh-globe-routes path:nth-child(2) { animation-delay: -2s; }
    .fh-globe-routes path:nth-child(3) { animation-delay: -4s; }
    .fh-globe-lights circle { animation: fh-home-light 4s ease-in-out infinite; }
    .fh-globe-lights circle:nth-child(even) { animation-delay: -2s; }
    .fha-shell[data-fha-role="public"] .fha-line { stroke-dasharray: 1; animation: fh-home-draw 1.1s ease-out both; }
    .fha-shell[data-fha-role="public"] .fha-area,
    .fha-shell[data-fha-role="public"] .fha-donut { animation: fh-home-reveal .8s ease-out both; }
}
.fh-motion-surface.fh-motion-paused *,
.fh-motion-surface.fh-motion-paused *::before,
.fh-motion-surface.fh-motion-paused *::after { animation-play-state: paused !important; }
/* Pausing must not conceal any part of the real chart. */
.fha-shell.fh-motion-paused .fha-line { animation: none !important; stroke-dasharray: none; }
.fha-shell.fh-motion-paused .fha-area,
.fha-shell.fh-motion-paused .fha-donut { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    .fh-motion-surface *, .fh-motion-surface *::before, .fh-motion-surface *::after { animation: none !important; }
}


/* Single public market surface; preserve the existing sign-in continuation. */
#publicPartnerMarket[hidden] { display: none !important; }
.fh-live-offer-stock { color:#67e8f9; font-weight:700; margin:10px 0; }
.fh-live-offer-partner { color:#8ba6bf; font-size:11px; }
#fhPublicResultsSummary { display:block; }
