/* =========================================================
   HourlyHedge — Tool Styles (Static Version)
   ========================================================= */

.hh-wrapper {
    --hh-bg: #080b12;
    --hh-glass: rgba(255, 255, 255, 0.045);
    --hh-border: rgba(255, 255, 255, 0.08);
    --hh-text: #eef0f6;
    --hh-muted: #6b7280;
    --hh-blue: #4f6ef7;
    --hh-purple: #8b5cf6;
    --hh-cyan: #06b6d4;
    --hh-pkr: #a78bfa;
    --hh-red: #ef4444;
    --hh-green: #22c55e;
    --hh-yellow: #f59e0b;
    --hh-r: 18px;
    --hh-r-sm: 11px;
    --hh-t: 0.2s cubic-bezier(.4, 0, .2, 1);

    background: var(--hh-bg);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-r);
    padding: 30px;
    max-width: 700px;
    margin: 40px auto;
    color: var(--hh-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

.hh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hh-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hh-blue), var(--hh-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hh-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.hh-version-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.hh-controls-strip {
    background: var(--hh-glass);
    border-radius: var(--hh-r-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.hh-control-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.hh-pill-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 100px;
}

.hh-pill {
    background: transparent;
    border: none;
    color: var(--hh-muted);
    padding: 6px 15px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--hh-t);
}

.hh-pill.active {
    background: var(--hh-blue);
    color: #fff;
}

.hh-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.hh-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hh-input-wrap {
    display: flex;
    align-items: center;
    background: var(--hh-glass);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-r-sm);
    padding: 0 15px;
}

.hh-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 10px;
    width: 100%;
    outline: none;
}

.hh-calc-btn {
    width: 100%;
    padding: 15px;
    border-radius: var(--hh-r-sm);
    border: none;
    background: linear-gradient(90deg, var(--hh-blue), var(--hh-purple));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hh-t);
}

.hh-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 110, 247, 0.3);
}

/* Results */
.hh-results {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hh-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.hh-stat-card {
    background: var(--hh-glass);
    padding: 15px;
    border-radius: var(--hh-r-sm);
    text-align: center;
}

.hh-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hh-blue);
}

.hh-stat-label {
    font-size: 0.65rem;
    color: var(--hh-muted);
    text-transform: uppercase;
}

.hh-timer-cta {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: var(--hh-r-sm);
    text-align: center;
}

.hh-timer-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.hh-timer-ring {
    transform: rotate(-90deg);
}

.hh-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.hh-ring-fill {
    fill: none;
    stroke: var(--hh-blue);
    stroke-width: 8;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1s linear;
}

.hh-timer-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hh-icon-lg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.hh-icon-sm {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .hh-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hh-inputs {
        grid-template-columns: 1fr;
    }
}