:root {
    --bg: #050208;
    --border: rgba(168, 123, 255, 0.25);
    --border-strong: rgba(186, 140, 255, 0.5);
    --violet-600: #7c3aed;
    --violet-500: #9333ea;
    --magenta: #d946ef;
    --text: #f4eefc;
    --text-dim: #b6a4d6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- page background ---------- */
.page {
    position: relative;
    min-height: 100vh;
    background: #050208;
    display: flex;
    flex-direction: column;
}
.page-fit {
    height: 100vh;
    overflow: hidden;
}
.glow-top {
    position: absolute;
    top: -260px; left: 50%;
    transform: translateX(-50%);
    width: 1100px; height: 780px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.65) 0%, rgba(124, 58, 237, 0.22) 38%, transparent 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}
.glow-floor {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 1400px; height: 260px;
    background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(168, 85, 247, 0.45), transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.glow-floor::before {
    content: "";
    position: absolute;
    left: 8%; right: 8%; bottom: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.85), transparent);
    box-shadow: 0 0 20px 2px rgba(168, 85, 247, 0.8);
}

canvas#stars {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shooting-star {
    position: absolute;
    width: 2px; height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.9);
    opacity: 0;
    z-index: 1;
}
.shooting-star::before {
    content: "";
    position: absolute;
    top: 50%; right: 0;
    width: 80px; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
    transform: translateY(-50%);
}
@keyframes shoot {
    0% { opacity: 0; transform: translate(0, 0) rotate(215deg); }
    5% { opacity: 1; }
    20% { opacity: 0; transform: translate(-380px, 270px) rotate(215deg); }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .shooting-star { display: none; }
    .logo-text { animation: none; }
}

/* ---------- navbar ---------- */
.navbar {
    position: relative;
    z-index: 10;
    padding: 22px 28px 0;
}
.nav-inner {
    position: relative;
    max-width: 1660px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(15, 7, 28, 0.65);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.logo-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: 0.01em;
    color: #fff;
    position: relative;
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.5), 0 0 28px rgba(124, 58, 237, 0.25);
    animation: logoPulse 3.6s ease-in-out infinite;
}
.logo-text span {
    background: linear-gradient(90deg, #c4b5fd 0%, var(--violet-500) 40%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.55));
}
.logo-text::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 0%; height: 1.5px;
    background: linear-gradient(90deg, var(--violet-500), var(--magenta));
    border-radius: 2px;
    transition: width .3s ease;
}
.logo:hover .logo-text::after {
    width: 100%;
}
@keyframes logoPulse {
    0%, 100% {
        text-shadow: 0 0 14px rgba(168, 85, 247, 0.45), 0 0 26px rgba(124, 58, 237, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 38px rgba(217, 70, 239, 0.45);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 240px;
}
.nav-item {
    position: relative;
}
.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 248px;
    padding: 8px;
    background: rgba(15, 7, 28, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 16px 40px -10px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 20;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dim);
    border-radius: 11px;
    border: 1px solid transparent;
    background: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
    position: relative;
    white-space: nowrap;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link:hover { color: var(--text); }
.nav-link.active {
    color: #fff;
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--border-strong);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--violet-500), var(--magenta));
}

.nav-link .chevron {
    width: 13px; height: 13px;
    margin-left: -2px;
    transition: transform .2s ease;
}
.nav-item.open .chevron, .nav-item:hover .chevron {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 248px;
    padding: 8px;
    background: rgba(15, 7, 28, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 16px 40px -10px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 20;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    display: block;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--text);
    transition: background .15s ease;
}
.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.18);
}
.dropdown-item .dd-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}
.dropdown-item .dd-title svg { width: 16px; height: 16px; color: #c4b5fd; flex-shrink: 0; }
.dropdown-item .dd-desc {
    display: block;
    margin: 4px 0 0 25px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-dim);
    font-weight: 500;
}
.dropdown-divider {
    height: 1px;
    margin: 6px 8px;
    background: var(--border);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-22deg);
    transition: left .65s ease;
}
.btn-primary svg {
    transition: transform .25s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(217, 70, 239, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
}
.btn-primary:hover::before {
    left: 130%;
}
.btn-primary:hover svg {
    transform: translateY(2px);
}

.nav-burger {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    align-items: center; justify-content: center;
}
.nav-burger span {
    display: block; width: 16px; height: 1.5px; background: var(--text);
    box-shadow: 0 5px 0 var(--text), 0 -5px 0 var(--text);
}

@media (max-width: 980px) {
    .nav-links, .nav-actions { display: none; }
    .nav-burger { display: flex; }
}

/* ---------- page content ---------- */
.content {
    position: relative;
    z-index: 5;
    padding: 40px 28px 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}
.page-fit .content {
    padding-top: 24px;
    padding-bottom: 20px;
}

/* Hero banner */
.hero-banner {
    position: relative;
    width: 1660px;
    margin-left: -258px;
    margin-top: -30px;
    border-radius: 18px;
    overflow: hidden;
    min-height: 585px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.35), 0 0 160px rgba(124, 58, 237, 0.15);
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 8, 0.95) 0%, rgba(5, 2, 8, 0.15) 50%, rgba(5, 2, 8, 0.4) 100%);
    z-index: 2;
}

.hero-banner-text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 80px 40px;
}

.hero-banner-text h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-banner-text h1 span {
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-banner-text p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Play page */
.play-page-title {
    text-align: center;
    margin-bottom: 28px;
}

.play-page-title h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.play-page-title h1 span {
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.play-page-title p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.play-hero {
    margin-bottom: 48px;
}

.play-banner {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.play-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 2, 8, 0.95) 0%, rgba(5, 2, 8, 0.2) 60%, rgba(5, 2, 8, 0.4) 100%);
}

.play-banner-text {
    position: relative;
    z-index: 2;
    padding: 40px 48px;
}

.play-banner-text h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
}

.play-banner-text h1 span {
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.play-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.play-card {
    position: relative;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.play-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.play-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.play-card-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.play-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.play-card h3 span {
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.play-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0 0 16px;
    line-height: 1.5;
}

.play-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    background: rgba(15, 7, 28, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.play-step {
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.play-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.play-step h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.play-step p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

.play-step-arrow {
    flex-shrink: 0;
}

.play-step-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--text-dim);
    opacity: 0.5;
}

@media (max-width: 700px) {
    .play-cards {
        grid-template-columns: 1fr;
    }
    .play-steps {
        flex-direction: column;
        gap: 20px;
    }
    .play-step-arrow {
        transform: rotate(90deg);
    }
    .play-page-title h1 {
        font-size: 24px;
    }
    .hero-banner {
        min-height: 380px;
        border-radius: 14px;
    }
    .hero-banner-text {
        width: 100%;
        padding: 40px 28px;
    }
    .hero-banner-text h1 {
        font-size: 26px;
    }
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    gap: 20px;
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-title span {
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 500px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-title h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #c4b5fd, var(--violet-500), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-title p {
    font-size: 16px;
    color: var(--text-dim);
}

/* Rules */
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rules-section {
    background: rgba(15, 7, 28, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.rules-section:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

.rules-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(217, 70, 239, 0.08));
    border-bottom: 1px solid var(--border);
}

.rules-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.rules-section-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.rules-section-head h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.rules-list {
    padding: 8px 28px 24px;
}

.rule {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(168, 123, 255, 0.08);
}

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

.rule-num {
    flex-shrink: 0;
    width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #c4b5fd;
}

.rule p, .rule .rule-body {
    flex: 1;
    min-width: 200px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
}

.rule .rule-body p {
    margin-bottom: 8px;
}

.rule ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dim);
}

.rule ul li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.rule-penalty {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--magenta);
    padding: 10px 16px;
    background: rgba(217, 70, 239, 0.06);
    border: 1px solid rgba(217, 70, 239, 0.15);
    border-radius: 10px;
    margin-top: 4px;
}

.rules-category {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.rules-category:hover {
    border-color: var(--border-strong);
}

.rules-category.active {
    border-color: var(--border-strong);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease;
}

.rules-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rules-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.rules-header h3 i {
    color: #c4b5fd;
    font-size: 18px;
}

.rules-arrow {
    color: var(--text-dim);
    font-size: 14px;
    transition: transform .3s ease;
}

.rules-category.active .rules-arrow {
    transform: rotate(180deg);
}

.rules-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.rule-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 24px;
    border-top: 1px solid rgba(168, 123, 255, 0.1);
}

.rule-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--magenta);
    min-width: 30px;
}

.rule-text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    white-space: pre-line;
}

.rule-punishment {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 0;
    font-style: italic;
}

/* Donate */
.donate-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.donate-card {
    position: relative;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.donate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
    border-color: var(--border-strong);
}

.donate-card.featured {
    border-color: var(--violet-500);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.donate-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.donate-rank {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.donate-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--magenta);
}

.donate-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.donate-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(168, 123, 255, 0.1);
}

.donate-features li:last-child {
    border-bottom: none;
}

/* Coin donate block (top of donate server page, before privilege cards) */
.coin-donate-card {
    max-width: 560px;
    margin: 0 auto 36px;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
}

.coin-donate-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    text-align: center;
}

.coin-donate-row {
    display: flex;
    gap: 12px;
}

.coin-donate-row input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #f4eefc;
    font-size: 14px;
    font-family: inherit;
}

.coin-donate-row input::placeholder {
    color: var(--text-dim);
}

.coin-donate-row .btn {
    flex-shrink: 0;
    padding: 12px 28px;
}

@media (max-width: 480px) {
    .coin-donate-row {
        flex-direction: column;
    }
}

/* New donate card layout: icon -> name -> price -> buy -> description -> kit preview */
.priv-card {
    position: relative;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.priv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
    border-color: var(--border-strong);
}

.priv-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
    overflow: hidden;
}

.priv-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priv-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}

.priv-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--magenta);
}

.priv-buy {
    width: 100%;
    margin-bottom: 20px;
}

.priv-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-dim);
    text-align: left;
    white-space: pre-line;
    margin-bottom: 18px;
    width: 100%;
}

.priv-kit-wrap {
    width: 100%;
    position: relative;
}

.priv-kit-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.18));
    transition: border-color .2s ease, background .2s ease;
}

.priv-kit-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.priv-kit-wrap:hover .priv-kit-label {
    border-color: var(--border-strong);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(217, 70, 239, 0.3));
}

.priv-kit-preview {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 260px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.priv-kit-preview img {
    width: 100%;
    display: block;
}

.priv-kit-wrap:hover .priv-kit-preview {
    display: block;
}

/* Donate server selection page */
.donate-servers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
    gap: 28px;
    margin-top: 8px;
}

.donate-server-card {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.donate-server-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.3);
    border-color: var(--border-strong);
}

.donate-server-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}

.donate-server-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.donate-server-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.donate-server-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Team */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 24px;
}

.team-card {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.team-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--text-dim);
}

.team-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Auth pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 10;
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(15, 7, 28, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 40px 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
    overflow: hidden;
}

.auth-card-glow {
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 200px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.4), transparent 70%);
    pointer-events: none;
}

.auth-card h2 {
    position: relative;
    z-index: 2;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
}

.auth-subtitle {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-form {
    position: relative;
    z-index: 2;
}

.auth-form .field {
    margin-bottom: 18px;
}

.auth-form .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.auth-form .field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form .field .input-wrap input {
    padding-left: 46px;
    padding-right: 46px;
}

.auth-form .field input::placeholder {
    color: var(--text-dim);
}

.auth-form .field input:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2), 0 0 16px rgba(168, 85, 247, 0.2);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap input {
    padding-left: 46px;
    padding-right: 46px;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    pointer-events: none;
    flex-shrink: 0;
    z-index: 1;
}

.input-eye {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s ease;
    z-index: 1;
}

.input-eye:hover {
    background: rgba(255, 255, 255, 0.06);
}

.input-eye svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    transition: color .2s ease;
}

.input-eye:hover svg {
    color: #fff;
}

.auth-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-link {
    font-size: 13px;
    font-weight: 600;
    color: #c4b5fd;
    transition: color .2s ease;
}

.auth-link:hover {
    color: #fff;
}

.auth-back {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .2s ease;
}

.auth-back svg {
    width: 16px;
    height: 16px;
}

.auth-back:hover {
    color: #fff;
}

.auth-switch {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 24px;
}

.auth-switch a {
    color: #c4b5fd;
    font-weight: 600;
    transition: color .2s ease;
}

.auth-switch a:hover {
    color: #fff;
}

.auth-message {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: none;
}
.auth-message.error {
    display: block;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.auth-message.success {
    display: block;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Download page */
.download-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.download-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: rgba(15, 7, 28, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.download-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.download-icon svg {
    width: 36px; height: 36px;
    color: #fff;
}

.download-card h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.download-card > p {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .3s ease, box-shadow .3s ease, transform .2s ease;
}

.download-btn:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.download-btn-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-btn-icon svg {
    width: 24px; height: 24px;
    color: var(--magenta);
}

.download-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-btn-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.download-btn-desc {
    font-size: 13px;
    color: var(--text-dim);
}

.download-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: rgba(15, 7, 28, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.4);
    transform: translateY(20px) scale(0.96);
    transition: transform .25s ease;
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 24px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.modal-option:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.modal-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.modal-option-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.modal-option-icon--fa {
    font-size: 24px;
    color: #fff;
}

.modal-option-icon .linux-penguin-icon {
    width: 32px;
    height: 32px;
    color: initial;
    filter: drop-shadow(0 2px 2px rgba(5, 2, 8, 0.35));
}

.modal-option-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.modal-option-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.modal-option-desc {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* Discord button */
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #5865F2;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord svg {
    width: 18px; height: 18px;
}

/* ---------- footer ---------- */
.footer {
    z-index: 100;
    padding: 0 28px 22px;
    margin-top: auto;
    flex-shrink: 0;
}
.page-fit .footer {
    padding-bottom: 12px;
}
.page-fit .footer-inner {
    padding: 14px 28px;
}
.footer-inner {
    max-width: 1660px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: rgba(15, 7, 28, 0.85);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 -4px 50px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.footer-logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}
.footer-logo span {
    background: linear-gradient(90deg, #c4b5fd 0%, var(--violet-500) 40%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-sub {
    font-size: 13px;
    color: var(--text-dim);
}
.footer-center {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 100px;
}
.footer-support-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c4b5fd;
    white-space: nowrap;
}
.footer-support-email svg {
    width: 18px;
    height: 18px;
    color: var(--magenta);
    flex-shrink: 0;
}
.footer-support-email a {
    color: #c4b5fd;
    transition: color .2s ease;
}
.footer-support-email a:hover {
    color: #fff;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.footer-right a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .2s ease;
    white-space: nowrap;
}
.footer-right a:hover {
    color: #fff;
}

.footer-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865F2;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.footer-discord svg {
    width: 22px;
    height: 22px;
}
.footer-discord:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

@media (max-width: 860px) {
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 20px;
    }
    .footer-left, .footer-center, .footer-right {
        align-items: center;
    }
    .footer-right {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (max-width: 500px) {
    .footer {
        padding: 0 12px 12px;
    }
    .footer-inner {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .footer-logo {
        font-size: 16px;
    }
    .footer-support-email {
        font-size: 13px;
    }
    .footer-right a {
        font-size: 12px;
    }
}

/* ---------- scroll to top ---------- */
/* ---------- Servers section ---------- */
.servers-section {
    margin-top: 32px;
    margin-bottom: 40px;
}

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

.server-card {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.server-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.server-banner {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.server-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 7, 28, 0.95) 0%, rgba(15, 7, 28, 0.1) 65%, transparent 100%);
}

.server-info {
    padding: 16px 20px 18px;
}

.server-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.server-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.server-status.online {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.server-status.offline {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.server-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.server-players {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.server-players svg {
    width: 16px;
    height: 16px;
    color: var(--magenta);
}

.server-version {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.server-card.skeleton {
    pointer-events: none;
}

.server-banner-placeholder {
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.long { width: 70%; }
.skeleton-line.short { width: 40%; }

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ---------- News section ---------- */
.news-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.news-grid {
    position: relative;
}

.news-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nc-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 16px;
}

.nc-track {
    display: flex;
    gap: 20px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.news-card {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    min-width: calc((100% - 40px) / 3);
    flex-shrink: 0;
}

.news-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.nc-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 7, 28, 0.8);
    backdrop-filter: blur(10px);
    color: #b6a4d6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
    flex-shrink: 0;
    z-index: 2;
}

.nc-arrow svg {
    width: 20px;
    height: 20px;
}

.nc-arrow:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.5);
    color: #fff;
}

.nc-arrow:active {
    transform: scale(0.92);
}

.nc-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.nc-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.nc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 123, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}

.nc-dot.active {
    background: #9333ea;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
    transform: scale(1.2);
}

.nc-dot:hover:not(.active) {
    background: rgba(168, 123, 255, 0.4);
}

.news-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.news-banner {
    height: 180px;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.news-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
    width: 100%;
}

@media (max-width: 700px) {
    .servers-grid { grid-template-columns: 1fr; }
    .news-card { min-width: calc(100% - 10px); }
    .nc-arrow { display: none; }
}

/* ---------- scroll to top ---------- */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(15, 7, 28, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease, box-shadow .2s ease;
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    background: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.55);
}
.scroll-top svg {
    width: 20px;
    height: 20px;
    color: #c4b5fd;
    transition: color .2s ease;
}
.scroll-top:hover svg {
    color: #fff;
}

/* ---------- Cabinet ---------- */
.cabinet-page {
    max-width: 800px;
    margin: 0 auto;
}

.cabinet-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.cabinet-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}

.cabinet-hero-info {
    flex: 1;
}

.cabinet-hero-info h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.cabinet-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cabinet-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.cabinet-meta svg {
    color: var(--magenta);
}

.donate-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.btn-cabinet-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease;
}

.btn-cabinet-logout:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.5);
}

.cabinet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.cabinet-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cabinet-tab svg {
    width: 16px;
    height: 16px;
}

.cabinet-tab:hover {
    color: var(--text);
}

.cabinet-tab.active {
    color: #fff;
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--border-strong);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.cabinet-panel {
    display: none;
}

.cabinet-panel.active {
    display: block;
}

.cabinet-card {
    background: rgba(15, 7, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    backdrop-filter: blur(10px);
}

.cabinet-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.cabinet-card h3 svg {
    color: #c4b5fd;
}

.profile-info-list {
    display: grid;
    gap: 16px;
}

.profile-info-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 123, 255, 0.1);
    border-radius: 12px;
}

.profile-info-list > div span {
    font-size: 14px;
    color: var(--text-dim);
}

.profile-info-list > div strong {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.profile-info-list > div strong.accent {
    color: var(--magenta);
}

.skin-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.skin-preview {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.skin-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.skin-preview-placeholder svg {
    color: var(--border-strong);
}

.skin-preview-placeholder span {
    font-size: 13px;
    font-weight: 600;
}

.skin-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.skin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-danger {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.5);
}

.skin-hint {
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .cabinet-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .cabinet-meta {
        justify-content: center;
    }
    .cabinet-tabs {
        flex-wrap: wrap;
    }
    .cabinet-tab {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .cabinet-card {
        padding: 20px 18px;
    }
    .profile-info-list > div {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* ---------- User menu dropdown ---------- */
.user-menu-wrap {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    min-width: 180px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.user-menu-trigger:hover,
.user-menu-trigger.open {
    border-color: var(--border-strong);
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 16px rgba(147, 51, 234, 0.25);
}

.user-menu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.user-menu-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-dim);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.user-menu-trigger.open .user-menu-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    padding: 16px;
    background: rgba(15, 7, 28, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}

.user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
}

.user-dropdown-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--violet-600), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.user-dropdown-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.user-dropdown-rank {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
}

.user-dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: var(--border);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
    text-decoration: none;
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.user-dropdown-item:hover {
    background: rgba(124, 58, 237, 0.15);
}

.user-dropdown-logout {
    color: #f87171;
}

.user-dropdown-logout svg {
    color: #f87171;
}

.user-dropdown-logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

@media (max-width: 600px) {
    .user-menu-name {
        display: none;
    }
    .user-dropdown {
        width: 240px;
        right: -10px;
    }
}
