:root {
    --bg: #1a1a1a;
    --grid: rgba(255, 255, 255, 0.055);
    --card: #242424;
    --field: #3a3a3a;
    --gem: #ee1111;
    --gem-bright: #ff2a2a;
    --gem-dark: #c40d0d;
    --text: #ffffff;
    --placeholder: #8b8b8b;
    --warn: #ffb020;
    --grid-gap: clamp(104px, 16.2vw, 281px);
    --grid-line: calc(var(--grid-gap) - 1px);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
[hidden] {
    display: none !important;
}
body {
    min-height: 100vh;
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(60deg, transparent 0 var(--grid-line), var(--grid) var(--grid-line) var(--grid-gap)),
        repeating-linear-gradient(-60deg, transparent 0 var(--grid-line), var(--grid) var(--grid-line) var(--grid-gap)),
        repeating-linear-gradient(0deg, transparent 0 var(--grid-line), var(--grid) var(--grid-line) var(--grid-gap));
    background-position: center;
}
.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.info {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel {
    padding: 26px 24px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.panel__title {
    margin-bottom: 22px;
    color: var(--gem-bright);
    font-size: clamp(19px, 4vw, 23px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.steps__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.steps__num {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gem);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}
.steps__head {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.steps p {
    color: var(--placeholder);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}
.faq {
    display: flex;
    flex-direction: column;
}
.faq__q {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.faq__a {
    color: var(--placeholder);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}
.faq__a:not(:last-child) {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 560px) {
    .info {
        padding: 0 16px 56px;
        gap: 16px;
    }
    .panel {
        padding: 22px 18px;
    }
}
.card {
    container-type: inline-size;
    width: 100%;
    max-width: 397px;
    max-width: max(320px, 27.6vw);
    padding: 20px 20px 48px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    gap: max(10px, 3.4cqw);
    min-height: 33.5cqw;
    padding: 12px;
    padding: max(10px, 3.4cqw);
    border-radius: 9px;
    overflow: hidden;
    background: #150a0b;
}
.banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.banner__logo {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 82px;
    width: max(64px, 23cqw);
    aspect-ratio: 9 / 10;
    border-radius: 6px;
    object-fit: cover;
}
.banner__body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    gap: max(7px, 2.6cqw);
    text-align: center;
}
.banner__title {
    font-size: 30px;
    font-size: max(20px, 8.4cqw);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 8px;
    gap: max(7px, 2.2cqw);
    padding: 9px 14px;
    padding: max(8px, 2.4cqw) max(12px, 3.4cqw);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 16px;
    font-size: max(14px, 4.4cqw);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
}
.badge__icon {
    width: 18px;
    width: max(15px, 4.6cqw);
    height: 18px;
    height: max(15px, 4.6cqw);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linejoin: round;
}
.card__title {
    margin: 29px 0 32px;
    margin: max(24px, 8cqw) 0 max(30px, 9cqw);
    text-align: center;
    color: var(--gem-bright);
    font-size: 30px;
    font-size: max(20px, 8.4cqw);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    gap: max(16px, 4.5cqw);
}
.input {
    width: 100%;
    height: 44px;
    height: max(44px, 11.8cqw);
    padding: 0 14px;
    padding: 0 max(14px, 4cqw);
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-size: max(14px, 4.4cqw);
    font-weight: 600;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color 0.2s;
}
.input::placeholder {
    color: var(--placeholder);
    letter-spacing: 0.03em;
}
.input:focus-visible {
    border-color: var(--gem);
}
.input.is-invalid {
    border-color: var(--warn);
}
.feedback {
    margin: -8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--placeholder);
}
.feedback:empty {
    display: none;
}
.feedback.is-error {
    color: var(--warn);
}
.btn {
    width: 100%;
    height: 44px;
    height: max(44px, 11.8cqw);
    border: none;
    border-radius: 8px;
    background: var(--gem);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-size: max(14px, 4.4cqw);
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.btn:hover:not(:disabled) {
    background: var(--gem-dark);
}
.btn:active:not(:disabled) {
    transform: translateY(1px);
}
.btn:focus-visible {
    outline: 3px solid rgba(238, 17, 17, 0.45);
    outline-offset: 2px;
}
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    gap: max(16px, 4.6cqw);
    padding-top: 6px;
}
.loader__gem {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    width: max(80px, 24cqw);
    aspect-ratio: 1;
}
.loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(238, 17, 17, 0) 0deg, rgba(238, 17, 17, 0.12) 130deg, var(--gem) 300deg, var(--gem-bright) 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
    animation: ring-spin 1.1s linear infinite;
}
.loader__orbit {
    position: absolute;
    inset: 0;
    animation: ring-spin 2.6s linear infinite reverse;
}
.loader__orbit::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--gem-bright);
    box-shadow: 0 0 10px var(--gem-bright);
}
.loader__shape {
    width: 46%;
    aspect-ratio: 1 / 0.94;
    clip-path: polygon(20% 0%, 80% 0%, 100% 35%, 50% 100%, 0% 35%);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(160deg, var(--gem-bright) 0%, var(--gem) 45%, #8f0606 100%);
    animation: gem-pulse 1.7s ease-in-out infinite;
}
.loader__status {
    text-align: center;
    font-size: 14px;
    font-size: max(13px, 3.6cqw);
    font-weight: 700;
    letter-spacing: 0.09em;
}
.loader__status::after {
    content: "...";
    display: inline-block;
    width: 1.1em;
    text-align: left;
    animation: dots 1.2s steps(4) infinite;
}
.account {
    display: flex;
    flex-direction: column;
    gap: 16px;
    gap: max(14px, 4.5cqw);
}
.account__uid {
    padding: 11px 14px;
    padding: max(10px, 3cqw) max(12px, 3.4cqw);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #2c2c2c;
    text-align: center;
    color: var(--placeholder);
    font-size: 13px;
    font-size: max(12px, 3.4cqw);
    font-weight: 600;
    letter-spacing: 0.08em;
}
.account__uid span {
    color: var(--text);
    font-weight: 700;
    word-break: break-all;
}
.packs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    gap: max(10px, 3.4cqw);
}
.pack {
    display: flex;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    gap: max(4px, 1.4cqw);
    padding: 14px 8px;
    padding: max(12px, 3.6cqw) max(8px, 2.2cqw);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: #2e2e2e;
}
.pack:hover {
    border-color: rgba(238, 17, 17, 0.6);
    background: #363636;
}
.pack:active {
    transform: translateY(1px);
}
.pack:focus-visible {
    outline: 3px solid rgba(238, 17, 17, 0.45);
    outline-offset: 2px;
}
.pack__icon {
    width: 46px;
    width: max(38px, 13cqw);
    height: auto;
    object-fit: contain;
}
.pack__amount {
    color: var(--text);
    font-size: 17px;
    font-size: max(15px, 4.8cqw);
    font-weight: 800;
    letter-spacing: 0.01em;
}
.pack__label {
    color: var(--placeholder);
    font-size: 11px;
    font-size: max(10px, 2.9cqw);
    font-weight: 700;
    letter-spacing: 0.12em;
}
.confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    gap: max(11px, 3.4cqw);
}
.confirm__title {
    color: var(--gem-bright);
    font-size: 20px;
    font-size: max(18px, 5.8cqw);
    font-weight: 800;
    letter-spacing: 0.04em;
}
.confirm__text {
    text-align: center;
    color: var(--placeholder);
    font-size: 13px;
    font-size: max(12px, 3.4cqw);
    font-weight: 500;
    line-height: 1.5;
}
.confirm__uid {
    text-align: center;
    color: var(--placeholder);
    font-size: 13px;
    font-size: max(12px, 3.4cqw);
    font-weight: 600;
    letter-spacing: 0.08em;
    word-break: break-all;
}
.confirm__uid span {
    color: var(--text);
    font-weight: 700;
}
.confirm__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    gap: max(7px, 2.2cqw);
    color: var(--text);
    font-size: 20px;
    font-size: max(18px, 5.8cqw);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.confirm__gem {
    width: 24px;
    width: max(20px, 6.4cqw);
    height: auto;
    object-fit: contain;
}
#verify,
.verify {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    gap: max(12px, 3.8cqw);
    text-align: center;
}
#verify .verify__icon,
.verify__icon {
    width: 90px;
    width: max(80px, 25cqw);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.verify__title {
    color: var(--text);
    font-size: 24px;
    font-size: max(22px, 6.8cqw);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin: 0;
}
.verify__text {
    text-align: center;
    color: var(--placeholder);
    font-size: 14px;
    font-size: max(13px, 3.8cqw);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}
.verify .btn {
    width: 100%;
    margin-top: 4px;
}
@keyframes ring-spin {
    to { transform: rotate(360deg); }
}
@keyframes gem-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(238, 17, 17, 0.5));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 20px rgba(255, 42, 42, 0.8));
    }
}
@keyframes dots {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
