/* Merci MyLens — theme tokens (gold, as on merciglobal.com/ai-image-search) for day and night. Bootstrap 5.3 colour modes via data-bs-theme. */
:root, [data-bs-theme="light"] {
  --ml-brand: #7A5C0E; --ml-brand-hover: #5f470a; --ml-brand-soft: #f7f0dc; --ml-on-brand: #ffffff;
  --ml-gold: #C9A84C; --ml-gold-hover: #b8963a; --ml-on-gold: #0d0d0d;
  --ml-bg: #f4f5f7; --ml-surface: #ffffff; --ml-surface-2: #f8f9fb; --ml-border: #e3e6eb;
  --ml-foot-bg: #e9ecf2; --ml-foot-line: #d6dbe4;
  --ml-ink: #1d2330; --ml-muted: #5b6474; --ml-side: #1d2330; --ml-side-ink: #c9cfda; --ml-side-active: #ffffff;
  --ml-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--ml-bg); --bs-body-color: var(--ml-ink);
  --bs-primary: var(--ml-brand); --bs-primary-rgb: 122,92,14; --bs-link-color: var(--ml-brand); --bs-link-hover-color: var(--ml-brand-hover);
  --bs-link-color-rgb: 122,92,14; --bs-border-color: var(--ml-border);
}
[data-bs-theme="dark"] {
  --ml-brand: #D4B45E; --ml-brand-hover: #e2c77c; --ml-brand-soft: #2b2412; --ml-on-brand: #0d0d0d;
  --ml-gold: #D4B45E; --ml-gold-hover: #e2c77c; --ml-on-gold: #0d0d0d;
  --ml-bg: #0f1218; --ml-surface: #171b23; --ml-surface-2: #1d222c; --ml-border: #2a303c;
  --ml-foot-bg: #0a0d12; --ml-foot-line: #232a36;
  --ml-ink: #e7eaf0; --ml-muted: #a3abb9; --ml-side: #0b0e13; --ml-side-ink: #a9b1bf; --ml-side-active: #ffffff;
  --ml-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 22px rgba(0,0,0,.35);
  --bs-body-bg: var(--ml-bg); --bs-body-color: var(--ml-ink); --bs-primary-rgb: 212,180,94;
  --bs-link-color: var(--ml-brand); --bs-link-hover-color: var(--ml-brand-hover); --bs-link-color-rgb: 212,180,94;
  --bs-border-color: var(--ml-border); --bs-secondary-color: var(--ml-muted);
}
body { background: var(--ml-bg); color: var(--ml-ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--ml-brand); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.text-muted, .form-text, .text-body-secondary { color: var(--ml-muted) !important; }

.btn-primary { --bs-btn-bg: var(--ml-gold); --bs-btn-border-color: var(--ml-gold); --bs-btn-color: var(--ml-on-gold);
  --bs-btn-hover-bg: var(--ml-gold-hover); --bs-btn-hover-border-color: var(--ml-gold-hover); --bs-btn-hover-color: var(--ml-on-gold);
  --bs-btn-active-bg: var(--ml-gold-hover); --bs-btn-active-border-color: var(--ml-gold-hover); --bs-btn-active-color: var(--ml-on-gold);
  --bs-btn-disabled-bg: var(--ml-gold); --bs-btn-disabled-border-color: var(--ml-gold); --bs-btn-disabled-color: var(--ml-on-gold);
  font-weight: 600; }
.btn { min-height: 44px; border-radius: 10px; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--ml-ink); --bs-btn-border-color: #5a6375; --bs-btn-hover-bg: var(--ml-surface-2); --bs-btn-hover-color: var(--ml-ink); --bs-btn-hover-border-color: var(--ml-muted); --bs-btn-disabled-color: var(--ml-muted); }
.btn-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--ml-ink); border: 1px solid var(--ml-border); background: var(--ml-surface); padding: 0; }
.btn-icon:hover { background: var(--ml-surface-2); color: var(--ml-ink); }
[data-bs-theme="light"] .theme-light-hide, [data-bs-theme="dark"] .theme-dark-hide { display: none; }
.form-control, .form-select { min-height: 46px; font-size: 16px; border-radius: 10px; background-color: var(--ml-surface); border-color: var(--ml-border); }
.form-control:focus, .form-select:focus { border-color: var(--ml-brand); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18); }
.form-check-input:checked { background-color: var(--ml-brand); border-color: var(--ml-brand); }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .15em; }
.form-label { font-weight: 600; font-size: 14px; }
.card { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: 14px; box-shadow: var(--ml-shadow); }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ml-gold); color: #0d0d0d; display: grid; place-items: center; font-size: 18px; }
[data-bs-theme="dark"] .brand-mark { color: #0d0d0d; }
.brand-text { font-size: 18px; font-weight: 500; white-space: nowrap; }
.brand-text b { font-weight: 800; color: var(--ml-brand); }
.brand-text small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-left: 4px; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; padding: 16px; }
.auth-top { display: flex; align-items: center; gap: 12px; color: var(--ml-ink); }
.auth-card { width: 100%; max-width: 460px; margin: 28px auto; background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: 16px; box-shadow: var(--ml-shadow); padding: 28px 22px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-card .lead { font-size: 15px; color: var(--ml-muted); margin-bottom: 1.4rem; }
@media (min-width: 992px) {
  .auth-wrap { grid-template-columns: 420px minmax(0, 1fr); }
  .auth-side { display: flex; flex-direction: column; justify-content: space-between; background: var(--ml-side); color: #e7eaf0; padding: 36px 40px; }
  .auth-side .brand-text { color: #fff; }
  .auth-side .brand-text b { color: #ff7a82; }
  .auth-pitch h2 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 1.4rem; color: #fff; }
  .auth-pitch li { margin-bottom: .8rem; color: #c9cfda; display: flex; gap: 10px; }
  .auth-pitch i { color: #ff7a82; }
  .auth-main { padding: 22px 32px; }
  .auth-card { padding: 36px 36px; }
}
.otp-input { font-size: 28px !important; letter-spacing: 12px; text-align: center; font-weight: 700; }

/* Panel shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex-shrink: 0; background: var(--ml-side); color: var(--ml-side-ink); }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar.offcanvas-lg { --bs-offcanvas-width: 270px; --bs-offcanvas-bg: var(--ml-side); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; }
.sidebar-head .brand-text { color: #fff; }
.sidebar-head .brand-text b { color: #ff7a82; }
.sidebar-head .btn-close { filter: invert(1); }
.sidebar .nav { padding: 6px 10px 24px; gap: 2px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ml-side-ink); border-radius: 10px; padding: 8px 12px; font-weight: 500; }
.sidebar .nav-link i { font-size: 18px; width: 20px; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,122,130,.16); color: var(--ml-side-active); box-shadow: inset 3px 0 0 #ff7a82; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ml-surface); border-bottom: 1px solid var(--ml-border); }
.topbar-title { font-size: 1.1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topsearch { position: relative; flex: 1; max-width: 520px; min-width: 0; }
.topsearch i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ml-muted); }
.topsearch .form-control { padding-left: 40px; background: var(--ml-surface-2); }
.btn-user { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ml-border); background: var(--ml-surface); color: var(--ml-ink); }
.btn-user:hover, .btn-user.show { background: var(--ml-surface-2); color: var(--ml-ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ml-brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; }
[data-bs-theme="dark"] .avatar { color: #0d0d0d; }
.page { padding: 20px 16px 40px; width: 100%; max-width: 1280px; }
@media (min-width: 768px) { .page { padding: 28px 28px 48px; } .topbar { padding: 10px 28px; } }
.page-head h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.page-head p { color: var(--ml-muted); }

/* Dashboard tiles */
.stat { padding: 18px 20px; height: 100%; }
.stat .label { font-size: 13px; color: var(--ml-muted); font-weight: 500; }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; line-height: 1.2; overflow-wrap: anywhere; }
.stat .sub { font-size: 13px; color: var(--ml-muted); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ml-brand-soft); color: var(--ml-brand); }
.empty { text-align: center; padding: 40px 16px; color: var(--ml-muted); }
.empty i { font-size: 40px; display: block; margin-bottom: 10px; opacity: .6; }

/* Tables become cards on phones */
.table { --bs-table-bg: transparent; margin: 0; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ml-muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--ml-border); padding: 10px 4px; }
  .table-stack td { display: block; position: relative; border: 0; padding: 5px 8px 5px 38%; min-height: 28px; overflow-wrap: anywhere; text-align: left !important; }
  .table-stack td::before { content: attr(data-label); position: absolute; left: 8px; top: 6px; width: calc(38% - 16px); color: var(--ml-muted); font-size: 12px; font-weight: 600; }
  .table-stack td[data-label=""] { padding-left: 8px; }
  .table-stack td .d-inline-flex, .table-stack td form.d-inline { margin-top: 2px; }
  .table-stack tr.collapse:not(.show) { display: none; }
}

/* Modal dialogs (BL.alert / BL.confirm) */
.bl-modal .modal-content { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: 16px; box-shadow: var(--ml-shadow); }
.bl-modal .modal-header, .bl-modal .modal-footer { border: 0; }
.bl-modal .dlg-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.bl-modal .dlg-info .dlg-icon { background: rgba(13,110,253,.12); color: #3d8bfd; }
.bl-modal .dlg-success .dlg-icon { background: rgba(25,135,84,.14); color: #2fb27c; }
.bl-modal .dlg-danger .dlg-icon, .bl-modal .dlg-warning .dlg-icon { background: var(--ml-brand-soft); color: var(--ml-brand); }

/* Busy state */
.is-busy { pointer-events: none; cursor: progress; opacity: .85; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .16em; }

/* Bootstrap's offcanvas-lg forces a transparent background on desktop; the sidebar keeps its own colour in both themes. */
@media (min-width: 992px) { .sidebar.offcanvas-lg { background-color: var(--ml-side) !important; } }
.sidebar-head .brand-text small { display: block; margin: 2px 0 0; font-size: 10px; color: #ff9aa0; opacity: 1; }
.sidebar-head .brand-text { line-height: 1.15; }

/* "or" divider between single sign-on and the local form */
.or-rule { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ml-muted); font-size: 13px; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--ml-border); }

/* Steps, drop zone, result cards */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; counter-reset: st; }
.steps li { counter-increment: st; font-size: 13px; color: var(--ml-muted); display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--ml-surface-2); border: 1px solid var(--ml-border); }
.steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--ml-border); color: var(--ml-ink); }
.steps li.on { color: var(--ml-ink); font-weight: 600; }
.steps li.on::before { background: var(--ml-brand); color: var(--ml-on-brand); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; border: 2px dashed var(--ml-border); border-radius: 14px; background: var(--ml-surface-2); cursor: pointer; text-align: center; padding: 18px; }
.dropzone i { font-size: 34px; color: var(--ml-brand); }
.dropzone span { font-weight: 600; overflow-wrap: anywhere; }
.dropzone small { color: var(--ml-muted); }
.dropzone.over, .dropzone:focus-within { border-color: var(--ml-brand); }
.result { border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--ml-border); }
.result i { font-size: 28px; line-height: 1; }
.result-clear { background: rgba(31,157,99,.10); } .result-clear i { color: #1f9d63; }
.result-possible_match { background: rgba(196,127,0,.12); } .result-possible_match i { color: #b57400; }
.result-match { background: var(--ml-brand-soft); } .result-match i { color: var(--ml-brand); }
.result-caution { background: rgba(230,160,0,.14); border-color: rgba(230,160,0,.45); } .result-caution i { color: #a86a00; }
.result-match.result-blacklisted { border-color: rgba(200,40,40,.45); }
.et-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.et-badge i { font-size: 11px; }
.et-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 575.98px) { .et-choice { grid-template-columns: 1fr; } }
.et-opt { display: flex; gap: 12px; align-items: flex-start; min-height: 64px; padding: 12px 14px; border: 2px solid var(--ml-border); border-radius: 12px; cursor: pointer; background: var(--bs-body-bg); transition: border-color .15s, background .15s; }
.et-opt i { font-size: 22px; line-height: 1.1; color: var(--ml-muted); }
.et-opt b { display: block; } .et-opt small { display: block; color: var(--ml-muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.btn-check:focus-visible + .et-opt { outline: 3px solid var(--ml-brand); outline-offset: 2px; }
.btn-check:checked + .et-opt-blacklisted { border-color: #c62828; background: rgba(198,40,40,.08); } .btn-check:checked + .et-opt-blacklisted i { color: #c62828; }
.btn-check:checked + .et-opt-caution { border-color: #d99a00; background: rgba(245,179,1,.12); } .btn-check:checked + .et-opt-caution i { color: #a86a00; }
[data-bs-theme="dark"] .btn-check:checked + .et-opt-blacklisted { border-color: #e05252; background: rgba(224,82,82,.14); } [data-bs-theme="dark"] .btn-check:checked + .et-opt-blacklisted i { color: #ff8a8a; }
[data-bs-theme="dark"] .btn-check:checked + .et-opt-caution { border-color: #f7c548; background: rgba(247,197,72,.12); } [data-bs-theme="dark"] .btn-check:checked + .et-opt-caution i { color: #f7c548; }
.et-blacklisted { background: #c62828; color: #fff; }
.et-caution { background: #f5b301; color: #0d0d0d; }
[data-bs-theme="dark"] .et-blacklisted { background: #e05252; color: #0d0d0d; }
[data-bs-theme="dark"] .et-caution { background: #f7c548; color: #0d0d0d; }
[data-bs-theme="dark"] .result-caution i { color: #f7c548; }
[data-bs-theme="dark"] .result-clear i { color: #5fd39b; } [data-bs-theme="dark"] .result-possible_match i { color: #f0b65a; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--ml-muted); font-weight: 500; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.code-block { background: var(--ml-surface-2); border: 1px solid var(--ml-border); border-radius: 10px; padding: 12px 14px; font-size: 13px; overflow-x: auto; white-space: pre; color: var(--ml-ink); }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; background: var(--ml-surface-2); border: 1px dashed var(--ml-brand); border-radius: 10px; padding: 10px 12px; }
.chart { width: 100%; }
.text-success { color: #1a8a57 !important; } [data-bs-theme="dark"] .text-success { color: #5fd39b !important; }
.text-danger { color: var(--ml-brand) !important; }
.badge.text-bg-warning { color: #0d0d0d !important; }

/* Public site */
.pub-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.pub-top { position: sticky; top: 0; z-index: 1020; background: var(--ml-surface); border-bottom: 1px solid var(--ml-border); padding: 10px 0; }
.pub-top .brand-text { color: var(--ml-ink); }
.pub-nav { gap: 4px; margin-right: 8px; }
.pub-nav a, .pub-mnav a { color: var(--ml-ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.pub-nav a:hover, .pub-nav a.active { background: var(--ml-surface-2); color: var(--ml-brand); }
.pub-mnav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 6px; }
.pub-main { min-height: 70vh; }
.pub-foot { position: relative; border-top: 1px solid var(--ml-foot-line); padding: 44px 0 0; font-size: 14px; color: var(--ml-muted); background: var(--ml-foot-bg); }
.pub-foot::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--ml-brand) 30%, var(--ml-brand) 70%, transparent); opacity: .55; }
.pub-foot a:not(.btn) { color: var(--ml-muted); text-decoration: none; }
.pub-foot a:not(.btn):hover, .pub-foot a:not(.btn):focus-visible { color: var(--ml-brand); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 32px 28px; }
.pf-brand .brand { font-size: 1.1rem; }
.pf-tag { margin: 14px 0 18px; max-width: 320px; line-height: 1.55; }
.pf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--ml-ink); margin: 0 0 4px; }
.pf-col a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.pf-col a .bi-box-arrow-up-right { font-size: 11px; }
.pf-contact a, .pf-contact address { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-style: normal; overflow-wrap: anywhere; line-height: 1.5; }
.pf-contact i { color: var(--ml-brand); margin-top: 2px; }
.pf-contact b { color: var(--ml-ink); font-weight: 600; }
.pf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding: 18px 0 22px; border-top: 1px solid var(--ml-foot-line); font-size: 13px; }
.pub-foot .pf-bottom a { color: var(--ml-ink); font-weight: 600; }
.pf-note { display: inline-flex; gap: 6px; align-items: flex-start; }
@media (max-width: 991.98px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-brand, .pf-contact { grid-column: 1 / -1; } }
@media (max-width: 575.98px) {
  .pub-foot { padding-top: 32px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .pf-col a { min-height: 32px; }
  .pf-bottom { flex-direction: column; }
}
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; }
.hero .lead { font-size: 1.15rem; color: var(--ml-muted); max-width: 640px; }
.hero-demo { border-radius: 18px; border: 1px solid var(--ml-border); background: var(--ml-surface); box-shadow: var(--ml-shadow); padding: 18px; }
.section { padding: 44px 0; }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.feature i { font-size: 26px; color: var(--ml-brand); }
.price-card { padding: 26px 24px; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--ml-brand); }
.price-card .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.price-card ul { padding-left: 0; list-style: none; margin: 18px 0; }
.price-card li { display: flex; gap: 8px; margin-bottom: 8px; }
.price-card li i { color: #1f9d63; } [data-bs-theme="dark"] .price-card li i { color: #5fd39b; }
.price-card li.no { color: var(--ml-muted); } .price-card li.no i { color: var(--ml-muted); }

/* Public plan comparison: price and free-trial button inside the table */
.pricing-table { overflow: hidden; }
#pricing, #testimonials { scroll-margin-top: 64px; }

/* Customer logos and testimonials */
.brands-strip { padding: 28px 0 32px; border-top: 1px solid var(--ml-border); border-bottom: 1px solid var(--ml-border); background: var(--ml-surface-2); }
.brands-h { text-align: center; color: var(--ml-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.brand-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 140px; text-align: center; }
.brand-item img { max-width: 120px; max-height: 48px; object-fit: contain; }
.brand-mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ml-surface); border: 1px solid var(--ml-border); color: var(--ml-ink); font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.brand-item span { font-size: 12.5px; font-weight: 600; color: var(--ml-ink); line-height: 1.25; overflow-wrap: anywhere; }
.tcard { display: flex; flex-direction: column; }
.tcard blockquote { font-size: 15.5px; line-height: 1.55; color: var(--ml-ink); overflow-wrap: anywhere; }
.tcard-logo { width: auto; max-width: 96px; height: 44px; min-width: 44px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--ml-border); padding: 3px; flex: none; }
.stars { color: #c98a00; letter-spacing: 2px; } [data-bs-theme="dark"] .stars { color: #f5c04a; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: var(--ml-border); cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #c98a00; }
[data-bs-theme="dark"] .star-input label:hover, [data-bs-theme="dark"] .star-input label:hover ~ label, [data-bs-theme="dark"] .star-input input:checked ~ label { color: #f5c04a; }
.star-input input:focus-visible + label { outline: 2px solid var(--ml-brand); outline-offset: 2px; }
.logo-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--ml-border); border-radius: 10px; background: #fff; }
.logo-preview img { max-width: 160px; max-height: 64px; object-fit: contain; }
.logo-preview span { color: #1d2330; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brand-tile { border: 1px solid var(--ml-border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-tile img { max-width: 140px; max-height: 48px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
@media (max-width: 575.98px) { .brand-item { width: calc(50% - 14px); } }
html { scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.pricing-table .table { table-layout: fixed; min-width: 760px; }
.pricing-table th, .pricing-table td { padding: 14px 16px; border-color: var(--ml-border); vertical-align: middle; }
.pricing-table thead th { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ml-ink); font-weight: 700; white-space: normal; padding-top: 18px; }
.pricing-table thead th:first-child { width: 24%; }
.pricing-table tbody th { font-weight: 600; font-size: 14px; color: var(--ml-ink); }
.pricing-table .pt-feat { background: var(--ml-brand-soft); }
.pricing-table thead th.pt-feat { box-shadow: inset 0 3px 0 var(--ml-brand); }
.pricing-table .pt-amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.pricing-table .pt-per { color: var(--ml-muted); font-size: 14px; }
.pricing-table .pt-price small, .pricing-table .pt-sub { display: block; color: var(--ml-muted); font-size: 12.5px; margin-top: 4px; }
.pricing-table .pt-cta td, .pricing-table .pt-cta th { border-bottom-width: 2px; padding-top: 4px; padding-bottom: 18px; }
.pricing-table .pt-cta .btn { white-space: normal; font-size: 14px; line-height: 1.25; min-height: 44px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; text-align: center; overflow-wrap: anywhere; }
.pricing-table .pt-yes { color: #1f8a57; font-size: 1.15rem; } [data-bs-theme="dark"] .pricing-table .pt-yes { color: #5fd39b; }
.pricing-table .pt-no { color: var(--ml-muted); }
.pricing-table .pt-cta .btn-outline-secondary { --bs-btn-color: var(--ml-ink); --bs-btn-border-color: #9aa3b2; --bs-btn-hover-bg: var(--ml-surface-2); --bs-btn-hover-color: var(--ml-ink); --bs-btn-hover-border-color: var(--ml-ink); font-weight: 600; }
@media (max-width: 991.98px) {
  /* Five plans do not fit side by side below 992px: the comparison stacks into one card per feature (tablets too). */
  .pricing-table thead { display: none; }
  .pricing-table tr { display: block; border-bottom: 1px solid var(--ml-border); padding: 10px 4px; }
  .pricing-table td { display: block; position: relative; border: 0; min-height: 28px; overflow-wrap: anywhere; text-align: left !important; }
  .pricing-table td::before { content: attr(data-label); position: absolute; left: 8px; width: calc(38% - 16px); color: var(--ml-muted); font-size: 12px; font-weight: 600; }
  .pricing-table .pt-cta .btn { max-width: 260px; }
  .pricing-table .table { min-width: 0; table-layout: auto; }
  .pricing-table tbody th { display: block; border: 0; padding: 4px 8px 6px; font-size: 15px; }
  .pricing-table td { padding: 6px 8px 6px 38%; }
  .pricing-table td::before { top: 9px; }
  .pricing-table .pt-feat { border-radius: 8px; }
  .pricing-table .pt-amount { font-size: 1.3rem; }
  .pricing-table .pt-cta td, .pricing-table .pt-cta th { padding-bottom: 6px; padding-top: 6px; }
  .pricing-table .pt-cta td::before { top: 18px; }
}
.doc h2 { font-size: 1.3rem; margin-top: 2rem; scroll-margin-top: 80px; } .doc h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.doc table { font-size: 14px; }
.prose { max-width: 760px; } .prose h2 { font-size: 1.2rem; margin-top: 1.6rem; } .prose li { margin-bottom: .4rem; }

/* Merci app launcher */
.applaunch-pop { min-width: 270px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 14px; border-color: var(--ml-border); background: var(--ml-surface); box-shadow: var(--ml-shadow); }
.applaunch-h { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); padding: 6px 10px 4px; }
.applaunch-it { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; min-height: 48px; white-space: normal; color: var(--ml-ink); }
.applaunch-it:hover, .applaunch-it:focus { background: var(--ml-surface-2); color: var(--ml-ink); }
.applaunch-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--ml-brand-soft); border: 1px solid var(--ml-border); }
.applaunch-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.applaunch-tx b { font-size: 13.5px; } .applaunch-tx small { font-size: 12px; color: var(--ml-muted); }
@media (max-width: 575.98px) { .topbar-right { gap: 4px; } .applaunch { position: static; } .applaunch-pop { left: 12px !important; right: 12px !important; } }
/* The sidebar colour runs the full page height, also below the fold on long pages. */
@media (min-width: 992px) { .shell { background: linear-gradient(to right, var(--ml-side) 252px, transparent 252px); } }
@media (max-width: 420px) { .pub-top .btn { padding-left: 10px; padding-right: 10px; } .pub-top .brand-text { font-size: 16px; } }
@media (max-width: 400px) { .pub-top .brand-merci { display: none; } .pub-top .d-flex { gap: 6px !important; } }

/* Sortable table headers (button = sorted in the page, link = sorted by the server) */
.th-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  text-transform: inherit; letter-spacing: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 4px; }
.th-sort i { font-size: 12px; opacity: .45; transition: opacity .15s; }
.th-sort:hover, .th-sort:focus-visible { color: var(--ml-ink); }
.th-sort:hover i { opacity: .8; }
.th-sort:focus-visible { outline: 2px solid var(--ml-brand); outline-offset: 2px; }
.th-sort.is-on { color: var(--ml-brand); }
.th-sort.is-on i { opacity: 1; }
.th-sort.disabled { pointer-events: none; opacity: .5; }
.th-sort .spinner-border { width: 12px; height: 12px; border-width: 2px; opacity: 1; }
.text-end > .th-sort { justify-content: flex-end; }
.tbl-sort-m { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.tbl-sort-m .form-select { width: auto; max-width: 100%; min-width: 0; flex: 1 1 auto; font-size: 16px; min-height: 44px; }
.tbl-sort-m label { white-space: nowrap; margin: 0; }

/* Row action icons (edit / delete): matched, outlined, quiet until hovered */
.act-group { display: inline-flex; align-items: center; gap: 6px; }
.act-group form.d-inline { display: inline-flex; margin: 0; }
.act-btn { --act: var(--ml-muted); width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border-radius: 9px;
  border: 1px solid var(--ml-border); background: var(--ml-surface); color: var(--act); line-height: 1; text-decoration: none; cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.act-btn i { font-size: 15px; line-height: 1; -webkit-font-smoothing: antialiased; }
.act-btn:hover, .act-btn:focus-visible { color: var(--act-on, var(--ml-ink)); background: var(--act-bg, var(--ml-surface-2)); border-color: var(--act-line, var(--ml-muted)); }
.act-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ml-brand-soft); }
.act-btn:active { transform: translateY(1px); }
.act-edit { --act-on: var(--ml-ink); }
.act-del { --act-on: var(--ml-brand); --act-bg: var(--ml-brand-soft); --act-line: var(--ml-brand); }
.act-btn.is-busy, .act-btn:disabled { opacity: .7; cursor: progress; }
.act-btn .spinner-border { width: 14px; height: 14px; border-width: 2px; margin: 0 !important; }
.act-btn .spinner-border + span { display: none; }
@media (max-width: 767.98px) { .act-btn { width: 44px; height: 44px; border-radius: 11px; } .act-btn i { font-size: 17px; } .act-group { gap: 10px; } }
.act-btn.is-busy > i.bi { display: none; }

/* Pager: range on the left, Previous · page · Next on the right */
.pg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px 16px; border-top: 1px solid var(--ml-border); }
.pg-info { font-size: 13px; color: var(--ml-muted); font-variant-numeric: tabular-nums; }
.pg-ctl { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--ml-border); border-radius: 12px; background: var(--ml-surface-2); }
.pg-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--ml-ink); text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s; }
.pg-btn i { font-size: 13px; line-height: 1; -webkit-text-stroke: .4px; }
a.pg-btn:hover { background: var(--ml-surface); color: var(--ml-brand); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
a.pg-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ml-brand-soft); color: var(--ml-brand); }
.pg-btn.is-off { color: var(--ml-muted); opacity: .45; cursor: not-allowed; }
.pg-btn.is-busy { pointer-events: none; }
.pg-btn.is-busy > i.bi { display: none; }
.pg-btn .spinner-border { width: 13px; height: 13px; border-width: 2px; margin: 0 !important; }
.pg-now { min-width: 52px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ml-ink); font-variant-numeric: tabular-nums; padding: 0 4px; }
.pg-of { font-weight: 500; color: var(--ml-muted); }
@media (max-width: 767.98px) {
  .pg { justify-content: center; }
  .pg-info { width: 100%; text-align: center; }
  .pg-btn { height: 44px; padding: 0 14px; }
}

/* Home: Merci Cloud ERP alerts (account / transaction saved with a reported party → admins on e-mail and Telegram) */
.erp-alerts, .assoc { --ea-tg: #229ed9; scroll-margin-top: 64px; }
.benefits { scroll-margin-top: 64px; }
[data-bs-theme="dark"] .erp-alerts, [data-bs-theme="dark"] .assoc { --ea-tg: #4fb8ea; }
.ea-list { list-style: none; padding: 0; margin: 20px 0 18px; display: grid; gap: 14px; }
.ea-list li { display: flex; gap: 14px; align-items: flex-start; }
.ea-list b { display: block; color: var(--ml-ink); }
.ea-list span:not(.ea-ic) { font-size: 14px; color: var(--ml-muted); }
.ea-ic { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--ml-brand-soft); color: var(--ml-brand); font-size: 18px; }
.ea-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-channels span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ml-border); background: var(--ml-surface); font-size: 13px; font-weight: 600; color: var(--ml-ink); }
.ea-channels .bi-telegram { color: var(--ea-tg); } .ea-channels .bi-envelope-fill, .ea-channels .bi-house-door-fill { color: var(--ml-brand); }
.ea-demo { position: relative; display: grid; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--ml-border); background: var(--ml-surface-2); box-shadow: var(--ml-shadow); }
.ea-tg, .ea-mail { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: 14px; padding: 14px 16px; }
.ea-tg-head, .ea-mail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ea-tg-head small, .ea-mail-head small { display: block; font-size: 12px; color: var(--ml-muted); font-weight: 400; }
.ea-tg-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ea-tg); color: #fff; font-size: 17px; }
.ea-tg-msg { border-left: 3px solid var(--ea-tg); padding: 2px 0 2px 12px; font-size: 14px; line-height: 1.55; color: var(--ml-ink); overflow-wrap: anywhere; }
.ea-tg-title { font-weight: 700; margin-bottom: 2px; }
.ea-tg-foot { margin-top: 6px; font-size: 12px; color: var(--ml-muted); }
.ea-mail-head > i { font-size: 18px; color: var(--ml-brand); }
.ea-mail-head b { font-size: 14px; }
.ea-mail-body { display: grid; gap: 6px; }
.ea-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; border-top: 1px dashed var(--ml-border); }
.ea-row span { color: var(--ml-muted); flex: 0 0 auto; }
.ea-row b { text-align: right; overflow-wrap: anywhere; }
.ea-bad { color: var(--ml-brand); }
@media (max-width: 575.98px) { .ea-demo { padding: 12px; } .ea-row { flex-direction: column; gap: 2px; } .ea-row b { text-align: left; } }

/* ---- Association member area (/member) ---- */
.mem-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.mem-top { position: sticky; top: 0; z-index: 1020; background: var(--ml-surface); border-bottom: 1px solid var(--ml-border); padding: 10px 0; }
.mem-main { padding: 24px 0 48px; }
.mem-main .page-head h1 { font-size: 1.5rem; }
.tg-state { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--ml-surface-2); border: 1px solid var(--ml-border); }
.tg-state.text-success { color: #1a7f45 !important; }
.tg-state.text-danger { color: var(--ml-brand) !important; }
[data-bs-theme="dark"] .tg-state.text-success { color: #5fd38d !important; }

/* ---- Home: benefits and associations ---- */
.benefit { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: 16px; padding: 22px; box-shadow: var(--ml-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.benefit:hover { transform: translateY(-2px); }
.benefit-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--ml-brand-soft); color: var(--ml-brand); font-size: 20px; }
.assoc { background: var(--ml-surface); }
.assoc-price { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ml-border); background: var(--ml-surface-2); }
.assoc-price small { display: block; color: var(--ml-muted); margin-top: 4px; }
.assoc-demo { border-radius: 18px; border: 1px solid var(--ml-border); background: var(--ml-bg); box-shadow: var(--ml-shadow); padding: 18px; }
.assoc-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ml-border); }
.assoc-step:last-of-type { border-bottom: 0; }
.assoc-n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ml-brand); color: var(--ml-on-brand); font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .benefit { transition: none; } .benefit:hover { transform: none; } }
.assoc-price .pt-amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.assoc-price .pt-per { color: var(--ml-muted); font-size: 14px; }

/* Consent notice (sign-in dialog, Add/Edit entry, Import, Search, Register) */
.consent { background: var(--ml-surface-2); border: 1px solid var(--ml-border); border-left: 4px solid var(--ml-brand); border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: var(--ml-ink); }
.consent-h { font-size: .95rem; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.consent p { margin-bottom: 6px; }
.consent ul { margin: 0 0 10px; padding-left: 1.15rem; color: var(--ml-muted); }
.consent li { margin-bottom: 3px; }
.consent .form-check { padding-top: 8px; border-top: 1px dashed var(--ml-border); min-height: 44px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding-left: 0; }
.consent .form-check-input { margin: 3px 0 0; flex: 0 0 auto; width: 1.25em; height: 1.25em; border: 2px solid var(--ml-muted); }
.consent .form-check-label { font-weight: 500; }
.consent .invalid-feedback { flex-basis: 100%; }
.consent .form-check-label { flex: 1 1 0; }
/* Keep absolutely placed bits of a wide table (visually-hidden labels, badges) inside its own scroll box, not the page */
.table-responsive { position: relative; }
/* Status / count badges: never below 12px */
.badge { font-size: 12px; }
