/* IBMP — Igreja Batista Ministério Pesca */
:root {
  --ibmp-primary: #1e4d8c;
  --ibmp-primary-dark: #163a6b;
  --ibmp-gold: #c9a227;
  --ibmp-bg: #eef2f6;
  --ibmp-card: #ffffff;
  --ibmp-text: #1e293b;
  --ibmp-muted: #64748b;
  --ibmp-border: #e2e8f0;
  --ibmp-nav-h: 62px;
}

* { box-sizing: border-box; }
body.ibmp-body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--ibmp-bg);
  color: var(--ibmp-text);
}
.ibmp-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
.ibmp-main { padding: 0 14px calc(var(--ibmp-nav-h) + 20px); }
.ibmp-main--login { padding: 0; min-height: 100vh; }

.ibmp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: linear-gradient(135deg, var(--ibmp-primary) 0%, var(--ibmp-primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(30,77,140,.22); position: sticky; top: 0; z-index: 40;
}
.ibmp-header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ibmp-header__icon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.12); transition: background .15s ease;
}
.ibmp-header__icon:hover { background: rgba(255,255,255,.22); }
.ibmp-header__icon svg { width: 18px; height: 18px; fill: currentColor; }
.ibmp-header__notif {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.12); transition: background .15s ease;
}
.ibmp-header__notif:hover { background: rgba(255,255,255,.22); }
.ibmp-header__notif svg { width: 18px; height: 18px; fill: currentColor; }
.ibmp-header__badge {
  position: absolute; top: -2px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ibmp-header__brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ibmp-header__logo {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ibmp-header__logo--img { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.95); padding: 3px; }
.ibmp-header__brand strong { display: block; font-size: 13px; line-height: 1.2; }
.ibmp-header__brand small { display: block; font-size: 10px; opacity: .85; }
.ibmp-header__live {
  font-size: 11px; font-weight: 700; color: #fff; text-decoration: none;
  background: #dc2626; padding: 6px 10px; border-radius: 999px;
}

.ibmp-flash {
  margin: 10px 14px 0; padding: 12px 14px; border-radius: 12px;
  background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 600;
  border: 1px solid #fde68a; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.ibmp-page { padding-top: 10px; }
.ibmp-page__title { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ibmp-page__sub { margin: 0 0 16px; color: var(--ibmp-muted); font-size: 14px; line-height: 1.5; }

.ibmp-page-head {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px;
  padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,77,140,.08) 0%, rgba(201,162,39,.08) 100%);
  border: 1px solid rgba(30,77,140,.1);
}
.ibmp-page-head__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ibmp-primary); color: #fff; font-size: 20px;
  box-shadow: 0 4px 12px rgba(30,77,140,.25);
}
.ibmp-page-head__body { min-width: 0; flex: 1; }
.ibmp-page-head .ibmp-page__title { margin-bottom: 2px; }
.ibmp-page-head .ibmp-page__sub { margin-bottom: 0; }

.ibmp-hero {
  background: linear-gradient(145deg, var(--ibmp-primary) 0%, #2d6cb5 55%, var(--ibmp-gold) 130%);
  color: #fff; border-radius: 18px; padding: 22px 18px; margin-bottom: 16px;
  box-shadow: 0 10px 32px rgba(30,77,140,.22); position: relative; overflow: hidden;
}
.ibmp-hero::after {
  content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none;
}
.ibmp-hero__tag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin: 0 0 6px; }
.ibmp-hero h1 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.ibmp-hero p { margin: 0; font-size: 13px; opacity: .92; line-height: 1.45; }

.ibmp-plan-badge {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2);
}
.ibmp-plan-badge--prata { background: rgba(255,255,255,.28); }
.ibmp-plan-badge--ouro { background: rgba(201,162,39,.45); }
.ibmp-points-badge {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); font-size: 12px; font-weight: 600;
}
.ibmp-points-badge--inline { margin-top: 6px; background: var(--ibmp-bg); color: var(--ibmp-text); border: 1px solid var(--ibmp-border); }
.ibmp-rank-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.ibmp-rank-row__pos { width: 28px; color: var(--ibmp-muted); font-size: 12px; }
.ibmp-rank-row strong { margin-left: auto; color: var(--ibmp-primary); font-size: 13px; }
.ibmp-points-log { list-style: none; padding: 0; margin: 10px 0 0; }
.ibmp-points-log li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ibmp-border); font-size: 13px; }
.ibmp-points-log li:first-child { border-top: 0; }
.ibmp-points-log strong { color: var(--ibmp-primary); white-space: nowrap; }
.ibmp-cart-coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ibmp-cart-coupon .ibmp-field { flex: 1; min-width: 160px; margin: 0; }
.ibmp-cart-totals__row { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; color: var(--ibmp-muted); }
.ibmp-cart-totals__row strong { color: var(--ibmp-text); }
.ibmp-cart-totals__row--discount strong { color: #16a34a; }
.ibmp-cart-totals__total { font-size: 20px; font-weight: 800; margin: 12px 0 0; }
.ibmp-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.ibmp-tracking { font-size: 13px; margin: 8px 0 0; padding: 10px; background: var(--ibmp-bg); border-radius: 10px; border: 1px solid var(--ibmp-border); }
.ibmp-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  background: var(--ibmp-primary); color: #fff; border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.ibmp-install-banner p { margin: 0; font-size: 13px; line-height: 1.35; }
.ibmp-install-banner span { opacity: .85; font-size: 12px; }
.ibmp-install-banner__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ibmp-install-banner button { border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
.ibmp-install-banner #ibmp-install-btn { background: #fff; color: var(--ibmp-primary); padding: 10px 14px; }
.ibmp-install-banner #ibmp-install-close { background: rgba(255,255,255,.2); color: #fff; width: 36px; height: 36px; }

.ibmp-section { margin-bottom: 18px; }
.ibmp-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ibmp-section__head a { font-size: 13px; color: var(--ibmp-primary); text-decoration: none; font-weight: 600; }
.ibmp-section__title { margin: 0 0 10px; font-size: 16px; font-weight: 800; }

.ibmp-card {
  background: var(--ibmp-card); border: 1px solid var(--ibmp-border); border-radius: 14px;
  padding: 14px; margin-bottom: 10px; transition: box-shadow .15s ease, border-color .15s ease;
}
.ibmp-card--link:hover, .ibmp-card--link:focus-visible {
  border-color: rgba(30,77,140,.35); box-shadow: 0 6px 20px rgba(30,77,140,.1);
}
.ibmp-card h3 { margin: 0 0 6px; font-size: 15px; }
.ibmp-card p { margin: 0; font-size: 13px; color: var(--ibmp-muted); line-height: 1.45; }
.ibmp-card--row { display: flex; gap: 12px; align-items: flex-start; }
.ibmp-card--row time { font-weight: 800; color: var(--ibmp-primary); min-width: 44px; font-size: 14px; }
.ibmp-card--link { display: block; text-decoration: none; color: inherit; }
.ibmp-card--article h1 { font-size: 20px; margin: 8px 0 12px; }
.ibmp-article { font-size: 15px; line-height: 1.65; color: #334155; }

.ibmp-pill {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; background: #e0e7ff; color: var(--ibmp-primary); margin-bottom: 6px;
}
.ibmp-pill--warn { background: #fef3c7; color: #92400e; }
.ibmp-pill--ship { background: #dbeafe; color: #1d4ed8; }
.ibmp-btn-danger { color: #dc2626 !important; border-color: #fecaca !important; }
.ibmp-btn-danger:hover { background: #fef2f2 !important; }

.ibmp-empty {
  text-align: center; padding: 28px 16px; border-radius: 14px;
  background: var(--ibmp-card); border: 1px dashed var(--ibmp-border);
}
.ibmp-empty__icon { font-size: 36px; margin-bottom: 8px; display: block; }
.ibmp-empty p { margin: 0 0 14px; color: var(--ibmp-muted); font-size: 14px; }

.ibmp-delivery-toggle { display: flex; flex-direction: column; gap: 8px; }
.ibmp-delivery-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 2px solid var(--ibmp-border); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ibmp-delivery-option:hover { border-color: rgba(30,77,140,.35); }
.ibmp-delivery-option--active { border-color: var(--ibmp-primary); background: rgba(30,77,140,.04); }
.ibmp-delivery-option input { margin-top: 3px; accent-color: var(--ibmp-primary); }
.ibmp-delivery-option strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ibmp-delivery-option span { font-size: 12px; color: var(--ibmp-muted); }

.ibmp-card__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.ibmp-profile-card { padding: 18px; }
.ibmp-profile-head { align-items: flex-start; }
.ibmp-profile-head__avatar { box-shadow: 0 4px 16px rgba(0,0,0,.12); border: 3px solid #fff; }
.ibmp-profile-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.ibmp-muted { color: var(--ibmp-muted); font-size: 13px; }
.ibmp-back { display: inline-block; margin-bottom: 12px; color: var(--ibmp-primary); text-decoration: none; font-size: 14px; font-weight: 600; }

.ibmp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ibmp-quick__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ibmp-border);
  background: #fff; color: var(--ibmp-text); text-decoration: none; font-weight: 700; font-size: 13px;
}
.ibmp-quick__btn--primary { background: var(--ibmp-primary); border-color: var(--ibmp-primary); color: #fff; }
.ibmp-quick__btn--full { width: 100%; border: none; cursor: pointer; }

.ibmp-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ibmp-field span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--ibmp-muted); }
.ibmp-field input, .ibmp-field select, .ibmp-pix-copy {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--ibmp-border); font-size: 15px;
}
.ibmp-pix-box textarea { margin: 10px 0; font-family: monospace; font-size: 12px; }
.ibmp-pix-expiry { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; line-height: 1.45; }
.ibmp-pix-expiry strong { color: #b45309; }

.ibmp-contrib-right { text-align: right; }
.ibmp-status { display: block; font-size: 10px; text-transform: uppercase; font-weight: 700; }
.ibmp-status--concluido { color: #16a34a; }
.ibmp-status--pendente { color: #d97706; }
.ibmp-status--falhou { color: #dc2626; }

.ibmp-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); height: var(--ibmp-nav-h);
  display: flex; background: #fff; border-top: 1px solid var(--ibmp-border);
  padding-bottom: env(safe-area-inset-bottom, 0); z-index: 50;
}
.ibmp-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ibmp-muted); font-size: 10px; font-weight: 600;
  min-width: 0; padding: 0 2px;
}
.ibmp-nav--6 .ibmp-nav__item { font-size: 9px; }
.ibmp-nav--6 .ibmp-nav__icon { width: 20px; height: 20px; }
.ibmp-nav__item--active { color: var(--ibmp-primary); }
.ibmp-nav__icon { width: 22px; height: 22px; background: currentColor; opacity: .35; border-radius: 4px; }
.ibmp-nav__item--active .ibmp-nav__icon { opacity: 1; }
.ibmp-nav__icon--home { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--calendar { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--heart { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20s-6.5-4.2-8.8-7.4C1.4 10.2 2.6 6.5 5.8 5.4c1.8-.6 3.6.1 4.7 1.5 1.1-1.4 2.9-2.1 4.7-1.5 3.2 1.1 4.4 4.8 2.6 7.2C18.5 15.8 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--book { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 4h9a3 3 0 0 1 3 3v15H8a3 3 0 0 1-3-3V4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--user { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }

/* Login */
.ibmp-login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; background: linear-gradient(180deg, var(--ibmp-primary) 0%, #163a6b 45%, var(--ibmp-bg) 45%); }
.ibmp-login__brand { text-align: center; color: #fff; margin-bottom: 24px; }
.ibmp-login__brand h1 { margin: 8px 0 4px; font-size: 22px; }
.ibmp-login__brand p { margin: 0; opacity: .9; font-size: 14px; }
.ibmp-login__cross { font-size: 42px; display: block; }
.ibmp-login__card { background: #fff; border-radius: 16px; padding: 22px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.ibmp-login__card h2 { margin: 0 0 4px; font-size: 20px; }
.ibmp-login__card .sub { margin: 0 0 18px; color: var(--ibmp-muted); font-size: 13px; }
.ibmp-login__links { margin-top: 14px; text-align: center; font-size: 13px; }
.ibmp-login__links a { color: var(--ibmp-primary); font-weight: 600; }

.ibmp-audio { width: 100%; margin-top: 12px; }

/* Login moderno + cadastro */
.ibmp-login--modern { background: linear-gradient(160deg, var(--ibmp-primary) 0%, #0f2d52 50%, var(--ibmp-bg) 50%); }
.ibmp-login--wide { padding-bottom: 40px; }
.ibmp-login__hero { text-align: center; color: #fff; margin-bottom: 20px; }
.ibmp-login__hero h1 { margin: 8px 0 4px; font-size: 24px; }
.ibmp-login__card--modern, .ibmp-login__card--wide { max-width: 420px; margin: 0 auto; width: 100%; }
.ibmp-login__card--wide { max-width: 520px; }
.ibmp-login__oauth { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ibmp-border); text-align: center; }
.ibmp-login__oauth-note { font-size: 11px; color: var(--ibmp-muted); margin: 0 0 8px; }
.ibmp-login__oauth-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ibmp-oauth { font-size: 11px; padding: 6px 12px; border-radius: 8px; background: #f1f5f9; color: #94a3b8; }
.ibmp-oauth--disabled { opacity: .7; }

.ibmp-fieldset { border: 1px solid var(--ibmp-border); border-radius: 12px; padding: 12px; margin: 0; }
.ibmp-fieldset legend { font-size: 12px; font-weight: 700; color: var(--ibmp-primary); padding: 0 6px; }
.ibmp-form--grid { display: flex; flex-direction: column; gap: 14px; }
.ibmp-form--grid .ibmp-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ibmp-form--grid .ibmp-field--full { grid-column: 1 / -1; }
.ibmp-form--grid .ibmp-field--check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.ibmp-field textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--ibmp-border); font-size: 15px; font-family: inherit; resize: vertical; }

/* Perfil + oração */
.ibmp-profile-head { display: flex; gap: 14px; align-items: flex-start; }
.ibmp-profile-head__info { flex: 1; min-width: 0; }
.ibmp-profile-head__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.ibmp-profile-head__avatar--empty { background: linear-gradient(145deg, var(--ibmp-primary), var(--ibmp-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ibmp-avatar-upload { flex-shrink: 0; text-align: center; margin: 0; }
.ibmp-avatar-picker { position: relative; display: inline-block; cursor: pointer; }
.ibmp-avatar-picker__input { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.ibmp-avatar-picker__badge {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ibmp-gold, #c9a227); color: #fff; font-size: 16px; font-weight: 800; line-height: 24px;
  text-align: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ibmp-avatar-picker__hint { margin: 6px 0 0; font-size: 11px; color: var(--ibmp-muted); max-width: 88px; line-height: 1.3; }
.ibmp-avatar-picker__icon { font-size: 28px; line-height: 1; }
.ibmp-role-badge { display: inline-block; margin: 4px 6px 4px 0; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #e0e7ff; color: var(--ibmp-primary); }
.ibmp-role-badge--pastor { background: #fef3c7; color: #92400e; }
.ibmp-role-badge--admin { background: #fee2e2; color: #991b1b; }
.ibmp-role-badge--visitante { background: #f1f5f9; color: #64748b; }
.ibmp-muted--ok { color: #16a34a; }
.ibmp-link-btn { background: none; border: none; color: var(--ibmp-primary); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.ibmp-prayer-reply { margin-top: 10px; padding: 10px; background: #f0fdf4; border-radius: 10px; font-size: 13px; }
.ibmp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ibmp-stats__item { background: var(--ibmp-card); border: 1px solid var(--ibmp-border); border-radius: 12px; padding: 10px; text-align: center; }
.ibmp-stats__item strong { display: block; font-size: 20px; color: var(--ibmp-primary); }
.ibmp-stats__item span { font-size: 10px; color: var(--ibmp-muted); }
.ibmp-nav__icon--prayer { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3 4 9v12h6v-7h4v7h6V9z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--video { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M17 10l4-2v8l-4-2z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.ibmp-nav__icon--grid { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='3' width='8' height='8' rx='1'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }

.ibmp-mais-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ibmp-mais-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: var(--ibmp-card); border: 1px solid var(--ibmp-border); border-radius: 14px;
  text-decoration: none; color: inherit; min-height: 72px;
}
.ibmp-mais-card strong { font-size: 14px; color: var(--ibmp-primary); }
.ibmp-mais-card span { font-size: 12px; color: var(--ibmp-muted); line-height: 1.35; }

.ibmp-onboard {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.ibmp-onboard[hidden] { display: none !important; }
.ibmp-onboard__card {
  width: min(100%, 420px); background: #fff; border-radius: 20px 20px 16px 16px;
  padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.ibmp-onboard__dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.ibmp-onboard__dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ibmp-onboard__dot--active { background: var(--ibmp-primary); width: 20px; border-radius: 999px; }
.ibmp-onboard__card h2 { margin: 0 0 8px; font-size: 18px; color: var(--ibmp-primary); }
.ibmp-onboard__card p { margin: 0 0 12px; font-size: 14px; color: var(--ibmp-muted); line-height: 1.5; }
.ibmp-onboard__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }

.ibmp-card--pastoral { border-left: 4px solid var(--ibmp-primary); }
.ibmp-cell-member { flex-wrap: wrap; }
.ibmp-cell-member__action { margin-left: auto; }
.ibmp-link-btn--danger { color: #b91c1c; }

@media (max-width: 480px) {
  .ibmp-form--grid .ibmp-fieldset { grid-template-columns: 1fr; }
  .ibmp-quick { grid-template-columns: 1fr; }
}

.ibmp-quick--3 { grid-template-columns: 1fr 1fr; }
.ibmp-bible-nav { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.ibmp-bible-text h2 { margin: 0 0 12px; font-size: 17px; }
.ibmp-bible-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.ibmp-bible-text sup { color: var(--ibmp-primary); font-weight: 700; margin-right: 4px; }
.ibmp-bible-pager { display: flex; gap: 10px; margin-top: 12px; }
.ibmp-ministry-card { display: flex; gap: 14px; align-items: center; }
.ibmp-ministry-card__icon { font-size: 28px; }
.ibmp-chat { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 320px; }
.ibmp-chat__messages { flex: 1; overflow-y: auto; border: 1px solid var(--ibmp-border); border-radius: 12px; padding: 12px; background: #fff; margin-bottom: 10px; }
.ibmp-chat__msg { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ibmp-border); }
.ibmp-chat__msg p { margin: 4px 0; font-size: 14px; }
.ibmp-chat__msg small { color: var(--ibmp-muted); font-size: 11px; }
.ibmp-chat__form { display: flex; gap: 8px; }
.ibmp-chat__form input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--ibmp-border); }
.ibmp-oauth--google { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--ibmp-border); color: var(--ibmp-text); text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ibmp-oauth--facebook { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 12px; background: #1877f2; border: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ibmp-oauth--apple { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 12px; background: #000; border: none; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.ibmp-cart-row { display: flex; gap: 12px; align-items: flex-start; }
.ibmp-cart-row__img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.ibmp-cart-row__body { flex: 1; }
.ibmp-cart-row__form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ibmp-qty-input { width: 70px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--ibmp-border); font-size: 15px; }

.ibmp-header__icon { position: relative; color: #fff; text-decoration: none; font-size: 18px; margin-right: 8px; }

.ibmp-cell-card { position: relative; }
.ibmp-cell-card--mine { border-color: var(--ibmp-primary); }
.ibmp-cell-card__badge { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; color: var(--ibmp-primary); }
.ibmp-cell-meta { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.ibmp-cell-meta li { margin-bottom: 8px; }
.ibmp-cell-member { display: flex; gap: 12px; align-items: center; }
.ibmp-cell-member__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ibmp-cell-member__avatar--empty { background: var(--ibmp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.ibmp-lib-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.ibmp-lib-cat { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ibmp-border); text-decoration: none; color: var(--ibmp-text); font-size: 13px; font-weight: 600; }
.ibmp-lib-cat--active { background: var(--ibmp-primary); border-color: var(--ibmp-primary); color: #fff; }
.ibmp-lib-item h3 { margin-top: 6px; }
.ibmp-lib-item__tipo { font-size: 11px; font-weight: 700; color: var(--ibmp-muted); text-transform: uppercase; }
.ibmp-card--locked { opacity: .85; background: #f8fafc; }
.ibmp-card--success { border-color: #16a34a; background: #f0fdf4; }
.ibmp-material__desc { margin: 12px 0; font-size: 15px; line-height: 1.55; color: #334155; }
.ibmp-material__viewer { margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ibmp-border); background: #fff; }
.ibmp-material__viewer iframe { width: 100%; height: min(70vh, 520px); border: none; display: block; }

.ibmp-progress { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.ibmp-progress--lg { height: 10px; }
.ibmp-progress__bar { height: 100%; background: linear-gradient(90deg, var(--ibmp-primary), var(--ibmp-gold)); border-radius: 999px; transition: width .3s ease; }
.ibmp-lesson-row { display: flex; gap: 14px; align-items: center; }
.ibmp-lesson-row__num { width: 36px; height: 36px; border-radius: 50%; background: var(--ibmp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.ibmp-lesson-nav { display: flex; gap: 10px; margin-top: 16px; }
.ibmp-lesson-nav .ibmp-quick__btn { flex: 1; }
.ibmp-video-wrap { margin-bottom: 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; max-width: 100%; margin-left: auto; margin-right: auto; }
.ibmp-video-wrap--vertical { aspect-ratio: 9/16; max-width: min(100%, 360px); }
.ibmp-video-wrap iframe, .ibmp-video-wrap video { width: 100%; height: 100%; border: none; display: block; object-fit: contain; background: #000; }
.ibmp-video-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ibmp-pill--platform { background: #dbeafe; color: #1e4d8c; }
.ibmp-media-wrap--audio { margin-bottom: 16px; border-radius: 14px; overflow: hidden; background: var(--ibmp-card); border: 1px solid var(--ibmp-border); padding: 14px; }
.ibmp-media-wrap--audio .ibmp-audio { width: 100%; }
.ibmp-media-wrap--audio iframe { width: 100%; min-height: 166px; border: none; display: block; border-radius: 10px; }

.ibmp-notif--unread { border-left: 4px solid var(--ibmp-primary); }
.ibmp-radio-player { text-align: center; padding: 24px 16px; }
.ibmp-radio-player__disc { font-size: 48px; margin-bottom: 12px; }
.ibmp-radio-player__status { font-weight: 700; margin-bottom: 12px; color: var(--ibmp-muted); }
.ibmp-radio-player__status--live { color: #16a34a; }
.ibmp-radio-player audio { width: 100%; margin-top: 8px; }
.ibmp-push--active { opacity: .85; }

.ibmp-hero__link { display: inline-block; margin-top: 10px; color: #fff; font-size: 13px; font-weight: 600; opacity: .92; text-decoration: none; }
.ibmp-hero__link:hover { text-decoration: underline; }

.ibmp-plans { display: grid; gap: 14px; margin-top: 16px; }
.ibmp-plan-card { background: var(--ibmp-card); border: 1px solid var(--ibmp-border); border-radius: 14px; padding: 18px; }
.ibmp-plan-card--current { border-color: var(--ibmp-primary); box-shadow: 0 0 0 1px var(--ibmp-primary); }
.ibmp-plan-card--ouro { border-color: rgba(201,162,39,.45); }
.ibmp-plan-card h3 { margin: 8px 0 4px; font-size: 20px; }
.ibmp-plan-card__price { font-size: 24px; font-weight: 800; margin: 0 0 12px; color: var(--ibmp-primary); }
.ibmp-plan-card__price small { font-size: 13px; font-weight: 600; color: var(--ibmp-muted); margin-left: 4px; }
.ibmp-plan-card__list { margin: 0 0 14px; padding-left: 18px; color: #334155; font-size: 14px; line-height: 1.5; }

.ibmp-partner-card { display: flex; gap: 14px; align-items: flex-start; }
.ibmp-partner-card__logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--ibmp-border); }
.ibmp-partner-card__logo--empty { display: flex; align-items: center; justify-content: center; background: #f1f5f9; font-size: 24px; }

.ibmp-login__logo-img { max-width: 88px; max-height: 88px; object-fit: contain; margin-bottom: 8px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Auth produção — cadastro, login, 2FA, 404 */
.ibmp-auth { padding-bottom: 32px; }
.ibmp-auth-hero { text-align: center; color: #fff; margin-bottom: 16px; }
.ibmp-auth-hero h1 { margin: 8px 0 4px; font-size: 24px; font-weight: 800; }
.ibmp-auth-hero p, .ibmp-auth-hero__tagline { margin: 0; opacity: .92; font-size: 14px; }
.ibmp-auth-hero__tagline { margin-top: 10px; }
.ibmp-auth-hero__logo { max-width: 220px; max-height: 160px; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); background: #000; padding: 8px; }

/* Branding — agenda e projeto social */
.ibmp-brand-banner { margin: 0 0 16px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.ibmp-brand-banner img { display: block; width: 100%; height: auto; }
.ibmp-brand-banner--agenda { border: 1px solid var(--ibmp-border); }
.ibmp-brand-sign { text-align: center; font-size: 14px; color: var(--ibmp-muted); margin: 8px 0 16px; }
.ibmp-card--schedule time { font-weight: 800; color: var(--ibmp-primary); min-width: 52px; }
.ibmp-card--projeto { display: flex; gap: 12px; align-items: center; padding: 0; overflow: hidden; }
.ibmp-card--projeto .ibmp-card__thumb { width: 96px; height: 96px; object-fit: cover; flex-shrink: 0; }
.ibmp-card--projeto div { padding: 12px 12px 12px 0; }
.ibmp-header__logo--img { background: #000; padding: 4px; object-fit: contain; }
.ibmp-auth-hero__icon { font-size: 44px; display: block; line-height: 1; }

.ibmp-auth-tabs { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 14px; width: 100%; padding: 0 2px; }
.ibmp-auth-tabs__item {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.88); text-decoration: none;
  font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.22);
  transition: background .15s ease, color .15s ease;
}
.ibmp-auth-tabs__item--active { background: #fff; color: var(--ibmp-primary); border-color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }

.ibmp-auth-card { margin-bottom: 8px; }
.ibmp-auth-card--center { text-align: center; }
.ibmp-auth-progress { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ibmp-primary); text-transform: uppercase; letter-spacing: .04em; }
.ibmp-auth-progress-bar { height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.ibmp-auth-progress-bar span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--ibmp-primary), var(--ibmp-gold, #c9a227)); border-radius: 999px; transition: width .25s ease; }

.ibmp-auth-step__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ibmp-text); }
.ibmp-form--auth { margin-bottom: 0; }
.ibmp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ibmp-form-grid .ibmp-field--full { grid-column: 1 / -1; }
.ibmp-form-grid .ibmp-field--check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.ibmp-form-grid .ibmp-field--check span { margin: 0; }
.ibmp-form-grid .ibmp-field--file input[type="file"] {
  padding: 10px; background: #f8fafc; font-size: 13px;
}
.ibmp-field input:focus, .ibmp-field select:focus, .ibmp-field textarea:focus {
  outline: none; border-color: var(--ibmp-primary); box-shadow: 0 0 0 3px rgba(30,77,140,.12);
}

.ibmp-auth-nav { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ibmp-auth-nav [hidden] { display: none !important; }
.ibmp-auth-step[hidden] { display: none !important; }
.ibmp-auth-nav .ibmp-quick__btn--primary { flex: 1; min-width: 120px; }
.ibmp-auth-nav [data-auth-submit] { flex: 1 1 100%; }

.ibmp-auth-note { margin: 14px 0 0; font-size: 11px; color: var(--ibmp-muted); line-height: 1.45; text-align: center; }
.ibmp-auth-footer { text-align: center; color: var(--ibmp-muted); font-size: 12px; margin-top: 16px; padding: 0 8px; }
.ibmp-auth-footer p { margin: 0 0 4px; }
.ibmp-auth-footer a { color: var(--ibmp-primary); font-weight: 600; text-decoration: none; }
.ibmp-auth-footer a:hover { text-decoration: underline; }

.ibmp-auth-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: var(--ibmp-primary); font-size: 22px; font-weight: 800;
}
.ibmp-auth-icon--ok { background: #dcfce7; color: #16a34a; }
.ibmp-auth-icon--warn { background: #fef3c7; color: #d97706; }
.ibmp-input--code { text-align: center; font-size: 22px; letter-spacing: .35em; font-weight: 700; }
.ibmp-auth-inline-form { margin-top: 10px; text-align: center; }

.ibmp-body--login .ibmp-flash {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100; max-width: min(420px, calc(100% - 24px)); width: 100%;
  margin: 0; padding: 12px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--ibmp-border);
  box-shadow: 0 8px 28px rgba(0,0,0,.12); font-size: 13px; font-weight: 600;
  animation: ibmp-flash-in .25s ease;
}
@keyframes ibmp-flash-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 480px) {
  .ibmp-form-grid { grid-template-columns: 1fr; }
  .ibmp-auth-nav { flex-direction: column; }
  .ibmp-auth-nav .ibmp-quick__btn { width: 100%; }
}

.ibmp-shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ibmp-shop-card {
  display: block; background: var(--ibmp-card); border: 1px solid var(--ibmp-border); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ibmp-shop-card:hover, .ibmp-shop-card:focus-visible {
  transform: translateY(-2px); border-color: rgba(30,77,140,.3);
  box-shadow: 0 8px 24px rgba(30,77,140,.12);
}
.ibmp-shop-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f1f5f9; }
.ibmp-shop-card__img--empty { display: flex; align-items: center; justify-content: center; font-size: 36px; aspect-ratio: 1; background: linear-gradient(145deg, #f1f5f9, #e2e8f0); }
.ibmp-shop-card__body { padding: 12px; }
.ibmp-shop-card__body h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; }
.ibmp-shop-card__price { margin: 0; font-weight: 800; color: var(--ibmp-primary); font-size: 15px; }
.ibmp-shop-detail__img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 14px; background: #f1f5f9; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ibmp-shop-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

@media (max-width: 380px) {
  .ibmp-shop-grid { grid-template-columns: 1fr; }
}

/* Badges de engajamento */
.ibmp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ibmp-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: #eef2ff; color: var(--ibmp-primary); border: 1px solid #c7d2fe;
}

/* WhatsApp share */
.ibmp-quick__btn--whatsapp {
  background: #25d366; color: #fff; border: none;
}
.ibmp-quick__btn--whatsapp:hover { background: #1da851; }

/* Live / vídeo embed */
.ibmp-live-embed { margin-bottom: 14px; }
.ibmp-video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; background: #0f172a; margin-bottom: 10px;
}
.ibmp-video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Modo escuro */
html[data-theme="dark"] {
  --ibmp-bg: #0f172a;
  --ibmp-card: #1e293b;
  --ibmp-text: #e2e8f0;
  --ibmp-muted: #94a3b8;
  --ibmp-border: #334155;
}
html[data-theme="dark"] .ibmp-header {
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
html[data-theme="dark"] .ibmp-nav {
  background: var(--ibmp-card); border-top-color: var(--ibmp-border);
}
html[data-theme="dark"] .ibmp-card,
html[data-theme="dark"] .ibmp-quick__btn:not(.ibmp-quick__btn--primary):not(.ibmp-quick__btn--whatsapp) {
  background: var(--ibmp-card); color: var(--ibmp-text);
}
html[data-theme="dark"] .ibmp-field input,
html[data-theme="dark"] .ibmp-field select,
html[data-theme="dark"] .ibmp-field textarea {
  background: #0f172a; color: var(--ibmp-text); border-color: var(--ibmp-border);
}
html[data-theme="dark"] .ibmp-badge {
  background: #1e3a5f; color: #bfdbfe; border-color: #334155;
}
html[data-theme="dark"] .ibmp-points-badge--inline {
  background: #0f172a; color: var(--ibmp-text);
}
html[data-theme="dark"] .ibmp-flash {
  background: var(--ibmp-card); border-color: var(--ibmp-border); color: var(--ibmp-text);
}
