* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.09), transparent 30%),
        linear-gradient(135deg, #050505, #111111 45%, #191919);
    color: #fff;
    overflow-x: hidden;
}
.shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.shell-single {
    grid-template-columns: minmax(320px, 720px);
}
.card {
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 60px rgba(0,0,0,0.38);
}
.glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.glass-soft {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 16px;
}
.form-card {
    overflow: hidden;
    position: relative;
}
.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f4f4f4;
    margin-bottom: 16px;
    font-size: 13px;
    animation: floatBadge 3.5s ease-in-out infinite;
}
.badge-glow {
    box-shadow: 0 0 24px rgba(255,255,255,0.12);
}
h1, h2 { margin: 0 0 10px; }
.subtitle { color: rgba(255,255,255,0.72); margin-bottom: 20px; line-height: 1.8; }
.order-form { display: grid; gap: 16px; }
label span { display: block; margin-bottom: 10px; color: #f1f1f1; }
input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input::placeholder { color: rgba(255,255,255,0.5); }
input:focus {
    border-color: rgba(255,255,255,0.42);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    transform: translateY(-1px);
    background: rgba(255,255,255,0.1);
}
.price-box, .summary, .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.price-box small, .summary span, .tracking-panel small, .info-chip small { color: rgba(255,255,255,0.65); display: block; margin-bottom: 8px; }
.price-box strong, .summary strong, .info-chip strong { font-size: 18px; }
button, .pay-link {
    appearance: none;
    border: none;
    width: 100%;
    border-radius: 18px;
    padding: 15px 18px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff, #d9d9d9);
    color: #111;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease, background .28s ease, opacity .28s ease;
    position: relative;
    overflow: hidden;
}
button::before, .pay-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.65) 50%, transparent 80%);
    transform: translateX(-140%);
    transition: transform .6s ease;
}
button:hover, .pay-link:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 28px rgba(255,255,255,0.12);
    filter: brightness(1.02);
}
button:hover::before, .pay-link:hover::before {
    transform: translateX(140%);
}
button:active, .pay-link:active {
    transform: translateY(-1px) scale(.995);
}
button[disabled] { opacity: .85; cursor: wait; }
button.is-loading {
    animation: pulseButton 1.2s ease-in-out infinite;
}
button.is-loading::before {
    opacity: 0;
}
.ghost-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 22px;
}
.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(20,20,20,0.22);
    border-top-color: rgba(20,20,20,0.95);
    display: none;
    flex: 0 0 18px;
    animation: spin .8s linear infinite;
}
.ghost-btn .btn-spinner {
    border-color: rgba(255,255,255,0.22);
    border-top-color: rgba(255,255,255,0.95);
}
button.is-loading .btn-spinner {
    display: inline-block;
}
button.is-loading .btn-text {
    transform: translateY(.5px);
}
.panel-view {
    opacity: 0;
    transform: translateY(22px) scale(.985);
    transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease;
    pointer-events: none;
    filter: blur(6px);
}
.panel-view.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    filter: blur(0);
}
.hidden {
    display: none;
}
.success-view {
    text-align: center;
    position: relative;
    min-height: 420px;
}
.success-content {
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease;
    filter: blur(8px);
    pointer-events: none;
}
.success-content.is-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}
.view-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    opacity: 0;
    transform: scale(.96);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}
.view-loader.is-visible {
    opacity: 1;
    transform: scale(1);
}
.loader-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.92);
    animation: spin 1s linear infinite;
    position: absolute;
}
.loader-ring.ring-delay {
    width: 84px;
    height: 84px;
    border-width: 3px;
    border-top-color: rgba(255,255,255,0.34);
    animation-duration: 1.35s;
    animation-direction: reverse;
}
.loader-copy {
    margin-top: 115px;
    display: grid;
    gap: 8px;
}
.loader-copy strong {
    font-size: 18px;
}
.loader-copy small {
    color: rgba(255,255,255,0.65);
}
.tracking-panel {
    margin: 6px 0 16px;
    padding: 22px;
}
.tracking-panel strong {
    font-size: 34px;
    letter-spacing: 1.5px;
    display: block;
}
.reveal-card {
    animation: revealUp .55s ease both;
}
.result-grid {
    margin: 18px 0;
}
.info-chip {
    text-align: right;
}
.result-message {
    color: rgba(255,255,255,0.82);
    line-height: 1.9;
    margin: 12px 0 18px;
}
.countdown-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    min-width: 220px;
}
.countdown-wrap strong {
    font-size: 24px;
}
.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bg-orb {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
    background: #fff;
    z-index: -1;
    animation: orbMove 12s ease-in-out infinite alternate;
}
.orb-1 { top: -60px; right: -60px; }
.orb-2 { left: -80px; bottom: -80px; animation-delay: 1.5s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes pulseButton {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.12); }
    50% { box-shadow: 0 0 0 10px rgba(255,255,255,0.02); }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orbMove {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(18px, -12px, 0) scale(1.08); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .shell { padding: 20px; }
    .card { padding: 22px; border-radius: 24px; }
    .price-box, .summary, .result-grid, .action-row {
        grid-template-columns: 1fr;
    }
    .tracking-panel strong { font-size: 26px; }
    .success-view { min-height: 500px; }
}


.tracking-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.copy-btn {
    width: auto;
    min-width: 110px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: none;
}
.copy-btn::before {
    display: none;
}
.copy-btn:hover {
    box-shadow: 0 10px 24px rgba(255,255,255,0.08);
}
.copy-btn.is-copied {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(210,210,210,0.92));
    color: #111;
}
.copy-btn.is-copied .copy-icon svg {
    stroke: #111;
}
.copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.copy-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 1.8;
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px) scale(.96);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(12,12,12,0.82);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
    z-index: 30;
}
.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,0.14);
    font-weight: bold;
}


.success-page-card {
    text-align: center;
}
.result-waiting,
.result-ready,
.result-failed {
    margin-top: 18px;
}
.result-waiting {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 160px;
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
.result-waiting.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.inline-loader {
    position: relative;
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
}
.small-ring {
    width: 56px;
    height: 56px;
    top: 17px;
    right: 17px;
}
.tiny-ring {
    width: 82px;
    height: 82px;
    top: 4px;
    right: 4px;
    border-width: 3px;
}
.result-ready {
    opacity: 0;
    transform: translateY(16px) scale(.985);
    transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.result-ready.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.qr-panel {
    margin-top: 18px;
}
.qr-box {
    margin-top: 12px;
    display: grid;
    place-items: center;
}
.qr-box img {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.final-link-box {
    margin-top: 18px;
}
.copy-link-card {
    margin-top: 10px;
    width: 100%;
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    font-weight: normal;
    line-height: 1.9;
    word-break: break-all;
}
.copy-link-card::before {
    display: none;
}
.copy-link-card:hover {
    box-shadow: 0 12px 28px rgba(255,255,255,0.08);
}
.helper-text {
    color: rgba(255,255,255,0.65);
    margin: 10px 0 0;
    font-size: 13px;
}
.result-failed {
    text-align: center;
}
.single-action {
    grid-template-columns: 1fr;
    margin-top: 18px;
}
@media (max-width: 760px) {
    .result-waiting {
        flex-direction: column;
    }
    .qr-box img {
        width: 190px;
        height: 190px;
    }
}


.rounding-hint {
    margin: -4px 4px 2px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    line-height: 1.8;
}
.payable-box {
    margin: 0 0 18px;
    text-align: center;
}
.payable-box strong {
    display: block;
    font-size: 26px;
    margin-top: 6px;
}
.payable-note {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.8;
}


.purchase-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.type-option {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.type-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}
.type-option.is-selected {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.28);
}
.type-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.hidden-soft {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height .35s ease, opacity .35s ease, transform .35s ease, margin .35s ease;
    margin: 0;
}
label.hidden-soft:not(.hidden-soft) { }
#configCountWrap:not(.hidden-soft) {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}
.final-links-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.copy-link-card {
    margin-top: 0;
    width: 100%;
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    font-weight: normal;
    line-height: 1.9;
    word-break: break-all;
    text-align: right;
}
.copy-link-card::before {
    display: none;
}
.copy-link-card small {
    display: block;
    color: rgba(255,255,255,0.62);
    margin-bottom: 8px;
}
.copy-link-card span {
    display: block;
}
.final-link-box {
    margin-top: 18px;
}
.result-ready {
    opacity: 0;
    transform: translateY(16px) scale(.985);
    transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.result-ready.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@media (max-width: 760px) {
    .purchase-type {
        grid-template-columns: 1fr;
    }
}
