* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.max-width {
    max-width: 1200px;
    margin: 0 auto
}

.btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--accent-ghost);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: .15s ease;
    cursor: pointer;
}

.btn1:hover {
    transform: translateY(-1px)
}



.btn1-alukard {
    background: #202125;
    border-color: #2b2c31
}

.btn1.copied {
    opacity: .8
}

/* HERO */
.server-hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 300px at 50% -10%, rgba(255, 59, 48, .35), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, 0));
    filter: saturate(120%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.server-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: #1e1f23;
    border: 1px solid #2a2b2f;
    width: 4rem;
    text-align: center;
    color: #d7d7db;
    border-radius: 9px;
    font-size: 16px;
    letter-spacing: .2px;
}

.server-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.server-title-name {
    margin: 4px 0 0;
    font-size: 40px;
    line-height: 1.15
}

.server-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
}

.server-subtitle {
    margin: 0;
    color: var(--muted)
}

.server-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7d7db;
    font-weight: 600
}

.status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.online .dot {
    background: #2ecc71
}

.status.offline .dot {
    background: #ff5252
}

/* LAYOUT */
.layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    padding: 22px 0 32px;
}


dl .version {
    color: #cfd0d4;
    text-decoration: none;
    padding: 3px 4px;
    border-radius: 8px;
    background: #202125;
    border: 1px solid #2a2b2f;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.card-title {
    margin: 0 0 10px;
    font-size: 20px
}

.card-subtitle {
    margin: 12px 0 8px;
    color: #d7d7db;
    font-size: 14px;
    letter-spacing: .2px
}

/* key-value list */
.kv {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px
}

.kv dt {
    color: var(--muted)
}

.kv dd {
    margin: 0
}

.sep {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0
}

.links {

    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px
}

.links a {
    color: #cfd0d4;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #2a2b2f;
    font-weight: 600;
}





.links_ds {
    background-color: #5662f6;
}

.links_vk {
    background-color: #0077ff;
}

.links_tg {
    background-color: #1d94cf
}

.links_site {
    background: #202125;
}

.links_ds:hover {
    background-color: rgba(86, 98, 246, 0.8);
}

.links_vk:hover {
    background-color: rgba(0, 119, 255, 0.8);
}

.links_tg:hover {
    background-color: rgba(29, 148, 207, 0.8);
}

.links_site:hover {
    background: rgba(32, 33, 37, 0.8);
}

/* FEATURES */
.features-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; 
}

.features-container > .feature-item:nth-child(2):last-child:nth-child(2) {
    justify-content: space-evenly;
}


.feature-item {
    padding: 10px 20px;
    background: #1e1e1e;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.bullets {
    margin: 6px 0 0;
    padding-left: 16px;
    color: #d9d9de
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px
}

.tag {
    background: #1e1f23;
    border: 1px solid #2a2b2f;
    color: #d7d7db;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.cta-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.mt {
    margin-top: 18px
}


.footer {
    padding: 16px 0 40px;
    color: #8f9096
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}

.popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card);
    color: var(--text);
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    font-weight: 500;
}

.top0 {
    opacity: 1;
    transform: translateY(0);
}

.modal-content {
    background: #181818;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    outline: none;
}

.modal-content button {
    background: #3a86ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #2563eb;
}



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay[aria-hidden="false"] {
    display: flex;
}

.modal {
    width: min(540px, 100%);
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.modal-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: none;
}

.modal-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #14181a;
    color: var(--white);
    cursor: pointer;
}

.modal-close:hover {
    background: #20262a;
}

.stat-table {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.stat-table .row {
    display: grid;
    grid-template-columns: 1fr 120px 90px;
    gap: 8px;
    padding: 10px 12px;
}

.stat-table .row.head {
    background: #14181a;
    color: #cbd5e1;
    font-weight: 600;
}

.stat-table .row:not(.head) {
    background: #121517;
}

.stat-table .srv {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.field input {
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #14181a;
    padding: 0 12px;
    color: var(--fg);
}

.hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: var(--white);
    font-weight: 700;
}

.btn.primary:hover {
    background: var(--accent-press);
}

.btn.ghost {
    background: #14181a;
    border: 1px solid var(--border);
}

.btn.ghost:hover {
    background: #20262a;
}


.ri-file-copy-line {
    color: #00ff80;
}

code {
    background: #202125;
    border: 1px solid #2b2c31;
    padding: 2px 6px;
    border-radius: 6px
}

/* RESPONSIVE */
@media(max-width: 1200px) {
    .max-width {
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: 1fr 1fr
    }


}

@media (max-width: 800px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .card.side {}

    .card.side .card-title {
        font-size: 28px;
    }

    .card.side .kv {
        grid-template-columns: 3fr;
        gap: 6px 0;
    }

    .card.side .links {
        gap: 4px;
    }

}

@media (max-width: 480px) {
    .server-title {
        font-size: 32px
    }

    .features {
        grid-template-columns: 1fr
    }
}