/* ── Partner popup (shared, themed via CSS variables) ──────────────────────── */

.partner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: partnerFadeIn 0.25s ease;
}

.partner-overlay-hiding {
    animation: partnerFadeOut 0.25s ease forwards;
}

@keyframes partnerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes partnerFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.partner-popup {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 16px;
    padding: 28px 28px 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: partnerSlideUp 0.3s ease;
}

@keyframes partnerSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.partner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 6px;
    color: var(--text-muted, #9ca3af);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 180ms ease, border-color 180ms ease;
}

.partner-close:hover {
    color: var(--text, #1a1a2e);
    border-color: var(--border-hover, rgba(0,0,0,0.16));
}

.partner-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    background: var(--bg, #fafafa);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-left: 3px solid var(--accent, #22c55e);
    border-radius: 10px;
    text-align: left;
    margin-bottom: 14px;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.partner-info strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
}

.partner-info small {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
}

.partner-btn {
    padding: 10px 20px;
    background: var(--accent, #22c55e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease;
    flex-shrink: 0;
}

.partner-btn:hover { filter: brightness(0.9); }
.partner-btn:active { transform: scale(0.96); }
.partner-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.partner-btn-done {
    background: #22c55e !important;
    cursor: default;
    pointer-events: none;
}

.partner-disclaimer {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .partner-popup { padding: 24px 20px 16px; }
    .partner-card { flex-direction: column; align-items: stretch; }
    .partner-btn { width: 100%; }
}
