/*
 * Instabooster — customer area (/client, /order/{ref}, /client/corregir): `iba-*` components of
 * src/components/brands/ib/account. Plain CSS served as is, @layer ib, scoped to
 * html[data-brand="ib"]. Designed for the platform (not a copy of the PHP panel): IB pink
 * #e61c72 → #ff4d94, ink #1f1330, white cards on a soft canvas, Montserrat (body font of the
 * store). Inside `.ibr` the Tailwind preflight is undone (reset.css), so every component sets
 * its own margins, paddings, list styles and button looks.
 */
@layer ib {
  html[data-brand="ib"] .iba {
    --iba-pink: #e61c72;
    --iba-pink-2: #ff4d94;
    --iba-pink-dark: #b51358;
    --iba-grad: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);
    --iba-soft: #fdf2f8;
    --iba-soft-2: #fce7f1;
    --iba-ink: #1f1330;
    --iba-text: #4a4458;
    --iba-muted: #6b6580;
    --iba-faint: #9a93a8;
    --iba-line: #eee9f2;
    --iba-line-2: #e4dde9;
    --iba-bg: #f8f6fa;
    --iba-card: #fff;
    --iba-radius: 16px;
    --iba-shadow: 0 1px 2px rgba(31, 19, 48, 0.04), 0 10px 30px -18px rgba(31, 19, 48, 0.18);
    --iba-green: #137a48;
    --iba-green-bg: #e7f8ef;
    --iba-blue: #1e5bb8;
    --iba-blue-bg: #eaf1fd;
    --iba-amber: #92600e;
    --iba-amber-bg: #fef3c7;
    --iba-red: #b42318;
    --iba-red-bg: #fef0ef;
    background: var(--iba-bg);
    color: var(--iba-text);
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    padding: 108px 0 64px;
    min-height: 70vh;
  }
  html[data-brand="ib"] .iba *, html[data-brand="ib"] .iba *::before, html[data-brand="ib"] .iba *::after { box-sizing: border-box; }
  html[data-brand="ib"] .iba :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
  html[data-brand="ib"] .iba :where(ul, ol) { list-style: none; padding: 0; }
  /* :where() keeps this reset below every component rule (a primary <a> button keeps its white label) */
  html[data-brand="ib"] :where(.iba a) { color: inherit; text-decoration: none; }
  html[data-brand="ib"] .iba img { display: block; max-width: 100%; }
  html[data-brand="ib"] .iba svg { flex: none; }

  /* ── layout ─────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-layout,
  html[data-brand="ib"] .iba--auth > *,
  html[data-brand="ib"] .iba--narrow > * { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  html[data-brand="ib"] .iba--narrow > *, html[data-brand="ib"] .iba--auth > * { max-width: 1040px; }
  html[data-brand="ib"] .iba-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 28px; align-items: start; }
  /* single explicit track: a wide child (the scrollable status tabs) never widens the column */
  html[data-brand="ib"] .iba-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
  html[data-brand="ib"] .iba-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html[data-brand="ib"] .iba-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  html[data-brand="ib"] .iba-grid-2:empty { display: none; }

  /* sidebar */
  html[data-brand="ib"] .iba-side { position: sticky; top: 96px; display: grid; gap: 14px; background: var(--iba-card); border: 1px solid var(--iba-line); border-radius: 20px; padding: 18px 14px; box-shadow: var(--iba-shadow); }
  html[data-brand="ib"] .iba-me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--iba-grad); color: #fff; font-weight: 800; font-size: 1.05rem; }
  html[data-brand="ib"] .iba-avatar img { width: 100%; height: 100%; object-fit: cover; }
  html[data-brand="ib"] .iba-me-text { display: grid; min-width: 0; line-height: 1.3; }
  html[data-brand="ib"] .iba-me-name { font-weight: 800; color: var(--iba-ink); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-brand="ib"] .iba-me-mail { color: var(--iba-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-brand="ib"] .iba-nav { display: grid; gap: 2px; }
  html[data-brand="ib"] .iba-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--iba-text); font-weight: 600; font-size: 0.92rem; transition: background 0.15s ease, color 0.15s ease; }
  html[data-brand="ib"] .iba-nav-link:hover { background: var(--iba-bg); color: var(--iba-ink); }
  html[data-brand="ib"] .iba-nav-link.is-current { background: var(--iba-soft); color: var(--iba-pink); font-weight: 700; }
  html[data-brand="ib"] .iba-nav-link span:first-of-type { flex: 1; }
  html[data-brand="ib"] .iba-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--iba-bg); color: var(--iba-muted); font-size: 0.72rem; font-weight: 800; }
  html[data-brand="ib"] .is-current > .iba-count { background: var(--iba-pink); color: #fff; }
  html[data-brand="ib"] .iba-side-help { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-side-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iba-faint); padding: 4px 12px 6px; }
  html[data-brand="ib"] .iba-side-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 0.86rem; color: var(--iba-text); text-align: left; cursor: pointer; }
  html[data-brand="ib"] .iba-side-link:hover { background: var(--iba-bg); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-side form { margin: 0; }
  html[data-brand="ib"] .iba-signout { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--iba-line-2); background: #fff; color: var(--iba-muted); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
  html[data-brand="ib"] .iba-signout:hover { color: var(--iba-ink); border-color: #d9d2e6; }

  /* page heading */
  html[data-brand="ib"] .iba-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-head-text { flex: 1; min-width: 0; }
  html[data-brand="ib"] .iba-eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iba-pink); margin-bottom: 4px; }
  html[data-brand="ib"] .iba-h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--iba-ink); overflow-wrap: anywhere; }
  html[data-brand="ib"] .iba-sub { margin-top: 6px; color: var(--iba-muted); font-size: 0.93rem; }
  html[data-brand="ib"] .iba-head-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
  html[data-brand="ib"] .iba-mobile-only { display: none; }

  /* ── cards ──────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-card { grid-template-columns: minmax(0, 1fr); background: var(--iba-card); border: 1px solid var(--iba-line); border-radius: var(--iba-radius); box-shadow: var(--iba-shadow); padding: 20px 22px; display: grid; gap: 14px; min-width: 0; }
  html[data-brand="ib"] .iba-card--soft { background: var(--iba-soft); border-color: #f7c9e1; }
  html[data-brand="ib"] .iba-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  html[data-brand="ib"] .iba-card-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; color: var(--iba-ink); letter-spacing: -0.01em; }
  html[data-brand="ib"] .iba-card-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--iba-soft); color: var(--iba-pink); flex: none; }
  html[data-brand="ib"] .iba-card-action { flex: none; }
  html[data-brand="ib"] .iba-text { font-size: 0.9rem; color: var(--iba-text); }
  html[data-brand="ib"] .iba-text b { color: var(--iba-ink); }
  html[data-brand="ib"] .iba-muted { color: var(--iba-muted); }
  html[data-brand="ib"] .iba-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-center { justify-content: center; text-align: center; }
  html[data-brand="ib"] .iba-link { display: inline-flex; align-items: center; gap: 4px; color: var(--iba-pink); font-weight: 700; font-size: 0.86rem; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
  html[data-brand="ib"] .iba-link:hover { color: var(--iba-pink-dark); text-decoration: underline; }
  html[data-brand="ib"] .iba-break { overflow-wrap: anywhere; word-break: break-word; }

  /* ── buttons ────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--iba-line-2); background: #fff; color: var(--iba-ink); font-family: inherit; font-size: 0.9rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
  html[data-brand="ib"] .iba-btn:hover { border-color: var(--iba-pink); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-btn:focus-visible, html[data-brand="ib"] .iba a:focus-visible, html[data-brand="ib"] .iba button:focus-visible { outline: 3px solid rgba(230, 28, 114, 0.35); outline-offset: 2px; }
  html[data-brand="ib"] .iba-btn--primary { background: var(--iba-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(230, 28, 114, 0.7); }
  html[data-brand="ib"] .iba-btn--primary:hover { color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(230, 28, 114, 0.8); }
  /* primary = white label on the pink gradient, whatever link/visited/hover rule of the page */
  html[data-brand="ib"] .iba-btn--primary, html[data-brand="ib"] .iba-btn--primary:is(:link, :visited, :hover, :focus, :active), html[data-brand="ib"] .iba-btn--primary * { color: #fff !important; }
  html[data-brand="ib"] .iba-btn--soft { background: var(--iba-soft); border-color: transparent; color: var(--iba-pink); }
  html[data-brand="ib"] .iba-btn--soft:hover { background: var(--iba-soft-2); }
  html[data-brand="ib"] .iba-btn--ghost { background: transparent; border-color: var(--iba-line-2); color: var(--iba-text); }
  html[data-brand="ib"] .iba-btn--danger { background: #fff; border-color: #f3c9c4; color: var(--iba-red); }
  html[data-brand="ib"] .iba-btn--danger:hover { background: var(--iba-red-bg); border-color: var(--iba-red); color: var(--iba-red); }
  html[data-brand="ib"] .iba-btn--sm { min-height: 34px; padding: 0 12px; font-size: 0.8rem; border-radius: 10px; gap: 6px; }
  html[data-brand="ib"] .iba-btn--lg { min-height: 52px; font-size: 1rem; }
  html[data-brand="ib"] .iba-btn--block { width: 100%; }
  html[data-brand="ib"] .iba-btn:disabled, html[data-brand="ib"] .iba-btn[data-done] { opacity: 0.6; cursor: default; transform: none; }
  html[data-brand="ib"] .iba form { margin: 0; }

  /* ── pills ──────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; background: #f4f1f7; color: var(--iba-text); }
  html[data-brand="ib"] .iba-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  html[data-brand="ib"] .iba-pill--success { background: var(--iba-green-bg); color: var(--iba-green); }
  html[data-brand="ib"] .iba-pill--progress { background: var(--iba-soft); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-pill--info { background: var(--iba-blue-bg); color: var(--iba-blue); }
  html[data-brand="ib"] .iba-pill--warning { background: var(--iba-amber-bg); color: var(--iba-amber); }
  html[data-brand="ib"] .iba-pill--danger { background: var(--iba-red-bg); color: var(--iba-red); }
  html[data-brand="ib"] .iba-pill--muted { background: #f4f1f7; color: var(--iba-muted); }

  /* ── KPIs ───────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  html[data-brand="ib"] .iba-kpi { background: #fff; border: 1px solid var(--iba-line); border-radius: var(--iba-radius); box-shadow: var(--iba-shadow); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
  html[data-brand="ib"] .iba-kpi-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--iba-grad); color: #fff; }
  html[data-brand="ib"] .iba-kpi--progress .iba-kpi-ic { background: var(--iba-soft); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-kpi--success .iba-kpi-ic { background: var(--iba-green-bg); color: var(--iba-green); }
  html[data-brand="ib"] .iba-kpi--ink .iba-kpi-ic { background: #f1edf5; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-kpi-value { font-size: 1.3rem; font-weight: 800; color: var(--iba-ink); letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
  html[data-brand="ib"] .iba-kpi-label { font-size: 0.78rem; color: var(--iba-muted); font-weight: 600; }

  /* ── order rows ─────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-list { display: grid; }
  html[data-brand="ib"] .iba-list > * + * { border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-order, html[data-brand="ib"] .iba-subrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic main side" "ic actions actions"; gap: 6px 14px; padding: 14px 0; align-items: center; }
  html[data-brand="ib"] .iba-list > :first-child { padding-top: 2px; }
  html[data-brand="ib"] .iba-list > :last-child { padding-bottom: 2px; }
  html[data-brand="ib"] .iba-order.is-compact { grid-template-areas: "ic main side"; grid-template-columns: 44px minmax(0, 1fr) auto auto; }
  html[data-brand="ib"] .iba-order-ic { grid-area: ic; align-self: start; width: 44px; height: 44px; border-radius: 12px; background: var(--iba-bg); border: 1px solid var(--iba-line); display: inline-flex; align-items: center; justify-content: center; color: var(--iba-pink); }
  html[data-brand="ib"] .iba-order-main { grid-area: main; min-width: 0; display: grid; gap: 4px; }
  html[data-brand="ib"] .iba-order-title { font-weight: 800; color: var(--iba-ink); font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
  html[data-brand="ib"] a.iba-order-title:hover { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-order-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-ref { font-weight: 700; color: var(--iba-text); font-variant-numeric: tabular-nums; }
  html[data-brand="ib"] .iba-order-link { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-brand="ib"] .iba-order-progress { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700; color: var(--iba-muted); margin-top: 4px; max-width: 420px; }
  html[data-brand="ib"] .iba-order-progress .iba-bar { flex: 1; }
  html[data-brand="ib"] .iba-order-side, html[data-brand="ib"] .iba-sub-side { grid-area: side; display: grid; justify-items: end; gap: 6px; text-align: right; }
  html[data-brand="ib"] .iba-order-price { font-weight: 800; color: var(--iba-ink); font-size: 0.92rem; white-space: nowrap; }
  html[data-brand="ib"] .iba-order-price small { font-weight: 600; color: var(--iba-muted); font-size: 0.75rem; }
  html[data-brand="ib"] .iba-order-actions { grid-area: actions; display: flex; gap: 8px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-order-go { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-order-go:hover { background: var(--iba-soft); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  html[data-brand="ib"] .iba-bar { height: 8px; border-radius: 999px; background: #f3e8ef; overflow: hidden; }
  html[data-brand="ib"] .iba-bar > span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--iba-grad); transition: width 0.4s ease; }

  /* small rows (subscriptions summary, profiles, sessions, sign-in methods) */
  html[data-brand="ib"] .iba-mini-list, html[data-brand="ib"] .iba-rows, html[data-brand="ib"] .iba-profiles { display: grid; }
  html[data-brand="ib"] .iba-mini-list > li, html[data-brand="ib"] .iba-rows > li, html[data-brand="ib"] .iba-profiles > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-mini-list > li + li, html[data-brand="ib"] .iba-rows > li + li, html[data-brand="ib"] .iba-profiles > li + li { border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-mini-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--iba-bg); border: 1px solid var(--iba-line); display: inline-flex; align-items: center; justify-content: center; color: var(--iba-pink); }
  html[data-brand="ib"] .iba-mini-main { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
  html[data-brand="ib"] .iba-mini-main b, html[data-brand="ib"] .iba-profile-name { color: var(--iba-ink); font-weight: 800; font-size: 0.9rem; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  html[data-brand="ib"] a.iba-profile-name:hover { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-mini-main small { color: var(--iba-muted); font-size: 0.78rem; }
  html[data-brand="ib"] .iba-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  html[data-brand="ib"] .iba-tag { padding: 3px 9px; border-radius: 999px; background: #faf7fb; border: 1px solid #f0eaf3; color: var(--iba-text); font-size: 0.72rem; font-weight: 700; }
  html[data-brand="ib"] .iba-mark { width: 20px; height: 20px; display: block; }

  /* attention / welcome / notes */
  html[data-brand="ib"] .iba-attention { background: #fff; border: 1px solid #f6c9c4; border-left: 4px solid #e5484d; border-radius: var(--iba-radius); box-shadow: var(--iba-shadow); padding: 18px 20px; display: grid; gap: 14px; }
  html[data-brand="ib"] .iba-attention header { display: flex; gap: 12px; align-items: flex-start; }
  html[data-brand="ib"] .iba-attention-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--iba-red-bg); color: #d92d20; display: inline-flex; align-items: center; justify-content: center; }
  html[data-brand="ib"] .iba-attention h2 { font-size: 1rem; font-weight: 800; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-attention header p { font-size: 0.86rem; color: var(--iba-muted); margin-top: 2px; }
  html[data-brand="ib"] .iba-attention ul { display: grid; }
  html[data-brand="ib"] .iba-attention li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-attention li > div { display: grid; min-width: 0; }
  html[data-brand="ib"] .iba-attention li a { font-weight: 800; color: var(--iba-ink); font-size: 0.9rem; }
  html[data-brand="ib"] .iba-attention li small { color: var(--iba-muted); font-size: 0.78rem; }
  html[data-brand="ib"] .iba-attention-actions, html[data-brand="ib"] .iba-attention-row { display: flex; gap: 8px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-welcome { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%); border: 1px solid #f7c9e1; border-radius: var(--iba-radius); padding: 18px 20px; }
  html[data-brand="ib"] .iba-welcome-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--iba-green-bg); color: var(--iba-green); display: inline-flex; align-items: center; justify-content: center; }
  html[data-brand="ib"] .iba-welcome h2 { font-size: 1.02rem; font-weight: 800; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-welcome p { font-size: 0.88rem; color: var(--iba-text); margin-top: 2px; }
  html[data-brand="ib"] .iba-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 0.87rem; line-height: 1.5; background: var(--iba-blue-bg); color: var(--iba-blue); }
  html[data-brand="ib"] .iba-note p { margin: 0; }
  html[data-brand="ib"] .iba-note svg { margin-top: 2px; }
  html[data-brand="ib"] .iba-note--success { background: var(--iba-green-bg); color: var(--iba-green); }
  html[data-brand="ib"] .iba-note--warning { background: var(--iba-amber-bg); color: var(--iba-amber); }
  html[data-brand="ib"] .iba-note--danger { background: var(--iba-red-bg); color: var(--iba-red); }
  html[data-brand="ib"] .iba-note--inline { display: block; padding: 8px 12px; font-size: 0.8rem; margin-top: 6px; }

  /* recommendations, network strip */
  html[data-brand="ib"] .iba-reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  html[data-brand="ib"] .iba-reco { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--iba-line); background: var(--iba-bg); transition: border-color 0.15s ease, transform 0.12s ease; }
  html[data-brand="ib"] .iba-reco:hover { border-color: #f3c9e0; transform: translateY(-1px); background: #fff; }
  html[data-brand="ib"] .iba-reco-top { display: flex; align-items: center; gap: 8px; color: var(--iba-ink); font-size: 0.9rem; }
  html[data-brand="ib"] .iba-reco-reason { font-size: 0.78rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-reco-foot { display: flex; align-items: center; justify-content: space-between; color: var(--iba-pink); font-weight: 800; font-size: 0.82rem; margin-top: 2px; }
  html[data-brand="ib"] .iba-net-strip { display: flex; gap: 12px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-net { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--iba-line); box-shadow: var(--iba-shadow); }
  html[data-brand="ib"] .iba-net span { display: grid; line-height: 1.3; }
  html[data-brand="ib"] .iba-net b { color: var(--iba-ink); font-size: 0.86rem; }
  html[data-brand="ib"] .iba-net small { color: var(--iba-muted); font-size: 0.75rem; }

  /* orders toolbar */
  html[data-brand="ib"] .iba-toolbar { min-width: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-segments { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--iba-line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  html[data-brand="ib"] .iba-segments::-webkit-scrollbar { display: none; }
  html[data-brand="ib"] .iba-segment { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.85rem; color: var(--iba-text); white-space: nowrap; }
  html[data-brand="ib"] .iba-segment:hover { color: var(--iba-ink); background: var(--iba-bg); }
  html[data-brand="ib"] .iba-segment.is-current { background: var(--iba-ink); color: #fff; }
  html[data-brand="ib"] .iba-segment.is-current .iba-count { background: rgba(255, 255, 255, 0.18); color: #fff; }
  html[data-brand="ib"] .iba-search { flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--iba-line-2); border-radius: 14px; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-search:focus-within { border-color: var(--iba-pink); box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.1); }
  html[data-brand="ib"] .iba-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.9rem; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-search-clear { display: inline-flex; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-netchips { display: flex; gap: 8px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-netchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--iba-line); font-size: 0.82rem; font-weight: 700; color: var(--iba-text); }
  html[data-brand="ib"] .iba-netchip:hover { border-color: #f3c9e0; }
  html[data-brand="ib"] .iba-netchip.is-current { border-color: var(--iba-pink); background: var(--iba-soft); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-pager-n { font-size: 0.82rem; color: var(--iba-muted); font-weight: 600; }

  /* empty states */
  html[data-brand="ib"] .iba-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
  html[data-brand="ib"] .iba-empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--iba-soft); color: var(--iba-pink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
  html[data-brand="ib"] .iba-empty h3 { font-size: 1.02rem; font-weight: 800; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-empty p { font-size: 0.88rem; color: var(--iba-muted); max-width: 420px; }
  html[data-brand="ib"] .iba-empty .iba-btn { margin-top: 8px; }

  /* ── order page ─────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-orderpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html[data-brand="ib"] .iba-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.86rem; color: var(--iba-muted); justify-self: start; }
  html[data-brand="ib"] .iba-back:hover { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-order-hero { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--iba-line); border-radius: 20px; box-shadow: var(--iba-shadow); padding: 20px 22px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-order-hero-ic { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--iba-soft); display: inline-flex; align-items: center; justify-content: center; }
  html[data-brand="ib"] .iba-order-hero-main { flex: 1 1 240px; min-width: 0; }
  html[data-brand="ib"] .iba-order-hero .iba-h1 { font-size: 1.4rem; }
  html[data-brand="ib"] .iba-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
  html[data-brand="ib"] .iba-order-col { display: grid; gap: 18px; min-width: 0; }
  html[data-brand="ib"] .iba-progress { display: grid; gap: 12px; }
  html[data-brand="ib"] .iba-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-progress-pct { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; background: var(--iba-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
  html[data-brand="ib"] .iba-progress-qty { font-size: 0.86rem; color: var(--iba-muted); font-weight: 600; }
  html[data-brand="ib"] .iba-progress .iba-bar { height: 10px; }
  html[data-brand="ib"] .iba-progress-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  html[data-brand="ib"] .iba-progress-facts div { background: var(--iba-bg); border-radius: 12px; padding: 10px 12px; }
  html[data-brand="ib"] .iba-progress-facts dt { font-size: 0.72rem; color: var(--iba-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  html[data-brand="ib"] .iba-progress-facts dd { font-size: 0.92rem; font-weight: 800; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-steps { display: flex; gap: 4px; padding-top: 6px; }
  html[data-brand="ib"] .iba-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 0.74rem; font-weight: 700; color: var(--iba-faint); }
  html[data-brand="ib"] .iba-step::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--iba-line-2); }
  html[data-brand="ib"] .iba-step:first-child::before { display: none; }
  html[data-brand="ib"] .iba-step-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--iba-line-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
  html[data-brand="ib"] .iba-step.is-done, html[data-brand="ib"] .iba-step.is-current { color: var(--iba-ink); }
  html[data-brand="ib"] .iba-step.is-done .iba-step-dot { background: var(--iba-grad); border-color: transparent; }
  html[data-brand="ib"] .iba-step.is-done::before, html[data-brand="ib"] .iba-step.is-current::before { background: var(--iba-pink); }
  html[data-brand="ib"] .iba-step.is-current .iba-step-dot { border-color: var(--iba-pink); box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.14); }
  html[data-brand="ib"] .iba-step.is-warn .iba-step-dot { background: #f59e0b; border-color: transparent; }
  html[data-brand="ib"] .iba-step.is-bad .iba-step-dot { background: #e5484d; border-color: transparent; }
  html[data-brand="ib"] .iba-step.is-off { opacity: 0.5; }
  html[data-brand="ib"] .iba-facts { display: grid; gap: 0; }
  html[data-brand="ib"] .iba-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--iba-line); font-size: 0.86rem; }
  html[data-brand="ib"] .iba-facts > div:last-child { border-bottom: 0; }
  html[data-brand="ib"] .iba-facts dt { color: var(--iba-muted); flex: none; }
  html[data-brand="ib"] .iba-facts dd { color: var(--iba-ink); font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
  html[data-brand="ib"] .iba-facts--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  html[data-brand="ib"] .iba-facts--row > div { display: grid; gap: 2px; border: 0; padding: 0; }
  html[data-brand="ib"] .iba-facts--row dd { justify-content: flex-start; text-align: left; }
  html[data-brand="ib"] .iba-actions { display: grid; gap: 8px; }
  html[data-brand="ib"] .iba-actions form { margin: 0; }
  html[data-brand="ib"] .iba-actions form > button { width: 100%; }
  html[data-brand="ib"] .iba-refill { padding: 10px 12px; border-radius: 12px; background: var(--iba-soft); color: #8a3a63; }
  html[data-brand="ib"] .iba-refill.is-expired, html[data-brand="ib"] .iba-refill.is-unsupported { background: var(--iba-bg); color: var(--iba-muted); }
  html[data-brand="ib"] .iba-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html[data-brand="ib"] .iba-posts li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--iba-bg); font-size: 0.84rem; }
  html[data-brand="ib"] .iba-posts a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iba-ink); font-weight: 600; }
  html[data-brand="ib"] .iba-posts-n { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.72rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-timeline { display: grid; gap: 0; position: relative; }
  html[data-brand="ib"] .iba-timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
  html[data-brand="ib"] .iba-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--iba-line); }
  html[data-brand="ib"] .iba-timeline-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--iba-soft); border: 2px solid #f7c9e1; display: inline-flex; align-items: center; justify-content: center; color: var(--iba-pink); margin-top: 1px; }
  html[data-brand="ib"] .iba-timeline p { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.86rem; }
  html[data-brand="ib"] .iba-timeline b { color: var(--iba-ink); }
  html[data-brand="ib"] .iba-timeline time { font-size: 0.75rem; color: var(--iba-faint); }
  html[data-brand="ib"] .iba-timeline small { display: block; color: var(--iba-muted); font-size: 0.8rem; margin-top: 2px; }
  html[data-brand="ib"] .iba-live { display: grid; gap: 10px; }
  html[data-brand="ib"] .iba-live-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 0.82rem; font-weight: 800; color: var(--iba-pink); cursor: pointer; display: inline-flex; gap: 4px; }

  /* ── forms ──────────────────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-form { display: grid; gap: 10px; }
  html[data-brand="ib"] .iba-field { display: grid; gap: 6px; }
  html[data-brand="ib"] .iba-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-label--section { margin-top: 6px; }
  html[data-brand="ib"] .iba-req { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--iba-line-2); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--iba-ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  html[data-brand="ib"] .iba-input:focus { border-color: var(--iba-pink); box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.1); }
  html[data-brand="ib"] .iba-input[aria-invalid="true"] { border-color: #e5484d; }
  html[data-brand="ib"] .iba-input--sm { height: 38px; width: 120px; font-size: 0.92rem; }
  html[data-brand="ib"] .iba-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }
  html[data-brand="ib"] .iba-input-wrap { position: relative; display: block; }
  html[data-brand="ib"] .iba-input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--iba-faint); pointer-events: none; }
  html[data-brand="ib"] .iba-input-wrap .iba-input { padding-left: 42px; height: 52px; }
  html[data-brand="ib"] .iba-input-wrap:focus-within > svg { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-error { color: var(--iba-red); font-size: 0.82rem; font-weight: 600; }
  html[data-brand="ib"] .iba-ok { color: var(--iba-green); font-size: 0.85rem; font-weight: 700; }
  html[data-brand="ib"] .iba-alert { padding: 10px 12px; border-radius: 10px; background: var(--iba-red-bg); }
  html[data-brand="ib"] .iba-ok.iba-alert { background: var(--iba-green-bg); }
  html[data-brand="ib"] .iba-check { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--iba-line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; max-width: 620px; }
  html[data-brand="ib"] .iba-check:hover { border-color: #f3c9e0; background: #fdf7fa; }
  html[data-brand="ib"] .iba-check input { accent-color: var(--iba-pink); width: 17px; height: 17px; flex: none; margin: 2px 0 0; }
  html[data-brand="ib"] .iba-check b { display: block; color: var(--iba-ink); font-size: 0.9rem; }
  html[data-brand="ib"] .iba-check small { display: block; color: var(--iba-muted); font-size: 0.8rem; margin-top: 2px; }
  html[data-brand="ib"] .iba-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-delete { flex-basis: 100%; margin-top: 4px; }
  html[data-brand="ib"] .iba-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
  html[data-brand="ib"] .iba-chips legend { padding: 0; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-chip { position: relative; cursor: pointer; }
  html[data-brand="ib"] .iba-chip input { position: absolute; opacity: 0; pointer-events: none; }
  html[data-brand="ib"] .iba-chip span { display: inline-flex; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--iba-line-2); font-size: 0.8rem; font-weight: 700; color: var(--iba-text); background: #fff; }
  html[data-brand="ib"] .iba-chip input:checked + span { border-color: var(--iba-pink); background: var(--iba-soft); color: var(--iba-pink); }
  html[data-brand="ib"] .iba-chip input:focus-visible + span { outline: 3px solid rgba(230, 28, 114, 0.35); outline-offset: 2px; }

  /* ── dialog (support) ───────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(25, 20, 40, 0.55); backdrop-filter: blur(2px); font-family: Montserrat, sans-serif; }
  html[data-brand="ib"] .iba-modal-card { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 26px 24px 22px; box-shadow: 0 30px 70px -25px rgba(25, 20, 40, 0.6); display: grid; gap: 16px; color: var(--iba-text); }
  html[data-brand="ib"] .iba-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f4f1f7; color: var(--iba-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  html[data-brand="ib"] .iba-modal-x:hover { color: var(--iba-ink); background: #ece8f2; }
  html[data-brand="ib"] .iba-modal-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 36px; }
  html[data-brand="ib"] .iba-modal-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--iba-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
  html[data-brand="ib"] .iba-modal-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--iba-ink); margin: 0; }
  html[data-brand="ib"] .iba-modal-head p { font-size: 0.85rem; color: var(--iba-muted); margin: 2px 0 0; }
  html[data-brand="ib"] .iba-done { display: grid; gap: 14px; justify-items: start; }
  html[data-brand="ib"] .iba-done p { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--iba-green-bg); color: var(--iba-green); font-weight: 600; font-size: 0.9rem; }

  /* ── signed-out pages ───────────────────────────────────────────────────── */
  html[data-brand="ib"] .iba-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--iba-faint); }
  html[data-brand="ib"] .iba-crumbs a:hover { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-crumbs [aria-current] { color: var(--iba-ink); font-weight: 700; }
  html[data-brand="ib"] .iba--auth .iba-crumbs { margin-bottom: 18px; }
  html[data-brand="ib"] .iba-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: stretch; }
  html[data-brand="ib"] .iba-auth--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
  html[data-brand="ib"] .iba-auth-card { background: #fff; border: 1px solid var(--iba-line); border-radius: 24px; box-shadow: var(--iba-shadow); padding: 34px 34px 30px; display: grid; gap: 16px; align-content: start; }
  html[data-brand="ib"] .iba-auth-card > [hidden] { display: none; }
  html[data-brand="ib"] .iba-auth-card > div { display: grid; gap: 14px; }
  html[data-brand="ib"] .iba-auth-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--iba-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
  html[data-brand="ib"] .iba-auth-h2 { font-size: 1rem; font-weight: 700; color: var(--iba-ink); line-height: 1.4; padding-top: 6px; border-top: 1px solid var(--iba-line); padding-top: 18px; }
  html[data-brand="ib"] .iba-auth-card .iba-sub { margin-top: -8px; }
  html[data-brand="ib"] .iba-or { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 600; color: var(--iba-muted); margin: 4px 0 12px; }
  html[data-brand="ib"] .iba-or::before, html[data-brand="ib"] .iba-or::after { content: ""; flex: 1; height: 1px; background: var(--iba-line); }
  html[data-brand="ib"] .iba-switch { text-align: center; font-size: 0.88rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-switch button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--iba-pink); cursor: pointer; }
  html[data-brand="ib"] .iba-switch button:hover { text-decoration: underline; }
  html[data-brand="ib"] .iba-otp { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0; }
  html[data-brand="ib"] .iba-otp-digit { width: 52px; height: 62px; padding: 0; text-align: center; font-size: 1.6rem; font-weight: 800; font-family: Montserrat, sans-serif; color: var(--iba-ink); background: #fff; border: 1.5px solid var(--iba-line-2); border-radius: 14px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  html[data-brand="ib"] .iba-otp-digit:focus { border-color: var(--iba-pink); box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.12); }
  html[data-brand="ib"] .iba-otp-digit.filled { border-color: var(--iba-pink); background: #fff7fb; }
  html[data-brand="ib"] .iba-otp-digit.error { border-color: #e5484d; background: #fef2f2; animation: ibp-shake 0.4s ease-out; }
  html[data-brand="ib"] .iba-otp-sep { color: var(--iba-faint); font-weight: 600; }
  html[data-brand="ib"] .iba-recover { background: var(--iba-bg); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
  html[data-brand="ib"] .iba-recover-title { font-weight: 800; color: var(--iba-ink); font-size: 0.88rem; }
  html[data-brand="ib"] .iba-recover ul { list-style: disc; padding-left: 18px; font-size: 0.82rem; color: var(--iba-muted); display: grid; gap: 2px; }
  html[data-brand="ib"] .iba-recover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  html[data-brand="ib"] .iba-auth-aside { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 32px; color: #fff; background: #241336; display: grid; gap: 22px; align-content: start; }
  html[data-brand="ib"] .iba-aside-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
  html[data-brand="ib"] .iba-how { display: grid; gap: 14px; }
  html[data-brand="ib"] .iba-how li { display: flex; gap: 12px; align-items: flex-start; }
  html[data-brand="ib"] .iba-how-n { width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--iba-grad); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; box-shadow: 0 6px 16px -6px rgba(255, 77, 148, 0.8); }
  html[data-brand="ib"] .iba-how li > span:last-child { display: grid; gap: 2px; }
  html[data-brand="ib"] .iba-how b { font-size: 0.95rem; }
  html[data-brand="ib"] .iba-how small { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
  html[data-brand="ib"] .iba-perks { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  html[data-brand="ib"] .iba-perks li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.88); }
  html[data-brand="ib"] .iba-perks svg { color: #ff8cbf; }
  html[data-brand="ib"] .iba-aside-help { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
  html[data-brand="ib"] .iba-aside-help a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
  html[data-brand="ib"] .iba-aside-home { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-weight: 700; font-size: 0.85rem; }
  html[data-brand="ib"] .iba-aside-home:hover { background: rgba(255, 255, 255, 0.18); }
  html[data-brand="ib"] .iba-skel { border-radius: 16px; background: linear-gradient(90deg, #f1edf5 0%, #e9e3ef 50%, #f1edf5 100%); background-size: 200% 100%; animation: ibp-shimmer-bg 1.4s ease infinite; }
  html[data-brand="ib"] .iba-skel-aside { background: #1f1330; border-radius: 24px; min-height: 520px; }
  @keyframes ibp-shimmer-bg { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
  @keyframes ibp-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
  @keyframes ibp-spin { to { transform: rotate(360deg); } }

  /* /client/corregir: the shared self-service card in the area canvas */
  html[data-brand="ib"] .iba--narrow > .iba-fix { max-width: 688px; }
  html[data-brand="ib"] .iba--narrow .iba-back { margin-bottom: 14px; display: flex; }
  html[data-brand="ib"] .iba-fix > section { border-radius: 20px; box-shadow: var(--iba-shadow); font-family: Montserrat, sans-serif; }
  html[data-brand="ib"] .iba-fix h1 { font-weight: 800; letter-spacing: -0.02em; color: #1f1330; font-size: 1.5rem; line-height: 1.25; }

  /* mobile tab bar (phones / small tablets) */
  html[data-brand="ib"] .iba-tabbar { display: none; }

  /* ── responsive ─────────────────────────────────────────────────────────── */
  @media (max-width: 1199px) {
    html[data-brand="ib"] .iba-order-grid { grid-template-columns: minmax(0, 1fr); }
    html[data-brand="ib"] .iba-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 991px) {
    html[data-brand="ib"] .iba { padding: 22px 0 32px; }
    /* the fixed tab bar (≈ 70 px + safe area) never covers the end of the page (footer included) */
    html[data-brand="ib"] body:has(.ibm-account .iba-tabbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
    html[data-brand="ib"] .iba-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html[data-brand="ib"] .iba-side { display: none; }
    html[data-brand="ib"] .iba-mobile-only { display: inline; }
    html[data-brand="ib"] .iba-sub-mail { display: block; margin-top: 2px; font-size: 0.8rem; }
    html[data-brand="ib"] .iba-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); border-top: 1px solid var(--iba-line); box-shadow: 0 -8px 24px -16px rgba(31, 19, 48, 0.25); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    html[data-brand="ib"] .iba-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; font-size: 0.68rem; font-weight: 700; color: var(--iba-muted); }
    html[data-brand="ib"] .iba-tab-ic { position: relative; display: inline-flex; width: 40px; height: 28px; align-items: center; justify-content: center; border-radius: 999px; }
    html[data-brand="ib"] .iba-tab.is-current { color: var(--iba-pink); }
    html[data-brand="ib"] .iba-tab.is-current .iba-tab-ic { background: var(--iba-soft); }
    html[data-brand="ib"] .iba-tab-dot { position: absolute; top: -2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--iba-pink); color: #fff; font-size: 0.6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
    html[data-brand="ib"] .iba-auth { grid-template-columns: minmax(0, 1fr); }
    html[data-brand="ib"] .iba-grid-2 { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 640px) {
    html[data-brand="ib"] .iba-layout, html[data-brand="ib"] .iba--auth > *, html[data-brand="ib"] .iba--narrow > * { padding-left: 16px; padding-right: 16px; }
    html[data-brand="ib"] .iba-h1 { font-size: 1.35rem; }
    html[data-brand="ib"] .iba-card { padding: 16px; border-radius: 14px; }
    html[data-brand="ib"] .iba-kpi { padding: 12px 14px; column-gap: 10px; }
    html[data-brand="ib"] .iba-kpi-ic { width: 34px; height: 34px; border-radius: 10px; }
    html[data-brand="ib"] .iba-kpi-value { font-size: 1.1rem; }
    html[data-brand="ib"] .iba-order, html[data-brand="ib"] .iba-subrow { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic main" "ic side" "actions actions"; }
    html[data-brand="ib"] .iba-order.is-compact { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic main go" "ic side go"; }
    html[data-brand="ib"] .iba-order.is-compact .iba-order-go { grid-area: go; }
    html[data-brand="ib"] .iba-order-ic { width: 40px; height: 40px; }
    html[data-brand="ib"] .iba-order-side, html[data-brand="ib"] .iba-sub-side { justify-items: start; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    html[data-brand="ib"] .iba-row-actions { justify-content: flex-start; }
    html[data-brand="ib"] .iba-order-actions .iba-btn { flex: 1 1 auto; }
    html[data-brand="ib"] .iba-search { max-width: none; flex-basis: 100%; }
    html[data-brand="ib"] .iba-head-actions { width: 100%; }
    html[data-brand="ib"] .iba-head-actions .iba-btn { flex: 1; }
    html[data-brand="ib"] .iba-auth-card { padding: 24px 18px 22px; border-radius: 20px; }
    html[data-brand="ib"] .iba-auth-aside { padding: 24px 20px; border-radius: 20px; }
    html[data-brand="ib"] .iba-otp { gap: 5px; }
    html[data-brand="ib"] .iba-otp-digit { width: 42px; height: 52px; font-size: 1.3rem; border-radius: 12px; }
    html[data-brand="ib"] .iba-steps { gap: 0; }
    html[data-brand="ib"] .iba-step { font-size: 0.64rem; }
    html[data-brand="ib"] .iba-modal { align-items: flex-end; padding: 0; }
    html[data-brand="ib"] .iba-modal-card { border-radius: 22px 22px 0 0; max-height: 90vh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
    html[data-brand="ib"] .iba-order-hero { padding: 16px; gap: 12px; }
    html[data-brand="ib"] .iba-order-hero-ic { width: 46px; height: 46px; border-radius: 13px; }
  }
  @media (max-width: 380px) {
    html[data-brand="ib"] .iba-otp-digit { width: 38px; height: 48px; }
  }
}

/* ── Google / Apple buttons (oauth.tsx: login card, account page, post-checkout prompt) ── */
@layer ib {
  html[data-brand="ib"] .ibp-oauth-list { display: grid; gap: 10px; }
  html[data-brand="ib"] .ibp-oauth-list form { margin: 0; }
  html[data-brand="ib"] .ibp-oauth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; background: #fff; border: 1.5px solid #e4dde9; border-radius: 12px; font-family: Montserrat, sans-serif; font-size: 0.92rem; font-weight: 700; line-height: 1.2; color: #1f1330; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
  html[data-brand="ib"] .ibp-oauth-btn:hover { border-color: #e61c72; box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.08); }
  html[data-brand="ib"] .ibp-oauth-btn.ibp-oauth-apple { background: #1f1330; border-color: #1f1330; color: #fff; }
  html[data-brand="ib"] .ibp-oauth-btn.ibp-oauth-apple:hover { background: #2c1d45; box-shadow: 0 0 0 4px rgba(31, 19, 48, 0.12); }
  html[data-brand="ib"] .ibp-oauth-btn:disabled { opacity: 0.7; cursor: wait; }
  html[data-brand="ib"] .ibp-oauth-mark { width: 20px; height: 20px; flex: none; display: block; }
  html[data-brand="ib"] .ibp-oauth-list.is-compact { display: flex; }
  html[data-brand="ib"] .ibp-oauth-list.is-compact .ibp-oauth-btn { min-height: 34px; padding: 0 12px; font-size: 0.8rem; border-width: 1px; border-radius: 10px; }
  html[data-brand="ib"] .ibp-btn-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: ibp-spin 0.8s linear infinite; flex: none; }
}

/* ── Post-checkout «Crea tu cuenta» (success-account.tsx, any page). */
@layer ib {
  html[data-brand="ib"] .ibp-sa { background: #fff; border: 1px solid #eee9f2; border-radius: 20px; padding: 24px; box-shadow: 0 1px 2px rgba(31, 19, 48, 0.04), 0 10px 30px -18px rgba(31, 19, 48, 0.18); font-family: Montserrat, sans-serif; color: #1f1330; }
  html[data-brand="ib"] .ibp-sa-head { display: flex; gap: 14px; align-items: flex-start; }
  html[data-brand="ib"] .ibp-sa-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%); color: #fff; }
  html[data-brand="ib"] .ibp-sa-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; line-height: 1.35; color: #1f1330; }
  html[data-brand="ib"] .ibp-sa-text { margin: 0; font-size: 0.875rem; line-height: 1.55; color: #4a4458; }
  html[data-brand="ib"] .ibp-sa-text strong { color: #e61c72; }
  html[data-brand="ib"] .ibp-sa-body { display: grid; gap: 12px; margin-top: 18px; }
  html[data-brand="ib"] .ibp-sa-body form { margin: 0; }
  html[data-brand="ib"] .ibp-sa-code-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; background: #f8f6fa; border: 1.5px dashed #e4dde9; border-radius: 12px; font-family: inherit; font-size: 0.92rem; font-weight: 700; color: #1f1330; cursor: pointer; }
  html[data-brand="ib"] .ibp-sa-code-btn:hover { border-color: #e61c72; color: #e61c72; background: #fff; }
  html[data-brand="ib"] .ibp-sa-otp { display: flex; justify-content: center; gap: 8px; }
  html[data-brand="ib"] .ibp-sa-otp .otp-digit { width: 46px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 800; font-family: Montserrat, sans-serif; color: #1f1330; background: #fff; border: 1.5px solid #e4dde9; border-radius: 12px; outline: none; }
  html[data-brand="ib"] .ibp-sa-otp .otp-digit:focus, html[data-brand="ib"] .ibp-sa-otp .otp-digit.filled { border-color: #e61c72; box-shadow: 0 0 0 4px rgba(230, 28, 114, 0.1); }
  html[data-brand="ib"] .ibp-sa-verify { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; }
  html[data-brand="ib"] .ibp-sa-verify:disabled { opacity: 0.6; cursor: not-allowed; }
  html[data-brand="ib"] .ibp-sa-foot { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 0.78rem; color: #6b6580; }
  html[data-brand="ib"] .ibp-sa .ibp-field-error { margin: 0; color: #b42318; font-size: 0.82rem; font-weight: 600; }
}

/* ── Retention funnels (subscriptions-client.tsx): the live Instabooster `.subm-*` / `.asx-*`
   dialogs (orders_log.php), values unchanged; the live panel renders them with system-ui. */
@layer ib {
  html[data-brand="ib"] .asx-card, html[data-brand="ib"] .subm-modal-card { font-family: system-ui, -apple-system, sans-serif; }
  html[data-brand="ib"] .subm-final .ring, html[data-brand="ib"] .asx-final .ring { box-shadow: none; }
  html[data-brand="ib"] .asx-modal p, html[data-brand="ib"] .subm-modal p, html[data-brand="ib"] .asx-modal h2, html[data-brand="ib"] .subm-modal h2, html[data-brand="ib"] .asx-modal h4, html[data-brand="ib"] .subm-modal h4 { margin-top: 0; }
  html[data-brand="ib"] .asx-benefits, html[data-brand="ib"] .subm-reasons { padding: 0; }
  html[data-brand="ib"] .asx-modal { position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(25,20,40,.55);backdrop-filter:blur(2px) }
  html[data-brand="ib"] .asx-modal.open { display:flex }
  html[data-brand="ib"] .asx-card { background:#fff;border-radius:22px;width:100%;max-width:500px;max-height:92vh;overflow-y:auto;position:relative;box-shadow:0 30px 70px -25px rgba(25,20,40,.6);font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif }
  html[data-brand="ib"] .asx-inner { padding:30px 28px 26px }
  html[data-brand="ib"] .asx-x { position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:none;background:#f4f1f7;color:#6b6580;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center }
  html[data-brand="ib"] .asx-x:hover { background:#ece8f2;color:#1f1330 }
  html[data-brand="ib"] .asx-step { display:none }
  html[data-brand="ib"] .asx-eyebrow { font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#ED2B7E;margin-bottom:8px }
  html[data-brand="ib"] .asx-title { font-size:1.3rem;font-weight:800;color:#1f1330;letter-spacing:-.02em;line-height:1.22;margin:0 0 10px }
  html[data-brand="ib"] .asx-title--sm { font-size:1.12rem }
  html[data-brand="ib"] .asx-text { font-size:.92rem;line-height:1.55;color:#6b6580;margin:0 0 18px }
  html[data-brand="ib"] .asx-text b { color:#1f1330 }
  html[data-brand="ib"] .asx-sum { background:#faf7fb;border:1px solid #f0eaf3;border-radius:14px;padding:14px 16px;margin-bottom:18px }
  html[data-brand="ib"] .asx-sum .n { font-weight:800;color:#1f1330;font-size:.95rem }
  html[data-brand="ib"] .asx-sum .d { color:#8a8499;font-size:.83rem;margin-top:3px }
  html[data-brand="ib"] .asx-benefits { list-style:none;margin:0 0 18px;padding:0 }
  html[data-brand="ib"] .asx-benefits li { display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:#4a4458;padding:7px 0;line-height:1.4 }
  html[data-brand="ib"] .asx-benefits svg { flex:none;margin-top:1px }
  html[data-brand="ib"] .asx-offer { border:1px solid #eee7f1;border-radius:15px;padding:16px 17px;margin-bottom:12px }
  html[data-brand="ib"] .asx-offer--feat { border-color:#f7c9e1;background:#fdf5f9 }
  html[data-brand="ib"] .asx-offer--cancel { background:#fbfafc }
  html[data-brand="ib"] .asx-offer h4 { margin:0 0 5px;font-size:.98rem;color:#1f1330;font-weight:800;display:flex;align-items:center;gap:8px;flex-wrap:wrap }
  html[data-brand="ib"] .asx-offer p { margin:0 0 12px;font-size:.85rem;color:#6b6580;line-height:1.5 }
  html[data-brand="ib"] .asx-tag { font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.4px;padding:.16rem .5rem;border-radius:999px;background:#ED2B7E;color:#fff }
  html[data-brand="ib"] .asx-btn { border:none;cursor:pointer;border-radius:11px;padding:.8rem 1rem;font-size:.9rem;font-weight:800;font-family:inherit;transition:transform .12s ease,box-shadow .12s ease;display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100% }
  html[data-brand="ib"] .asx-btn:hover { transform:translateY(-1px) }
  html[data-brand="ib"] .asx-btn--primary { background:#ED2B7E;color:#fff;box-shadow:0 8px 18px -8px rgba(237,43,126,.6) }
  html[data-brand="ib"] .asx-btn--ghost { background:#fff;color:#6b6580;border:1px solid #e7e2ee;box-shadow:none }
  html[data-brand="ib"] .asx-btn--ghost:hover { color:#1f1330;border-color:#d9d2e6 }
  html[data-brand="ib"] .asx-btn--danger { background:#fff;color:#c0392b;border:1px solid #f3c9c4;box-shadow:none }
  html[data-brand="ib"] .asx-btn[disabled] { opacity:.6;cursor:default;transform:none }
  html[data-brand="ib"] .asx-link { background:none;border:none;color:#8a8499;font-size:.84rem;font-weight:700;cursor:pointer;font-family:inherit;padding:12px 0 2px;display:block;margin:0 auto;text-decoration:underline }
  html[data-brand="ib"] .asx-link:hover { color:#1f1330 }
  html[data-brand="ib"] .asx-reasons { display:flex;flex-direction:column;gap:8px;margin-bottom:14px }
  html[data-brand="ib"] .asx-reason { display:flex;align-items:center;gap:10px;border:1px solid #ece7f1;border-radius:12px;padding:.7rem .9rem;cursor:pointer;font-size:.88rem;color:#4a4458;transition:border-color .15s ease,background .15s ease }
  html[data-brand="ib"] .asx-reason:hover { border-color:#f3c9e0 }
  html[data-brand="ib"] .asx-reason input { accent-color:#ED2B7E }
  html[data-brand="ib"] .asx-reason.sel { border-color:#ED2B7E;background:#fdf5f9;color:#1f1330;font-weight:700 }
  html[data-brand="ib"] .asx-textarea { width:100%;border:1px solid #ece7f1;border-radius:12px;padding:.7rem .9rem;font-family:inherit;font-size:.88rem;resize:vertical;min-height:64px;margin-bottom:14px;box-sizing:border-box }
  html[data-brand="ib"] .asx-last { background:#fdf5f9;border:1px dashed #f3c9e0;border-radius:12px;padding:11px 14px;font-size:.83rem;color:#8a3a63;margin-bottom:16px }
  html[data-brand="ib"] .asx-final { text-align:center;padding:8px 0 }
  html[data-brand="ib"] .asx-final .ring { width:64px;height:64px;border-radius:50%;background:#e7f8ef;display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px }
  html[data-brand="ib"] .asx-cta { display:flex;flex-direction:column;gap:9px;margin-top:4px }
  html[data-brand="ib"] .subm-btn { border:none;cursor:pointer;border-radius:10px;padding:.6rem 1rem;font-size:.85rem;font-weight:700;font-family:inherit;transition:transform .12s ease,box-shadow .12s ease,background .15s ease;display:inline-flex;align-items:center;gap:7px }
  html[data-brand="ib"] .subm-btn:hover { transform:translateY(-1px) }
  html[data-brand="ib"] .subm-btn--primary { background:#ED2B7E;color:#fff;box-shadow:0 8px 18px -8px rgba(237,43,126,.6) }
  html[data-brand="ib"] .subm-btn--ok { background:#16a34a;color:#fff;box-shadow:0 8px 18px -8px rgba(22,163,74,.55) }
  html[data-brand="ib"] .subm-btn--ghost { background:#fff;color:#6b6580;border:1px solid #e7e2ee }
  html[data-brand="ib"] .subm-btn--ghost:hover { color:#1f1330;border-color:#d9d2e6 }
  html[data-brand="ib"] .subm-btn[disabled] { opacity:.6;cursor:default;transform:none }
  html[data-brand="ib"] .subm-modal { position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(25,20,40,.55);backdrop-filter:blur(2px) }
  html[data-brand="ib"] .subm-modal.open { display:flex }
  html[data-brand="ib"] .subm-modal-card { background:#fff;border-radius:22px;width:100%;max-width:520px;max-height:92vh;overflow-y:auto;position:relative;box-shadow:0 30px 70px -25px rgba(25,20,40,.6);font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif }
  html[data-brand="ib"] .subm-modal-inner { padding:30px 28px 26px }
  html[data-brand="ib"] .subm-x { position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:none;background:#f4f1f7;color:#6b6580;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center }
  html[data-brand="ib"] .subm-x:hover { background:#ece8f2;color:#1f1330 }
  html[data-brand="ib"] .subm-step { display:none }
  html[data-brand="ib"] .subm-eyebrow { font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#ED2B7E;margin-bottom:8px }
  html[data-brand="ib"] .subm-title { font-size:1.32rem;font-weight:800;color:#1f1330;letter-spacing:-.02em;line-height:1.2;margin:0 0 10px }
  html[data-brand="ib"] .subm-title--sm { font-size:1.12rem }
  html[data-brand="ib"] .subm-text { font-size:.92rem;line-height:1.55;color:#6b6580;margin:0 0 18px }
  html[data-brand="ib"] .subm-text b { color:#1f1330 }
  html[data-brand="ib"] .subm-summary { background:#faf7fb;border:1px solid #f0eaf3;border-radius:14px;padding:14px 16px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:12px }
  html[data-brand="ib"] .subm-summary .s-name { font-weight:800;color:#1f1330;font-size:.95rem }
  html[data-brand="ib"] .subm-summary .s-price { font-weight:800;color:#1f1330;white-space:nowrap }
  html[data-brand="ib"] .subm-offer { border:1px solid #eee7f1;border-radius:15px;padding:16px 17px;margin-bottom:12px;position:relative }
  html[data-brand="ib"] .subm-offer--feat { border-color:#f7c9e1;background:#fdf5f9 }
  html[data-brand="ib"] .subm-offer--cancel { background:#fbfafc }
  html[data-brand="ib"] .subm-offer h4 { margin:0 0 5px;font-size:1rem;color:#1f1330;font-weight:800;display:flex;align-items:center;gap:8px }
  html[data-brand="ib"] .subm-offer p { margin:0 0 12px;font-size:.86rem;color:#6b6580;line-height:1.5 }
  html[data-brand="ib"] .subm-tag { font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:.2rem .5rem;border-radius:999px;background:#ED2B7E;color:#fff }
  html[data-brand="ib"] .subm-tag--soft { background:#34d399;color:#06311f }
  html[data-brand="ib"] .subm-block { width:100%;justify-content:center }
  html[data-brand="ib"] .subm-reasons { display:flex;flex-direction:column;gap:8px;margin-bottom:14px }
  html[data-brand="ib"] .subm-reason { display:flex;align-items:center;gap:11px;border:1px solid #eee7f1;border-radius:12px;padding:12px 14px;cursor:pointer;font-size:.9rem;color:#3d384f;transition:border-color .15s ease,background .15s ease }
  html[data-brand="ib"] .subm-reason:hover { border-color:#f3c9e0;background:#fdf7fa }
  html[data-brand="ib"] .subm-reason input { accent-color:#ED2B7E;width:17px;height:17px;flex:none }
  html[data-brand="ib"] .subm-reason.checked { border-color:#ED2B7E;background:#fdf0f6 }
  html[data-brand="ib"] .subm-textarea { width:100%;border:1px solid #e7e2ee;border-radius:12px;padding:11px 13px;font-family:inherit;font-size:.9rem;color:#1f1330;resize:vertical;min-height:64px;margin-bottom:16px }
  html[data-brand="ib"] .subm-textarea:focus { outline:none;border-color:#ED2B7E }
  html[data-brand="ib"] .subm-lastchance { background:#fdf5f9;border:1px dashed #f3c9e0;border-radius:13px;padding:13px 15px;margin-bottom:18px;font-size:.85rem;color:#8a3d68 }
  html[data-brand="ib"] .subm-lastchance b { color:#c01f6a }
  html[data-brand="ib"] .subm-cta-row { display:flex;flex-direction:column;gap:9px }
  html[data-brand="ib"] .subm-link { background:none;border:none;color:#8a8499;font-size:.85rem;font-weight:600;cursor:pointer;font-family:inherit;padding:8px;text-align:center }
  html[data-brand="ib"] .subm-link:hover { color:#1f1330 }
  html[data-brand="ib"] .subm-danger { background:#fff;color:#dc2657;border:1.5px solid #f6c9d7 }
  html[data-brand="ib"] .subm-danger:hover { background:#fff0f4 }
  html[data-brand="ib"] .subm-final { text-align:center;padding:8px 0 }
  html[data-brand="ib"] .subm-final .ring { width:74px;height:74px;border-radius:50%;background:#e7f8ef;display:flex;align-items:center;justify-content:center;margin:0 auto 16px }
  @media (max-width:560px) {
    html[data-brand="ib"] .asx-inner, html[data-brand="ib"] .subm-modal-inner { padding: 26px 18px 22px; }
  }
}

@layer ib {
  html[data-brand="ib"] .iba-grid-2 > :only-child { grid-column: 1 / -1; }
  html[data-brand="ib"] .iba-profiles.is-compact .iba-profile-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@layer ib {
  html[data-brand="ib"] .iba-withdraw { margin: 0; font-size: 0.8rem; color: var(--iba-muted); line-height: 1.5; }
  html[data-brand="ib"] .iba-withdraw a { color: var(--iba-pink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
}

@layer ib {
  html[data-brand="ib"] .iba-card > .iba-btn, html[data-brand="ib"] .iba-card > form { justify-self: start; }
}

/* one column (tablets / phones): progress first, then details + actions, then the rest */
@layer ib {
  @media (max-width: 1199px) {
    html[data-brand="ib"] .iba-order-col { display: contents; }
    html[data-brand="ib"] .iba-order-col > * { order: 3; }
    html[data-brand="ib"] .iba-order-col:first-child > :first-child { order: 1; }
    html[data-brand="ib"] .iba-order-aside > * { order: 2; }
  }
}

@layer ib {
  /* code field shown before hydration (native submit); the 6 boxes replace it once hydrated */
  html[data-brand="ib"] .iba-otp-plain { text-align: center; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.3em; }
  html[data-brand="ib"] .iba-otp[hidden] { display: none; }
}

/* sign-in card in the Masfollowers structure: providers → «o con un código» → shared 2-step flow */
@layer ib {
  html[data-brand="ib"] .iba-auth { align-items: start; }
  html[data-brand="ib"] .iba-auth-card { gap: 18px; }
  html[data-brand="ib"] .iba-auth-card .iba-sub { margin-top: -10px; }
  html[data-brand="ib"] .iba-quick { display: grid; gap: 8px; }
  html[data-brand="ib"] .iba-or { margin: 0; }
  html[data-brand="ib"] .iba-flow { font-family: Montserrat, sans-serif; }
  html[data-brand="ib"] .iba-flow h2 { font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: -0.01em; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-switch a { font-weight: 800; color: var(--iba-pink); }
  html[data-brand="ib"] .iba-switch a:hover { text-decoration: underline; }
  html[data-brand="ib"] .iba-auth-foot { padding-top: 14px; border-top: 1px solid var(--iba-line); }
  html[data-brand="ib"] .iba-aside-title { font-size: 1.2rem; }
  html[data-brand="ib"] .iba-perks { display: grid; gap: 16px; padding: 0; border: 0; }
  html[data-brand="ib"] .iba-perks li { display: flex; align-items: flex-start; gap: 14px; color: #fff; }
  html[data-brand="ib"] .iba-perk-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 77, 148, 0.16); color: #ff8cbf; }
  html[data-brand="ib"] .iba-perks li > span:last-child { display: grid; gap: 2px; }
  html[data-brand="ib"] .iba-perks b { font-size: 0.95rem; font-weight: 700; }
  html[data-brand="ib"] .iba-perks small { font-size: 0.83rem; color: rgba(255, 255, 255, 0.7); line-height: 1.45; }
  html[data-brand="ib"] .iba-aside-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* the shared 2-step code flow, tuned to the IB card (sizes, radii) */
@layer ib {
  html[data-brand="ib"] .iba-flow h2 { font-size: 1.02rem; line-height: 1.3; margin-bottom: 14px; }
  html[data-brand="ib"] .iba-flow section { border-radius: 16px; padding: 18px 18px 20px; }
  html[data-brand="ib"] .iba-flow input, html[data-brand="ib"] .iba-flow button[type="submit"], html[data-brand="ib"] .iba-flow button[type="button"]:not([data-slot]) { border-radius: 12px; }
  html[data-brand="ib"] .iba-flow button[type="submit"] { background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%); color: #fff; font-weight: 700; border: 0; }
  html[data-brand="ib"] .iba-flow label { font-weight: 700; color: var(--iba-ink); }
}

@layer ib {
  html[data-brand="ib"] .iba-flow [data-slot="input-otp-slot"] { border-radius: 12px; }
}

@layer ib {
  html[data-brand="ib"] .iba-auth-foot { flex-wrap: nowrap; align-items: flex-start; }
  html[data-brand="ib"] .iba-auth-foot svg { margin-top: 2px; }
}

@layer ib {
  /* one explicit track: a long e-mail / the provider buttons never widen the card on phones */
  html[data-brand="ib"] .iba-auth-card, html[data-brand="ib"] .iba-auth-aside { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  html[data-brand="ib"] .iba-flow, html[data-brand="ib"] .iba-flow > * { min-width: 0; }
  html[data-brand="ib"] .iba-flow input { min-width: 0; text-overflow: ellipsis; }
  /* «Mis puntos» (shared component in a .tw island): none of this layer's element rules (live
     Bootstrap h2/a/label, the .iba margin reset) reach it, so it keeps its own Tailwind look */
  html[data-brand="ib"] .iba-points.tw *, html[data-brand="ib"] .iba-credit.tw * { all: revert-layer; }
}

@layer ib {
  /* «Visitas para tus reels» (post boosts, dashboard) */
  html[data-brand="ib"] .iba-boost-body { display: grid; gap: 14px; min-width: 0; }
  html[data-brand="ib"] .iba-boost-intro { color: var(--iba-text); font-size: 0.92rem; }
  html[data-brand="ib"] .iba-boost-body .iba-bar { background: #fff; box-shadow: inset 0 0 0 1px #f7c9e1; }
  html[data-brand="ib"] .iba-boost-body .iba-tags { margin-top: 0; }
  html[data-brand="ib"] .iba-boost-body .iba-tag { background: #fff; border-color: #f7c9e1; }
  html[data-brand="ib"] .iba-boost-form { display: grid; gap: 10px; min-width: 0; }
  html[data-brand="ib"] .iba-boost-row { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
  html[data-brand="ib"] .iba-boost-input { flex: 1 1 100%; min-width: 0; }
  html[data-brand="ib"] .iba-boost-input .iba-input { min-width: 0; text-overflow: ellipsis; }
  html[data-brand="ib"] .iba-boost-row .iba-btn { flex: 1 1 100%; }
  html[data-brand="ib"] .iba-boost-confirm { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #f7c9e1; min-width: 0; }
  html[data-brand="ib"] .iba-boost-target { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--iba-pink); font-weight: 700; }
  html[data-brand="ib"] .iba-boost-target span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-boost-history { border-top: 1px solid #f7c9e1; padding-top: 12px; display: grid; gap: 4px; min-width: 0; }
  html[data-brand="ib"] .iba-boost-history h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-boost-history li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #f7dbe9; min-width: 0; }
  html[data-brand="ib"] .iba-boost-history li:last-child { border-bottom: 0; padding-bottom: 0; }
  html[data-brand="ib"] .iba-boost-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.88rem; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-boost-link:hover { color: var(--iba-pink); }
  html[data-brand="ib"] .iba-boost-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.8rem; color: var(--iba-muted); }
  @media (min-width: 640px) {
    html[data-brand="ib"] .iba-boost-row { flex-wrap: nowrap; }
    html[data-brand="ib"] .iba-boost-input { flex: 1 1 auto; }
    html[data-brand="ib"] .iba-boost-input .iba-input { height: 52px; }
    html[data-brand="ib"] .iba-boost-row .iba-btn { flex: none; min-height: 52px; }
  }
}

/* «Mis puntos»: tier ladder, movement amounts and the birthday / notices forms, with the kit */
@layer ib {
  html[data-brand="ib"] .iba-pt-tiers { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
  html[data-brand="ib"] .iba-pt-tiers li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--iba-line); font-size: 0.86rem; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-pt-tiers li:first-child { border-top: 0; }
  html[data-brand="ib"] .iba-pt-tier-dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--iba-line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
  html[data-brand="ib"] .iba-pt-tiers b { color: var(--iba-text); font-weight: 700; }
  html[data-brand="ib"] .iba-pt-tier-x { grid-row: span 2; font-weight: 800; color: var(--iba-text); font-variant-numeric: tabular-nums; }
  html[data-brand="ib"] .iba-pt-tiers small { grid-column: 2; font-size: 0.76rem; color: var(--iba-faint); }
  html[data-brand="ib"] .iba-pt-tiers .is-done .iba-pt-tier-dot { background: var(--iba-ink); border-color: var(--iba-ink); }
  html[data-brand="ib"] .iba-pt-tiers .is-current .iba-pt-tier-dot { border-color: var(--iba-pink); box-shadow: inset 0 0 0 4px #fff; background: var(--iba-pink); }
  html[data-brand="ib"] .iba-pt-tiers .is-current b, html[data-brand="ib"] .iba-pt-tiers .is-current .iba-pt-tier-x { color: var(--iba-pink); font-weight: 800; }
  html[data-brand="ib"] .iba-pt-move { margin-left: auto; flex: none; font-weight: 800; font-size: 0.95rem; color: var(--iba-muted); font-variant-numeric: tabular-nums; }
  html[data-brand="ib"] .iba-pt-move.is-plus { color: var(--iba-green); }
  html[data-brand="ib"] .iba-points .iba-ref { font-weight: 600; color: var(--iba-muted); font-size: 0.8rem; }
  html[data-brand="ib"] .iba-points .iba-facts--row dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  html[data-brand="ib"] .iba-points .iba-facts--row dd { font-weight: 600; font-size: 0.88rem; }
  html[data-brand="ib"] .iba-points .iba-facts--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
  html[data-brand="ib"] .iba-points .iba-facts--row dd { align-items: flex-start; }
  @media (max-width: 640px) { html[data-brand="ib"] .iba-points .iba-facts--row { grid-template-columns: minmax(0, 1fr); } }
  html[data-brand="ib"] .iba-points .iba-hint { display: block; line-height: 1.5; }
  html[data-brand="ib"] .iba-points .iba-hint svg { vertical-align: -2px; margin-right: 4px; }
  html[data-brand="ib"] .iba-pt-date { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
  html[data-brand="ib"] .iba-pt-date-field { display: grid; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--iba-muted); }
  html[data-brand="ib"] .iba-pt-date .iba-input { height: 44px; font-size: 0.95rem; }
  html[data-brand="ib"] .iba-pt-day { width: 68px; }
  html[data-brand="ib"] .iba-pt-month { width: 150px; }
  html[data-brand="ib"] .iba-pt-year { width: 92px; }
  html[data-brand="ib"] .iba-pt-date .iba-btn { height: 44px; }
  html[data-brand="ib"] .iba-pt-date .iba-link { height: 44px; }
  html[data-brand="ib"] .iba-pt-check { max-width: none; font-size: 0.9rem; font-weight: 700; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-pt-check-hint { display: block; margin-top: 3px; font-size: 0.8rem; font-weight: 500; color: var(--iba-muted); }
  @media (max-width: 560px) {
    html[data-brand="ib"] .iba-pt-month { width: auto; flex: 1 1 120px; }
    html[data-brand="ib"] .iba-pt-date-field:has(.iba-pt-month) { flex: 1 1 120px; }
  }
}

/* support dialog, step 1: the answer of the chosen topic before the message box */
@layer ib {
  html[data-brand="ib"] .iba-help { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--iba-line-2); border-radius: 12px; background: var(--iba-bg); }
  html[data-brand="ib"] .iba-help b { color: var(--iba-ink); font-size: 0.92rem; font-weight: 800; }
  html[data-brand="ib"] .iba-help p { margin: 0; color: var(--iba-text); font-size: 0.86rem; line-height: 1.55; }
  html[data-brand="ib"] .iba-help .iba-link { justify-self: start; }
}

/* support dialog: billing data of an invoice request (all required) */
@layer ib {
  html[data-brand="ib"] .iba-billing { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  html[data-brand="ib"] .iba-billing legend { padding: 0; margin-bottom: 4px; font-size: 0.85rem; font-weight: 700; color: var(--iba-ink); }
  html[data-brand="ib"] .iba-billing > .iba-hint, html[data-brand="ib"] .iba-billing-billingName, html[data-brand="ib"] .iba-billing-billingAddress { grid-column: 1 / -1; }
  html[data-brand="ib"] .iba-billing .iba-label { font-size: 0.8rem; }
  html[data-brand="ib"] .iba-billing .iba-input { height: 44px; font-size: 0.95rem; min-width: 0; }
  @media (max-width: 480px) {
    html[data-brand="ib"] .iba-billing { grid-template-columns: minmax(0, 1fr); }
  }
}
