:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f16;
    --surface: #12121a;
    --surface-strong: #1a1a24;
    --text: #ffffff;
    --muted: #9b9ba8;
    --accent: #7c3aed;
    --accent-strong: #a78bfa;
    --accent-glow: #c084fc;
    --ok: #10b981;
    --error: #ef4444;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    --glow: 0 0 30px rgba(124, 58, 237, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    border-radius: 6px;
    border: 2px solid rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent-glow));
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

html::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, rgba(124, 58, 237, 0.03) 0px, transparent 1px, transparent 40px, rgba(124, 58, 237, 0.03) 41px),
        repeating-linear-gradient(90deg, rgba(124, 58, 237, 0.03) 0px, transparent 1px, transparent 40px, rgba(124, 58, 237, 0.03) 41px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.animated-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.8), transparent);
    border-radius: 50%;
    filter: blur(40px);
    animation: float linear infinite;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 80%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 80%;
    left: 20%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.particle:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 70%;
    animation-duration: 22s;
    animation-delay: -15s;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.6), transparent);
}

.particle:nth-child(5) {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: -8s;
}

.particle:nth-child(6) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 40%;
    animation-duration: 24s;
    animation-delay: -12s;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.5), transparent);
}

.particle:nth-child(7) {
    width: 280px;
    height: 280px;
    top: 70%;
    left: 60%;
    animation-duration: 26s;
    animation-delay: -18s;
}

.particle:nth-child(8) {
    width: 190px;
    height: 190px;
    top: 40%;
    left: 15%;
    animation-duration: 23s;
    animation-delay: -6s;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.7), transparent);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
        opacity: 0.6;
    }
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-top: 12px;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.header__content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header__content:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo__icon {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: rotate(-5deg);
}

.nav {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.nav__link {
    color: var(--muted);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav__link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(124, 58, 237, 0.1);
}

.nav__link:hover::before {
    width: 80%;
}

.auth-nav-button {
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.1));
    color: var(--text);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-nav-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-nav-button:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.auth-nav-button:hover::before {
    opacity: 1;
}

.auth-nav-button span {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 88px 0 60px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 7vw, 72px);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c084fc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    font-weight: 900;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero__subtitle {
    margin: 0 0 14px;
    font-size: clamp(18px, 3.5vw, 28px);
    color: #e0e7ff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero__description {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 17px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 58px 0;
}

.section--alt {
    background: rgba(18, 18, 26, 0.5);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
}

.section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05), transparent);
    pointer-events: none;
}

.section h2 {
    margin: 0 0 18px;
    font-size: 32px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.section h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 1), rgba(167, 139, 250, 0.3), transparent);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

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

.card {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    top: 100%;
    left: 100%;
}

.features-media {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.features-media img {
    width: min(780px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(124, 58, 237, 0.2);
    transition: all 0.4s ease;
}

.features-media img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(124, 58, 237, 0.4);
}

.muted {
    margin: 8px 0;
    color: var(--muted);
}

.download-version {
    margin: 12px 0;
    color: #e0e7ff;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    display: inline-block;
}

.download-version strong {
    color: var(--accent-glow);
    font-weight: 800;
}

.download-note {
    margin-top: 16px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.1));
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

.download-note::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-glow));
}

.download-note p {
    margin: 0;
    color: #e0e7ff;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.download-note p + p {
    margin-top: 10px;
}

.hint {
    margin-top: 20px;
    color: #c8d1ea;
    font-style: italic;
    opacity: 0.8;
}

.stats {
    margin-top: 14px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stat {
    min-width: 140px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat__value {
    font-weight: 800;
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-glow), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.site-footer {
    padding: 32px 0 36px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.5));
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 10px;
}

.site-footer__link:hover {
    color: #c084fc;
    background: rgba(124, 58, 237, 0.1);
    transform: translateX(4px);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 30;
    padding: 14px;
}

.modal.is-open {
    display: flex;
}

.modal.is-open .modal__panel {
    animation: modal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal__panel {
    width: min(520px, 100%);
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.95), rgba(26, 26, 36, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
}

.modal__panel--wide {
    width: min(900px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    font-size: 24px;
    line-height: 1;
    background: rgba(18, 18, 26, 0.8);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal__close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 10px 0 14px;
}

.tabs__btn {
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    background: rgba(18, 18, 26, 0.6);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tabs__btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
}

.tabs__btn--active {
    border-color: rgba(124, 58, 237, 0.8);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.form[hidden] {
    display: none !important;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 14px;
    color: var(--muted);
}

.field input:not([type="checkbox"]) {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(10, 10, 15, 0.6);
    color: var(--text);
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.field input:not([type="checkbox"]):focus {
    border-color: rgba(124, 58, 237, 0.8);
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.field--checkbox {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(167, 139, 250, 0.03));
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.field--checkbox:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.05));
}

.field--checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.button {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(0) scale(0.98);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.button--primary:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.button--danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.button--danger:hover {
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
}

.button--admin {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #dbeafe;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.button--admin:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.profile {
    margin-top: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.profile__name {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-glow), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile__meta {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 500;
}

.festive-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    position: relative;
    z-index: 4;
}

.festive-toggle--on {
    background: #2a5a40;
    border-color: rgba(61, 220, 151, 0.45);
    color: #ddffef;
}

.festive-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.festive-particle {
    position: absolute;
    top: -12px;
    border-radius: 999px;
    opacity: 0.95;
    animation-name: festive-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes festive-fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0.95;
    }
    to {
        transform: translateY(var(--fall-distance, 520px)) rotate(270deg);
        opacity: 0;
    }
}

.dashboard__section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6), rgba(26, 26, 36, 0.4));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dashboard__section:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
}

.dashboard__section h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-glow);
}

#dashboardModal.is-open .dashboard__section {
    opacity: 0;
    transform: translateY(10px);
    animation: section-rise 0.35s ease-out forwards;
}

#dashboardModal.is-open .dashboard__section:nth-of-type(1) {
    animation-delay: 0.06s;
}

#dashboardModal.is-open .dashboard__section:nth-of-type(2) {
    animation-delay: 0.12s;
}

#dashboardModal.is-open .dashboard__section:nth-of-type(3) {
    animation-delay: 0.18s;
}

.key-activate {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.key-activate__input {
    flex: 1 1 260px;
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(10, 10, 15, 0.6);
    color: var(--text);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.key-activate__input:focus {
    border-color: rgba(124, 58, 237, 0.8);
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.key-activate__input::placeholder {
    color: rgba(155, 155, 168, 0.6);
}

.key-status-text {
    margin-top: 12px;
    min-height: 20px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.key-status-text--success {
    color: #d1fae5;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: status-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.key-status-text--error {
    color: #fecaca;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: status-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.created-key-result {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.1));
    color: #e0e7ff;
    min-height: 20px;
    word-break: break-word;
    font-weight: 500;
}

.key-manage__list-btn {
    margin-top: 14px;
}

.active-keys-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
}

.active-key-item {
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.active-key-item:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateX(4px);
}

.active-key-item__code {
    font-weight: 700;
    word-break: break-all;
    color: var(--accent-glow);
    font-size: 15px;
}

.active-key-item__meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.download-list {
    display: grid;
    gap: 10px;
}

.download-progress {
    margin-top: 14px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    padding: 16px;
    backdrop-filter: blur(10px);
}

.download-progress__track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(124, 58, 237, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-progress__bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    background-size: 200% 100%;
    transition: width 0.12s linear;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: progress-shimmer 2s linear infinite;
}

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

.download-progress__text {
    margin-top: 10px;
    font-size: 13px;
    color: #d1fae5;
    font-weight: 500;
}

.download-access {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.download-access--locked {
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.15));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.download-access--ok {
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-item:hover {
    transform: translateX(4px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.download-item:hover::before {
    opacity: 1;
}

.download-item__name {
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.download-item__meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.download-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 1;
}

.download-button:hover {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.download-button--locked {
    background: linear-gradient(135deg, rgba(58, 58, 68, 0.8), rgba(42, 42, 52, 0.6));
    color: #9ca3af;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    filter: grayscale(0.3);
    box-shadow: none;
}

.download-button:disabled:hover {
    transform: none;
    filter: grayscale(0.3);
    box-shadow: none;
}

.dashboard__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.maintenance-status {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    min-height: 20px;
    text-align: right;
}

.maintenance-status--on {
    color: #ffd4d8;
}

.maintenance-status--off {
    color: #bcf8dc;
}

.user-manage__hint {
    margin: 8px 0 12px;
    color: var(--muted);
}

.user-manage__total {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(30, 58, 138, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 999px;
    padding: 8px 16px;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.user-manage__list {
    display: grid;
    gap: 10px;
    max-height: 56vh;
    overflow: auto;
    padding-right: 4px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 36, 0.6));
    border-radius: 16px;
    padding: 14px 16px;
    opacity: 0;
    transform: translateX(-20px);
    animation: row-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: all 0.3s ease;
}

.user-row:nth-child(1) { animation-delay: 0.05s; }
.user-row:nth-child(2) { animation-delay: 0.1s; }
.user-row:nth-child(3) { animation-delay: 0.15s; }
.user-row:nth-child(4) { animation-delay: 0.2s; }
.user-row:nth-child(5) { animation-delay: 0.25s; }
.user-row:nth-child(6) { animation-delay: 0.3s; }
.user-row:nth-child(7) { animation-delay: 0.35s; }
.user-row:nth-child(8) { animation-delay: 0.4s; }
.user-row:nth-child(9) { animation-delay: 0.45s; }
.user-row:nth-child(10) { animation-delay: 0.5s; }
.user-row:nth-child(n+11) { animation-delay: 0.55s; }

.user-row:hover {
    transform: translateY(-4px) translateX(4px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.user-row--banned {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.15));
}

.user-row__ban {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.45);
    background: #5b1e24;
    color: #ffd6db;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.user-row__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-row__unban {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    border: 1px solid rgba(84, 209, 154, 0.45);
    background: #1f4f3b;
    color: #d6ffe8;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.user-row__role {
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(135, 167, 255, 0.35);
    background: rgba(34, 51, 77, 0.55);
    color: #dbe9ff;
    padding: 0 8px;
    font-size: 13px;
}

.user-row__role-save {
    height: 32px;
    border: 1px solid rgba(135, 167, 255, 0.35);
    background: #243852;
    color: #dbe9ff;
    border-radius: 10px;
    font-size: 13px;
    padding: 0 10px;
    cursor: pointer;
}

.user-row__ban:disabled,
.user-row__unban:disabled,
.user-row__role:disabled,
.user-row__role-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.user-row__main {
    min-width: 0;
}

.user-row__name {
    font-weight: 700;
    font-size: 16px;
}

.user-row__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-word;
}

.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 40;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.maintenance-blocker {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: grid;
    place-items: center;
    padding: 18px;
}

.maintenance-blocker[hidden] {
    display: none;
}

.maintenance-blocker__panel {
    width: min(620px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.15));
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(239, 68, 68, 0.3);
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(30px);
}

.maintenance-blocker__panel h2 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 800;
}

.maintenance-blocker__panel p {
    margin: 0 0 24px;
    color: #fecaca;
    font-size: 16px;
    line-height: 1.6;
}

.toast {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.98), rgba(26, 26, 36, 0.95));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    min-width: 240px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(20px);
    animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast--success {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(16, 185, 129, 0.3);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(239, 68, 68, 0.3);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes section-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes status-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .header__content {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 14px 12px;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .auth-nav-button {
        width: 100%;
    }

    .hero {
        padding-top: 38px;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }

}
