/* ============================================================
   v3-components.css — Componentes do Design System v3
   Sessão 132+ — INTEGRAÇÃO ao sistema existente
   Usa tokens herdados do v2 (--brand-500, etc) + refinamentos --v3-*
   Namespace: .v3-*  (não conflita com classes legadas)
   ============================================================ */

/* ─── BASE ─── */
.v3 *, .v3 *::before, .v3 *::after { box-sizing: border-box; }
.v3 { font-family: var(--v3-font-ui); color: var(--v3-text); font-size: var(--v3-text-base); line-height: var(--v3-leading-base); }

/* ─── TIPOGRAFIA ─── */
.v3-eyebrow {
  font-size: var(--v3-text-xs);
  font-weight: var(--v3-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--v3-tracking-caps);
  color: var(--v3-text-3);
}
.v3-display-1 { font-family: var(--v3-font-display); font-size: var(--v3-text-5xl); font-weight: var(--v3-weight-semibold); letter-spacing: var(--v3-tracking-tight); line-height: var(--v3-leading-tight); }
.v3-display-2 { font-family: var(--v3-font-display); font-size: var(--v3-text-4xl); font-weight: var(--v3-weight-semibold); letter-spacing: var(--v3-tracking-tight); line-height: var(--v3-leading-tight); }
.v3-display-3 { font-family: var(--v3-font-display); font-size: var(--v3-text-3xl); font-weight: var(--v3-weight-semibold); letter-spacing: var(--v3-tracking-tight); line-height: var(--v3-leading-snug); }
.v3-h1 { font-size: var(--v3-text-2xl); font-weight: var(--v3-weight-semibold); }
.v3-h2 { font-size: var(--v3-text-xl); font-weight: var(--v3-weight-semibold); }
.v3-h3 { font-size: var(--v3-text-lg); font-weight: var(--v3-weight-semibold); }
.v3-text-sm { font-size: var(--v3-text-sm); color: var(--v3-text-2); }
.v3-text-xs { font-size: var(--v3-text-xs); color: var(--v3-text-3); }
.v3-text-mono { font-family: var(--v3-font-mono); font-size: var(--v3-text-sm); }
.v3-italic-em { font-style: italic; color: var(--v3-brand); font-weight: var(--v3-weight-semibold); }

/* ─── ÍCONES (Lucide) ─── */
.v3-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v3-icon[data-size="xs"] svg { width: 12px; height: 12px; }
.v3-icon[data-size="sm"] svg { width: 14px; height: 14px; }
.v3-icon[data-size="md"] svg { width: 16px; height: 16px; }
.v3-icon[data-size="lg"] svg { width: 20px; height: 20px; }
.v3-icon[data-size="xl"] svg { width: 24px; height: 24px; }
.v3-icon[data-size="2xl"] svg { width: 32px; height: 32px; }
.v3-icon svg { stroke-width: 1.75; }

/* ─── BUTTONS ─── */
.v3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--v3-space-2);
  font-family: var(--v3-font-ui);
  font-size: var(--v3-text-base); font-weight: var(--v3-weight-medium);
  line-height: 1; padding: 8px 14px;
  border-radius: var(--v3-radius-sm);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background var(--v3-duration-base) var(--v3-ease-out),
              border-color var(--v3-duration-base) var(--v3-ease-out),
              color var(--v3-duration-base) var(--v3-ease-out),
              box-shadow var(--v3-duration-base) var(--v3-ease-out),
              transform var(--v3-duration-fast) var(--v3-ease-out);
}
.v3-btn:focus-visible { outline: none; box-shadow: var(--v3-focus); }
.v3-btn:active { transform: translateY(1px); }
.v3-btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.v3-btn-primary { background: var(--v3-brand); color: var(--v3-text-on); box-shadow: var(--v3-shadow-xs); }
.v3-btn-primary:hover { background: var(--v3-brand-hover); }
.v3-btn-secondary { background: var(--v3-surface); color: var(--v3-text); border-color: var(--v3-border-strong); box-shadow: var(--v3-shadow-xs); }
.v3-btn-secondary:hover { background: var(--v3-bg-subtle); }
.v3-btn-ghost { background: transparent; color: var(--v3-text-2); border-color: transparent; }
.v3-btn-ghost:hover { background: var(--v3-hover); color: var(--v3-text); }
.v3-btn-danger { background: var(--v3-danger); color: var(--v3-text-on); }
.v3-btn-danger:hover { filter: brightness(0.92); }
.v3-btn-danger:focus-visible { box-shadow: var(--v3-focus-danger); }
.v3-btn-success { background: var(--v3-success); color: var(--v3-text-on); }
.v3-btn-success:hover { filter: brightness(0.92); }
.v3-btn-link { background: transparent; color: var(--v3-brand); padding: 4px 8px; border: none; }
.v3-btn-link:hover { color: var(--v3-brand-hover); text-decoration: underline; }

.v3-btn-xs { font-size: var(--v3-text-xs); padding: 4px 8px; gap: 4px; }
.v3-btn-sm { font-size: var(--v3-text-sm); padding: 6px 10px; gap: 6px; }
.v3-btn-lg { font-size: var(--v3-text-md); padding: 10px 18px; gap: 8px; }
.v3-btn-xl { font-size: var(--v3-text-lg); padding: 12px 22px; gap: 10px; }

.v3-btn-icon { padding: 6px; gap: 0; aspect-ratio: 1; }
.v3-btn-icon[data-size="sm"] { padding: 4px; }
.v3-btn-icon[data-size="lg"] { padding: 8px; }
.v3-btn-block { display: flex; width: 100%; }

/* ─── INPUTS ─── */
.v3-field { display: flex; flex-direction: column; gap: var(--v3-space-2); }
.v3-label { font-size: var(--v3-text-sm); font-weight: var(--v3-weight-medium); color: var(--v3-text-2); }
.v3-label-required::after { content: '*'; color: var(--v3-danger); margin-left: 2px; }
.v3-hint { font-size: var(--v3-text-xs); color: var(--v3-text-3); }
.v3-error { font-size: var(--v3-text-xs); color: var(--v3-danger); }

.v3-input, .v3-select, .v3-textarea {
  font-family: var(--v3-font-ui); font-size: var(--v3-text-base);
  color: var(--v3-text); background: var(--v3-surface);
  border: 1px solid var(--v3-border); border-radius: var(--v3-radius-md);
  padding: 9px 12px; width: 100%;
  transition: border-color var(--v3-duration-base) var(--v3-ease-out),
              box-shadow var(--v3-duration-base) var(--v3-ease-out);
}
.v3-input:hover, .v3-select:hover, .v3-textarea:hover { border-color: var(--v3-border-strong); }
.v3-input:focus, .v3-select:focus, .v3-textarea:focus {
  outline: none; border-color: var(--v3-brand); box-shadow: var(--v3-focus);
}
.v3-input:disabled, .v3-select:disabled, .v3-textarea:disabled {
  background: var(--v3-bg-subtle); color: var(--v3-text-4); cursor: not-allowed;
}
.v3-input::placeholder { color: var(--v3-text-4); }
.v3-textarea { resize: vertical; min-height: 80px; line-height: var(--v3-leading-base); }

.v3-input-with-icon { position: relative; }
.v3-input-with-icon .v3-input { padding-left: 36px; }
.v3-input-with-icon .v3-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--v3-text-4); pointer-events: none; }

.v3-input-sm { font-size: var(--v3-text-sm); padding: 6px 10px; }
.v3-input-lg { font-size: var(--v3-text-md); padding: 11px 14px; }
.v3-input-error { border-color: var(--v3-danger); }
.v3-input-error:focus { box-shadow: var(--v3-focus-danger); }

/* checkbox + radio + switch */
.v3-checkbox, .v3-radio { display: inline-flex; align-items: center; gap: var(--v3-space-2); cursor: pointer; font-size: var(--v3-text-base); }
.v3-checkbox input, .v3-radio input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--v3-border-strong); background: var(--v3-surface); cursor: pointer; transition: all var(--v3-duration-base) var(--v3-ease-out); }
.v3-checkbox input { border-radius: 4px; }
.v3-radio input { border-radius: 50%; }
.v3-checkbox input:checked, .v3-radio input:checked { background: var(--v3-brand); border-color: var(--v3-brand); }
.v3-checkbox input:checked::after { content: ''; display: block; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(2px, -1px); }
.v3-radio input:checked::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin: 3px auto; }

.v3-switch { position: relative; display: inline-flex; align-items: center; gap: var(--v3-space-2); cursor: pointer; }
.v3-switch input { appearance: none; width: 36px; height: 20px; background: var(--v3-border-strong); border-radius: 10px; cursor: pointer; transition: background var(--v3-duration-base); position: relative; }
.v3-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform var(--v3-duration-base) var(--v3-ease-out); box-shadow: var(--v3-shadow-sm); }
.v3-switch input:checked { background: var(--v3-success); }
.v3-switch input:checked::after { transform: translateX(16px); }

/* ─── CARDS ─── */
.v3-card {
  background: var(--v3-surface); border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-lg); padding: var(--v3-space-5);
  transition: border-color var(--v3-duration-base) var(--v3-ease-out),
              box-shadow var(--v3-duration-base) var(--v3-ease-out),
              transform var(--v3-duration-base) var(--v3-ease-out);
}
.v3-card-interactive { cursor: pointer; }
.v3-card-interactive:hover { border-color: var(--v3-border-strong); box-shadow: var(--v3-shadow-md); transform: translateY(-1px); }
.v3-card-elevated { box-shadow: var(--v3-shadow-sm); }

.v3-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--v3-space-3); margin-bottom: var(--v3-space-4); }
.v3-card-title { font-size: var(--v3-text-lg); font-weight: var(--v3-weight-semibold); color: var(--v3-text); }
.v3-card-subtitle { font-size: var(--v3-text-sm); color: var(--v3-text-3); margin-top: 2px; }
.v3-card-body { font-size: var(--v3-text-base); color: var(--v3-text-2); }
.v3-card-foot { margin-top: var(--v3-space-4); padding-top: var(--v3-space-4); border-top: 1px solid var(--v3-border); }

.v3-card-grid { display: grid; gap: var(--v3-space-4); }
.v3-card-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.v3-card-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.v3-card-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.v3-card-grid[data-cols="auto"] { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 720px) {
  .v3-card-grid[data-cols="2"], .v3-card-grid[data-cols="3"], .v3-card-grid[data-cols="4"] { grid-template-columns: 1fr; }
}

/* ─── PILLS / BADGES ─── */
.v3-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--v3-text-xs); font-weight: var(--v3-weight-medium);
  padding: 2px 8px; border-radius: var(--v3-radius-full);
  background: var(--v3-bg-subtle); color: var(--v3-text-2); line-height: 1.5;
}
.v3-pill-success { background: var(--v3-success-soft); color: var(--v3-success); }
.v3-pill-warn    { background: var(--v3-warn-soft); color: var(--v3-warn); }
.v3-pill-danger  { background: var(--v3-danger-soft); color: var(--v3-danger); }
.v3-pill-info    { background: var(--v3-info-soft); color: var(--v3-info); }
.v3-pill-accent  { background: var(--v3-accent-soft); color: var(--v3-accent-hover); }
.v3-pill-brand   { background: var(--v3-brand-soft); color: var(--v3-brand); }
.v3-pill-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }

.v3-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: var(--v3-weight-semibold);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--v3-radius-full);
  background: var(--v3-danger); color: var(--v3-text-on);
}

/* ─── TABLES ─── */
.v3-table {
  width: 100%; border-collapse: collapse;
  background: var(--v3-surface);
  border-radius: var(--v3-radius-lg); overflow: hidden;
  border: 1px solid var(--v3-border);
}
.v3-table thead { background: var(--v3-bg-subtle); }
.v3-table th { text-align: left; padding: 10px 14px; font-size: var(--v3-text-xs); font-weight: var(--v3-weight-semibold); color: var(--v3-text-3); text-transform: uppercase; letter-spacing: var(--v3-tracking-caps); border-bottom: 1px solid var(--v3-border); }
.v3-table td { padding: 12px 14px; font-size: var(--v3-text-base); color: var(--v3-text); border-bottom: 1px solid var(--v3-border); }
.v3-table tr:last-child td { border-bottom: none; }
.v3-table-hover tbody tr { transition: background var(--v3-duration-fast); }
.v3-table-hover tbody tr:hover { background: var(--v3-bg-subtle); }
.v3-table-clickable tbody tr { cursor: pointer; }

/* ─── EMPTY STATES ─── */
.v3-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--v3-space-3);
  padding: var(--v3-space-12) var(--v3-space-6); text-align: center;
  background: var(--v3-bg-subtle); border: 1px dashed var(--v3-border);
  border-radius: var(--v3-radius-xl);
}
.v3-empty-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--v3-radius-full); background: var(--v3-surface);
  color: var(--v3-text-3); border: 1px solid var(--v3-border);
  margin-bottom: var(--v3-space-2);
}
.v3-empty-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.v3-empty-title { font-size: var(--v3-text-lg); font-weight: var(--v3-weight-semibold); color: var(--v3-text); }
.v3-empty-msg { font-size: var(--v3-text-sm); color: var(--v3-text-3); max-width: 360px; }

/* ─── SKELETON ─── */
.v3-skeleton { background: linear-gradient(90deg, var(--v3-bg-subtle) 0%, var(--v3-hover) 50%, var(--v3-bg-subtle) 100%); background-size: 200% 100%; animation: v3-shimmer 1.4s ease-in-out infinite; border-radius: var(--v3-radius-sm); }
@keyframes v3-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.v3-skeleton-line { height: 12px; margin-bottom: 8px; }
.v3-skeleton-card { height: 120px; border-radius: var(--v3-radius-lg); }

/* ─── DRAWERS ─── */
.v3-overlay { position: fixed; inset: 0; background: var(--v3-overlay); z-index: var(--v3-z-overlay); backdrop-filter: blur(2px); animation: v3-fade-in var(--v3-duration-base) var(--v3-ease-out); }
@keyframes v3-fade-in { from { opacity: 0; } to { opacity: 1; } }

.v3-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  background: var(--v3-surface); z-index: var(--v3-z-modal);
  display: flex; flex-direction: column; box-shadow: var(--v3-shadow-2xl);
  animation: v3-drawer-slide var(--v3-duration-medium) var(--v3-ease-out);
}
@keyframes v3-drawer-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.v3-drawer[data-size="sm"] { width: var(--v3-drawer-width-sm); max-width: calc(100vw - 32px); }
.v3-drawer[data-size="md"] { width: var(--v3-drawer-width-md); max-width: calc(100vw - 32px); }
.v3-drawer[data-size="lg"] { width: var(--v3-drawer-width-lg); max-width: calc(100vw - 32px); }
.v3-drawer[data-size="xl"] { width: var(--v3-drawer-width-xl); max-width: calc(100vw - 32px); }

.v3-drawer-head { padding: var(--v3-space-5) var(--v3-space-6); border-bottom: 1px solid var(--v3-border); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--v3-space-3); }
.v3-drawer-title { font-size: var(--v3-text-xl); font-weight: var(--v3-weight-semibold); }
.v3-drawer-subtitle { font-size: var(--v3-text-sm); color: var(--v3-text-3); margin-top: 4px; }

.v3-drawer-tabs { display: flex; padding: 0 var(--v3-space-6); border-bottom: 1px solid var(--v3-border); gap: 4px; overflow-x: auto; }
.v3-drawer-tab { background: transparent; border: none; cursor: pointer; padding: 12px 16px; font-size: var(--v3-text-base); font-weight: var(--v3-weight-medium); color: var(--v3-text-3); border-bottom: 2px solid transparent; transition: color var(--v3-duration-fast), border-color var(--v3-duration-fast); white-space: nowrap; }
.v3-drawer-tab:hover { color: var(--v3-text); }
.v3-drawer-tab[aria-selected="true"] { color: var(--v3-brand); border-bottom-color: var(--v3-brand); }

.v3-drawer-body { padding: var(--v3-space-6); overflow-y: auto; flex: 1; }
.v3-drawer-foot { padding: var(--v3-space-4) var(--v3-space-6); border-top: 1px solid var(--v3-border); display: flex; justify-content: flex-end; gap: var(--v3-space-2); background: var(--v3-bg-subtle); }

/* ─── MODAL CENTRAL ─── */
.v3-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--v3-surface); border-radius: var(--v3-radius-xl);
  z-index: var(--v3-z-modal); display: flex; flex-direction: column;
  max-height: calc(100vh - 80px); box-shadow: var(--v3-shadow-2xl);
  animation: v3-modal-in var(--v3-duration-medium) var(--v3-ease-spring);
  width: 480px; max-width: calc(100vw - 32px);
}
@keyframes v3-modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.v3-modal[data-size="sm"] { width: 380px; }
.v3-modal[data-size="lg"] { width: 640px; }
.v3-modal-head { padding: var(--v3-space-5) var(--v3-space-6); border-bottom: 1px solid var(--v3-border); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--v3-space-3); }
.v3-modal-title { font-size: var(--v3-text-xl); font-weight: var(--v3-weight-semibold); }
.v3-modal-subtitle { font-size: var(--v3-text-sm); color: var(--v3-text-3); margin-top: 4px; }
.v3-modal-body { padding: var(--v3-space-6); overflow-y: auto; }
.v3-modal-foot { padding: var(--v3-space-4) var(--v3-space-6); border-top: 1px solid var(--v3-border); display: flex; justify-content: flex-end; gap: var(--v3-space-2); }

/* ═══════════════════════════════════════════════════════════════
   SUB-ABAS HORIZONTAIS — padrão pra navegação interna dos módulos
   Ex: Produtos > [Catálogo · Categorias · Cupons · Configurações]
   Em vez de empilhar tudo na sidebar esquerda.
   ═══════════════════════════════════════════════════════════════ */

.v3-subnav {
  display: flex; align-items: center; gap: var(--v3-space-1);
  border-bottom: 1px solid var(--v3-border);
  padding: 0 var(--v3-space-1);
  background: var(--v3-surface);
  overflow-x: auto;
  scrollbar-width: thin;
}
.v3-subnav-item {
  background: transparent; border: none; cursor: pointer;
  padding: 12px 14px;
  font-family: var(--v3-font-ui);
  font-size: var(--v3-text-base);
  font-weight: var(--v3-weight-medium);
  color: var(--v3-text-3);
  border-bottom: 2px solid transparent;
  transition: color var(--v3-duration-fast), border-color var(--v3-duration-fast);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  position: relative;
}
.v3-subnav-item:hover { color: var(--v3-text); }
.v3-subnav-item[aria-selected="true"] { color: var(--v3-brand); border-bottom-color: var(--v3-brand); }
.v3-subnav-item[aria-selected="true"] svg { color: var(--v3-brand); }
.v3-subnav-item .v3-badge { margin-left: 4px; }

/* Variante "pill segment" pra sub-sub-navegação (toggle de visualização etc) */
.v3-segment {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--v3-bg-subtle); border-radius: var(--v3-radius-md);
  border: 1px solid var(--v3-border);
}
.v3-segment-item {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 14px;
  font-size: var(--v3-text-sm); font-weight: var(--v3-weight-medium);
  color: var(--v3-text-2); border-radius: var(--v3-radius-sm);
  transition: background var(--v3-duration-base) var(--v3-ease-out), color var(--v3-duration-base);
  display: inline-flex; align-items: center; gap: 6px;
}
.v3-segment-item:hover { color: var(--v3-text); }
.v3-segment-item[aria-selected="true"] {
  background: var(--v3-surface); color: var(--v3-brand);
  box-shadow: var(--v3-shadow-xs);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER — estrutura padrão
   ═══════════════════════════════════════════════════════════════ */

.v3-page-shell { display: flex; flex-direction: column; }
.v3-page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--v3-space-6); margin-bottom: var(--v3-space-5); padding: var(--v3-space-2) 0; }
.v3-page-header-main { display: flex; flex-direction: column; gap: var(--v3-space-2); }
.v3-page-title { font-family: var(--v3-font-display); font-size: var(--v3-text-4xl); font-weight: var(--v3-weight-semibold); letter-spacing: var(--v3-tracking-tight); line-height: var(--v3-leading-tight); margin: 0; }
.v3-page-desc { font-size: var(--v3-text-md); color: var(--v3-text-3); max-width: 640px; line-height: var(--v3-leading-base); margin: 0; }
.v3-page-actions { display: flex; gap: var(--v3-space-2); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT HELPERS
   ═══════════════════════════════════════════════════════════════ */

.v3-stack { display: flex; flex-direction: column; }
.v3-stack-1 { gap: var(--v3-space-1); } .v3-stack-2 { gap: var(--v3-space-2); }
.v3-stack-3 { gap: var(--v3-space-3); } .v3-stack-4 { gap: var(--v3-space-4); }
.v3-stack-5 { gap: var(--v3-space-5); } .v3-stack-6 { gap: var(--v3-space-6); }
.v3-row { display: flex; align-items: center; }
.v3-row-1 { gap: var(--v3-space-1); } .v3-row-2 { gap: var(--v3-space-2); }
.v3-row-3 { gap: var(--v3-space-3); } .v3-row-4 { gap: var(--v3-space-4); }
.v3-row-between { justify-content: space-between; }
.v3-row-end { justify-content: flex-end; }
.v3-flex-1 { flex: 1; min-width: 0; }
.v3-divider { height: 1px; background: var(--v3-border); margin: var(--v3-space-4) 0; border: none; }

/* ─── KPI CARD ─── */
.v3-kpi-card {
  background: var(--v3-surface); border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-lg); padding: var(--v3-space-4) var(--v3-space-5);
  display: flex; flex-direction: column; gap: 4px;
}
.v3-kpi-label { font-size: var(--v3-text-xs); color: var(--v3-text-3); text-transform: uppercase; letter-spacing: var(--v3-tracking-caps); font-weight: var(--v3-weight-medium); }
.v3-kpi-value { font-family: var(--v3-font-display); font-size: var(--v3-text-3xl); font-weight: var(--v3-weight-semibold); color: var(--v3-text); letter-spacing: var(--v3-tracking-tight); }
.v3-kpi-meta { font-size: var(--v3-text-sm); color: var(--v3-text-3); }
.v3-kpi-trend-up { color: var(--v3-success); }
.v3-kpi-trend-down { color: var(--v3-danger); }

/* ─── TOAST ─── */
.v3-toast-stack { position: fixed; bottom: var(--v3-space-6); right: var(--v3-space-6); display: flex; flex-direction: column; gap: var(--v3-space-2); z-index: var(--v3-z-toast); }
.v3-toast { display: flex; align-items: flex-start; gap: var(--v3-space-3); background: var(--v3-text); color: var(--v3-text-on); padding: 12px 16px; border-radius: var(--v3-radius-md); box-shadow: var(--v3-shadow-xl); min-width: 280px; max-width: 420px; animation: v3-toast-in var(--v3-duration-medium) var(--v3-ease-spring); transition: opacity .2s, transform .2s; }
@keyframes v3-toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.v3-toast-success { background: var(--v3-success); }
.v3-toast-warn    { background: var(--v3-warn); }
.v3-toast-danger  { background: var(--v3-danger); }
.v3-toast-info    { background: var(--v3-info); }
