/*
 * Neuralia — administration and client area. IHOST's look: indigo/violet gradient, the tokens of every IHOST
 * screen. Day mode by default, whatever the visitor's system or the WHMCS theme says; night only with the button of the
 * header (assets/js/theme.js sets data-ihrm-theme on .ihrm; the owner, 2026-10-31). The whole width of the page. Every rule lives under .ihrm, so nothing
 * reaches the WHMCS theme. No script, no image, no external font.
 */
.ihrm {
    color-scheme: light;
    --bg: #f4f5f7; --col: #eceef2; --card: #ffffff; --text: #1f2430; --muted: #6b7280; --line: #dfe3ea;
    --accent: #4f46e5; --accent-soft: #eef0ff; --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
    --ok: #12734a; --ok-bg: #e4f5ec; --warn: #8a5300; --warn-bg: #fff3d6; --bad: #a82828; --bad-bg: #fde8e8;
    --radius: 12px; --ring: 0 0 0 3px rgba(99, 102, 241, .35); --shadow: 0 1px 2px rgba(31, 36, 48, .06);
    box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 16px; border-radius: var(--radius);
    background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; text-align: left;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ihrm *, .ihrm *::before, .ihrm *::after { box-sizing: inherit; }
.ihrm p { margin: 0 0 .75em; }
.ihrm a { color: var(--accent); text-underline-offset: 2px; }
.ihrm a:focus-visible, .ihrm button:focus-visible, .ihrm input:focus-visible, .ihrm select:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.ihrm h2, .ihrm h3, .ihrm h4 { color: var(--text); font-weight: 650; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
.ihrm h2 { font-size: 1.5em; }
.ihrm h3 { font-size: 1.12em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ihrm h4 { font-size: 1em; }
.ihrm-head {
    display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 14px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.ihrm-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.ihrm-brand { margin: 0 0 2px; font-size: .76em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ihrm-sub { margin: 4px 0 0; color: var(--muted); }
.ihrm-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ihrm-nav a { padding: 7px 14px; border-radius: 999px; background: var(--col); color: var(--text); text-decoration: none; font-weight: 600; }
.ihrm-nav a.is-current { background: var(--grad); color: #fff; }
.ihrm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px;
    box-shadow: var(--shadow); min-width: 0; }
.ihrm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.ihrm-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 0; }
.ihrm-stats dt { color: var(--muted); font-size: .85em; font-weight: 600; }
.ihrm-stats dd { margin: 2px 0 0; font-size: 1.3em; font-weight: 650; overflow-wrap: anywhere; }
.ihrm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8em; font-weight: 650;
    background: var(--col); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ihrm-badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.ihrm-badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.ihrm-badge-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.ihrm-alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.ihrm-alert-ok { border-left-color: var(--ok); background: var(--ok-bg); }
.ihrm-alert-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.ihrm-alert-bad { border-left-color: var(--bad); background: var(--bad-bg); }
.ihrm-alert-urgent { border: 2px solid var(--bad); border-left-width: 6px; color: var(--bad); font-size: 1.05em; }
.ihrm-muted { color: var(--muted); font-size: .92em; }
.ihrm-button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
    background: var(--grad); color: #fff; font: inherit; font-weight: 650; text-decoration: none; transition: transform .15s ease; }
.ihrm-button:hover { transform: translateY(-1px); }
.ihrm a.ihrm-button, .ihrm button.ihrm-button { color: #fff; }
.ihrm .ihrm-button.is-quiet, .ihrm a.ihrm-button.is-quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.ihrm-button.is-danger { background: var(--bad); }
.ihrm-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ihrm-form { display: grid; gap: 8px; max-width: 560px; }
.ihrm-form label { font-weight: 600; }
.ihrm input, .ihrm select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; max-width: 100%; }
.ihrm-price { width: 8.5em; }
.ihrm-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ihrm-features { margin: 0; padding-left: 18px; }
.ihrm-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.ihrm-table { width: 100%; border-collapse: collapse; }
.ihrm-table th, .ihrm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.ihrm-table th { color: var(--muted); font-size: .85em; font-weight: 650; background: var(--col); }
.ihrm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ihrm-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--card); display: grid; gap: 8px;
    align-content: start; transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.ihrm-plan:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79, 70, 229, .12); }
.ihrm-price-tag { font-size: 1.5em; font-weight: 700; margin: 0; }
.ihrm-price-tag span { font-size: .55em; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
    .ihrm { padding: 10px; }
    .ihrm-table thead { display: none; }
    .ihrm-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
    .ihrm-table td { display: flex; gap: 10px; justify-content: space-between; border: 0; padding: 4px 6px; }
    .ihrm-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .ihrm-button, .ihrm-plan { transition: none; } }
/* Night, chosen with the button of the header (1.0.5): the hidden checkbox at the start of the block, ticked by the
   header's <label>; works without the script, which only remembers the choice. */
.ihrm .ihrm-night-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ihrm:has(> .ihrm-night-toggle:checked), .ihrm[data-ihrm-theme="dark"] {
    color-scheme: dark;
    --bg: #0f131a; --col: #1a202b; --card: #1f2633; --text: #e5e8ee; --muted: #97a1b2; --line: #2e3646;
    --accent: #8b85ff; --accent-soft: #262c47; --ok: #6fd3a2; --ok-bg: #173a2a; --warn: #f3c46b; --warn-bg: #3d3014;
    --bad: #ff9b9b; --bad-bg: #3f1d1d; --shadow: none;
}
.ihrm-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ihrm .ihrm-theme { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-size: 18px; line-height: 1;
    cursor: pointer; user-select: none; }
.ihrm .ihrm-theme:hover { border-color: var(--accent); }
.ihrm .ihrm-theme:focus-visible { outline: none; box-shadow: var(--ring); }
.ihrm .ihrm-theme-day { display: none; }
.ihrm:has(> .ihrm-night-toggle:checked) .ihrm-theme-day, .ihrm[data-ihrm-theme="dark"] .ihrm-theme-day { display: inline; }
.ihrm:has(> .ihrm-night-toggle:checked) .ihrm-theme-night, .ihrm[data-ihrm-theme="dark"] .ihrm-theme-night { display: none; }
