:root {
    --bg: #070b16;
    --bg-soft: #0b1220;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: rgba(226, 232, 240, 0.68);
    --primary: #8b5cf6;
    --primary-2: #2563eb;
    --green: #22c55e;
    --gold: #f59e0b;
    --radius: 16px;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.20), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, #070b16, #090f1d 52%, #070b16);
}

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, 1640px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 11, 22, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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










.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.24);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
}

.btn-sm {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.18);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(148, 163, 184, 0.20);
    color: rgba(248, 250, 252, 0.92);
}

.hero {
    padding: 44px 0 28px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 42%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.hero-content,
.hero-panel,
.empty-card,
.server-card,
.discovery-toolbar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero-content {
    padding: clamp(24px, 4vw, 42px);
}

.eyebrow {
    margin-bottom: 10px;
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 920px;
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-actions .btn-outline:hover {
    border-color: rgba(129, 140, 248, 0.42);
    background: rgba(99, 102, 241, 0.10);
}

.hero-kpis {
    min-height: 54px;
    gap: 14px;
    padding: 0 18px;
}

.hero-kpis span {
    font-size: 0.95rem;
}

.hero-kpis__sep {
    opacity: 0.38;
}


.hero-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.stat-card {
    padding: 18px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.section {
    padding: 28px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 16px;
}

.section-head-stack {
    display: grid;
    align-items: start;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.section-note {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.category-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 10px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.55) rgba(15, 23, 42, 0.55);
}

.category-slider.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.category-slider::-webkit-scrollbar {
    height: 8px;
}

.category-slider::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 999px;
}

.category-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border-radius: 999px;
}

.category-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.22);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(37, 99, 235, 0.72));
    border-color: rgba(139, 92, 246, 0.50);
}

.category-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
}

.discovery-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
    align-items: end;
    padding: 0;
    margin: 20px 0 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 5px 6px 5px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.80);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-icon {
    color: #c4b5fd;
    font-size: 1.25rem;
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 36px;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
}

.sort-box {
    display: grid;
    gap: 7px;
}

.sort-box label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
}

.sort-box select {
    height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.80);
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
    font-weight: 650;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.server-grid-premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-card {
    display: grid;
    gap: 15px;
    padding: 16px;
    min-height: 270px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.server-card:hover {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}

.server-card-premium {
    border-color: rgba(245, 158, 11, 0.28);
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.055), rgba(255, 255, 255, 0.012)),
        var(--surface);
}

.server-card-premium:hover {
    border-color: rgba(245, 158, 11, 0.46);
}

.server-card-top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.server-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.server-title-wrap {
    min-width: 0;
}

.server-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.26);
    font-size: 0.68rem;
    font-weight: 700;
}

.badge-trending {
    color: #ecfeff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.78), rgba(79, 70, 229, 0.68));
    border-color: rgba(34, 211, 238, 0.42);
}

.badge-premium {
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.76));
    border-color: rgba(251, 191, 36, 0.55);
}

.server-card h3 {
    margin: 0;
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 650;
}

.server-desc {
    min-height: 64px;
    margin: 0;
    color: var(--muted);
    line-height: 1.48;
    font-size: 0.86rem;
    font-weight: 400;
}

.server-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.server-metrics div {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.30);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.server-metrics strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 650;
}

.server-metrics span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.server-card-footnote {
    margin-top: -8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.server-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.server-card-actions .btn {
    width: fit-content;
    flex: 0 0 auto;
}

.empty-card {
    padding: 28px;
    color: var(--muted);
}

.empty-card strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.1rem;
}

.pagination-wrap {
    margin-top: 22px;
}

.db-pagination {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.db-pagination__summary {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.db-pagination__summary span {
    color: var(--text);
    font-weight: 700;
}

.db-pagination__links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.db-pagination__pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.db-pagination__btn,
.db-pagination__page,
.db-pagination__dots {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(248, 250, 252, 0.86);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.db-pagination__btn:hover,
.db-pagination__page:hover {
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(124, 58, 237, 0.14);
}

.db-pagination__page.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: rgba(139, 92, 246, 0.55);
}

.db-pagination__btn.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.db-pagination__dots {
    color: var(--muted);
    background: transparent;
    border-color: transparent;
}

@media (max-width: 620px) {
    .db-pagination__links {
        max-width: 100%;
        gap: 6px;
        padding: 7px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .db-pagination__pages {
        width: auto;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .db-pagination__btn,
    .db-pagination__page,
    .db-pagination__dots {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 0.82rem;
        flex: 0 0 auto;
    }
}

.auto-load-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 90px;
    margin-top: 34px;
    color: var(--muted);
}

.auto-load-spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.18);
    border-top-color: var(--primary);
    animation: autoLoadSpin 0.85s linear infinite;
}

.auto-load-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.auto-load-wrap.is-done .auto-load-spinner {
    display: none;
}

.auto-load-done,
.auto-load-wrap.is-done .auto-load-text {
    color: var(--muted);
}

.auto-load-sentinel {
    width: 100%;
    height: 1px;
}

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

.server-detail-page {
    padding: 42px 0 20px;
}

.server-back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.server-back-link:hover {
    color: var(--text);
}

.server-detail-hero {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: clamp(22px, 4vw, 34px);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.server-detail-icon-wrap {
    width: 108px;
    height: 108px;
    border-radius: 26px;
    padding: 8px;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.server-detail-icon {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.server-detail-main h1 {
    max-width: 900px;
    margin: 12px 0 12px;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.032em;
    font-weight: 700;
}

.server-detail-badges,
.server-detail-stats-inline,
.server-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.server-detail-stats-inline {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.server-detail-stats-inline span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.server-detail-actions {
    margin-top: 22px;
}

.server-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    margin-top: 18px;
}

.server-detail-card {
    padding: 24px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.server-detail-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    letter-spacing: -0.018em;
    font-weight: 650;
}

.server-detail-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: pre-line;
}

.server-info-list {
    display: grid;
    gap: 12px;
}

.server-info-list div {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.26);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.server-info-list span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.server-info-list strong {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 650;
}

.server-similar-section {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .server-detail-hero,
    .server-detail-grid {
        grid-template-columns: 1fr;
    }

    .server-detail-icon-wrap {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .server-detail-icon {
        border-radius: 16px;
    }
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(7, 11, 22, 0.78);
}

.footer-inner {
    min-height: 112px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 400;
}

.footer-left {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: max-content;
    text-decoration: none;
}

.footer-logo__img {
    display: block;
    width: 160px;
    height: auto;
}

.footer-desc {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: inherit;
    line-height: 1.6;
    font-weight: 400;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.88rem;
    font-weight: 400;
}

.footer-discord-btn i,
.footer-copyright i {
    margin-right: 0;
}

@media (max-width: 1280px) {
    .server-grid,
    .server-grid-premium {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

    .discovery-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1640px);
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-content {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .server-grid,
    .server-grid-premium {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
    }

    .search-box {
        padding-left: 13px;
    }

    .search-box .btn span,
    .search-box .btn {
        min-width: 44px;
    }

    .footer-inner {
        min-height: auto;
        padding: 28px 0;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        text-align: center;
        gap: 18px;
    }

    .footer-left {
        justify-items: center;
    }

    .footer-desc {
        max-width: 560px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-right {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
}




/* AJAX toast feedback */
.toast-container {
    position: fixed;
    top: 88px;
    left: 50%;
    z-index: 9999;
    width: min(420px, calc(100vw - 28px));
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    font-weight: 650;
}

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

.toast--success {
    border-color: rgba(34, 197, 94, 0.45);
}

.toast--warning {
    border-color: rgba(245, 158, 11, 0.55);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.55);
}

.btn.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.server-card-title-link {
    color: inherit;
    text-decoration: none;
}

.server-card-title-link:hover {
    color: var(--accent);
}

.server-card-title-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Server card title link and detail back button polish */
.server-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color .16s ease, text-shadow .16s ease;
}

.server-card-title-link:hover {
    color: #cdd2ff;
}

.server-card-title-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.server-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.server-back-link::before {
    content: "←";
    font-size: 1rem;
    line-height: 1;
}

.server-back-link:hover {
    color: var(--text);
    background: rgba(88, 101, 242, .12);
    border-color: rgba(88, 101, 242, .35);
    transform: translateY(-1px);
}

/* FontAwesome polish for server cards */
.server-card .btn i {
    margin-right: .28rem;
}

.server-card .btn-icon i,
.server-card .btn-icon .js-card-favorite-icon i {
    margin-right: 0;
}

.server-metric-icon {
    margin-right: .45rem;
    color: var(--muted);
    font-size: .78rem;
}

.server-metric-icon-online {
    color: #22c55e;
    font-size: .58rem;
    vertical-align: middle;
}

.js-card-favorite-btn.is-favorited,
.js-card-favorite-btn[data-favorited="1"] {
    color: #facc15;
}

/* Stronger metric icons */
.server-metric-value {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
}

.server-metric-value span {
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
}

.server-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
    margin-right: 0;
    color: rgba(203, 213, 225, .86);
    font-size: .82rem;
}

.server-metric-icon-online {
    width: .72rem;
    min-width: .72rem;
    color: #22c55e;
    font-size: .56rem;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, .55));
}

.server-metric-icon-members {
    color: #aeb8ff;
}

/* Visible metric icons in server cards */
.server-metric-value {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
}

.server-metric-value span {
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
}

.server-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
    margin-right: 0;
    color: rgba(203, 213, 225, .9);
    font-size: .82rem;
}

.server-metric-icon-online {
    width: .72rem;
    min-width: .72rem;
    color: #22c55e;
    font-size: .56rem;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, .55));
}

.server-metric-icon-members {
    color: #aeb8ff;
}

/* Typography match with old DiscBoard listing cards */
.server-card h3 {
    font-size: 0.98rem;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.server-desc {
    font-size: 0.84rem;
    line-height: 1.45;
}

.badge {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.btn-sm {
    min-height: 33px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
    gap: 6px;
}

.server-metrics strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.server-metrics span {
    font-size: 0.76rem;
    font-weight: 600;
}

/* Server detail charts */
.server-detail-charts {
    margin-top: 18px;
}

.server-detail-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.server-detail-chart {
    min-height: 300px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.26);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.server-detail-chart h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.server-detail-chart canvas {
    width: 100% !important;
    height: 230px !important;
}

.server-detail-chart-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* Dashboard */
.dashboard-page {
    padding: 4rem 0;
}

.dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-head h1 {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.dashboard-head p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
}

.dashboard-summary-grid,
.dashboard-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-insights-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-panel,
.dashboard-server-row {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.dashboard-summary-card,
.dashboard-insight-card {
    padding: 1.25rem;
    display: grid;
    gap: 0.55rem;
}

.dashboard-summary-card i,
.dashboard-insight-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

.dashboard-summary-card span,
.dashboard-insight-card span,
.dashboard-server-meta,
.dashboard-server-metrics span {
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-summary-card strong,
.dashboard-insight-card strong {
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-panel {
    padding: 1.5rem;
    margin-top: 1.25rem;
}

.dashboard-server-list {
    display: grid;
    gap: 1rem;
}

.dashboard-server-row {
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.dashboard-server-main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dashboard-server-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.dashboard-server-main h3 {
    margin: 0 0 0.45rem;
}

.dashboard-server-main h3 a {
    color: var(--text);
    text-decoration: none;
}

.dashboard-server-main h3 a:hover {
    color: var(--primary);
}

.dashboard-server-meta,
.dashboard-server-status,
.dashboard-server-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-status.is-ok {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.dashboard-status.is-bad {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.dashboard-status.is-muted {
    color: var(--muted);
}

.dashboard-server-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-server-metrics span {
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-server-metrics strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--text);
}

.dashboard-warning {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(252, 165, 165, 0.24);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
}

@media (max-width: 900px) {
    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-summary-grid,
    .dashboard-insights-grid,
    .dashboard-server-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-summary-grid,
    .dashboard-insights-grid,
    .dashboard-server-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-panel {
        padding: 1rem;
    }
}

/* Dashboard sidebar layout */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 22px;
}

.dashboard-stat {
    min-width: 118px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.010)), rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dashboard-stat__value {
    display: block;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.dashboard-stat__label {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    line-height: 1.15;
    color: var(--muted);
}

.dashboard-server-stack {
    display: grid;
    gap: 18px;
}

.dashboard-server-overview-card,
.dashboard-block,
.dashboard-empty-state {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.010)), rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 44px rgba(0,0,0,0.22);
}

.dashboard-server-overview-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: center;
}

.dashboard-server-overview-card__identity {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.dashboard-server-overview-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 38px rgba(0,0,0,0.26);
}

.dashboard-server-overview-card__title {
    margin: 0 0 10px;
    font-size: clamp(1.18rem, 1.45vw, 1.55rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.dashboard-server-overview-card__title a {
    color: #fff;
    text-decoration: none;
}

.dashboard-server-overview-card__meta,
.dashboard-server-card__status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    color: rgba(226,232,240,0.70);
}

.dashboard-server-card__status-row {
    gap: 8px;
}

.dashboard-server-overview-card__meta {
    margin-bottom: 14px;
}

.dashboard-server-overview-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dashboard-server-overview-card__actions {
    display: grid;
    gap: 10px;
}

.dashboard-server-overview-card__actions .btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border-radius: 12px;
    white-space: normal;
}

.dashboard-server-overview-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.dashboard-server-overview-stat {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.11);
}

.dashboard-server-overview-stat i {
    color: #a78bfa;
}

.dashboard-server-overview-stat span {
    color: rgba(226,232,240,0.58);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-server-overview-stat strong {
    color: #fff;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-status-badge strong {
    color: inherit;
    font-weight: 850;
}

.dashboard-status-badge--ok {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.10);
}

.dashboard-status-badge--warn {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.12);
}

.dashboard-status-badge--bad {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
}

.dashboard-server-card__warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}

.dashboard-stats--insights {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-stats--insights .dashboard-stat {
    min-height: 132px;
    padding: 15px;
}

.dashboard-stat__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.dashboard-stat--views .dashboard-stat__icon {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.30);
}

.dashboard-stat--joins .dashboard-stat__icon {
    color: #86efac;
    background: rgba(22, 163, 74, 0.15);
    border-color: rgba(74, 222, 128, 0.30);
}

.dashboard-stat--conversion .dashboard-stat__icon {
    color: #c084fc;
    background: rgba(126, 34, 206, 0.17);
    border-color: rgba(192, 132, 252, 0.30);
}

.dashboard-stat--bumps .dashboard-stat__icon {
    color: #fbbf24;
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(251, 191, 36, 0.32);
}

.dashboard-stat--active .dashboard-stat__icon {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.16);
    border-color: rgba(103, 232, 249, 0.30);
}

.dashboard-stat--problems .dashboard-stat__icon {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(248, 113, 113, 0.32);
}

.dashboard-insights-chart,
.dashboard-insights-breakdown {
    margin-top: 18px;
}

.dashboard-insights-chart__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-insights-chart__desc {
    margin: 0;
    color: var(--muted);
}

.dashboard-insights-table-wrap {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow-x: auto;
    background: rgba(2, 6, 23, 0.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.dashboard-insights-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-insights-table th,
.dashboard-insights-table td {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.085);
    text-align: left;
}

.dashboard-insights-table th {
    background: rgba(2, 6, 23, 0.28);
    color: rgba(226, 232, 240, 0.70);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.dashboard-insights-table td {
    color: rgba(248, 250, 252, 0.86);
}

.dashboard-insights-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.06);
}

.dashboard-insights-table__server {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-insights-table__server:hover {
    color: var(--primary);
}

.dashboard-empty-state {
    text-align: center;
}

.dashboard-empty-state__icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.dashboard-empty-state__title {
    margin: 0 0 6px;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.dashboard-empty-state__desc {
    margin: 0 0 18px;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .dashboard-stats--insights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .dashboard-server-overview-card__top {
        grid-template-columns: 1fr;
    }

    .dashboard-server-overview-card__actions {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-server-overview-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-add-server-btn {
        margin-top: 14px;
    }

    .dashboard-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border-bottom: 0;
        margin: 20px 0 18px;
        overflow: visible;
    }

    .dashboard-tab {
        min-height: 44px;
        padding: 10px 9px;
        justify-content: center;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(148, 163, 184, 0.14);
        text-align: center;
        white-space: normal;
    }

    .dashboard-tab.is-active {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(37, 99, 235, 0.12));
        border-color: rgba(139, 92, 246, 0.50);
    }

    .dashboard-tab.is-active::after {
        display: none;
    }

    .dashboard-stats--insights,
    .dashboard-server-overview-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-server-overview-card {
        padding: 16px;
    }

    .dashboard-server-overview-card__identity {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
    }

    .dashboard-server-overview-card__icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .dashboard-server-overview-card__actions,
    .dashboard-server-overview-card__stats,
    .dashboard-stats--insights {
        grid-template-columns: 1fr;
    }

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

    .dashboard-stat {
        width: 100%;
        min-width: 0;
    }
}

/* Add server page */
.form-section.add-servers-section,
.form-section.add-setup-section {
    padding: 56px 0 72px;
}

.form-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.form-intro,
.add-setup-intro {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 1rem;
}

.container-narrow {
    max-width: 720px;
}

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

.guild-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 170px;
    padding: 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.14), transparent 36%),
        rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.guild-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.guild-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.guild-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(2, 6, 23, 0.55);
}

.guild-card-info {
    min-width: 0;
}

.guild-card-name {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-card-badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #86efac;
    background: rgba(22, 163, 74, 0.13);
    border: 1px solid rgba(74, 222, 128, 0.28);
    font-size: 0.76rem;
    font-weight: 800;
}

.guild-card--added {
    opacity: 0.82;
}

.guild-card-add-btn {
    width: 100%;
}

.add-notice,
.no-guilds {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.78);
}

.add-notice--error {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.12);
    border-color: rgba(239, 68, 68, 0.32);
}

.no-guilds a,
.add-step-back a {
    color: #a78bfa;
    font-weight: 800;
    text-decoration: none;
}

.add-setup-form {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 35%),
        rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

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

.form-group label {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.86rem;
    font-weight: 850;
}

.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
}

.form-group select:focus {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.add-step-back {
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .guild-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .form-section.add-servers-section,
    .form-section.add-setup-section {
        padding: 34px 0 54px;
    }

    .guild-cards {
        grid-template-columns: 1fr;
    }

    .guild-card {
        min-height: 150px;
    }
}

/* Navbar account dropdown */
.nav-account {
    position: relative;
}

.nav-account__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 9px 4px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.nav-account__trigger::-webkit-details-marker {
    display: none;
}

.nav-account[open] .nav-account__trigger {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(139, 92, 246, 0.34);
}

.nav-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.nav-account__chevron {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.68rem;
    transition: transform .16s ease;
}

.nav-account[open] .nav-account__chevron {
    transform: rotate(180deg);
}

.nav-account__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: 220px;
    padding: 7px;
    border-radius: 14px;
    background: rgba(11, 18, 32, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.nav-account__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.88);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-account__menu a:hover {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.12);
}

.nav-account__menu i {
    width: 16px;
    color: #a78bfa;
    text-align: center;
}

.nav-account__logout {
    margin-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 720px) {
    .nav-account__trigger {
        padding-right: 6px;
    }

    .nav-account__menu {
        right: -8px;
        width: 210px;
    }
}


/* Premium fixed slots */
.premium-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.premium-section-title i {
    color: #fbbf24;
    font-size: 0.95em;
}

.premium-empty-card {
    position: relative;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    overflow: hidden;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid rgba(245, 158, 11, 0.22);
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.050), rgba(255, 255, 255, 0.010)),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.premium-empty-card__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 62%);
}

.premium-empty-card__icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2px;
    border-radius: 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.11);
    border: 1px solid rgba(251, 191, 36, 0.24);
}

.premium-empty-card h3 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.premium-empty-card p {
    position: relative;
    max-width: 260px;
    margin: 0 auto 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.premium-empty-card__cta {
    position: relative;
    width: fit-content;
    margin: 4px auto 0;
}

/* Premium title and server metric alignment */
.premium-section .section-head {
    justify-content: center;
    text-align: center;
}

.premium-section .section-head > div {
    display: grid;
    justify-items: center;
}

.premium-section .section-note {
    position: absolute;
    right: max(20px, calc((100vw - 1640px) / 2 + 20px));
}

.server-metrics div {
    display: grid;
    align-content: center;
    gap: 4px;
}

.server-metric-value {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.server-metrics span {
    display: block;
    line-height: 1.15;
}

@media (max-width: 720px) {
    .premium-section .section-head {
        display: grid;
        justify-items: center;
        gap: 8px;
    }

    .premium-section .section-note {
        position: static;
    }
}

/* Server metrics centered two-line layout */
.server-metrics div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.server-metric-value {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    line-height: 1;
}

.server-metric-value i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(0);
}

.server-metric-value span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.server-metrics > div > span {
    display: block;
    width: 100%;
    line-height: 1;
    text-align: center;
}


/* Server detail action and stats polish */
.server-detail-actions form {
    margin: 0;
}

.server-detail-actions .btn {
    min-height: 40px;
    gap: 8px;
}

.server-detail-actions .js-bump-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.server-detail-actions .js-card-favorite-btn.is-favorited {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.08);
}

.server-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.server-detail-stat-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 128px;
    padding: 16px;
    text-align: center;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.010)),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 34px rgba(0,0,0,0.18);
}

.server-detail-stat-card__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.13);
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.server-detail-stat-card__icon--online {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.22);
}

.server-detail-stat-card strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.server-detail-stat-card span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 700;
}

@media (max-width: 900px) {
    .server-detail-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .server-detail-stat-grid {
        grid-template-columns: 1fr;
    }

    .server-detail-actions .btn,
    .server-detail-actions form {
        width: 100%;
    }
}


/* Server detail about full width after removing duplicate info */
.server-detail-grid {
    grid-template-columns: 1fr;
}

.server-detail-grid .server-detail-card {
    min-height: 0;
}

.server-detail-card .eyebrow + h2 {
    margin-bottom: 12px;
}


/* Server detail inline stat icons */
.server-detail-stats-inline span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.server-detail-stats-inline__icon {
    color: #a78bfa;
    font-size: 0.82rem;
    line-height: 1;
}

.server-detail-stats-inline__icon--online {
    color: #22c55e;
    font-size: 0.58rem;
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.45));
}


/* Home centered hero */
.hero-centered {
    padding: 28px 0 52px;
}

.hero-centered .container {
    max-width: 1560px;
}

.hero-content-centered {
    display: grid;
    justify-items: center;
    padding: clamp(34px, 5vw, 52px);
    min-height: 330px;
    text-align: center;
    background:
        radial-gradient(circle at 8% 0%, rgba(124, 58, 237, 0.13), transparent 38%),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.11), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.010)),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.hero-content-centered h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-content-centered p {
    max-width: 560px;
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
    line-height: 1.55;
}

.hero-content-centered .hero-actions {
    justify-content: center;
    margin-top: 28px;
}

.hero-content-centered .hero-actions .btn {
    min-height: 46px;
    gap: 8px;
    padding: 0 20px;
    border-radius: 12px;
}

.hero-kpis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.92);
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.94rem;
    font-weight: 700;
}

.hero-kpis span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-kpis i {
    color: #c4b5fd;
}

.hero-kpis__online {
    color: #22c55e !important;
    font-size: 0.66rem;
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.45));
}

.hero-kpis__sep {
    width: 4px;
    height: 4px;
    padding: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

@media (max-width: 720px) {
    .hero-centered {
        padding: 20px 0 38px;
    }

    .hero-content-centered {
        min-height: 0;
        padding: 28px 18px;
    }

    .hero-content-centered h1 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .hero-content-centered .hero-actions {
        width: 100%;
    }

    .hero-content-centered .hero-actions .btn {
        width: 100%;
    }

    .hero-kpis {
        width: 100%;
        flex-wrap: wrap;
        margin-top: 30px;
        border-radius: 14px;
    }
}

/* Home hero width and height refinement */
.hero-centered {
    padding: 22px 0 34px;
}

.hero-centered .container {
    max-width: var(--container);
}

.hero-content-centered {
    min-height: 260px;
    padding: clamp(28px, 4vw, 42px);
}

.hero-content-centered h1 {
    margin-bottom: 10px;
    font-size: clamp(1.85rem, 2.6vw, 2.65rem);
}

.hero-content-centered p {
    max-width: 520px;
    font-size: clamp(0.92rem, 1vw, 1rem);
    line-height: 1.5;
}

.hero-content-centered .hero-actions {
    margin-top: 22px;
}

.hero-kpis {
    margin-top: 28px;
    padding: 10px 16px;
}

@media (max-width: 720px) {
    .hero-centered {
        padding: 16px 0 28px;
    }

    .hero-content-centered {
        padding: 24px 16px;
    }

    .hero-kpis {
        margin-top: 22px;
    }
}


/* Server card badges screenshot match */
.server-badges {
    gap: 6px;
    margin-bottom: 7px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.70rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge__icon,
.badge__dot {
    flex-shrink: 0;
}

.badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.badge-premium {
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: 1px solid rgba(251, 191, 36, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(251, 191, 36, 0.12),
        0 8px 18px rgba(245, 158, 11, 0.20);
}

.badge-premium .badge__icon {
    color: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.26));
}

.badge-trending {
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
    border: 1px solid rgba(103, 232, 249, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 0 0 1px rgba(34, 211, 238, 0.12),
        0 8px 18px rgba(34, 211, 238, 0.18);
}

.badge-trending .badge__dot {
    background: #cffafe;
    box-shadow: 0 0 8px rgba(207, 250, 254, 0.85);
}

.badge-category {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(59, 130, 246, 0.60);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(59, 130, 246, 0.10);
}


/* Server detail breadcrumbs */
.server-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.84rem;
    font-weight: 700;
}

.server-breadcrumbs a {
    color: rgba(226, 232, 240, 0.72);
    text-decoration: none;
    transition: color .15s ease;
}

.server-breadcrumbs a:hover {
    color: #ffffff;
}

.server-breadcrumbs span[aria-hidden="true"] {
    color: rgba(148, 163, 184, 0.36);
}

.server-breadcrumbs span[aria-current="page"] {
    max-width: 460px;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Server detail about polish */
.server-about-content {
    max-width: 980px;
}

.server-about-content p {
    line-height: 1.72;
}

.server-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.server-about-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #dbeafe;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.32);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.server-about-tag:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(59, 130, 246, 0.18);
}

/* Server detail similar and mobile polish */
.server-similar-section {
    margin-top: 8px;
    padding-top: 28px;
}

.server-similar-section .section-head {
    margin-bottom: 16px;
}

.server-detail-charts {
    margin-top: 18px;
}

@media (max-width: 620px) {
    .server-detail-page {
        padding-top: 24px;
    }

    .server-detail-hero {
        gap: 16px;
        padding: 20px;
    }

    .server-detail-main h1 {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    .server-detail-stats-inline {
        gap: 8px;
    }

    .server-detail-stats-inline span {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .server-detail-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .server-detail-stat-card {
        min-height: 112px;
        padding: 13px 10px;
    }

    .server-detail-chart {
        min-height: 260px;
        border-radius: 14px;
    }
}

/* Servers browse page */
.browse-page {
    padding-top: 28px;
}

.browse-wrap {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.browse-sidebar {
    position: sticky;
    top: 96px;
}

.browse-sidebar__inner,
.browse-hero {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(15, 23, 42, .74);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .20);
}

.browse-sidebar__inner {
    padding: 16px;
}

.browse-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.browse-filters-title {
    margin: 0;
    font-size: .95rem;
}

.browse-clear-all {
    color: var(--primary);
    font-size: .84rem;
    text-decoration: none;
}

.browse-filters-form {
    display: grid;
    gap: 8px;
}

.browse-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px;
    color: var(--muted);
    cursor: pointer;
}

.browse-category-label:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, .34);
    background: rgba(139, 92, 246, .08);
}

.browse-category-radio {
    accent-color: var(--primary);
}

.browse-category-name {
    flex: 1;
    min-width: 0;
}

.browse-category-count {
    color: var(--text);
    font-weight: 800;
    font-size: .82rem;
}

.browse-main {
    min-width: 0;
}

.browse-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    margin: 16px 0 18px;
}

.browse-hero h1 {
    margin: 4px 0 7px;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.browse-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 700px;
    font-size: .96rem;
}

.browse-total {
    min-width: 140px;
    text-align: right;
}

.browse-total strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
}

.browse-total span {
    color: var(--muted);
    font-size: .86rem;
}

.browse-filters-btn {
    display: none;
    margin-bottom: 14px;
}

.browse-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 0;
    margin-bottom: 18px;
}

.browse-search-box {
    margin: 0;
}

.browse-view-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .32);
}

.browse-view-toggle__btn {
    width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
}

.browse-view-toggle__btn:hover,
.browse-view-toggle__btn.is-active {
    color: var(--text);
    background: rgba(139, 92, 246, .18);
}

.browse-sort-box {
    margin: 0;
}

.browse-order-toggle {
    min-height: 40px;
}

.browse-server-grid--list {
    grid-template-columns: 1fr;
}

.browse-server-grid--list .server-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
}

.browse-server-grid--list .server-desc,
.browse-server-grid--list .server-metrics {
    grid-column: 1 / 2;
}

.browse-server-grid--list .server-card-actions {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
    align-self: center;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .browse-wrap {
        grid-template-columns: 1fr;
    }

    .browse-sidebar {
        display: none;
        position: static;
    }

    .browse-sidebar.is-open {
        display: block;
    }

    .browse-filters-btn {
        display: inline-flex;
    }

    .browse-toolbar {
        grid-template-columns: 1fr;
    }

    .browse-view-toggle,
    .browse-sort-box,
    .browse-order-toggle {
        width: 100%;
    }

    .browse-view-toggle__btn {
        flex: 1;
    }

    .browse-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .browse-total {
        text-align: left;
    }

    .browse-server-grid--list .server-card {
        display: block;
    }
}


/* Servers browse sort alignment */
.browse-sort-box {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.browse-sort-box label {
    display: none;
}

.browse-sort-box select {
    min-height: 48px;
    height: 100%;
}

@media (max-width: 640px) {
    .add-setup-form .form-group select {
        min-height: 46px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .browse-sort-box {
        width: 100%;
        min-width: 0;
        display: grid;
    }

    .browse-sort-box select {
        width: 100%;
        height: 46px;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.95rem;
    }
}

/* Servers browse mobile filter modal */
.browse-filter-overlay,
.browse-filters-close {
    display: none;
}

@media (max-width: 980px) {
    body.browse-filters-open {
        overflow: hidden;
    }

    .browse-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 9990;
        display: none;
        background: rgba(2, 6, 23, 0.68);
        backdrop-filter: blur(8px);
    }

    .browse-filter-overlay.is-open {
        display: block;
    }

    .browse-sidebar {
        position: fixed;
        top: 72px;
        left: 14px;
        right: 14px;
        z-index: 9991;
        display: none;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .browse-sidebar.is-open {
        display: block;
    }

    .browse-sidebar__inner {
        box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
    }

    .browse-filters-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 10px;
        color: var(--text);
        background: rgba(15, 23, 42, .72);
        cursor: pointer;
    }

    .browse-clear-all {
        margin-left: auto;
    }
}

/* Dashboard favorites remove animation */
[data-dashboard-favorites-grid] .server-card {
    transition: opacity .18s ease, transform .18s ease;
}

/* Dashboard manage server */
.manage-page {
    padding: 34px 0 56px;
}

.manage-page > .container {
    max-width: 1180px;
    width: min(1180px, calc(100% - 32px));
}

.manage-page .server-breadcrumbs {
    margin-bottom: 16px;
}

.manage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.manage-head h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.manage-head p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.manage-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.manage-alert {
    margin-bottom: 16px;
}

.manage-summary-card,
.manage-card,
.manage-stat {
    border: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.010)), rgba(15, 23, 42, .78);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 14px 34px rgba(0,0,0,.18);
}

.manage-summary-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
}

.manage-server-icon {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
}

.manage-summary-main h2 {
    margin: 0 0 9px;
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.manage-meta,
.manage-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manage-meta {
    margin-bottom: 12px;
    color: rgba(226, 232, 240, .70);
    font-size: .9rem;
}

.manage-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.manage-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.manage-status.is-ok {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .10);
}

.manage-status.is-warn {
    color: #fde68a;
    border-color: rgba(245, 158, 11, .36);
    background: rgba(245, 158, 11, .11);
}

.manage-status.is-bad {
    color: #fecaca;
    border-color: rgba(239, 68, 68, .34);
    background: rgba(239, 68, 68, .10);
}

.manage-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.manage-stat {
    display: grid;
    gap: 5px;
    padding: 13px;
}

.manage-stat i {
    color: #a78bfa;
}

.manage-stat span {
    color: rgba(226, 232, 240, .58);
    font-size: .76rem;
    font-weight: 800;
}

.manage-stat strong {
    color: var(--text);
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.manage-card {
    padding: 18px;
}

.manage-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.manage-card-head i {
    color: #a78bfa;
}

.manage-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.manage-card-text {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.manage-form,
.manage-actions {
    display: grid;
    gap: 12px;
}

.manage-field {
    display: grid;
    gap: 8px;
}

.manage-field label {
    color: var(--muted);
    font-weight: 800;
    font-size: .86rem;
}

.manage-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    color: var(--text);
    background: rgba(2, 6, 23, .48);
    padding: 0 12px;
}

.manage-actions .btn,
.manage-actions form {
    width: 100%;
}

.manage-actions .btn,
.manage-form .btn {
    justify-content: center;
}

@media (max-width: 920px) {
    .manage-stats,
    .manage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .manage-head {
        display: grid;
    }

    .manage-head-actions {
        justify-content: stretch;
    }

    .manage-head-actions .btn {
        width: 100%;
    }

    .manage-summary-card {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .manage-server-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .manage-stats,
    .manage-grid {
        grid-template-columns: 1fr;
    }
}


/* Manage page button icon spacing */
.manage-page .btn i {
    margin-right: 8px;
}

.manage-page .btn i:only-child {
    margin-right: 0;
}

/* Dashboard server action buttons 2x2 */
.dashboard-server-overview-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-server-action-form {
    margin: 0;
}

.dashboard-server-action-form .btn {
    width: 100%;
}

.dashboard-server-overview-card__actions .btn i {
    margin-right: 8px;
}

.dashboard-server-overview-card__actions .btn i:only-child {
    margin-right: 0;
}

@media (max-width: 520px) {
    .dashboard-server-overview-card__actions {
        grid-template-columns: 1fr;
    }
}

/* Shared DiscBoard panel layout */
.db-panel-shell {
    padding: 30px 0 56px;
}

.db-panel-wrap {
    width: min(1460px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.db-panel-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 20% 0%, rgba(124, 58, 237, .18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .010)),
        rgba(15, 23, 42, .82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 42px rgba(0,0,0,.20);
}

.db-panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 10px;
}

.db-panel-brand__mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 30px rgba(124, 58, 237, .28);
}

.db-panel-brand__text {
    color: #fff;
    font-size: .98rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.db-panel-nav {
    display: grid;
    gap: 7px;
}

.db-panel-nav__link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(241, 245, 249, .84);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
}

.db-panel-nav__link i {
    width: 18px;
    color: #a78bfa;
    text-align: center;
}

.db-panel-nav__link:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, .07);
}

.db-panel-nav__link.is-active {
    color: #ffffff;
    border-color: rgba(139, 92, 246, .30);
    background: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(37, 99, 235, .10));
}

.db-panel-main {
    min-width: 0;
}

.db-panel-main .server-breadcrumbs {
    margin-bottom: 16px;
}

.db-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.db-panel-head h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.db-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.db-panel-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.db-panel-alert {
    margin-bottom: 16px;
}

.db-panel-shell .btn i {
    margin-right: 8px;
}

.db-panel-shell .btn i:only-child {
    margin-right: 0;
}

@media (max-width: 1099px) {
    .db-panel-wrap {
        grid-template-columns: 1fr;
    }

    .db-panel-side {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .db-panel-side::-webkit-scrollbar {
        display: none;
    }

    .db-panel-brand {
        display: none;
    }

    .db-panel-nav {
        display: flex;
        gap: 8px;
    }

    .db-panel-nav__link {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .db-panel-head {
        display: grid;
    }

    .db-panel-head__actions {
        justify-content: stretch;
    }

    .db-panel-head__actions .btn {
        width: 100%;
    }
}

/* Premium DiscBoard admin shell */
.db-admin-shell {
    min-height: calc(100vh - 72px);
}

.db-admin-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: 254px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    padding: 22px 14px;
    border-right: 1px solid rgba(148, 163, 184, .14);
    background: rgba(10, 15, 28, .94);
    box-shadow: 18px 0 44px rgba(0, 0, 0, .18);
    z-index: 20;
    overflow: hidden;
}

.db-admin-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 7px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.db-admin-brand__main {
    color: #ffffff;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.db-admin-brand__sub {
    color: #a78bfa;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.db-admin-nav-wrap {
    min-height: 0;
}

.db-admin-nav-group {
    display: grid;
    gap: 7px;
    margin-bottom: 22px;
}

.db-admin-nav-label {
    padding: 0 7px 7px;
    color: rgba(125, 211, 252, .78);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.db-admin-nav-link,
.db-admin-bottom-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(226, 232, 240, .78);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 800;
}

.db-admin-nav-link i,
.db-admin-bottom-link i {
    width: 18px;
    color: #bfdbfe;
    text-align: center;
}

.db-admin-nav-link:hover,
.db-admin-bottom-link:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, .07);
}

.db-admin-nav-link.is-active {
    color: #ffffff;
    border-color: rgba(139, 92, 246, .34);
    background: linear-gradient(135deg, rgba(124, 58, 237, .24), rgba(37, 99, 235, .12));
}

.db-admin-nav-link.is-active i {
    color: #a78bfa;
}

.db-admin-sidebar__bottom {
    display: grid;
    gap: 12px;
}

.db-admin-user {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(148, 163, 184, .10);
}

.db-admin-user__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
}

.db-admin-user strong {
    display: block;
    color: #ffffff;
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-admin-user span {
    color: #a78bfa;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.db-admin-main {
    min-width: 0;
    margin-left: 254px;
    padding: 24px 28px 56px;
}

.db-admin-main > .server-breadcrumbs {
    margin-bottom: 16px;
}

.db-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.db-admin-head h1 {
    margin: 4px 0 6px;
    color: #ffffff;
    font-size: clamp(1.65rem, 2.25vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.db-admin-head p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.db-admin-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.db-admin-alert {
    margin-bottom: 16px;
}

.db-admin-shell .btn i {
    margin-right: 8px;
}

.db-admin-shell .btn i:only-child {
    margin-right: 0;
}

@media (max-width: 1099px) {
    .db-admin-sidebar {
        position: static;
        width: auto;
        display: block;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .14);
        box-shadow: none;
        overflow: visible;
    }

    .db-admin-brand,
    .db-admin-sidebar__bottom {
        display: none;
    }

    .db-admin-nav-wrap {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .db-admin-nav-wrap::-webkit-scrollbar {
        display: none;
    }

    .db-admin-nav-group {
        display: flex;
        gap: 8px;
        margin: 0;
    }

    .db-admin-nav-label {
        display: none;
    }

    .db-admin-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .db-admin-main {
        margin-left: 0;
        padding: 22px 16px 46px;
    }
}

@media (max-width: 720px) {
    .db-admin-head {
        display: grid;
    }

    .db-admin-head__actions {
        justify-content: stretch;
    }

    .db-admin-head__actions .btn {
        width: 100%;
    }
}


/* Panel logout button reset */
.db-admin-logout-form {
    margin: 0;
}

.db-admin-logout-form .db-admin-bottom-link {
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: transparent;
}

/* Dashboard inside shared admin shell */
.db-admin-sidebar .db-admin-nav-link {
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: transparent;
}

.db-admin-sidebar .db-admin-nav-link .dashboard-tab__count {
    margin-left: auto;
    color: rgba(226, 232, 240, .58);
    font-size: .78rem;
}

.db-admin-main .dashboard-stats {
    margin: 0 0 18px;
}

.db-admin-main .dashboard-tab-panels {
    padding-bottom: 0;
}

.db-admin-main .dashboard-tab-panel[hidden] {
    display: none !important;
}

/* Dashboard action buttons polish */
.dashboard-server-overview-card__actions {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 9px;
}

.dashboard-server-overview-card__actions .btn,
.dashboard-server-action-form .btn {
    min-height: 42px;
    padding: 9px 11px;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.1;
}

.dashboard-server-overview-card__actions .btn i,
.dashboard-server-action-form .btn i {
    margin-right: 0;
    flex: 0 0 auto;
}

.dashboard-server-overview-card__actions .btn span,
.dashboard-server-action-form .btn span {
    display: inline-flex;
    align-items: center;
}

.dashboard-server-action-form .js-bump-count {
    margin-left: 2px;
}

@media (max-width: 520px) {
    .dashboard-server-overview-card__actions {
        grid-template-columns: 1fr;
    }

    .dashboard-server-overview-card__actions .btn,
    .dashboard-server-action-form .btn {
        justify-content: center;
    }
}

/* Dashboard action buttons overflow fix */
@media (min-width: 921px) {
    .dashboard-server-overview-card__top {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

.dashboard-server-overview-card__actions {
    width: 100%;
    max-width: 270px;
    justify-self: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.dashboard-server-overview-card__actions .btn,
.dashboard-server-action-form .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .86rem;
}

.dashboard-server-overview-card__actions .btn span,
.dashboard-server-action-form .btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-server-overview-card__actions .btn i,
.dashboard-server-action-form .btn i {
    margin-right: 0 !important;
}

@media (max-width: 920px) {
    .dashboard-server-overview-card__actions {
        max-width: none;
        justify-self: stretch;
    }
}

/* Panel pages footer offset */
@media (min-width: 1100px) {
    body.has-db-admin-shell .site-footer {
        margin-left: 254px;
    }

    body.has-db-admin-shell .site-footer .footer-inner {
        width: min(100% - 56px, 1460px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Site-wide button UX polish */
.btn {
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

.btn:focus-visible {
    outline: 2px solid rgba(139, 92, 246, .78);
    outline-offset: 3px;
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(124, 58, 237, .32);
}

.btn-outline:hover {
    border-color: rgba(139, 92, 246, .42);
    background: rgba(139, 92, 246, .10);
}

.btn-danger:hover {
    box-shadow: 0 14px 30px rgba(239, 68, 68, .24);
}

.btn:disabled,
.btn.is-loading {
    transform: none;
    cursor: wait;
}

/* Site-wide button UX polish */
.btn {
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}

.btn:focus-visible {
    outline: 2px solid rgba(139, 92, 246, .78);
    outline-offset: 3px;
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(124, 58, 237, .32);
}

.btn-outline:hover {
    border-color: rgba(139, 92, 246, .42);
    background: rgba(139, 92, 246, .10);
}

.btn-danger:hover {
    box-shadow: 0 14px 30px rgba(239, 68, 68, .24);
}

.btn:disabled,
.btn.is-loading {
    transform: none;
    cursor: wait;
}

/* Home auto-load stability */
.auto-load-wrap {
    min-height: 92px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px 0 8px;
}

.auto-load-wrap.is-done {
    min-height: 52px;
}

.auto-load-spinner {
    flex: 0 0 auto;
}

html,
body {
    background-color: var(--bg);
}

main {
    background: transparent;
}

/* Stable viewport background */
html {
    background: #070b16;
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.20), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, #070b16, #090f1d 52%, #070b16);
    background-attachment: fixed, fixed, fixed;
    background-repeat: no-repeat;
    background-size: 100vw 100vh, 100vw 100vh, 100vw 100vh;
}

main {
    background: transparent;
}

/* Dashboard signature widgets */
.dashboard-signature-widgets {
    display: grid;
    gap: 14px;
}

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

.dashboard-signature-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.dashboard-signature-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-signature-card__head h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-signature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(191, 219, 254, 0.92);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-signature-preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.dashboard-signature-preview iframe {
    display: block;
    width: 420px;
    height: 90px;
    border: 0;
}

.dashboard-signature-code {
    display: grid;
    gap: 7px;
}

.dashboard-signature-code label {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-signature-code__wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.dashboard-signature-code__wrap code {
    min-width: 0;
    max-height: 92px;
    overflow: auto;
    padding: 10px 11px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.86);
    background: rgba(2, 6, 23, 0.56);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.dashboard-signature-code__wrap .btn {
    width: fit-content;
    min-height: 34px;
    padding-inline: 11px;
    gap: 7px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .dashboard-signature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-signature-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-signature-card {
        padding: 13px;
        border-radius: 16px;
    }

    .dashboard-signature-card__head {
        display: grid;
        gap: 8px;
    }

    .dashboard-signature-preview {
        max-width: 100%;
    }

    .dashboard-signature-code__wrap {
        grid-template-columns: 1fr;
    }

    .dashboard-signature-code__wrap .btn {
        width: 100%;
    }
}

/* Admin panel tables */
.admin-overview-stats {
    margin-bottom: 18px;
}

.admin-panel-tabs {
    opacity: 0;
}

.admin-panel-tabs.is-ready {
    opacity: 1;
}

.admin-panel-tabs {
    display: grid;
    gap: 18px;
}

.admin-panel-block {
    display: grid;
    gap: 14px;
}

.admin-panel-block__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-panel-block__head p {
    margin: 6px 0 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.56);
}

.admin-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(2, 6, 23, 0.26);
}

.admin-table td {
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.86rem;
}

.admin-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table__muted {
    color: rgba(148, 163, 184, 0.78) !important;
}

.admin-table__invite {
    max-width: 260px;
}

.admin-table__invite a {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    color: rgba(191, 219, 254, 0.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-server-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.admin-server-cell__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.admin-server-cell strong {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-server-cell span {
    display: block;
    margin-top: 2px;
    color: rgba(148, 163, 184, 0.78);
    font-size: 0.75rem;
}

.admin-status-stack {
    display: grid;
    gap: 6px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
}

.admin-status-badge.is-ok {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.10);
}

.admin-status-badge.is-bad {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.10);
}

.admin-status-badge.is-muted {
    color: rgba(203, 213, 225, 0.78);
}

.admin-server-metrics {
    display: grid;
    gap: 5px;
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.78rem;
}

.admin-server-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-actions .btn {
    gap: 6px;
}

.admin-actions .btn[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
}

.admin-more-actions {
    position: relative;
}

.admin-more-actions > summary.btn {
    list-style: none;
}

.admin-more-actions > summary::-webkit-details-marker {
    display: none;
}

.admin-more-actions__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    min-width: 210px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.admin-more-actions[open] .admin-more-actions__menu {
    display: grid;
    gap: 6px;
}

.admin-more-actions__menu .btn {
    width: 100%;
    justify-content: flex-start;
}

.admin-mobile-server-list,
.admin-mobile-user-list {
    display: none;
}

@media (max-width: 760px) {
    .admin-panel-block__head {
        display: grid;
    }

    .admin-table-wrap--servers,
    .admin-table-wrap--users {
        display: none;
    }

    .admin-mobile-server-list,
    .admin-mobile-user-list {
        display: grid;
        gap: 12px;
    }

    .admin-mobile-server-card {
        padding: 14px;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        background: rgba(15, 23, 42, 0.72);
    }

    .admin-mobile-server-card__top {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .admin-mobile-server-card__top strong {
        display: block;
        color: #f8fafc;
        font-size: 0.95rem;
    }

    .admin-mobile-server-card__top span {
        display: block;
        margin-top: 2px;
        color: rgba(148, 163, 184, 0.78);
        font-size: 0.76rem;
    }

    .admin-mobile-server-card__badges,
    .admin-mobile-server-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-top: 12px;
    }

    .admin-mobile-server-card__meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(203, 213, 225, 0.82);
        font-size: 0.8rem;
    }

    .admin-mobile-server-card__meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
    }

    .admin-mobile-server-card__meta-row .admin-mobile-server-card__meta {
        margin-top: 0;
    }

    .admin-mobile-server-card__actions {
        flex: 0 0 auto;
    }

    .admin-table {
        min-width: 640px;
    }

    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5),
    .admin-table th:nth-child(6),
    .admin-table td:nth-child(6) {
        display: none;
    }


    .admin-more-actions {
        position: relative;
    }

    .admin-more-actions > summary.btn {
        width: auto;
        min-width: 44px;
        padding: 0 10px;
        list-style: none;
    }

    .admin-more-actions > summary::-webkit-details-marker {
        display: none;
    }

    .admin-more-actions > summary.btn span {
        display: inline;
    }

    .admin-more-actions__menu {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        z-index: 30;
        min-width: 190px;
        padding: 8px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    }

    .admin-more-actions[open] .admin-more-actions__menu {
        display: grid;
        gap: 6px;
    }

    .admin-more-actions__menu .btn {
        width: 100%;
        height: auto;
        min-width: 0;
        padding: 8px 10px;
        justify-content: flex-start;
    }

    .admin-more-actions__menu .btn span {
        display: inline;
    }
}

/* Panel mobile off-canvas sidebar */
.db-admin-mobile-toggle,
.db-admin-sidebar-overlay {
    display: none;
}

@media (max-width: 1099px) {
    .db-admin-shell {
        min-height: calc(100vh - 72px);
    }

    .db-admin-mobile-toggle {
        position: fixed;
        left: 14px;
        bottom: 16px;
        z-index: 71;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 10px 14px;
        border: 1px solid rgba(139, 92, 246, 0.34);
        border-radius: 999px;
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 850;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(37, 99, 235, 0.92));
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    }

    .db-admin-mobile-toggle i {
        margin-right: 0;
    }

    .db-admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 68;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(2, 6, 23, 0.68);
        backdrop-filter: blur(5px);
        transition: opacity 0.18s ease;
    }

    .db-admin-sidebar-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .db-admin-sidebar {
        position: fixed;
        top: 72px;
        left: 0;
        bottom: 0;
        z-index: 70;
        width: min(84vw, 292px);
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 18px;
        padding: 18px 14px;
        border-right: 1px solid rgba(148, 163, 184, 0.16);
        border-bottom: 0;
        background: rgba(10, 15, 28, 0.98);
        box-shadow: 22px 0 54px rgba(0, 0, 0, 0.38);
        overflow: hidden;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .db-admin-sidebar.is-open {
        transform: translateX(0);
    }

    .db-admin-brand,
    .db-admin-sidebar__bottom {
        display: flex;
    }

    .db-admin-brand {
        align-items: baseline;
    }

    .db-admin-sidebar__bottom {
        display: grid;
    }

    .db-admin-nav-wrap {
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }

    .db-admin-nav-group {
        display: grid;
        gap: 7px;
        margin-bottom: 20px;
    }

    .db-admin-nav-label {
        display: block;
    }

    .db-admin-nav-link {
        width: 100%;
        flex: initial;
        white-space: normal;
    }

    body.db-admin-sidebar-open {
        overflow: hidden;
    }

    .db-admin-main {
        margin-left: 0;
        padding: 22px 16px 82px;
    }
}

@media (max-width: 520px) {
    .db-admin-mobile-toggle {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: auto;
        min-width: 112px;
    }

    .db-admin-sidebar {
        width: min(88vw, 304px);
    }
}

/* Site navbar mobile toggle */
.nav-mobile-toggle,
.site-nav-overlay {
    display: none;
}

@media (max-width: 820px) {
    .site-header {
        z-index: 80;
    }

    .nav {
        position: relative;
    }

    .nav-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 38px;
        padding: 8px 12px;
        border: 1px solid rgba(139, 92, 246, 0.32);
        border-radius: 999px;
        color: #ffffff;
        font-size: 0.84rem;
        font-weight: 850;
        background: rgba(15, 23, 42, 0.82);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .nav-mobile-toggle i {
        margin-right: 0;
        color: #bfdbfe;
    }

    .site-nav-overlay {
        position: fixed;
        inset: 72px 0 0;
        z-index: 76;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(2, 6, 23, 0.62);
        backdrop-filter: blur(4px);
        transition: opacity 0.18s ease;
    }

    .site-nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: 82px;
        left: 12px;
        right: 12px;
        z-index: 77;
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 18px;
        background: rgba(10, 15, 28, 0.98);
        box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 12px 13px;
        border-radius: 12px;
        background: rgba(148, 163, 184, 0.06);
    }

    body.site-nav-open {
        overflow: hidden;
    }
}

@media (min-width: 821px) {
    .nav-links {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

@media (max-width: 520px) {
    .nav-mobile-toggle span {
        display: none;
    }

    .nav-mobile-toggle {
        width: 38px;
        min-width: 38px;
        padding: 8px;
    }
}

/* Navbar icons and active state */
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-links a i {
    width: 16px;
    color: rgba(191, 219, 254, 0.78);
    text-align: center;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover i,
.nav-links a.is-active i {
    color: #a78bfa;
    transform: translateY(-1px);
}

.nav-links a.is-active {
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.34);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.10));
}

@media (max-width: 820px) {
    .nav-links a {
        gap: 10px;
    }

    .nav-links a i {
        width: 18px;
    }
}

/* Admin inline action forms */
.admin-inline-form {
    display: inline-flex;
    margin: 0;
}

/* VIP page */
.vip-page {
    padding: 34px 0 64px;
}

.vip-page__breadcrumbs {
    margin-bottom: 18px;
}

.vip-page__hero {
    max-width: 760px;
    margin-bottom: 26px;
}

.vip-page__hero h1 {
    margin: 6px 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.vip-page__hero p {
    margin: 0;
    color: rgba(203, 213, 225, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.vip-benefits-grid,
.vip-plans {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-benefit-card,
.vip-plan-card,
.vip-page__note {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.15), transparent 34%),
        rgba(15, 23, 42, 0.70);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.vip-benefit-card {
    padding: 20px;
}

.vip-benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.vip-benefit-card h2,
.vip-plan-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
}

.vip-benefit-card p {
    margin: 0;
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.9rem;
    line-height: 1.6;
}

.vip-plans {
    margin-top: 18px;
}

.vip-plan-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.vip-plan-card--popular {
    border-color: rgba(251, 191, 36, 0.32);
    background:
        radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.74);
}

.vip-plan-card__badge {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 850;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.24);
}

.vip-plan-card strong {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.vip-plan-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vip-plan-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.9rem;
}

.vip-plan-card li i {
    color: #86efac;
}

.vip-page__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
}

.vip-page__note i {
    color: #93c5fd;
    margin-top: 4px;
}

.vip-page__note p {
    margin: 0;
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .vip-benefits-grid,
    .vip-plans {
        grid-template-columns: 1fr;
    }
}

/* VIP page button icon spacing */
.vip-page .btn {
    gap: 8px;
}

.vip-page .btn i {
    margin-right: 0;
}

/* VIP page Discord CTA polish */
.vip-page .btn,
.premium-empty-card__cta {
    gap: 8px;
}

.vip-page .btn i,
.premium-empty-card__cta i {
    margin-right: 0;
}

.vip-page__cta {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(88, 101, 242, 0.16), transparent 38%),
        rgba(15, 23, 42, 0.70);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.vip-page__cta h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 850;
}

.vip-page__cta p {
    margin: 0 0 14px;
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.94rem;
    line-height: 1.6;
}

.btn-block {
    width: 100%;
}

/* VIP page compact title */
.vip-page__hero h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* VIP page subheadings and lists consistent with site */
.vip-page__hero p,
.vip-page__note p,
.vip-benefit-card h2,
.vip-plan-card h2,
.vip-page__cta h2,
.vip-benefit-card p,
.vip-plan-card li,
.vip-page__cta p {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.015em;
    margin-bottom: 0.6rem;
}

.vip-page__note p {
    color: rgba(203, 213, 225, 0.75);
}

.vip-benefit-card li i,
.vip-plan-card li i,
.vip-page__cta i {
    margin-right: 6px;
}

.vip-plan-card ul li {
    list-style: none;
}

.vip-page .btn,
.vip-page .btn-block {
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Admin VIP buttons spacing */
.admin-inline-form .btn i {
    margin-right: 6px;
}

/* Admin VIP controls */
.admin-vip-cell {
    display: grid;
    gap: 5px;
    min-width: 120px;
}

.admin-status-badge.is-vip {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.12);
}

.admin-vip-add-form {
    align-items: center;
    gap: 7px;
}

.admin-vip-days-input {
    width: 64px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.92);
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-vip-add-form .btn,
.admin-inline-form .btn {
    gap: 6px;
}

.admin-vip-add-form .btn i,
.admin-inline-form .btn i {
    margin-right: 0;
}

/* Admin VIP modal */
.admin-vip-modal[hidden] {
    display: none;
}

.admin-vip-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 18px;
}

.admin-vip-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(5px);
}

.admin-vip-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.14), transparent 36%),
        rgba(15, 23, 42, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.admin-vip-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-vip-modal__head h2 {
    margin: 4px 0 4px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.admin-vip-modal__head p {
    margin: 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-vip-modal__close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.86);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

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

.admin-vip-modal__form label {
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-vip-modal__input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-vip-modal__expiry {
    margin: 0;
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.86rem;
}

.admin-vip-modal__expiry strong {
    color: #fde68a;
    font-weight: 800;
}

.admin-vip-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.admin-vip-modal__actions .btn {
    gap: 8px;
}

.admin-vip-modal__actions .btn i {
    margin-right: 0;
}

body.admin-vip-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .admin-vip-modal__actions {
        display: grid;
    }

    .admin-vip-modal__actions .btn {
        width: 100%;
    }
}

/* Manage description edit mode */
.manage-field textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.96);
    padding: 13px 14px;
    line-height: 1.55;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.manage-field textarea[readonly] {
    cursor: default;
    color: rgba(203, 213, 225, 0.82);
    background: rgba(15, 23, 42, 0.46);
}

.manage-field textarea.is-editing,
.manage-field textarea:focus {
    border-color: rgba(124, 92, 255, 0.58);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.manage-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}


/* Servers list description overflow fix */
.server-card .server-desc,
.browse-server-grid--list .server-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.browse-server-grid--list .server-card {
    min-width: 0;
}

.browse-server-grid--list .server-title-wrap {
    min-width: 0;
}
/* Toggle switch for maintenance */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {display:none;}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {background-color: #4CAF50;}
input:checked + .slider:before {transform: translateX(26px);}

/* Static pages, footer and page modals */
.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background:
        radial-gradient(circle at 0% 0%, rgba(88, 101, 242, 0.12), transparent 38%),
        rgba(7, 11, 22, 0.88);
}

.footer-inner {
    display: grid;
    gap: 18px;
    min-height: auto;
    padding: 28px 0;
    color: rgba(203, 213, 225, 0.72);
}



.footer-left {
    display: grid;
    gap: 10px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #ffffff;
    text-decoration: none;
}





.footer-desc {
    max-width: 560px;
    margin: 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
}











.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: rgba(203, 213, 225, 0.74);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.86rem;
    font-weight: 700;
}

.page-section {
    padding: 54px 0 28px;
}

.page-title,
.page-about__title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-lead,
.page-about__lead,
.page-about__intro {
    max-width: 780px;
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.98rem;
    line-height: 1.65;
}

.page-about__top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.page-about__main {
    display: grid;
    gap: 14px;
}

.page-about__feature-cards,
.page-about__middle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.page-about__feature-card,
.page-about__card,
.page-about__support-card,
.page-content {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(88, 101, 242, 0.09), transparent 35%),
        rgba(15, 23, 42, 0.66);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.page-about__feature-card,
.page-about__card,
.page-about__support-card {
    padding: 18px;
}

.page-about__support-card {
    align-self: start;
}

.page-about__feature-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #c4b5fd;
    background: rgba(88, 101, 242, 0.13);
    margin-bottom: 10px;
}

.page-about h2,
.page-about h3,
.page-content h2 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-about p,
.page-about li,
.page-content p {
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.92rem;
    line-height: 1.65;
}

.page-about__card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-about__card h2 i {
    color: #a78bfa;
}

.page-about__card ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.page-about__legal {
    margin-top: 16px;
    color: rgba(148, 163, 184, 0.76);
    font-size: 0.86rem;
}

.page-about__discord-btn {
    margin-top: 10px;
    gap: 8px;
}

.page-about__discord-btn i {
    margin-right: 0;
}

.page-content {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 22px;
}

.page-content h2 {
    margin: 0;
    font-size: 1.05rem;
}

.page-content p {
    margin: 0;
}

.faq-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.25);
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(6px);
}

.page-modal {
    width: min(100%, 760px);
    max-height: min(82vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.page-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-modal__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 820;
}

.page-modal__close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.86);
    background: rgba(2, 6, 23, 0.38);
    cursor: pointer;
}

.page-modal__close:hover {
    color: #ffffff;
    background: rgba(88, 101, 242, 0.16);
}

.page-modal__body {
    max-height: calc(min(82vh, 760px) - 68px);
    overflow: auto;
    padding: 18px;
}

.page-modal__body h2 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.page-modal__body p {
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .footer-top,
    .footer-bottom,
    .page-about__top,
    .page-about__feature-cards,
    .page-about__middle {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        text-align: center;
        justify-items: center;
    }

    .footer-left {
        justify-items: center;
    }

    .footer-stats,
    .footer-links {
        justify-content: center;
    }
}

/* Footer width and About polish */
.site-footer .container {
    width: min(100% - 48px, 1640px);
}

.footer-inner {
    width: 100%;
}

.footer-top {
    align-items: flex-start;
}

.footer-left {
    max-width: 760px;
}

.footer-desc {
    max-width: 720px;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-bottom {
    padding-top: 2px;
}

.page-about {
    padding-top: 48px;
}

.page-about__top,
.page-about__middle,
.page-about__feature-cards {
    display: grid;
    gap: 18px;
}

.page-about__top {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    align-items: stretch;
}

.page-about__main,
.page-about__support-card,
.page-about__feature-card,
.page-about__card,
.page-about__legal {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        var(--surface);
    box-shadow: var(--shadow);
}

.page-about__main,
.page-about__support-card,
.page-about__card {
    padding: 22px;
}

.page-about__feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.page-about__feature-card {
    padding: 18px;
}

.page-about__side {
    display: grid;
    gap: 18px;
}

.page-about__support-card {
    justify-content: space-between;
}

.page-about__support-card .btn {
    width: fit-content;
}

.page-about__stats-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        var(--surface);
    box-shadow: var(--shadow);
}

.page-about__stats-card h2 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.page-about__stats-grid {
    display: grid;
    gap: 14px;
}

.page-about__stat {
    display: grid;
    grid-template-columns: 30px auto 1fr;
    align-items: center;
    gap: 10px;
}

.page-about__stat i {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.10);
}

.page-about__stat strong {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
}

.page-about__stat span {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: right;
}

.page-about__middle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.page-about__card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1rem;
}

.page-about__card h2 i {
    color: #c4b5fd;
}

.page-about__card p,
.page-about__card li,
.page-about__intro,
.page-about__lead,
.page-about__legal {
    color: var(--muted);
    line-height: 1.7;
}

.page-about__legal {
    margin-top: 18px;
    padding: 18px 20px;
}

@media (max-width: 900px) {
    .site-footer .container {
        width: min(100% - 24px, 1640px);
    }

    .footer-right {
        justify-content: center;
    }

    .page-about {
        padding-top: 32px;
    }

    .page-about__top,
    .page-about__middle,
    .page-about__feature-cards,
    .page-about__side {
        grid-template-columns: 1fr;
    }

    .page-about__main,
    .page-about__support-card,
    .page-about__card {
        padding: 18px;
    }

    .page-about__support-card .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer two-column redesign */
.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.92));
}

.site-footer .container {
    width: min(100% - 48px, 1640px);
}

.footer-inner--clean {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding: 30px 0 26px;
}

.footer-left {
    display: grid;
    gap: 11px;
    max-width: 720px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--text);
    text-decoration: none;
}





.footer-desc {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 400;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    min-width: 190px;
}

.footer-discord-btn {
    gap: 8px;
    white-space: nowrap;
}

.footer-discord-btn i {
    margin-right: 0;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(226, 232, 240, 0.54);
    font-size: 0.86rem;
    font-weight: 400;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .site-footer .container {
        width: min(100% - 24px, 1640px);
    }

    .footer-inner--clean {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 28px 0 24px;
    }

    .footer-left,
    .footer-right {
        justify-items: center;
        align-items: center;
        max-width: none;
        min-width: 0;
    }

    .footer-logo {
        margin-inline: auto;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Footer separator glow */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100% - 48px, 1640px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(88, 101, 242, 0.35),
        rgba(139, 92, 246, 0.45),
        rgba(88, 101, 242, 0.35),
        transparent
    );
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.22);
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    width: min(100% - 96px, 1200px);
    height: 56px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.10), transparent 70%);
    pointer-events: none;
}

.site-footer .footer-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .site-footer::before {
        width: min(100% - 24px, 1640px);
    }

    .site-footer::after {
        width: min(100% - 48px, 1000px);
    }
}

/* Old DiscBoard logo integration */
.brand--logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: 156px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-logo--image {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.footer-logo__img {
    display: block;
    width: 148px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 720px) {
    .brand-logo {
        width: 138px;
    }

    .footer-logo__img {
        width: 140px;
    }
}

/* Dashboard delete button, inherits normal .btn .btn-outline .btn-sm shape */
.btn-danger-soft {
    border-color: rgba(248, 113, 113, 0.38) !important;
    background: rgba(248, 113, 113, 0.08) !important;
    color: #fecaca !important;
}

.btn-danger-soft:hover {
    border-color: rgba(248, 113, 113, 0.62) !important;
    background: rgba(248, 113, 113, 0.16) !important;
    color: #ffffff !important;
}

.btn-danger-soft i {
    margin-right: 0 !important;
}

.dashboard-server-delete-form {
    display: inline-flex;
    margin: 0;
}

.dashboard-confirm-modal__actions .btn {
    gap: 8px;
}

.dashboard-confirm-modal__actions .btn i,
.dashboard-confirm-modal__actions .btn span {
    margin: 0;
}


/* Dashboard delete modal layout only */
.dashboard-confirm-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: grid !important;
    place-items: center !important;
    padding: 24px !important;
}

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

.dashboard-confirm-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2, 6, 23, 0.82) !important;
    z-index: 1 !important;
}

.dashboard-confirm-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    width: min(100%, 430px) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(239, 68, 68, 0.14), transparent 36%),
        linear-gradient(180deg, #111827, #020617) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62) !important;
    padding: 26px !important;
    color: #ffffff !important;
}

.dashboard-confirm-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: rgba(226, 232, 240, 0.76) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
}

.dashboard-confirm-modal__close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.dashboard-confirm-modal__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.24) !important;
}

.dashboard-confirm-modal__title {
    margin: 0 0 8px !important;
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
}

.dashboard-confirm-modal__text {
    margin: 0 !important;
    color: rgba(203, 213, 225, 0.78) !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
}

.dashboard-confirm-modal__actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 22px !important;
}

html.dashboard-modal-open,
body.dashboard-modal-open {
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .dashboard-confirm-modal {
        padding: 16px !important;
    }

    .dashboard-confirm-modal__dialog {
        padding: 22px !important;
    }

    .dashboard-confirm-modal__actions {
        flex-direction: column-reverse !important;
    }

    .dashboard-confirm-modal__actions .btn {
        width: 100% !important;
    }
}


/* Admin maintenance settings card */
.admin-settings-panel {
    max-width: 920px;
}

.admin-maintenance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.admin-maintenance-card__content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-maintenance-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(59, 130, 246, 0.14));
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #c4b5fd;
}

.admin-maintenance-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #f8fafc;
}

.admin-maintenance-card p {
    margin: 0;
    max-width: 560px;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-maintenance-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-maintenance-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.admin-maintenance-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-maintenance-toggle__track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-maintenance-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: transform 0.2s ease;
}

.admin-maintenance-toggle input:checked + .admin-maintenance-toggle__track {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.78), rgba(239, 68, 68, 0.72));
    border-color: rgba(251, 191, 36, 0.36);
}

.admin-maintenance-toggle input:checked + .admin-maintenance-toggle__track .admin-maintenance-toggle__thumb {
    transform: translateX(20px);
}

@media (max-width: 760px) {
    .admin-maintenance-card {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-maintenance-card__actions {
        justify-content: flex-start;
    }
}


/* Home pagination spacing */
.home-pagination {
    margin-top: 44px;
}


/* Home hero full-width, no card shell */
.hero.hero-centered {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 0 46px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(124, 58, 237, 0.13), transparent 38%),
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.11), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.010)),
        rgba(15, 23, 42, 0.82);
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.hero.hero-centered > .container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.hero.hero-centered .hero-content-centered {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 720px) {
    .hero.hero-centered {
        padding: 26px 0 34px;
    }
}


/* Navbar language flag dropdown */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 30;
}

.language-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.language-current:hover,
.language-switcher.is-open .language-current {
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(30, 41, 59, 0.74);
}

.language-current i {
    font-size: 0.72rem;
    color: rgba(203, 213, 225, 0.78);
    transition: transform 0.18s ease;
}

.language-switcher.is-open .language-current i {
    transform: rotate(180deg);
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.4);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-code {
    line-height: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 168px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-switcher.is-open .language-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.language-menu a:hover,
.language-menu a.is-active {
    background: rgba(139, 92, 246, 0.16);
    color: #fff;
}

@media (max-width: 860px) {
    .language-switcher {
        width: auto;
        max-width: max-content;
    }

    .language-current {
        width: auto;
        justify-content: center;
        white-space: nowrap;
    }

    .language-menu {
        left: auto;
        right: 0;
        width: max-content;
        min-width: 128px;
        max-width: calc(100vw - 28px);
    }

    .language-menu a {
        white-space: nowrap;
    }
}




/* Header layout after language dropdown rebuild */
.site-header .nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.site-header .brand {
    justify-self: start;
}

.site-header .nav-links {
    justify-self: center;
}

.site-header .nav-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-header .language-switcher {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .site-header .nav {
        display: flex;
    }

    .site-header .nav-actions {
        margin-left: auto;
    }
}


/* Language dropdown compact spacing fix */
.language-menu {
    display: grid;
    gap: 7px;
}

.language-menu a {
    min-height: 38px;
}

.language-menu a:hover,
.language-menu a.is-active {
    background: rgba(139, 92, 246, 0.20);
}

.language-menu a.is-active:hover {
    background: rgba(139, 92, 246, 0.24);
}


/* Mobile language dropdown natural width */
@media (max-width: 860px) {
    .site-header .language-switcher {
        width: auto;
        max-width: max-content;
    }

    .site-header .language-current {
        width: auto;
        white-space: nowrap;
    }

    .site-header .language-menu {
        right: 0;
        left: auto;
        width: max-content;
        min-width: 128px;
        max-width: calc(100vw - 28px);
    }

    .site-header .language-menu a {
        white-space: nowrap;
    }
}


/* Desktop language button height match with user menu */
@media (min-width: 821px) {
    .site-header .language-current {
        min-height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header .language-flag {
        width: 24px;
        height: 24px;
    }
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(168, 180, 255, .32);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 41, 72, .96), rgba(17, 24, 48, .96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent.is-hiding {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.cookie-consent__content {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.cookie-consent__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fbbf24;
    background: rgba(251, 191, 36, .18);
    border: 1px solid rgba(251, 191, 36, .32);
}

.cookie-consent__text strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
}

.cookie-consent__text p {
    margin: 0;
    color: rgba(226, 232, 240, .76);
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .cookie-consent {
        left: 14px;
        right: 14px;
        bottom: 14px;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 16px;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-consent__actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }
}

/* Mobile nav panel width fix */
@media (max-width: 820px) {
    .site-header .nav-links {
        width: calc(100vw - 28px) !important;
        min-width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        align-items: stretch !important;
    }

    .site-header .nav-links a {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* Admin Discord Messages */
.admin-discord-panel {
    display: grid;
    gap: 18px;
}

.admin-discord-form {
    display: grid;
    gap: 16px;
}

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

.admin-discord-field {
    display: grid;
    gap: 8px;
}

.admin-discord-field > span,
.admin-discord-check span {
    color: rgba(226, 232, 240, .82);
    font-size: 13px;
    font-weight: 700;
}

.admin-discord-field select,
.admin-discord-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(15, 23, 42, .72);
    color: #f8fafc;
    padding: 12px 13px;
    outline: none;
}

.admin-discord-field textarea {
    min-height: 260px;
    resize: vertical;
    line-height: 1.55;
}

.admin-discord-field select:focus,
.admin-discord-field textarea:focus {
    border-color: rgba(129, 140, 248, .54);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.admin-discord-options,
.admin-discord-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-discord-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.admin-discord-counter {
    color: rgba(148, 163, 184, .86);
    font-size: 13px;
    font-weight: 700;
}

.admin-discord-preview {
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    background: rgba(15, 23, 42, .42);
    overflow: hidden;
}

.admin-discord-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.admin-discord-preview__head strong {
    color: #f8fafc;
    font-size: 13px;
}

.admin-discord-preview__head span {
    color: rgba(148, 163, 184, .9);
    font-size: 12px;
    font-weight: 700;
}

.admin-discord-preview pre {
    min-height: 120px;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    white-space: pre-wrap;
    color: rgba(226, 232, 240, .86);
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
}

.admin-discord-result {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.admin-discord-result.is-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .2);
}

.admin-discord-result.is-error {
    color: #fecaca;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .2);
}

@media (max-width: 760px) {
    .admin-discord-grid {
        grid-template-columns: 1fr;
    }
}

/* Navbar avatar and mobile username restore */
.nav-avatar {
    border-radius: 999px;
}

@media (max-width: 720px) {
    .nav-username {
        display: none;
    }
}

/* Public site stats page */
.site-stats-page {
    padding-top: 42px;
}

.site-stats-hero {
    max-width: 820px;
    margin-bottom: 22px;
}

.site-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.site-stats-card,
.site-stats-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.010)),
        rgba(15, 23, 42, 0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 44px rgba(0,0,0,0.20);
}

.site-stats-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.site-stats-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.site-stats-card strong {
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.site-stats-panel {
    padding: 18px;
}

.site-stats-panel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.site-stats-panel__head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.site-stats-panel__head span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.site-stats-chart {
    height: 190px;
    display: flex;
    align-items: end;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

.site-stats-chart__bar {
    flex: 1 1 0;
    min-width: 4px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.95), rgba(37, 99, 235, 0.78));
}

.site-stats-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

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

.site-stats-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.site-stats-list span {
    min-width: 0;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-stats-list strong {
    color: #ffffff;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .site-stats-grid,
    .site-stats-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-stats-grid,
    .site-stats-columns {
        grid-template-columns: 1fr;
    }

    .site-stats-panel__head {
        display: grid;
    }
}

/* Site stats v2 */
.site-stats-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.site-stats-range {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24);
}

.site-stats-range::before {
    content: "\f1de";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.22);
}

.site-stats-range::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    color: rgba(226, 232, 240, 0.72);
    pointer-events: none;
}

.site-stats-range__label {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
}

.site-stats-range__select {
    appearance: none;
    min-width: 128px;
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    background: rgba(30, 41, 59, 0.66);
    color: #ffffff;
    padding: 0 34px 0 10px;
    font-size: 0.86rem;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.site-stats-range__select:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.site-stats-range__select option {
    background: #0f172a;
    color: #ffffff;
}

.site-stats-card span i,
.eyebrow i {
    margin-right: 6px;
    color: #8b5cf6;
}

.site-stats-chart-wrap {
    position: relative;
    height: 320px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

@media (max-width: 720px) {
    .site-stats-hero {
        display: grid;
    }

    .site-stats-range {
        width: fit-content;
    }

    .site-stats-chart-wrap {
        height: 240px;
    }
}

/* Site stats v3 */
.site-stats-panel__head h2 i {
    margin-right: 7px;
    color: #8b5cf6;
}

.site-stats-card:nth-child(5) {
    background:
        linear-gradient(180deg, rgba(59,130,246,.16), rgba(139,92,246,.08)),
        rgba(15, 23, 42, 0.82);
}

.site-stats-card:nth-child(5) strong {
    color: #93c5fd;
}


/* Site stats layout cleanup */
.site-stats-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-stats-columns--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-stats-card--online {
    background:
        linear-gradient(180deg, rgba(59,130,246,.16), rgba(139,92,246,.08)),
        rgba(15, 23, 42, 0.82);
}

.site-stats-card--online strong {
    color: #93c5fd;
}

@media (max-width: 1180px) {
    .site-stats-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-stats-columns--triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-stats-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-stats-grid--5 {
        grid-template-columns: 1fr;
    }
}

/* Site stats world map */
.site-stats-world__layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: center;
}

.site-stats-world__map {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(59,130,246,.18), transparent 55%),
        linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.96));
    border: 1px solid rgba(148,163,184,.10);
}

.site-stats-world__glow {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle, rgba(139,92,246,.24), transparent 42%);
    filter: blur(40px);
}

.site-stats-world__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
}

.site-stats-world__dot {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    box-shadow: 0 0 20px currentColor;
    opacity: .95;
}

.site-stats-world__dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: .35;
}

.site-stats-world__dot--1 {
    top: 26%;
    left: 18%;
    color: #60a5fa;
}

.site-stats-world__dot--2 {
    top: 30%;
    left: 48%;
    color: #8b5cf6;
}

.site-stats-world__dot--3 {
    top: 44%;
    left: 70%;
    color: #38bdf8;
}

.site-stats-world__dot--4 {
    top: 62%;
    left: 58%;
    color: #818cf8;
}

.site-stats-world__dot--5 {
    top: 36%;
    left: 82%;
    color: #22d3ee;
}

.site-stats-world__dot--6 {
    top: 52%;
    left: 26%;
    color: #c084fc;
}

.site-stats-world__countries {
    display: grid;
    gap: 14px;
}

.site-stats-world__country {
    display: grid;
    gap: 7px;
}

.site-stats-world__country-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-stats-world__country-top span {
    color: rgba(226,232,240,.82);
    font-size: .9rem;
}

.site-stats-world__country-top strong {
    color: #fff;
    font-size: .92rem;
}

.site-stats-world__bar {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(15,23,42,.82);
}

.site-stats-world__bar-fill {
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            rgba(59,130,246,.95),
            rgba(139,92,246,.95));
}

@media (max-width: 980px) {
    .site-stats-world__layout {
        grid-template-columns: 1fr;
    }

    .site-stats-world__map {
        min-height: 260px;
    }
}

/* Site stats world spacing */
.site-stats-chart-wrap + .site-stats-world,
.site-stats-panel + .site-stats-world {
    margin-top: 18px;
}
