/* Product demo UI — denser mock of real Hipertrofit screens
   Scoped under #hfProductDemo / .hf-demo-* to avoid leaking into the app. */

.hf-demo {
    max-width: 980px;
}

/* Override home-saas.css stage sizing so panels aren't clipped */
#hfProductDemo .hf-demo-stage {
    position: relative;
    width: 100%;
    height: 640px;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(136, 240, 71, 0.05), transparent 45%),
        #101010;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

#hfProductDemo .hf-demo-scale {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0.65rem 0.85rem;
}

#hfProductDemo .hf-demo-panel {
    max-width: 920px;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

#hfProductDemo .hf-demo-panel.is-active {
    display: flex;
}

/* Simulated pointer for autoplay */
.hf-demo-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 30;
    width: 22px;
    height: 22px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-40px, -40px, 0) scale(0.92);
    transition:
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
    will-change: transform, opacity;
}

.hf-demo-cursor.is-on { opacity: 1; }

.hf-demo-cursor svg {
    display: block;
    width: 22px;
    height: 22px;
    transform-origin: 4px 2px;
    transition: transform 0.12s ease;
}

.hf-demo-cursor.is-click svg {
    transform: scale(0.82);
}

.hf-demo-cursor-ripple {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(136, 240, 71, 0.45);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

.hf-demo-cursor.is-click .hf-demo-cursor-ripple {
    animation: hf-demo-ripple 0.45s ease-out;
}

@keyframes hf-demo-ripple {
    0% { opacity: 0.7; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(2.6); }
}

@media (prefers-reduced-motion: reduce) {
    .hf-demo-cursor { display: none !important; }
}

.hf-demo-frame {
    width: 100%;
    height: 100%;
    max-height: none;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.hf-demo-frame--phone {
    max-width: 318px;
    width: 100%;
    margin: 0 auto;
    border-radius: 28px;
    border-width: 2px;
    border-color: #333;
    background: #050505;
    max-height: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 22px 48px rgba(0, 0, 0, 0.55);
}

.hf-demo-phone-bezel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.hf-demo-phone-notch {
    width: 86px;
    height: 8px;
    margin: 8px auto 2px;
    border-radius: 999px;
    background: #161616;
    flex-shrink: 0;
}

.hf-demo-chrome {
    background: #161616;
    border-bottom: 1px solid #262626;
    padding: 0.55rem 0.85rem 0;
    flex-shrink: 0;
}

.hf-demo-chrome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.hf-demo-week-btn {
    background: #88F047;
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hf-demo-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-family: 'Heebo', sans-serif;
    min-width: 0;
}

.hf-demo-crumb { color: #c8c8c8; }
.hf-demo-crumb.is-muted { color: #777; }
.hf-demo-crumb.is-accent { color: #88F047; font-weight: 700; }
.hf-demo-crumb-sep { color: #555; }

.hf-demo-tabs {
    display: flex;
    gap: 1rem;
}

.hf-demo-tabs span {
    padding: 0.4rem 0.1rem 0.55rem;
    font-size: 0.8rem;
    color: #8a8a8a;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

.hf-demo-tabs span.is-active {
    color: #88F047;
    border-bottom-color: #88F047;
}

.hf-demo-workspace {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 0;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.hf-demo-workspace--plan {
    grid-template-columns: 158px 1fr;
}

.hf-demo-workspace--solo {
    grid-template-columns: 1fr;
}

.hf-demo-vol {
    background: #181818;
    border-right: 1px solid #2a2a2a;
    padding: 0.55rem 0.45rem;
    overflow: hidden;
}

.hf-demo-vol-h {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #aaa;
    padding: 0.3rem 0.35rem 0.2rem;
}

.hf-demo-vol-h i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.hf-demo-vol-h i.is-ok { background: #88F047; }
.hf-demo-vol-h i.is-warn { background: #f44336; }

.hf-demo-vol-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    font-size: 0.72rem;
    color: #b8b8b8;
    border-bottom: 1px solid #1c1c1c;
}

.hf-demo-vol-row:last-child { border-bottom: none; }

.hf-demo-vol-row em {
    font-style: normal;
    color: #666;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    display: flex;
    gap: 0.35rem;
}

.hf-demo-vol-row em b {
    color: #4ddf4d;
    font-weight: 700;
    transition: color 0.2s ease;
}

.hf-demo-vol-row em b.is-flash {
    color: #88F047;
    text-shadow: 0 0 8px rgba(136, 240, 71, 0.45);
}

.hf-demo-vol-row em u {
    text-decoration: none;
    color: #666;
}

.hf-demo-alcance {
    font-style: normal;
    color: #6aaa40;
    font-weight: 600;
}

.hf-demo-main {
    padding: 0.7rem 0.85rem 0.85rem;
    overflow: hidden;
    background: #121412;
    min-width: 0;
}

.hf-demo-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.hf-demo-plan-head strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.hf-demo-plan-head span {
    color: #8a8a8a;
    font-size: 0.78rem;
}

.hf-demo-week-pills,
.hf-demo-day-strip {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hf-demo-week-pills span,
.hf-demo-day-strip span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a8a8a;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.hf-demo-week-pills span.is-active,
.hf-demo-day-strip span.is-active {
    color: #111;
    background: #88F047;
    border-color: #88F047;
}

.hf-demo-day-strip {
    margin-bottom: 0.65rem;
}

.hf-demo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.hf-demo-toolbar span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
}

.hf-demo-ex-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: start;
}

.hf-demo-ex-grid--focus {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    max-width: 560px;
}

.hf-demo-ex-card {
    background: #181b18;
    border: 1px solid #252825;
    border-radius: 12px;
    overflow: hidden;
    min-height: 128px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.hf-demo-ex-card.is-dim { opacity: 0.55; }
.hf-demo-ex-card.is-empty { border-style: dashed; }
.hf-demo-ex-card.is-highlight,
.hf-demo-ex-card.is-filled.is-highlight {
    border-color: rgba(136, 240, 71, 0.5);
    box-shadow: 0 0 0 1px rgba(136, 240, 71, 0.12);
}

.hf-demo-ex-empty {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7368;
    font-size: 0.82rem;
    font-weight: 600;
}

.hf-demo-ex-head {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.65rem 0.7rem 0.5rem;
    background: #1c201c;
    border-bottom: 1px solid #222522;
}

.hf-demo-ex-head strong {
    color: #e4e8e4;
    font-size: 0.82rem;
    line-height: 1.25;
}

.hf-demo-ex-head em {
    font-style: normal;
    color: #6a7368;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hf-demo-ex-acts {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
    color: #88F047;
    font-size: 0.85rem;
}

.hf-demo-ex-acts .fa-trash-alt {
    color: #f44336;
    opacity: 0.45;
    font-size: 0.75rem;
}

.hf-demo-ex-foot {
    display: flex;
    gap: 0.4rem;
    padding: 0 0.65rem 0.65rem;
}

.hf-demo-ex-foot span {
    font-size: 0.68rem;
    font-weight: 600;
    color: #7a9070;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2a2d2a;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.hf-demo-ex-card--add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem;
    border-style: dashed;
    min-height: 148px;
}

.hf-demo-add-search {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    color: #666;
    font-size: 0.75rem;
    background: #141414;
}

.hf-demo-add-btn {
    text-align: center;
    background: #88F047;
    color: #111;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.55rem;
}

.hf-demo-ex-grid-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem 0.7rem;
}

.hf-demo-ex-grid-params > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hf-demo-ex-grid-params .hf-demo-ex-full {
    grid-column: 1 / -1;
}

.hf-demo-ex-grid-params label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a6357;
    margin: 0;
}

.hf-demo-ex-grid-params b,
.hf-demo-ex-grid-params input {
    min-height: 30px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #2a2e2a;
    background: #121412;
    color: #e4e8e4;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    width: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

.hf-demo-ex-grid-params .is-focus input,
.hf-demo-ex-grid-params input.is-changed {
    border-color: #88F047;
    color: #88F047;
}

.hf-demo-picker {
    position: absolute;
    right: 1.1rem;
    bottom: 1rem;
    width: min(260px, 42%);
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.55rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 3;
}

.hf-demo-main { position: relative; }

.hf-demo-picker-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #888;
    padding: 0.25rem 0.35rem 0.45rem;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 0.35rem;
}

.hf-demo-picker-bar em {
    font-style: normal;
    color: #88F047;
    font-weight: 700;
}

.hf-demo-picker button {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #d0d0d0;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
}

.hf-demo-picker button.is-pick {
    border-color: rgba(136, 240, 71, 0.4);
    background: rgba(136, 240, 71, 0.08);
    color: #88F047;
}

/* ---- Client player ---- */
.hf-demo-wp {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #0a0a0a;
    color: #f0f0f0;
}

#hfProductDemo .hf-demo-frame--phone .hf-demo-wp {
    overflow: hidden;
}

.hf-demo-wp-header {
    padding: 0.1rem 0.65rem 0.3rem;
    flex-shrink: 0;
}

.hf-demo-wp-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.hf-demo-wp-brand {
    font-family: 'Jost', 'Heebo', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: #fff;
}

.hf-demo-wp-brand span {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #88F047;
    margin: 0 1px 2px;
    vertical-align: middle;
}

.hf-demo-wp-brand-row > i {
    color: #888;
    font-size: 0.85rem;
}

.hf-demo-wp-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.hf-demo-wp-meta strong {
    display: block;
    font-size: 0.78rem;
    color: #e8e8e8;
    line-height: 1.25;
}

.hf-demo-wp-meta em {
    display: block;
    font-style: normal;
    font-size: 0.68rem;
    color: #88F047;
    margin-top: 0.12rem;
}

.hf-demo-wp-meta em span {
    margin-left: 0.35rem;
    color: #7dd3fc;
    font-weight: 600;
}

.hf-demo-wp-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #777;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.hf-demo-wp-pct {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 800;
    color: #88F047;
}

.hf-demo-wp-warm {
    display: none; /* keep density: podcast + media already signal the player */
    gap: 0.3rem;
    padding: 0 0.65rem 0.35rem;
    overflow: hidden;
}

.hf-demo-wp-warm span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 0.28rem 0.5rem;
    white-space: nowrap;
}

.hf-demo-wp-warm span.is-on {
    color: #88F047;
    border-color: rgba(136, 240, 71, 0.5);
    background: rgba(136, 240, 71, 0.08);
}

.hf-demo-wp-warm span i {
    margin-right: 0.15rem;
    font-size: 0.55rem;
}

.hf-demo-wp-podcast {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    padding: 0 0.65rem;
    min-height: 26px;
    background: rgba(24, 24, 24, 0.95);
    border-bottom: 1px solid #1f1f1f;
    border-left: 2px solid rgba(136, 240, 71, 0.45);
    color: rgba(240, 240, 240, 0.85);
    font-size: 0.65rem;
    font-weight: 500;
    flex-shrink: 0;
}

.hf-demo-wp-podcast i:first-child {
    color: rgba(136, 240, 71, 0.75);
    font-size: 0.75rem;
}

.hf-demo-wp-podcast span { flex: 1; }

.hf-demo-wp-podcast i:last-child {
    font-size: 0.6rem;
    opacity: 0.65;
}

.hf-demo-wp-media {
    position: relative;
    margin: 0 0.65rem 0.35rem;
    border-radius: 12px;
    overflow: hidden;
    height: 78px;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.12) 0%, rgba(10, 10, 10, 0.78) 100%),
        radial-gradient(ellipse at 42% 32%, #3a4a3a 0%, #1a221a 48%, #0d0d0d 100%);
    border: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.hf-demo-wp-media-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.4rem;
}

.hf-demo-wp-media-stage::before {
    content: '';
    position: absolute;
    width: 42px;
    height: 54px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px 24px 10px 10px;
    background: linear-gradient(160deg, rgba(180, 190, 180, 0.35), rgba(40, 50, 40, 0.9));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.hf-demo-wp-media-stage::after {
    content: '';
    position: absolute;
    width: 72px;
    height: 8px;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    background: linear-gradient(90deg, #2a2a2a, #444, #2a2a2a);
    opacity: 0.85;
}

.hf-demo-wp-media-cap {
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 600;
    color: #e8e8e8;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    padding: 0.28rem 0.5rem;
    max-width: 92%;
    text-align: center;
}

.hf-demo-wp-media-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    color: #111;
    background: #88F047;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
}

.hf-demo-wp-media-swap {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 0.65rem;
}

.hf-demo-wp-media-fab {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eee;
    font-size: 0.7rem;
}
.hf-demo-wp-media-fab.is-left { left: 8px; }
.hf-demo-wp-media-fab.is-right { right: 8px; color: #88F047; }

.hf-demo-wp-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0 0.65rem 0.3rem;
    flex-shrink: 0;
}

.hf-demo-wp-title h4 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Jost', 'Heebo', sans-serif;
    line-height: 1.2;
}

.hf-demo-wp-title em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    color: #88F047;
    white-space: nowrap;
}

.hf-demo-wp-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.15rem;
    margin: 0 0.65rem 0.3rem;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.35rem 0.25rem;
    flex-shrink: 0;
}

.hf-demo-wp-metrics label {
    display: block;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 0.1rem;
    text-align: center;
}

.hf-demo-wp-metrics b {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #e8e8e8;
}

.hf-demo-wp-metrics div:first-child b { color: #88F047; }
.hf-demo-wp-metrics .is-rest { color: #5ec8ff; }

.hf-demo-wp-tabs {
    display: flex;
    gap: 0.85rem;
    margin: 0 0.65rem 0.3rem;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.hf-demo-wp-tabs span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.hf-demo-wp-tabs span.is-on {
    color: #fff;
    border-bottom-color: #fff;
}

.hf-demo-wp-goal {
    margin: 0 0.65rem 0.3rem;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(136, 240, 71, 0.06));
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
    flex-shrink: 0;
}

.hf-demo-wp-goal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.hf-demo-wp-goal-top strong {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7dd3fc;
    font-weight: 800;
}

.hf-demo-wp-goal-top strong i {
    margin-right: 0.2rem;
    color: #38bdf8;
}

.hf-demo-wp-goal-top em {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(125, 211, 252, 0.75);
    white-space: nowrap;
}

.hf-demo-wp-goal p {
    margin: 0.3rem 0 0 !important;
    color: #e8e8e8 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.hf-demo-wp-goal p b {
    color: #fff;
    font-weight: 800;
}

.hf-demo-wp-series {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0 0.65rem;
    flex: 1 1 auto;
    min-height: 132px;
    overflow: visible;
}

.hf-demo-wp-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.hf-demo-wp-card.is-pending { opacity: 0.48; }
.hf-demo-wp-card.is-editing {
    border-color: #88F047;
    background: rgba(136, 240, 71, 0.03);
}
.hf-demo-wp-card.is-saved {
    border-color: rgba(136, 240, 71, 0.22);
    background: rgba(136, 240, 71, 0.04);
}

.hf-demo-wp-compact,
.hf-demo-wp-saved {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.35rem 0.55rem;
}

.hf-demo-wp-compact strong,
.hf-demo-wp-saved strong {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    font-weight: 700;
}

.hf-demo-wp-card.is-saved .hf-demo-wp-saved strong {
    color: rgba(136, 240, 71, 0.85);
}

.hf-demo-wp-compact span,
.hf-demo-wp-saved span {
    color: #c8c8c8;
    font-size: 0.78rem;
}

.hf-demo-wp-card.is-saved .hf-demo-wp-saved span {
    color: #88F047;
    font-weight: 600;
}

.hf-demo-wp-sug {
    display: inline-block;
    margin-top: 0.15rem;
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(136, 240, 71, 0.9);
    background: rgba(136, 240, 71, 0.1);
    border: 1px solid rgba(136, 240, 71, 0.22);
    border-radius: 999px;
    padding: 0.1rem 0.35rem;
}

.hf-demo-wp-card.is-saved .hf-demo-wp-saved > i {
    color: #88F047;
    font-size: 0.95rem;
}

.hf-demo-wp-confirm,
.hf-demo-wp-save {
    border: none;
    border-radius: 999px;
    background: #88F047;
    color: #111;
    font-weight: 700;
    font-size: 0.72rem;
    min-height: 30px;
    padding: 0 0.8rem;
    pointer-events: none;
    opacity: 0.9;
    flex-shrink: 0;
}

.hf-demo-wp-card.is-editing .hf-demo-wp-save,
.hf-demo-wp-card[data-phase="2"] .hf-demo-wp-save {
    opacity: 1;
}

.hf-demo-wp-edit {
    padding: 0 0.6rem 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hf-demo-wp-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.hf-demo-wp-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    margin: 0;
}

.hf-demo-wp-fields input {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f0f0f;
    color: #f0f0f0;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.hf-demo-stepper {
    display: grid;
    grid-template-columns: 26px 1fr 26px;
    align-items: center;
    gap: 0.15rem;
}

.hf-demo-stepper i {
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-weight: 700;
}

.hf-demo-wp-edit-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.hf-demo-wp-edit-actions span {
    color: #777;
    font-size: 0.75rem;
    font-weight: 600;
}

.hf-demo-wp-foot {
    margin-top: auto;
    display: grid;
    grid-template-columns: 28px 1fr auto 28px;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem 0.45rem;
    border-top: 1px solid #1a1a1a;
    background: #0c0c0c;
    flex-shrink: 0;
}

.hf-demo-wp-foot-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.7rem;
}

.hf-demo-wp-foot em {
    font-style: normal;
    font-size: 0.68rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hf-demo-wp-foot em i { color: #88F047; }

.hf-demo-wp-foot b {
    font-size: 0.65rem;
    color: #111;
    background: #88F047;
    border-radius: 999px;
    padding: 0.4rem 0.55rem;
    white-space: nowrap;
}

/* ---- Records + charts ---- */
.hf-demo-records {
    padding: 0.55rem 0.75rem 0.65rem;
    background: #121412;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
}

.hf-demo-records-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: #c8c8c8;
    font-size: 0.82rem;
}

.hf-demo-records-toolbar em {
    font-style: normal;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.12rem 0.4rem;
    color: #fff;
    font-weight: 700;
}

.hf-demo-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    color: #8a8a8a;
    font-size: 0.74rem;
}

.hf-demo-check i {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    border: 1px solid #555;
    display: inline-block;
    position: relative;
}

.hf-demo-check i.is-on {
    background: #88F047;
    border-color: #88F047;
}

.hf-demo-check i.is-on::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #111;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.hf-demo-ghost-btn {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
}

.hf-demo-insight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
    flex-shrink: 0;
}

.hf-demo-insight strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.hf-demo-insight > div > span {
    color: #888;
    font-size: 0.7rem;
}

.hf-demo-insight-metric {
    text-align: right;
}

.hf-demo-insight-metric b {
    display: block;
    font-size: 1.35rem;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.hf-demo-insight-metric em {
    display: inline-block;
    margin-top: 0.25rem;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #111;
    background: #88F047;
    border-radius: 999px;
    padding: 0.18rem 0.45rem;
}

.hf-demo-acc {
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    overflow: hidden;
}

.hf-demo-acc.is-open {
    border-color: #3a3a3a;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hf-demo-acc--mini {
    flex-shrink: 0;
}

#hfProductDemo .hf-demo-acc--mini {
    display: none; /* keep room for the main chart */
}

.hf-demo-acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #222;
    flex-shrink: 0;
}

.hf-demo-acc.is-open .hf-demo-acc-head {
    background: #2a2a2a;
}

.hf-demo-acc-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hf-demo-acc-head strong {
    color: #e8e8e8;
    font-size: 0.9rem;
}

.hf-demo-acc.is-open .hf-demo-acc-head strong {
    color: #88F047;
}

.hf-demo-acc-icons {
    color: #88F047;
    font-size: 0.85rem;
}

.hf-demo-acc-head > span {
    color: #8a8a8a;
    font-size: 0.74rem;
    font-weight: 600;
}

.hf-demo-acc-head > span.is-done {
    color: #88F047;
    background: rgba(136, 240, 71, 0.1);
    border: 1px solid rgba(136, 240, 71, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.hf-demo-acc-body {
    padding: 0.45rem 0.65rem 0.55rem;
    border-top: 1px solid #2a2a2a;
    overflow: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hf-demo-week-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.hf-demo-week-checks > div {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.35rem 0.4rem;
    text-align: center;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.hf-demo-week-checks small {
    color: #777;
    font-size: 0.62rem;
}

.hf-demo-week-checks i {
    color: #88F047;
    font-size: 0.7rem;
}

.hf-demo-week-checks em {
    font-style: normal;
    color: #555;
    font-size: 0.75rem;
}

.hf-demo-week-checks b {
    color: #ddd;
    font-size: 0.78rem;
}

.hf-demo-week-checks .is-now {
    border-color: rgba(136, 240, 71, 0.4);
    box-shadow: 0 0 0 1px rgba(136, 240, 71, 0.08);
}

.hf-demo-week-checks .is-now b {
    color: #88F047;
}

.hf-demo-chart {
    background: #141414;
    border: 1px solid #252825;
    border-radius: 10px;
    padding: 0.4rem 0.55rem 0.45rem;
    margin-bottom: 0.45rem;
    flex-shrink: 0;
}

.hf-demo-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.hf-demo-chart-head strong {
    color: #d8d8d8;
    font-size: 0.72rem;
}

.hf-demo-chart-head span {
    color: #88F047;
    font-size: 0.68rem;
    font-weight: 700;
}

.hf-demo-bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 0.45rem;
    min-height: 118px;
    padding: 0.2rem 0.15rem 0;
}

.hf-demo-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    height: 100%;
    min-height: 110px;
    z-index: 1;
}

.hf-demo-bar-col i {
    display: block;
    width: 100%;
    max-width: 34px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #a8ff5a 0%, #88F047 55%, rgba(136, 240, 71, 0.35) 100%);
    box-shadow: 0 0 12px rgba(136, 240, 71, 0.18);
    transition: height 0.55s ease, background 0.3s ease, opacity 0.3s ease;
}

.hf-demo-bar-col small {
    color: #777;
    font-size: 0.62rem;
    font-weight: 600;
}

.hf-demo-bar-col.is-now i {
    box-shadow: 0 0 14px rgba(136, 240, 71, 0.35);
}

.hf-demo-bar-col.is-muted i {
    background: #2a2a2a;
    box-shadow: none;
    opacity: 0.7;
}

.hf-demo-bar-col.is-now.is-live i {
    background: linear-gradient(180deg, #c8ff7a 0%, #88F047 100%);
}

.hf-demo-chart-svg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 1.15rem;
    width: 100%;
    height: calc(100% - 1.15rem);
    display: block;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.hf-demo-chart-line {
    opacity: 1;
    transition: d 0.45s ease;
}

.hf-demo-chart-area {
    opacity: 0.85;
    transition: d 0.45s ease, opacity 0.3s ease;
}

.hf-demo-chart-dots circle {
    fill: #88F047;
    opacity: 1;
    transition: cy 0.45s ease, opacity 0.3s ease, fill 0.3s ease;
}

.hf-demo-chart-dots circle.is-muted {
    fill: #555;
    opacity: 0.7;
}

.hf-demo-chart-dots circle.is-pending {
    opacity: 0.35;
    fill: #666;
}

.hf-demo-chart-dots circle.is-pending.is-on,
.hf-demo-chart-dots circle.is-on {
    opacity: 1;
    fill: #88F047;
    filter: drop-shadow(0 0 5px rgba(136, 240, 71, 0.75));
}

.hf-demo-day-detail-label {
    color: #8a8a8a;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.hf-demo-cal-sets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hf-demo-cal-sets li {
    color: #b8b8b8;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #141614;
    border: 1px solid #252825;
}

.hf-demo-cal-sets li.is-empty {
    color: #6a7368;
    border-style: dashed;
}

.hf-demo-cal-sets li[data-demo-el="record-row"] {
    opacity: 0;
    transform: translateY(6px);
    border-color: rgba(136, 240, 71, 0.28);
    color: #e8e8e8;
    font-weight: 600;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hf-demo-cal-sets li[data-demo-el="record-row"].is-visible {
    opacity: 1;
    transform: none;
}

.hf-demo-mini-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
    padding: 0 0.75rem 0.45rem;
}

.hf-demo-mini-spark i {
    display: block;
    width: 10px;
    border-radius: 2px 2px 0 0;
    background: rgba(136, 240, 71, 0.25);
    height: 40%;
}

.hf-demo-mini-spark i:nth-child(2) { height: 55%; }
.hf-demo-mini-spark i:nth-child(3) { height: 80%; }
.hf-demo-mini-spark i:nth-child(4) { height: 50%; }
.hf-demo-mini-spark i:nth-child(5) { height: 70%; }
.hf-demo-mini-spark i.is-hi { background: #88F047; }

.hf-demo-context-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(136, 240, 71, 0.06);
    border: 1px solid rgba(136, 240, 71, 0.2);
    color: #c8c8c8;
    font-size: 0.78rem;
}

.hf-demo-context-bar > i {
    color: #88F047;
}

.hf-demo-context-bar b {
    color: #fff;
}

.hf-demo-context-bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    color: #88F047;
}

.hf-demo-change-pill,
.hf-demo-ex-foot .hf-demo-change-pill {
    display: inline-flex;
    margin: 0 0 0 auto;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(136, 240, 71, 0.12);
    border: 1px solid rgba(136, 240, 71, 0.35);
    color: #88F047;
    font-size: 0.68rem;
    font-weight: 700;
    font-style: normal;
}

.hf-demo-ex-foot .hf-demo-change-pill[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .hf-demo-ex-card,
    .hf-demo-wp-card,
    .hf-demo-vol-row em b,
    .hf-demo-chart-line,
    .hf-demo-chart-area,
    .hf-demo-chart-dots circle,
    .hf-demo-cal-sets li[data-demo-el="record-row"] {
        transition: none !important;
    }
    .hf-demo-cal-sets li[data-demo-el="record-row"] {
        opacity: 1;
        transform: none;
    }
    .hf-demo-chart-line { stroke-dashoffset: 0; }
    .hf-demo-chart-area { opacity: 1; }
    .hf-demo-chart-dots circle { opacity: 1; }
}

@media (max-width: 991.98px) {
    #hfProductDemo .hf-demo-stage { height: 600px; }
    .hf-demo-workspace,
    .hf-demo-workspace--plan { grid-template-columns: 132px 1fr; }
    .hf-demo-ex-grid { grid-template-columns: 1fr 1fr; }
    .hf-demo-ex-grid .is-dim { display: none; }
    .hf-demo-picker { width: min(240px, 55%); }
}

@media (max-width: 767.98px) {
    #hfProductDemo .hf-demo-stage { height: 580px; }
    .hf-demo-workspace,
    .hf-demo-workspace--plan { grid-template-columns: 1fr; }
    .hf-demo-vol {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.15rem;
        border-right: 0;
        border-bottom: 1px solid #252525;
        padding-bottom: 0.45rem;
    }
    .hf-demo-vol-h { display: none; }
    .hf-demo-vol-row {
        border: 1px solid #252525;
        border-radius: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    .hf-demo-ex-grid { grid-template-columns: 1fr; }
    .hf-demo-ex-grid .is-static:not(.hf-demo-ex-card--add) { display: none; }
    .hf-demo-ex-grid--focus { grid-template-columns: 1fr; max-width: none; }
    .hf-demo-picker {
        position: static;
        width: 100%;
        margin-top: 0.55rem;
    }
    .hf-demo-frame--phone { max-width: 290px; }
    .hf-demo-bars { min-height: 100px; }
    .hf-demo-bar-col { min-height: 92px; }
    .hf-demo-records-toolbar .hf-demo-check { margin-left: 0; width: 100%; }
}

@media (min-width: 992px) {
    #hfProductDemo .hf-demo-stage { height: 660px; }
}
