* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "DispelLocal";
    src: url("../fonts/1.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0a0a;
    --panel: linear-gradient(145deg, rgba(24, 24, 24, 0.98) 0%, rgba(10, 10, 10, 0.96) 52%, rgba(26, 42, 9, 0.92) 100%);
    --panel-soft: linear-gradient(135deg, #101010 0%, #151515 54%, #1d2810 100%);
    --line: #2a2a2a;
    --line-lime: rgba(192, 255, 64, 0.16);
    --line-lime-strong: rgba(192, 255, 64, 0.42);
    --accent: #c0ff40;
    --accent-hover: #a8e035;
    --text: #ffffff;
    --muted: #888888;
    --danger: #ff6b6b;
    --warning: #ffd166;
}

body {
    min-height: 100vh;
    padding: 40px 28px;
    font-family: "DispelLocal", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(192, 255, 64, 0.18) 0, rgba(192, 255, 64, 0) 30%),
        radial-gradient(circle at 85% 25%, rgba(86, 255, 181, 0.12) 0, rgba(86, 255, 181, 0) 28%),
        linear-gradient(135deg, #050505 0%, #121212 45%, #18220b 100%);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.snake-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 48% 28%, rgba(192, 255, 64, 0.18), rgba(192, 255, 64, 0) 34%),
        rgba(4, 4, 4, 0.92);
    backdrop-filter: blur(14px);
}

.language-gate[hidden] {
    display: none;
}

.language-panel {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid var(--line-lime);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 25px 70px -22px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.language-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.language-option,
.language-toggle {
    border: 1px solid var(--line-lime);
    color: var(--text);
    background: rgba(10, 10, 10, 0.72);
    cursor: pointer;
    font-weight: 800;
}

.language-option {
    min-height: 58px;
    padding: 12px;
    border-radius: 18px;
}

.language-option.is-active,
.language-option:hover,
.language-toggle:hover {
    border-color: var(--accent);
    color: #050505;
    background: var(--accent);
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.9rem;
}

body.language-gate-open .app-shell {
    pointer-events: none;
    user-select: none;
    filter: blur(8px);
}

.admin-shell {
    width: min(1180px, 100%);
}

.topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    text-align: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text);
}

.brand span {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo {
    width: auto;
    height: 78px;
    filter: brightness(0) invert(1);
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.top-actions a,
.top-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid var(--line-lime);
    border-radius: 999px;
    color: #d8d8d8;
    background: rgba(10, 10, 10, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.top-actions a:hover,
.top-actions button:hover {
    border-color: var(--line-lime-strong);
    color: var(--accent);
}

.top-actions .language-toggle:hover {
    border-color: var(--accent);
    color: #050505;
}

.roulette-panel,
.promocodes-panel,
.form-card,
.admin-panel,
.user-profile {
    border: 1px solid var(--line-lime);
    border-radius: 32px;
    background: var(--panel);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.roulette-panel {
    padding: 34px;
}

.promocodes-panel,
.admin-panel,
.user-profile {
    margin-top: 24px;
    padding: 28px;
}

.user-profile {
    margin-bottom: 24px;
}

.user-profile.is-collapsed {
    padding-bottom: 22px;
}

.user-profile-toggle {
    width: 100%;
    margin-bottom: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
}

.user-profile-toggle,
.user-profile-toggle span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-profile-toggle span {
    justify-content: center;
}

.user-profile-toggle strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.user-profile-toggle .fa-chevron-down {
    transition: transform 0.18s ease;
}

.user-profile:not(.is-collapsed) .user-profile-toggle {
    margin-bottom: 18px;
}

.user-profile:not(.is-collapsed) .user-profile-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.user-profile.is-collapsed .user-info-grid {
    display: none;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.user-info-grid div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line-lime);
    border-radius: 18px;
    background: var(--panel-soft);
}

.user-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-info-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.aris-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(230, 235, 240, 0.36);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(120, 128, 136, 0.08) 48%, rgba(245, 248, 250, 0.16) 100%),
        rgba(14, 15, 16, 0.88);
    box-shadow: 0 20px 46px -24px rgba(230, 235, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.aris-banner span {
    display: block;
    color: #bfc5cb;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.aris-banner strong {
    display: block;
    margin-top: 4px;
    color: #f5f7f8;
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    font-weight: 800;
    text-shadow: 0 0 18px rgba(230, 235, 240, 0.18);
}

.aris-company {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.aris-company span {
    color: #f5f7f8;
    font-size: inherit;
    font-weight: 900;
    text-transform: none;
}

.aris-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(230, 235, 240, 0.28));
}

.aris-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #111315;
    background: linear-gradient(135deg, #ffffff 0%, #c9d0d6 48%, #f3f6f8 100%);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(230, 235, 240, 0.18);
}

.aris-order-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.spin-claim-panel {
    display: inline-grid;
    grid-template-rows: 1fr auto;
    width: calc(25% - 16px);
    min-height: 310px;
    vertical-align: top;
    gap: 18px;
    margin: 0 12px 18px 0;
    padding: 20px;
    border: 1px solid rgba(192, 255, 64, 0.24);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 20px 46px -24px rgba(192, 255, 64, 0.38);
    backdrop-filter: blur(10px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.spin-accrual-note {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(192, 255, 64, 0.24);
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.62);
    box-shadow: 0 18px 42px -28px rgba(192, 255, 64, 0.5);
}

.spin-accrual-note strong {
    display: block;
    color: var(--accent);
    font-size: 1.12rem;
}

.spin-accrual-note p {
    margin-top: 6px;
    color: #d8d8d8;
    line-height: 1.45;
}

.spin-claim-panel:hover {
    border-color: var(--line-lime-strong);
    box-shadow: 0 22px 48px -24px rgba(192, 255, 64, 0.58);
    transform: translateY(-2px);
}

.spin-claim-copy {
    min-width: 0;
}

.spin-claim-copy > span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(192, 255, 64, 0.22);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(192, 255, 64, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.spin-claim-copy > strong {
    display: block;
    margin-top: 14px;
    color: var(--accent);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    line-height: 1.08;
}

.spin-claim-copy > p {
    margin-top: 10px;
    color: #d8d8d8;
    line-height: 1.45;
}

.spin-claim-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(192, 255, 64, 0.14);
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.42);
}

.spin-claim-actions .secondary-action,
.spin-claim-actions .primary-btn {
    width: 100%;
    min-height: 48px;
}

.spin-claim-actions > .status-badge {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
}

.telegram-username-field {
    display: grid;
    grid-column: 1 / -1;
    min-width: 0;
    gap: 6px;
}

.telegram-username-field span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.telegram-username-field input {
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    color: var(--text);
    background: rgba(8, 8, 8, 0.86);
}

.telegram-username-field input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(192, 255, 64, 0.16);
}

.spin-claim-actions .spin-message {
    grid-column: 1 / -1;
    margin-top: 0;
}

.spin-claim-actions .spin-claim-thanks {
    margin-top: 0;
    color: #bfc8b5;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.roulette-frame {
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(192, 255, 64, 0.2);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(192, 255, 64, 0.08) 0 1px, transparent 1px 64px),
        linear-gradient(135deg, #0c0c0c 0%, #171717 50%, #202c10 100%);
}

.roulette-frame::before,
.roulette-frame::after {
    position: absolute;
    top: 0;
    z-index: 3;
    width: 15%;
    height: 100%;
    content: "";
    pointer-events: none;
}

.roulette-frame::before {
    left: 0;
    background: linear-gradient(90deg, #0b0b0b 0%, rgba(15, 15, 15, 0) 100%);
}

.roulette-frame::after {
    right: 0;
    background: linear-gradient(270deg, #18220b 0%, rgba(15, 15, 15, 0) 100%);
}

.pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    z-index: 4;
    color: var(--accent);
    font-size: 2.4rem;
    text-shadow: 0 0 18px rgba(192, 255, 64, 0.55);
    transform: translateX(-50%);
}

.pointer::after {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 2px;
    height: 116px;
    content: "";
    background: linear-gradient(180deg, var(--accent), rgba(192, 255, 64, 0));
    transform: translateX(-50%);
}

.track-viewport {
    overflow: hidden;
    padding: 54px 0 36px;
}

.track {
    display: flex;
    gap: 14px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.track.spinning {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.08, 0.78, 0.12, 1);
}

.sector {
    display: grid;
    flex: 0 0 168px;
    min-height: 112px;
    place-items: center;
    padding: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #d8d8d8;
    background: linear-gradient(145deg, #1b1b1b 0%, #0d0d0d 58%, #18230d 100%);
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.sector.accent {
    border-color: rgba(192, 255, 64, 0.55);
    background: linear-gradient(145deg, rgba(192, 255, 64, 0.2) 0%, rgba(20, 20, 20, 0.95) 55%, rgba(74, 104, 22, 0.34) 100%);
    color: var(--accent);
}

.sector.winner {
    border-color: var(--accent);
    background: linear-gradient(135deg, #f2ff8a 0%, var(--accent) 45%, #77d926 100%);
    color: var(--bg);
    box-shadow: 0 0 24px rgba(192, 255, 64, 0.28);
}

.sector.has-image {
    padding: 0;
}

.sector-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.spin-message {
    min-height: 22px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.auto-spin-timer {
    min-height: 24px;
    color: #d8d8d8;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.auto-spin-timer strong {
    color: var(--accent);
}

.spin-message.is-error {
    color: var(--danger);
}

.result-box {
    width: min(620px, 100%);
    min-width: 0;
    padding: 18px 20px;
    border: 1.5px solid rgba(192, 255, 64, 0.18);
    border-radius: 20px;
    background: var(--panel-soft);
    text-align: center;
}

.result-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.result-box strong {
    display: block;
    color: var(--accent);
    font-size: clamp(1.3rem, 4vw, 2rem);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.result-box small {
    display: block;
    margin-top: 8px;
    color: #cfcfcf;
    font-size: 0.85rem;
}

.primary-btn,
.spin-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 22px;
    border: 0;
    border-radius: 18px;
    color: var(--bg);
    background: linear-gradient(135deg, #f2ff8a 0%, var(--accent) 48%, #7edb29 100%);
    cursor: pointer;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.2s ease;
}

.spin-btn {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    min-width: 172px;
    min-height: 62px;
    padding: 16px 28px;
    border-radius: 20px;
    animation: startPulse 1.8s ease-in-out infinite;
}

.spin-btn i {
    grid-row: 1 / 3;
    align-self: center;
}

.spin-btn span {
    line-height: 1;
}

.spin-btn small {
    display: block;
    color: rgba(10, 10, 10, 0.72);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.spin-btn::after {
    position: absolute;
    top: -45%;
    left: -35%;
    width: 30%;
    height: 190%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(22deg);
    animation: startShine 2.6s ease-in-out infinite;
}

.primary-btn:hover:not(:disabled),
.spin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-hover) 48%, #67c91d 100%);
    box-shadow: 0 8px 24px rgba(192, 255, 64, 0.3);
    transform: translateY(-2px);
}

.primary-btn:disabled,
.spin-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.spin-btn.is-spinning {
    animation: startSpinGlow 0.85s ease-in-out infinite;
}

.spin-btn.is-spinning i {
    animation: iconSpin 0.9s linear infinite;
}

.panel-title,
.panel-heading,
.admin-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--accent);
}

.panel-title h2,
.admin-top h2 {
    font-size: 1.35rem;
    line-height: 1.1;
}

.promocodes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.promocode-card,
.empty-state {
    border: 1.5px solid rgba(192, 255, 64, 0.16);
    border-radius: 18px;
    background: var(--panel-soft);
}

.promocode-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.promocode-card:hover {
    border-color: var(--line-lime-strong);
    box-shadow: 0 18px 36px -18px rgba(192, 255, 64, 0.35);
    transform: translateY(-2px);
}

.promocode-visual {
    display: grid;
    min-height: 158px;
    place-items: center;
    border: 1px solid rgba(192, 255, 64, 0.12);
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(192, 255, 64, 0.06) 0 1px, transparent 1px 28px),
        linear-gradient(0deg, rgba(192, 255, 64, 0.05) 0 1px, transparent 1px 28px),
        #0c0c0c;
    overflow: hidden;
}

.promocode-image {
    width: 100%;
    height: 100%;
    min-height: 158px;
    object-fit: cover;
}

.promocode-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 1px solid var(--line-lime);
    border-radius: 24px;
    color: var(--accent);
    background: rgba(192, 255, 64, 0.08);
    font-weight: 700;
}

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

.promocode-card strong {
    display: block;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.promocode-meta {
    color: #d8d8d8;
    font-size: 0.9rem;
    text-align: center;
}

.claim-btn {
    min-height: 44px;
    border: 0;
    border-radius: 16px;
    color: var(--bg);
    background: linear-gradient(135deg, #f2ff8a 0%, var(--accent) 48%, #7edb29 100%);
    cursor: pointer;
    font-weight: 700;
}

.claim-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-hover) 48%, #67c91d 100%);
    box-shadow: 0 8px 24px rgba(192, 255, 64, 0.22);
    transform: translateY(-1px);
}

.claim-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(8px);
}

.claim-dialog {
    position: relative;
    display: grid;
    width: min(420px, 100%);
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line-lime-strong);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.62);
    text-align: center;
}

.claim-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line-lime);
    border-radius: 50%;
    color: var(--text);
    background: rgba(10, 10, 10, 0.82);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.claim-dialog h2 {
    color: var(--accent);
    font-size: 1.5rem;
}

.claim-content {
    display: grid;
    gap: 12px;
}

.claim-choice {
    display: grid;
    gap: 10px;
}

.claim-option,
.claim-back {
    min-height: 48px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    color: var(--text);
    background: var(--panel-soft);
    cursor: pointer;
    font-weight: 700;
}

.claim-option:hover,
.claim-back:hover {
    border-color: var(--line-lime-strong);
    color: var(--accent);
}

.claim-back {
    justify-self: start;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.claim-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.claim-code {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    color: var(--accent);
    background: var(--panel-soft);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.claim-qr {
    width: 240px;
    height: 240px;
    margin: 4px auto;
    border: 10px solid #ffffff;
    border-radius: 18px;
    background: #ffffff;
}

.spin-claim-qr {
    width: 180px;
    height: 180px;
    border-width: 8px;
}

.claim-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.claim-divider::before,
.claim-divider::after {
    height: 1px;
    content: "";
    background: var(--line-lime);
}

.claim-text {
    color: #d8d8d8;
    line-height: 1.45;
}

.claim-user-info {
    display: grid;
    gap: 8px;
    text-align: left;
}

.claim-user-info div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-lime);
    border-radius: 14px;
    background: rgba(8, 8, 8, 0.72);
}

.claim-user-info span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.claim-user-info strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.claim-link {
    width: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.is-active {
    color: var(--bg);
    background: var(--accent);
}

.status-badge.is-expired {
    color: #1a1300;
    background: var(--warning);
}

.status-badge.is-cancelled {
    color: #ffe8e8;
    background: rgba(255, 107, 107, 0.24);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.auth-layout {
    display: grid;
    justify-items: center;
}

.single-auth {
    width: 100%;
}

.auth-flow {
    align-content: start;
}

.registration-card,
.single-form {
    width: min(760px, 100%);
}

.single-form {
    margin: 0 auto;
}

.form-card {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.terms-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line-lime);
    border-radius: 22px;
    background: var(--panel-soft);
}

.terms-box h1 {
    color: var(--accent);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.terms-box p {
    color: #d8d8d8;
    line-height: 1.55;
}

.eyebrow,
.form-card label span,
.admin-form label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.terms-accept-btn {
    width: 100%;
}

.auth-choice {
    display: grid;
    gap: 16px;
    transition: opacity 0.18s ease;
}

.auth-choice.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    user-select: none;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mode-tab {
    min-height: 46px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    color: #d8d8d8;
    background: rgba(12, 12, 12, 0.86);
    cursor: pointer;
    font-weight: 700;
}

.mode-tab.is-active {
    border-color: transparent;
    color: var(--bg);
    background: var(--accent);
}

.auth-mode-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.registration-grid,
.login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.is-hidden {
    display: none;
}

.form-card label,
.admin-form label {
    display: grid;
    gap: 7px;
}

.form-card input,
.admin-form input,
.prize-row input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    color: var(--text);
    background: rgba(8, 8, 8, 0.86);
}

.form-card input:focus,
.admin-form input:focus,
.prize-row input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(192, 255, 64, 0.16);
}

.form-error,
.form-notice {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
}

.form-error {
    color: #ffd9d9;
    border: 1px solid rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.1);
}

.form-notice {
    color: var(--accent);
    border: 1px solid rgba(192, 255, 64, 0.24);
    background: rgba(192, 255, 64, 0.08);
}

.prize-table {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.prize-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 100px 100px minmax(150px, 0.8fr) 82px 82px;
    gap: 10px;
    align-items: center;
}

.prize-head {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-cell,
.image-cell {
    display: grid;
    min-height: 46px;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line-lime);
    border-radius: 16px;
    background: var(--panel-soft);
}

.check-cell input {
    width: 18px;
    height: 18px;
    min-height: 0;
    accent-color: var(--accent);
}

.image-cell {
    gap: 8px;
}

.image-cell img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.image-cell input {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
}

.new-prize-row {
    padding-top: 10px;
    border-top: 1px solid var(--line-lime);
}

.admin-promocodes {
    display: grid;
    gap: 10px;
}

.admin-promocode-row {
    display: grid;
    grid-template-columns: 110px 120px minmax(130px, 0.8fr) minmax(220px, 1.2fr) 150px 140px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line-lime);
    border-radius: 18px;
    background: var(--panel-soft);
}

.admin-promocode-row.spin-claim-row {
    grid-template-columns: 130px minmax(220px, 1.2fr) 140px 80px 150px 140px;
}

.admin-promocode-head {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-promocode-row strong {
    color: var(--accent);
    overflow-wrap: anywhere;
}

.admin-promocode-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.inline-action {
    display: contents;
}

.secondary-action {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line-lime);
    border-radius: 14px;
    color: var(--text);
    background: rgba(8, 8, 8, 0.82);
    cursor: pointer;
    font-weight: 700;
}

.secondary-action:hover {
    border-color: var(--line-lime-strong);
    color: var(--accent);
}

@keyframes startPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(192, 255, 64, 0);
        transform: translateY(0) scale(1);
    }

    50% {
        box-shadow: 0 10px 30px rgba(192, 255, 64, 0.28);
        transform: translateY(-1px) scale(1.02);
    }
}

@keyframes startShine {
    0%,
    35% {
        left: -35%;
    }

    70%,
    100% {
        left: 120%;
    }
}

@keyframes startSpinGlow {
    0%,
    100% {
        box-shadow: 0 0 18px rgba(192, 255, 64, 0.2);
    }

    50% {
        box-shadow: 0 0 34px rgba(192, 255, 64, 0.48);
    }
}

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

@media (max-width: 820px) {
    body {
        padding: 28px 18px;
    }

    .roulette-panel,
    .promocodes-panel,
    .admin-panel,
    .form-card,
    .user-profile {
        padding: 22px;
    }

    .registration-grid,
    .login-grid {
        grid-template-columns: 1fr;
    }

    .aris-banner {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .spin-claim-panel {
        align-items: stretch;
        width: 100%;
        min-height: 0;
        margin-right: 0;
        text-align: center;
    }

    .spin-claim-actions {
        grid-template-columns: 1fr;
    }

    .sector {
        flex-basis: 138px;
        min-height: 96px;
        font-size: 0.9rem;
    }

    .spin-btn,
    .primary-btn {
        width: 100%;
    }

    .prize-row {
        grid-template-columns: 1fr 1fr;
    }

    .admin-promocode-row {
        grid-template-columns: 1fr 1fr;
    }

    .admin-promocode-row.spin-claim-row {
        grid-template-columns: 1fr 1fr;
    }

    .prize-head {
        display: none;
    }

    .admin-promocode-head {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 22px 12px;
    }

    .logo {
        height: 58px;
    }

    .roulette-panel,
    .promocodes-panel,
    .admin-panel,
    .form-card,
    .user-profile {
        border-radius: 24px;
    }

    .track-viewport {
        padding-top: 48px;
    }

    .sector {
        flex-basis: 118px;
        min-height: 88px;
        padding: 12px;
    }

    .promocode-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
