@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg: #080a12;
    --glass: rgba(255,255,255,.055);
    --border: rgba(255,255,255,.1);
    --text: #f7f8fc;
    --muted: #9498aa;
    --accent: #ff4655;
    --green: #39e58c;
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,70,85,.16), transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(94,74,255,.12), transparent 30%);
}

nav {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #ff4655, #d6293b);
    box-shadow: 0 10px 30px rgba(255,70,85,.25);
}

.brand h1 {
    font-size: 24px;
}

.brand h1 span {
    color: var(--accent);
}

.brand p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

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

.visits {
    font-size: 15px;
    padding: 10px 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.help-btn {
    border: 1px solid var(--border);
    background: var(--glass);
    color: white;
    padding: 10px 16px;
    height: 40px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}

main {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
    padding-bottom: 50px;
}

.hero {
    margin: 30px 0;
}

.discord-card {
    padding: 20px 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(88,101,242,.12);
    border: 1px solid rgba(88,101,242,.25);
}

.discord-card p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 10px var(--green);
}

.discord-btn,
.submit-btn,
.modal-btn {
    border: none;
    text-decoration: none;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

.discord-btn {
    padding: 12px 20px;
    border-radius: 12px;
    background: #5865f2;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 22px;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card {
    border-radius: 22px;
    padding: 25px;
}

.card h2 {
    margin-top: 8px;
    font-size: 23px;
}

.card p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

.badge {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent);
}

.badge.green {
    color: var(--green);
}

label {
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #c8cad5;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 11px;
    background: rgba(0,0,0,.22);
    border: 1px solid var(--border);
    color: white;
    outline: none;
    font-family: inherit;
}

input:focus,
select:focus {
    border-color: rgba(255,70,85,.7);
}

select option {
    background: #151722;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.submit-btn {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4655, #d92d3a);
    transition: .2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.cooldown-info {
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    margin-top: 12px;
}

.success,
.error {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
}

.success {
    background: rgba(57,229,140,.1);
    color: var(--green);
}

.error {
    background: rgba(255,70,85,.1);
    color: #ff7782;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
}

.online {
    font-size: 10px;
    color: var(--green);
}

.online span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.lobby-item {
    margin-top: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}

.lobby-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mode-tag {
    font-size: 13px;
    background: rgba(255,70,85,.12);
    color: #ff7180;
    padding: 5px 8px;
    border-radius: 6px;
}

.time {
    color: var(--muted);
    font-size: 11px;
}

.lobby-meta {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    font-size: 13px;
    color: #c6c8d3;
    margin-top: 10px;
}

.connect-btn {
    background: rgba(255,70,85,.12);
    color: #ff6975;
    border: 1px solid rgba(255,70,85,.2);
    padding: 9px 13px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

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

.rank-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

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

.connect-btn:hover {
    background: var(--accent);
    color: white;
}

.empty,
.loading {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
}

.empty-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: min(460px, 100%);
    padding: 30px;
    border-radius: 24px;
    position: relative;
    background: #13151f;
    border: 1px solid var(--border);
}

.close-modal {
    position: absolute;
    right: 18px;
    top: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.modal-icon {
    display: inline-block;
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
}

.modal-icon span {
    color: var(--accent);
}

.help-step {
    margin-top: 20px;
}

.help-step b {
    font-size: 14px;
}

.help-step p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    padding: 13px;
    margin-top: 25px;
    border-radius: 11px;
    background: var(--accent);
}

/* RESPONSIVE */

@media(max-width: 800px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width: 600px) {

    nav {
        width: calc(100% - 25px);
    }

    main {
        width: calc(100% - 25px);
    }

    .brand p {
        display: none;
    }

    .visits {
        display: none;
    }

    .discord-card {
        gap: 15px;
        flex-wrap: wrap;
    }

    .discord-btn {
        white-space: nowrap;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .lobby-item {
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .lobby-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

}
