/* ================================================================
   WATTS RASTREIO — Design System v2
   ================================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50:  #f0fdf4; --blue-100: #dcfce7; --blue-200: #bbf7d0;
  --blue-300: #86efac; --blue-400: #4ade80; --blue-500: #22c55e;
  --blue-600: #16a34a; --blue-700: #15803d; --blue-800: #166534; --blue-900: #14532d;

  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;

  --ink-950: #05090f; --ink-900: #0a0f1e; --ink-800: #0f172a; --ink-700: #131e30;

  --green-100: #dcfce7; --green-500: #22c55e; --green-600: #16a34a; --green-700: #15803d;
  --red-100:   #fee2e2; --red-500:   #ef4444; --red-600:   #dc2626; --red-700:   #b91c1c;
  --amber-100: #fef3c7; --amber-500: #f59e0b; --amber-700: #b45309;
  --violet-100:#ede9fe; --violet-500:#8b5cf6; --violet-700:#6d28d9;
  --sky-100:   #e0f2fe; --sky-500:   #0ea5e9; --sky-700:   #0369a1;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -3px rgba(0,0,0,0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--slate-900); background: #fff;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── BOTÕES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
  font-size: 13px; border: none; cursor: pointer; transition: all .15s ease;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn svg { flex-shrink: 0; }

.btn-primary  { background: var(--blue-600); color: #fff; box-shadow: 0 2px 8px rgba(22,163,74,.35); }
.btn-primary:hover  { background: var(--blue-700); box-shadow: 0 4px 14px rgba(22,163,74,.45); text-decoration: none; }
.btn-secondary{ background: var(--slate-100); color: var(--slate-700); }
.btn-secondary:hover{ background: var(--slate-200); text-decoration: none; }
.btn-danger   { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); }
.btn-ghost    { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.btn-outline  { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-200); }
.btn-outline:hover { background: var(--blue-50); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── INPUTS ───────────────────────────────────────────────── */
.input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius);
  background: #fff; color: var(--slate-900); font-size: 14px;
  font-family: inherit; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.input::placeholder { color: var(--slate-400); }
.input-dark {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1);
  color: #e2e8f0;
}
.input-dark:focus { border-color: rgba(34,197,94,.6); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.input-dark::placeholder { color: var(--slate-500); }
.input-dark option { background: #1e293b; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--slate-600); margin-bottom: 5px; letter-spacing: .02em; text-transform: uppercase; }
.dark-label { color: var(--slate-400) !important; }
.form-row { margin-bottom: 16px; }
.form-help { font-size: 11px; color: var(--slate-500); margin-top: 4px; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }

.badge-sky    { background:var(--sky-100);    color:var(--sky-700); }
.badge-amber  { background:var(--amber-100);  color:var(--amber-700); }
.badge-violet { background:var(--violet-100); color:var(--violet-700); }
.badge-emerald{ background:var(--green-100);  color:var(--green-700); }
.badge-rose   { background:var(--red-100);    color:var(--red-700); }

/* dark badges */
.dark-badges .badge-sky    { background:rgba(14,165,233,.15); color:#7dd3fc; }
.dark-badges .badge-amber  { background:rgba(245,158,11,.15);  color:#fcd34d; }
.dark-badges .badge-violet { background:rgba(139,92,246,.15);  color:#c4b5fd; }
.dark-badges .badge-emerald{ background:rgba(34,197,94,.15);   color:#86efac; }
.dark-badges .badge-rose   { background:rgba(239,68,68,.15);   color:#fca5a5; }

/* ── ALERTAS ──────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; border: 1px solid transparent; }
.alert-error   { background:var(--red-100);   color:var(--red-700);   border-color:#fecaca; }
.alert-success { background:var(--green-100); color:var(--green-700); border-color:#bbf7d0; }
.alert-info    { background:var(--sky-100);   color:var(--sky-700);   border-color:#bae6fd; }
.alert-warning { background:var(--amber-100); color:var(--amber-700); border-color:#fde68a; }

/* ================================================================
   HEADER PÚBLICO — sticky glassmorphism
   ================================================================ */
.header-pub {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-pub.dark {
  background: rgba(10,15,30,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo:hover { text-decoration:none; }
.logo-mark {
  width:36px; height:36px; border-radius:9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 12px rgba(22,163,74,.4);
}
.logo-name { font-weight:800; font-size:13px; letter-spacing:.04em; color:var(--slate-900); }
.dark .logo-name { color:#fff; }
.logo-tag  { font-size:10px; font-weight:500; color:var(--slate-400); letter-spacing:.08em; text-transform:uppercase; }

.header-right { display:flex; align-items:center; gap:10px; }
.user-pill {
  display:flex; align-items:center; gap:10px;
  background:var(--slate-100); border-radius:999px; padding:4px 14px 4px 4px;
}
.dark .user-pill { background:rgba(255,255,255,.06); }
.user-av {
  width:28px; height:28px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color:#fff; font-weight:700; font-size:11px;
  display:flex; align-items:center; justify-content:center;
}
.user-pill .nome { font-size:13px; font-weight:600; color:var(--slate-800); }
.dark .user-pill .nome { color:#e2e8f0; }
.btn-sair {
  display:inline-flex; align-items:center; gap:5px;
  font-size:12px; color:var(--slate-500); padding:6px 10px; border-radius:var(--radius-sm);
  background:transparent; border:none; cursor:pointer; font-family:inherit; font-weight:500;
}
.btn-sair:hover { color:var(--red-600); background:var(--red-100); }
.dark .btn-sair { color:var(--slate-400); }
.dark .btn-sair:hover { color:#fca5a5; background:rgba(239,68,68,.12); }

/* ================================================================
   LANDING — hero
   ================================================================ */
.hero {
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: #fff; padding: 100px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content:''; position:absolute; top:-200px; right:-200px;
  width:600px; height:600px; border-radius:50%;
  background: radial-gradient(circle, rgba(74,222,128,.25) 0%, transparent 70%);
}
.hero::after {
  content:''; position:absolute; bottom:-150px; left:-100px;
  width:400px; height:400px; border-radius:50%;
  background: radial-gradient(circle, rgba(22,163,74,.3) 0%, transparent 70%);
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index:1; }
.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-radius:999px; padding:5px 14px; font-size:12px; font-weight:600;
  color:var(--blue-100); margin-bottom:24px; backdrop-filter:blur(8px);
}
.hero h1 { font-size: clamp(32px,6vw,56px); font-weight:900; line-height:1.08; letter-spacing:-.02em; margin-bottom:16px; }
.hero h1 span { background:linear-gradient(90deg,#86efac,#bbf7d0); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p { font-size:18px; color:var(--blue-100); opacity:.9; max-width:500px; margin:0 auto 40px; line-height:1.5; }

.busca-card {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius-xl); padding:28px; backdrop-filter:blur(12px);
  max-width:560px; margin:0 auto; box-shadow:var(--shadow-xl);
}
.busca-card p { font-size:13px; color:var(--blue-200); margin-bottom:14px; font-weight:500; }
.busca-row { display:flex; gap:8px; }
.busca-row .input {
  background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2);
  color:#fff; font-size:15px; padding:13px 18px; border-radius:var(--radius);
}
.busca-row .input::placeholder { color:rgba(255,255,255,.4); }
.busca-row .input:focus { border-color:rgba(255,255,255,.5); box-shadow:0 0 0 3px rgba(255,255,255,.1); }
.busca-row .btn { padding:13px 22px; font-size:14px; }
@media(max-width:500px){ .busca-row { flex-direction:column; } }

/* ── FEATURES ─────────────────────────────────────────────── */
.features-section { max-width:1280px; margin:0 auto; padding:70px 24px; }
.section-tag { font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--blue-500); margin-bottom:10px; }
.section-title { font-size:clamp(24px,4vw,36px); font-weight:800; color:var(--slate-900); margin-bottom:6px; letter-spacing:-.02em; }
.section-subtitle { font-size:16px; color:var(--slate-500); margin-bottom:48px; }

.features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.feature-card {
  background:#fff; border:1.5px solid var(--slate-200);
  border-radius:var(--radius-lg); padding:28px; transition:all .2s ease;
  position:relative; overflow:hidden;
}
.feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--blue-400), var(--blue-600));
  opacity:0; transition:.2s;
}
.feature-card:hover { border-color:var(--blue-200); box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.feature-card:hover::before { opacity:1; }
.feature-icon {
  width:48px; height:48px; border-radius:12px;
  background:var(--blue-50); color:var(--blue-600);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.feature-card h3 { font-size:16px; font-weight:700; color:var(--slate-900); margin-bottom:8px; }
.feature-card p { font-size:13px; color:var(--slate-500); line-height:1.6; }

.rodape {
  background:var(--slate-900); color:var(--slate-500);
  padding:32px 24px; text-align:center; font-size:13px;
}
.rodape a { color:var(--slate-400); }
.rodape a:hover { color:#fff; }

/* ================================================================
   AUTH — login / cadastro
   ================================================================ */
.auth-page {
  min-height:100vh; display:flex;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--ink-900) 60%, var(--ink-950) 100%);
}
.auth-left {
  flex:1; display:flex; align-items:center; justify-content:center;
  padding:60px 40px;
}
.auth-visual {
  display:flex; flex-direction:column; max-width:460px; width:100%;
  color:#fff;
}
.auth-logo { display:flex; align-items:center; gap:12px; margin-bottom:64px; text-decoration:none; }
.auth-logo:hover { text-decoration:none; }
.auth-logo .logo-mark { width:40px; height:40px; border-radius:10px; }
.auth-logo span { font-weight:800; font-size:14px; letter-spacing:.04em; color:#fff; }
.auth-headline { font-size:clamp(28px,4vw,40px); font-weight:900; letter-spacing:-.02em; line-height:1.1; margin-bottom:16px; }
.auth-headline span { background:linear-gradient(90deg,#86efac,#4ade80); -webkit-background-clip:text; background-clip:text; color:transparent; }
.auth-desc { font-size:15px; color:var(--blue-200); line-height:1.6; margin-bottom:40px; }
.auth-steps { display:flex; flex-direction:column; gap:16px; }
.auth-step { display:flex; gap:14px; align-items:flex-start; }
.auth-step .num {
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--blue-200);
}
.auth-step .text { font-size:13px; color:var(--slate-400); line-height:1.5; }
.auth-step .text strong { color:var(--slate-200); display:block; margin-bottom:2px; }

.auth-right {
  width:460px; flex-shrink:0;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.07);
  display:flex; align-items:center; justify-content:center;
  padding:40px;
}
.auth-form-box { width:100%; max-width:380px; }
.auth-form-box h2 { font-size:24px; font-weight:800; color:#fff; margin-bottom:6px; }
.auth-form-box .sub { font-size:13px; color:var(--slate-500); margin-bottom:28px; }
.auth-form-box label { color:var(--slate-400); }
.auth-form-box .input { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.1); color:#fff; }
.auth-form-box .input:focus { border-color:rgba(34,197,94,.6); }
.auth-footer-link { text-align:center; font-size:13px; color:var(--slate-500); margin-top:20px; }
.auth-footer-link a { color:var(--blue-300); font-weight:600; }

.role-toggle {
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius); padding:4px; margin-bottom:20px;
}
.role-toggle button {
  padding:9px; border-radius:var(--radius-sm); border:none;
  background:transparent; color:var(--slate-400); font-weight:600;
  font-size:13px; cursor:pointer; font-family:inherit; transition:all .15s;
}
.role-toggle button.active { background:rgba(255,255,255,.12); color:#fff; }

@media(max-width:860px){
  .auth-left { display:none; }
  .auth-right { width:100%; border-left:none; background:var(--ink-900); min-height:100vh; }
}

/* ================================================================
   PAINEL VENDEDOR — dark
   ================================================================ */
.dark-theme {
  background: var(--ink-900);
  color: var(--slate-200);
  min-height:100vh;
}
.dark-theme a { color: var(--blue-300); }

.painel-wrap { max-width:1280px; margin:0 auto; padding:32px 24px; }

/* ── STATS ────────────────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:28px; }
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-lg); padding:22px;
  position:relative; overflow:hidden; transition:.2s;
}
.stat-card::after {
  content:''; position:absolute; top:0; right:0;
  width:80px; height:80px; border-radius:50%;
  background:radial-gradient(circle, rgba(34,197,94,.12), transparent);
  transform:translate(20px,-20px);
}
.stat-card:hover { border-color:rgba(34,197,94,.2); }
.stat-card.alerta { border-color:rgba(239,68,68,.25); }
.stat-card.alerta::after { background:radial-gradient(circle, rgba(239,68,68,.12), transparent); }
.stat-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--slate-500); margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.stat-valor { font-size:38px; font-weight:800; color:#fff; line-height:1; }
.stat-sub { font-size:11px; color:var(--slate-600); margin-top:6px; }

/* ── ABAS ─────────────────────────────────────────────────── */
.tabs-bar {
  display:flex; gap:2px; background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-lg);
  padding:5px; margin-top:28px; overflow-x:auto;
}
.tab-link {
  display:inline-flex; align-items:center; gap:7px; padding:9px 16px;
  border-radius:var(--radius); color:var(--slate-500); font-weight:600;
  font-size:13px; text-decoration:none; white-space:nowrap; transition:all .15s;
}
.tab-link:hover { background:rgba(255,255,255,.05); color:var(--slate-200); text-decoration:none; }
.tab-link.ativo { background:rgba(255,255,255,.09); color:#fff; }
.tab-badge {
  background:var(--red-500); color:#fff; font-size:10px; font-weight:700;
  padding:2px 7px; border-radius:999px;
}

/* ── SECÇÃO DO PAINEL ─────────────────────────────────────── */
.painel-sec {
  background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius-lg); padding:24px; margin-top:20px;
}
.painel-sec-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.painel-sec-header h2 { font-size:17px; font-weight:700; color:#fff; }
.painel-sec-header p  { font-size:12px; color:var(--slate-500); margin-top:3px; }

/* ── TABELA ───────────────────────────────────────────────── */
.table-wrap { overflow-x:auto; border-radius:var(--radius); border:1px solid rgba(255,255,255,.06); }
.t { width:100%; border-collapse:collapse; font-size:13px; min-width:580px; }
.t thead { background:rgba(255,255,255,.03); }
.t th {
  padding:11px 14px; font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:var(--slate-500); text-align:left; white-space:nowrap;
}
.t td { padding:12px 14px; border-top:1px solid rgba(255,255,255,.04); color:var(--slate-300); vertical-align:middle; }
.t tbody tr:hover td { background:rgba(255,255,255,.03); }
.mono { font-family:'Courier New',monospace; color:var(--blue-300); font-size:12px; font-weight:600; }

/* ── AÇÕES NA TABELA ──────────────────────────────────────── */
.ac { display:flex; gap:5px; align-items:center; }
.ac-btn {
  display:inline-flex; align-items:center; gap:4px; padding:4px 10px;
  border-radius:var(--radius-sm); font-size:11px; font-weight:600;
  border:1px solid transparent; cursor:pointer; text-decoration:none; font-family:inherit; transition:.15s;
}
.ac-edit  { background:rgba(22,163,74,.12);  color:var(--blue-300);  border-color:rgba(22,163,74,.25); }
.ac-edit:hover { background:rgba(22,163,74,.22); text-decoration:none; }
.ac-del   { background:rgba(239,68,68,.12);  color:#fca5a5; border-color:rgba(239,68,68,.25); }
.ac-del:hover { background:rgba(239,68,68,.22); }
.ac-view  { background:rgba(255,255,255,.05); color:var(--slate-400); border-color:rgba(255,255,255,.1); }
.ac-view:hover { background:rgba(255,255,255,.1); color:var(--slate-200); text-decoration:none; }

/* ── FORMULÁRIO CRIAR ENCOMENDA ──────────────────────────── */
.form-criar { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:10px; align-items:end; }
@media(max-width:820px){ .form-criar { grid-template-columns:1fr; } }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:24px; z-index:60;
}
.modal {
  background: var(--ink-800); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-xl); padding:28px; width:100%; max-width:520px;
  max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-xl);
}
.modal-hd { display:flex; justify-content:space-between; align-items:start; margin-bottom:20px; }
.modal-hd h3 { font-size:18px; font-weight:700; color:#fff; }
.modal-close { background:none; border:none; color:var(--slate-500); cursor:pointer; padding:4px; border-radius:var(--radius-sm); }
.modal-close:hover { color:#fff; background:rgba(255,255,255,.08); }
.modal-ft { margin-top:22px; display:flex; justify-content:flex-end; gap:10px; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty {
  text-align:center; padding:56px 24px;
  border:1.5px dashed rgba(255,255,255,.08); border-radius:var(--radius-lg);
  color:var(--slate-600); font-size:13px;
}
.empty .empty-icon {
  width:52px; height:52px; border-radius:50%;
  background:rgba(255,255,255,.04); color:var(--slate-600);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px;
}
.empty strong { display:block; color:var(--slate-400); font-size:14px; margin-bottom:4px; }

/* ── SENHA REVEAL ────────────────────────────────────────── */
.senha-reveal {
  display:inline-flex; align-items:center; gap:6px;
  font-family:'Courier New',monospace; font-size:12px;
}
.senha-reveal .senha-dots { letter-spacing:2px; color:var(--slate-500); }
.senha-reveal .senha-real { display:none; color:#86efac; font-weight:600; }
.senha-reveal .toggle-senha {
  background:none; border:none; cursor:pointer; color:var(--slate-500);
  padding:2px 4px; border-radius:4px; display:inline-flex;
}
.senha-reveal .toggle-senha:hover { color:var(--blue-300); background:rgba(34,197,94,.1); }
.senha-reveal.visible .senha-dots { display:none; }
.senha-reveal.visible .senha-real { display:inline; }

/* ================================================================
   CHAT
   ================================================================ */
.chat-layout {
  display:grid; grid-template-columns:300px 1fr; gap:0;
  height:580px; border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-lg); overflow:hidden;
}
@media(max-width:780px){ .chat-layout { grid-template-columns:1fr; height:auto; } }

.chat-sidebar {
  background:rgba(0,0,0,.15); border-right:1px solid rgba(255,255,255,.06);
  display:flex; flex-direction:column; overflow:hidden;
}
.chat-sid-hd {
  padding:16px; border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px; font-weight:700; color:#fff; display:flex; justify-content:space-between; align-items:center;
}
.conv-list { flex:1; overflow-y:auto; }
.conv-item {
  width:100%; display:flex; gap:10px; padding:13px 14px;
  background:transparent; border:none; border-top:1px solid rgba(255,255,255,.04);
  text-align:left; cursor:pointer; color:inherit; transition:.15s;
}
.conv-item:hover { background:rgba(255,255,255,.04); }
.conv-item.ativo { background:rgba(34,197,94,.1); border-left:3px solid var(--blue-500); }
.conv-av {
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,var(--blue-700),var(--blue-500));
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; color:#fff;
}
.conv-info { flex:1; min-width:0; }
.conv-info .topo { display:flex; justify-content:space-between; gap:4px; }
.conv-nome { font-size:13px; font-weight:600; color:#e2e8f0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-quando { font-size:10px; color:var(--slate-500); flex-shrink:0; }
.conv-preview { font-size:11px; color:var(--slate-500); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-nao-lida {
  background:var(--red-500); color:#fff; font-size:10px; font-weight:700;
  padding:2px 7px; border-radius:999px; align-self:center; flex-shrink:0;
}

.chat-main { display:flex; flex-direction:column; }
.chat-empty {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  color:var(--slate-600); text-align:center; padding:32px;
}
.chat-empty .ci {
  width:56px; height:56px; border-radius:50%;
  background:rgba(255,255,255,.04); color:var(--slate-600);
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.chat-window { display:flex; flex-direction:column; flex:1; overflow:hidden; }
.chat-hd {
  padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.06);
  display:flex; align-items:center; gap:12px;
}
.chat-hd .nome { font-weight:700; color:#fff; font-size:14px; }
.chat-hd .cod  { font-size:11px; color:var(--blue-300); font-family:'Courier New',monospace; }

.chat-msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.msg { display:flex; }
.msg.minha { justify-content:flex-end; }
.bolha {
  max-width:72%; padding:9px 14px; border-radius:16px;
  font-size:13px; white-space:pre-wrap; word-break:break-word; line-height:1.5;
}
.msg.deles .bolha { background:rgba(255,255,255,.08); color:#e2e8f0; border-top-left-radius:4px; }
.msg.minha .bolha { background:var(--blue-600); color:#fff; border-top-right-radius:4px; box-shadow:0 2px 8px rgba(22,163,74,.35); }
.bolha .meta { font-size:10px; margin-top:5px; opacity:.55; }
.chat-input-bar {
  display:flex; gap:10px; padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.06); background:rgba(0,0,0,.1);
}
.chat-input-bar textarea {
  flex:1; resize:none; max-height:100px; padding:10px 14px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius); color:#fff; font-family:inherit; font-size:13px; outline:none;
}
.chat-input-bar textarea:focus { border-color:rgba(34,197,94,.5); }
.chat-input-bar textarea::placeholder { color:var(--slate-600); }

/* ================================================================
   PAINEL CLIENTE — light
   ================================================================ */
.cliente-bg { background:var(--slate-50); min-height:100vh; }
.cliente-wrap { max-width:1000px; margin:0 auto; padding:36px 24px; }
.page-title { font-size:26px; font-weight:800; color:var(--slate-900); letter-spacing:-.02em; }
.page-sub   { font-size:14px; color:var(--slate-500); margin-top:4px; }

.enc-list { margin-top:24px; display:flex; flex-direction:column; gap:10px; }
.enc-row {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  background:#fff; border:1.5px solid var(--slate-200); border-radius:var(--radius-lg);
  padding:16px 20px; text-decoration:none; transition:all .15s;
}
.enc-row:hover { border-color:var(--blue-300); box-shadow:var(--shadow-lg); transform:translateY(-1px); text-decoration:none; }
.enc-token { font-family:'Courier New',monospace; font-weight:700; color:var(--blue-600); font-size:14px; }
.enc-rota { font-size:13px; color:var(--slate-600); margin-top:3px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.enc-rota .de  { color:var(--green-700); font-weight:500; }
.enc-rota .ate { color:var(--red-700); font-weight:500; }
.enc-rota .arr { color:var(--slate-400); }
.enc-data { font-size:11px; color:var(--slate-400); margin-top:3px; }

.enc-empty {
  background:#fff; border:2px dashed var(--slate-200);
  border-radius:var(--radius-xl); padding:60px 24px; text-align:center; margin-top:24px;
}
.enc-empty .ei { width:60px; height:60px; background:var(--slate-100); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; color:var(--slate-400); }
.enc-empty h2 { font-size:16px; font-weight:700; color:var(--slate-900); margin-bottom:6px; }
.enc-empty p  { font-size:13px; color:var(--slate-500); }

/* ── DETALHE ENCOMENDA ────────────────────────────────────── */
.detalhe-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-top:24px; }
@media(max-width:780px){ .detalhe-grid { grid-template-columns:1fr; } }

.card-light {
  background:#fff; border:1.5px solid var(--slate-200); border-radius:var(--radius-lg); padding:24px;
}
.card-light h2 { font-size:15px; font-weight:700; color:var(--slate-800); margin-bottom:16px; display:flex; align-items:center; gap:8px; }

.rota-strip {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  background:var(--slate-50); border:1px solid var(--slate-200);
  border-radius:var(--radius); padding:16px; margin-top:18px;
}
.rota-strip .label-r { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:4px; }
.de-label  { color:var(--green-600); }
.ate-label { color:var(--red-600); }
.rota-strip .val { font-size:14px; font-weight:600; color:var(--slate-900); }

/* ── MAPA ─────────────────────────────────────────────────── */
.mapa-box {
  width:100%; height:380px; border-radius:var(--radius); overflow:hidden;
  border:1.5px solid var(--slate-200); position:relative; background:var(--slate-100);
}
.mapa-box > div:first-child { width:100% !important; height:100% !important; }
.mapa-loading {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  background:rgba(248,250,252,.85); color:var(--slate-500); font-size:13px; gap:8px;
}
.mapa-sem-coords {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:24px;
  background:#fff;
}
.mapa-sem-coords p { font-size:13px; color:var(--slate-600); font-weight:500; }
.mapa-sem-coords .sub { font-size:11px; color:var(--slate-500); margin-top:4px; }
.mapa-legenda {
  display:flex; flex-wrap:wrap; gap:14px; margin-top:10px;
  font-size:11px; color:var(--slate-600);
}
.mapa-legenda span { display:inline-flex; align-items:center; gap:5px; }
.dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.dot-from { background:var(--green-500); }
.dot-now  { background:var(--blue-600); }
.dot-to   { background:var(--red-500); }

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline { list-style:none; position:relative; padding-left:26px; }
.timeline::before {
  content:''; position:absolute; left:5px; top:6px; bottom:6px;
  width:2px; background:var(--slate-200); border-radius:2px;
}
.timeline li { position:relative; padding-bottom:22px; }
.timeline li:last-child { padding-bottom:0; }
.timeline li::before {
  content:''; position:absolute; left:-22px; top:5px;
  width:12px; height:12px; border-radius:50%;
  background:var(--blue-500); border:2px solid #fff;
  box-shadow:0 0 0 2px var(--blue-200);
}
.tl-quando { font-size:10px; color:var(--slate-500); font-weight:500; }
.tl-desc   { font-size:13px; color:var(--slate-800); margin-top:3px; font-weight:500; }
.tl-local  { font-size:11px; color:var(--slate-500); margin-top:3px; display:flex; align-items:center; gap:4px; }

/* ── RASTREAMENTO PÚBLICO ─────────────────────────────────── */
.rastrear-wrap { max-width:1000px; margin:0 auto; padding:30px 24px; }
.rastrear-card {
  background:#fff; border:1.5px solid var(--slate-200); border-radius:var(--radius-xl); padding:28px;
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:16px;
  box-shadow:var(--shadow);
}
.rastrear-token { font-family:'Courier New',monospace; font-size:20px; font-weight:800; color:var(--blue-600); }
.rastrear-card h1 { font-size:22px; font-weight:700; color:var(--slate-900); margin-top:8px; }
.rastrear-card .updated { font-size:12px; color:var(--slate-400); margin-top:4px; }

/* ── VOLTAR ───────────────────────────────────────────────── */
.voltar { display:inline-flex; align-items:center; gap:6px; color:var(--slate-500); font-size:13px; font-weight:500; }
.voltar:hover { color:var(--blue-600); text-decoration:none; }

/* ── BTN SAIR LIGHT ──────────────────────────────────────── */
.sair-btn {
  display:inline-flex; align-items:center; gap:5px;
  border:1.5px solid var(--slate-200); color:var(--slate-600);
  padding:6px 12px; border-radius:var(--radius-sm); font-size:12px;
  background:#fff; cursor:pointer; text-decoration:none; font-weight:500; font-family:inherit;
}
.sair-btn:hover { background:var(--slate-100); text-decoration:none; color:var(--slate-800); }
.dark .sair-btn {
  background:transparent; color:var(--slate-400);
  border-color:rgba(255,255,255,.1);
}
.dark .sair-btn:hover { background:rgba(255,255,255,.06); color:#fff; }

/* ── HERO PAINEL ──────────────────────────────────────────── */
.painel-titulo {
  font-size:clamp(24px,4vw,34px); font-weight:900; letter-spacing:-.02em;
  background:linear-gradient(90deg,var(--blue-300),var(--blue-500));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.painel-sub { font-size:13px; color:var(--slate-500); margin-top:4px; }
.codigo-tag {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.2);
  border-radius:999px; padding:3px 12px; font-size:12px; color:var(--blue-300);
  font-family:'Courier New',monospace; font-weight:700; margin-top:8px;
}

/* ── CHAT CLIENTE (LIGHT) ─────────────────────────────────── */
.chat-light {
  background:#fff; border:1.5px solid var(--slate-200); border-radius:var(--radius-lg);
  overflow:hidden; display:flex; flex-direction:column;
  height:calc(100vh - 180px); min-height:520px;
}
.chat-light-hd {
  padding:16px 20px; border-bottom:1px solid var(--slate-200);
  display:flex; align-items:center; gap:12px;
}
.chat-light-hd .av {
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue-500),var(--blue-700));
  color:#fff; font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.chat-light-hd .nome { font-weight:700; color:var(--slate-900); font-size:15px; }
.chat-light-hd .cod  { font-size:11px; color:var(--blue-600); font-family:'Courier New',monospace; }
.status-dot { width:9px; height:9px; background:var(--green-500); border-radius:50%; flex-shrink:0; margin-left:auto; }
.chat-msgs-light {
  flex:1; overflow-y:auto; background:var(--slate-50);
  padding:16px; display:flex; flex-direction:column; gap:10px;
}
.msg-light { display:flex; }
.msg-light.minha { justify-content:flex-end; }
.bolha-light {
  max-width:72%; padding:10px 14px; border-radius:16px;
  font-size:13px; white-space:pre-wrap; word-break:break-word;
  box-shadow:var(--shadow-sm);
}
.msg-light.deles .bolha-light { background:#fff; color:var(--slate-800); border-top-left-radius:4px; border:1px solid var(--slate-200); }
.msg-light.minha .bolha-light { background:var(--blue-600); color:#fff; border-top-right-radius:4px; box-shadow:0 2px 8px rgba(22,163,74,.3); }
.bolha-light .meta { font-size:10px; margin-top:5px; opacity:.55; }
.chat-input-light {
  display:flex; gap:10px; padding:14px 16px;
  border-top:1px solid var(--slate-200); background:#fff;
}
.chat-input-light textarea {
  flex:1; resize:none; max-height:100px; padding:10px 14px;
  border:1.5px solid var(--slate-200); border-radius:var(--radius);
  font-family:inherit; font-size:13px; outline:none; color:var(--slate-900);
}
.chat-input-light textarea:focus { border-color:var(--blue-400); box-shadow:0 0 0 3px rgba(34,197,94,.12); }

/* ── SPINNER ──────────────────────────────────────────────── */
@keyframes spin { to { transform:rotate(360deg); } }
.spinner {
  width:20px; height:20px; border:2px solid var(--slate-300);
  border-top-color:var(--blue-500); border-radius:50%;
  animation:spin .7s linear infinite;
}

/* ================================================================
   WATTS RASTREIO — Refinamentos v3 (profissional + prático)
   ================================================================ */

/* Botão primário com leve profundidade e brilho verde */
.btn-primary {
  background: linear-gradient(180deg, var(--green-500) 0%, var(--green-600) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px -4px rgba(22,163,74,.45);
  letter-spacing:.01em;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--green-600) 0%, var(--green-700) 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 10px 24px -6px rgba(22,163,74,.55);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Marca mais nítida e logo com destaque suave */
.logo-name { letter-spacing:.06em; }
.logo-mark {
  box-shadow: 0 4px 14px rgba(22,163,74,.45), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Cartões de recurso com elevação ao passar o mouse */
.feature-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200, #bbf7d0);
}

/* Foco acessível e consistente (teclado) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(34,197,94,.45);
  outline-offset: 2px;
}

/* Campo de chat que cresce com o texto (prático, sem limite) */
.chat-input-bar textarea,
.chat-input-light textarea {
  max-height: 160px;
  resize: none;
  line-height: 1.45;
  overflow-y: auto;
}

/* Ponto de status "online" com pulso discreto */
.status-dot {
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: wattsPulse 2s infinite;
}
@keyframes wattsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Barra de rolagem mais discreta no chat */
.chat-msgs::-webkit-scrollbar, .chat-msgs-light::-webkit-scrollbar { width:8px; }
.chat-msgs::-webkit-scrollbar-thumb, .chat-msgs-light::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,.35); border-radius:999px;
}

/* ── RODAPÉ com logo Watts Multi ───────────────────────────────── */
.rodape { padding: 40px 24px 32px; }
.rodape-logo { display:block; height:44px; width:auto; margin:0 auto 14px; opacity:.95; }
@media (max-width: 640px) { .rodape-logo { height:36px; } }

/* ── PÁGINA INICIAL: foto de fundo (formato stories) cobrindo a página toda + filtro preto 70% ── */
body.landing-bg { background:#06110b; color:#fff; }
body.landing-bg::before {          /* a foto, fixa, cobrindo toda a tela (funciona também no iPhone) */
  content:''; position:fixed; inset:0; z-index:-2;
  background:#06110b url('fundo-watts.jpg') center 42% / cover no-repeat;
}
body.landing-bg::after {           /* filtro preto com 70% de opacidade */
  content:''; position:fixed; inset:0; z-index:-1; background:rgba(0,0,0,.70);
}
.landing-bg .header-pub.dark { background:rgba(6,17,11,.72); border-bottom:1px solid rgba(255,255,255,.08); }
.landing-bg .hero { background:transparent; padding:110px 24px 90px; }
.landing-bg .hero::before, .landing-bg .hero::after { display:none; }
.landing-bg .hero p { color:rgba(255,255,255,.84); }
.landing-bg .hero-badge { color:#bbf7d0; background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.22); }
.hero-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:36px; }
.landing-bg .features-section { background:transparent; }
.landing-bg .section-tag { color:#86efac; }
.landing-bg .section-title { color:#fff; }
.landing-bg .section-subtitle { color:rgba(255,255,255,.70); }
.landing-bg .feature-card {
  background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.landing-bg .feature-card:hover { border-color:rgba(134,239,172,.55); background:rgba(255,255,255,.09); }
.landing-bg .feature-card h3 { color:#fff; }
.landing-bg .feature-card p { color:rgba(255,255,255,.72); }
.landing-bg .feature-icon { background:rgba(34,197,94,.18); color:#86efac; }
.landing-bg .rodape { background:rgba(0,0,0,.35); border-top:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.62); }
@media (max-width: 640px) { .landing-bg .hero { padding:84px 20px 72px; } }

/* ── MODO APP (PWA): toque, área segura, sensação de aplicativo ─────────── */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
.btn, button, .tab-btn, .conv-item { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
@media (display-mode: standalone) {
  .header-pub { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 640px) {
  .btn { min-height: 44px; }           /* alvo de toque confortável */
  .input { font-size: 16px; }          /* evita zoom automático no iPhone ao focar */
}

/* ================================================================
   LEITURA FÁCIL (público 35+): letras maiores, botões grandes, contraste
   ================================================================ */
body { font-size: 16px; line-height: 1.6; }
label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--slate-700); margin-bottom: 7px; }
.dark-label { color: var(--slate-300) !important; }
.input { font-size: 16px; padding: 13px 16px; min-height: 50px; border-radius: 12px; }
.btn { font-size: 15px; padding: 13px 22px; border-radius: 12px; }
.btn-sm { font-size: 14px; padding: 10px 16px; min-height: 42px; }
.badge { font-size: 13px; padding: 5px 12px; }
.alert { font-size: 15px; padding: 14px 18px; }

.page-title { font-size: 28px; }
.page-sub { font-size: 16px; color: var(--slate-600); }
.enc-list { gap: 12px; }
.enc-row { padding: 18px 20px; border-radius: 16px; }
.enc-token { font-size: 17px; }
.enc-rota { font-size: 15px; margin-top: 6px; }
.enc-data { font-size: 13px; color: var(--slate-500); margin-top: 4px; }
.enc-empty h2 { font-size: 19px; }
.enc-empty p { font-size: 15px; }

.rastrear-token { font-size: 22px; }
.rastrear-card .updated { font-size: 14px; color: var(--slate-500); }
.card-light h2 { font-size: 18px; }
.tl-quando { font-size: 13px; }
.tl-desc { font-size: 15px; }
.tl-local { font-size: 13px; }

.bolha-light, .bolha { font-size: 16px; line-height: 1.5; max-width: 82%; }
.bolha-light .meta, .bolha .meta { font-size: 12px; opacity: .65; }
.chat-input-light textarea, .chat-input-bar textarea { font-size: 16px; }
.chat-light-hd .nome { font-size: 17px; }
.conv-nome { font-size: 15px; }
.conv-preview { font-size: 14px; }

.auth-desc { font-size: 17px; }
.auth-step .text { font-size: 15px; }
.auth-form-box h2 { font-size: 26px; }
.tab-link { font-size: 15px; padding: 11px 18px; }
.tab-badge { font-size: 12px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 15px; }
.rodape { font-size: 14px; }


/* ================================================================
   BARRA INFERIOR ESTILO APP (celular)
   ================================================================ */
.app-nav { display: none; }
@media (max-width: 768px) {
  /* Cliente: barra fixa com ícone grande + nome */
  .app-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--slate-200);
    box-shadow: 0 -6px 20px rgba(15,23,42,.08);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .app-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 60px; border-radius: 14px; color: var(--slate-500);
    font-size: 13px; font-weight: 700; text-decoration: none;
  }
  .app-nav a.ativo { color: var(--green-700); background: var(--green-100); }
  .app-nav a:active { transform: scale(.96); }
  .app-nav-ic { position: relative; display: inline-flex; }
  .app-nav-badge {
    position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--red-500); color: #fff; border-radius: 999px; border: 2px solid #fff;
    font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
  }
  body.tem-app-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* no celular o "Sair" e o "Voltar" do topo ficam na barra de baixo */
  .cliente-wrap { padding: 22px 16px; }

  /* Vendedor: as abas viram a barra inferior */
  body.dark-theme { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .dark-theme .tabs-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; gap: 4px;
    border-radius: 0; border: 0; border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(8,14,24,.97); overflow: visible;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .dark-theme .tab-link {
    flex: 1; flex-direction: column; justify-content: center; gap: 3px; position: relative;
    min-height: 60px; padding: 6px 2px; font-size: 12px; border-radius: 14px;
  }
  .dark-theme .tab-link svg { width: 24px; height: 24px; }
  .dark-theme .tab-link.ativo { background: rgba(34,197,94,.16); color: #86efac; }
  .dark-theme .tab-link .tab-badge { position: absolute; top: 4px; right: 18%; }
}

/* Chat do cliente no celular: ocupa a tela, campo de mensagem sempre visível (como app de mensagens) */
@media (max-width: 768px) {
  .tela-chat { padding-top: 12px; padding-bottom: 0; }
  .tela-chat > .page-title, .tela-chat > .page-sub { display: none; }
  .tela-chat .chat-light {
    height: calc(100vh - 62px - 84px - 24px);
    height: calc(100dvh - 62px - 84px - 24px - env(safe-area-inset-bottom));
    min-height: 380px; border-radius: 18px;
  }
  .tela-chat .chat-input-light { padding: 10px 12px; }
  .tela-chat .chat-input-light textarea { min-height: 48px; }
  .tela-chat .chat-input-light .btn { min-height: 48px; padding: 10px 16px; }
  /* o atalho "Chat com…" da lista de encomendas já está na barra de baixo */
  body.tem-app-nav .cliente-wrap a.btn[href$="/cliente/suporte.php"] { display: none; }
}
/* barra de rolagem do campo de mensagem só aparece quando o texto passa do limite de altura */
.chat-input-bar textarea, .chat-input-light textarea { overflow-y: hidden; padding-left: 14px; padding-right: 12px; }

/* Celular: topo em uma linha e números do painel lado a lado */
.logo-name { white-space: nowrap; }
@media (max-width: 768px) {
  .header-inner { padding: 0 14px; gap: 10px; }
  .logo-tag { display: none; }
  .user-pill { padding: 4px; }
  .user-pill .nome { display: none; }
  .painel-wrap { padding: 20px 14px; }
  .painel-titulo { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; margin-top: 18px; }
  .stat-card { padding: 12px 10px; border-radius: 14px; min-width: 0; }
  .stat-card::before, .stat-card::after { display: none; }
  .stat-label { font-size: 11px; letter-spacing: .02em; line-height: 1.25; min-height: 28px; }
  .stat-label svg { display: none; }
  .stat-valor { font-size: 28px; margin-top: 4px; }
  .stat-sub { display: none; }
}
/* botão voltar do chat do vendedor (só no celular) */
.chat-voltar { display:none; align-items:center; justify-content:center; width:34px; height:34px; border:none; background:transparent; color:#fff; cursor:pointer; margin-right:2px; flex-shrink:0; border-radius:8px; }
.chat-voltar:active { background:rgba(255,255,255,.08); }
@media (max-width: 768px) {
  .chat-empty { display: none !important; }            /* "lista ao lado" não se aplica no celular */
  .conv-item { min-height: 64px; }
  .chat-voltar { display:inline-flex; }
  /* conversa em tela cheia (como um app de mensagens) */
  body.chat-aberto { overflow:hidden; }
  body.chat-aberto .app-nav,
  body.chat-aberto.dark-theme .tabs-bar { display:none !important; }   /* esconde a barra de abas enquanto conversa */
  .chat-window {
    position:fixed; inset:0; z-index:80; height:auto; min-height:0;
    background:var(--ink-900); border-radius:0;
  }
  .chat-window .chat-hd { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-window .chat-input-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ── LOGO "WATTS RASTREIO" (imagem) e ícone de radar ─────────────────── */
.logo-img { display:block; height:40px; width:auto; }
.logo-img-sm { height:30px; }
.logo .logo-tag { border-left:1px solid rgba(255,255,255,.18); padding-left:10px; line-height:1.3; }
.auth-logo img { display:block; height:48px; width:auto; }
.auth-marca-mobile { display:none; }
@media (max-width: 860px) {
  .auth-marca-mobile { display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:30px; }
  .auth-marca-mobile img:last-child { height:52px; width:auto; }
  .auth-app-icon { border-radius:18px; box-shadow:0 12px 30px -10px rgba(34,197,94,.65); }
}
@media (max-width: 768px) { .logo-img { height:34px; } .logo-img-sm { height:28px; } }
/* logo maior (leitura fácil) e centralizado no topo das telas de rastreio no celular */
.logo-img { height:48px; }
.logo-img-sm { height:36px; }
@media (max-width: 768px) {
  .logo-img { height:42px; }
  .logo-img-sm { height:36px; }
  body.tem-app-nav .header-inner { position:relative; }
  body.tem-app-nav .header-inner > .logo-img-sm { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
}
.auth-logo img { height:64px; }
/* foto do Suporte no cabeçalho do chat do cliente */
.chat-light-hd .av { overflow:hidden; background:var(--slate-100); }
.chat-light-hd .av img { width:100%; height:100%; object-fit:cover; display:block; }

/* ── Correção de rolagem do chat (bug flexbox: sem min-height:0 a mensagem longa
      estica a área e esconde o campo de enviar) ──────────────────────────────── */
.chat-main   { min-width:0; min-height:0; }
.chat-window { min-height:0; }
.chat-msgs   { min-height:0; }
.chat-light       { min-height:0; }
.chat-msgs-light  { min-height:0; }
.bolha, .bolha-light { overflow-wrap:anywhere; }   /* não deixa texto gigante empurrar a largura */

/* ── Fundo com foto nas telas de login e cadastro (filtro preto 75%) ──────── */
.auth-page {
  background:
    linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)),
    url('fundo-login.jpg') center center / cover no-repeat;
}
.auth-right { background: transparent; border-left: 1px solid rgba(255,255,255,.08); }
.auth-form-box {
  background: rgba(8,12,22,.62);   /* módulo ~7% mais escuro */
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 20px;
  padding: 28px 24px;
}
@media (max-width: 860px) {
  .auth-right { border-left: none; }
}

/* ── QR Code de entrega (no card de rastreio) ─────────────────────────────── */
.rastrear-right { display:flex; flex-direction:column; align-items:flex-end; gap:12px; flex-shrink:0; }
.qr-mini { position:relative; border:none; background:transparent; cursor:pointer; padding:0; display:flex; flex-direction:column; align-items:center; gap:5px; font-family:inherit; }
.qr-mini-tag { font-size:11px; font-weight:800; color:var(--green-700); background:var(--green-100); padding:3px 14px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; }
.qr-canvas { position:relative; box-sizing:border-box; width:112px; height:112px; max-width:40vw; border-radius:14px; overflow:hidden; border:2px solid var(--green-200); background:#fff; padding:6px; box-shadow:0 2px 10px rgba(16,100,55,.12); transition:border-color .15s,box-shadow .15s; }
.qr-canvas canvas, .qr-canvas img { display:block; width:100% !important; height:100% !important; filter:blur(5px); }
/* Trava visual: borra forte + camada fosca com cadeado (parece bloqueado de propósito, não bugado) */
.qr-canvas::after { content:"🔒"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:24px; background:rgba(255,255,255,.4); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.qr-mini:hover .qr-canvas, .qr-mini:focus-visible .qr-canvas { border-color:var(--green-500); box-shadow:0 4px 14px rgba(16,100,55,.22); }
.qr-canvas.liberado canvas, .qr-canvas.liberado img { filter:none; }
.qr-canvas.liberado::after { display:none; }

/* Tela (modal) do QR */
.qr-modal { display:none; position:fixed; inset:0; z-index:200; background:rgba(2,6,12,.62);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); align-items:center; justify-content:center; padding:20px; }
.qr-modal-box { background:#fff; border-radius:22px; padding:30px 26px 26px; max-width:360px; width:100%; text-align:center; position:relative; box-shadow:var(--shadow-xl); }
.qr-modal-close { position:absolute; top:10px; right:14px; border:none; background:transparent; font-size:28px; line-height:1; color:var(--slate-400); cursor:pointer; }
.qr-modal-close:hover { color:var(--slate-700); }
.qr-modal-emoji { font-size:34px; margin-bottom:4px; }
.qr-modal-box h3 { font-size:18px; font-weight:800; color:var(--slate-900); margin-bottom:18px; line-height:1.3; }
.qr-canvas-grande { position:relative; box-sizing:border-box; width:220px; height:220px; max-width:72vw; margin:0 auto 18px; border-radius:16px; overflow:hidden; border:1.5px solid var(--slate-200); background:#fff; padding:8px; }
.qr-canvas-grande canvas, .qr-canvas-grande img { display:block; width:100% !important; height:100% !important; filter:blur(11px); }
.qr-canvas-grande::after { content:"🔒"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:52px; background:rgba(255,255,255,.34); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.qr-canvas-grande.liberado canvas, .qr-canvas-grande.liberado img { filter:none; }
.qr-canvas-grande.liberado::after { display:none; }
.qr-aviso { display:flex; align-items:center; justify-content:center; gap:7px; font-size:14px; font-weight:600; color:var(--amber-700); background:var(--amber-100); padding:12px 14px; border-radius:12px; line-height:1.4; }
.qr-aviso.qr-aviso-ok { color:var(--green-700); background:var(--green-100); }
@media (max-width:480px){ .qr-canvas { width:96px; height:96px; } }

/* ================================================================
   SITE INSTITUCIONAL (tema claro) — landing, rastreio público, rodapé
   ================================================================ */
body.site { background:#fff; color:var(--slate-900); }
.site-hero { background:var(--slate-50); border-bottom:1px solid var(--slate-200); padding:72px 24px 56px; }
.site-hero-inner { max-width:760px; margin:0 auto; text-align:center; }
.site-kicker { display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--green-700); margin-bottom:14px; }
.site-kicker::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--green-500); }
.site-hero h1 { font-size:clamp(30px,5vw,46px); font-weight:800; letter-spacing:-.02em; line-height:1.1; color:var(--slate-900); margin-bottom:12px; }
.site-hero p.lead { font-size:17px; color:var(--slate-600); max-width:540px; margin:0 auto 28px; line-height:1.55; }
.site-busca { display:flex; gap:10px; max-width:560px; margin:0 auto; background:#fff; border:1.5px solid var(--slate-200); border-radius:14px; padding:8px; box-shadow:var(--shadow-lg); }
.site-busca .input { flex:1; border:none; box-shadow:none; font-size:16px; padding:12px 14px; font-family:'Courier New',monospace; letter-spacing:.06em; text-transform:uppercase; }
.site-busca .input:focus { box-shadow:none; }
.site-busca .btn { padding:12px 22px; font-size:14px; border-radius:10px; }
@media (max-width:520px){ .site-busca { flex-direction:column; padding:10px; } .site-busca .btn { width:100%; } }
.site-hero-note { font-size:13px; color:var(--slate-500); margin-top:16px; }
.site-hero-note a { font-weight:600; }

.site-sec { max-width:1100px; margin:0 auto; padding:64px 24px; }
.site-sec-alt { background:var(--slate-50); border-top:1px solid var(--slate-200); border-bottom:1px solid var(--slate-200); }
.site-sec-alt .site-sec-inner { max-width:1100px; margin:0 auto; }
.site-sec h2 { font-size:clamp(22px,3vw,30px); font-weight:800; letter-spacing:-.02em; color:var(--slate-900); margin-bottom:6px; }
.site-sec .site-sub { font-size:15px; color:var(--slate-500); margin-bottom:32px; }
.site-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.site-step { background:#fff; border:1.5px solid var(--slate-200); border-radius:16px; padding:22px; }
.site-step .n { width:34px; height:34px; border-radius:50%; background:var(--green-100); color:var(--green-700); font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.site-step h3 { font-size:15px; font-weight:700; color:var(--slate-900); margin-bottom:6px; }
.site-step p { font-size:13px; color:var(--slate-500); line-height:1.6; }
.site-feats { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.site-feat { display:flex; gap:12px; align-items:flex-start; background:#fff; border:1.5px solid var(--slate-200); border-radius:14px; padding:16px; }
.site-feat .ic { width:40px; height:40px; border-radius:10px; background:var(--green-100); color:var(--green-700); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.site-feat h3 { font-size:14px; font-weight:700; color:var(--slate-900); margin-bottom:3px; }
.site-feat p { font-size:12.5px; color:var(--slate-500); line-height:1.55; }
.site-app { max-width:1100px; margin:0 auto; padding:0 24px 64px; }
.site-app-box { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; background:var(--slate-900); color:#fff; border-radius:18px; padding:26px 28px; }
.site-app-box h3 { font-size:18px; font-weight:800; margin-bottom:4px; }
.site-app-box p { font-size:13px; color:var(--slate-300); }
.site-app-box .btn { background:#fff; color:var(--slate-900); box-shadow:none; }
.site-app-box .btn:hover { background:var(--slate-100); }

/* rodapé institucional */
.rodape-inst { background:var(--slate-900); color:var(--slate-400); padding:44px 24px 28px; font-size:13px; }
.rodape-inst-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:28px; }
@media (max-width:760px){ .rodape-inst-inner { grid-template-columns:1fr; gap:20px; } }
.rodape-inst h4 { color:#fff; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; margin-bottom:10px; }
.rodape-inst p { line-height:1.7; }
.rodape-inst a { color:var(--slate-300); }
.rodape-inst a:hover { color:#fff; }
.rodape-inst .pendente { color:var(--amber-500); }
.rodape-inst-base { max-width:1100px; margin:26px auto 0; padding-top:18px; border-top:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--slate-500); }
.rodape-inst-base img { height:30px; width:auto; opacity:.9; }

/* página pública de rastreio */
.rastreio-pub { max-width:760px; margin:0 auto; padding:36px 20px 64px; }
.rastreio-pub .site-busca { box-shadow:var(--shadow); margin-bottom:22px; }
.rastreio-vazio { background:#fff; border:1.5px dashed var(--slate-200); border-radius:16px; padding:36px 20px; text-align:center; color:var(--slate-500); font-size:14px; }
.rastreio-vazio strong { color:var(--slate-800); display:block; font-size:16px; margin-bottom:4px; }

/* ================================================================
   TRAJETO DA ENTREGA (substitui o mapa) — usado no cliente e no público
   ================================================================ */
.trajeto { background:#fff; border:1.5px solid var(--slate-200); border-radius:18px; padding:20px 20px 16px; }
.trj-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.trj-head .lbl { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--slate-400); }
.trj-head .tok { font-family:'Courier New',monospace; font-size:20px; font-weight:800; color:var(--slate-900); letter-spacing:.04em; }
.trj-prev { display:flex; align-items:center; gap:12px; background:var(--green-100); border:1px solid var(--green-200,#bbf7d0); border-radius:12px; padding:12px 14px; margin-top:16px; }
.trj-prev .ic { width:38px; height:38px; border-radius:10px; background:#fff; color:var(--green-700); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.trj-prev .t1 { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--green-700); }
.trj-prev .t2 { font-size:16px; font-weight:800; color:var(--green-800,#166534); }
.trj-prev.neutra { background:var(--slate-50); border-color:var(--slate-200); }
.trj-prev.neutra .ic { color:var(--slate-500); }
.trj-prev.neutra .t1 { color:var(--slate-500); }
.trj-prev.neutra .t2 { color:var(--slate-800); }
.trj-prev.cancel { background:var(--red-100); border-color:#fecaca; }
.trj-prev.cancel .ic { color:var(--red-600); } .trj-prev.cancel .t1 { color:var(--red-700); } .trj-prev.cancel .t2 { color:var(--red-700); }

.trj-rota { margin-top:22px; }
.trj-rota .cid { display:flex; justify-content:space-between; gap:10px; font-size:12px; font-weight:600; color:var(--slate-600); margin-bottom:8px; }
.trj-rota .cid span:last-child { text-align:right; }
.trj-linha { position:relative; height:28px; }
.trj-linha .base { position:absolute; left:0; right:0; top:13px; height:4px; border-radius:4px; background:var(--slate-200); }
.trj-linha .feito { position:absolute; left:0; top:13px; height:4px; border-radius:4px; background:var(--green-500); transition:width .6s ease; }
.trj-linha .p0, .trj-linha .p1 { position:absolute; top:8px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--green-500); }
.trj-linha .p0 { left:0; background:var(--green-500); }
.trj-linha .p1 { right:0; border-color:var(--slate-300); }
.trj-linha .p1.ok { border-color:var(--green-500); background:var(--green-500); }
.trj-linha .truck { position:absolute; top:0; transform:translateX(-50%); width:28px; height:28px; border-radius:50%; background:#fff; border:2px solid var(--green-500); color:var(--green-700); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.trj-rota .agora { font-size:12px; color:var(--slate-500); margin-top:8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.trj-rota .agora b { color:var(--slate-800); font-weight:600; }

.trj-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:22px; }
.trj-step { text-align:center; font-size:11px; color:var(--slate-400); position:relative; }
.trj-step .b { width:28px; height:28px; border-radius:50%; margin:0 auto 6px; border:2px solid var(--slate-200); background:#fff; display:flex; align-items:center; justify-content:center; color:#fff; position:relative; z-index:1; }
.trj-step::before { content:''; position:absolute; top:14px; left:-50%; right:50%; height:2px; background:var(--slate-200); }
.trj-step:first-child::before { display:none; }
.trj-step.ok .b, .trj-step.atual .b { background:var(--green-500); border-color:var(--green-500); }
.trj-step.ok::before, .trj-step.atual::before { background:var(--green-500); }
.trj-step.ok { color:var(--slate-600); }
.trj-step.atual { color:var(--slate-900); font-weight:700; }
.trj-step.atual .b { box-shadow:0 0 0 4px var(--green-100); }
.trj-step.cancelado .b { background:var(--red-500); border-color:var(--red-500); }
.trj-step.cancelado { color:var(--red-700); font-weight:700; }
@media (max-width:420px){ .trj-step { font-size:10px; } }

.trj-hist { margin-top:22px; border-top:1px solid var(--slate-100); padding-top:16px; }
.trj-hist h3 { font-size:13px; font-weight:700; color:var(--slate-800); margin-bottom:12px; }
.trj-ev { display:grid; grid-template-columns:92px 1fr; gap:10px; padding:8px 0; border-bottom:1px dashed var(--slate-100); font-size:13px; }
.trj-ev:last-child { border-bottom:none; }
.trj-ev .q { font-size:11px; color:var(--slate-500); font-weight:600; line-height:1.4; }
.trj-ev .d { color:var(--slate-800); }
.trj-ev .l { font-size:11px; color:var(--slate-500); margin-top:2px; }
.trj-ev:first-child .d { font-weight:600; }
@media (max-width:420px){ .trj-ev { grid-template-columns:78px 1fr; } }
.trj-dest { margin-top:18px; display:flex; gap:10px; align-items:flex-start; background:var(--slate-50); border:1px solid var(--slate-200); border-radius:12px; padding:12px 14px; font-size:13px; color:var(--slate-800); }
.trj-dest .lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--slate-400); margin-bottom:2px; }
.trj-acoes { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.trj-acoes .btn { flex:1; min-width:150px; height:44px; font-size:13px; }
.trj-aviso { margin-top:14px; font-size:12px; color:var(--slate-500); display:flex; gap:8px; align-items:flex-start; }

/* ================================================================
   AUTH — tema claro (login, cadastro, recuperar)
   ================================================================ */
body.auth-light .auth-page { background:var(--slate-50); }
body.auth-light .auth-left { background:var(--slate-900) url('fundo-login.jpg') center/cover no-repeat; position:relative; }
body.auth-light .auth-left::before { content:''; position:absolute; inset:0; background:rgba(5,15,10,.78); }
body.auth-light .auth-visual { position:relative; z-index:1; }
body.auth-light .auth-right { background:#fff; border-left:1px solid var(--slate-200); }
body.auth-light .auth-form-box h2 { color:var(--slate-900); }
body.auth-light .auth-form-box .sub { color:var(--slate-500); }
body.auth-light .auth-form-box label, body.auth-light .dark-label { color:var(--slate-600) !important; }
body.auth-light .auth-form-box .input, body.auth-light .input-dark { background:#fff; border-color:var(--slate-300); color:var(--slate-900); }
body.auth-light .input-dark::placeholder { color:var(--slate-400); }
body.auth-light .auth-form-box .input:focus { border-color:var(--green-500); box-shadow:0 0 0 3px rgba(34,197,94,.15); }
body.auth-light .auth-footer-link a { color:var(--green-700); }
body.auth-light .divider span { background:#fff; color:var(--slate-500); }
body.auth-light .divider { border-top-color:var(--slate-200); }
body.auth-light .pin-info { color:var(--slate-500); }
/* a caixa do formulário vira um cartão branco (o tema antigo usava um cartão escuro translúcido) */
body.auth-light .auth-form-box {
  background:#fff; -webkit-backdrop-filter:none; backdrop-filter:none;
  border:1px solid var(--slate-200); border-radius:20px; box-shadow:var(--shadow-lg);
}
body.auth-light .auth-form-box .sub a { color:var(--green-700); font-weight:600; }
@media (max-width:860px){
  body.auth-light .auth-left { display:none; }
  body.auth-light .auth-right { width:100%; border-left:none; background:var(--slate-50); min-height:100vh; }
  body.auth-light .auth-page { background:var(--slate-50); }
}

/* ================================================================
   CANTOS MAIS RETOS (pedido do dono) — tokens + componentes com raio fixo
   ================================================================ */
:root { --radius-sm:4px; --radius:6px; --radius-lg:8px; --radius-xl:10px; }
.btn, .btn-sm, .btn-icon, .input, .alert, .enc-row, .enc-empty, .card-light, .rastrear-card,
.feature-card, .site-step, .site-feat, .site-busca, .site-app-box, .rastreio-vazio,
.trajeto, .trj-prev, .trj-prev .ic, .trj-dest, .auth-form-box, .qr-canvas, .qr-canvas-grande,
.qr-modal-box, .site-feat .ic, .user-pill, .form-criar .input, .modal-box { border-radius:6px; }
.site-busca .btn, .site-busca .input { border-radius:4px; }
.badge, .qr-mini-tag, .site-step .n, .sec-num { border-radius:4px; }
.trj-linha .base, .trj-linha .feito { border-radius:2px; }
.hero-badge, .site-kicker { border-radius:4px; }
@media (max-width:480px) { .header-right a[href$="/rastreio.php"] { display:none; } }

/* ── PÁGINAS LEGAIS (privacidade / termos) ─────────────────────────────── */
.legal { max-width:820px; margin:0 auto; padding:44px 24px 72px; color:var(--slate-800); }
.legal-kicker { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--green-700); margin-bottom:8px; }
.legal h1 { font-size:clamp(26px,4vw,34px); font-weight:800; letter-spacing:-.02em; color:var(--slate-900); margin-bottom:6px; }
.legal-meta { font-size:13px; color:var(--slate-500); margin-bottom:22px; }
.legal-aviso { background:var(--amber-100); border:1px solid #fde68a; color:var(--amber-700); border-radius:6px; padding:14px 16px; font-size:14px; line-height:1.6; margin-bottom:28px; }
.legal-aviso code { background:rgba(0,0,0,.06); padding:1px 6px; border-radius:4px; font-size:13px; }
.legal h2 { font-size:18px; font-weight:800; color:var(--slate-900); margin:30px 0 10px; }
.legal p, .legal li { font-size:15.5px; line-height:1.75; }
.legal p { margin-bottom:12px; }
.legal ul { padding-left:22px; margin-bottom:12px; }
.legal li { margin-bottom:6px; }
.legal a { color:var(--green-700); font-weight:600; }
.legal-pendente { background:var(--amber-100); color:var(--amber-700); padding:0 6px; border-radius:4px; font-weight:600; }
.legal-links { margin-top:34px; padding-top:18px; border-top:1px solid var(--slate-200); }

/* ── HERO DA LANDING: texto + botões à esquerda, cena animada à direita ── */
.site-hero-split { padding:56px 24px 48px; }
.site-hero-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.05fr 1fr; gap:36px; align-items:center; }
.site-hero-copy { text-align:left; }
.site-hero-copy h1 { font-size:clamp(30px,4.2vw,44px); }
.site-hero-copy p.lead { margin:0 0 26px; max-width:520px; }
.hero-ctas { display:flex; flex-direction:column; gap:10px; max-width:360px; }
.btn-lg { height:54px; font-size:16px; padding:0 22px; }
.hero-ctas .btn-outline { background:#fff; border:1.5px solid var(--slate-300); color:var(--slate-800); }
.hero-ctas .btn-outline:hover { background:var(--slate-50); border-color:var(--slate-400); }
.hero-ctas .site-hero-note { margin:4px 0 0; text-align:left; }
.hero-anim { width:100%; aspect-ratio:560/320; border:1.5px solid var(--slate-200); border-radius:6px; overflow:hidden; background:#eef6f0; box-shadow:var(--shadow-lg); }
.hero-anim svg { display:block; }
@media (max-width:860px) {
  .site-hero-grid { grid-template-columns:1fr; gap:26px; }
  .site-hero-copy { text-align:center; }
  .site-hero-copy p.lead { margin-left:auto; margin-right:auto; }
  .hero-ctas { margin:0 auto; }
  .hero-ctas .site-hero-note { text-align:center; }
}
/* animações da cena */
@keyframes rodaGira { to { transform:rotate(360deg); } }
@keyframes faixaAnda { to { stroke-dashoffset:-60; } }
@keyframes cidadeAnda { to { transform:translateX(-280px); } }
@keyframes arbustoAnda { to { transform:translateX(-560px); } }
@keyframes nuvemAnda { to { transform:translateX(-560px); } }
@keyframes caminhaoBalanca { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2.5px); } }
@keyframes ventoPisca { 0%,100% { opacity:.15; transform:translateX(0); } 50% { opacity:.6; transform:translateX(-14px); } }
.hero-anim .roda { animation:rodaGira .7s linear infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim .faixa { animation:faixaAnda .55s linear infinite; }
.hero-anim .cidade { animation:cidadeAnda 14s linear infinite; }
.hero-anim .arbustos { animation:arbustoAnda 6s linear infinite; }
.hero-anim .nuvens { animation:nuvemAnda 40s linear infinite; }
.hero-anim .caminhao { animation:caminhaoBalanca 1.1s ease-in-out infinite; }
.hero-anim .vento { animation:ventoPisca 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-anim * { animation:none !important; } }

/* ── CENA v2: a jornada da encomenda (loop de 12s, fases sincronizadas) ── */
.hero-anim.v2 { aspect-ratio:560/360; }
/* fases (em % do loop): 0–12 postado no galpão · 12–78 em trânsito · 78–90 saiu p/ entrega · 90–100 entregue */
@keyframes v2-roda     { 0%,12% { transform:rotate(0deg); } 80%,100% { transform:rotate(3240deg); } }
@keyframes v2-faixa    { 0%,12% { stroke-dashoffset:0; } 80%,100% { stroke-dashoffset:-1620; } }
@keyframes v2-cidade   { 0%,12% { transform:translateX(0); } 80%,100% { transform:translateX(-560px); } }
@keyframes v2-morros   { 0%,12% { transform:translateX(0); } 80%,100% { transform:translateX(-560px); } }
@keyframes v2-arbustos { 0%,12% { transform:translateX(0); } 80%,100% { transform:translateX(-1120px); } }
@keyframes v2-nuvemL   { to { transform:translateX(-560px); } }
@keyframes v2-nuvemP   { to { transform:translateX(-560px); } }
@keyframes v2-passaros { to { transform:translateX(-560px); } }
@keyframes v2-sol      { to { transform:rotate(360deg); } }
@keyframes v2-galpao   { 0%,12% { transform:translateX(0); opacity:1; } 24% { transform:translateX(-340px); opacity:1; } 25%,97% { transform:translateX(-340px); opacity:0; } 98%,100% { transform:translateX(0); opacity:0; } }
@keyframes v2-casa     { 0%,74% { transform:translateX(0); } 86%,100% { transform:translateX(-470px); } }
@keyframes v2-pacote   { 0%,90% { transform:scale(0); opacity:0; } 93% { transform:scale(1.18); opacity:1; } 95%,100% { transform:scale(1); opacity:1; } }
@keyframes v2-balanco  { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
@keyframes v2-gate     { 0%,13%,79%,100% { opacity:0; } 16%,76% { opacity:1; } }
@keyframes v2-puff     { 0% { transform:translate(0,0) scale(.4); opacity:.9; } 100% { transform:translate(-26px,-22px) scale(1.6); opacity:0; } }
@keyframes v2-vento    { 0%,13%,79%,100% { opacity:0; } 20%,70% { opacity:.6; } }
@keyframes v2-st1      { 0%,11% { opacity:1; } 13%,100% { opacity:0; } }
@keyframes v2-st2      { 0%,13% { opacity:0; } 15%,76% { opacity:1; } 78%,100% { opacity:0; } }
@keyframes v2-st3      { 0%,78% { opacity:0; } 80%,89% { opacity:1; } 91%,100% { opacity:0; } }
@keyframes v2-st4      { 0%,91% { opacity:0; } 93%,100% { opacity:1; } }
@keyframes v2-cartao   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
@keyframes v2-prog     { 0% { stroke-dashoffset:460; } 12% { stroke-dashoffset:460; } 78% { stroke-dashoffset:154; } 90% { stroke-dashoffset:40; } 93%,100% { stroke-dashoffset:0; } }
@keyframes v2-m1 { 0%,2% { fill:#e2e8f0; } 4%,100% { fill:#16a34a; } }
@keyframes v2-m2 { 0%,13% { fill:#e2e8f0; } 15%,100% { fill:#16a34a; } }
@keyframes v2-m3 { 0%,78% { fill:#e2e8f0; } 80%,100% { fill:#16a34a; } }
@keyframes v2-m4 { 0%,92% { fill:#e2e8f0; } 94%,100% { fill:#16a34a; } }
@keyframes v2-veu      { 0% { opacity:1; } 3%,96% { opacity:0; } 99%,100% { opacity:1; } }
.hero-anim.v2 .a-roda     { animation:v2-roda 12s linear infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim.v2 .a-faixa    { animation:v2-faixa 12s linear infinite; }
.hero-anim.v2 .a-cidade   { animation:v2-cidade 12s linear infinite; }
.hero-anim.v2 .a-morros   { animation:v2-morros 12s linear infinite; }
.hero-anim.v2 .a-arbustos { animation:v2-arbustos 12s linear infinite; }
.hero-anim.v2 .a-nuvem-longe { animation:v2-nuvemL 60s linear infinite; }
.hero-anim.v2 .a-nuvem-perto { animation:v2-nuvemP 34s linear infinite; }
.hero-anim.v2 .a-passaros { animation:v2-passaros 26s linear infinite; }
.hero-anim.v2 .a-sol      { animation:v2-sol 40s linear infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim.v2 .a-galpao   { animation:v2-galpao 12s ease-in infinite; }
.hero-anim.v2 .a-casa     { animation:v2-casa 12s ease-out infinite; }
.hero-anim.v2 .a-pacote   { animation:v2-pacote 12s ease-out infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim.v2 .a-caminhao { animation:v2-balanco .5s ease-in-out infinite; }
.hero-anim.v2 .a-fumaca-gate { animation:v2-gate 12s linear infinite; }
.hero-anim.v2 .a-puff     { animation:v2-puff 1.4s ease-out infinite; }
.hero-anim.v2 .a-puff.p2  { animation-delay:.45s; }
.hero-anim.v2 .a-puff.p3  { animation-delay:.9s; }
.hero-anim.v2 .a-vento    { animation:v2-vento 12s linear infinite; }
.hero-anim.v2 .a-cartao   { animation:v2-cartao 2.4s ease-in-out infinite; }
.hero-anim.v2 .a-st       { animation-duration:12s; animation-timing-function:linear; animation-iteration-count:infinite; }
.hero-anim.v2 .st1 { animation-name:v2-st1; } .hero-anim.v2 .st2 { animation-name:v2-st2; }
.hero-anim.v2 .st3 { animation-name:v2-st3; } .hero-anim.v2 .st4 { animation-name:v2-st4; }
.hero-anim.v2 .a-progresso { animation:v2-prog 12s linear infinite; }
.hero-anim.v2 .a-marco    { animation-duration:12s; animation-timing-function:linear; animation-iteration-count:infinite; }
.hero-anim.v2 .m1 { animation-name:v2-m1; } .hero-anim.v2 .m2 { animation-name:v2-m2; }
.hero-anim.v2 .m3 { animation-name:v2-m3; } .hero-anim.v2 .m4 { animation-name:v2-m4; }
.hero-anim.v2 .a-veu      { animation:v2-veu 12s linear infinite; pointer-events:none; }
@media (prefers-reduced-motion: reduce) { .hero-anim.v2 * { animation:none !important; } .hero-anim.v2 .a-veu { opacity:0; } .hero-anim.v2 .a-casa { transform:translateX(-470px); } .hero-anim.v2 .a-galpao { opacity:0; } .hero-anim.v2 .st2,.hero-anim.v2 .st3 { opacity:0; } .hero-anim.v2 .st4 { opacity:1; } .hero-anim.v2 .st1 { opacity:0; } .hero-anim.v2 .a-pacote { transform:none; opacity:1; } }

/* ── LOGOTIPO NOVO (horizontal, proporção ~5,3:1): alturas menores que a logo antiga ── */
.logo-img { height:34px; width:auto; }
.logo-img-sm { height:26px; }
.auth-logo img { height:52px; width:auto; }
.auth-marca-mobile img:last-child { height:44px; width:auto; }
@media (max-width:768px) { .logo-img { height:30px; } .logo-img-sm { height:24px; } .auth-marca-mobile img:last-child { height:40px; } }
.header-inner .logo { min-width:0; }
.header-inner .logo img { max-width:52vw; height:auto; max-height:34px; }
@media (max-width:768px) { .header-inner .logo img { max-height:30px; } }

/* ── CENA v3 (público 35+): loop de 16s, movimento calmo, pausas longas para ler ──
   fases (% do loop): 0–15 postado · 15–72 em trânsito · 72–88 saiu p/ entrega · 88–100 entregue */
.hero-anim.v3 { aspect-ratio:560/360; }
@keyframes v3-roda     { 0%,15% { transform:rotate(0deg); } 76%,100% { transform:rotate(2160deg); } }
@keyframes v3-faixa    { 0%,15% { stroke-dashoffset:0; } 76%,100% { stroke-dashoffset:-972; } }
@keyframes v3-cidade   { 0%,15% { transform:translateX(0); } 76%,100% { transform:translateX(-400px); } }
@keyframes v3-morros   { 0%,15% { transform:translateX(0); } 76%,100% { transform:translateX(-560px); } }
@keyframes v3-arbustos { 0%,15% { transform:translateX(0); } 76%,100% { transform:translateX(-840px); } }
@keyframes v3-nuvens   { to { transform:translateX(-560px); } }
@keyframes v3-galpao   { 0%,15% { transform:translateX(0); opacity:1; } 27% { transform:translateX(-360px); opacity:1; } 28%,97% { transform:translateX(-360px); opacity:0; } 98%,100% { transform:translateX(0); opacity:0; } }
@keyframes v3-casa     { 0%,70% { transform:translateX(0); } 85%,100% { transform:translateX(-480px); } }
@keyframes v3-pacote   { 0%,88% { transform:scale(0); opacity:0; } 91% { transform:scale(1.15); opacity:1; } 93%,100% { transform:scale(1); opacity:1; } }
@keyframes v3-balanco  { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-1.5px); } }
@keyframes v3-gate     { 0%,16%,75%,100% { opacity:0; } 19%,72% { opacity:1; } }
@keyframes v3-puff     { 0% { transform:translate(0,0) scale(.4); opacity:.8; } 100% { transform:translate(-26px,-22px) scale(1.6); opacity:0; } }
@keyframes v3-s1 { 0%,14% { opacity:1; } 16%,100% { opacity:0; } }
@keyframes v3-s2 { 0%,16% { opacity:0; } 18%,71% { opacity:1; } 73%,100% { opacity:0; } }
@keyframes v3-s3 { 0%,73% { opacity:0; } 75%,87% { opacity:1; } 89%,100% { opacity:0; } }
@keyframes v3-s4 { 0%,89% { opacity:0; } 91%,100% { opacity:1; } }
@keyframes v3-cartao   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes v3-prog     { 0%,15% { stroke-dashoffset:464; } 72% { stroke-dashoffset:155; } 88% { stroke-dashoffset:40; } 91%,100% { stroke-dashoffset:0; } }
@keyframes v3-k1 { 0%,2% { fill:#e2e8f0; } 4%,100% { fill:#16a34a; } }
@keyframes v3-k2 { 0%,16% { fill:#e2e8f0; } 18%,100% { fill:#16a34a; } }
@keyframes v3-k3 { 0%,73% { fill:#e2e8f0; } 75%,100% { fill:#16a34a; } }
@keyframes v3-k4 { 0%,90% { fill:#e2e8f0; } 92%,100% { fill:#16a34a; } }
@keyframes v3-veu      { 0% { opacity:1; } 3%,97% { opacity:0; } 99.5%,100% { opacity:1; } }
.hero-anim.v3 .b-roda     { animation:v3-roda 16s linear infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim.v3 .b-faixa    { animation:v3-faixa 16s linear infinite; }
.hero-anim.v3 .b-cidade   { animation:v3-cidade 16s linear infinite; }
.hero-anim.v3 .b-morros   { animation:v3-morros 16s linear infinite; }
.hero-anim.v3 .b-arbustos { animation:v3-arbustos 16s linear infinite; }
.hero-anim.v3 .b-nuvens   { animation:v3-nuvens 90s linear infinite; }
.hero-anim.v3 .b-galpao   { animation:v3-galpao 16s ease-in infinite; }
.hero-anim.v3 .b-casa     { animation:v3-casa 16s ease-out infinite; }
.hero-anim.v3 .b-pacote   { animation:v3-pacote 16s ease-out infinite; transform-box:fill-box; transform-origin:center; }
.hero-anim.v3 .b-caminhao { animation:v3-balanco .8s ease-in-out infinite; }
.hero-anim.v3 .b-fumaca-gate { animation:v3-gate 16s linear infinite; }
.hero-anim.v3 .b-puff     { animation:v3-puff 1.6s ease-out infinite; }
.hero-anim.v3 .b-puff.p2  { animation-delay:.5s; } .hero-anim.v3 .b-puff.p3 { animation-delay:1s; }
.hero-anim.v3 .b-cartao   { animation:v3-cartao 3s ease-in-out infinite; }
.hero-anim.v3 .b-st       { animation-duration:16s; animation-timing-function:linear; animation-iteration-count:infinite; }
.hero-anim.v3 .s1 { animation-name:v3-s1; } .hero-anim.v3 .s2 { animation-name:v3-s2; }
.hero-anim.v3 .s3 { animation-name:v3-s3; } .hero-anim.v3 .s4 { animation-name:v3-s4; }
.hero-anim.v3 .b-progresso { animation:v3-prog 16s linear infinite; }
.hero-anim.v3 .b-marco    { animation-duration:16s; animation-timing-function:linear; animation-iteration-count:infinite; }
.hero-anim.v3 .k1 { animation-name:v3-k1; } .hero-anim.v3 .k2 { animation-name:v3-k2; }
.hero-anim.v3 .k3 { animation-name:v3-k3; } .hero-anim.v3 .k4 { animation-name:v3-k4; }
.hero-anim.v3 .b-veu      { animation:v3-veu 16s linear infinite; pointer-events:none; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim.v3 * { animation:none !important; }
  .hero-anim.v3 .b-veu { opacity:0; } .hero-anim.v3 .b-galpao { opacity:0; } .hero-anim.v3 .b-casa { transform:translateX(-480px); }
  .hero-anim.v3 .s1, .hero-anim.v3 .s2, .hero-anim.v3 .s3 { opacity:0; } .hero-anim.v3 .s4 { opacity:1; }
  .hero-anim.v3 .b-pacote { transform:none; opacity:1; } .hero-anim.v3 .b-marco { fill:#16a34a; } .hero-anim.v3 .b-progresso { stroke-dashoffset:0; }
}

/* ── CARTÃO DA ENCOMENDA: QR SEMPRE AO LADO (não quebra linha no celular) ── */
.rastrear-card { flex-wrap:nowrap; align-items:center; gap:14px; }
.rastrear-left { flex:1 1 auto; min-width:0; }
.rastrear-right { flex:0 0 auto; }
.rastrear-left h1 { overflow-wrap:anywhere; }
@media (max-width:480px) {
  .rastrear-card { padding:16px 14px; gap:10px; }
  .rastrear-token { font-size:17px; }
  .rastrear-card h1 { font-size:16px; margin-top:6px; }
  .rastrear-card .updated { font-size:12px; }
  .rastrear-left .badge { font-size:11px; padding:3px 9px; }
  .qr-canvas { width:92px; height:92px; max-width:none; padding:5px; border-radius:6px; }
  .qr-mini-tag { font-size:10px; padding:2px 10px; }
  .qr-canvas::after { font-size:20px; }
}
@media (max-width:360px) {
  .rastrear-token { font-size:15px; }
  .rastrear-card h1 { font-size:15px; }
  .qr-canvas { width:80px; height:80px; }
}

/* ── "Seu código de rastreio" (um código fixo por cliente) ── */
.meu-codigo { display:flex; justify-content:space-between; align-items:center; gap:12px; background:#fff; border:1.5px solid var(--green-200,#bbf7d0); border-radius:6px; padding:14px 16px; margin-top:14px; }
.meu-codigo .mc-l { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--green-700); }
.meu-codigo .mc-t { font-family:'Courier New',monospace; font-size:22px; font-weight:800; color:var(--slate-900); letter-spacing:.04em; }
.meu-codigo .mc-s { font-size:12.5px; color:var(--slate-500); margin-top:2px; line-height:1.45; }
@media (max-width:480px) { .meu-codigo { flex-direction:column; align-items:flex-start; } .meu-codigo .btn { width:100%; } }

/* ── QR do cartão: só o "ABRIR" em cima, sem o cadeado sobre a imagem ── */
.qr-canvas::after, .qr-canvas-grande::after { display:none; }

/* ── Pedido aguardando liberação ── */
.trj-alerta-mid { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:2px; z-index:3; }
.trj-alerta-mid .alerta-dot { width:32px; height:32px; border-radius:50%; background:var(--amber-500); border:3px solid #fff; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 0 0 0 rgba(245,158,11,.45); animation:pulseAmber 2s ease-in-out infinite; }
@keyframes pulseAmber { 0%,100%{ box-shadow:0 0 0 0 rgba(245,158,11,.45); } 50%{ box-shadow:0 0 0 10px rgba(245,158,11,0); } }
.trj-alerta-mid .alerta-lbl { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--amber-700); white-space:nowrap; background:var(--amber-100); padding:2px 7px; border-radius:8px; margin-top:2px; }

.trj-ev-alerta { background:var(--amber-100); border-radius:10px; padding:10px 12px !important; border:1px solid #fde68a !important; border-bottom:1px solid #fde68a !important; }
.trj-ev-alerta .d { color:var(--amber-700) !important; font-weight:600 !important; }

.btn-liberar-pedido { display:block; width:100%; padding:16px 20px; font-size:16px; font-weight:800; color:#fff; background:linear-gradient(135deg, var(--amber-500), #d97706); border:none; border-radius:14px; cursor:pointer; text-align:center; letter-spacing:.02em; box-shadow:0 4px 16px rgba(245,158,11,.35); transition:transform .15s, box-shadow .15s; }
.btn-liberar-pedido:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(245,158,11,.45); }
.btn-liberar-pedido:active { transform:translateY(0); }

.tl-alerta { background:var(--amber-100); border:1px solid #fde68a; border-radius:10px; padding:12px !important; margin-bottom:8px; }
.tl-alerta .tl-desc { color:var(--amber-700); font-weight:600; }
.trj-steps.com-alerta { grid-template-columns:repeat(5,1fr); gap:4px; }
.trj-step.alerta { color:var(--amber-700); font-weight:700; }
.trj-step.alerta .b { background:var(--amber-500); border-color:var(--amber-500); animation:pulseAmber 2s ease-in-out infinite; }
.trj-step.alerta::before { background:var(--green-500); }
