/* ═══════════════════════════════════════════
   PARTNER SERVER MODAL (pm-)
═══════════════════════════════════════════ */
#partner-modal {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#partner-modal .pm-card,
.pm-card {
    background: var(--bg-main, #0b0e14);
    max-width: 420px;
    width: 92%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    padding: 28px 26px 22px;
}

.pm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pm-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.pm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2px;
}

.pm-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
}

.pm-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
}

.pm-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 16px 0;
}

.pm-message-wrap {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.pm-message-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5865F2;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pm-message {
    font-size: 0.82rem;
    color: var(--text-muted, #ccc);
    line-height: 1.6;
    white-space: pre-line;
    margin: 0;
}

.pm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    color: #fff;
}

.pm-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.pm-btn-join {
    /* background set dynamically via JS */
    flex: 1;
    justify-content: center;
}

.pm-btn-site {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1;
    justify-content: center;
}