        :root {
            --bg: #0c0c0c;
            --panel: #191919;
            --card: #1d1d1d;
            --border: #313131;
            --accent: #f7dc24;
            --gold: #f5c842;
            --silver: #b0b8c1;
            --bronze: #cd7f32;
            --green: #22c55e;
            --muted: #767676;
            --r: 12px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background: var(--bg);
            color: #fff;
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
        }

        /* ── Hero ─────────────────────────────────── */
        .srv-hero {
            background: linear-gradient(135deg, #151515 0%, #1e1e1e 50%, #151515 100%);
            border-bottom: 1px solid var(--border);
            padding: 80px 2rem 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .srv-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 50% 0%, rgba(247, 220, 36, .08) 0%, transparent 65%);
        }

        .srv-hero h1 {
            font-family: 'Poppins', sans-serif;
            font-size: clamp(2rem, 5vw, 3.4rem);
            font-weight: 800;
            line-height: 1.1;
            position: relative;
        }

        .srv-hero h1 span {
            color: var(--accent);
        }

        .srv-hero p {
            color: #a6a6a6;
            font-size: 1.1rem;
            margin: 1rem auto 0;
            max-width: 560px;
            position: relative;
        }

        .hero-badges {
            display: flex;
            gap: .6rem;
            justify-content: center;
            margin-top: 1.6rem;
            flex-wrap: wrap;
            position: relative;
        }

        .hero-badge {
            background: rgba(247, 220, 36, .1);
            border: 1px solid rgba(247, 220, 36, .2);
            color: var(--accent);
            border-radius: 20px;
            padding: .3rem .9rem;
            font-size: .8rem;
            font-weight: 600;
        }

        .hero-cta {
            margin-top: 2rem;
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
        }

        .btn-primary {
            background: var(--accent);
            color: #101010;
            border: none;
            border-radius: 10px;
            padding: .7rem 1.8rem;
            font-weight: 700;
            font-size: .95rem;
            cursor: pointer;
            text-decoration: none;
            transition: opacity .2s;
        }

        .btn-primary:hover {
            opacity: .85;
            color: #101010;
        }

        .btn-outline {
            background: transparent;
            color: #fff;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: .7rem 1.8rem;
            font-weight: 600;
            font-size: .95rem;
            cursor: pointer;
            text-decoration: none;
            transition: border-color .2s, color .2s;
        }

        .btn-outline:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* ── Filters ──────────────────────────────── */
        .srv-filters {
            background: var(--panel);
            border-bottom: 1px solid var(--border);
            padding: .75rem 2rem;
            display: flex;
            gap: .75rem;
            align-items: center;
            flex-wrap: wrap;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .filter-search {
            flex: 1;
            min-width: 200px;
            max-width: 320px;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            padding: .5rem 1rem;
            font-size: .9rem;
            outline: none;
        }

        .filter-search:focus {
            border-color: var(--accent);
        }

        .filter-select {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            padding: .5rem .9rem;
            font-size: .85rem;
            outline: none;
            cursor: pointer;
        }

        .filter-select:focus {
            border-color: var(--accent);
        }

        .filter-chips {
            display: flex;
            gap: .4rem;
            flex-wrap: wrap;
        }

        .fchip {
            background: var(--card);
            border: 1px solid var(--border);
            color: #a6a6a6;
            border-radius: 20px;
            padding: .28rem .75rem;
            font-size: .78rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
        }

        .fchip.active,
        .fchip:hover {
            background: var(--accent);
            color: #101010;
            border-color: var(--accent);
        }

        /* ── Main layout ──────────────────────────── */
        .srv-main {
            max-width: 1280px;
            margin: 0 auto;
            padding: 2rem 1.5rem 4rem;
        }

        .srv-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        /* ── Top 3 podium ──────────────────────────── */
        .podium-section {
            margin-bottom: 1rem;
        }

        .podium-title {
            font-family: 'Poppins', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: .5rem;
        }

        .podium-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1rem;
        }

        /* ── Server card ──────────────────────────── */
        .srv-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--r);
            overflow: hidden;
            transition: transform .15s, border-color .15s;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .srv-card:hover {
            transform: translateY(-3px);
            border-color: rgba(247, 220, 36, .35);
        }

        .srv-card.pos-1 {
            border-color: var(--gold);
        }

        .srv-card.pos-2 {
            border-color: var(--silver);
        }

        .srv-card.pos-3 {
            border-color: var(--bronze);
        }

        .srv-card-banner {
            width: 100%;
            height: 100px;
            object-fit: cover;
            background: linear-gradient(135deg, #1e1e1e, #2b2b2b);
        }

        .srv-card-banner-placeholder {
            height: 100px;
            background: linear-gradient(135deg, #1e1e1e 0%, #2b2b2b 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(247, 220, 36, .25);
            font-size: 2rem;
        }

        .srv-card-body {
            padding: 1rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: .6rem;
        }

        .srv-card-top {
            display: flex;
            gap: .8rem;
            align-items: flex-start;
        }

        .srv-card-logo {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            object-fit: cover;
            border: 2px solid var(--border);
            flex-shrink: 0;
            background: var(--panel);
        }

        .srv-card-logo-placeholder {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            border: 2px solid var(--border);
            flex-shrink: 0;
            background: var(--panel);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
        }

        .srv-card-info {
            flex: 1;
            min-width: 0;
        }

        .srv-card-name {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .srv-card-ip {
            font-size: .78rem;
            color: var(--accent);
            font-family: monospace;
            margin-top: .15rem;
        }

        .srv-card-desc {
            font-size: .82rem;
            color: #a6a6a6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .srv-card-tags {
            display: flex;
            gap: .35rem;
            flex-wrap: wrap;
        }

        .srv-tag {
            background: rgba(247, 220, 36, .08);
            border: 1px solid rgba(247, 220, 36, .15);
            color: var(--accent);
            border-radius: 20px;
            padding: .18rem .55rem;
            font-size: .72rem;
            font-weight: 600;
        }

        .srv-type-tag {
            background: rgba(34, 197, 94, .1);
            border: 1px solid rgba(34, 197, 94, .2);
            color: var(--green);
        }

        .srv-card-footer {
            padding: .75rem 1rem;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .5rem;
        }

        .srv-copy-btn {
            background: rgba(247, 220, 36, .1);
            border: 1px solid rgba(247, 220, 36, .2);
            color: var(--accent);
            border-radius: 6px;
            padding: .35rem .8rem;
            font-size: .78rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .15s;
        }

        .srv-copy-btn:hover {
            background: rgba(247, 220, 36, .2);
        }

        .srv-links {
            display: flex;
            gap: .4rem;
        }

        .srv-link-btn {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            background: var(--panel);
            border: 1px solid var(--border);
            color: #a6a6a6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .85rem;
            text-decoration: none;
            transition: border-color .15s, color .15s;
        }

        .srv-link-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Position badge */
        .pos-badge {
            position: absolute;
            top: .6rem;
            left: .6rem;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .75rem;
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
            z-index: 2;
        }

        .pos-badge.p1 {
            background: var(--gold);
            color: #1a1200;
        }

        .pos-badge.p2 {
            background: var(--silver);
            color: #111;
        }

        .pos-badge.p3 {
            background: var(--bronze);
            color: #1a0a00;
        }

        .pos-badge.pn {
            background: rgba(0, 0, 0, .5);
            color: #a6a6a6;
            border: 1px solid var(--border);
        }

        /* ── List section ──────────────────────────── */
        .list-section-title {
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: #a6a6a6;
            margin: 2rem 0 1rem;
            text-transform: uppercase;
            letter-spacing: .06em;
            font-size: .8rem;
        }

        .srv-list {
            display: flex;
            flex-direction: column;
            gap: .6rem;
        }

        .srv-row {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: .7rem 1rem;
            transition: border-color .15s;
        }

        .srv-row:hover {
            border-color: rgba(247, 220, 36, .3);
        }

        .srv-row-pos {
            width: 28px;
            text-align: center;
            font-weight: 700;
            color: var(--muted);
            font-size: .9rem;
        }

        .srv-row-logo {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid var(--border);
            flex-shrink: 0;
            background: var(--panel);
        }

        .srv-row-logo-ph {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            flex-shrink: 0;
            background: var(--panel);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        .srv-row-info {
            flex: 1;
            min-width: 0;
        }

        .srv-row-name {
            font-weight: 700;
            font-size: .9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .srv-row-sub {
            font-size: .75rem;
            color: var(--muted);
        }

        .srv-row-tags {
            display: flex;
            gap: .3rem;
        }

        .srv-row-actions {
            display: flex;
            gap: .4rem;
            align-items: center;
        }

        /* ── Empty / loading states ────────────────── */
        .empty-state {
            text-align: center;
            padding: 4rem 1rem;
            color: var(--muted);
        }

        .empty-state i {
            font-size: 3rem;
            opacity: .3;
            margin-bottom: 1rem;
            display: block;
        }

        .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin .7s linear infinite;
            margin: 3rem auto;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ── CTA bottom ──────────────────────────────── */
        .promote-cta {
            background: linear-gradient(135deg, #1e1e1e, #2b2b2b);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 3rem 2rem;
            text-align: center;
            margin-top: 3rem;
        }

        .promote-cta h2 {
            font-family: 'Poppins', sans-serif;
            font-weight: 800;
            font-size: 1.8rem;
            margin-bottom: .75rem;
        }

        .promote-cta h2 span {
            color: var(--gold);
        }

        .promote-cta p {
            color: #a6a6a6;
            max-width: 480px;
            margin: 0 auto 1.5rem;
        }

        /* ── Responsive ────────────────────────────── */
        @media (max-width: 640px) {
            .srv-hero {
                padding: 60px 1.2rem 40px;
            }

            .srv-filters {
                padding: .6rem 1rem;
            }

            .srv-main {
                padding: 1.5rem 1rem 3rem;
            }

            .podium-grid {
                grid-template-columns: 1fr;
            }

            .srv-row-tags {
                display: none;
            }
        }

        /* ── Copied toast ──────────────────────────── */
        #copy-toast {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #22c55e;
            color: #fff;
            padding: .6rem 1.4rem;
            border-radius: 8px;
            font-size: .9rem;
            font-weight: 600;
            opacity: 0;
            transition: opacity .2s, transform .2s;
            pointer-events: none;
            z-index: 999;
        }

        #copy-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

.directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block: 1.5rem;
}
.directory-pagination button:disabled {
    opacity: .55;
    cursor: default;
}
