/* Kavach — Hive — How it Works
 * Scene-specific styles. The editorial chrome is inherited from the
 * shared .kavach-mhiw namespace. This file only adds the two Hive scenes:
 *   .mhiw-hw — submissions waterfall (triage engine)
 *   .mhiw-hp — payouts leaderboard + escrow settlement
 */

/* ========================================================================
 * Scene 1: Waterfall (Triage Engine)
 * ====================================================================== */
.mhiw-hw {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-hw__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-hw__label--left  { left: 60px;  letter-spacing: 4px; color: rgba(212, 175, 55, 0.75); }
.mhiw-hw__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }

.mhiw-hw__lane-label {
    position: absolute;
    top: 60px;
    width: 240px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    transform: translateX(-50%);
}
.mhiw-hw__lane-guide {
    position: absolute;
    top: 85px;
    width: 1px;
    height: 250px;
    opacity: 0.3;
}

.mhiw-hw__triage {
    position: absolute;
    top: 180px;
    width: 180px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 3px;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 5px 0;
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(-50%);
}

.mhiw-hw__card {
    position: absolute;
    width: 220px;
    padding: 8px 12px;
    background: #0a0a0a;
    border: 1px solid rgba(232, 226, 214, 0.2);
    transform: translateX(-50%);
    transition: border-color 0.25s;
    pointer-events: none;
}
.mhiw-hw__card--valid { border-color: #d4af37; }
.mhiw-hw__card--dup   { border-color: rgba(212, 175, 55, 0.5); }
.mhiw-hw__card--spam  { border-color: rgba(230, 81, 73, 0.5); }

.mhiw-hw__card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}
.mhiw-hw__card-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-hw__card-sev {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
}
.mhiw-hw__card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 12px;
    color: #e8e2d6;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mhiw-hw__card-ref {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    letter-spacing: 1px;
    color: rgba(232, 226, 214, 0.35);
    margin-top: 2px;
}

.mhiw-hw__counters {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 90px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 1px solid rgba(232, 226, 214, 0.12);
    padding-top: 18px;
}
.mhiw-hw__counter-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    margin-bottom: 6px;
}
.mhiw-hw__counter-v {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 30px;
    letter-spacing: -0.8px;
    line-height: 1;
    color: #e8e2d6;
}

.mhiw-hw__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mhiw-hw__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 560px;
    font-weight: 400;
}
.mhiw-hw__caption-accent { color: #d4af37; }
.mhiw-hw__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
    line-height: 1.5;
}

/* ========================================================================
 * Scene 2: Payouts (Leaderboard + Escrow)
 * ====================================================================== */
.mhiw-hp {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-hp__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-hp__label--left  { left: 60px;  letter-spacing: 4px; color: rgba(212, 175, 55, 0.75); }
.mhiw-hp__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }

.mhiw-hp__lb-head {
    position: absolute;
    left: 60px;
    top: 78px;
    width: 300px;
    display: grid;
    grid-template-columns: 28px 1fr 44px;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    border-bottom: 1px solid rgba(232, 226, 214, 0.12);
    padding-bottom: 6px;
}
.mhiw-hp__lb-head-valid { text-align: right; }

.mhiw-hp__row {
    position: absolute;
    left: 60px;
    width: 300px;
    height: 36px;
    display: grid;
    grid-template-columns: 28px 1fr 44px;
    gap: 8px;
    align-items: center;
    padding: 0 8px;
    border-left: 2px solid transparent;
    transition: background 0.3s;
}
.mhiw-hp__row--active {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: #d4af37;
}
.mhiw-hp__row-rank {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-hp__row-rank--podium { color: #d4af37; }
.mhiw-hp__row-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #e8e2d6;
}
.mhiw-hp__row-earnings {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(232, 226, 214, 0.55);
    margin-top: 1px;
}
.mhiw-hp__row-valid {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 300;
    text-align: right;
    color: #e8e2d6;
    position: relative;
}
.mhiw-hp__row--active .mhiw-hp__row-valid { color: #d4af37; }
.mhiw-hp__row-bump {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: #d4af37;
}

.mhiw-hp__right {
    position: absolute;
    left: 420px;
    top: 78px;
    right: 60px;
}
.mhiw-hp__right-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    border-bottom: 1px solid rgba(232, 226, 214, 0.12);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.mhiw-hp__finding {
    padding: 16px 18px;
    border: 1px solid #d4af37;
    background: #0a0a0a;
    margin-bottom: 20px;
    transition: opacity 0.3s, transform 0.3s;
}
.mhiw-hp__finding-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d4af37;
    margin-bottom: 8px;
}
.mhiw-hp__finding-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    color: #e8e2d6;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.mhiw-hp__slots {
    display: flex;
    gap: 10px;
}
.mhiw-hp__slot {
    flex: 1;
    border: 1px solid rgba(232, 226, 214, 0.2);
    padding: 8px 12px;
    opacity: 0.3;
    transition: all 0.3s;
}
.mhiw-hp__slot--active {
    border-color: #d4af37;
    opacity: 1;
}
.mhiw-hp__slot-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-hp__slot-v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: rgba(232, 226, 214, 0.55);
    margin-top: 3px;
    transition: color 0.3s;
}
.mhiw-hp__slot--active .mhiw-hp__slot-v { color: #d4af37; }

.mhiw-hp__payout {
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 18px 20px;
    background: transparent;
    transition: all 0.3s;
}
.mhiw-hp__payout--flowing {
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(212, 175, 55, 0.05);
}
.mhiw-hp__payout-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    margin-bottom: 10px;
}
.mhiw-hp__amounts {
    display: flex;
    align-items: baseline;
    gap: 20px;
}
.mhiw-hp__amount-inr,
.mhiw-hp__amount-usd {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: 40px;
    letter-spacing: -1.5px;
    line-height: 1;
}
.mhiw-hp__amount-inr { color: #d4af37; }
.mhiw-hp__amount-usd { color: #e8e2d6; }
.mhiw-hp__amount-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    margin-top: 4px;
}
.mhiw-hp__amount-sep {
    width: 1px;
    height: 50px;
    background: rgba(232, 226, 214, 0.15);
}

.mhiw-hp__svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mhiw-hp__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(232, 226, 214, 0.12);
    padding-top: 14px;
}
.mhiw-hp__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 560px;
    font-weight: 400;
}
.mhiw-hp__caption-accent { color: #d4af37; }
.mhiw-hp__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
}
