:root {
    color-scheme: dark;
    --bg: #07111f;
    --panel: rgba(13, 27, 46, 0.82);
    --panel-border: rgba(148, 178, 215, 0.15);
    --text: #f7fbff;
    --muted: #a9b9cc;
    --primary: #4f8cff;
    --primary-2: #6d5cff;
    --success: #52d69a;
    --danger: #ff7d8f;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(52, 122, 255, 0.16), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(117, 79, 255, 0.14), transparent 32%),
        linear-gradient(145deg, #07111f 0%, #09182b 55%, #08121f 100%);
}

button,
input,
a {
    font: inherit;
}

.orb {
    position: fixed;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.orb-one {
    top: -150px;
    left: -120px;
    background: #3182ff;
}

.orb-two {
    right: -150px;
    bottom: -170px;
    background: #7656ff;
}

.shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 16px;
}

.card {
    width: min(100%, 520px);
    padding: 34px;
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    background: var(--panel);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 34px rgba(67, 113, 255, 0.32);
}

.logo svg {
    width: 32px;
    fill: white;
}

.eyebrow {
    margin-bottom: 4px;
    color: #79a7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.subtitle {
    margin: 22px 0 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.features div,
.plan {
    border: 1px solid rgba(148, 178, 215, 0.11);
    background: rgba(255, 255, 255, 0.025);
}

.features div {
    min-width: 0;
    padding: 14px 10px;
    border-radius: 16px;
}

.features strong,
.features span {
    display: block;
}

.features strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.features span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.plan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 18px;
}

.plan div {
    padding: 15px 17px;
}

.plan div + div {
    border-left: 1px solid rgba(148, 178, 215, 0.11);
}

.plan span,
.plan strong {
    display: block;
}

.plan span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.plan strong {
    font-size: 15px;
}

label {
    display: block;
    margin: 0 0 8px 3px;
    color: #dce8f7;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 54px;
    margin-bottom: 12px;
    padding: 0 17px;
    border: 1px solid rgba(148, 178, 215, 0.18);
    border-radius: 15px;
    outline: none;
    background: rgba(3, 11, 23, 0.54);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: rgba(89, 143, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

button,
.open-button {
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s, opacity 0.18s, box-shadow 0.18s;
}

button:hover,
.open-button:hover {
    transform: translateY(-1px);
}

#issue-button,
.open-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 15px 36px rgba(77, 104, 255, 0.27);
}

#issue-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

#issue-button.busy .button-label {
    display: none;
}

#issue-button.busy .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.45;
}

.status.error {
    border: 1px solid rgba(255, 125, 143, 0.24);
    background: rgba(255, 125, 143, 0.09);
    color: #ffc2cb;
}

.status.success {
    border: 1px solid rgba(82, 214, 154, 0.22);
    background: rgba(82, 214, 154, 0.08);
    color: #a7f2cd;
}

.result {
    margin-top: 18px;
    text-align: center;
}

.success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: rgba(82, 214, 154, 0.12);
    color: var(--success);
    font-size: 30px;
    font-weight: 900;
}

.result h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.result > p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.secondary-button {
    width: 100%;
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid rgba(148, 178, 215, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #dce8f7;
}

.result .hint {
    margin-top: 15px;
    font-size: 12px;
}

.support {
    display: block;
    margin-top: 18px;
    color: #8fb5ff;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.privacy {
    margin: 22px 0 0;
    color: #71849b;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .card {
        padding: 25px 19px;
        border-radius: 24px;
    }

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

    .features div {
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: center;
    }

    .features strong {
        margin: 0;
    }
}
