:root {
    --hvcc-bg: #050914;
    --hvcc-panel: rgba(15, 23, 42, .94);
    --hvcc-panel-2: rgba(2, 6, 23, .62);
    --hvcc-line: rgba(148, 163, 184, .18);
    --hvcc-text: #f8fafc;
    --hvcc-muted: #94a3b8;
    --hvcc-soft: #cbd5e1;
    --hvcc-blue: #38bdf8;
    --hvcc-green: #22c55e;
    --hvcc-orange: #f59e0b;
    --hvcc-radius: 28px;
}

.hvcc-is-open {
    overflow: hidden;
}

.hvcc[hidden] {
    display: none !important;
}

.hvcc {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: end center;
    padding: 20px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hvcc-text);
}

.hvcc__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, .12), transparent 34%),
        radial-gradient(circle at 85% 5%, rgba(34, 197, 94, .10), transparent 34%),
        rgba(2, 6, 23, .72);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .22s ease;
}

.hvcc.is-visible .hvcc__overlay {
    opacity: 1;
}

.hvcc__panel {
    position: relative;
    width: min(1040px, 100%);
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, .16), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96));
    border: 1px solid rgba(56, 189, 248, .20);
    box-shadow: 0 28px 100px rgba(0, 0, 0, .50);
    transform: translateY(24px) scale(.985);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.hvcc.is-visible .hvcc__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.hvcc__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 10%, #000, transparent 72%);
}

.hvcc__header,
.hvcc__content,
.hvcc__footer {
    position: relative;
    z-index: 1;
}

.hvcc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.hvcc__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hvcc__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #86efac;
    background:
        radial-gradient(circle at 35% 25%, rgba(134, 239, 172, .25), transparent 38%),
        rgba(2, 6, 23, .45);
    border: 1px solid rgba(34, 197, 94, .22);
    font-weight: 950;
    letter-spacing: -.07em;
}

.hvcc__brand strong,
.hvcc__brand small {
    display: block;
}

.hvcc__brand strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.hvcc__brand small {
    margin-top: 2px;
    color: var(--hvcc-muted);
    font-size: 12px;
    font-weight: 850;
}

.hvcc__x {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: rgba(2, 6, 23, .50);
    border: 1px solid rgba(148, 163, 184, .15);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.hvcc__x:hover {
    border-color: rgba(56, 189, 248, .38);
}

.hvcc__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr);
    gap: 20px;
    padding: 22px;
}

.hvcc__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .22);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hvcc h2 {
    margin: 16px 0 0;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: .98;
    letter-spacing: -.07em;
    font-weight: 950;
}

.hvcc p {
    margin: 14px 0 0;
    color: var(--hvcc-soft);
    font-size: 15px;
    line-height: 1.72;
}

.hvcc__settings {
    display: grid;
    gap: 10px;
}

.hvcc__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(2, 6, 23, .40);
    border: 1px solid rgba(148, 163, 184, .12);
}

.hvcc__option strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.hvcc__option small {
    display: block;
    margin-top: 4px;
    color: var(--hvcc-muted);
    line-height: 1.45;
    font-size: 12px;
    font-weight: 740;
}

.hvcc__option input {
    width: 23px;
    height: 23px;
    accent-color: var(--hvcc-green);
    cursor: pointer;
}

.hvcc__option input:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.hvcc__option--locked {
    opacity: .88;
}

.hvcc__footer {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(148, 163, 184, .13);
}

.hvcc__link {
    color: var(--hvcc-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.hvcc__link:hover {
    color: #86efac;
}

.hvcc__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.hvcc__btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .44);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hvcc__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, .34);
}

.hvcc__btn--primary,
.hvcc__btn--save {
    border-color: rgba(56, 189, 248, .35);
    background:
        radial-gradient(circle at 20% 20%, rgba(134, 239, 172, .22), transparent 34%),
        linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 30px rgba(14, 165, 233, .20);
}

.hvcc__btn--save {
    background: linear-gradient(135deg, #16a34a, #0ea5e9);
}

.hvcc__btn--ghost {
    color: var(--hvcc-soft);
}

@media (max-width: 900px) {
    .hvcc {
        padding: 12px;
        place-items: end center;
    }

    .hvcc__panel {
        border-radius: 28px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .hvcc__content {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hvcc__footer {
        grid-template-columns: 1fr 1fr;
    }

    .hvcc__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .hvcc__btn {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 560px) {
    .hvcc {
        padding: 8px;
    }

    .hvcc__panel {
        border-radius: 22px;
    }

    .hvcc__header {
        padding: 14px;
    }

    .hvcc__content,
    .hvcc__footer {
        padding: 14px;
    }

    .hvcc__brand small {
        display: none;
    }

    .hvcc h2 {
        font-size: 30px;
    }

    .hvcc__footer {
        grid-template-columns: 1fr;
    }

    .hvcc__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hvcc__btn,
    .hvcc__link {
        width: 100%;
        justify-content: center;
    }
}
