:root {
  /* ============================================================
     PALETA · Marca Goold
     ============================================================ */
  --goold-red: #E11D48;
  --goold-red-dark: #BE123C;
  --goold-pink-soft: #FEE2E2;
  --goold-sidebar-bg: #FCE7EB;

  /* ============================================================
     PALETA · Neutros
     ============================================================ */
  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-hover: #FAFAFA;
  --text-primary: #111111;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --hairline: #E5E7EB;
  --hairline-soft: #F1F5F9;

  /* ============================================================
     PALETA · Status
     ============================================================ */
  --status-success: #16A34A;
  --status-warning: #F59E0B;
  --status-danger: #EF4444;
  --status-info: #0A84FF;

  /* ============================================================
     PALETA · Canais
     (Instagram usa gradiente oficial — sem token de cor única.
      Use a classe/SVG colorido oficial.)
     ============================================================ */
  --channel-whatsapp: #25D366;
  --channel-usa: #3B82F6;
  --channel-europa: #8B5CF6;
  --channel-box: var(--goold-red);
  --channel-feriado: #6B7280;
  --channel-evento: #F59E0B;
  --tag-automacao-bg: #DCFCE7;
  --tag-automacao-text: #166534;

  /* ============================================================
     TIPOGRAFIA
     ============================================================ */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;

  --fz-label: 11px;       /* uppercase label */
  --fz-caption: 12px;
  --fz-small: 13px;
  --fz-body: 14px;
  --fz-body-lg: 15px;
  --fz-body-xl: 16px;
  --fz-h3: 18px;
  --fz-h3-lg: 20px;
  --fz-h2: 22px;
  --fz-h1: 30px;
  --fz-h1-lg: 32px;
  --fz-display: 40px;
  --fz-display-lg: 48px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --ls-tight-display: -0.03em;
  --ls-tight-h1: -0.02em;
  --ls-tight-h2: -0.01em;
  --ls-label: 0.08em;

  --lh-display: 1.1;
  --lh-heading: 1.2;
  --lh-h2: 1.3;
  --lh-body: 1.5;
  --lh-small: 1.4;

  /* ============================================================
     ESPAÇAMENTO (base 4px)
     ============================================================ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ============================================================
     BORDAS E RAIOS
     ============================================================ */
  --radius-pill: 999px;
  --radius-input: 10px;
  --radius-card: 16px;
  --radius-card-sm: 14px;
  --radius-modal: 16px;
  --radius-pill-sm: 8px;
  --radius-badge: 6px;
  --radius-sidebar-item: 10px;

  --hairline-width: 0.5px;
  --hairline-soft-width: 1px;

  /* ============================================================
     SOMBRAS (só funcionais, nunca decorativas)
     ============================================================ */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-drawer: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* ============================================================
     LAYOUT
     ============================================================ */
  --header-h: 64px;
  --sidebar-w: 240px;
  --drawer-w: 360px;
  --cell-min-h: 140px;
  --form-card-w: 400px;

  /* ============================================================
     MOVIMENTO
     ============================================================ */
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-instant: 80ms;
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-fade: 220ms;
  --dur-drawer-out: 280ms;
  --dur-drawer-in: 380ms;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fz-body-lg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Scrollbar discreta, sem tema escuro */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 999px;
  border: 2px solid var(--bg-page);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Foco visível por teclado */
:focus-visible {
  outline: 2px solid var(--goold-red);
  outline-offset: 2px;
  border-radius: var(--radius-badge);
}

/* Reveal nativo de senha some — usamos toggle próprio (BRAND seção 13) */
input::-ms-reveal,
input::-ms-clear { display: none; }
input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button { visibility: hidden; display: none !important; pointer-events: none; }
