/* Reset básico para o contexto do dashboard */
*, *::before, *::after { box-sizing: border-box; }

body.jm-dashboard-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-sand);
  margin: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.jm-dashboard {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.jm-main {
  padding: var(--space-8);
  overflow-y: auto;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.jm-sidebar {
  background: var(--color-ink);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.jm-sidebar__brand {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.jm-sidebar__brand img { display: block; }

.jm-sidebar__nav { flex: 1; padding: var(--space-4) 0; }

.jm-sidebar__nav ul { list-style: none; margin: 0; padding: 0; }

.jm-sidebar__nav li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  border-radius: 0;
}

.jm-sidebar__nav li a:hover,
.jm-sidebar__nav li.is-active a {
  background: rgba(255,255,255,.08);
  color: var(--color-white);
}

.jm-sidebar__nav li.is-active a {
  border-left: 3px solid var(--color-sky);
}

.jm-sidebar__logout { margin-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.08); }

.jm-sidebar__user {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.jm-sidebar__user strong { color: var(--color-white); font-size: var(--text-sm); }

/* ── Page Header ─────────────────────────────────────────────────────────── */
.jm-page-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.jm-page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 .2rem;
}

.jm-page-subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
}

.jm-page-header--center { text-align: center; flex-direction: column; }
.jm-page-header--center h1 { margin: 0 auto; }

/* ── Cards grid ──────────────────────────────────────────────────────────── */
.jm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.jm-stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
  border-left: 4px solid transparent;
}

.jm-stat-card--warning { border-left: 4px solid var(--color-warning); }
.jm-stat-card--alert   { border-left: 4px solid var(--color-danger); }

.jm-stat-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-ocean);
}

.jm-stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.jm-stat-card__link {
  font-size: var(--text-xs);
  color: var(--color-ocean);
  text-decoration: none;
  margin-top: var(--space-2);
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.jm-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}

.jm-table thead tr { background: var(--color-ink); }
.jm-table thead th { color: var(--color-white); padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; }
.jm-table tbody tr { border-bottom: 1px solid var(--color-border); }
.jm-table tbody tr:last-child { border-bottom: none; }
.jm-table tbody tr:hover { background: var(--color-sand); }
.jm-table td { padding: var(--space-3) var(--space-4); vertical-align: middle; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.jm-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.jm-badge--confirmada,  .jm-badge--ativo,     .jm-badge--aprovado,  .jm-badge--success { background: #D1FAE5; color: #065F46; }
.jm-badge--pendente,    .jm-badge--aguardando_pagamento { background: #FEF3C7; color: #92400E; }
.jm-badge--cancelada,   .jm-badge--reprovado, .jm-badge--danger    { background: #FEE2E2; color: #991B1B; }
.jm-badge--em_andamento { background: #DBEAFE; color: #1E40AF; }
.jm-badge--concluida    { background: #E0E7FF; color: #3730A3; }
.jm-badge--suspenso     { background: #F3F4F6; color: #374151; }
.jm-badge--vencido      { background: #FEE2E2; color: #991B1B; }

.jm-badge--marinheiro   { background: #DBEAFE; color: #1E40AF; }
.jm-badge--capitao      { background: #EDE9FE; color: #5B21B6; }
.jm-badge--almirante    { background: #FEF3C7; color: #92400E; }

.jm-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
}

/* ── Role badge ──────────────────────────────────────────────────────────── */
.jm-role-badge { font-size: var(--text-xs); opacity: .7; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.jm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.jm-btn--primary  { background: var(--color-ocean); color: var(--color-white); }
.jm-btn--primary:hover  { background: var(--color-ocean-dark); }
.jm-btn--outline  { background: transparent; border-color: var(--color-ocean); color: var(--color-ocean); }
.jm-btn--outline:hover  { background: var(--color-ocean); color: var(--color-white); }
.jm-btn--danger   { background: var(--color-danger); color: var(--color-white); }
.jm-btn--success  { background: var(--color-success); color: var(--color-white); }
.jm-btn--warning  { background: var(--color-warning); color: var(--color-white); }
.jm-btn--sm       { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.jm-btn--full     { width: 100%; }
.jm-btn-group     { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.jm-form { max-width: 640px; }
.jm-form__section { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
.jm-form__section legend { font-weight: 600; padding: 0 var(--space-2); color: var(--color-ocean); }
.jm-form__group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.jm-form__row   { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); }

.jm-form label  { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-mid); }

.jm-form input[type="text"],
.jm-form input[type="email"],
.jm-form input[type="password"],
.jm-form input[type="number"],
.jm-form input[type="date"],
.jm-form input[type="datetime-local"],
.jm-form input[type="tel"],
.jm-form select,
.jm-form textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
  transition: border-color var(--dur-fast);
  width: 100%;
}

.jm-form input:focus,
.jm-form select:focus,
.jm-form textarea:focus {
  outline: none;
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 3px rgba(0,119,182,.15);
}

.jm-form input:disabled { background: var(--color-sand); color: var(--color-muted); cursor: not-allowed; }
.jm-form small { color: var(--color-muted); font-size: var(--text-xs); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.jm-alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}
.jm-alert--success { background: #D1FAE5; color: #065F46; border-color: var(--color-success); }
.jm-alert--error   { background: #FEE2E2; color: #991B1B; border-color: var(--color-danger); }
.jm-alert--warning { background: #FEF3C7; color: #92400E; border-color: var(--color-warning); }

/* ── Detail grid ─────────────────────────────────────────────────────────── */
.jm-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.jm-detail-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.jm-detail-card--full { grid-column: 1 / -1; }
.jm-detail-card h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin: 0 0 var(--space-2); }
.jm-detail-card p  { margin: 0; font-size: var(--text-sm); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.jm-empty-state { text-align: center; padding: var(--space-16) var(--space-8); color: var(--color-muted); }
.jm-empty-text  { color: var(--color-muted); font-size: var(--text-sm); padding: var(--space-4); }

/* ── Messages layout ─────────────────────────────────────────────────────── */
.jm-messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  height: calc(100vh - 240px);
  min-height: 400px;
}

.jm-messages-list {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.jm-messages-list__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-ink);
  font-size: var(--text-sm);
  transition: background var(--dur-fast);
}

.jm-messages-list__item:hover,
.jm-messages-list__item.is-active { background: var(--color-sand); }

.jm-messages-chat {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.jm-chat-messages { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }

.jm-chat-bubble { max-width: 75%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); font-size: var(--text-sm); line-height: 1.5; }
.jm-chat-bubble--sent     { background: var(--color-ocean); color: var(--color-white); align-self: flex-end; border-bottom-right-radius: 4px; }
.jm-chat-bubble--received { background: var(--color-sand); color: var(--color-ink);   align-self: flex-start; border-bottom-left-radius: 4px; }
.jm-chat-bubble__time     { font-size: var(--text-xs); opacity: .65; display: block; margin-top: var(--space-1); }

.jm-chat-form { display: flex; gap: var(--space-3); padding: var(--space-4); border-top: 1px solid var(--color-border); }
.jm-chat-form textarea { flex: 1; resize: none; border-radius: var(--radius); }

/* ── Embarcação grid ─────────────────────────────────────────────────────── */
.jm-emb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }

.jm-emb-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.jm-emb-card img { width: 100%; height: 160px; object-fit: cover; }
.jm-emb-card__body { padding: var(--space-4); }
.jm-emb-card__body h3 { margin: 0 0 var(--space-2); font-size: var(--text-md); }
.jm-emb-card__actions { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); }

/* ── Planos grid ─────────────────────────────────────────────────────────── */
.jm-planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); margin: var(--space-8) 0; }

.jm-plano-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border: 2px solid transparent;
  transition: border-color var(--dur-normal), transform var(--dur-normal);
}

.jm-plano-card--featured { border-color: var(--color-ocean); transform: scale(1.02); }
.jm-plano-card--atual    { border-color: var(--color-success); }
.jm-plano-card__popular  { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-ocean); color: white; font-size: var(--text-xs); font-weight: 700; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.jm-plano-card h2, .jm-plano-card h3 { font-size: var(--text-xl); margin: 0; text-transform: capitalize; }
.jm-plano-card__price { font-size: var(--text-2xl); font-weight: 800; color: var(--color-ocean); }
.jm-plano-card__currency { font-size: var(--text-lg); vertical-align: super; }
.jm-plano-card__period   { font-size: var(--text-sm); color: var(--color-muted); font-weight: 400; }
.jm-plano-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); }
.jm-plano-card__features li::before { content: '✓ '; color: var(--color-success); font-weight: 700; }
.jm-plano-card .jm-btn { margin-top: auto; }

/* ── Calendário wrapper ──────────────────────────────────────────────────── */
.jm-calendario-wrapper { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); min-height: 400px; }
.jm-calendario-controls { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }

/* ── Moderação actions ───────────────────────────────────────────────────── */
.jm-moderacao-actions {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-6);
}

.jm-moderacao-actions h3 { margin: 0 0 var(--space-4); }

/* ── Info box ────────────────────────────────────────────────────────────── */
.jm-info-box { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin: var(--space-4) 0; font-size: var(--text-sm); color: #1E40AF; }
.jm-info-box--center { text-align: center; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.jm-section { margin-bottom: var(--space-8); }
.jm-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.jm-section-title { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.jm-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-6) 0; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.jm-reviews-list { display: flex; flex-direction: column; gap: var(--space-4); }
.jm-review-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.jm-review-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.jm-review-card__comment { color: var(--color-ink-mid); font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.jm-review-card__date    { color: var(--color-muted); font-size: var(--text-xs); }

.jm-stars { display: flex; gap: var(--space-1); }
.jm-star  { font-size: 1.5rem; cursor: pointer; color: var(--color-border); background: none; border: none; padding: 0; transition: color var(--dur-fast); }
.jm-star.is-active, .jm-star--filled { color: var(--color-warning); }
.jm-stars-display { display: flex; gap: 2px; }

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.jm-avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-border); margin-bottom: var(--space-2); }

/* ── Foto grid ───────────────────────────────────────────────────────────── */
.jm-foto-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.jm-foto-grid img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); }

/* ── Bloqueio form ───────────────────────────────────────────────────────── */
.jm-bloqueio-form { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); margin-top: var(--space-4); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .jm-dashboard { grid-template-columns: 1fr; }
  .jm-sidebar { position: fixed; left: -100%; top: 0; z-index: 100; height: 100vh; transition: left var(--dur-normal); width: 280px; }
  .jm-sidebar.is-open { left: 0; }
  .jm-main { padding: var(--space-4); }
  .jm-messages-layout { grid-template-columns: 1fr; }
  .jm-planos-grid { grid-template-columns: 1fr; }
  .jm-plano-card--featured { transform: none; }
}

/* ── Auth Pages (login, cadastro, etc.) ──────────────────────────────────── */
.jm-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 60%, #F4F1E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  font-family: var(--font-sans);
}

.jm-auth-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.jm-auth-card--wide { max-width: 600px; }

.jm-auth-card__brand {
  text-align: center;
  margin-bottom: var(--space-6);
}

.jm-auth-card__brand a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.jm-brand-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-ocean);
  letter-spacing: -0.02em;
}

.jm-auth-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 var(--space-2);
  text-align: center;
}

.jm-auth-card__subtitle {
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
  margin: 0 0 var(--space-6);
}

.jm-auth-card__footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.jm-auth-card__footer p { margin: var(--space-1) 0; }
.jm-auth-card__footer a { color: var(--color-ocean); text-decoration: none; font-weight: 600; }
.jm-auth-card__footer a:hover { text-decoration: underline; }

/* Label com link inline */
.jm-form__label-link {
  float: right;
  font-size: var(--text-xs);
  color: var(--color-ocean);
  text-decoration: none;
  font-weight: 500;
}
.jm-form__label-link:hover { text-decoration: underline; }

/* Input com botão toggle */
.jm-input-with-toggle {
  position: relative;
  display: flex;
}
.jm-input-with-toggle input { padding-right: 2.5rem; flex: 1; }
.jm-toggle-pass {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  color: var(--color-muted);
}

/* Checkbox labels */
.jm-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-mid);
  cursor: pointer;
  margin-bottom: var(--space-2);
  font-weight: 400 !important;
}
.jm-checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.jm-checkbox-label a { color: var(--color-ocean); }

/* Inline checkbox group */
.jm-form__group--inline label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
}

/* ── Indicador de etapas ──────────────────────────────────────────────────── */
.jm-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  position: relative;
}

.jm-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.jm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  position: relative;
  z-index: 1;
}

.jm-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-muted);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-normal);
}

.jm-step.is-active .jm-step__num {
  background: var(--color-ocean);
  color: var(--color-white);
}

.jm-step.is-done .jm-step__num {
  background: var(--color-success);
  color: var(--color-white);
}

.jm-step__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
  white-space: nowrap;
}

.jm-step.is-active .jm-step__label { color: var(--color-ocean); font-weight: 600; }

.jm-auth-step-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: #1E40AF;
  margin-bottom: var(--space-5);
}

@media (max-width: 480px) {
  .jm-auth-card { padding: var(--space-6); }
  .jm-auth-card--wide { padding: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR — ícones SVG inline (renderizados via jm_nav_icon() no PHP)
═══════════════════════════════════════════════════════════════════════════ */
.jm-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .75;
}
.jm-sidebar__nav li.is-active a .jm-nav-icon,
.jm-sidebar__nav li a:hover .jm-nav-icon { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT — texto da bolha (estava sem estilo)
═══════════════════════════════════════════════════════════════════════════ */
.jm-chat-bubble__text {
  font-size: var(--text-sm);
  line-height: 1.5;
  word-break: break-word;
}
.jm-chat-bubble__name {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: .2rem;
  opacity: .75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES — planos de locador
═══════════════════════════════════════════════════════════════════════════ */
.jm-badge--plano {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .6rem;
}
.jm-badge--marinheiro {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.jm-badge--capitao {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.jm-badge--almirante {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE HEADER + HAMBURGER
═══════════════════════════════════════════════════════════════════════════ */
.jm-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1rem;
  background: var(--color-ink);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.jm-mobile-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
}

.jm-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}
.jm-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.jm-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jm-hamburger.is-open span:nth-child(2) { opacity: 0; }
.jm-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jm-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.jm-sidebar-overlay.is-visible { display: block; }

@media (max-width: 768px) {
  .jm-mobile-header { display: flex; }
  .jm-sidebar { top: 0; z-index: 100; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIX COPIED — substitui inline color
═══════════════════════════════════════════════════════════════════════════ */
.jm-pix-copied-msg {
  color: var(--color-success);
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.jm-pix-copied-msg::before { content: '✓'; }

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES — padrão unificado para todos os painéis
═══════════════════════════════════════════════════════════════════════════ */
.jm-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-muted);
}
.jm-empty__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  opacity: .4;
}
.jm-empty__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 .4rem;
}
.jm-empty__sub {
  font-size: var(--text-sm);
  margin: 0 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING SKELETON
═══════════════════════════════════════════════════════════════════════════ */
.jm-skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-sand) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: jm-shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes jm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════════════════════════ */
.jm-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
  max-width: 320px;
}
.jm-toast.is-visible { transform: translateY(0); opacity: 1; }
.jm-toast--success { background: var(--color-success); }
.jm-toast--error   { background: var(--color-danger); }

/* ═══════════════════════════════════════════════════════════════════════════
   PÁGINA PRINCIPAL — melhorias auth
═══════════════════════════════════════════════════════════════════════════ */
.jm-auth-page { padding-top: 0; }

.jm-auth-card__brand img { height: 36px; width: auto; }

/* Separador ou entre métodos de login */
.jm-auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: var(--space-5) 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
}
.jm-auth-divider::before,
.jm-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Melhorar botão submit da auth */
.jm-auth-card .jm-btn--primary {
  padding: .875rem 1.5rem;
  font-size: var(--text-base);
  margin-top: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAT CARDS — variantes de cor
═══════════════════════════════════════════════════════════════════════════ */
.jm-stat-card--info {
  border-left-color: var(--color-ocean);
  background: linear-gradient(135deg, #fff 0%, #e0f2fe 100%);
}
.jm-stat-card--success {
  border-left-color: var(--color-success);
  background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABELA — melhorias
═══════════════════════════════════════════════════════════════════════════ */
.jm-table td .jm-badge { white-space: nowrap; }
.jm-table tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   INFO BOX
═══════════════════════════════════════════════════════════════════════════ */
.jm-info-box {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: #0369a1;
  margin-bottom: var(--space-5);
}
.jm-info-box p { margin: 0; }
.jm-info-box a { color: #0369a1; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════════════
   CHAT — fixes de layout e scroll
═══════════════════════════════════════════════════════════════════════════ */
.jm-messages-chat { overflow: hidden; }
.jm-chat-messages { min-height: 0; }

.jm-chat-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

/* List item: badge à direita */
.jm-messages-list__item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.jm-messages-list__item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jm-messages-list__item-body strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-sm);
}

.jm-messages-list__item-body small {
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEUS DADOS — tabela info
═══════════════════════════════════════════════════════════════════════════ */
.jm-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.jm-info-table tr { border-bottom: 1px solid var(--color-border); }
.jm-info-table tr:last-child { border-bottom: none; }

.jm-info-table td {
  padding: var(--space-3) 0;
  vertical-align: middle;
}

.jm-info-table td:first-child {
  color: var(--color-muted);
  width: 40%;
  padding-right: var(--space-4);
}

.jm-info-table td:last-child {
  font-weight: 600;
  color: var(--color-ink);
}

.jm-page-header__sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ── Badge de notificações na sidebar ────────────────────────────────────────── */
.jm-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}
