/* styles.css */

@font-face {
    font-family: "SF Pro Text";
    src: url("./fonts/SF-Pro-Text-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("./fonts/SF-Pro-Text-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Rounded";
    src: url("./fonts/SF-Pro-Rounded-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Rounded";
    src: url("./fonts/SF-Pro-Rounded-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* размеры под мобилку (как на скринах) */
    --app-min-w: 360px;
    --app-max-w: 390px;

    /* высота: Telegram дает --tg-viewport-stable-height, но держим фолбэк */
    --tg-vh: 100vh;

    /* safe area (Telegram поля safeAreaInset/contentSafeAreaInset) */
    --safe-top: 0px;
    --safe-right: 0px;
    --safe-bottom: 0px;
    --safe-left: 0px;

    /* палитра LunaVPN: темно-желтая */
    --bg0: #070502;
    --bg1: #141006;
    --card: rgba(28, 22, 10, 0.72);
    --card-2: rgba(23, 18, 8, 0.66);
    --stroke: rgba(255, 224, 160, 0.1);
    --stroke-2: rgba(255, 224, 160, 0.16);

    --text: rgba(247, 244, 236, 0.95);
    --muted: rgba(247, 244, 236, 0.65);
    --muted-2: rgba(247, 244, 236, 0.45);

    --accent: #c7a44a; /* основной желтый */
    --accent-2: #f0c75a; /* подсветка */
    --warn: #f0a84f; /* как "подписка истекла" */
    --shadow: rgba(0, 0, 0, 0.35);

    --r: 18px;
    --r2: 14px;

    --pad: 16px;
    --gap: 12px;

    --t-fast: 140ms;
    --t: 220ms;
    --t-slow: 520ms;

    --wave-max: 2.8;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    font-family:
        "SF Pro Text",
        -apple-system,
        system-ui,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
}
body {
    margin: 0;
    /* font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif; */
    color: var(--text);
    background:
        radial-gradient(
            1200px 900px at 50% -10%,
            rgba(199, 164, 74, 0.12),
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg1), var(--bg0));
    overflow-x: hidden;
}

.bootLoader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            1200px 900px at 50% -10%,
            rgba(199, 164, 74, 0.12),
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg1), var(--bg0));
    z-index: 9999;
}
.bootInner {
    display: grid;
    place-items: center;
    gap: 12px;
}
.bootText {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* центрирование на широких экранах */
#app {
    height: var(--tg-vh, 100vh);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.shell {
    width: clamp(var(--app-min-w), 100vw, var(--app-max-w));
    height: 100%;
    padding: calc(var(--safe-top) + 10px) calc(var(--safe-right) + var(--pad))
        calc(var(--safe-bottom) + 14px) calc(var(--safe-left) + var(--pad));
    position: relative;
}

/* общий фон с концентрическими кругами */
.radar {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0;
    overflow: hidden;
}
.radar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            900px 700px at 50% 10%,
            rgba(199, 164, 74, 0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at 50% 55%,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.62) 72%
        );
    opacity: 1;
}

.radar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.55)
    );
    opacity: 0.8;
}

.screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.iconWrap {
    width: 138px;
    height: 138px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    position: relative;
    transform: translateY(-6px);
}
.iconWrap .bigIcon {
    width: 56px;
    height: 56px;
    opacity: 0.95;
}
.statusAnim {
    position: relative;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.statusAnim .moon-lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.moon-lottie {
    display: grid;
    place-items: center;
}
.moon-fallback {
    font-size: 34px;
}

/* прогресс-кольцо как на шагах */
.ring {
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    --pp: clamp(0, var(--p, 0), 1);
    background: conic-gradient(
        from -90deg,
        rgba(199, 164, 74, 0.96) 0deg,
        rgba(199, 164, 74, 0.96) calc(var(--pp) * 360deg),
        rgba(199, 164, 74, 0.1) calc(var(--pp) * 360deg),
        rgba(199, 164, 74, 0.1) 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%);
    mask: radial-gradient(circle, transparent 61%, #000 62%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
    animation: ringIn var(--t-slow) ease-out both;
}
@keyframes ringIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.panel {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: 0 22px 50px var(--shadow);
    backdrop-filter: blur(14px);
}

.row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand .name {
    font-weight: 650;
    font-size: 22px;
    letter-spacing: 0.2px;
}
.brand .status {
    font-size: 14px;
    color: var(--muted);
}

.subInfo {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
.subInfo .until {
    font-size: 14px;
    color: var(--muted);
}
.subInfo .flag {
    font-size: 14px;
    color: var(--warn);
    font-weight: 650;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-top: 14px;
}

.btn {
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 14px;
    height: 50px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition:
        transform var(--t-fast) ease,
        background var(--t-fast) ease,
        border-color var(--t-fast) ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active {
    transform: scale(0.985);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btnWide {
    width: 100%;
}
.btnNoBorder {
    border: none;
}

.btnPrimary {
    background: linear-gradient(
        180deg,
        rgba(199, 164, 74, 0.95),
        rgba(176, 139, 50, 0.92)
    );
    border-color: rgba(255, 230, 160, 0.22);
    color: rgba(12, 9, 3, 0.95);
}
.btnPrimary .btnTitle {
    font-weight: 600;
}
.btnPrimary .btnRight {
    font-weight: 800;
}

.btnSecondary {
    background: rgba(255, 255, 255, 0.03);
}

.btnSmallRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btnSmall {
    height: 48px;
    justify-content: center;
    gap: 10px;
    font-weight: 650;
}

.btnLeft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}
.btnTitle {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.setupTitle {
    font-size: 12px;
    text-align: center;
}
.btnSub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.btnTextCol {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    opacity: 0.92;
}

/* Заголовки экранов */
.head {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0 10px;
}
.head .title {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.2px;
}

/* scroll screen (покупка, профиль) */
.scroll {
    flex: 1;
    overflow: auto;
    padding-bottom: 10px;
}
.scroll::-webkit-scrollbar {
    width: 4px;
}
.scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 230, 160, 0.18);
    border-radius: 20px;
}
.section {
    margin-top: 10px;
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--r);
    padding: 14px;
    box-shadow: 0 20px 45px var(--shadow);
    backdrop-filter: blur(14px);
}

.deviceCardTop {
    display: flex;
    gap: 12px;
    align-items: center;
}
.deviceNum {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    color: rgba(255, 238, 198, 0.92);
}
.deviceMeta {
    flex: 1;
    min-width: 0;
}
.deviceMeta .h {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    font-size: 16px;
}
.badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    color: rgba(12, 9, 3, 0.95);
    background: linear-gradient(
        180deg,
        rgba(240, 199, 90, 0.95),
        rgba(199, 164, 74, 0.9)
    );
}
.deviceMeta .s {
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.rangeWrap {
    margin-top: 12px;
    position: relative;
}
.range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    outline: none;
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(240, 199, 90, 0.98),
        rgba(199, 164, 74, 0.92)
    );
    border: 1px solid rgba(255, 238, 198, 0.28);
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.35);
}
.range::-moz-range-thumb {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(240, 199, 90, 0.98),
        rgba(199, 164, 74, 0.92)
    );
}

.dots {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    pointer-events: none;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 238, 198, 0.26);
}

.grid2 {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.priceCard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    border-radius: var(--r2);
    padding: 14px;
    min-height: 110px;
    position: relative;
}
.priceCard.hasBadge {
    padding-top: 34px;
}
.priceCard .t {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}
.priceCard .p {
    font-size: 26px;
    font-weight: 850;
    letter-spacing: 0.2px;
}
.priceCard .pm {
    margin-top: 3px;
    font-size: 13px;
    color: var(--muted);
}
.cornerBadge {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 11px;
    font-weight: 850;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 238, 198, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 238, 198, 0.92);
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* bottom sheet modal */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* animation: fadeIn var(--t) ease both; */
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sheet {
    width: clamp(var(--app-min-w), 100vw, var(--app-max-w));
    border-radius: 18px 18px 0 0;
    border: 1px solid var(--stroke);
    background: #141006;
    box-shadow: 0 -22px 55px rgba(0, 0, 0, 0.45);
    padding: 14px;
    /* animation: sheetUp var(--t) ease both; */
}
@keyframes sheetUp {
    from {
        transform: translateY(18px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sheetHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 10px;
}
.sheetHead .h {
    font-weight: 800;
    font-size: 18px;
}
.x {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.sheetBlock {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    overflow: hidden;
}
.sheetRow {
    padding: 12px 12px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}
.sheetRow + .sheetRow {
    border-top: 1px solid var(--stroke);
}

.payRow {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.payRow .l {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}
.square {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 238, 198, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.square svg {
    width: 16px;
    height: 16px;
    stroke: rgba(247, 244, 236, 0.85);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.square--pay {
    background: rgba(40, 190, 120, 0.18);
    border-color: rgba(40, 190, 120, 0.22);
}
.square--tx {
    background: rgba(80, 210, 200, 0.14);
    border-color: rgba(80, 210, 200, 0.18);
}
.square--ref {
    background: rgba(160, 120, 255, 0.16);
    border-color: rgba(160, 120, 255, 0.2);
}
.square--sup {
    background: rgba(255, 170, 60, 0.14);
    border-color: rgba(255, 170, 60, 0.18);
}
.square--tos {
    background: rgba(255, 80, 120, 0.14);
    border-color: rgba(255, 80, 120, 0.18);
}

.sheetBtn {
    margin-top: 12px;
    height: 52px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 238, 198, 0.22);
    background: linear-gradient(
        180deg,
        rgba(199, 164, 74, 0.95),
        rgba(176, 139, 50, 0.92)
    );
    color: rgba(12, 9, 3, 0.95);
    font-weight: 850;
    font-size: 15px;
    cursor: pointer;
}
.sheetBtn:active {
    transform: scale(0.99);
}

/* список в профиле */
.menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
}
.menuItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
}
.menuItem + .menuItem {
    border-top: 1px solid var(--stroke);
}
.menuItem .lab {
    font-weight: 650;
}
.menuItem .right {
    margin-left: auto;
    opacity: 0.8;
}

.linkBox {
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
}
.linkLabel {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}
.linkField {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    padding: 12px;
    background: rgba(0, 0, 0, 0.12);
}
.mono {
    /* font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace; */
    font-size: 13px;
    color: rgba(255, 238, 198, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.copyBtn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.bottomBtn {
    margin-top: 14px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.smallTop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0 10px;
}
.smallTop .u {
    font-size: 18px;
    font-weight: 800;
}
.smallTop .id {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* тост */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--safe-bottom) + 18px);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(20, 16, 6, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-size: 13px;
    color: var(--text);
    animation: toastIn 160ms ease both;
}
@keyframes toastIn {
    from {
        transform: translateX(-50%) translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Плавный вход экрана */
.screen {
    opacity: 1;
    transform: none;
}

/* конфетти */
.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.confetti i {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    background: rgba(240, 199, 90, 0.95);
    opacity: 0.9;
    animation: fall 1.8s ease-in-out infinite;
}
@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(var(--tg-vh) + 40px)) rotate(220deg);
        opacity: 0.15;
    }
}

/* тексты шагов */
.stepTitle {
    font-size: 24px;
    font-weight: 850;
    text-align: center;
}
.stepSub {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.35;
}
.stepBtns {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stepBtns .btn {
    height: 52px;
    display: flex;
    justify-content: center;
}

/* Волны от центра логотипа */
.iconWrap {
    overflow: visible; /* важно, чтобы круги выходили за пределы */
}

.waveField {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0; /* ниже иконки */
}

.wave {
    position: absolute;
    left: 0;
    top: 0;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    will-change: transform, opacity;
    animation: waveOut 6s linear infinite;
}

.wave circle {
    fill: none;
    stroke: rgba(240, 199, 90, 0.32);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

.wave:nth-child(2) {
    animation-delay: 2s;
}
.wave:nth-child(3) {
    animation-delay: 4s;
}

@keyframes waveOut {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
    10% {
        opacity: 0.45;
    }
    65% {
        opacity: 0.18;
    }
    82% {
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(var(--wave-max));
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave {
        animation: none;
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(2.2);
    }
}

/* Центр-модалка (как "Важная информация") */
.backdrop.center {
    position: fixed;
    align-items: center;
    padding: 18px;
}

.dialog {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    border: 1px solid rgba(255, 238, 198, 0.1);
    background: rgba(18, 16, 12, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    animation: dialogIn 220ms ease both;
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialogHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
}

.dialogTitle {
    font-weight: 850;
    font-size: 18px;
}

.dialogClose {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 238, 198, 0.1);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0.9;
}

.dialogClose {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    color: var(--text);
}

.dialogBody {
    padding: 0 14px 14px;
    color: rgba(247, 244, 236, 0.78);
    font-size: 14px;
    line-height: 1.35;
}

.dialogBtn {
    margin: 0 14px 14px;
    height: 52px;
    width: calc(100% - 28px);
    border-radius: 14px;
    border: 1px solid rgba(255, 238, 198, 0.2);
    background: linear-gradient(
        180deg,
        rgba(199, 164, 74, 0.95),
        rgba(176, 139, 50, 0.92)
    );
    color: rgba(12, 9, 3, 0.95);
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}

.dialogBtn:active {
    transform: scale(0.99);
}

.btnDisabled {
    opacity: 0.6;
    pointer-events: none;
}

.linkDisabled .mono {
    opacity: 0.6;
}

.infoRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.infoRow:last-child {
    border-bottom: none;
}

.infoTitle {
    color: var(--muted);
}

.infoValue {
    font-weight: 700;
}

.spinner {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: spin 1.1s linear infinite;
}

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

.paymentSum {
    margin-top: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.checkBadge {
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(199, 164, 74, 0.95), rgba(176, 139, 50, 0.92));
    display: grid;
    place-items: center;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 238, 198, 0.2);
}

.txList {
    display: grid;
    gap: 12px;
    padding: 8px 6px 4px;
}

.txItem {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
}

.txTitle {
    font-weight: 700;
    font-size: 14px;
}

.txSub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.txAmount {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.emptyState {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px 10px 8px;
    opacity: 0.9;
}

.emptyIcon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
}

.emptyText {
    color: var(--muted);
    font-weight: 650;
}

.errorIcon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 90, 90, 0.16);
    border: 1px solid rgba(255, 90, 90, 0.3);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 28px;
    color: rgba(255, 220, 220, 0.92);
}
