/* ===== Power Tool – Desktop + Mobile Wizard ===== */
.power-tool {
    position: relative;
    border-radius: 26px;
    padding: 28px;
    margin-block: 32px;
    background: #fefefe;
    border: 1px solid rgba(15, 42, 59, 0.08);
    box-shadow: 0 30px 80px rgba(15, 42, 59, 0.08);
    overflow: visible;
    isolation: isolate;
}
.power-tool::before,
.power-tool::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.22;
    filter: blur(40px);
    z-index: 0;
}
.power-tool::before {
    width: 420px;
    height: 420px;
    inset: -100px auto auto -140px;
    background: radial-gradient(circle, #b9f1ff 0%, transparent 65%);
}
.power-tool::after {
    width: 360px;
    height: 360px;
    inset: auto -200px -140px auto;
    background: radial-gradient(circle, #ffe4a6 0%, transparent 70%);
}
.power-tool__header,
.power-tool__layout {
    position: relative;
    z-index: 1;
}

/* header */
.power-tool__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.power-tool__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.78rem;
    font-weight: 800;
    color: #869fb8;
}
.power-tool__confidence {
    min-width: 280px;
    border-radius: 18px;
    padding: 16px 20px;
    background: #f2fbff;
    border: 1px solid rgba(34, 182, 199, 0.25);
    box-shadow: 0 18px 40px rgba(34, 182, 199, 0.18);
}
.power-confidence {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}
.power-confidence input[type="range"] {
    accent-color: #22b6c7;
}
.power-confidence__value {
    font-size: 0.88rem;
    color: #46607a;
    font-weight: 600;
    text-align: right;
}

/* wizard nav (mobile only) */
.power-wizard-nav {
    display: none;
    margin: 18px 0;
    border: 1px solid rgba(15, 42, 59, 0.08);
    border-radius: 999px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 15px 35px rgba(15, 42, 59, 0.08);
}
.power-wizard-nav button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-weight: 700;
    color: #7a8ea5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
}
.power-wizard-nav button span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #eaf4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 2px;
}
.power-wizard-nav button.is-active {
    color: #0f2a3b;
    background: #eafcfe;
    box-shadow: 0 10px 25px rgba(34, 182, 199, 0.2);
}
.power-wizard-nav button.is-active span {
    background: #22b6c7;
    color: #fff;
}

/* layout */
.power-tool__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .power-tool__layout {
        grid-template-columns: 1fr;
    }
}

/* scenarios */
.power-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.power-scenario {
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 59, 0.12);
    padding: 14px 16px;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition:
        transform 0.18s,
        border-color 0.18s,
        box-shadow 0.18s;
    position: relative;
}
.power-scenario i {
    font-size: 1.3rem;
    color: #22b6c7;
}
.power-scenario.active {
    border-color: #22b6c7;
    box-shadow: 0 18px 55px rgba(34, 182, 199, 0.25);
    transform: translateY(-3px);
}
.power-scenario.active i {
    color: #0d3947;
}
.power-scenario__title {
    font-weight: 800;
}
.power-scenario__hint {
    display: block;
    font-size: 0.84rem;
    color: #607586;
}
.power-scenario__summary {
    margin: 18px 0;
    border-radius: 18px;
    border: 1px dashed rgba(15, 42, 59, 0.15);
    padding: 16px;
    background: #f9feff;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.power-scenario__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.power-tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: #eefcfe;
    border: 1px solid rgba(34, 182, 199, 0.35);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0c3a45;
}

/* appliances */
.power-appliances {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.power-item {
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 59, 0.08);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 42, 59, 0.08);
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        border-color 0.18s;
}
.power-item:hover {
    transform: translateY(-2px);
    border-color: #bfeff6;
    box-shadow: 0 28px 60px rgba(34, 182, 199, 0.18);
}
.power-item__toggle {
    display: flex;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}
.power-item__toggle input {
    width: 20px;
    height: 20px;
    accent-color: #22b6c7;
}
.power-item__title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.power-item__meta {
    font-size: 0.85rem;
    color: #627384;
}
.power-item__qty {
    min-width: 180px;
    text-align: center;
    font-size: 0.8rem;
    color: #627384;
}
.power-counter {
    margin-top: 6px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 59, 0.14);
}
.power-counter button {
    width: 44px;
    border: none;
    background: #f6fbff;
    font-size: 1.1rem;
    cursor: pointer;
    color: #0f2a3b;
    font-weight: 700;
    transition: background 0.2s;
}
.power-counter button:hover {
    background: #dbf4f9;
}
.power-counter input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 0;
}

/* panel */
.power-tool__panel {
    border-radius: 20px;
    border: 1px solid rgba(15, 42, 59, 0.08);
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(15, 42, 59, 0.12);
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    scrollbar-width: thin;
}
.power-tool__panel::-webkit-scrollbar {
    width: 6px;
}
.power-tool__panel::-webkit-scrollbar-thumb {
    background: rgba(15, 42, 59, 0.25);
    border-radius: 999px;
}
@media (max-width: 900px) {
    .power-tool__panel {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: 0 10px 30px rgba(15, 42, 59, 0.08);
    }
}

/* meter */
.power-meter__badge {
    font-size: 0.82rem;
    color: #8ca2b8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.power-meter__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0 16px;
}
@media (max-width: 520px) {
    .power-meter__grid {
        grid-template-columns: 1fr;
    }
}
.power-meter__cell {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(145deg, #f9fdff, #eef6fb);
    border: 1px solid rgba(15, 42, 59, 0.05);
    box-shadow: 0 14px 35px rgba(15, 42, 59, 0.08);
    transition: transform 0.18s ease;
}
.power-meter__cell span {
    font-size: 0.82rem;
    color: #607586;
}
.power-meter__cell strong {
    display: block;
    margin-top: 4px;
    font-size: 1.9rem;
    font-weight: 900;
    color: #0d2f3f;
}
.power-meter__cell:hover {
    transform: translateY(-2px);
}
.power-meter__cell.power-animate {
    animation: pulseLite 0.45s ease;
}
@keyframes pulseLite {
    from {
        transform: scale(1.03);
        opacity: 0.7;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* quick options */
.power-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.power-quick__item {
    border-radius: 14px;
    border: 1px dashed rgba(15, 42, 59, 0.2);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #0f2a3b;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 42, 59, 0.07);
}
.power-quick__item small {
    color: #607586;
    font-size: 0.82rem;
}
.power-quick__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 45%,
        rgba(34, 182, 199, 0.2),
        transparent 65%
    );
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}
.power-quick__item:hover::after {
    transform: translateX(120%);
}

/* breakdown / note / actions */
.power-breakdown {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(15, 42, 59, 0.08);
    background: #fff;
    max-height: 230px;
    overflow: auto;
    box-shadow: 0 10px 22px rgba(15, 42, 59, 0.06);
}
.power-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 42, 59, 0.05);
    font-size: 0.9rem;
    color: #324352;
}
.power-breakdown li:last-child {
    border-bottom: none;
}
.power-breakdown li.empty {
    color: #92a6bb;
    text-align: center;
    font-style: italic;
}
.power-note {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c05621;
    background: #fff7ef;
    border: 1px solid rgba(255, 187, 133, 0.6);
    border-radius: 12px;
    padding: 10px 12px;
}
.power-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.power-actions .g-btn {
    flex: 1 1 200px;
    justify-content: center;
}

/* wizard actions (mobile) */
.power-wizard-actions {
    display: none;
    margin-top: 16px;
    gap: 10px;
}
.power-wizard-actions button {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.18s;
}
.power-wizard-actions button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.power-wizard-actions [data-wizard-prev] {
    background: #f1f5f9;
    color: #465565;
}
.power-wizard-actions [data-wizard-next] {
    background: #22b6c7;
    color: #fff;
    box-shadow: 0 10px 25px rgba(34, 182, 199, 0.3);
}

/* steps visibility */
.power-step.is-hidden-step {
    display: none !important;
}
.power-wizard-nav.is-hidden,
.power-wizard-actions.is-hidden {
    display: none !important;
}

/* responsiveness */
@media (max-width: 900px) {
    .power-tool {
        padding: 20px;
    }
    .power-wizard-nav,
    .power-wizard-actions {
        display: flex;
    }
}
@media (max-width: 768px) {
    .power-scenario {
        min-width: 100%;
    }
    .power-scenario__summary {
        flex-direction: column;
    }
    .power-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .power-item__qty {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .power-actions {
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .power-actions {
        gap: 8px;
    }
    .power-actions .g-btn {
        flex: 1 1 auto;
        padding: 11px 14px;
        font-size: 0.92rem;
        min-height: 46px;
    }
    .power-actions .g-btn span {
        line-height: 1.1;
    }
}
