/* AI consent notice + shared helpers (see app/js/ai-consent.js).
   No backdrop-filter on the overlay: a blur over a data-heavy page re-blurs every frame (project rule). */

.aic-hidden { display: none !important; }

/* New Claim chooser: the AI card while AI is off */
.ncc-card-disabled { opacity: 0.55; filter: grayscale(0.35); cursor: not-allowed; }
.ncc-card-disabled * { pointer-events: none; }
.ncc-ai-off-note { margin-top: 10px; font-size: 12px; font-weight: 600; color: #6b4a28; text-align: center; }

/* ---------- Notice modal ---------- */
.aic-overlay {
    /* above every modal that can open it: New Claim chooser (.ncc-modal 10600), Catch Me Up (10500) */
    position: fixed; inset: 0; z-index: 10700;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(24, 38, 30, 0.6);
    animation: aicFade 0.18s ease-out;
}
.aic-card {
    width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto;
    background: #fff; color: #231F20;
    border-radius: 16px; padding: 28px 28px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    font-family: 'Futura PT', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: aicRise 0.22s ease-out;
}
.aic-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.aic-badge {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1E6332, #214A3E); color: #fff; font-size: 18px;
}
.aic-head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: #214A3E; }

.aic-points { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aic-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; color: #3f4a49; }
.aic-points li i { flex: 0 0 auto; margin-top: 4px; color: #1E6332; font-size: 0.8rem; }

.aic-agree {
    margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
    background: #F4F0E9; border: 1px solid #e2dccf;
    font-size: 0.85rem; line-height: 1.5; color: #3f4a49;
}
.aic-agree a { color: #1E6332; font-weight: 600; }
.aic-error { margin: 0 0 12px; color: #b00020; font-size: 0.85rem; }

.aic-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.aic-btn {
    border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; min-height: 44px; transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.aic-btn-primary { background: #1E6332; color: #fff; flex: 1 1 auto; }
.aic-btn-primary:hover:not([disabled]) { background: #214A3E; }
.aic-btn-ghost { background: transparent; color: #475453; border: 1px solid #cfc8b8; }
.aic-btn-ghost:hover:not([disabled]) { background: #F4F0E9; }
.aic-btn[disabled], .aic-btn[aria-disabled="true"] { opacity: 0.65; cursor: default; }
.aic-btn:focus-visible, .aic-agree a:focus-visible { outline: 3px solid #8a6536; outline-offset: 2px; }
.aic-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes aicFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aicRise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .aic-overlay, .aic-card { animation: none; }
}

/* ---------- Phone: bottom sheet ---------- */
@media (max-width: 768px) {
    .aic-overlay { align-items: flex-end; padding: 0; }
    .aic-card {
        max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    }
    .aic-actions { flex-direction: column-reverse; }
    .aic-btn { width: 100%; }
}

/* ---------- Dark theme ---------- */
body.dark-theme .aic-card { background: #1e293b; color: #e2e8f0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
body.dark-theme .aic-head h2 { color: #e2e8f0; }
body.dark-theme .aic-points li { color: #cbd5e1; }
body.dark-theme .aic-points li i { color: #4ade80; }
body.dark-theme .aic-agree { background: #0f172a; border-color: #334155; color: #cbd5e1; }
body.dark-theme .aic-agree a { color: #4ade80; }
body.dark-theme .aic-error { color: #f87171; }
body.dark-theme .aic-btn:focus-visible, body.dark-theme .aic-agree a:focus-visible { outline-color: #4ade80; }
body.dark-theme .aic-btn-ghost { color: #cbd5e1; border-color: #475569; }
body.dark-theme .aic-btn-ghost:hover:not([disabled]) { background: #0f172a; }
