:root {
    --bg-main: #040507;
    --bg-deep: #0b1110;
    --bg-panel: rgba(10, 15, 19, 0.88);
    --bg-panel-strong: rgba(8, 12, 15, 0.96);
    --bg-soft: rgba(14, 23, 26, 0.78);
    --line: rgba(131, 255, 186, 0.16);
    --line-strong: rgba(131, 255, 186, 0.28);
    --text-main: #f3fff6;
    --text-soft: #a6c7b3;
    --text-dim: #6f8c7c;
    --accent: #83ffba;
    --accent-strong: #43f39c;
    --accent-deep: #17352a;
    --hot: #ff6ab8;
    --hot-soft: rgba(255, 106, 184, 0.14);
    --gold: #ffc857;
    --danger: #ff7a9f;
    --success: #63f0c0;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.48);
    --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.34);
    --radius-none: 0;
    --radius-card: 18px;
    --radius-soft: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Rajdhani", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(131, 255, 186, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 106, 184, 0.1), transparent 24%),
        radial-gradient(circle at bottom center, rgba(67, 243, 156, 0.09), transparent 30%),
        linear-gradient(180deg, #040507 0%, #020303 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.02), transparent 36%),
        linear-gradient(180deg, rgba(131, 255, 186, 0.02), transparent 55%);
}

body::after {
    inset: 18px;
    border: 1px solid rgba(131, 255, 186, 0.05);
    z-index: -1;
}

body.user-platform::before {
    background:
        linear-gradient(180deg, rgba(3, 6, 8, 0.64), rgba(2, 4, 6, 0.78)),
        url("user-bg-bot.jpg") center top / cover no-repeat;
    opacity: 0.46;
    filter: saturate(1.05) brightness(0.93);
}

body.user-platform::after {
    border-color: rgba(75, 189, 255, 0.09);
}

a {
    color: inherit;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    padding: 28px;
}

.flash-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    display: grid;
    gap: 12px;
    z-index: 40;
}

.flash-message {
    min-width: 260px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    background:
        linear-gradient(135deg, rgba(12, 21, 24, 0.96), rgba(6, 10, 13, 0.92));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.flash-message.error {
    border-color: rgba(255, 122, 159, 0.34);
}

.flash-message.success {
    border-color: rgba(99, 240, 192, 0.32);
}

.auth-page,
.dashboard-page {
    min-height: calc(100vh - 56px);
}

.auth-page {
    display: grid;
    place-items: center;
}

.dashboard-page {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 132px;
}

.auth-card,
.hero-panel,
.content-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        linear-gradient(135deg, rgba(18, 28, 32, 0.96), rgba(7, 10, 12, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-panel,
.content-panel {
    background:
        none;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-card::before,
.hero-panel::before,
.content-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(131, 255, 186, 0.04), transparent 26%, transparent 70%, rgba(255, 106, 184, 0.04));
    pointer-events: none;
}

.auth-card {
    width: min(100%, 560px);
}

.auth-card-split {
    display: block;
    min-height: auto;
}

.auth-card-login {
    min-height: auto;
}

.auth-card-register {
    min-height: auto;
}

.auth-visual,
.auth-main {
    position: relative;
    z-index: 1;
}

.auth-visual {
    display: none;
}

.auth-visual-badge {
    display: grid;
    gap: 8px;
    max-width: 360px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.auth-visual-badge strong {
    font-family: "Oxanium", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.16em;
}

.auth-main {
    padding: 34px;
    display: grid;
    align-content: center;
}

.auth-avatar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 116px;
    height: 116px;
    object-fit: cover;
    object-position: center top;
    opacity: 0.98;
    filter: drop-shadow(0 14px 26px rgba(40, 177, 255, 0.2));
    pointer-events: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-avatar {
    position: absolute;
    top: 10px;
    right: 16px;
    width: 124px;
    height: 124px;
    object-fit: cover;
    object-position: center top;
    opacity: 0.96;
    filter: drop-shadow(0 16px 28px rgba(40, 177, 255, 0.2));
    pointer-events: none;
}

.brand-block {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--accent);
    background: rgba(131, 255, 186, 0.08);
    border: 1px solid rgba(131, 255, 186, 0.12);
    border-radius: 10px;
}

h1,
h2 {
    margin: 0 0 12px;
    font-family: "Oxanium", sans-serif;
    letter-spacing: 0.04em;
}

h2 {
    font-size: clamp(1.56rem, 3vw, 2.4rem);
}

p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.42;
}

.auth-form,
.bank-card,
.recharge-form,
.compact-plan-info,
.favorite-bank-box,
.flow-filter-form label,
.bank-details div,
.recharge-form label,
.settings-option-list,
.referral-link-box,
.lucky-side {
    display: grid;
    gap: 10px;
}

.auth-form {
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form label span,
.flow-filter-form label span,
.recharge-form label span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

.auth-label-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    opacity: 0.92;
    flex: 0 0 auto;
}

.label-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.label-icon svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.captcha-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: center;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(166, 199, 179, 0.86);
    cursor: pointer;
    padding: 0;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.is-visible {
    color: rgba(131, 255, 186, 0.96);
}

.remember-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #5fe0ae;
}

.remember-row span {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

.captcha-image {
    width: 132px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(131, 255, 186, 0.12);
    background: rgba(255, 255, 255, 0.03);
    object-fit: cover;
}

input,
select,
button {
    font: inherit;
}

.auth-form input,
.inline-withdraw input,
.recharge-form input,
.recharge-form select,
.flow-filter-form input,
.plan-image-update input[type="file"] {
    width: 100%;
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: linear-gradient(180deg, rgba(8, 13, 16, 0.95), rgba(10, 16, 19, 0.88));
    color: var(--text-main);
    padding: 16px 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input::placeholder,
.inline-withdraw input::placeholder,
.recharge-form input::placeholder,
.flow-filter-form input::placeholder {
    color: rgba(166, 199, 179, 0.7);
}

.auth-form input:focus,
.inline-withdraw input:focus,
.recharge-form input:focus,
.recharge-form select:focus,
.flow-filter-form input:focus,
.plan-image-update input[type="file"]:focus {
    border-color: rgba(131, 255, 186, 0.3);
    box-shadow: 0 0 0 4px rgba(131, 255, 186, 0.08);
    transform: translateY(-1px);
}

.recharge-form select option {
    color: #091216;
    background: #eef4f1;
}

.auth-form button,
.action-button,
.admin-link,
.ghost-link,
.flow-filter-form button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(109, 234, 202, 0.24);
    padding: 15px 20px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    color: #04110a;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(131, 244, 218, 0.96), rgba(83, 223, 183, 0.92));
    box-shadow: 0 14px 30px rgba(72, 209, 170, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-form button:hover,
.action-button:hover,
.admin-link:hover,
.ghost-link:hover,
.flow-filter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(72, 209, 170, 0.22);
    filter: brightness(1.02);
}

.password-toggle,
.copy-inline-button {
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    filter: none !important;
}

.btn-mark {
    display: inline-block;
    margin-right: 8px;
    font-weight: 800;
    line-height: 1;
}

.ghost-link {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(131, 255, 186, 0.12);
    box-shadow: none;
}

.switch-panel {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(131, 255, 186, 0.1);
}

.switch-link {
    color: var(--text-soft);
    font-size: 1rem;
}

.hero-panel,
.content-panel {
    width: min(100%, 940px);
    padding: 30px;
}

.hero-panel {
    background: none;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-card);
    background: transparent;
    box-shadow: none;
}

.feature-card::after {
    display: none;
}

.wallet-overview {
    display: grid;
    gap: 26px;
}

.home-hero-block {
    width: min(100%, 430px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 158px;
    align-items: end;
    gap: 12px;
}

.home-hero-copy {
    display: grid;
    gap: 12px;
}

.home-hero-copy h2 {
    margin: 0;
    font-size: 2.3rem;
}

.home-hero-copy p {
    font-size: 0.96rem;
    line-height: 1.34;
}

.home-hero-actions {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}

.home-hero-visual {
    display: grid;
    justify-items: end;
}

.balance-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 30px;
    border: 1px solid rgba(131, 255, 186, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at top center, rgba(131, 255, 186, 0.1), transparent 58%),
        linear-gradient(180deg, rgba(9, 16, 19, 0.96), rgba(6, 9, 12, 0.94));
}

.card-label {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.balance-button {
    min-width: min(100%, 370px);
    border: 1px solid rgba(131, 255, 186, 0.22);
    padding: 22px 28px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(28, 70, 50, 0.72), rgba(12, 34, 26, 0.92));
    color: var(--text-main);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 26px rgba(131, 255, 186, 0.08);
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.action-row > * {
    flex: 0 1 220px;
}

.action-row form {
    margin: 0;
}

.checkin-form {
    margin: 0;
    width: auto;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.checkin-robot {
    width: 158px;
    height: 188px;
    flex: 0 0 158px;
    display: block;
    object-fit: contain;
    object-position: center top;
    opacity: 0.96;
    filter: drop-shadow(0 12px 24px rgba(40, 177, 255, 0.18));
    pointer-events: none;
}

.checkin-button {
    width: 92px;
    min-width: 92px;
    min-height: 92px;
    padding: 12px 10px 10px;
    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(173, 233, 255, 0.96), rgba(98, 190, 255, 0.92), rgba(122, 222, 255, 0.9));
    border-color: rgba(116, 201, 255, 0.3);
    box-shadow: 0 16px 34px rgba(92, 181, 255, 0.18);
    text-align: center;
    margin-inline: auto;
}

.home-quick-actions {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.home-quick-action {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: linear-gradient(180deg, rgba(11, 18, 21, 0.94), rgba(7, 12, 15, 0.9));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.home-quick-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #04110b;
}

.home-quick-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-quick-action span:last-child {
    font-family: "Oxanium", sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

.home-quick-recharge .home-quick-icon {
    background: linear-gradient(135deg, rgba(76, 248, 228, 0.96), rgba(67, 243, 156, 0.92));
}

.home-quick-withdraw .home-quick-icon {
    background: linear-gradient(135deg, rgba(255, 119, 195, 0.96), rgba(255, 171, 84, 0.92));
}

.gift-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(255, 225, 111, 0.28));
}

.gift-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: none;
}

.gift-icon rect,
.gift-icon path {
    stroke: #04110a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gift-icon rect:first-child {
    fill: #ff8cd5;
}

.gift-icon rect:nth-child(2) {
    fill: #ffe16f;
}

.gift-icon path:nth-child(3) {
    stroke: #04110a;
}

.gift-icon path:nth-child(4),
.gift-icon path:nth-child(5) {
    stroke: #0d8f8a;
}

.checkin-button .gift-icon {
    animation: gift-float 2.2s ease-in-out infinite;
    transform-origin: center;
}

.checkin-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #04110a;
    min-width: 100%;
    padding: 0;
}

.checkin-button:hover,
.checkin-button:focus-visible {
    box-shadow: 0 18px 38px rgba(92, 181, 255, 0.22);
    filter: saturate(1.04);
}

.checkin-button:hover .gift-icon,
.checkin-button:focus-visible .gift-icon {
    animation: gift-jiggle 0.7s ease-in-out infinite;
}

.checkin-button.is-celebrating {
    animation: checkin-pop 0.85s ease both;
}

.checkin-button.is-claimed {
    background: linear-gradient(135deg, rgba(173, 233, 255, 0.94), rgba(92, 178, 255, 0.92), rgba(120, 206, 255, 0.9));
    border-color: rgba(116, 201, 255, 0.34);
    box-shadow: 0 14px 30px rgba(92, 181, 255, 0.16);
}

.checkin-button.is-claimed .gift-icon {
    filter: drop-shadow(0 0 9px rgba(137, 206, 255, 0.26));
}

.checkin-button.is-celebrating .gift-icon {
    animation: gift-burst 0.9s ease both;
}

.checkin-button:disabled .gift-icon {
    animation: none;
    opacity: 0.7;
}

.recharge-toggle {
    width: 100%;
    display: grid;
    justify-items: center;
}

.recharge-toggle summary {
    list-style: none;
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 16px;
}

.recharge-toggle summary::-webkit-details-marker {
    display: none;
}

.recharge-toggle[open] {
    gap: 18px;
}

.recharge-toggle .recharge-panel {
    width: min(100%, 860px);
}

.withdraw-toggle .withdraw-panel {
    width: min(100%, 520px);
}

.withdraw-panel {
    padding: 20px;
}

@keyframes gift-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.04);
    }
}

@keyframes gift-jiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1.02);
    }
    20% {
        transform: rotate(-8deg) scale(1.04);
    }
    40% {
        transform: rotate(8deg) scale(1.04);
    }
    60% {
        transform: rotate(-5deg) scale(1.03);
    }
    80% {
        transform: rotate(5deg) scale(1.03);
    }
}

@keyframes gift-burst {
    0% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(1.28) rotate(-10deg);
    }
    55% {
        transform: scale(1.08) rotate(10deg);
    }
    100% {
        transform: scale(1.18) rotate(0deg);
    }
}

@keyframes checkin-pop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.05);
    }
    60% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1.02);
    }
}

.checkin-burst {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 6, 7, 0.34);
    backdrop-filter: blur(4px);
}

.checkin-burst[hidden] {
    display: none !important;
}

.checkin-burst-card {
    width: min(100%, 340px);
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 24px 22px;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 225, 111, 0.22);
    background:
        radial-gradient(circle at top, rgba(255, 225, 111, 0.22), transparent 42%),
        radial-gradient(circle at bottom right, rgba(255, 132, 205, 0.18), transparent 35%),
        linear-gradient(145deg, rgba(16, 19, 24, 0.98), rgba(8, 10, 12, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    animation: burst-card-in 0.35s ease, burst-card-pulse 0.85s ease 0.2s;
}

.checkin-burst-card strong {
    font-family: "Oxanium", sans-serif;
    font-size: 1.25rem;
    color: #fff4ba;
    letter-spacing: 0.04em;
}

.checkin-burst-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

.claimed-burst-card {
    border-color: rgba(210, 214, 211, 0.24);
    background:
        radial-gradient(circle at top, rgba(215, 221, 217, 0.16), transparent 42%),
        radial-gradient(circle at bottom right, rgba(159, 166, 162, 0.14), transparent 35%),
        linear-gradient(145deg, rgba(16, 19, 24, 0.98), rgba(8, 10, 12, 0.98));
}

.claimed-burst-card strong {
    color: #edf1ef;
}

.burst-gift {
    width: 42px;
    height: 42px;
    animation: gift-burst 0.9s ease both;
}

.welcome-bonus-burst {
    background: rgba(4, 7, 10, 0.42);
}

.welcome-bonus-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 213, 104, 0.3);
    background:
        radial-gradient(circle at top, rgba(255, 223, 130, 0.26), transparent 42%),
        radial-gradient(circle at bottom right, rgba(88, 181, 255, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(15, 20, 26, 0.98), rgba(8, 11, 15, 0.98));
}

.welcome-bonus-card strong {
    color: #fff2b8;
}

.welcome-bonus-card .plan-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.welcome-bonus-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 120, 0.24), rgba(255, 191, 72, 0.08));
    box-shadow: 0 0 18px rgba(255, 205, 92, 0.22);
}

.welcome-bonus-icon svg {
    width: 34px;
    height: 34px;
    stroke: #ffd96a;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.welcome-sparks span {
    position: absolute;
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 230, 129, 0), rgba(255, 230, 129, 0.95), rgba(88, 181, 255, 0));
    transform-origin: center bottom;
    animation: welcome-spark 1.25s ease-in-out infinite;
}

.welcome-sparks span:nth-child(1) { top: 16px; left: 24px; transform: rotate(-35deg); animation-delay: 0s; }
.welcome-sparks span:nth-child(2) { top: 10px; right: 30px; transform: rotate(28deg); animation-delay: 0.12s; }
.welcome-sparks span:nth-child(3) { top: 32px; left: 50%; transform: translateX(-50%) rotate(0deg); animation-delay: 0.24s; }
.welcome-sparks span:nth-child(4) { bottom: 28px; left: 38px; transform: rotate(-24deg); animation-delay: 0.08s; }
.welcome-sparks span:nth-child(5) { bottom: 24px; right: 44px; transform: rotate(32deg); animation-delay: 0.18s; }
.welcome-sparks span:nth-child(6) { top: 50%; right: 18px; transform: translateY(-50%) rotate(90deg); animation-delay: 0.3s; }

.welcome-bonus-card.is-claiming::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 220, 112, 0.2), transparent 55%);
    animation: welcome-claim-flash 0.9s ease;
}

.welcome-bonus-success-card {
    min-height: 240px;
}

.existing-users-notice-card {
    width: min(100%, 420px);
    justify-items: stretch;
    text-align: left;
    gap: 12px;
}

.existing-users-notice-card strong {
    text-align: center;
    font-size: 1.35rem;
}

.existing-users-notice-points {
    display: grid;
    gap: 10px;
}

.existing-users-notice-points p {
    font-size: 0.96rem;
    line-height: 1.45;
}

.existing-users-notice-card form {
    display: grid;
}

.welcome-fireworks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.welcome-fireworks span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.welcome-fireworks span::before,
.welcome-fireworks span::after {
    content: "";
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 222, 115, 0.95) 0 8%, transparent 9% 100%),
        radial-gradient(circle at top, rgba(255, 148, 215, 0.85) 0 7%, transparent 8% 100%),
        radial-gradient(circle at bottom, rgba(109, 202, 255, 0.9) 0 7%, transparent 8% 100%),
        radial-gradient(circle at left, rgba(180, 255, 197, 0.88) 0 7%, transparent 8% 100%),
        radial-gradient(circle at right, rgba(255, 220, 112, 0.9) 0 7%, transparent 8% 100%);
    animation: welcome-firework 1.3s ease-out infinite;
}

.welcome-fireworks span::after {
    animation-delay: 0.18s;
    filter: blur(1px);
}

.welcome-fireworks span:nth-child(1) {
    top: 24px;
    left: 28px;
}

.welcome-fireworks span:nth-child(2) {
    top: 34px;
    right: 34px;
}

.welcome-fireworks span:nth-child(3) {
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes burst-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes burst-card-pulse {
    0%, 100% {
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    }
    50% {
        box-shadow: 0 30px 78px rgba(255, 132, 205, 0.16);
    }
}

@keyframes welcome-spark {
    0%, 100% {
        opacity: 0.18;
        filter: brightness(0.9);
        transform: scale(0.92, 0.72);
    }
    50% {
        opacity: 1;
        filter: brightness(1.1);
        transform: scale(1, 1.12);
    }
}

@keyframes welcome-claim-flash {
    0% {
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes welcome-firework {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    35% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

@keyframes rocket-rise {
    from {
        transform: translateY(4px);
    }
    to {
        transform: translateY(-6px);
    }
}

@keyframes rocket-flame {
    from {
        transform: translateX(-50%) scaleY(0.86);
        opacity: 0.85;
    }
    to {
        transform: translateX(-50%) scaleY(1.1);
        opacity: 1;
    }
}

.withdraw-form {
    display: grid;
    gap: 14px;
}

.withdraw-form label {
    display: grid;
    gap: 8px;
}

.action-button {
    min-width: 176px;
}

.inline-withdraw {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.inline-withdraw input {
    min-width: 230px;
}

.secondary-action {
    background: linear-gradient(135deg, rgba(133, 245, 220, 0.94), rgba(76, 219, 177, 0.9));
}

.stats-grid,
.section-grid,
.plans-grid {
    width: min(100%, 940px);
    display: grid;
    gap: 18px;
}

.stats-grid,
.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-grid {
    padding-bottom: 120px;
}

.recharge-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    border-radius: 20px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.payment-sheet-card {
    gap: 12px;
    align-content: start;
}

.payment-amount-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(131, 255, 186, 0.14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(128, 255, 204, 0.18), rgba(87, 224, 174, 0.08));
}

.payment-amount-card span {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.payment-amount-card strong {
    font-size: 2.25rem;
    color: var(--text-main);
}

.payment-warning-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 154, 154, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(46, 12, 14, 0.92), rgba(28, 8, 11, 0.88));
    box-shadow: 0 16px 34px rgba(68, 10, 18, 0.22);
}

.payment-warning-card strong {
    color: #fff4f4;
    font-size: 1rem;
}

.payment-warning-card p {
    margin: 0;
    color: rgba(255, 226, 226, 0.88);
    font-size: 0.94rem;
    line-height: 1.5;
}

.settings-recharge-card .recharge-panel {
    width: 100%;
    margin-top: 10px;
}

.bank-details {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.payment-detail-row {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(131, 255, 186, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 13, 16, 0.76), rgba(10, 16, 19, 0.68));
}

.bank-details strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.payment-detail-row span {
    font-size: 0.95rem;
}

.payment-detail-content {
    display: grid;
    gap: 2px;
}

.payment-detail-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-inline-button {
    min-width: 30px;
    flex: 0 0 30px;
    width: 42px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(131, 255, 186, 0.9);
}

.copy-inline-button svg {
    width: 17px;
    height: 17px;
}

.copy-inline-button svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-inline-button.is-copied {
    color: rgba(167, 255, 206, 1);
}

.copy-inline-button.is-error {
    color: rgba(255, 136, 136, 0.95);
}

.payment-steps {
    display: grid;
    gap: 8px;
}

.payment-steps-inline {
    margin-bottom: 2px;
}

.payment-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border: 1px solid rgba(131, 255, 186, 0.08);
    border-radius: 14px;
    background: rgba(8, 12, 15, 0.44);
}

.payment-step > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(131, 255, 186, 0.95), rgba(73, 210, 170, 0.88));
    color: #03110b;
    font-weight: 800;
}

.payment-step strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 2px;
    font-size: 0.96rem;
}

.payment-step p {
    margin: 0;
    font-size: 0.9rem;
}

.payment-confirm-form {
    align-content: start;
    width: 100%;
}

.payment-report-button {
    min-height: 62px;
    width: 100%;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    border-radius: 20px;
    box-shadow: 0 20px 38px rgba(94, 199, 255, 0.24);
}

.payment-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.payment-confirm-amount {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(131, 255, 186, 0.1);
    border-radius: 14px;
    background: rgba(9, 14, 17, 0.58);
}

.payment-confirm-amount span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.payment-confirm-amount strong {
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1;
}

.recharge-amount-selector {
    display: grid;
    gap: 16px;
    width: min(100%, 860px);
}

.custom-recharge-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: linear-gradient(180deg, rgba(10, 17, 20, 0.94), rgba(6, 10, 13, 0.92));
}

.custom-recharge-form label {
    display: grid;
    gap: 8px;
    flex: 1 1 220px;
}

.custom-recharge-form span {
    color: var(--text-soft);
}

.custom-recharge-form input {
    width: 100%;
}

.recharge-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.recharge-option-card {
    display: grid;
    gap: 6px;
    padding: 20px 18px;
    text-decoration: none;
    border-radius: 22px;
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: linear-gradient(180deg, rgba(10, 17, 20, 0.94), rgba(6, 10, 13, 0.92));
    color: var(--text-main);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recharge-option-card strong {
    font-size: 1.5rem;
}

.recharge-option-card span {
    color: var(--text-soft);
}

.recharge-option-card:hover,
.recharge-option-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(131, 255, 186, 0.26);
    box-shadow: 0 16px 28px rgba(41, 255, 179, 0.1);
}

.change-amount-link {
    justify-self: start;
    min-width: 0;
}

.plan-card,
.settings-list-card {
    display: grid;
    align-content: start;
}

.profile-hero-panel {
    width: min(100%, 820px);
}

.profile-command-panel {
    width: min(100%, 820px);
    padding-top: 8px;
}

.profile-command-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 146px 22px 26px;
    border: 1px solid rgba(131, 255, 186, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top center, rgba(67, 243, 156, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 170, 62, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(10, 18, 18, 0.96), rgba(6, 8, 11, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.profile-command-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 181, 86, 0.14), transparent 8%),
        radial-gradient(circle at 86% 72%, rgba(67, 243, 156, 0.14), transparent 6%),
        radial-gradient(circle at 72% 16%, rgba(255, 181, 86, 0.1), transparent 5%);
    pointer-events: none;
}

.profile-ship-art {
    display: block;
    width: min(100%, 350px);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.profile-balance-chip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    width: min(100%, 300px);
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 26, 24, 0.96), rgba(11, 18, 18, 0.94));
    border: 1px solid rgba(131, 255, 186, 0.12);
    text-align: center;
    z-index: 1;
}

.profile-balance-chip {
    top: 24px;
}

.profile-balance-chip strong {
    font-family: "Oxanium", sans-serif;
    font-size: 1.05rem;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.profile-balance-chip span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.profile-lock-note {
    position: relative;
    z-index: 1;
    margin: 4px auto 0;
    max-width: 560px;
    text-align: center;
}

.profile-primary-actions {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    z-index: 1;
    margin-top: 4px;
}

.profile-action-badge {
    width: 120px;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.profile-action-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.profile-action-icon svg {
    width: 28px;
    height: 28px;
}

.profile-action-icon svg * {
    fill: none;
    stroke: #04110a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-action-badge span:last-child {
    font-family: "Oxanium", sans-serif;
    font-size: 1rem;
}

.profile-action-recharge .profile-action-icon {
    background: linear-gradient(135deg, rgba(163, 229, 255, 0.96), rgba(88, 177, 255, 0.9));
}

.profile-action-withdraw .profile-action-icon {
    background: linear-gradient(135deg, rgba(255, 119, 195, 0.96), rgba(255, 171, 84, 0.92));
}

.profile-menu-grid {
    width: min(100%, 820px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
}

.profile-menu-item {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    padding: 8px 4px;
}

.profile-menu-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(27, 37, 60, 0.94), rgba(11, 17, 31, 0.98));
    border: 1px solid rgba(102, 198, 255, 0.14);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    color: #e9f7ff;
}

.profile-menu-icon svg {
    width: 22px;
    height: 22px;
}

.profile-menu-icon svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-menu-item span:last-child {
    font-size: 0.94rem;
    line-height: 1.2;
}

.profile-menu-bank .profile-menu-icon {
    background: linear-gradient(135deg, rgba(121, 244, 221, 0.96), rgba(74, 214, 175, 0.92));
}

.profile-menu-bank .profile-menu-icon svg * {
    stroke: #071813;
}

.profile-menu-balance .profile-menu-icon {
    background: linear-gradient(135deg, rgba(125, 240, 227, 0.95), rgba(75, 205, 188, 0.92));
}

.profile-menu-balance .profile-menu-icon svg * {
    stroke: #07211b;
}

.profile-menu-pin .profile-menu-icon {
    background: linear-gradient(135deg, rgba(115, 245, 210, 0.95), rgba(64, 212, 166, 0.9));
}

.profile-menu-pin .profile-menu-icon svg * {
    stroke: #071712;
}

.profile-menu-logout .profile-menu-icon {
    background: linear-gradient(135deg, rgba(255, 126, 145, 0.96), rgba(228, 68, 88, 0.92));
}

.profile-menu-logout .profile-menu-icon svg * {
    stroke: #2a050b;
}

.profile-menu-lucky .profile-menu-icon {
    background: linear-gradient(135deg, rgba(255, 208, 92, 0.96), rgba(255, 108, 184, 0.92));
}

.profile-menu-lucky .profile-menu-icon svg * {
    stroke: #241007;
}

.profile-menu-support .profile-menu-icon {
    background: linear-gradient(135deg, rgba(122, 244, 223, 0.96), rgba(69, 210, 177, 0.92));
}

.profile-menu-support .profile-menu-icon svg * {
    stroke: #04111b;
}

.rocket-success {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 5, 7, 0.3);
    backdrop-filter: blur(4px);
}

.rocket-success-card {
    width: min(100%, 360px);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 22px;
    border-radius: 28px;
    border: 1px solid rgba(131, 255, 186, 0.14);
    background:
        radial-gradient(circle at bottom center, rgba(67, 243, 156, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(14, 18, 28, 0.96), rgba(8, 10, 14, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.rocket-success-card strong {
    font-family: "Oxanium", sans-serif;
    font-size: 1.2rem;
}

.rocket-success-card p {
    text-align: center;
}

.rocket-ship {
    position: relative;
    width: 72px;
    height: 110px;
    animation: rocket-rise 1.15s ease-in-out infinite alternate;
}

.rocket-body {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 38px;
    height: 70px;
    transform: translateX(-50%);
    border-radius: 22px 22px 14px 14px;
    background: linear-gradient(180deg, #f8fbff, #c9d8f7 70%, #7bb3ff);
}

.rocket-body::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    width: 24px;
    height: 24px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 6px;
    background: linear-gradient(135deg, #ff80c8, #ffd167);
}

.rocket-window {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #223863;
    border: 3px solid #8ef5ff;
}

.rocket-fin {
    position: absolute;
    bottom: 26px;
    width: 18px;
    height: 30px;
    background: linear-gradient(180deg, #ff6ab8, #ff945f);
}

.rocket-fin-left {
    left: 10px;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.rocket-fin-right {
    right: 10px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.rocket-flame {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 16px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 50% 50% 60% 60%;
    background: linear-gradient(180deg, #ffe16f, #ff8a47 45%, #ff4d4d);
    filter: blur(0.4px);
    animation: rocket-flame 0.35s ease-in-out infinite alternate;
}

.settings-quiet-link {
    min-width: 0;
    width: auto;
    padding: 10px 14px;
    justify-self: start;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.recharge-page-panel,
.withdraw-page-form {
    width: min(100%, 820px);
}

.recharge-page-panel,
.recharge-amount-selector {
    padding-bottom: 110px;
}

.plan-image,
.compact-plan-image {
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: linear-gradient(180deg, rgba(14, 21, 24, 0.98), rgba(10, 16, 18, 0.98));
    border-radius: 16px;
}

.plan-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 18px;
}

.compact-plan-panel {
    width: min(100%, 940px);
    padding: 18px;
}

.compact-dashboard-plans {
    display: grid;
    gap: 14px;
    width: 100%;
}

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

.plan-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.plan-filter-button {
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.plan-filter-button.is-active {
    border-color: rgba(94, 199, 255, 0.62);
    box-shadow: 0 0 0 1px rgba(94, 199, 255, 0.22), 0 10px 24px rgba(28, 133, 255, 0.18);
}

.vip-filter-button {
    border-color: rgba(255, 211, 94, 0.44);
    background: linear-gradient(135deg, rgba(59, 38, 5, 0.92), rgba(124, 91, 17, 0.94));
    color: #fff2bf;
    box-shadow: 0 0 0 1px rgba(255, 219, 120, 0.18), 0 12px 30px rgba(171, 122, 20, 0.22);
}

.vip-filter-button.is-active {
    border-color: rgba(255, 223, 133, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 227, 150, 0.25), 0 0 18px rgba(255, 202, 84, 0.22), 0 14px 28px rgba(171, 122, 20, 0.28);
}

.plans-link-button {
    min-width: 0;
    width: auto;
    padding: 10px 14px;
}

.plan-list-scroll {
    max-height: 520px;
    margin-top: 0;
    width: 100%;
    padding-right: 0;
}

.plan-list-stack {
    width: 100%;
    margin-top: 0;
}

.plans-page-scroll {
    max-height: none;
}

.plans-page-list {
    width: 100%;
}

.compact-plan-list {
    display: none;
    gap: 14px;
    width: 100%;
}

.compact-plan-list.is-active {
    display: grid;
}

.empty-plan-state {
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid rgba(94, 199, 255, 0.22);
    background: linear-gradient(180deg, rgba(8, 14, 20, 0.82), rgba(5, 9, 14, 0.88));
}

.empty-plan-state-vip {
    border-color: rgba(255, 219, 120, 0.34);
    background: linear-gradient(180deg, rgba(32, 24, 8, 0.84), rgba(15, 10, 4, 0.9));
}

.dashboard-page .compact-plan-list {
    display: grid;
}

.plans-page .compact-plan-list {
    display: none;
    gap: 18px;
}

.plans-page .compact-plan-list.is-active {
    display: grid;
}

.compact-plan-card {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 0;
}

.compact-plan-shell {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.plans-page .compact-dashboard-plans,
.plans-page .content-panel.wide-grid,
.plans-page .compact-plan-list {
    width: min(100%, 980px);
}

.compact-plan-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.compact-plan-placeholder {
    display: grid;
    place-items: center;
    padding: 12px;
    color: var(--text-main);
    text-align: center;
    font-family: "Oxanium", sans-serif;
    font-size: 0.94rem;
    background:
        linear-gradient(145deg, rgba(27, 41, 35, 0.94), rgba(16, 21, 24, 0.98));
}

.compact-plan-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(10, 14, 18, 0.72) 0%, rgba(10, 14, 18, 0.28) 34%, rgba(10, 14, 18, 0.82) 100%);
}

.compact-plan-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.compact-plan-info {
    display: grid;
    gap: 6px;
    max-width: 70%;
}

.compact-plan-info h2 {
    margin: 0;
    font-size: 1.45rem;
}

.compact-plan-info p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.24;
    color: #eff8f2;
}

.compact-plan-meta {
    margin: 0;
    color: var(--text-main);
    line-height: 1.3;
    font-size: 0.96rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.compact-plan-action {
    margin: 0;
}

.compact-plan-action .action-button {
    min-width: 142px;
    padding: 13px 16px;
    border-color: rgba(109, 234, 202, 0.32);
    background: linear-gradient(135deg, rgba(133, 245, 220, 0.96), rgba(76, 219, 177, 0.92));
    box-shadow: 0 16px 32px rgba(72, 209, 170, 0.22);
    color: #04140e;
}

.list-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(131, 255, 186, 0.1);
    background: linear-gradient(180deg, rgba(10, 17, 20, 0.92), rgba(6, 10, 13, 0.92));
    border-radius: 16px;
}

.data-row strong,
.row-summary strong {
    display: block;
    color: var(--text-main);
}

.data-row span,
.row-summary span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    word-break: break-word;
}

.row-summary {
    text-align: right;
}

.admin-row {
    align-items: center;
}

.admin-page {
    padding-bottom: 40px;
}

.admin-control-page > .hero-panel,
.admin-control-page > .content-panel,
.admin-control-page > .section-grid,
.admin-control-page > .admin-tab-section > .section-grid,
.admin-control-page > .admin-tab-section > .content-panel {
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
}

.admin-link {
    display: inline-block;
    margin-top: 0;
    text-align: center;
}

.admin-form-stack {
    margin-top: 16px;
}

.admin-tab-panel {
    padding-top: 8px;
    padding-bottom: 8px;
}

.admin-tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.admin-tab-button {
    min-width: 0;
    width: auto;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.admin-tab-button.is-active {
    border-color: rgba(94, 199, 255, 0.62);
    box-shadow: 0 0 0 1px rgba(94, 199, 255, 0.22), 0 12px 28px rgba(28, 133, 255, 0.18);
}

.admin-tab-section {
    display: none;
}

.admin-tab-section.is-active {
    display: block;
}

.admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #0d1820;
    border: 1px solid rgba(96, 188, 255, 0.48);
    color: #92d7ff;
    font-size: 0.74rem;
    line-height: 1;
}

.admin-notice-panel {
    max-width: min(940px, calc(100vw - 3rem));
    margin: 0 auto 1.25rem;
}

.admin-notice-card {
    border: 1px solid rgba(96, 188, 255, 0.32);
    background: linear-gradient(135deg, rgba(7, 17, 20, 0.88), rgba(10, 20, 30, 0.94));
    box-shadow: 0 0 22px rgba(60, 164, 255, 0.12);
}

.admin-form-stack .withdraw-form {
    padding: 16px;
    border: 1px solid rgba(94, 199, 255, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 17, 24, 0.82), rgba(6, 10, 16, 0.92));
}

.admin-user-search-form {
    width: min(100%, 460px);
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
}

.admin-panel-search-form {
    width: min(100%, 520px);
    margin: 14px 0 18px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
}

.admin-user-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.admin-control-page .data-row {
    gap: 22px;
    padding: 22px;
    border-radius: 20px;
}

.admin-control-page .data-row strong,
.admin-control-page .row-summary strong {
    font-size: 1.16rem;
    line-height: 1.32;
}

.admin-control-page .data-row span,
.admin-control-page .row-summary span {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.45;
}

.admin-control-page .row-summary {
    min-width: 220px;
}

.admin-control-page .row-summary form + form {
    margin-top: 10px;
}

.admin-control-page .row-summary .action-button,
.admin-control-page .admin-user-actions .action-button,
.admin-control-page .admin-inline-leader-form .action-button {
    min-height: 48px;
    font-size: 0.98rem;
}

.admin-control-page .admin-panel-scroll {
    max-height: 760px;
}

.admin-withdraw-row {
    align-items: start;
}

.admin-user-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.admin-user-actions form,
.admin-inline-leader-form {
    margin: 0;
}

.admin-user-actions .action-button,
.admin-inline-leader-form .action-button {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
}

.admin-inline-leader-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px;
}

.admin-danger-button {
    color: #fff0f4;
    background: linear-gradient(135deg, rgba(255, 122, 159, 0.92), rgba(226, 68, 112, 0.88));
    border-color: rgba(255, 122, 159, 0.22);
    box-shadow: 0 14px 30px rgba(226, 68, 112, 0.16);
}

.admin-plan-scroll,
.admin-panel-scroll {
    max-height: 620px;
}

.admin-plan-card {
    display: grid;
    gap: 16px;
}

.admin-plan-main {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-plan-main span {
    display: block;
    margin-top: 4px;
}

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

.inline-delete-form {
    margin: 0;
}

.profile-balance-card h2 {
    margin: 8px 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.profile-balance-card p + p {
    margin-top: 10px;
}

body.modal-open {
    overflow: hidden;
}

.plan-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.plan-modal[hidden] {
    display: none !important;
}

.plan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.plan-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    padding: 24px;
    border: 1px solid rgba(131, 255, 186, 0.16);
    background:
        radial-gradient(circle at top right, rgba(131, 255, 186, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(12, 18, 21, 0.96), rgba(7, 10, 12, 0.98));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.plan-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(131, 255, 186, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 8px 12px;
    cursor: pointer;
}

.plan-modal-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.plan-modal-robot {
    width: 200px;
    height: 250px;
    object-fit: contain;
    object-position: center center;
    border: 1px solid rgba(131, 255, 186, 0.14);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
}

.plan-modal-copy {
    display: grid;
    gap: 10px;
}

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

.plan-modal-summary {
    color: var(--text-main);
    font-weight: 700;
}

.favorite-bank-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(131, 255, 186, 0.12);
    background: linear-gradient(180deg, rgba(11, 16, 18, 0.94), rgba(7, 10, 12, 0.96));
}

.favorite-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 10px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #04110a;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(154, 255, 202, 0.95), rgba(67, 243, 156, 0.88));
}

.settings-note {
    margin-top: 18px;
}

.referral-level-stack {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: start;
    gap: 16px;
}

.referral-level-card,
.referral-link-card {
    background:
        radial-gradient(circle at top right, rgba(131, 255, 186, 0.06), transparent 34%),
        linear-gradient(145deg, rgba(12, 18, 21, 0.94), rgba(7, 10, 12, 0.98));
    border-color: rgba(131, 255, 186, 0.12);
}

.referral-level-card {
    position: relative;
    width: 100%;
    min-height: 210px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 18px 18px 24px;
    overflow: hidden;
    border-radius: 28px 18px 30px 18px;
}

.referral-level-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 14, 0.52), rgba(8, 12, 14, 0.8)),
        url("robot-real.png") center/cover no-repeat;
    opacity: 0.16;
    pointer-events: none;
    mix-blend-mode: screen;
}

.is-current-level {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(131, 255, 186, 0.08);
}

.level-crown-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #201304;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 227, 121, 0.98), rgba(255, 182, 69, 0.88));
    box-shadow: 0 10px 24px rgba(255, 186, 76, 0.18);
    z-index: 1;
}

.referral-level-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.level-crown-1::before {
    background: linear-gradient(180deg, rgba(123, 255, 187, 0.96), rgba(51, 214, 133, 0.82));
    box-shadow: 0 0 24px rgba(83, 238, 149, 0.18);
}

.level-crown-2::before {
    background: linear-gradient(180deg, rgba(103, 228, 255, 0.96), rgba(54, 156, 255, 0.82));
    box-shadow: 0 0 24px rgba(78, 180, 255, 0.18);
}

.level-crown-3::before {
    background: linear-gradient(180deg, rgba(255, 221, 104, 0.98), rgba(255, 170, 62, 0.84));
    box-shadow: 0 0 24px rgba(255, 194, 84, 0.18);
}

.current-level-text {
    margin-top: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.invited-summary-grid {
    align-items: stretch;
}

.invited-hero-card {
    min-height: 0;
}

.invited-hero-card h2 {
    margin: 6px 0 0;
}

.invited-hero-card-wide {
    grid-column: 1 / -1;
}

.referral-level-card .card-label,
.referral-level-card h2,
.referral-level-card p {
    position: relative;
    z-index: 1;
}

.referral-level-card h2 {
    margin: 4px 0 10px;
    font-size: 2.4rem;
}

.referral-level-card p {
    font-size: 0.98rem;
    max-width: 85%;
}

.copy-link-button {
    width: fit-content;
    min-width: 190px;
}

.copy-feedback {
    min-height: 18px;
    color: #ffb9df;
    font-weight: 700;
    font-size: 0.95rem;
}

.lucky-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.lucky-wheel-shell {
    position: relative;
    display: grid;
    place-items: center;
    padding: 34px 0 16px;
}

.lucky-wheel-shell::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(131, 255, 186, 0.18), transparent 52%),
        radial-gradient(circle, rgba(83, 174, 255, 0.16), transparent 66%);
    filter: blur(10px);
    pointer-events: none;
}

.lucky-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 28px solid #f3fff6;
    filter: drop-shadow(0 0 12px rgba(131, 255, 186, 0.36));
    z-index: 3;
}

.lucky-wheel {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    border: 6px solid rgba(131, 255, 186, 0.34);
    background:
        conic-gradient(
            from -30deg,
            rgba(255, 209, 102, 0.96) 0deg 60deg,
            rgba(255, 123, 172, 0.82) 60deg 120deg,
            rgba(110, 243, 209, 0.92) 120deg 180deg,
            rgba(116, 170, 255, 0.8) 180deg 240deg,
            rgba(170, 127, 255, 0.88) 240deg 300deg,
            rgba(91, 232, 140, 0.82) 300deg 360deg
        );
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.04),
        inset 0 0 30px rgba(0, 0, 0, 0.42),
        0 30px 62px rgba(0, 0, 0, 0.4),
        0 0 36px rgba(110, 243, 209, 0.16);
    transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.18, 1);
}

.lucky-slice {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 116px;
    text-align: center;
    transform-origin: 50% 50%;
    color: #031008;
    font-weight: 800;
    font-size: 0.84rem;
    line-height: 1.12;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lucky-slice-locked {
    color: #3e2510;
    text-shadow: 0 1px 0 rgba(255, 244, 214, 0.28);
}

.slice-1 { transform: translate(-50%, -50%) rotate(0deg) translateY(-126px); }
.slice-2 { transform: translate(-50%, -50%) rotate(60deg) translateY(-126px); }
.slice-3 { transform: translate(-50%, -50%) rotate(120deg) translateY(-126px); }
.slice-4 { transform: translate(-50%, -50%) rotate(180deg) translateY(-126px); }
.slice-5 { transform: translate(-50%, -50%) rotate(240deg) translateY(-126px); }
.slice-6 { transform: translate(-50%, -50%) rotate(300deg) translateY(-126px); }

.lucky-center {
    position: absolute;
    inset: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #f6fff8;
    font-family: "Oxanium", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    background:
        radial-gradient(circle at 30% 30%, rgba(46, 68, 58, 0.98), rgba(8, 12, 10, 0.98));
    border: 3px solid rgba(131, 255, 186, 0.28);
    box-shadow: inset 0 0 18px rgba(131, 255, 186, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.referral-code-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    width: fit-content;
    padding: 0 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(131, 255, 186, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.referral-code-box strong {
    font-family: "Oxanium", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--text-main);
}

.lucky-spin-button {
    width: 100%;
}

.lucky-result-message {
    min-height: 24px;
    color: #a2ffd0;
    font-weight: 700;
}

.lucky-prizes-trigger {
    margin-top: 18px;
    min-width: 220px;
    padding: 18px 24px;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
}

.lucky-hero-panel {
    text-align: left;
}

.lucky-prize-card {
    border-radius: 24px;
}

.lucky-prize-card-main h2 {
    font-size: 2.5rem;
    margin: 8px 0 4px;
}

.lucky-prize-card-main p,
.lucky-prize-card p {
    font-size: 1rem;
    line-height: 1.38;
}

.lucky-prizes-scroll {
    max-height: 420px;
    margin-top: 14px;
}

.plan-image-update {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 10px;
}

.plan-image-update .action-button {
    min-width: 180px;
    padding: 12px 16px;
}

.flow-filter-panel {
    width: min(100%, 940px);
}

.flow-filter-form {
    display: flex;
    gap: 16px;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
}

.flow-filter-form label {
    min-width: 180px;
}

.flow-card {
    min-height: 280px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.scroll-history {
    margin-top: 18px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 8px;
}

.scroll-history::-webkit-scrollbar {
    width: 8px;
}

.scroll-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.scroll-history::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(131, 255, 186, 0.22), rgba(67, 243, 156, 0.32));
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(64vw, 580px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.bottom-nav a {
    text-decoration: none;
    text-align: center;
    color: #04111b;
    padding: 10px 6px;
    background: linear-gradient(135deg, rgba(124, 229, 255, 0.98), rgba(59, 164, 255, 0.9));
    border: 1px solid rgba(96, 209, 255, 0.4);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(48, 160, 255, 0.18), 0 0 14px rgba(96, 209, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border-radius: 18px;
}

.nav-icon,
.nav-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon {
    margin-right: 6px;
    font-size: 1rem;
    line-height: 1;
}

.nav-mono .nav-icon {
    filter: grayscale(1) brightness(1.75) contrast(1.05);
}

.nav-mono.active .nav-icon {
    filter: grayscale(1) brightness(2);
}

.bottom-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(48, 160, 255, 0.24), 0 0 18px rgba(96, 209, 255, 0.18);
}

.bottom-nav a.active {
    background: linear-gradient(135deg, rgba(204, 245, 255, 1), rgba(86, 197, 255, 0.98));
    border-color: rgba(142, 226, 255, 0.52);
    color: #02101a;
    box-shadow: 0 18px 34px rgba(73, 192, 255, 0.24), 0 0 22px rgba(86, 197, 255, 0.24);
}

.nav-lucky {
    color: #04110a;
}

.admin-auth-card .auth-visual,
.admin-visual {
    background:
        radial-gradient(circle at top left, rgba(255, 106, 184, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(131, 255, 186, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(24, 16, 22, 0.9), rgba(11, 9, 12, 0.96));
}

.reward-missions-grid {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.reward-mission-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text-main);
    font-family: "Oxanium", sans-serif;
}

.reward-stat-card,
.reward-mission-card,
.flow-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(94, 199, 255, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(6, 13, 22, 0.8), rgba(4, 8, 14, 0.9)),
        url("/static/rewards-stars.webp") center/cover no-repeat;
    box-shadow:
        0 0 0 1px rgba(96, 188, 255, 0.12),
        0 0 24px rgba(28, 133, 255, 0.14),
        0 14px 32px rgba(0, 0, 0, 0.24);
}

.reward-stat-card::before,
.reward-mission-card::before,
.flow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.28), rgba(5, 10, 18, 0.58));
    pointer-events: none;
}

.reward-stat-card > *,
.reward-mission-card > *,
.flow-card > * {
    position: relative;
    z-index: 1;
}

.reward-stat-card {
    min-height: 0;
}

.mission-progress-bar {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(87, 190, 255, 0.12);
}

.mission-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(126, 214, 255, 0.92), rgba(53, 159, 255, 0.96));
    box-shadow: 0 0 12px rgba(73, 192, 255, 0.22);
}

.reward-entry-card {
    border: 1px solid rgba(87, 190, 255, 0.34);
    background: linear-gradient(180deg, rgba(7, 15, 24, 0.94), rgba(5, 10, 17, 0.96));
    box-shadow:
        0 0 0 1px rgba(87, 190, 255, 0.08),
        0 0 16px rgba(28, 133, 255, 0.12),
        0 10px 22px rgba(0, 0, 0, 0.18);
}

.reward-entry-copy,
.reward-entry-actions {
    display: grid;
    gap: 4px;
}

.reward-entry-actions .action-button {
    margin-top: 6px;
}

.support-card h2 {
    margin-bottom: 6px;
}

.support-action-stack {
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
}

.mission-done {
    border-color: rgba(131, 255, 186, 0.22);
    background:
        linear-gradient(145deg, rgba(7, 17, 21, 0.72), rgba(4, 10, 12, 0.76)),
        url("/static/rewards-stars.webp") center/cover no-repeat;
}

@media (max-width: 960px) {
    .stats-grid,
    .section-grid,
    .plans-grid,
    .recharge-panel,
    .lucky-panel,
    .data-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .row-summary {
        text-align: left;
    }

    .admin-control-page .row-summary {
        min-width: 0;
    }

    .admin-panel-search-form,
    .admin-user-search-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        width: min(78vw, 560px);
    }

    .referral-level-stack {
        grid-template-columns: repeat(2, minmax(0, 220px));
    }

    .profile-tools-grid {
        grid-template-columns: 1fr;
    }

    .reward-missions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding: 16px;
    }

    body::after {
        inset: 10px;
    }

    .auth-page,
    .dashboard-page {
        min-height: calc(100vh - 32px);
    }

    .auth-card,
    .hero-panel,
    .content-panel {
        width: 100%;
    }

    #planes.content-panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-main,
    .hero-panel,
    .content-panel {
        padding: 22px;
    }

    .auth-main {
        padding: 18px;
    }

    .brand-block {
        margin-bottom: 18px;
    }

    .brand-block h2 {
        margin-bottom: 8px;
    }

    .brand-block p {
        font-size: 0.98rem;
        line-height: 1.28;
        max-width: calc(100% - 86px);
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form label {
        gap: 6px;
    }

    .auth-form label span {
        font-size: 0.95rem;
    }

    .auth-form input {
        padding: 14px 15px;
    }

    .hero-panel {
        padding-top: 18px;
        padding-bottom: 18px;
        min-height: 0;
    }

    .hero-panel h1 {
        font-size: 2.05rem;
        margin-bottom: 0;
    }

    .hero-description {
        display: none;
    }

    .hero-avatar {
        top: 12px;
        right: 10px;
        width: 72px;
        height: 72px;
    }

    .auth-avatar {
        top: 10px;
        right: 10px;
        width: 72px;
        height: 72px;
    }

    .auth-card-register {
        min-height: auto;
    }

    .compact-dashboard-plans {
        gap: 12px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .plan-list-scroll {
        max-height: 650px;
    }

    .balance-card {
        padding: 22px 18px;
    }

    .balance-button {
        min-width: 100%;
        font-size: 1.52rem;
        padding: 18px 16px;
    }

    .action-row {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .action-button,
    .copy-link-button,
    .admin-link,
    .ghost-link {
        min-width: 100%;
        width: 100%;
    }

    .checkin-form {
        width: auto;
    }

    .checkin-button {
        width: 88px;
        min-width: 88px;
        min-height: 88px;
        padding: 11px 8px 9px;
    }

    .checkin-button .gift-icon {
        width: 31px;
        height: 31px;
    }

    .checkin-label {
        font-size: 0.48rem;
    }

    .checkin-robot {
        width: 136px;
        height: 162px;
        flex-basis: 136px;
    }

    .home-hero-block {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 136px;
        gap: 8px;
    }

    .home-hero-copy {
        gap: 10px;
    }

    .home-hero-copy h2 {
        font-size: 2rem;
    }

    .home-hero-copy p {
        font-size: 0.82rem;
        line-height: 1.28;
    }

    .home-hero-actions {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
    }

    .home-quick-actions {
        gap: 10px;
        margin-bottom: 0;
    }

    .home-quick-action {
        padding: 12px 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .home-quick-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .home-quick-icon svg {
        width: 19px;
        height: 19px;
    }

    .home-quick-action span:last-child {
        font-size: 0.9rem;
    }

    .recharge-toggle summary {
        width: 100%;
    }

    .recharge-toggle,
    .withdraw-toggle {
        width: 100%;
    }

    .recharge-toggle summary,
    .withdraw-toggle summary {
        width: 100%;
        min-width: 0;
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .inline-withdraw input,
    .recharge-form input,
    .recharge-form select,
    .flow-filter-form label,
    .flow-filter-form input {
        width: 100%;
    }

    .captcha-field {
        grid-template-columns: 1fr;
    }

    .payment-detail-row {
        padding: 10px 12px;
    }

    .copy-inline-button {
        width: 30px;
        height: 30px;
    }

    .payment-sheet-card > p,
    .hero-panel p {
        font-size: 0.94rem;
        line-height: 1.32;
    }

    .recharge-page-panel {
        width: 100%;
        gap: 12px;
    }

    .payment-sheet-card {
        gap: 12px;
    }

    .payment-amount-card {
        padding: 14px 16px;
    }

    .payment-amount-card strong {
        font-size: 2rem;
    }

    .payment-warning-card {
        padding: 14px 16px;
    }

    .payment-warning-card strong {
        font-size: 0.96rem;
    }

    .payment-steps {
        gap: 8px;
    }

    .payment-step {
        padding: 8px 10px;
        gap: 10px;
    }

    .payment-step p {
        font-size: 0.88rem;
    }

    .payment-actions {
        gap: 10px;
    }

    .payment-confirm-amount strong {
        font-size: 2.15rem;
    }

    .payment-report-button {
        min-height: 58px;
        font-size: 1rem;
    }

    .change-amount-link,
    .payment-confirm-form button {
        width: 100%;
    }

    .plan-filter-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .plan-filter-button {
        width: 100%;
        padding: 9px 8px;
        font-size: 0.76rem;
        letter-spacing: 0.06em;
    }

    .recharge-option-grid {
        grid-template-columns: 1fr 1fr;
    }

    .custom-recharge-form {
        padding: 16px;
    }

    .custom-recharge-form .action-button {
        width: 100%;
    }

    .captcha-image {
        width: 100%;
        max-width: 168px;
    }

    .compact-plan-card {
        width: 100%;
        padding: 5px;
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(34, 33, 48, 0.96), rgba(26, 26, 38, 0.96));
    }

    .plans-page .content-panel.wide-grid,
    .plans-page .compact-dashboard-plans,
    .plans-page .compact-plan-list {
        width: 100%;
    }

    .profile-command-card {
        min-height: 300px;
        padding: 22px 16px 24px;
    }

    .profile-balance-chip {
        width: min(100%, 250px);
        padding: 10px 14px;
    }

    .profile-balance-chip {
        top: 14px;
    }

    .profile-ship-art {
        width: min(100%, 250px);
        margin-top: 38px;
    }

    .profile-primary-actions {
        gap: 16px;
        bottom: 18px;
    }

    .profile-action-badge {
        width: 96px;
    }

    .profile-action-icon {
        width: 60px;
        height: 60px;
    }

    .profile-action-icon svg {
        width: 24px;
        height: 24px;
    }

    .profile-action-badge span:last-child {
        font-size: 0.92rem;
    }

    .profile-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .profile-menu-item span:last-child {
        font-size: 0.84rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats-grid .feature-card {
        padding: 14px 14px 12px;
        min-height: 0;
        border-radius: 16px;
    }

    .stats-grid .feature-card h2 {
        margin: 6px 0 0;
        font-size: 1.7rem;
    }

    .stats-grid .card-label {
        font-size: 0.66rem;
        letter-spacing: 0.14em;
    }

    .section-grid .feature-card h2 {
        margin: 6px 0 0;
    }

    .section-grid .feature-card > p:empty {
        display: none;
    }

    .section-grid .feature-card {
        padding: 14px;
        min-height: 0;
    }

    .compact-plan-shell {
        min-height: 324px;
        border-radius: 16px;
    }

    .compact-plan-image {
        width: 100%;
        height: 324px;
        border-radius: 14px;
    }

    .compact-plan-overlay {
        padding: 12px 12px 14px;
    }

    .compact-plan-action .action-button {
        min-width: 124px;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .compact-plan-info {
        gap: 5px;
        max-width: 66%;
    }

    .compact-plan-info h2 {
        font-size: 1.56rem;
    }

    .compact-plan-info p {
        font-size: 1.12rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .compact-plan-meta {
        font-size: 1.14rem;
        line-height: 1.32;
        font-weight: 600;
        max-width: 92%;
    }

    .admin-plan-main {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-plan-actions {
        grid-template-columns: 1fr;
    }

    .plan-modal-body {
        grid-template-columns: 1fr;
    }

    .plan-modal-robot {
        width: 100%;
        height: 210px;
    }

    .referral-level-stack {
        grid-template-columns: 1fr;
    }

    .referral-level-card {
        min-height: 168px;
    }

    .flow-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .scroll-history {
        max-height: 160px;
    }

    .plans-section-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
    }

    .compact-plan-shell {
        min-height: 360px;
    }

    .compact-plan-image {
        height: 360px;
    }

    .profile-balance-card,
    .settings-list-card {
        border-radius: 18px;
    }

    .profile-balance-card h2 {
        font-size: 2.1rem;
    }

    .profile-balance-card p,
    .settings-note,
    .favorite-bank-box p {
        font-size: 0.98rem;
        line-height: 1.38;
    }

    .settings-option-list {
        gap: 10px;
    }

    .settings-option-list .admin-link {
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    .settings-option-list .settings-quiet-link {
        width: fit-content;
        min-width: 0;
        padding: 9px 12px;
        font-size: 0.74rem;
    }

    .withdraw-form {
        gap: 12px;
    }

    .withdraw-form label span {
        margin-bottom: 6px;
    }

    .favorite-bank-box {
        padding: 14px;
        border-radius: 14px;
    }

    .content-panel.wide-grid .scroll-history {
        margin-top: 14px;
    }

    .bottom-nav {
        gap: 8px;
        padding: 0;
        bottom: 10px;
        width: min(95vw, 408px);
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-radius: 0;
        background: transparent;
    }

    .bottom-nav a {
        display: grid;
        place-items: center;
        gap: 4px;
        font-size: 0.56rem;
        padding: 10px 3px 8px;
        letter-spacing: 0.02em;
        min-height: 56px;
        color: #b7e5ff;
        background: linear-gradient(180deg, rgba(12, 24, 40, 0.92), rgba(8, 18, 30, 0.94));
        border: 1px solid rgba(87, 190, 255, 0.24);
        box-shadow: inset 0 0 0 1px rgba(92, 205, 255, 0.07), 0 8px 18px rgba(0, 0, 0, 0.18);
        text-transform: none;
        border-radius: 16px;
    }

    .bottom-nav a.active {
        color: #dff8ff;
        background: linear-gradient(180deg, rgba(28, 82, 132, 0.92), rgba(14, 50, 88, 0.96));
        border-color: rgba(126, 214, 255, 0.34);
        box-shadow: 0 0 16px rgba(70, 184, 255, 0.18);
    }

    .nav-label {
        display: inline-flex;
        font-size: 0.52rem;
        color: inherit;
    }

    .nav-icon {
        margin-right: 0;
        font-size: 1.24rem;
    }

    .lucky-wheel {
        width: 286px;
        height: 286px;
    }

    .lucky-pointer {
        border-left-width: 12px;
        border-right-width: 12px;
        border-bottom-width: 22px;
    }

    .lucky-center {
        width: 102px;
        height: 102px;
        font-size: 0.92rem;
    }

    .lucky-slice {
        width: 92px;
        font-size: 0.68rem;
    }

    .slice-1 { transform: translate(-50%, -50%) rotate(0deg) translateY(-100px); }
    .slice-2 { transform: translate(-50%, -50%) rotate(60deg) translateY(-100px); }
    .slice-3 { transform: translate(-50%, -50%) rotate(120deg) translateY(-100px); }
    .slice-4 { transform: translate(-50%, -50%) rotate(180deg) translateY(-100px); }
    .slice-5 { transform: translate(-50%, -50%) rotate(240deg) translateY(-100px); }
    .slice-6 { transform: translate(-50%, -50%) rotate(300deg) translateY(-100px); }

    .plan-image-update {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plan-image-update .action-button {
        width: 100%;
    }
}
