.aoe-ai-credit-confirm-summary[hidden] { display: none; }
.aoe-ai-credit-confirm-summary, .aoe-ai-credit-grid { display: grid; gap: 14px; }
.writing-ai-credit-summary.aoe-ai-credit-grid { grid-template-columns: minmax(0, 1fr); }
.aoe-ai-credit-cost { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 14px; padding: 16px 18px; color: #3730a3; }
.aoe-ai-credit-cost > span { font-size: 14px; font-weight: 600; }
.aoe-ai-credit-cost strong { font-size: 26px; white-space: nowrap; }
.aoe-ai-balance-summary { background: #fff; border: 1px solid #dbe4ed; border-radius: 14px; color: #334155; min-width: 0; overflow: hidden; text-align: left; }
.aoe-ai-balance-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: #f0fdfa; padding: 15px 18px; }
.aoe-ai-balance-total > span { font-size: 14px; font-weight: 600; color: #115e59; }
.aoe-ai-balance-total strong { color: #0f766e; font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aoe-ai-balance-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; padding: 6px 18px; }
.aoe-ai-balance-sources > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; min-width: 0; padding: 11px 0; }
.aoe-ai-balance-sources .aoe-ai-balance-free { grid-column: 1 / -1; border-bottom: 1px solid #edf2f7; }
.aoe-ai-balance-sources .aoe-ai-balance-wallet { border-right: 1px solid #edf2f7; padding-right: 12px; }
.aoe-ai-balance-sources dt { color: #64748b; font-size: 13px; font-weight: 500; line-height: 1.5; }
.aoe-ai-balance-sources dd { color: #334155; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.aoe-ai-balance-sources .aoe-ai-balance-plan dt, .aoe-ai-balance-sources .aoe-ai-balance-plan dd { color: #0f766e; font-weight: 700; }
.aoe-ai-credit-popup .modal-dialog { max-width: 520px; }
.aoe-ai-credit-popup .modal-content { border: 1px solid #e2e8f0; border-radius: 22px; box-shadow: 0 24px 70px rgba(15, 23, 42, .2); overflow: hidden; }
.aoe-ai-credit-popup .modal-header { border: 0; padding: 24px 24px 12px; }
.aoe-ai-credit-popup .modal-title { color: #172033; font-size: 21px; font-weight: 800; }
.aoe-ai-credit-popup .modal-body { background: #fff !important; border: 0 !important; margin: 0 !important; padding: 8px 24px 16px !important; }
.aoe-ai-credit-popup .modal-body > p { color: #64748b; font-size: 13px; line-height: 1.7; margin: 0 0 16px; white-space: normal; }
.aoe-ai-credit-popup .modal-footer { border: 0; padding: 8px 24px 24px !important; gap: 8px; }
.aoe-ai-credit-popup .modal-footer .btn { border-radius: 11px; font-weight: 700; padding: 10px 16px; }
@media (max-width: 575.98px) {
    .aoe-ai-credit-popup .modal-dialog { margin: 12px; }
    .aoe-ai-credit-popup .modal-header { padding: 20px 18px 10px; }
    .aoe-ai-credit-popup .modal-body { padding: 8px 18px 14px !important; }
    .aoe-ai-credit-popup .modal-footer { padding: 8px 18px 20px !important; }
    .aoe-ai-balance-total, .aoe-ai-credit-cost { padding: 14px; }
    .aoe-ai-balance-sources { padding: 4px 14px; }
    .aoe-ai-balance-sources .aoe-ai-balance-wallet,
    .aoe-ai-balance-sources .aoe-ai-balance-plan { flex-direction: column; align-items: flex-start; justify-content: center; }
}
