@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════════
   ODONTOSMART — Design System Premium v2
   Maior contraste em textos, bordas e elementos
══════════════════════════════════════════════ */

:root {
  /* Cores principais */
  --ink:        #0F0D12;   /* preto mais profundo */
  --ink2:       #2D2435;   /* texto secundário escuro */
  --ink3:       #6B5F78;   /* texto terciário — mais escuro que antes */
  --ink4:       #9B8FA8;

  /* Superfícies */
  --cream:      #F5F0EE;   /* fundo levemente mais escuro */
  --cream2:     #EDE5E0;   /* cards secundários */
  --surface:    #FFFFFF;
  --border:     #D4C8D0;   /* bordas mais visíveis */
  --border2:    #B8A8B8;   /* bordas fortes */
  --border-strong: #8B7890;

  /* Rose (accent primário) */
  --rose:       #D4809C;
  --rose-deep:  #B5426A;
  --rose-dark:  #8C2A50;
  --rose-light: #FAE8F0;
  --rose-mid:   #EDBED0;

  /* Dourado (HOF / premium) */
  --gold:       #B8904A;
  --gold-deep:  #8A6220;
  --gold-light: #F5ECD8;
  --gold-mid:   #DEC090;

  /* Semânticas */
  --success:    #1A7A50;
  --success-bg: #D8F0E5;
  --danger:     #C03030;
  --danger-bg:  #FAD8D8;
  --warning:    #B86010;
  --warning-bg: #FAEADA;
  --info:       #0F5070;
  --info-bg:    #D8EAF5;
  --purple:     #5A3E87;
  --purple-bg:  #E8E0F5;
  --teal:       #1A8A78;
  --teal-bg:    #D8F0EC;

  /* Raios */
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  26px;
  --r-pill:50px;

  /* Sombras */
  --shadow-sm: 0 1px 4px rgba(15,13,18,.10), 0 1px 2px rgba(15,13,18,.06);
  --shadow:    0 4px 16px rgba(15,13,18,.12), 0 1px 4px rgba(15,13,18,.06);
  --shadow-rose: 0 8px 24px rgba(180,66,106,.25);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── SHELL ── */
.app-shell { display: flex; min-height: 100vh; }

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar {
  width: 232px;
  min-width: 232px;
  background: #0F0D12;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,128,156,.18) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,144,74,.12) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.logo-icon {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(180,66,106,.40);
}
.logo-name {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.logo-sub {
  color: rgba(255,255,255,.45);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; position: relative; z-index: 1; }
.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.30);
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .18s ease;
}
.nav-item i { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover {
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.06);
}
.nav-item.active {
  color: white;
  font-weight: 600;
  background: rgba(212,128,156,.15);
  border-left-color: var(--rose);
}
.nav-item.active i { color: var(--rose); }

.nav-badge {
  margin-left: auto;
  background: var(--rose-deep);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.sidebar-user-name { color: rgba(255,255,255,.90); font-size: 12px; font-weight: 600; }
.sidebar-user-role { color: rgba(255,255,255,.40); font-size: 10px; margin-top: 2px; }

/* ══════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════ */
.main-content {
  margin-left: 232px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15,13,18,.08);
}
.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.topbar-subtitle {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 1px;
  font-weight: 500;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.page-body { padding: 26px 28px; flex: 1; }

/* ══════════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.btn i { font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--rose-deep) 100%);
  color: white;
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(184,144,74,.30);
}
.btn-gold:hover { opacity: .88; transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink2);
  border-color: var(--border2);
  font-weight: 600;
}
.btn-secondary:hover { background: var(--rose-light); border-color: var(--rose-mid); color: var(--rose-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink2);
  border-color: var(--border);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--rose-light); border-color: var(--rose); color: var(--rose-deep); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
  font-weight: 600;
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-xs  { padding: 4px 10px; font-size: 11px; }
.btn-icon{ padding: 8px; border-radius: 50%; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 22px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.card-body { padding: 22px; }

/* ══════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════ */
.stats-grid { display: grid; gap: 16px; }
.stats-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.g2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: .7;
}
.stat-card.rose::before  { background: var(--rose-mid); }
.stat-card.gold::before  { background: var(--gold-mid); }
.stat-card.teal::before  { background: var(--teal-bg); }
.stat-card.purple::before{ background: var(--purple-bg); }

.stat-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.stat-icon.rose   { background: var(--rose-light);   color: var(--rose-dark); }
.stat-icon.gold   { background: var(--gold-light);   color: var(--gold-deep); }
.stat-icon.teal   { background: var(--teal-bg);      color: var(--teal); }
.stat-icon.purple { background: var(--purple-bg);    color: var(--purple); }
.stat-icon.info   { background: var(--info-bg);      color: var(--info); }
.stat-icon.danger { background: var(--danger-bg);    color: var(--danger); }
.stat-icon.success{ background: var(--success-bg);   color: var(--success); }

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label { font-size: 12px; color: var(--ink3); font-weight: 600; letter-spacing: .02em; }
.stat-delta {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.delta-up   { color: var(--success); }
.delta-down { color: var(--danger); }
.delta-warn { color: var(--gold-deep); }

/* ══════════════════════════════════════════════
   FORMULÁRIOS
══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.form-label .req { color: var(--rose-deep); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all .18s;
}
.form-control:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(180,66,106,.15);
}
.form-control::placeholder { color: var(--ink3); font-weight: 400; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-rose   { background: var(--rose-light);   color: var(--rose-dark);  border: 1px solid var(--rose-mid); }
.badge-gold   { background: var(--gold-light);   color: var(--gold-deep);  border: 1px solid var(--gold-mid); }
.badge-green  { background: var(--success-bg);   color: var(--success);    border: 1px solid #A8DCC5; }
.badge-red    { background: var(--danger-bg);    color: var(--danger);     border: 1px solid #F0AAAA; }
.badge-blue   { background: var(--info-bg);      color: var(--info);       border: 1px solid #A8CDE0; }
.badge-purple { background: var(--purple-bg);    color: var(--purple);     border: 1px solid #C5B0E5; }
.badge-teal   { background: var(--teal-bg);      color: var(--teal);       border: 1px solid #A0D8D0; }
.badge-amber  { background: var(--warning-bg);   color: var(--warning);    border: 1px solid #E0B888; }
.badge-gray   { background: var(--cream2);       color: var(--ink2);       border: 1px solid var(--border); }

/* ══════════════════════════════════════════════
   TABELA
══════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
  padding: 11px 18px;
  border-bottom: 2px solid var(--border);
  background: var(--cream);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.data-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink);
  vertical-align: middle;
  font-weight: 500;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover td { background: var(--rose-light); cursor: pointer; }

/* ══════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════ */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }

/* ══════════════════════════════════════════════
   TABS
══════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab-item {
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
  white-space: nowrap;
}
.tab-item:hover { color: var(--ink2); background: var(--cream); }
.tab-item.active { color: var(--rose-deep); border-bottom-color: var(--rose-deep); background: transparent; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ══════════════════════════════════════════════
   SEARCH
══════════════════════════════════════════════ */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: all .18s;
}
.search-wrap:focus-within {
  border-color: var(--rose-mid);
  box-shadow: 0 0 0 3px rgba(212,128,156,.18);
}
.search-wrap i { color: var(--ink3); font-size: 15px; flex-shrink: 0; }
.search-wrap input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  font-weight: 500;
}
.search-wrap input::placeholder { color: var(--ink3); font-weight: 400; }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,13,18,.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  box-shadow: 0 24px 64px rgba(15,13,18,.25), 0 4px 16px rgba(15,13,18,.12);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn .22s cubic-bezier(.34,1.28,.64,1);
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--rose-mid); border-radius: 4px; }

.modal-sm  { max-width: 460px; }
.modal-md  { max-width: 660px; }
.modal-lg  { max-width: 840px; }

.modal-header {
  padding: 20px 26px 18px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink2); font-size: 16px;
  transition: all .15s;
}
.modal-close:hover { background: var(--rose-light); border-color: var(--rose); color: var(--rose-deep); }
.modal-body { padding: 24px 26px; }
.modal-footer {
  padding: 18px 26px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

@keyframes modalIn {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════
   ALERTS / EMPTY STATES
══════════════════════════════════════════════ */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
  border: 1.5px solid;
}
.alert i { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--info-bg);      color: var(--info);     border-color: #A8CDE0; }
.alert-warning { background: var(--gold-light);   color: var(--gold-deep);border-color: var(--gold-mid); }
.alert-danger  { background: var(--danger-bg);    color: var(--danger);   border-color: #F0AAAA; }
.alert-rose    { background: var(--rose-light);   color: var(--rose-dark);border-color: var(--rose-mid); }

.empty-state {
  text-align: center;
  padding: 52px 24px;
}
.empty-state i { font-size: 44px; color: var(--rose-mid); display: block; margin-bottom: 14px; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--ink2); margin-bottom: 7px; font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--ink3); font-weight: 500; }

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  animation: toastIn .22s ease;
  box-shadow: 0 8px 24px rgba(15,13,18,.25);
  pointer-events: all;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.gold    { background: var(--gold-deep); }
@keyframes toastIn { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ══════════════════════════════════════════════
   FILTROS / CHIPS
══════════════════════════════════════════════ */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--ink2);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--rose-mid); color: var(--rose-deep); background: var(--rose-light); }
.chip.active { background: var(--rose-deep); color: white; border-color: var(--rose-deep); }

/* ══════════════════════════════════════════════
   ODONTOGRAMA — CONTRASTE AUMENTADO
══════════════════════════════════════════════ */
.face {
  background: #E8DDE8;          /* cinza-rose mais visível */
  border: 1px solid #A890A8;    /* borda roxa-cinza bem visível */
  cursor: pointer;
  transition: all .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.face:hover { filter: brightness(.82); }
.tooth-num {
  font-size: 9px;
  color: var(--ink2);           /* número do dente bem visível */
  font-weight: 700;
  margin: 2px 0;
  line-height: 1;
}
.tooth-x {
  width: 34px; height: 34px;
  border-radius: 5px;
  background: #C8B8C8;
  border: 2px solid #907890;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #5A3858;
}
.arch-sep {
  height: 2px;
  background: var(--border2);
  margin: 10px auto;
  width: 88%;
}
.arch-label {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink2);           /* label superior/inferior mais visível */
  margin: 6px 0 4px;
}

/* ══════════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════════ */
.divider { height: 2px; background: var(--border); margin: 18px 0; }
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 12px;
}
.text-muted { color: var(--ink3); font-weight: 500; }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.fw-500     { font-weight: 500; }
.fw-600     { font-weight: 600; }
.text-rose  { color: var(--rose-deep); }
.text-gold  { color: var(--gold-deep); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }

.info-block {
  background: var(--cream);
  border-radius: var(--r);
  border: 2px solid var(--border);
  padding: 14px 16px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13px;
  gap: 12px;
}
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-lbl { color: var(--ink3); flex-shrink: 0; font-weight: 600; font-size: 12px; }
.info-val { color: var(--ink); font-weight: 600; text-align: right; }

/* Tags */
.alergia-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 2px solid #F0AAAA;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin: 3px;
}
.alergia-tag .rm {
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  opacity: .8;
}
.alergia-tag .rm:hover { opacity: 1; }

.mat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--rose-light);
  color: var(--rose-dark);
  border: 1px solid var(--rose-mid);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px;
}

/* Toggle Sim/Não */
.toggle-group { display: flex; gap: 4px; }
.tog {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  cursor: pointer;
  color: var(--ink2);
  background: var(--surface);
  transition: all .12s;
}
.tog.sim.on { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }
.tog.nao.on { background: var(--success-bg); color: var(--success); border-color: var(--success); }

/* Plano badge */
.plano-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid #C5B0E5;
  border-radius: var(--r-pill);
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
}

/* Confirm dialog */
.confirm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,13,18,.6); z-index: 300;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.confirm-overlay.open { display: flex; }
.confirm-box {
  background: var(--surface); border-radius: var(--r-xl);
  border: 2px solid var(--border);
  padding: 28px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 64px rgba(15,13,18,.25);
  animation: modalIn .2s ease;
}
.confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--danger-bg); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
  border: 2px solid #F0AAAA;
}
.confirm-title { font-family: 'Playfair Display', serif; font-size: 17px; text-align: center; margin-bottom: 8px; font-weight: 600; }
.confirm-msg { font-size: 13px; color: var(--ink2); text-align: center; margin-bottom: 22px; font-weight: 500; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; justify-content: center; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
