.invite-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.invite-modal {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 2rem;
    border-radius: 16px;
    width: 420px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    text-align: left;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.invite-pill {
    display: inline-flex;
    margin-bottom: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.invite-message {
    color: #334155;
    margin-bottom: 10px;
}

.invite-timer {
    color: #334155;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-buttons {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
}

.accept-btn,
.decline-btn {
    padding: 0.58rem 1.1rem;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-weight: 700;
    min-width: 110px;
    cursor: pointer;
}

.accept-btn { background: linear-gradient(135deg, #16a34a, #22c55e); }
.decline-btn { background: linear-gradient(135deg, #dc2626, #ef4444); }

.mate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden { display: none; }

.mate-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
}

#mate-btn {
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 400px;
    max-width: 90%;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #cbd5f5;
}

.modal-footer {
    padding: 16px;
    display: flex;
    justify-content: flex-end;
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}



.invite-event {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;

    background: linear-gradient(180deg, rgba(80,80,140,0.25), rgba(50,50,90,0.25));
    border: 1px solid rgba(255,255,255,0.05);

    text-align: center;
    color: #dcdcf5;
    font-size: 14px;
    letter-spacing: 0.3px;
}


.invite-event strong {
    font-weight: 600;
}


.invite-event.bullet strong { color: #ffd166; }
.invite-event.blitz strong { color: #00d4ff; }
.invite-event.rapid strong { color: #00ffa6; }
.invite-event.classical strong { color: #c77dff; }
