:root {
  --primary: #0e6f5f;
  --primary-dark: #0a5a4e;
  --primary-light: #3cf0d0;
  --accent: #475569;
  --bg: #f4f9f7;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #0f766e;
  --info-bg: #ecfdf5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .1);
  --sidebar-w: 264px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}

#app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
#sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #20262b, #0f1215);
  color: #e2f5f3;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  flex-shrink: 0; object-fit: cover;
}
.sidebar-brand .name { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; }
.sidebar-brand .sub { font-size: 11px; opacity: .75; }

.sidebar-group { padding: 4px 0; }
.sidebar-group + .sidebar-group { border-top: 1px solid rgba(255,255,255,.07); margin-top: 2px; }
.sidebar-group-title {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none; border: none; cursor: pointer;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(226,245,243,.45); font-weight: 700;
  text-align: left;
  transition: color .15s;
}
.sidebar-group-title:hover { color: rgba(255,255,255,.85); }
.sidebar-group-title .g-ic {
  width: 18px; height: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-group-title .g-ic svg { width: 14px; height: 14px; opacity: .85; }
.sidebar-group-title .g-name { flex: 1; }
.sidebar-group-title .g-chevron { display: inline-flex; opacity: .4; transition: transform .2s ease; }
.sidebar-group-title .g-chevron svg { width: 13px; height: 13px; }
.sidebar-group:not(.collapsed) .g-chevron { transform: rotate(180deg); }
.sidebar-links { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .22s ease; }
.sidebar-group.collapsed .sidebar-links { grid-template-rows: 0fr; }
.sidebar-links > * { min-height: 0; overflow: hidden; }
.sidebar-link {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  margin: 1px 7px;
  color: #c6d6d3;
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  transition: background .15s, color .15s;
}
.sidebar-link .ic {
  width: 20px; height: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-link svg { width: 16px; height: 16px; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(0,179,154,.3), rgba(0,179,154,.06));
  color: #fff; font-weight: 600;
}
.sidebar-link.active svg { color: #3cf0d0; }
.sidebar-link::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.1) 50%, transparent 58%);
  transform: translateX(-120%);
  pointer-events: none;
}
.sidebar-link:hover::after { animation: btnSheen .6s ease; }
.sidebar-close.icon-btn { display: none; margin-left: auto; flex: none; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #e2f5f3; }
.sidebar-foot { margin-top: auto; padding: 14px 20px; font-size: 11px; opacity: .7; }

.sidebar-logout {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; margin: 2px 8px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: rgba(255,255,255,.04); color: #fecaca;
  font-size: 13px; cursor: pointer;
}
.sidebar-logout svg { width: 16px; height: 16px; flex: none; }
.sidebar-logout:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.35); color: #fecaca; }
.drawer-body .sidebar-logout { border-color: var(--border); background: rgba(239,68,68,.08); color: var(--danger); }
.drawer-body .sidebar-logout:hover { background: rgba(239,68,68,.14); }

/* Desktops: menu um pouco maior (só acima de 900px; no mobile já ficam maiores) */
@media (min-width: 901px) {
  .admin-grid .loj-thumb img { object-position: center 28%; }
  :root { --sidebar-w: 300px; }
  .sidebar-brand { padding: 22px 20px; }
  .sidebar-brand .name { font-size: 16px; }
  .sidebar-brand .sub { font-size: 12px; }
  .sidebar-group-title { padding: 11px 14px; font-size: 11.5px; }
  .sidebar-group-title .g-ic { width: 20px; height: 20px; }
  .sidebar-group-title .g-ic svg { width: 15px; height: 15px; }
  .sidebar-link { font-size: 14.5px; gap: 12px; padding: 8px 12px; }
  .sidebar-link .ic { width: 22px; height: 22px; }
  .sidebar-link svg { width: 18px; height: 18px; }
  .sidebar-logout { font-size: 14.5px; padding: 11px 15px; }
  .sidebar-logout svg { width: 18px; height: 18px; }
}

/* ---------- Backdrop do menu (drawer no mobile) ---------- */
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, .52);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 42;
}
body.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
#sidebar.open { z-index: 45; }

/* ---------- Main ---------- */
#main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0; z-index: 30;
}
#topbar-title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-wrap { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.store-select {
  max-width: 150px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 8px; margin-left: 8px;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 20px; height: 20px; pointer-events: none; }
.btn svg { pointer-events: none; }
#btn-menu { display: none; }

.net-badge {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: var(--success-bg); color: var(--success); font-weight: 600;
  border: 1px solid rgba(22,163,74,.3);
}
.net-badge.offline { background: var(--warning-bg); color: var(--warning); border-color: rgba(217,119,6,.3); }
.queue-badge { background: var(--info-bg); color: var(--info); border-color: rgba(15,118,110,.3); }

#content {
  padding: 20px;
  flex: 1;
}

/* ---------- Bottom nav ---------- */
#bottomnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 6px;
  font-size: 10.5px; color: var(--muted);
  text-decoration: none; border: none; background: none; cursor: pointer;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--primary); font-weight: 700; }

/* ---------- Cards / layout ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-title {
  font-size: 14px; font-weight: 700; margin: 0 0 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-sub { font-size: 12px; color: var(--muted); }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-title { font-size: 21px; font-weight: 750; margin: 0; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-stats { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat-card { padding: 16px 18px; }
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-value.sm { font-size: 18px; }
.stat-foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stats-grid .stat-card > span { font-size: 12px; color: var(--muted); display: block; }
.stats-grid .stat-card > b { font-size: 18px; font-weight: 800; display: block; margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: filter .15s, background .15s;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; pointer-events: none; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.12) 50%, transparent 58%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover::after { animation: btnSheen .6s ease; }
.btn[disabled]::after { display: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  background: linear-gradient(180deg, #20262b, #0f1215);
  color: #eef6f3;
  border-color: transparent;
  transition: filter .15s;
}
.btn-outline:hover { filter: brightness(1.18); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-soft { background: #eef2f4; color: #334155; border-color: #d7dee3; }
.btn-soft:hover { background: #e3e9eb; }
.btn-ghost { background: transparent; border-color: transparent; color: #334155; }
.btn-link { background: none; border: none; padding: 0; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.btn-link:hover { color: var(--primary-dark); }
.btn-ghost:hover { background: rgba(15,23,42,.05); }
@keyframes btnSheen { to { transform: translateX(120%); } }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.field .req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}
.input:focus { outline: 2px solid rgba(0,179,154,.28); border-color: var(--primary); }
textarea.input { min-height: 72px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .half { grid-column: auto; }
.input-group { display: flex; gap: 8px; }
.search-box { position: relative; }
.search-box .input { padding-left: 34px; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: rgba(0,179,154,.05); }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .icon-btn { width: 31px; height: 31px; margin-left: 4px; }
.table .actions .icon-btn svg { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: rgba(148,163,184,.2); color: var(--muted); }
.badge-teal { background: #e6faf5; color: #00806d; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.g5-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; line-height: 1;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .5px;
  background: #ccfbf1; color: #0b7a66; border: 1px solid #5eead4; cursor: pointer; user-select: none;
}

/* ---------- Login ---------- */
body.login-mode #sidebar,
body.login-mode #topbar,
body.login-mode #bottomnav,
body.login-mode .topbar-actions { display: none; }
body.login-mode #main { padding-left: 0; margin-left: 0; }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 360px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px;
  display: block; object-fit: cover;
}
.login-brand { text-align: center; font-weight: 800; font-size: 18px; }
.login-sub { text-align: center; color: #64748b; font-size: 13px; margin: 4px 0 16px; }
.login-hint {
  background: var(--info-bg); color: var(--info); font-size: 12px;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 14px; text-align: center;
}
.login-msg { margin-top: 12px; color: var(--danger); font-size: 13px; text-align: center; min-height: 18px; }
.topbar-user { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- Compartilhamento / Redes sociais ---------- */
.share-preview {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 8px; padding: 10px; font-size: 12.5px; color: var(--text);
  margin-bottom: 14px; max-height: 120px; overflow: auto; white-space: normal;
  word-break: break-word;
}
.share-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px;
}
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover { background: var(--bg); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tab {
  padding: 9px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prod-grid > * { min-width: 0; }
.prod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.prod-thumb {
  height: 92px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb .ph { font-size: 26px; color: #94a3b8; }
.prod-body { padding: 9px 10px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.prod-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; height: 2.5em; overflow: hidden; }
.prod-meta { font-size: 10.5px; color: var(--muted); }
.prod-price { font-size: 13.5px; font-weight: 800; color: var(--primary); }
.prod-stock { font-size: 10.5px; font-weight: 600; }
.prod-stock.low { color: var(--danger); }
.prod-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: rgba(15,23,42,.75); color: #fff;
}
.prod-badge.semi { background: rgba(245,158,11,.92); }
.prod-badge.used { background: rgba(100,116,139,.92); }
.prod-badge.promo { background: rgba(34,197,94,.95); }
.prod-price-old { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-top: -2px; }

/* ---------- Identificador por foto (visão) ---------- */
.vision-stage { position: relative; border-radius: 10px; overflow: hidden; }
.vision-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0f172a; color: #94a3b8; font-size: 13px; text-align: center; padding: 24px;
}
.vision-result { margin-top: 10px; }
.vision-ok {
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.35);
  border-radius: 10px; padding: 12px;
}
.vision-warn {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35);
  border-radius: 10px; padding: 12px; font-size: 13.5px;
}

/* ---------- Modal / Drawer ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--card); border-radius: 14px;
  width: 100%; max-width: 560px; max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop .18s ease;
}
.modal.lg { max-width: 860px; }
.modal.sm { max-width: 400px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15.5px; font-weight: 700; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--border);
}
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  z-index: 90; animation: fadeIn .2s ease;
}
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(400px, 92vw); background: var(--card);
  z-index: 95; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn .2s ease;
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-body .sidebar-link { color: var(--text); margin: 2px 0; }
.drawer-body .sidebar-link .ic { background: var(--bg); }
.drawer-body .sidebar-link:hover { background: var(--bg); color: var(--text); }
.drawer-body .sidebar-link.active { background: var(--info-bg); color: var(--primary-dark); }
.drawer-body .sidebar-link.active .ic { background: rgba(14,116,144,.14); }
.i-step { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 14px; line-height: 1.45; }
.i-step > b {
  flex: none; width: 21px; height: 21px; margin-top: 1px;
  border-radius: 50%; background: var(--info-bg); color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #0f172a; color: #fff;
  padding: 11px 15px; border-radius: 10px; font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: slideUp .2s ease;
  max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }

.sw-update-banner {
  position: fixed; top: 12px; left: 50%; transform: translate(-50%, -140%);
  z-index: 300; display: flex; align-items: center; gap: 12px;
  background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: 13px;
  transition: transform .3s ease; max-width: 92vw;
}
.sw-update-banner.show { transform: translate(-50%, 0); }
.sw-update-banner button { white-space: nowrap; }

.trial-banner {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, #f59e0b, #e11d48); color: #fff;
  padding: 8px 12px; font-size: 13px; text-align: center;
}
.trial-banner button {
  border: 1px solid #fff; background: transparent; color: #fff;
  border-radius: 999px; padding: 3px 12px; font-weight: 600; cursor: pointer;
}
.trial-banner button:hover { background: rgba(255,255,255,.15); }

/* ---------- Filters bar ---------- */
.filter-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-bar .input, .filter-bar select.input { width: auto; min-width: 140px; }
.filter-bar .search-box { flex: 1; min-width: 200px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 10px; }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }
.empty p { margin: 0; font-size: 13px; }

/* ---------- Receipt ---------- */
.receipt {
  font-family: 'Courier New', monospace;
  font-size: 12.5px; line-height: 1.45;
  background: #fff; color: #000;
  padding: 14px; border: 1px dashed #cbd5e1; border-radius: 6px;
  max-width: 300px; margin: 0 auto;
  white-space: pre-wrap;
}
.receipt .r-line { display: flex; justify-content: space-between; }
.receipt .r-hr { border-top: 1px dashed #94a3b8; margin: 6px 0; }
.receipt .center { text-align: center; }
.receipt .bold { font-weight: 700; }
.receipt .big { font-size: 15px; }

/* ---------- Misc ---------- */
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-bt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mb-s { margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: Consolas, monospace; }
.bold { font-weight: 700; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.text-amber { color: var(--warning); }
.total-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.total-line.grand { font-size: 17px; font-weight: 800; border-top: 2px solid var(--border); margin-top: 6px; padding-top: 8px; color: var(--primary); }
.cost-box {
  margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--border);
  border-radius: 9px; background: var(--bg);
}
.loaner-box {
  padding: 12px; border: 1px dashed var(--warning, #f59e0b);
  border-radius: 9px; background: var(--warning-bg, #fffbeb);
}

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 14px 8px; }
.timeline-item::before {
  content: ''; position: absolute; left: -17px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .tl-title { font-size: 13px; font-weight: 700; }
.timeline-item .tl-date { font-size: 11px; color: var(--muted); }
.timeline-item .tl-note { font-size: 12.5px; color: var(--muted); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex: none;
}
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell .p-name { font-weight: 600; font-size: 13px; }
.person-cell .p-sub { font-size: 11.5px; color: var(--muted); }

.cash-op { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.cash-op:last-child { border-bottom: none; }
.cash-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cash-in { color: var(--success); }
.cash-out { color: var(--danger); }

.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --sidebar-w: min(92vw, 420px); }
  #sidebar { transform: translateX(-100%); box-shadow: none; z-index: 45; }
  #sidebar.open { transform: translateX(0); box-shadow: 8px 0 28px rgba(2,6,23,.35); }
  #main { margin-left: 0; transition: transform .25s ease; }
  body.menu-open #main { transform: translateX(var(--sidebar-w)); }
  .sidebar-close.icon-btn { display: inline-flex; }
  #btn-menu { display: inline-flex; }
  #bottomnav { display: block; }
  #content { padding: 14px 14px 76px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-bar .search-box { flex: 1 1 100%; }
  .filter-bar .input, .filter-bar select.input { min-width: 100px; }
  .page-title { font-size: 19px; }
  .stat-value { font-size: 20px; }
  #toast-root { left: 14px; right: 14px; bottom: 74px; }
  .toast { max-width: none; }
  .sidebar-brand { padding: 20px 18px; }
  .sidebar-brand .name { font-size: 19px; }
  .sidebar-brand .sub { font-size: 13px; }
  .sidebar-group-title { padding: 13px 14px; font-size: 13.5px; }
  .sidebar-group-title .g-ic { width: 25px; height: 25px; }
  .sidebar-group-title .g-ic svg { width: 19px; height: 19px; }
  .sidebar-link { font-size: 17.5px; gap: 14px; padding: 13px 12px; margin: 2px 10px; }
  .sidebar-link .ic { width: 30px; height: 30px; }
  .sidebar-link svg { width: 24px; height: 24px; }
  .sidebar-logout { font-size: 16.5px; padding: 14px 14px; margin: 5px 10px; }
  .sidebar-logout svg { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .quick-actions .btn { flex: 1; }
  .page-head { align-items: center; }
  .net-badge { width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; overflow: hidden; }
  #btn-menu { display: inline-flex; }
  .land-header { flex-wrap: wrap; gap: 8px; }
  .land-logo { max-width: 160px; justify-self: center; }
  body.menu-open #main { transform: none; }
}

/* ---------- PDV ---------- */
.pdv-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pdv-products { min-width: 0; }
.pdv-cart { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.pdv-items { flex: 1; overflow-y: auto; padding: 8px 18px; min-height: 90px; max-height: 52vh; }
.pdv-footer { border-top: 1px solid var(--border); padding: 14px 18px; background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }

.cart-item { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-name { font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.cart-price { font-size: 12px; color: var(--muted); }
.cart-qty { font-weight: 700; min-width: 22px; text-align: center; }
.cart-line { font-weight: 700; margin-left: auto; font-size: 13px; }
.pdv-footer .icon-btn.btn-sm { width: 26px; height: 26px; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0 4px; }
.pay-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 11.5px; font-weight: 600; line-height: 1.2;
}
.pay-btn span:first-child { font-size: 16px; }
.pay-btn.active { border-color: var(--primary); background: #e8f2ef; color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; margin-top: 6px; }
.inst-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  font-size: 11.5px; line-height: 1.2; color: var(--muted);
}
.inst-btn .inst-n { font-weight: 700; font-size: 13px; color: var(--text); }
.inst-btn .inst-j { font-size: 10px; color: var(--primary); }
.inst-btn.active { border-color: var(--primary); background: #e8f2ef; color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.inst-btn.active .inst-n, .inst-btn.active .inst-v { color: var(--primary); }

.inst-summary { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 8px; }
.inst-summary .total-line { font-size: 13px; }
.inst-summary .total-line.grand { font-size: 15px; }

.prod-card.is-out, .loj-card.is-out { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }

@media (max-width: 1000px) {
  .pdv-wrap { grid-template-columns: 1fr; }
  .pdv-cart { position: static; max-height: none; }
  .pdv-items { max-height: none; }
}

/* ---------- Gráfico ---------- */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 160px; padding: 10px 2px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.chart-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #3cf0d0, #00b39a); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart-label { font-size: 8.5px; color: var(--muted); }

/* ---------- Gráficos SVG (relatórios) ---------- */
.chart-svg { display: block; width: 100%; height: auto; }
.chart-area { width: 100%; }
.chart-area .chart-svg { touch-action: none; cursor: crosshair; }
.chart-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: chart-draw 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
}
.chart-area-fill { opacity: 0; animation: chart-fade .8s ease forwards .25s; }
.chart-guide { stroke: var(--muted); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-dot { fill: #fff; stroke: #00b39a; stroke-width: 2.5; pointer-events: none; }
.chart-tip { pointer-events: none; }
.chart-tip-bg { fill: var(--card); stroke: var(--muted); stroke-opacity: .35; }
.chart-tip-l, .chart-tip-v { fill: var(--text); font-size: 11; font-weight: 600; }
.chart-tip-v { font-weight: 800; fill: #00b39a; }
.chart-tip-tn { fill: var(--text); font-size: 11; font-weight: 600; }
.chart-tip-tv { fill: var(--text); font-size: 11; font-weight: 800; }
.chart-tip-sw { pointer-events: none; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 2px 10px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { to { opacity: 1; } }
.pay-chart { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pay-legend { flex: 1; min-width: 180px; }
.pay-legend-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.pay-legend-row:last-child { border-bottom: none; }
.pay-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pay-legend-row .spacer { flex: 1; }

/* ---------- Barra de meta ---------- */
.goal-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.goal-fill { height: 100%; background: linear-gradient(90deg, #3cf0d0, #00b39a); border-radius: 4px; transition: width .3s ease; }
.goal-fill.ok { background: linear-gradient(90deg, #4ade80, #16a34a); }

/* ---------- Calendário de cobranças ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekday { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 5px; position: relative; cursor: pointer; }
.cal-cell.has { background: var(--success-bg, #ecfdf5); border-color: var(--success, #10b981); }
.cal-cell.empty { border-color: transparent; cursor: default; }
.cal-num { font-size: 12px; font-weight: 700; }
.cal-badge { position: absolute; top: 4px; right: 4px; background: var(--primary, #0e6f5f); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }

/* ---------- Misc ---------- */
.hidden { display: none !important; }
.row-cancelled td { text-decoration: line-through; opacity: .55; }
.page-loading { padding: 40px; text-align: center; color: var(--muted); }
.spacer { flex: 1; }

/* ---------- Tema escuro (paleta da landing) ---------- */
html[data-theme="dark"] {
  --bg: #0b0f13;
  --card: #151b22;
  --text: #e9eef2;
  --muted: #9fb0bd;
  --accent: #8fa0ac;
  --border: rgba(255,255,255,.09);
  --success-bg: rgba(22,163,74,.14);
  --danger-bg: rgba(220,38,38,.14);
  --warning-bg: rgba(217,119,6,.14);
  --info-bg: rgba(14,111,95,.18);
  --shadow: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.55);
  color-scheme: dark;
}
html[data-theme="dark"] .prod-thumb { background: #0f1215; }
html[data-theme="dark"] .toast { background: #1a2129; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
html[data-theme="dark"] .chart-label { color: var(--muted); }
html[data-theme="dark"] .receipt { background: #fff; color: #000; }
html[data-theme="dark"] .btn-soft { background: #1a2129; color: #c7d2da; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .btn-ghost { color: #c7d2da; }
html[data-theme="dark"] .goal-bar { background: rgba(255,255,255,.12); }
html[data-theme="dark"] .vision-empty { background: #151b22; color: #9fb0bd; }
html[data-theme="dark"] .empty { background: #151b22; color: #9fb0bd; }
html[data-theme="dark"] .table th { color: #9fb0bd; }
html[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .drawer-backdrop { background: rgba(0,0,0,.55); }
html[data-theme="dark"] .pat-pad-wrap canvas { border-color: rgba(255,255,255,.14); background: #1a2129; }
html[data-theme="dark"] .pat-big { background: #1a2129; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .pay-btn.active,
html[data-theme="dark"] .inst-btn.active { background: rgba(60,240,208,.12); color: var(--primary-light); box-shadow: 0 0 0 1px var(--primary-light); }
html[data-theme="dark"] .inst-btn.active .inst-n,
html[data-theme="dark"] .inst-btn.active .inst-v { color: var(--primary-light); }

/* ---------- Controle segmentado (Claro/Escuro) ---------- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button {
  padding: 9px 18px; background: var(--card); border: none;
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button.active { background: var(--primary); color: #fff; }
.seg button:not(:last-child) { border-right: 1px solid var(--border); }

/* ---------- Checklist OS ---------- */
.checklist { display: grid; grid-template-columns: 1fr; gap: 7px; }
.check-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--border); border-radius: 9px; padding: 6px 10px;
  background: var(--card); font-size: 12.5px;
}
.check-btns { display: flex; gap: 3px; }
.check-btns button {
  width: 30px; height: 26px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.check-btns button.active-ok { background: var(--success); border-color: var(--success); color: #fff; }
.check-btns button.active-bad { background: var(--danger); border-color: var(--danger); color: #fff; }
.check-btns button.active-na { background: var(--muted); border-color: var(--muted); color: #fff; }

/* ---------- Fotos (entrada/saída OS) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.photo-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
}
.photo-add {
  aspect-ratio: 1; border: 1.5px dashed var(--border); border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px;
}
.photo-add:hover { border-color: var(--primary); color: var(--primary); }
.photo-group-title { font-size: 12px; font-weight: 700; margin: 12px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Assinatura do cliente ---------- */
.sig-wrap {
  border: 2px dashed var(--border); border-radius: 10px; overflow: hidden;
  background: #fff; touch-action: none; cursor: crosshair; margin-top: 8px;
}
.sig-wrap canvas { display: block; width: 100%; height: 160px; }

/* ---------- Seta WhatsApp ---------- */
.wa-toggle {
  width: 40px; height: 38px; flex: none; cursor: pointer; border-radius: 9px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.wa-toggle svg { width: 18px; height: 18px; }
.wa-toggle.on { background: #25d366; border-color: #25d366; color: #fff; }

/* ---------- Editor de parcelamento ---------- */
.inst-row { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.inst-row .input { text-align: center; }
.perm-row { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; padding: 9px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease; }
.perm-row:hover { background: var(--bg); border-color: var(--border); }
.perm-row:hover b { color: var(--primary); }
.perm-row:focus-within { background: var(--bg); border-color: var(--primary); }
.perm-row:active { background: var(--border); }

/* ---------- Painel do gestor: campos recolhíveis da aba Contas ---------- */
.g-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.g-wrap.gc-open { grid-template-rows: 1fr; }
.g-wrap > .g-inner { overflow: hidden; min-height: 0; }
.g-chev { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; }
.g-chev svg { transition: transform .3s ease; }
.g-chev.rot svg { transform: rotate(180deg); }
.g-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.editor-add {
  width: 100%; padding: 8px; border: 1.5px dashed var(--border); border-radius: 9px;
  background: transparent; color: var(--primary); cursor: pointer; font-weight: 600; font-size: 13px;
}
.editor-add:hover { border-color: var(--primary); }
.check-editor-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }

/* ---------- Toggle de configuração ---------- */
.switch-line { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch-line input { width: 40px; height: 22px; accent-color: var(--primary); cursor: pointer; }
.switch-line .input { width: auto; }

/* ---------- Padrão de desbloqueio (OS) ---------- */
.pat-preview { display: flex; align-items: center; }
.pat-preview > div { display: grid; grid-template-columns: repeat(3, 22px); grid-template-rows: repeat(3, 22px); gap: 4px; }
.pat-dot { border-radius: 50%; border: 2px solid var(--border, #cbd5e1); display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; }
.pat-dot.on { background: var(--primary, #3b82f6); border-color: var(--primary, #3b82f6); color: #fff; }
.pat-dot b { font-weight: 700; font-size: 10px; }

.pat-pad-wrap { display: flex; flex-direction: column; align-items: center; }
.pat-pad-wrap canvas { touch-action: none; border: 1px solid var(--border, #e2e8f0); border-radius: 14px; background: #f8fafc; max-width: 100%; height: auto; }

.pat-mini { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: repeat(3, 26px); gap: 5px; margin-top: 8px; }
.pat-mini-dot { border-radius: 50%; border: 2px solid var(--border, #cbd5e1); display: flex; align-items: center; justify-content: center; color: transparent; }
.pat-mini-dot.on { background: var(--primary, #3b82f6); border-color: var(--primary, #3b82f6); color: #fff; }
.pat-mini-dot b { font-weight: 700; font-size: 11px; }

.pat-big { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: 8px; margin-top: 10px; padding: 12px; background: #f8fafc; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; }
.pat-big-dot { border-radius: 50%; border: 3px solid var(--border, #cbd5e1); display: flex; align-items: center; justify-content: center; color: transparent; }
.pat-big-dot.on { background: var(--primary, #3b82f6); border-color: var(--primary, #3b82f6); color: #fff; }
.pat-big-dot b { font-weight: 700; font-size: 18px; }

@media (max-width: 600px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Configurações ---------- */
.settings-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
.settings-cols > * { min-width: 0; }

/* ---------- Impressora POS ---------- */
.pos-msg { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.pos-msg.ok { background: var(--success-bg); border-color: rgba(22,163,74,.35); }
.pos-msg.warn { background: rgba(245,158,11,.1); border-color: rgba(217,119,6,.35); }
.pos-msg.idle { background: var(--bg); }
.pos-steps { margin: 8px 0 0 18px; padding: 0; font-size: 12.5px; line-height: 1.7; }
.pos-preview {
  font-family: 'Consolas', 'Courier New', monospace; font-size: 11.5px; line-height: 1.5;
  background: #fff; color: #0f172a; border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; margin-top: 12px;
  box-shadow: 0 1px 3px rgba(2,6,23,.08);
}
.pos-preview .pp-store { text-align: center; font-weight: 700; margin-bottom: 4px; }
.pos-preview .pp-line { white-space: pre-line; }
.pos-preview .pp-total { font-weight: 800; font-size: 12.5px; }
.pos-preview .pp-tnx { text-align: center; font-weight: 700; margin-top: 4px; }

/* ---------- Loja Virtual ---------- */
.loj-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.loj-card > .row { margin-top: auto; }
.loj-thumb { height: 150px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.loj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.loj-ph { font-size: 34px; color: #94a3b8; width: 100%; height: 100%; }
.loj-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.loj-name { font-size: 13px; font-weight: 700; line-height: 1.25; margin: 8px 10px 0; }
.loj-sub { font-size: 11px; color: var(--muted); margin: 2px 10px 0; }
.loj-cat { font-size: 10.5px; color: var(--muted); margin: 4px 10px 0; }
.loj-price { font-size: 15px; font-weight: 800; color: var(--primary); margin: 6px 10px 8px; }
.loj-card .cond { position: absolute; top: 6px; left: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(245,158,11,.92); color: #fff; }
.loj-last { position: absolute; top: 6px; right: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(239,68,68,.92); color: #fff; }
.loj-card .icon-btn { width: 28px; height: 28px; }
.loj-card .icon-btn svg { width: 15px; height: 15px; }
.admin-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.admin-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pdv-products .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-grid .loj-card .icon-btn { width: 24px; height: 24px; }
  .admin-grid .loj-card .icon-btn svg { width: 13px; height: 13px; }
  .admin-grid .row { gap: 4px; }
  .admin-grid .loj-name { font-size: 12px; margin: 6px 8px 0; }
  .admin-grid .loj-sub { margin: 2px 8px 0; }
  .admin-grid .loj-cat { margin: 3px 8px 0; }
  .admin-grid .loj-price { margin: 4px 8px 7px; }
  .admin-grid .loj-name, .admin-grid .loj-sub, .admin-grid .loj-cat { overflow-wrap: anywhere; }
}
.loj-line { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.loj-line:last-child { border-bottom: none; }

/* ---------- Delivery ---------- */
/* (grid-2 usa a definição global da linha 237 + colapso mobile da linha 660) */

/* ---------- IA ---------- */
.ia-box { height: 360px; overflow-y: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ia-msg { display: flex; }
.ia-msg .ia-bubble { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; background: var(--card); border: 1px solid var(--border); border-top-left-radius: 4px; }
.ia-msg .ia-bubble.user { background: var(--primary); color: #fff; border: none; margin-left: auto; border-top-left-radius: 12px; border-top-right-radius: 4px; }
.ia-hint { font-size: 11px; color: var(--muted); text-align: center; width: 100%; padding: 4px 0; }
.ia-box code { background: rgba(148,163,184,.2); padding: 1px 4px; border-radius: 4px; font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ia-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip-act { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); }
.chip-act:hover { background: var(--primary); color: #fff; }
.chip-act svg { width: 15px; height: 15px; }
.chip { padding: 7px 12px; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.inst-row { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }

.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CRM ---------- */
.crm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.crm-toolbar .input { flex: 1; min-width: 140px; }
.flex-1 { flex: 1; min-width: 0; }

.crm-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.crm-col { flex: 0 0 260px; min-height: 120px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.crm-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-weight: 700; font-size: 13px; }
.crm-col-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.crm-col-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-col-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.crm-col-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 8px; border: 1.5px dashed var(--border); border-radius: 10px; }

.crm-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.crm-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); border-color: var(--primary); }
.crm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.crm-card-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.crm-card-phone { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.crm-card-value { font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.crm-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.crm-card-follow { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 7px; }
.crm-card-follow svg { width: 12px; height: 12px; flex: none; }
.crm-card-follow.overdue { color: #dc2626; font-weight: 700; }
.crm-card-actions { display: flex; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--border); }
.crm-card-actions .btn { flex: 1; padding: 6px 4px; font-size: 11px; }

.tag-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tag-chk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); cursor: pointer; }
.tag-chk input { accent-color: var(--primary); }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.timeline-item { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--card); }
.tl-title { font-size: 12.5px; font-weight: 700; }
.tl-date { font-size: 11px; color: var(--muted); margin-top: 1px; }
.tl-note { font-size: 12px; color: var(--text); margin-top: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; white-space: pre-wrap; }

.crm-stage-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.crm-stage-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

@media (max-width: 600px) {
  .crm-board { flex-direction: column; align-items: stretch; }
  .crm-col { flex: 1 1 auto; }
  .crm-toolbar { flex-direction: column; align-items: stretch; }
  .crm-toolbar .input { width: 100%; }
}

/* ---------- Compras ---------- */
.pch-row { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.pch-row .input:first-child { flex: 1; min-width: 0; }
.pch-items { margin-top: 4px; }

/* ---------- Marketing ---------- */
.camp-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.camp-cust { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 6px; border-radius: 7px; cursor: pointer; }
.camp-cust:hover { background: var(--bg); }
.camp-cust small { margin-left: auto; }
.camp-cust input { accent-color: var(--primary); }
.camp-select-all, .camp-select-none { font-size: 12px; }
.camp-send-list { max-height: 320px; overflow-y: auto; }
.camp-send-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.camp-send-row:last-child { border-bottom: none; }
.camp-send-row .btn { flex: none; }
.camp-cust-list { max-height: 200px; overflow-y: auto; }
.camp-msg { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 13px; white-space: pre-wrap; margin-top: 4px; }

/* ---------- Agente IA / WhatsApp ---------- */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: stretch; min-height: 520px; }
.chat-side { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 10px; }
.chat-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 560px; }
.chat-row { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left; width: 100%; color: var(--text); }
.chat-row:hover { background: var(--bg); }
.chat-row.active { background: var(--bg); border-color: var(--primary); }
.chat-avatar { flex: none; }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-preview { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.chat-unread { background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.chat-main { display: flex; border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 30px; }
.chat-empty svg { width: 44px; height: 44px; opacity: .4; }
.chat-thread { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-thread-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.wa-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); max-height: 480px; }
.wa-bubble { max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.wa-bubble.in { background: var(--card); border: 1px solid var(--border); border-top-left-radius: 4px; align-self: flex-start; }
.wa-bubble.out { background: var(--primary); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.wa-time { font-size: 10px; opacity: .75; margin-top: 3px; }
.wa-composer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.wa-composer .input { flex: 1; }
.p-2 { padding: 10px; }

@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-main { min-height: 420px; }
  .wa-thread { max-height: 360px; }
}

/* ---------- Seguimento / Nichos ---------- */
.niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.niche-tile {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  gap: 4px; padding: 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  transition: all .15s;
}
.niche-tile:hover { border-color: var(--primary); }
.niche-tile.active { border-color: var(--primary); background: var(--primary-bg, rgba(14,116,144,.08)); }
.niche-tile .niche-emoji { font-size: 26px; line-height: 1; }
.niche-tile .niche-name { font-weight: 700; font-size: 14px; }
.niche-tile .niche-desc { font-size: 12px; color: var(--muted); }
.niche-tile .niche-cats { font-size: 11px; color: var(--muted); margin-top: 2px; }
.niche-tile .niche-check { display: none; align-self: flex-end; color: var(--primary); width: 18px; height: 18px; margin-top: 4px; }
.niche-tile.active .niche-check { display: block; }
.chip-active {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; border-radius: 999px;
  border: 1px solid var(--primary); background: var(--primary-bg, rgba(14,116,144,.08)); color: var(--primary);
}
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sol-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; text-decoration: none;
  border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  transition: all .15s;
}
.sol-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.sol-card .sol-icon { width: 22px; height: 22px; color: var(--primary); }
.sol-card .sol-title { font-weight: 700; font-size: 13.5px; }
.sol-card .sol-desc { font-size: 12px; color: var(--muted); }
.sol-card .sol-go { font-size: 11.5px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.mb { margin-bottom: 16px; }


/* ---------- Landing (apresentação e planos) ---------- */
.land-header { max-width: 1080px; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.land-logo { height: 64px; grid-column: 2; justify-self: center; }
.land-actions { display: flex; gap: 8px; grid-column: 3; justify-self: end; }
.land-hero { text-align: center; padding: 48px 20px 24px; }
.land-hero-logo { margin: 0 auto 10px; }
.land-hero-logo .land-logo { height: 64px; }
.land-hero {
  margin: 0 auto 28px;
  background: linear-gradient(180deg, rgba(6, 182, 212, .12), rgba(14, 116, 144, .05) 60%, transparent);
  border-radius: 0 0 28px 28px;
}
.land-hero h1 { font-size: clamp(26px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 14px; color: #0f172a; }
.land-sub { max-width: 620px; margin: 0 auto 26px; color: #475569; font-size: 16px; }
.land-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.land-install-zone { margin-top: 18px; }
.land-install-label { font-size: 13px; color: #475569; margin-bottom: 8px; }
.land-install-zone #btn-install-app { box-shadow: 0 6px 18px rgba(14, 116, 144, .25); }
.land-section { max-width: 1080px; margin: 0 auto; padding: 40px 20px; }
.land-center { text-align: center; margin: 0 0 26px; font-size: 26px; color: #0f172a; }
.land-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.land-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.land-card h3 { margin: 0 0 6px; font-size: 16px; color: #0f172a; }
.land-card p { margin: 0; color: #475569; font-size: 14px; }
.land-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.plan-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.plan-highlight { border: 2px solid var(--primary-light); box-shadow: 0 10px 30px rgba(6, 182, 212, .18); }
.plan-flag { position: absolute; top: -12px; right: 16px; background: linear-gradient(135deg, #3cf0d0, #0e6f5f); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-weight: 800; font-size: 18px; color: #0f172a; }
.plan-price { font-size: 28px; font-weight: 800; margin: 10px 0 2px; color: #0f172a; }
.plan-per { font-size: 13px; font-weight: 500; color: #64748b; }
.plan-tag { color: #64748b; font-size: 13px; margin-bottom: 12px; }
.plan-feats { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.plan-feats li { padding: 5px 0 5px 22px; position: relative; color: #334155; font-size: 14px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-light); font-weight: 700; }
.plan-btn { width: 100%; }
.plan-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 20px; }
.plan-tab { padding: 10px 18px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 14px; cursor: pointer; }
.plan-tab.active { background: var(--primary-light); border-color: var(--primary-light); color: #fff; font-weight: 600; }
.plan-trial { border: 2px solid #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, .15); }
.land-plans { margin-bottom: 14px; }
.su-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.su-plan-opt { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; }
.su-plan-opt.active { border-color: var(--primary-light); background: rgba(6, 182, 212, .06); }
.su-plan-opt-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.su-plan-opt-name { font-weight: 700; color: #0f172a; font-size: 14px; }
.su-plan-opt-price { font-weight: 700; color: var(--primary-light); font-size: 14px; white-space: nowrap; }
.su-plan-opt-tag { color: #64748b; font-size: 12px; margin-top: 2px; }
.su-plan-opt-feats { color: #94a3b8; font-size: 11px; margin-top: 4px; line-height: 1.5; }
.land-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.land-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; text-align: center; color: #334155; font-size: 15px; }
.land-step b { display: block; color: var(--primary-light); font-size: 22px; margin-bottom: 6px; }
.land-footer { text-align: center; padding: 26px 20px 40px; color: #94a3b8; font-size: 13px; }
.su-card { max-width: 640px; }
.su-logo { height: 38px; margin: 0 auto 10px; display: block; }
.su-block { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.su-block-title { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 8px; }
.su-plan { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.su-plan-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.su-plan-tag { color: #64748b; font-size: 12px; }
.su-plan-price { font-weight: 800; color: #0f172a; }
.su-plan-price span { font-weight: 500; color: #64748b; font-size: 12px; }
.su-links { display: flex; justify-content: space-between; margin-top: 10px; }
.btn-lg { padding: 12px 26px; font-size: 16px; }

/* ---------- Camada de animações (marcante e moderna) ---------- */
@keyframes sigFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sigFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sigPop { from { opacity: 0; transform: scale(.92) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sigBackdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes sigToast { from { opacity: 0; transform: translateX(110%); } to { opacity: 1; transform: none; } }
@keyframes sigDrawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sigSpin { to { transform: rotate(360deg); } }

/* Transição de página lateral: o conteúdo atual sai e o novo entra vindo da esquerda */
@keyframes sigSlideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(90px); } }
@keyframes sigSlideIn { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }

#content.nav-exit > * { animation: sigFade .18s ease both; }
#content.nav-enter > * { animation: sigFadeUp .28s ease both; }

/* Modais e drawers */
.modal-backdrop { animation: sigBackdrop .22s ease both; }
.modal { animation: sigPop .3s cubic-bezier(.34,1.4,.64,1) both; }
.drawer-backdrop { animation: sigBackdrop .22s ease both; }
.drawer { animation: sigDrawer .3s cubic-bezier(.16,1,.3,1) both; }

/* Toasts */
.toast { animation: sigToast .32s cubic-bezier(.16,1,.3,1) both; }

/* Carregamento: spinner + pulso do texto */
.page-loading { position: relative; }
.page-loading::before {
  content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 12px;
  border: 3px solid rgba(14,116,144,.18); border-top-color: var(--primary);
  border-radius: 50%; animation: sigSpin .8s linear infinite;
}

/* Botões: apenas feedback de clique */
.btn:active, .icon-btn:active { transform: scale(.96); }

/* Inputs */
.input, select.input, textarea.input { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }

/* Cards e estatísticas: sem transformação (protege gráficos) */
.card { transition: box-shadow .15s ease, border-color .15s ease; }
.stats-grid .stat-card { transition: box-shadow .15s ease; }
.stats-grid .stat-card > b { display: inline-block; }

/* Menu lateral */
.sidebar-link { transition: background .18s ease, color .18s ease; }

/* Navegação inferior */
.bottom-nav-item { transition: color .18s ease; }

/* Tiles de seguimento e cards de solução */
.niche-tile { transition: border-color .18s ease, background .18s ease; }
.niche-tile.active { animation: sigPop .3s cubic-bezier(.34,1.4,.64,1); }
.sol-card { transition: border-color .2s ease, box-shadow .2s ease; }

/* Login / cadastro */
.login-card { animation: sigPop .4s cubic-bezier(.34,1.4,.64,1) both; }

/* Landing: entrada escalonada */
.land-hero > * { animation: sigFadeUp .5s cubic-bezier(.16,1,.3,1) both; }
.land-hero > *:nth-child(2) { animation-delay: .08s; }
.land-hero > *:nth-child(3) { animation-delay: .16s; }
.plan-card { animation: sigFadeUp .5s cubic-bezier(.16,1,.3,1) both; }
.plan-card:nth-child(2) { animation-delay: .1s; }
.plan-card:nth-child(3) { animation-delay: .2s; }
.land-card, .land-step { animation: sigFadeUp .45s cubic-bezier(.16,1,.3,1) both; }
.land-card:nth-child(2), .land-step:nth-child(2) { animation-delay: .07s; }
.land-card:nth-child(3), .land-step:nth-child(3) { animation-delay: .14s; }
.land-card:nth-child(4) { animation-delay: .21s; }
.land-card:nth-child(5) { animation-delay: .28s; }
.land-card:nth-child(6) { animation-delay: .35s; }

/* Estados vazios */
.empty { animation: sigFadeUp .35s ease both; }

/* Acessibilidade: respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Pré-Orçamentos ---------- */
.quote-card { margin-bottom: 10px; }
.quote-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.quote-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px;
}
.quote-actions { display: flex; gap: 6px; }
.quote-actions .icon-btn.btn-sm { width: 30px; height: 30px; }

.quote-summary { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.quote-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; font-size: 13.5px; color: var(--muted);
}
.quote-summary-row b { color: var(--text); }
.quote-summary-row.grand { font-size: 15px; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 9px; }
.quote-summary-row.grand b { font-size: 17px; color: var(--primary); }
.quote-summary-row.profit { font-size: 15px; }
.quote-summary-row.profit b { font-size: 17px; }

.quote-actions-bar {
  display: flex; gap: 10px; margin-top: 16px;
  position: sticky; bottom: 74px; z-index: 20;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px;
}
.quote-actions-bar .btn { flex: 1; }

/* ---------- Ajustes mobile ---------- */
@media (max-width: 900px) {
  #topbar { padding: 0 10px; gap: 6px; }
  .topbar-user { display: none; }
  .store-select { max-width: 90px; margin-left: 4px; padding: 5px 6px; }
  .topbar-actions { gap: 6px; min-width: 0; overflow: hidden; }
  .net-badge { font-size: 10px; padding: 3px 7px; }
  #net-status { font-size: 0; width: 11px; height: 11px; min-width: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--card); }
  #btn-menu { width: 36px; height: 36px; }
  .row { flex-wrap: wrap; }
  .row .btn { min-width: 0; }
  .row-bt { flex-wrap: wrap; }
  .row-bt > * { min-width: 0; }
  #content { padding: 12px 12px 84px; }

  /* Evita zoom automático do iOS e garante área de toque confortável */
  .input, select.input, textarea.input, .btn, .pay-btn, .inst-btn, .bottom-nav-item { font-size: 16px; }
  .btn { min-height: 44px; padding: 10px 14px; }
  .icon-btn { width: 42px; height: 42px; }
  .table .actions .icon-btn { width: 34px; height: 34px; }

  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head .btn { width: 100%; justify-content: center; }
  .page-head .btn:only-child { width: 100%; }

  .filter-bar { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .filter-bar .search-box { min-width: 0; }
  .filter-bar .search-box .input { width: 100%; }
  .filter-bar .btn { min-width: 0; }

  .bottom-nav-item { min-height: 56px; }
  #bottomnav { box-shadow: 0 -2px 12px rgba(15, 23, 42, .08); }

  .quote-actions-bar { bottom: 72px; left: 12px; right: 12px; }

  .inst-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .inst-btn { min-height: 58px; }

  /* Linhas de usuários/registros no celular: o nome ocupa a linha toda e os
     botões (Permissões, Editar, Senha...) quebram em duas colunas, sem cortar
     nem sobrepor o texto do nome/usuário (banaliza o style="flex:1" inline). */
  .inst-row { flex-wrap: wrap; }
  .inst-row > .person-cell { flex: 1 1 100% !important; min-width: 0; }
  .inst-row .person-cell > div { min-width: 0; overflow-wrap: break-word; }
  .inst-row .btn { flex: 1 1 40%; min-width: 0; justify-content: center; white-space: nowrap; }
}

/* ---------- Tema escuro da landing e do cadastro (identidade) ---------- */
body.login-mode { background: #0b0f13; color: #e9eef2; }

body.login-mode .land-header { padding: 16px 20px; }
body.login-mode .land-actions .btn-outline { border-color: rgba(255,255,255,.2); color: #dfe9ef; background: transparent; }
body.login-mode .land-actions .btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

body.login-mode .land-hero {
  background:
    radial-gradient(1100px 460px at 50% -14%, rgba(14,111,95,.38), transparent 62%),
    radial-gradient(760px 300px at 88% 112%, rgba(60,240,208,.07), transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
body.login-mode .land-hero h1 { color: #f2f7fa; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
body.login-mode .land-sub { color: #9fb0bd; }
body.login-mode .land-sub-narrow { max-width: 560px; }
body.login-mode .land-install-label { color: #9fb0bd; }
body.login-mode .land-install-zone #btn-install-app { box-shadow: 0 8px 24px rgba(14,111,95,.45); }
body.login-mode .land-center { color: #f2f7fa; }
body.login-mode .land-center-left { text-align: left; margin-bottom: 14px; font-size: 24px; }
body.login-mode .land-sub-left { text-align: left; margin: 0 0 18px; }
body.login-mode .land-cta-left { display: flex; }

body.login-mode .land-card, body.login-mode .land-step {
  background: #151b22; border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
}
body.login-mode .land-card h3 { color: #f2f7fa; }
body.login-mode .land-card p { color: #9fb0bd; }
body.login-mode .land-step { color: #c7d2da; }
body.login-mode .land-step b { color: var(--primary-light); }

/* Planos */
body.login-mode .plan-tabs { gap: 10px; margin-bottom: 24px; }
body.login-mode .plan-tab { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cfd9e0; }
body.login-mode .plan-tab:hover { border-color: rgba(60,240,208,.5); color: #fff; }
body.login-mode .plan-tab.active {
  background: linear-gradient(135deg, #0e6f5f, #0a5a4e);
  border-color: rgba(60,240,208,.55); color: #fff; font-weight: 700;
  box-shadow: 0 4px 18px rgba(14,111,95,.45);
}
body.login-mode .plan-card { background: #151b22; border: 1px solid rgba(255,255,255,.08); }
body.login-mode .plan-highlight { border-color: var(--primary-light); box-shadow: 0 12px 36px rgba(60,240,208,.16); }
body.login-mode .plan-trial { border-color: #f59e0b; box-shadow: 0 10px 30px rgba(245,158,11,.14); }
body.login-mode .plan-name { color: #f2f7fa; }
body.login-mode .plan-price { color: #f2f7fa; }
body.login-mode .plan-per { color: #8fa0ac; }
body.login-mode .plan-day { color: #67e6c8; font-size: 12.5px; font-weight: 600; margin-top: -2px; }
body.login-mode .plan-tag { color: #9fb0bd; }
body.login-mode .plan-feats li { color: #c7d2da; }
body.login-mode .plan-feats li::before { color: var(--primary-light); }
body.login-mode .plan-btn.btn-outline { border-color: rgba(255,255,255,.22); color: #e9eef2; background: transparent; }
body.login-mode .plan-btn.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* Simulador da vendedora (WhatsApp) */
.land-sim-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.land-sim-copy { max-width: 440px; }
.wa-frame {
  max-width: 380px; width: 100%; margin: 0 auto;
  background: #0c131a; border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(60,240,208,.06);
}
.wa-head { display: flex; align-items: center; gap: 11px; padding: 12px 15px; background: linear-gradient(135deg, #0e6f5f, #0a5a4e); }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wa-name { font-weight: 700; color: #fff; font-size: 14px; line-height: 1.2; }
.wa-online { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 500; }
.wa-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; min-height: 216px; background: radial-gradient(400px 200px at 50% 0%, rgba(14,111,95,.08), transparent 70%); }
.wa-bubble { max-width: 84%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wa-bubble.you { background: #20262b; color: #dbe6ec; align-self: flex-start; border-bottom-left-radius: 4px; animation: sigFadeUp .45s cubic-bezier(.16,1,.3,1) both; }
.wa-bubble.you:nth-child(3) { animation-delay: .5s; }
.wa-bubble.me { background: #0e6f5f; color: #eafff9; align-self: flex-end; border-bottom-right-radius: 4px; animation: sigFadeUp .45s cubic-bezier(.16,1,.3,1) both; }
.wa-bubble.me:nth-child(4) { animation-delay: 1.1s; }
.wa-bubble.me:nth-child(6) { animation-delay: 1.9s; }
.wa-time { display: block; font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.wa-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 11px 13px; background: #20262b; border-radius: 14px; border-bottom-left-radius: 4px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #7f929f; animation: waBlink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .18s; }
.wa-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes waBlink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Faixa de prejuízo */
body.login-mode .land-risk { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
body.login-mode .land-risk-card {
  background: #151b22; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 18px;
  border-top: 2px solid rgba(248,113,113,.65);
}
body.login-mode .risk-num { font-size: 24px; font-weight: 800; color: #ff8f8f; line-height: 1.15; }
body.login-mode .risk-txt { color: #9fb0bd; font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

/* FAQ */
body.login-mode .land-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
body.login-mode .land-faq details { background: #151b22; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px; }
body.login-mode .land-faq summary { color: #f2f7fa; font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
body.login-mode .land-faq summary::after { content: "+"; color: var(--primary-light); font-size: 19px; font-weight: 600; transition: transform .18s ease; }
body.login-mode .land-faq details[open] summary::after { transform: rotate(45deg); }
body.login-mode .land-faq p { color: #9fb0bd; font-size: 13.5px; margin: 10px 0 2px; line-height: 1.55; }

body.login-mode .land-footer { color: #6b7c89; border-top: 1px solid rgba(255,255,255,.05); margin-top: 8px; line-height: 1.6; }

/* Cadastro / login escuro */
body.login-mode .login-card { background: #12171d; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
body.login-mode .su-card { max-width: 640px; }
body.login-mode .login-brand, body.login-mode .su-block-title, body.login-mode .su-plan-name { color: #f2f7fa; }
body.login-mode .login-sub { color: #9fb0bd; }
body.login-mode .field label { color: #9fb0bd; }
body.login-mode .input, body.login-mode select.input, body.login-mode textarea.input {
  background: #20262b; color: #e9eef2; border-color: rgba(255,255,255,.13);
}
body.login-mode .input::placeholder { color: #6b7c89; }
body.login-mode .su-block { border-color: rgba(255,255,255,.1); }
body.login-mode .su-plan-opt { background: #1a2129; border-color: rgba(255,255,255,.12); }
body.login-mode .su-plan-opt.active { border-color: var(--primary-light); background: rgba(60,240,208,.07); }
body.login-mode .su-plan-opt-name { color: #f2f7fa; }
body.login-mode .su-plan-opt-price { color: var(--primary-light); }
body.login-mode .su-plan-opt-tag { color: #9fb0bd; }
body.login-mode .su-plan-opt-feats { color: #8fa0ac; }
body.login-mode .su-plan { background: #1a2129; }
body.login-mode .su-plan-price { color: #f2f7fa; }
body.login-mode .su-plan-price span { color: #8fa0ac; }
body.login-mode .niche-tile { background: #1a2129; border-color: rgba(255,255,255,.12); }
body.login-mode .niche-tile:hover { border-color: rgba(60,240,208,.5); }
body.login-mode .niche-tile.active { border-color: var(--primary-light); background: rgba(60,240,208,.08); }
body.login-mode .niche-name { color: #f2f7fa; }
body.login-mode .niche-desc, body.login-mode .niche-cats { color: #9fb0bd; }
body.login-mode .btn-link { color: #9fb0bd; }
body.login-mode .small.muted { color: #8fa0ac; }
body.login-mode .login-hint { background: rgba(14,111,95,.14); color: #67e6c8; }
body.login-mode .login-msg { color: #ff8f8f; }

/* Telas de login/cadastro limpas: sem brilhos de fundo, sem animações
   de entrada escalonadas e sem o brilho deslizante dos botões. */
body.login-mode .land-hero { background: transparent; }
body.login-mode .land-hero > *,
body.login-mode .plan-card,
body.login-mode .land-card,
body.login-mode .land-step,
body.login-mode .login-card { animation: none !important; }
body.login-mode .btn::after { display: none !important; }

@media (max-width: 900px) {
  .land-sim-wrap { grid-template-columns: 1fr; gap: 22px; }
  .land-sim-copy { max-width: 100%; }
  .wa-frame { max-width: 340px; }
}

/* ---------- Agente de ajuda flutuante (chat) ---------- */
#chat-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 160;
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #0a5e51);
  color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
#chat-fab:hover { transform: scale(1.06); }
#chat-fab .fab-ic { width: 26px; height: 26px; }
#chat-fab .fab-badge {
  position: absolute; top: -3px; right: -3px;
  background: #e11d48; color: #fff; font-size: 11px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.chat-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 170;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, 72vh);
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .18s ease;
}
.chat-panel.closed { display: none; }
.cp-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--primary), #0a5e51); color: #fff;
}
.cp-ava { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.cp-ava svg { width: 19px; height: 19px; }
.cp-titles { flex: 1; min-width: 0; }
.cp-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sub { font-size: 11px; opacity: .85; }
.cp-head .icon-btn { color: #fff; }
.cp-thread { max-height: none; flex: 1; border-radius: 0; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--border); }
.cp-chips .btn { font-size: 11.5px; padding: 4px 9px; }
.cp-foot { padding: 7px 12px; border-top: 1px solid var(--border); font-size: 12px; text-align: center; }
.cp-foot a { color: var(--primary); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
  #chat-fab { right: 14px; bottom: 82px; }
  .chat-panel { right: 12px; bottom: 148px; left: 12px; width: auto; height: min(62vh, 520px); }
}

/* ---------- Landing v2: identidade profissional ---------- */
.land-header { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.land-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 16px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  background: #f0fdfa; color: #0e6f5f; border: 1px solid #99f6e4;
}
.land-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: sigPulse 2.4s ease infinite; }
.land-accent {
  background: linear-gradient(92deg, #3cf0d0, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.land-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 820px; margin: 34px auto 0; justify-content: center; }
.land-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 12px; min-width: 0; }
.land-stat b { display: block; font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.land-stat span { display: block; font-size: 12px; color: #64748b; line-height: 1.45; white-space: normal; overflow-wrap: break-word; }
.land-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; font-size: 13px; font-weight: 500; color: #475569; }
.land-cta-final {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0e6f5f, #0a5a4e);
  border: 1px solid rgba(60,240,208,.25); border-radius: 22px;
  padding: 46px 26px; text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.land-cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 220px at 50% -20%, rgba(60,240,208,.28), transparent 65%); pointer-events: none; }
.lcf-emoji { font-size: 40px; margin-bottom: 6px; }
.land-cta-final h2 { margin: 0 0 10px; color: #fff; font-size: clamp(24px, 3.5vw, 34px); }
.land-cta-final p { margin: 0 auto 24px; max-width: 520px; color: rgba(255,255,255,.85); font-size: 15px; }
.land-cta-final .btn-invert { background: #fff; color: #0a5a4e; font-weight: 700; }
.land-cta-final .btn-invert:hover { background: #eafff9; }
.land-cta-final .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.land-cta-final .btn-outline:hover { border-color: #3cf0d0; color: #3cf0d0; }
.land-reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.land-reveal.in { opacity: 1; transform: none; }
@keyframes sigPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(60,240,208,.2); } 50% { box-shadow: 0 0 0 8px rgba(60,240,208,0); } }

/* Tema escuro */
body.login-mode .land-header { background: rgba(11,15,19,.72); border-bottom: 1px solid rgba(255,255,255,.05); }
body.login-mode .land-badge { background: rgba(60,240,208,.09); border-color: rgba(60,240,208,.3); color: #67e6c8; }
body.login-mode .land-hero {
  background:
    radial-gradient(1000px 420px at 50% -12%, rgba(14,111,95,.35), transparent 60%),
    radial-gradient(700px 280px at 90% 115%, rgba(60,240,208,.06), transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
body.login-mode .land-stat { background: #151b22; border: 1px solid rgba(255,255,255,.07); }
body.login-mode .land-stat b { color: #f2f7fa; }
body.login-mode .land-stat span { color: #9fb0bd; }
body.login-mode .land-trust { color: #9fb0bd; }
body.login-mode .land-hero h1 .land-accent { text-shadow: 0 0 40px rgba(60,240,208,.25); }

@media (max-width: 720px) {
  .land-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .land-stat b { font-size: 19px; }
  .land-cta-final { padding: 34px 18px; }
}

/* ---------- Periodicidade mensal/anual (2 meses grátis) ---------- */
.su-period { display: flex; gap: 8px; margin-top: 10px; }
.su-period-btn {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 13.5px;
}
.su-period-btn.active { background: var(--primary-light); border-color: var(--primary-light); color: #fff; font-weight: 600; }
.su-plan-opt-save {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700;
  color: #f59e0b; background: rgba(245,158,11,.12); border-radius: 999px; padding: 2px 8px;
  vertical-align: middle;
}
body.login-mode .su-period-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cfd9e0; }
body.login-mode .su-period-btn:hover { border-color: rgba(60,240,208,.5); color: #fff; }
body.login-mode .su-period-btn.active { background: linear-gradient(135deg, #0e6f5f, #0a5a4e); border-color: rgba(60,240,208,.55); color: #fff; font-weight: 700; }
body.login-mode .su-plan-opt-save { color: #fbbf24; background: rgba(245,158,11,.15); }
body.login-mode #land-period-tabs { margin-bottom: 16px; }


/* ---------- Leitor de codigo de barras ---------- */
.code-box { position: relative; }
.code-box .input { padding-left: 34px; }
.code-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.sc-scan-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 0; width: 36px; height: 36px; padding: 0; border-radius: 8px; flex-shrink: 0; }
.sc-scan-btn svg { position: static; transform: none; width: 18px; height: 18px; }
@media (max-width: 900px) {
  .code-box { display: none; }
}


/* ---------- PDV mobile: barra flutuante do carrinho ---------- */
.cart-fab { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--primary); color: #fff; border: none; border-radius: 14px; padding: 13px 16px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; }
.cart-fab .cart-fab-info { display: inline-flex; align-items: center; gap: 7px; }
.cart-fab .cart-fab-info svg { width: 18px; height: 18px; }
.cart-fab .cart-fab-cta { font-weight: 700; background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 10px; }
.pdv-cart.pdv-flash { animation: pdv-flash 1.3s ease; }
@keyframes pdv-flash { 0%,100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--primary); } }
@media (max-width: 900px) {
  .pdv-wrap { padding-bottom: 84px; }
  .admin-grid .loj-card.tappable { cursor: pointer; }
  .loj-card.tappable:active { filter: brightness(.96); }
}
@media (min-width: 901px) {
  #pdv-fab { display: none !important; }
}
