/* ═══════════════════════════════════════════════════════════════
   MODALS & POPUPS — Credit popup, Example reports modal
   ═══════════════════════════════════════════════════════════════ */

/* === CREDIT POPUP === */
.credit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.credit-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.credit-popup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.credit-popup-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.credit-popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.credit-popup-msg {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 24px;
    line-height: 1.5;
}

.credit-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.credit-popup-actions .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* === EXAMPLE REPORT LINK === */
.ai-example-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--accent2);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-example-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* === EXAMPLE REPORTS MODAL === */
.example-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.example-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.example-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px;
    width: 94%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.example-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.example-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.example-modal-desc {
    font-size: 0.8rem;
    color: var(--text2);
    margin-top: 2px;
}

.example-close-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 1rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.example-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.example-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.example-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.example-tab.active {
    color: var(--accent2);
    border-bottom-color: var(--accent2);
    background: rgba(108, 99, 255, 0.06);
}

.example-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}