:root { --ia-page-bg: #f7f8fb; --ia-surface: #fff; --ia-surface-muted: #eef1f5; --ia-text: #202533; --ia-muted: #68707d; --ia-border: #d7dbe3; --ia-input-border: #ccd2dc; --ia-accent: #2446b8; --ia-accent-contrast: #fff; --ia-danger: #b42318; --ia-success: #18794e; }
:root[data-ia-theme="dark"] { --ia-page-bg: #151922; --ia-surface: #202633; --ia-surface-muted: #2b3443; --ia-text: #f1f4f8; --ia-muted: #b2bac8; --ia-border: #414b5d; --ia-input-border: #526078; --ia-accent: #8da8ff; --ia-accent-contrast: #101522; --ia-danger: #ff9b91; --ia-success: #72d6a6; color-scheme: dark; }
html[data-ia-theme="dark"], html[data-ia-theme="dark"] body { background: var(--ia-page-bg); color: var(--ia-text); }
html[data-ia-theme="dark"] input, html[data-ia-theme="dark"] select, html[data-ia-theme="dark"] textarea { background: var(--ia-surface); color: var(--ia-text); border-color: var(--ia-input-border); }
html[data-ia-theme="dark"] button, html[data-ia-theme="dark"] .button, html[data-ia-theme="dark"] a.button { border-color: var(--ia-border); }
html[data-ia-theme="dark"] .messenger, html[data-ia-theme="dark"] .ppt-messenger-window, html[data-ia-theme="dark"] .profile, html[data-ia-theme="dark"] .membership, html[data-ia-theme="dark"] .pricing, html[data-ia-theme="dark"] .modal-content, html[data-ia-theme="dark"] .popup, html[data-ia-theme="dark"] .modal { background-color: var(--ia-surface); color: var(--ia-text); }
.ia-theme-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 100001; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--ia-border); border-radius: 999px; background: var(--ia-surface); color: var(--ia-text); box-shadow: 0 5px 18px rgba(0,0,0,.16); cursor: pointer; font: inherit; }
.ia-theme-toggle:hover, .ia-theme-toggle:focus-visible { border-color: var(--ia-accent); }
.ia-theme-toggle-icon { font-size: 18px; line-height: 1; }
.ia-lock-button { margin: 16px 0 0 8px; border: 1px solid var(--ia-border); background: var(--ia-surface); color: var(--ia-text); padding: 7px 12px; cursor: pointer; }
.ia-popup-lock-button { align-self: center; margin: 0 8px; border: 0; background: transparent; color: var(--ia-accent); font-size: 18px; cursor: pointer; }
.ia-locked-contact { opacity: .78; }
.ia-lock-dialog { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(17, 24, 39, .55); }
.ia-lock-panel { position: relative; width: min(92vw, 380px); padding: 28px; background: var(--ia-surface); color: var(--ia-text); box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.ia-lock-panel h3 { margin: 0 0 20px; font-size: 20px; }
.ia-lock-input { display: block; width: 100%; margin: 0 0 12px; padding: 11px 12px; border: 1px solid var(--ia-input-border); background: var(--ia-surface); color: var(--ia-text); }
.ia-lock-submit { width: 100%; padding: 11px 14px; border: 0; background: var(--ia-accent); color: var(--ia-accent-contrast); cursor: pointer; }
.ia-lock-submit:disabled { opacity: .6; cursor: wait; }
.ia-lock-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.ia-lock-message { margin: 0 0 12px; color: var(--ia-danger); font-size: 13px; }
.ia-lock-success { color: var(--ia-success); }
.ia-lock-forgot { display: block; margin: 12px auto; border: 0; background: transparent; color: var(--ia-accent); cursor: pointer; font-size: 13px; text-decoration: underline; }
.ia-expiry-settings { max-width: 795px; margin: 28px auto; padding: 24px; border: 1px solid var(--ia-border); background: var(--ia-surface); color: var(--ia-text); }
.ia-expiry-settings h3 { margin: 0 0 8px; font-size: 20px; }
.ia-expiry-settings p { margin: 0 0 16px; color: var(--ia-muted); }
.ia-expiry-select { min-width: 180px; padding: 10px; border: 1px solid var(--ia-input-border); background: var(--ia-surface); color: var(--ia-text); }
.ia-expiry-save { margin-left: 8px; padding: 10px 14px; border: 0; background: var(--ia-accent); color: var(--ia-accent-contrast); cursor: pointer; }
.ia-expiry-save:disabled { opacity: .6; cursor: wait; }
.ia-expiry-result { display: inline-block; margin-left: 10px; font-size: 13px; }
.ia-expiry-success { color: var(--ia-success); }
.ia-expiry-error { color: var(--ia-danger); }
@media (max-width: 600px) { .ia-expiry-select, .ia-expiry-save { width: 100%; margin: 8px 0 0; } .ia-expiry-result { margin: 8px 0 0; } }
/* Profile safety controls: Block / Restrict / Report */
.ia-safety-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 6px;padding:0;clear:both}
.ia-safety-action,.ia-safety-manage{appearance:none;border:1px solid #d7dce5;background:#fff;color:#273142;border-radius:8px;padding:9px 14px;font:inherit;font-size:14px;line-height:1.2;cursor:pointer;transition:.16s ease}
.ia-safety-action:hover,.ia-safety-manage:hover{border-color:#ef0065;color:#ef0065;box-shadow:0 3px 12px rgba(0,0,0,.08)}
.ia-safety-block{border-color:#e2a5ad;color:#a51d2d}
.ia-safety-report{border-color:#e0c4c8}
.ia-safety-manage{border:0;background:transparent;text-decoration:underline;padding-left:4px;padding-right:4px;color:#667085}
.ia-safety-action:disabled,.ia-safety-mini:disabled{opacity:.55;cursor:wait}
.ia-safety-disabled{opacity:.5!important;filter:grayscale(.25);cursor:not-allowed!important}
.ia-safety-dialog[hidden]{display:none!important}
.ia-safety-dialog{position:fixed;inset:0;z-index:100005;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.56)}
.ia-safety-panel{position:relative;width:min(94vw,540px);max-height:82vh;overflow:auto;border-radius:16px;background:#fff;color:#1f2937;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.ia-safety-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;line-height:1;color:#667085;cursor:pointer}
.ia-safety-panel h3{margin:0 36px 8px 0;font-size:22px}.ia-safety-panel h4{margin:20px 0 10px;font-size:16px}.ia-safety-help{margin:0 0 18px;color:#667085}
.ia-report-reason,.ia-report-details{display:block;width:100%;box-sizing:border-box;margin:0 0 12px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#1f2937;padding:11px 12px;font:inherit}
.ia-safety-primary{width:100%;border:0;border-radius:999px;background:#ef0065;color:#fff;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer}
.ia-safety-result{margin-top:10px;color:#b42318;font-size:13px}.ia-safety-result.is-success{color:#18794e}
.ia-safety-list-section{border-top:1px solid #eaecf0;padding-top:2px}.ia-safety-user-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f2f4f7}.ia-safety-user-row img{width:42px;height:42px;border-radius:50%;object-fit:cover}.ia-safety-user-name{font-weight:600}.ia-safety-mini{border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:7px 10px;cursor:pointer}.ia-safety-empty{color:#98a2b3;font-size:14px}
html[data-ia-theme="dark"] .ia-safety-panel,html[data-ia-theme="dark"] .ia-safety-action,html[data-ia-theme="dark"] .ia-report-reason,html[data-ia-theme="dark"] .ia-report-details,html[data-ia-theme="dark"] .ia-safety-mini{background:var(--ia-surface);color:var(--ia-text);border-color:var(--ia-border)}
@media(max-width:700px){.ia-safety-actions{display:grid;grid-template-columns:1fr 1fr}.ia-safety-manage{grid-column:1/-1}.ia-safety-panel{padding:24px 18px}.ia-safety-user-row{grid-template-columns:38px 1fr auto}}
/* v1.4.1: keep profile safety controls clearly visible below the primary profile actions. */
.ia-safety-actions{display:flex!important;flex-wrap:wrap;gap:8px;margin:12px 0 16px;align-items:center;position:relative;z-index:5;width:100%}
.ia-safety-action{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;padding:8px 15px;border:1px solid #d7dce2;border-radius:8px;background:#fff;color:#374151;font-weight:600;line-height:1.2;cursor:pointer;opacity:1;visibility:visible}
.ia-safety-report{border-color:#e7c4ca;color:#9b2438}
.ia-safety-block{border-color:#d9aeb5;color:#8c1f31}
.ia-safety-restrict{border-color:#cfd5dd}
.ia-safety-manage{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:0;background:transparent;text-decoration:underline;color:#596579;cursor:pointer;opacity:1;visibility:visible}
.ia-safety-own-profile .ia-safety-manage{margin-left:0}
@media(max-width:767px){.ia-safety-actions{gap:6px}.ia-safety-action,.ia-safety-manage{flex:1 1 auto}}

/* v1.5.0 Private Match / Mutual Interest */
.ia-match-actions{display:flex;gap:8px;margin:12px 0 16px;clear:both}
.ia-match-interest{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 18px;border:0;border-radius:999px;background:#ef0065;color:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(239,0,101,.18)}
.ia-match-interest:hover{filter:brightness(.96)}.ia-match-interest:disabled{cursor:default;opacity:.75}.ia-match-interest.is-accepted{background:#18794e}.ia-match-interest.is-pending{background:#667085}
.ia-match-disabled{opacity:.55!important;cursor:not-allowed!important;filter:grayscale(.2)}
.ia-match-notification-button{position:fixed;right:78px;bottom:20px;z-index:100002;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid var(--ia-border);border-radius:999px;background:var(--ia-surface);color:var(--ia-text);box-shadow:0 5px 18px rgba(0,0,0,.16);font:inherit;cursor:pointer}.ia-match-notification-button[hidden]{display:none!important}.ia-match-bell{color:#ef0065;font-size:18px}.ia-match-count{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:#ef0065;color:#fff;font-size:12px;font-weight:700}
.ia-match-dialog[hidden]{display:none!important}.ia-match-dialog{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.6)}.ia-match-panel{position:relative;width:min(94vw,480px);border-radius:18px;background:#fff;color:#1f2937;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.ia-match-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;line-height:1;color:#667085;cursor:pointer}.ia-match-panel h3{margin:0 34px 18px 0;font-size:23px}.ia-match-person{display:flex;align-items:center;gap:14px;padding:14px;border-radius:12px;background:#f8fafc}.ia-match-person img{width:62px;height:62px;border-radius:50%;object-fit:cover}.ia-match-person strong{display:block;font-size:17px}.ia-match-person p{margin:4px 0 0;color:#667085}.ia-match-help{margin:16px 0;color:#667085}.ia-match-response-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ia-match-decline,.ia-match-accept{border-radius:999px;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}.ia-match-decline{border:1px solid #d0d5dd;background:#fff;color:#344054}.ia-match-accept{border:0;background:#ef0065;color:#fff}.ia-match-result-view p{color:#667085;margin-bottom:0}
html[data-ia-theme="dark"] .ia-match-panel,html[data-ia-theme="dark"] .ia-match-person,html[data-ia-theme="dark"] .ia-match-decline{background:var(--ia-surface);color:var(--ia-text);border-color:var(--ia-border)}
@media(max-width:700px){.ia-match-notification-button{right:20px;bottom:72px}.ia-match-notification-label{display:none}.ia-match-response-actions{grid-template-columns:1fr}.ia-match-interest{width:100%}}


/* v1.5.1 Adaptive site-wide dark mode.
 * Existing theme/Elementor/PremiumPress content is detected at runtime and
 * receives these opt-in classes only while IA dark mode is active.
 */
html[data-ia-theme="dark"] .ia-dark-surface,
html[data-ia-theme="dark"] body.ia-dark-surface {
    background-color: #000000 !important;
    background-image: none !important;
    color: #f1f4f8 !important;
    border-color: #414b5d !important;
}
html[data-ia-theme="dark"] .ia-dark-surface-soft {
    background-color: #000000 !important;
    color: #f1f4f8 !important;
    border-color: #414b5d !important;
}
html[data-ia-theme="dark"] .ia-dark-text {
    color: #f1f4f8 !important;
}
html[data-ia-theme="dark"] .ia-dark-muted-text {
    color: #b2bac8 !important;
}
html[data-ia-theme="dark"] .ia-dark-border {
    border-color: #414b5d !important;
}
html[data-ia-theme="dark"] .bg-white,
html[data-ia-theme="dark"] .bg-light,
html[data-ia-theme="dark"] .card,
html[data-ia-theme="dark"] .card-body,
html[data-ia-theme="dark"] .list-group-item,
html[data-ia-theme="dark"] .dropdown-menu,
html[data-ia-theme="dark"] .dropdown-item,
html[data-ia-theme="dark"] .accordion-item,
html[data-ia-theme="dark"] .accordion-body,
html[data-ia-theme="dark"] .offcanvas,
html[data-ia-theme="dark"] .modal-content,
html[data-ia-theme="dark"] .elementor-popup-modal .dialog-widget-content {
    background-color: #000000 !important;
    color: #f1f4f8 !important;
    border-color: #414b5d !important;
}
html[data-ia-theme="dark"] .text-dark,
html[data-ia-theme="dark"] .text-black,
html[data-ia-theme="dark"] .text-body,
html[data-ia-theme="dark"] .card-title,
html[data-ia-theme="dark"] .card-text,
html[data-ia-theme="dark"] .dropdown-item,
html[data-ia-theme="dark"] .accordion-button {
    color: #f1f4f8 !important;
}
html[data-ia-theme="dark"] hr { border-color: #414b5d !important; opacity: 1; }
html[data-ia-theme="dark"] table,
html[data-ia-theme="dark"] th,
html[data-ia-theme="dark"] td { border-color: #414b5d; }
html[data-ia-theme="dark"] ::placeholder { color: #9da7b7 !important; opacity: 1; }

/* Never recolour media itself or IA accent/action controls. */
html[data-ia-theme="dark"] img,
html[data-ia-theme="dark"] picture,
html[data-ia-theme="dark"] video,
html[data-ia-theme="dark"] canvas,
html[data-ia-theme="dark"] svg { background-color: transparent; }


/* v1.5.2: harden dark mode for PremiumPress/Elementor content.
 * These selectors are deliberately presentation-only and do not alter plugin behaviour.
 */
html[data-ia-theme="dark"] body,
html[data-ia-theme="dark"] #page,
html[data-ia-theme="dark"] #main,
html[data-ia-theme="dark"] .site,
html[data-ia-theme="dark"] .site-content,
html[data-ia-theme="dark"] .content-area {
    color: #f1f4f8;
}
html[data-ia-theme="dark"] h1,
html[data-ia-theme="dark"] h2,
html[data-ia-theme="dark"] h3,
html[data-ia-theme="dark"] h4,
html[data-ia-theme="dark"] h5,
html[data-ia-theme="dark"] h6,
html[data-ia-theme="dark"] .elementor-heading-title,
html[data-ia-theme="dark"] .entry-title,
html[data-ia-theme="dark"] .post-title,
html[data-ia-theme="dark"] .widget-title,
html[data-ia-theme="dark"] .card-title,
html[data-ia-theme="dark"] .accordion-button,
html[data-ia-theme="dark"] .faq-title,
html[data-ia-theme="dark"] label:not(.btn):not(.button) {
    color: #f1f4f8 !important;
}
html[data-ia-theme="dark"] p,
html[data-ia-theme="dark"] li,
html[data-ia-theme="dark"] dt,
html[data-ia-theme="dark"] dd,
html[data-ia-theme="dark"] small,
html[data-ia-theme="dark"] .elementor-widget-text-editor,
html[data-ia-theme="dark"] .elementor-widget-text-editor p,
html[data-ia-theme="dark"] .entry-content,
html[data-ia-theme="dark"] .entry-content p,
html[data-ia-theme="dark"] .card-text,
html[data-ia-theme="dark"] .description,
html[data-ia-theme="dark"] .text-muted {
    color: #d9dee8 !important;
}
html[data-ia-theme="dark"] a:not(.btn):not(.button):not(.ia-match-interest):not(.ia-match-accept):not(.ia-safety-primary):not(.ia-theme-toggle) {
    color: #f1f4f8;
}
html[data-ia-theme="dark"] .bg-white,
html[data-ia-theme="dark"] .bg-light,
html[data-ia-theme="dark"] .bg-gray-100,
html[data-ia-theme="dark"] .bg-grey,
html[data-ia-theme="dark"] .white-box,
html[data-ia-theme="dark"] .white-boxed,
html[data-ia-theme="dark"] .content-box,
html[data-ia-theme="dark"] .widget,
html[data-ia-theme="dark"] .sidebar .widget,
html[data-ia-theme="dark"] .list-group-item,
html[data-ia-theme="dark"] .accordion-button,
html[data-ia-theme="dark"] .accordion-collapse,
html[data-ia-theme="dark"] .accordion-body,
html[data-ia-theme="dark"] .dropdown-menu,
html[data-ia-theme="dark"] .dropdown-item,
html[data-ia-theme="dark"] .modal-content,
html[data-ia-theme="dark"] .offcanvas,
html[data-ia-theme="dark"] .woocommerce-MyAccount-content,
html[data-ia-theme="dark"] .woocommerce-MyAccount-navigation,
html[data-ia-theme="dark"] .ppt-account-box,
html[data-ia-theme="dark"] .ppt-account-box-inner {
    background-color: #202633 !important;
    color: #f1f4f8 !important;
    border-color: #414b5d !important;
}
html[data-ia-theme="dark"] input:not([type="submit"]):not([type="button"]),
html[data-ia-theme="dark"] select,
html[data-ia-theme="dark"] textarea {
    background-color: #202633 !important;
    color: #f1f4f8 !important;
    border-color: #526078 !important;
}
html[data-ia-theme="dark"] table,
html[data-ia-theme="dark"] thead,
html[data-ia-theme="dark"] tbody,
html[data-ia-theme="dark"] tr,
html[data-ia-theme="dark"] th,
html[data-ia-theme="dark"] td {
    color: #f1f4f8 !important;
    border-color: #414b5d !important;
}
/* Keep intentional brand/action colours and media intact. */
html[data-ia-theme="dark"] .btn,
html[data-ia-theme="dark"] .button,
html[data-ia-theme="dark"] [class*="btn-"],
html[data-ia-theme="dark"] .ia-match-interest,
html[data-ia-theme="dark"] .ia-match-accept,
html[data-ia-theme="dark"] .ia-safety-primary {
    color: inherit;
}


/* v1.5.3: true-black adaptive dark mode.
 * User requirement: existing white/light site surfaces become black and existing dark text becomes white.
 * Presentation-only; does not alter IA/PremiumPress behaviour or data.
 */
html[data-ia-theme="dark"] .ia-dark-surface,
html[data-ia-theme="dark"] .ia-dark-surface-soft,
html[data-ia-theme="dark"] .bg-white,
html[data-ia-theme="dark"] .bg-light,
html[data-ia-theme="dark"] .bg-body,
html[data-ia-theme="dark"] .bg-body-tertiary,
html[data-ia-theme="dark"] .card,
html[data-ia-theme="dark"] .card-body,
html[data-ia-theme="dark"] .list-group-item,
html[data-ia-theme="dark"] .accordion-item,
html[data-ia-theme="dark"] .accordion-body,
html[data-ia-theme="dark"] .dropdown-menu,
html[data-ia-theme="dark"] .offcanvas,
html[data-ia-theme="dark"] .modal-content,
html[data-ia-theme="dark"] .elementor-popup-modal .dialog-widget-content {
    background-color: #000 !important;
    color: #fff !important;
}

html[data-ia-theme="dark"] .ia-dark-text,
html[data-ia-theme="dark"] .text-dark,
html[data-ia-theme="dark"] .text-black,
html[data-ia-theme="dark"] .text-body,
html[data-ia-theme="dark"] .elementor-heading-title,
html[data-ia-theme="dark"] .entry-title,
html[data-ia-theme="dark"] .post-title,
html[data-ia-theme="dark"] .widget-title,
html[data-ia-theme="dark"] .accordion-button {
    color: #fff !important;
}

/* Footer/theme areas often use explicit light column backgrounds. Keep the footer visually black in dark mode. */
html[data-ia-theme="dark"] footer .ia-dark-surface,
html[data-ia-theme="dark"] footer .ia-dark-surface-soft,
html[data-ia-theme="dark"] footer .bg-white,
html[data-ia-theme="dark"] footer .bg-light,
html[data-ia-theme="dark"] footer .elementor-column,
html[data-ia-theme="dark"] footer .elementor-widget-wrap,
html[data-ia-theme="dark"] footer .elementor-element-populated {
    background-color: #000 !important;
}
html[data-ia-theme="dark"] footer,
html[data-ia-theme="dark"] footer a,
html[data-ia-theme="dark"] footer p,
html[data-ia-theme="dark"] footer li,
html[data-ia-theme="dark"] footer span {
    color: #fff !important;
}

/* Inputs remain readable rather than being forced pure black if the theme already supplies a dark control surface. */
html[data-ia-theme="dark"] input:not([type="button"]):not([type="submit"]),
html[data-ia-theme="dark"] select,
html[data-ia-theme="dark"] textarea {
    color: #fff !important;
}
/* v1.5.5 Private Match response feedback */
.ia-match-inline-message:empty{display:none}.ia-match-inline-message{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#eef8f2;color:#166534;font-size:14px}.ia-match-inline-message.is-error{background:#fff1f2;color:#b42318}.ia-match-redirect-note{margin-top:10px!important;font-weight:600;color:#475467!important}
html[data-ia-theme="dark"] .ia-match-inline-message{background:#163326;color:#b7f7d0}html[data-ia-theme="dark"] .ia-match-inline-message.is-error{background:#3b171b;color:#fecdd3}html[data-ia-theme="dark"] .ia-match-redirect-note{color:#d0d5dd!important}

/* v1.5.7 - non-blocking Private Match chat notice */
.ia-match-chat-notice{margin:8px 0;padding:8px 10px;border-radius:6px;font-size:12px;line-height:1.4;background:rgba(236,0,105,.08);color:inherit;}
