/* AIFlowMatrix Core Styles */

/* Toast */
.afm-toast {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #111;
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.afm-toast-show { opacity: 1; }

/* Modal */
.afm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afm-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.afm-modal h3 { font-size: 18px; margin: 0 0 12px; color: #111; }
.afm-modal p { font-size: 14px; color: #6b7280; margin: 0 0 20px; line-height: 1.5; }
.afm-btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-right: 8px;
}
.afm-btn-secondary {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    font-family: inherit;
}

/* Shortcode container */
.afm-tool-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.afm-tool-wrap .afm-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}
.afm-tool-wrap .afm-cost-badge strong { color: #111; }

/* Login gate */
.afm-login-gate {
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.afm-login-gate p { color: #6b7280; font-size: 14px; margin: 0 0 16px; }
.afm-login-gate a {
    background: #111;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* ── AFM DARK PAGE OVERRIDE ──────────────────────────────────── */
/* Applied to all AFM tool pages to enforce dark background */
body.afm-dark-page,
body.afm-dark-page #page,
body.afm-dark-page #content,
body.afm-dark-page #primary,
body.afm-dark-page #main,
body.afm-dark-page .site,
body.afm-dark-page .site-content,
body.afm-dark-page .site-main,
body.afm-dark-page .entry-content,
body.afm-dark-page .wp-site-blocks,
body.afm-dark-page .is-layout-flow,
body.afm-dark-page .has-global-padding {
  background: #07090f !important;
  background-color: #07090f !important;
}
body.afm-dark-page {
  background: #07090f !important;
  color: #cbd5e1 !important;
}
/* Remove theme padding on dark pages */
body.afm-dark-page .site-content,
body.afm-dark-page .entry-content,
body.afm-dark-page .wp-block-html {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ── AFM DARK PAGE OVERRIDE ─────────────────────────────────── */
body.afm-dark-page,
body.afm-dark-page #page,
body.afm-dark-page #content,
body.afm-dark-page #primary,
body.afm-dark-page #main,
body.afm-dark-page .site,
body.afm-dark-page .site-content,
body.afm-dark-page .site-main,
body.afm-dark-page .entry-content,
body.afm-dark-page .wp-site-blocks,
body.afm-dark-page .is-layout-flow,
body.afm-dark-page .has-global-padding {
  background: #07090f !important;
  background-color: #07090f !important;
}
body.afm-dark-page {
  background: #07090f !important;
  color: #cbd5e1 !important;
}
body.afm-dark-page .site-content,
body.afm-dark-page .entry-content,
body.afm-dark-page .wp-block-html {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
