/* Sid Plus — identidade visual própria (site público + painel do dono), separada do
   painel interno do achados-promotrends de propósito: público e tom são diferentes. */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #F2F8FC;
  --surface: #FFFFFF;
  --surface-2: #E6F1FA;
  --text: #132438;
  --text-muted: #64768D;
  --border: rgba(19, 36, 56, 0.10);
  --accent: #1298D6;
  --accent-rgb: 18, 152, 214;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFFA;
  --teal: #12A594;
  --teal-soft: #D8F3EF;
  --warn: #E0A13A;
  --danger: #E5484D;
  --shadow: 0 12px 32px rgba(19, 36, 56, 0.09);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1420;
    --surface: #121D2E;
    --surface-2: #182742;
    --text: #EAF2FB;
    --text-muted: #8FA1BB;
    --border: rgba(255, 255, 255, 0.08);
    --accent-soft: #163449;
    --teal-soft: #163832;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1420;
  --surface: #121D2E;
  --surface-2: #182742;
  --text: #EAF2FB;
  --text-muted: #8FA1BB;
  --border: rgba(255, 255, 255, 0.08);
  --accent-soft: #163449;
  --teal-soft: #163832;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  --bg: #F2F8FC;
  --surface: #FFFFFF;
  --surface-2: #E6F1FA;
  --text: #132438;
  --text-muted: #64768D;
  --border: rgba(19, 36, 56, 0.10);
  --accent-soft: #DCEFFA;
  --teal-soft: #D8F3EF;
  --shadow: 0 12px 32px rgba(19, 36, 56, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.42); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-ativo { background: var(--teal-soft); color: var(--teal); }
.pill-trial { background: var(--surface-2); color: var(--text-muted); }
.pill-inadimplente { background: #FBEEDC; color: var(--warn); }
.pill-cancelado { background: #FBE2E2; color: var(--danger); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-soft); }

::selection { background: var(--accent-soft); }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.input-field, .select-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.input-field:focus, .select-field:focus { outline: none; border-color: var(--accent); }

.tabular { font-variant-numeric: tabular-nums; }

#toastContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 0.3s ease;
}
.toast-success { background: var(--teal); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
