@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-0: #0b0f10;
    --bg-1: #0f1818;
    --bg-2: #141f1f;
    --card: rgba(19, 28, 30, 0.85);
    --card-border: rgba(71, 96, 96, 0.5);
    --text-0: #f3f7f5;
    --text-1: #c7d4cf;
    --text-2: #8a9b95;
    --accent: #41f8a2;
    --accent-dark: #1ab874;
    --accent-glow: rgba(65, 248, 162, 0.35);
    --danger: #f67c6c;
    --warning: #f2c94c;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

button,
input,
select,
textarea,
a {
    font-family: inherit;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-0);
    background: radial-gradient(circle at 10% 20%, rgba(31, 74, 62, 0.6), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(64, 41, 19, 0.5), transparent 40%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0) 60%);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 40px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html[data-screen="dashboard"],
html[data-screen="setup"],
html[data-screen="setup-step"],
html[data-screen="profile"],
html[data-screen="plans"],
html[data-screen="traffic"] {
    overflow: hidden;
    height: 100%;
}

body[data-screen="dashboard"],
body[data-screen="setup"],
body[data-screen="setup-step"],
body[data-screen="profile"],
body[data-screen="plans"],
body[data-screen="traffic"] {
    overflow: hidden;
    height: 100%;
    padding-bottom: 0;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb--one {
    background: rgba(65, 248, 162, 0.25);
    top: -40px;
    left: -60px;
}

.orb--two {
    background: rgba(42, 199, 255, 0.18);
    bottom: 10%;
    right: -70px;
    animation-delay: 2s;
}

.orb--three {
    background: rgba(255, 188, 87, 0.18);
    top: 45%;
    left: 60%;
    animation-delay: 4s;
}

.app {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
}

.icon-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 28, 28, 0.8);
    color: var(--text-0);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.icon-button.tiny {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(9, 18, 16, 0.7);
    border-color: rgba(31, 213, 138, 0.2);
    color: var(--text-1);
}

.icon-button.plain {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: var(--text-2);
}

.icon-button.plain img {
    width: 16px;
    height: 16px;
    display: block;
    transition: opacity 0.12s ease-in-out;
}

.icon-button.plain img.is-swapping {
    opacity: 0.15;
}

.icon-button.tiny svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button.back {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.icon {
    font-size: 16px;
}

.screen {
    display: none;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.screen.active {
    display: flex;
}

.screen-dashboard {
    gap: 14px;
}

.menu-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.profile-topbar {
    display: flex;
    justify-content: flex-start;
}

.profile-hero {
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 6px 0 10px;
    text-align: center;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(12, 32, 28, 0.8);
    border: 1px solid rgba(31, 213, 138, 0.25);
    color: var(--text-0);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 600;
    text-transform: lowercase;
}

.profile-idline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.profile-idline button {
    margin-left: 2px;
}

.hero {
    position: relative;
    height: 230px;
    display: grid;
    place-items: center;
    margin-top: auto;
}

.hero-ring {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 1.5px solid rgba(65, 248, 162, 0.35);
    opacity: 0.6;
    animation: ringWave 3.2s ease-out infinite;
}

.hero-ring::before,
.hero-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(65, 248, 162, 0.25);
    opacity: 0;
    animation: ringWave 3.2s ease-out infinite;
}

.hero-ring::before {
    animation-delay: 1.1s;
}

.hero-ring::after {
    animation-delay: 2.2s;
}

.hero-icon::before,
.hero-icon::after {
    content: '';
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1px solid rgba(65, 248, 162, 0.22);
    opacity: 0;
    animation: ringWave 3.2s ease-out infinite;
    pointer-events: none;
}

.hero-icon::before {
    animation-delay: 0.55s;
}

.hero-icon::after {
    animation-delay: 1.65s;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 40px;
    background: transparent;
    border: none;
    display: grid;
    place-items: center;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35));
}

.stage-screen {
    gap: 16px;
}

.stage-hero {
    position: relative;
    height: 260px;
    display: grid;
    place-items: center;
    margin-top: auto;
}

.stage-wave {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1.5px solid rgba(65, 248, 162, 0.35);
    opacity: 0.6;
    animation: ringWave 3.2s ease-out infinite;
    z-index: 0;
}

.stage-wave::before,
.stage-wave::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(65, 248, 162, 0.25);
    opacity: 0;
    animation: ringWave 3.2s ease-out infinite;
}

.stage-wave::before {
    animation-delay: 1.1s;
}

.stage-wave::after {
    animation-delay: 2.2s;
}

.stage-rings {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(65, 248, 162, 0.18);
    opacity: 0.7;
    z-index: 1;
}

.stage-rings::before,
.stage-rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(65, 248, 162, 0.12);
}

.stage-rings::before {
    inset: 18px;
    opacity: 0.6;
}

.stage-rings::after {
    inset: -22px;
    opacity: 0.4;
}

.stage-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 240px;
    height: 240px;
    transform: rotate(-90deg);
    z-index: 2;
}

.ring-track {
    stroke: rgba(65, 248, 162, 0.12);
    stroke-width: 2;
    fill: none;
}

.ring-progress {
    stroke: rgba(65, 248, 162, 0.9);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 6px rgba(65, 248, 162, 0.35));
}

.stage-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 3;
}

.stage-icon.swap {
    opacity: 0;
    transform: scale(0.88);
}

.stage-icon.complete {
    background: rgba(31, 213, 138, 0.95);
    color: #f7fffb;
    box-shadow: 0 16px 30px rgba(15, 38, 32, 0.35);
}

.stage-icon svg {
    width: 54px;
    height: 54px;
    stroke: currentColor;
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stage-icon.complete svg {
    stroke: #f7fffb;
}

.stage-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.stage-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 6px;
    margin-top: 18px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
}

.stage-subtitle {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.4;
}

.stage-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-bottom: 4px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.stage-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stage-actions-row .action-button {
    width: 100%;
}

.stage-screen.is-transition .stage-content,
.stage-screen.is-transition .stage-actions {
    opacity: 0;
    transform: translateY(8px);
}

.stage-screen.is-transition.is-reverse .stage-content,
.stage-screen.is-transition.is-reverse .stage-actions {
    transform: translateY(-8px);
}

.status-card,
.profile-card,
.list-card,
.wait-card,
.setup-card,
.step-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
}

.bypass-card {
    background: linear-gradient(135deg, rgba(30, 45, 60, 0.85), rgba(21, 33, 46, 0.9));
    border: 1px solid rgba(126, 203, 255, 0.2);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.bypass-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.bypass-title {
    font-size: 16px;
    font-weight: 600;
}

.bypass-sub {
    font-size: 12px;
    color: var(--text-2);
}

.bypass-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 217, 137, 0.18);
    color: #41f8a2;
    text-transform: lowercase;
}

.bypass-tag.limited {
    background: rgba(255, 153, 0, 0.18);
    color: #ffb347;
}

.limit-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.limit-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, #41f8a2, #6fd0ff);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.limit-progress.limited {
    background: linear-gradient(90deg, #ffb347, #ff7a18);
}

.bypass-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-2);
}

.bypass-card .action-button.compact {
    align-self: flex-start;
    padding-inline: 16px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.status-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-name {
    font-size: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-logo {
    height: 1.1em;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.status-state {
    font-size: 13px;
    color: var(--text-2);
}

.status-state.online {
    color: var(--accent);
}

.status-state.offline {
    color: var(--text-2);
}

.status-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-date {
    font-size: 16px;
    color: var(--text-1);
    font-weight: 600;
}

.status-tag {
    font-size: 12px;
    color: var(--accent);
    text-transform: lowercase;
}

.status-tag:empty {
    display: none;
}

.status-tag.active,
.status-tag.trial {
    color: var(--accent);
}

.status-tag.expired {
    color: var(--warning);
}

.status-detail {
    font-size: 14px;
    color: var(--text-1);
    line-height: 1.4;
}

.profile-actions {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.profile-actions .list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.profile-actions .list-item:last-child {
    border-bottom: none;
}

.list-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.list-icon.pay {
    background: rgba(31, 213, 138, 0.12);
    color: #22d989;
}

.list-icon.transactions {
    background: rgba(51, 178, 255, 0.12);
    color: #6fd0ff;
}

.list-icon.referral {
    background: rgba(148, 103, 255, 0.12);
    color: #b58dff;
}

.list-icon.support {
    background: rgba(255, 170, 72, 0.12);
    color: #ffbf6a;
}

.list-icon.legal {
    background: rgba(255, 89, 128, 0.12);
    color: #ff7fa8;
}

.list-icon.support-project {
    background: rgba(65, 248, 162, 0.12);
    color: #41f8a2;
}

.list-icon.reset {
    background: rgba(246, 124, 108, 0.12);
    color: #f67c6c;
}

.list-icon.reset .icon-dot {
    fill: currentColor;
    stroke: none;
}

.list-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-payments {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-payments-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-1);
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(10, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-method-icon {
    width: 46px;
    height: 30px;
    border-radius: 10px;
    background: rgba(10, 18, 18, 0.85);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.payment-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-0);
}

.payment-method-sub {
    font-size: 12px;
    color: var(--text-2);
}

.profile-link-block {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.referral-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.referral-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-1);
}

.referral-row span:last-child {
    color: var(--text-0);
    font-weight: 600;
}

.referral-note {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.45;
    white-space: pre-line;
}

.referral-qr {
    display: none;
    place-items: center;
    padding: 6px 0 2px;
}

.referral-qr img {
    width: min(190px, 62vw);
    height: auto;
    display: block;
}

.referral-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-label {
    font-size: 13px;
    color: var(--text-1);
}

.profile-link-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 18, 16, 0.8);
    border: 1px solid rgba(31, 213, 138, 0.2);
    border-radius: 14px;
    padding: 12px 12px;
    font-size: 13px;
    color: var(--text-0);
}

.profile-link-input span {
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

.profile-copy {
    cursor: pointer;
}

.profile-idline,
.profile-link-input {
    transition: transform 0.08s ease;
    transform-origin: center;
}

.profile-idline.is-pressed,
.profile-link-input.is-pressed {
    transform: scale(0.97);
}

.switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.2s ease;
    border: 1px solid rgba(31, 213, 138, 0.2);
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 1px;
    border-radius: 50%;
    background: #f0faf6;
    transition: transform 0.2s ease;
}

.switch input:checked + .slider {
    background: rgba(31, 213, 138, 0.35);
    border-color: rgba(31, 213, 138, 0.45);
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.switch input:disabled + .slider {
    opacity: 0.5;
}

.action-button {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}

.action-button.split {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    text-align: left;
}

.button-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.button-right {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-0);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    justify-self: end;
    align-self: center;
}

.button-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 26, 24, 0.6);
    border: 1px solid rgba(31, 213, 138, 0.25);
}

.button-icon.image {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
}

.button-icon.image img {
    width: 24px;
    height: 24px;
    display: block;
}

.action-button.stars-pay {
    gap: 6px;
}

.action-button.stars-pay .button-icon.image {
    width: 18px;
    height: 18px;
}

.action-button.stars-pay .button-icon.image img {
    width: 18px;
    height: 18px;
}

.button-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-button.primary .button-icon {
    background: rgba(6, 30, 22, 0.35);
    border-color: rgba(6, 30, 22, 0.5);
    color: #f2fff8;
}

.action-button.primary .button-icon.image {
    background: transparent;
    border: none;
}

.action-button.inline {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
}

.action-button.inline.small {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 10px;
    min-height: 0;
}

.action-button.primary {
    background: rgba(27, 96, 70, 0.95);
    color: #f2fff8;
    box-shadow: 0 10px 22px rgba(15, 38, 32, 0.25);
}

.action-button.ghost {
    background: rgba(8, 18, 16, 0.7);
    color: var(--text-0);
    border: 1px solid rgba(31, 213, 138, 0.2);
}

.action-button:active {
    transform: translateY(1px);
}

.action-button.compact {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
}

.setup-pulse {
    animation: setupPulse 2.6s ease-in-out infinite;
}

.button-wave {
    position: relative;
    isolation: isolate;
}

.button-wave::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: rgba(65, 248, 162, 0.25);
    opacity: 0;
    pointer-events: none;
    animation: buttonWave 1.8s ease-out infinite;
}

.action-button .icon-inline {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-button .icon-inline svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-button .icon-inline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.screen.transition-enter,
.screen.transition-exit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
}

.screen.transition-enter {
    animation: screenEnter 0.32s ease both;
    z-index: 2;
}

.screen.transition-exit {
    animation: screenExit 0.32s ease both;
    z-index: 1;
    pointer-events: none;
}

.screen.transition-enter.backward {
    animation: screenEnterBack 0.32s ease both;
}

.screen.transition-exit.backward {
    animation: screenExitBack 0.32s ease both;
}

.confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
}

.hint {
    display: block;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 400;
    margin-top: 4px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    padding: 14px;
    border-radius: 16px;
    background: rgba(12, 24, 22, 0.85);
    border: 1px solid rgba(31, 213, 138, 0.15);
    color: var(--text-0);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

a.tile,
a.action-button {
    text-decoration: none;
    color: inherit;
}

.tile-title {
    font-weight: 600;
    font-size: 14px;
}

.tile-sub {
    font-size: 12px;
    color: var(--text-2);
}

.tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(16, 32, 30, 0.8);
    border: 1px solid rgba(31, 213, 138, 0.2);
    display: grid;
    place-items: center;
    color: var(--accent);
}

.tile-icon.image {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
}

.tile-icon.image img {
    width: 28px;
    height: 28px;
    display: block;
}

.tile-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.screen-title {
    font-size: 18px;
    font-weight: 600;
}

.screen-subtitle {
    color: var(--text-2);
    font-size: 13px;
}

.benefits {
    display: grid;
    gap: 14px;
    color: var(--text-0);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--text-0);
}

.benefit-icon img {
    width: 28px;
    height: auto;
    display: block;
}

.plan-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.plan-grid {
    display: grid;
    gap: 12px;
}

.plan-card {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 24, 24, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.plan-card.active {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(65, 248, 162, 0.2);
}

.plan-title {
    font-size: 15px;
    font-weight: 600;
}

.plan-sub {
    font-size: 12px;
    color: var(--text-2);
}

.plan-gift {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #042014;
    background: rgba(65, 248, 162, 0.7);
    box-shadow: inset 0 0 0 1px rgba(65, 248, 162, 0.6);
    width: fit-content;
}

.plan-price {
    text-align: right;
    font-weight: 600;
}

.plan-price small {
    display: block;
    font-size: 12px;
    color: var(--text-2);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent);
    color: #042014;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.traffic-info {
    margin: 0;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.traffic-info p {
    margin: 0 0 6px;
}

.traffic-info p:last-child {
    margin-bottom: 0;
}

.wait-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.wait-title {
    font-size: 18px;
    font-weight: 600;
}

.wait-text {
    font-size: 14px;
    color: var(--text-2);
}

.step-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card.animate {
    animation: stepFade 0.35s ease both;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(65, 248, 162, 0.12);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.step-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-id,
.profile-label,
.profile-link {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 6px;
    word-break: break-all;
}

.list-card {
    display: grid;
}

.list-item {
    background: transparent;
    border: none;
    padding: 14px 0;
    color: var(--text-0);
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.list-item:last-child {
    border-bottom: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 10, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.modal.active {
    display: flex;
}

.modal.bottom {
    align-items: flex-end;
}

.modal.bottom .modal-body {
    transform: translateY(24px);
    opacity: 0;
}

.modal.bottom.active .modal-body {
    animation: sheetIn 0.28s ease both;
}

.modal.bottom .modal-body.sheet-out {
    animation: sheetOut 0.22s ease both;
}

.modal-body {
    background: rgba(16, 22, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body.sheet {
    max-width: 440px;
    border-radius: 24px 24px 18px 18px;
    background: rgba(14, 20, 20, 0.98);
    border-color: rgba(31, 213, 138, 0.12);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

.confirm-sheet {
    gap: 14px;
}

.confirm-info {
    background: rgba(20, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.confirm-line {
    color: var(--text-0);
}

.confirm-line.muted {
    color: var(--text-2);
}

.confirm-line:empty {
    display: none;
}

.confirm-method {
    background: rgba(20, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.confirm-method .method-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.confirm-method .method-text {
    font-size: 14px;
    color: var(--text-0);
}

.confirm-note {
    margin: 0;
    font-size: 11px;
    color: var(--text-2);
    text-align: center;
    line-height: 1.4;
}

.confirm-note a {
    color: var(--text-2);
    text-decoration: underline;
}

.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-sheet {
    gap: 10px;
}

.method-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(20, 26, 26, 0.8);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: var(--text-0);
    cursor: pointer;
}

.method-item.active {
    border-color: rgba(31, 213, 138, 0.5);
    box-shadow: 0 8px 18px rgba(31, 213, 138, 0.2);
}

.method-logo {
    width: 44px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.method-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.method-logo.card {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 18, 18, 0.8);
}

.method-logo.partner {
    font-size: 16px;
    font-weight: 700;
    color: #f2c94c;
    border: 1px solid rgba(242, 201, 76, 0.35);
    background: rgba(242, 201, 76, 0.12);
}

.method-logo.partner .method-symbol {
    line-height: 1;
}

.method-logo.stars {
    border: none;
    background: transparent;
    color: inherit;
}

.method-logo.stars img {
    width: 35px;
    height: 35px;
    display: block;
}

.method-text {
    flex: 1;
    font-size: 14px;
}

.method-check {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(31, 213, 138, 0.2);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.method-item.active .method-check {
    opacity: 1;
    transform: scale(1);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.icon-button.close {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    background: rgba(9, 18, 16, 0.7);
    border-color: rgba(31, 213, 138, 0.2);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-detail,
.modal-row {
    font-size: 14px;
    color: var(--text-1);
}

.modal-detail p {
    margin: 0 0 10px;
}

.modal-detail p:last-child {
    margin-bottom: 0;
}

.modal-detail b {
    color: var(--text-0);
}

.modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.qr-image {
    width: 100%;
    border-radius: 16px;
    background: transparent;
}

.qr-link {
    font-size: 12px;
    color: var(--text-2);
    word-break: break-all;
}

.guide-list {
    display: grid;
    gap: 8px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 24, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-0);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footnote {
    color: var(--text-2);
    font-size: 12px;
    text-align: center;
}

.skeleton-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

body[data-loading="true"] .status-name,
body[data-loading="true"] .status-date,
body[data-loading="true"] .status-tag {
    color: transparent;
}

body[data-loading="false"] [data-skeleton] {
    display: none;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
}

body[data-ready="true"] [data-reveal] {
    animation: rise 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes ringWave {
    0% {
        transform: scale(0.65);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.25);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes setupPulse {
    0%,
    100% {
        background-color: rgba(8, 18, 16, 0.7);
        border-color: rgba(31, 213, 138, 0.2);
    }
    50% {
        background-color: rgba(14, 30, 26, 0.82);
        border-color: rgba(65, 248, 162, 0.32);
    }
}

@keyframes buttonWave {
    0% {
        transform: scale(1);
        opacity: 0.38;
    }
    100% {
        transform: scale(1.06);
        opacity: 0;
    }
}

@keyframes stepFade {
    0% {
        opacity: 0.2;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes screenExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-22px) scale(0.98);
    }
}

@keyframes screenEnterBack {
    from {
        opacity: 0;
        transform: translateY(-28px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes sheetIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sheetOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(28px);
    }
}


@media (max-width: 420px) {
    .hero {
        height: 180px;
    }

    .stage-hero {
        height: 200px;
    }

    .hero-ring {
        width: 180px;
        height: 180px;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
    }

    .hero-icon::before,
    .hero-icon::after {
        inset: -18px;
    }

    .hero-logo {
        width: 86px;
    }

    .stage-wave,
    .stage-rings,
    .stage-ring {
        width: 210px;
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
