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

:root {
    --bg: #08080b;
    --bg-elev: #0d0d12;
    --bg-card: #101018;
    --bg-card-hover: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --accent: #3b82f6;
    --accent-2: #6366f1;
    --accent-glow: rgba(59, 130, 246, 0.4);

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;

    --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #6366f1 100%);
    --gradient-brand-hover: linear-gradient(135deg, #7db3fb 0%, #4f92f7 50%, #7b7ef2 100%);

    --radius: 12px;
    --radius-lg: 16px;
    --nav-height: 68px;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

nav, section, footer {
    position: relative;
    z-index: 2;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.35), rgba(99, 102, 241, 0.2));
    border: 2px solid var(--bg);
    border-radius: 8px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.6), rgba(99, 102, 241, 0.4));
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) var(--bg);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 11, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
    background: rgba(8, 8, 11, 0.9);
    border-bottom-color: var(--border-strong);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.3px;
    transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.85; }

.nav-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-cta svg { transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(3px); }

.hero {
    padding: 160px 32px 40px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    max-width: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2.2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.hero-btn.primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-btn.primary:hover {
    background: var(--gradient-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: var(--border-strong);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.partners {
    padding: 40px 32px 80px;
}

.partners-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s ease-in-out infinite;
}

.list-count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.list-note {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.server-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s, box-shadow 0.35s;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

.server-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45),
                0 0 60px rgba(59, 130, 246, 0.06);
}

.server-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--gradient-brand);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.server-featured svg { color: #fef3c7; }

.server-icon-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    align-self: center;
}

.server-icon {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.server-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--bg-card);
    border: 2px solid var(--bg-elev);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: pulseDot 2s ease-in-out infinite;
}

.server-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.server-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.server-version {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.server-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 520px;
}

.server-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 9px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 11px;
    color: #93c5fd;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.server-ip-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: var(--text);
}

.server-ip svg { color: var(--text-muted); flex-shrink: 0; }

.ip-text {
    font-weight: 500;
    letter-spacing: 0.2px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

.copy-btn:active { transform: scale(0.97); }

.copy-btn .check-icon { display: none; }

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: inline-block; }

.server-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
}

.player-stats {
    text-align: right;
    width: 100%;
}

.player-count {
    display: flex;
    align-items: baseline;
    gap: 3px;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 4px;
}

.count-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.8px;
    transition: color 0.3s;
}

.count-current.updating { color: #93c5fd; }

.count-slash {
    font-size: 20px;
    color: var(--text-dim);
    font-weight: 300;
    margin: 0 2px;
}

.count-max {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.player-label {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.player-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    max-width: 180px;
    margin-left: auto;
}

.player-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.ping-block {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.ping-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.ping-bars .bar {
    width: 3px;
    background: var(--success);
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.ping-bars .b1 { height: 4px; }
.ping-bars .b2 { height: 7px; }
.ping-bars .b3 { height: 10px; }
.ping-bars .b4 { height: 12px; }

.ping-value {
    font-size: 11px;
    font-weight: 600;
    color: #86efac;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.server-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.action-btn.primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
    background: var(--gradient-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: var(--text);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.server-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.placeholder-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.placeholder-text strong {
    font-weight: 600;
    color: var(--text);
    font-size: 14.5px;
}

.placeholder-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.placeholder-text a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.placeholder-text a:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.apply {
    padding: 20px 32px 100px;
}

.apply-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.apply-content {
    position: relative;
    padding: 56px 40px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.apply-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1), transparent 55%);
    pointer-events: none;
    animation: rotateGlow 24s linear infinite;
}

@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.apply-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.apply-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1.2px;
    position: relative;
    z-index: 1;
}

.apply-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.apply-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer {
    padding: 60px 32px 32px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.01));
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.footer-brand img { width: 28px; height: 28px; }

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

.custom-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 24px;
}

.custom-modal-overlay.show { display: flex; opacity: 1; }

.custom-modal-card {
    position: relative;
    background: linear-gradient(180deg, #14141c 0%, #0a0a12 100%);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(12px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

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

.custom-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.custom-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s;
    padding: 0;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: white;
}

.custom-modal-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #93c5fd;
    position: relative;
}

.custom-modal-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: currentColor;
    opacity: 0.18;
    z-index: -1;
    filter: blur(14px);
}

.custom-modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.custom-modal-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    padding: 0 6px;
}

.custom-modal-message strong {
    color: white;
    font-weight: 600;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;
}

.custom-modal-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: 0.2px;
}

.custom-modal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-modal-btn.primary {
    background: var(--gradient-brand);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 22px rgba(59, 130, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.custom-modal-btn.primary:hover {
    background: var(--gradient-brand-hover);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.custom-modal-btn.primary > span { display: inline-block; }
.custom-modal-btn:active { transform: scale(0.98); }

.notif-stack {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: min(90%, 460px);
}

.notif {
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 13px 16px 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    animation: notifIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.notif::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
}

.notif.info { color: var(--accent); }
.notif.success { color: var(--success); }
.notif.error { color: var(--danger); }
.notif.warning { color: var(--warning); }

.notif.exit { animation: notifOut 0.25s ease forwards; }

@keyframes notifIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notifOut {
    to { opacity: 0; transform: translateY(-14px) scale(0.96); }
}

.notif-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.notif-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notif-content {
    flex: 1;
    line-height: 1.35;
    min-width: 0;
}

.notif-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.notif-msg {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.notif-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px;
    display: flex;
    transition: color 0.2s;
    border-radius: 4px;
    flex-shrink: 0;
}

.notif-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 900px) {
    .hero-title { font-size: 48px; letter-spacing: -1.4px; }
    .server-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .server-icon-wrap {
        width: 72px;
        height: 72px;
        align-self: flex-start;
    }
    .server-icon { width: 72px; height: 72px; }
    .server-side {
        align-items: stretch;
        min-width: 0;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }
    .player-stats { text-align: left; }
    .player-count { justify-content: flex-start; }
    .player-bar { margin-left: 0; }
    .server-actions { justify-content: flex-start; flex-wrap: wrap; }
    .server-featured { top: 12px; right: 12px; }
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 620px) {
    .nav-inner { padding: 14px 20px; }
    .nav-cta { padding: 8px 14px; font-size: 12px; }
    .hero { padding: 130px 20px 30px; }
    .hero-title { font-size: 36px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-btn { width: 100%; justify-content: center; }
    .partners { padding: 30px 16px 60px; }
    .server-card { padding: 18px; }
    .server-name { font-size: 20px; }
    .count-current { font-size: 24px; }
    .apply { padding: 10px 20px 80px; }
    .apply-content { padding: 40px 24px; border-radius: 16px; }
    .apply-content h2 { font-size: 26px; }
    .footer { padding: 40px 20px 30px; }
    .custom-modal-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
