/* ==========================================================================
   Praça das Andorinhas — Design System v2
   ========================================================================== */

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

:root {
  /* === Paleta principal === */
  --sage-950: #1A2420;
  --sage-900: #2D3A33;
  --sage-800: #354540;
  --sage-700: #3F5247;
  --sage-600: #4E6559;
  --sage-500: #5B7553;
  --sage-400: #7A9870;
  --sage-300: #94AC8A;
  --sage-200: #BCCFB3;
  --sage-100: #DDE5D6;
  --sage-50:  #EFF3EC;

  --sand-50:  #FDFAF5;
  --sand-100: #FAF6EE;
  --sand-200: #F3EDE0;
  --sand-300: #E8DFC9;
  --sand-400: #D4C4A4;
  --sand-500: #B8A37A;

  --terracotta:      #C4714F;
  --terracotta-dark: #A5593A;
  --terracotta-light:#F2E2D9;

  --gold:       #C9923A;
  --gold-light: #F0DFB8;
  --gold-dark:  #A6741F;

  --ink:      #1C2620;
  --ink-soft: #445049;
  --ink-mute: #7A857E;
  --ink-faint:#A8B2AC;

  --success:       #3A7D52;
  --success-light: #E0F0E8;
  --warning:       #A07030;
  --warning-light: #F5E8CC;
  --danger:        #B84035;
  --danger-light:  #FAE0DC;
  --info:          var(--sage-700);
  --info-light:    var(--sage-100);

  --white: #FFFFFF;
  --line:  #E4DDD0;
  --line-soft: #EDE8DC;

  /* === Tipografia === */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* === Sombras === */
  --shadow-xs: 0 1px 2px rgba(28, 38, 32, 0.05);
  --shadow-sm: 0 2px 6px rgba(28, 38, 32, 0.07);
  --shadow-md: 0 6px 20px rgba(28, 38, 32, 0.09);
  --shadow-lg: 0 16px 40px rgba(28, 38, 32, 0.13);
  --shadow-xl: 0 28px 64px rgba(28, 38, 32, 0.17);

  /* === Raios === */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* === Transições === */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration: 160ms;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ===== Tipografia ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--sage-900);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: pretty;
}
h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--sage-900);
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--ink-soft); }
a { color: var(--sage-700); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--terracotta); }

/* ===== App Shell ===== */
.app-shell { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: 252px;
  background: var(--sage-950);
  color: var(--sand-200);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 16px;
  gap: 8px;
}

/* Logo / Brand na sidebar */
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px 22px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar .brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sand-100);
  line-height: 1.2;
  font-weight: 500;
}
.sidebar .brand-tag {
  font-size: 0.68rem;
  color: var(--sage-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Logo mark — círculo com andorinha */
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold);
}
.logo-mark svg {
  display: block;
}
.logo-mark.sm {
  width: 26px;
  height: 26px;
}
.logo-mark.lg {
  width: 44px;
  height: 44px;
}

/* Sidebar nav */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar nav a {
  color: var(--sage-300);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  letter-spacing: 0.01em;
}
.sidebar nav a .nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--sand-100);
}
.sidebar nav a:hover .nav-icon { opacity: 1; }
.sidebar nav a.active {
  background: var(--sage-800);
  color: var(--white);
  font-weight: 500;
}
.sidebar nav a.active .nav-icon { opacity: 1; }

.sidebar .nav-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-600);
  font-weight: 600;
  padding: 12px 12px 4px;
}

.sidebar .user-card {
  margin-top: auto;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.sidebar .user-card .avatar {
  width: 32px;
  height: 32px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.sidebar .user-card .meta { font-size: 0.83rem; color: var(--sand-300); }
.sidebar .user-card .meta .name { color: var(--sand-100); font-weight: 500; }
.sidebar .user-card .meta .role { color: var(--sage-400); font-size: 0.72rem; }

/* ===== Main content ===== */
.main {
  flex: 1;
  padding: 36px 48px 72px;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

/* ===== Page header ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 { font-size: 1.75rem; }
.page-header .subtitle {
  color: var(--ink-mute);
  font-size: 0.875rem;
  margin-top: 3px;
  font-weight: 400;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}
.card.flush { padding: 0; overflow: hidden; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-header h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.card-header .card-subtitle {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ===== Grid layouts ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 24px 20px 60px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ===== KPI Cards ===== */
.kpi {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sage-200);
  opacity: 0;
}
.kpi.accent::after { opacity: 1; background: var(--gold); }

.kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--sage-900);
  line-height: 1;
  font-weight: 600;
}
.kpi-trend {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-weight: 400;
}
.kpi-trend.ok   { color: var(--success); }
.kpi-trend.warn { color: var(--terracotta); }

.kpi.accent {
  background: var(--sage-900);
}
.kpi.accent .kpi-label { color: var(--sage-400); }
.kpi.accent .kpi-value { color: var(--white); font-size: 2rem; }
.kpi.accent .kpi-trend { color: var(--sage-300); }

/* ===== Tabelas ===== */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 11px 20px;
  background: var(--sand-100);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--sand-50); }

/* ===== Badges / Status ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-success { background: var(--success-light);  color: var(--success); }
.badge-warn    { background: var(--warning-light);  color: var(--warning); }
.badge-danger  { background: var(--danger-light);   color: var(--danger);  }
.badge-info    { background: var(--info-light);     color: var(--info);    }
.badge-neutral { background: var(--sand-300);       color: var(--ink-soft);}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  background: var(--sage-700);
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover {
  background: var(--sage-900);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--sage-700);
  border: 1px solid var(--sage-300);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--sage-50);
  color: var(--sage-900);
  border-color: var(--sage-400);
  transform: none;
  box-shadow: none;
}

.btn-accent {
  background: var(--terracotta);
  color: var(--white);
}
.btn-accent:hover { background: var(--terracotta-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--sand-200);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-block { width: 100%; }

/* ===== Formulários ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(91, 117, 83, 0.10);
}
.field input::placeholder { color: var(--ink-faint); }
.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* ===== Listas ===== */
.list { list-style: none; }
.list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.list li:last-child { border-bottom: none; }
.list .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-400);
  flex-shrink: 0;
  margin-top: 7px;
}
.list .dot.warn   { background: var(--terracotta); }
.list .dot.danger { background: var(--danger); }
.list .meta {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tabs a {
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  font-weight: 400;
  margin-bottom: -1px;
}
.tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
  font-weight: 500;
}
.tabs a:hover { color: var(--ink); }

/* ===== Dropzone ===== */
.dropzone {
  border: 2px dashed var(--sand-400);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  color: var(--ink-mute);
  background: var(--sand-50);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  font-size: 0.875rem;
}
.dropzone:hover {
  border-color: var(--sage-400);
  background: var(--sage-50);
  color: var(--sage-700);
}
.dropzone .big {
  font-size: 1.5rem;
  margin-bottom: 6px;
  display: block;
}

/* ===== Unit card ===== */
.unit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}
.unit-card:hover { box-shadow: var(--shadow-sm); }
.unit-card .unit-name { font-weight: 600; color: var(--sage-900); font-size: 0.925rem; }
.unit-card .tenant { color: var(--ink-mute); font-size: 0.83rem; margin-top: 1px; }
.unit-card .meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.unit-card .strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sage-300);
  border-radius: 0;
}
.unit-card .strip.warn   { background: var(--terracotta); }
.unit-card .strip.danger { background: var(--danger); }

/* ===== Notice / aviso ===== */
.notice {
  background: var(--gold-light);
  border-radius: var(--radius-md);
  padding: 13px 17px;
  font-size: 0.875rem;
  color: var(--gold-dark);
  border-left: 3px solid var(--gold);
}

/* ===== Utilitários ===== */
.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end     { display: flex; justify-content: flex-end; gap: 10px; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-xs  { gap: 6px;  }
.gap-sm  { gap: 10px; }
.gap-md  { gap: 16px; }
.gap-lg  { gap: 24px; }
.mt-xs   { margin-top: 6px;  }
.mt-sm   { margin-top: 10px; }
.mt-md   { margin-top: 18px; }
.mt-lg   { margin-top: 28px; }
.mb-sm   { margin-bottom: 10px; }
.mb-md   { margin-bottom: 18px; }
.mb-lg   { margin-bottom: 28px; }
.text-mute  { color: var(--ink-mute);  }
.text-soft  { color: var(--ink-soft);  }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.78rem;  }
.text-right { text-align: right;   }
.fw-500     { font-weight: 500; }
.fw-600     { font-weight: 600; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.divider-v {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}

/* ===== Landing page ===== */
.landing-bg {
  background: var(--sage-950);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Padrão de fundo decorativo */
.landing-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 25%, rgba(201, 146, 58, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(91, 117, 83, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* Grade decorativa */
.landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.landing-wrap {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .landing-wrap {
    grid-template-columns: 1fr;
    padding: 48px 20px 56px;
    gap: 48px;
  }
}

/* Nav top da landing */
.landing-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 11px;
}
@media (max-width: 600px) {
  .landing-topbar { padding: 20px 20px; }
}

.landing-hero { padding: 100px 0 60px; }
@media (max-width: 860px) {
  .landing-hero { padding: 20px 0 0; }
}

.landing-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.landing-hero h1 {
  color: var(--sand-100);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 22px;
  font-weight: 600;
}
.landing-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.landing-hero p {
  color: var(--sage-300);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.65;
}

.landing-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 36px;
}
.landing-feature {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.landing-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}
.landing-feature span {
  font-size: 0.9rem;
  color: var(--sage-300);
  line-height: 1.5;
}

/* Card de login */
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: 0 0 2px 2px;
}
.login-card h2 { font-size: 1.4rem; margin-bottom: 5px; }
.login-card .lead {
  color: var(--ink-mute);
  margin-bottom: 22px;
  font-size: 0.875rem;
}

.role-toggle {
  display: flex;
  gap: 6px;
  background: var(--sand-200);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.role-toggle button {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-mute);
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.role-toggle button.active {
  background: var(--white);
  color: var(--sage-900);
  box-shadow: var(--shadow-sm);
}

/* ===== MB Way card ===== */
.mbway-card {
  background: linear-gradient(135deg, #D63752 0%, #A82840 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  color: white;
}
.mbway-card .number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.mbway-card .label { font-size: 0.75rem; opacity: 0.8; }
.mbway-card .tag {
  font-size: 0.68rem;
  background: rgba(255,255,255,0.18);
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 500;
}

/* ===== IBAN card ===== */
.iban-card {
  background: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--line);
}
.iban-card .number {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.iban-card .label { font-size: 0.75rem; color: var(--ink-mute); }

/* ===== Filtro/toolbar ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--duration);
}
.toolbar-search:focus {
  outline: none;
  border-color: var(--sage-400);
}
.toolbar-select {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A857E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.toolbar-select:focus { outline: none; border-color: var(--sage-400); }

/* ===== Empty state ===== */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-mute);
}
.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.4;
}
.empty-state p { font-size: 0.875rem; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sand-400); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--sand-500); }
