/* ============================================================
   Barbearia Max - folha de estilo v2
   Visual moderno e responsivo (celular, tablet e computador)
   ============================================================ */
* { box-sizing: border-box; }

:root {
  --brand: #1B3A4B;
  --brand-2: #2e5c76;
  --accent: #f5b942;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f1f4f9;
  --card: #ffffff;
  --border: #e4eaf2;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.07);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 14px 34px rgba(15,23,42,.14);
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size:calc(15px*var(--fs,1));
  line-height: 1.55;
}
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- layout interno ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  background: linear-gradient(180deg, #0b1220 0%, #101d31 60%, #122540 100%);
  color: #cbd8e4;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.sidebar-brand {
  padding: 20px 18px;
  font-weight: 800;
  font-size:calc(18px*var(--fs,1));
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #f0922e);
  color: #1a1205;
  font-size:calc(17px*var(--fs,1));
  flex-shrink: 0;
}
.sidebar-company {
  margin: 4px 14px 12px;
  padding: 8px 12px;
  font-size:calc(12px*var(--fs,1));
  color: #93a9bd;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-nav { display: flex; flex-direction: column; padding: 2px 12px 28px; gap: 2px; }
.sidebar-nav a {
  color: #b9c9d8;
  text-decoration: none;
  padding: 10px 12px;
  font-size:calc(14px*var(--fs,1));
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, color .15s, transform .1s;
}
.sidebar-nav a .ico { width: 20px; text-align: center; font-size:calc(15px*var(--fs,1)); opacity: .9; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(245,185,66,.95), rgba(240,146,46,.95));
  color: #1a1205;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(240,146,46,.35);
}
.sidebar-nav a.active .ico { opacity: 1; }
.sidebar-public {
  margin-top: 14px;
  border: 1px dashed rgba(255,255,255,.25) !important;
  border-radius: 10px;
  font-size:calc(13px*var(--fs,1)) !important;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-title { font-weight: 700; font-size:calc(17px*var(--fs,1)); flex: 1; letter-spacing: -0.02em; }
.topbar-user { font-size:calc(13px*var(--fs,1)); color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  font-size:calc(19px*var(--fs,1));
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.sidebar-overlay { display: none; }

.content { padding: 24px; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; }

/* ---------- componentes ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2, .card h3 { margin-top: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 4px 0 0 4px;
}
.kpi-label { font-size:calc(11.5px*var(--fs,1)); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.kpi-value { font-size:calc(26px*var(--fs,1)); font-weight: 800; margin-top: 4px; letter-spacing: -0.03em; }
.kpi-sub { font-size:calc(12.5px*var(--fs,1)); color: var(--muted); margin-top: 2px; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size:calc(14px*var(--fs,1));
  min-width: 520px;
}
.tbl th {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 2px solid var(--border);
  color: #52677e;
  font-size:calc(11.5px*var(--fs,1));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #f7fafd; }
.tbl .empty { text-align: center; color: #94a3b8; padding: 30px; font-style: italic; }
.tbl input[type="time"], .tbl input[type="date"], .tbl select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size:calc(13.5px*var(--fs,1));
  font-family: inherit;
}

/* ---------- botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--btn-bg, linear-gradient(135deg, var(--brand), var(--brand-2)));
  color: var(--btn-fg, #fff);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size:calc(14px*var(--fs,1));
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(15,23,42,.14);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.18); filter: brightness(1.05); color: var(--btn-fg, #fff); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(15,23,42,.14); }
.btn:focus-visible { outline: 3px solid rgba(245,185,66,.6); outline-offset: 2px; }

.btn-accent { background: var(--btn-bg, linear-gradient(135deg, var(--accent), #f0922e)); color: var(--btn-fg, #231703); }
.btn-accent:hover { color: var(--btn-fg, #231703); }
.btn-outline {
  background: #fff;
  color: var(--out-fg, var(--brand));
  border: 1.5px solid var(--out-fg, var(--brand));
  box-shadow: none;
}
.btn-outline:hover { background: rgba(27,58,75,.06); color: var(--out-fg, var(--brand)); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.btn-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.btn-sm { padding: 6px 12px; font-size:calc(12.5px*var(--fs,1)); border-radius: 8px; box-shadow: none; }
.btn-block { display: flex; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size:calc(11px*var(--fs,1));
  font-weight: 700;
  letter-spacing: .02em;
  background: #e2e8f0;
  color: #334155;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size:calc(14px*var(--fs,1));
  font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.banner { padding: 11px 22px; font-size:calc(14px*var(--fs,1)); font-weight: 500; }
.banner-danger { background: #fef2f2; color: #991b1b; border-bottom: 1px solid #fecaca; }
.banner-warn { background: #fffbeb; color: #92400e; border-bottom: 1px solid #fde68a; }
.banner-info { background: #eff6ff; color: #1e40af; border-bottom: 1px solid #bfdbfe; }
.banner a { font-weight: 700; }

/* ---------- formularios ---------- */
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size:calc(13px*var(--fs,1)); font-weight: 700; color: #3d5267; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size:calc(14.5px*var(--fs,1));
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,58,75,.14);
}
.field .hint { font-size:calc(12px*var(--fs,1)); color: #94a3b8; margin-top: 4px; }
.checks label { display: inline-block; margin-right: 14px; font-size:calc(14px*var(--fs,1)); }

input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  padding: 8px 11px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size:calc(14px*var(--fs,1));
  font-family: inherit;
  background: #fff;
}

/* ---------- paginas publicas ---------- */
.public { min-height: 100vh; background: var(--bg); }
.public-header {
  color: #fff;
  padding: 56px 18px 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #0e2333 55%, #0a1a29 100%);
  position: relative;
  overflow: hidden;
}
.public-header:before, .public-header:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,66,.22), transparent 70%);
}
.public-header:before { width: 420px; height: 420px; top: -180px; right: -120px; }
.public-header:after { width: 340px; height: 340px; bottom: -190px; left: -110px; }
.public-header > * { position: relative; z-index: 1; }
.public-header h1 { margin: 6px 0 0; font-size:calc(30px*var(--fs,1)); font-weight: 800; letter-spacing: -0.03em; }
.public-header p { margin: 8px auto 0; opacity: .9; max-width: 560px; }
.public-wrap { max-width: 660px; margin: -28px auto 0; padding: 0 16px 48px; position: relative; z-index: 2; }

.step-pick {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size:calc(15px*var(--fs,1));
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.step-pick:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 11px 4px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size:calc(14px*var(--fs,1));
  font-weight: 600;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--brand); background: rgba(27,58,75,.05); }
.slot.off { background: #e8edf3; color: #94a3b8; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day-pick {
  padding: 11px 4px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.day-pick:hover { border-color: var(--brand); background: rgba(27,58,75,.05); }
.day-pick small { display: block; color: var(--muted); font-weight: 500; }
.summary-box { background: #eef4fa; border: 1px solid #d7e5f2; border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size:calc(14px*var(--fs,1)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.big-icon { font-size:calc(56px*var(--fs,1)); }

/* ---------- landing page (v2) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,22,35,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.site-brand { font-weight: 800; font-size:calc(18px*var(--fs,1)); color: #fff; text-decoration: none; display: flex; align-items: center; gap: 9px; letter-spacing: -0.02em; }
.site-brand .logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #f0922e);
  color: #1a1205; font-size:calc(16px*var(--fs,1));
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav a { color: #c7d5e2; text-decoration: none; font-size:calc(14px*var(--fs,1)); font-weight: 600; }
.site-nav a:hover { color: #fff; }

.hero {
  background: linear-gradient(150deg, #0b1626 0%, var(--brand) 55%, #12283d 100%);
  color: #fff;
  padding: 84px 20px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero:before, .hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero:before {
  width: 560px; height: 560px; top: -260px; right: -160px;
  background: radial-gradient(circle, rgba(245,185,66,.20), transparent 70%);
}
.hero:after {
  width: 460px; height: 460px; bottom: -260px; left: -140px;
  background: radial-gradient(circle, rgba(99,179,237,.18), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero-pill {
  display: inline-block;
  background: rgba(245,185,66,.14);
  border: 1px solid rgba(245,185,66,.45);
  color: var(--accent);
  font-size:calc(13px*var(--fs,1));
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.hero h1 {
  font-size:calc(46px*var(--fs,1));
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 auto 16px;
  max-width: 780px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), #ffe0a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub { font-size:calc(18px*var(--fs,1)); color: #c3d3e2; max-width: 620px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn { font-size:calc(15.5px*var(--fs,1)); padding: 13px 24px; border-radius: 12px; }
.hero .btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.28);
  color: #fff;
  box-shadow: none;
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-note { margin-top: 16px; font-size:calc(13px*var(--fs,1)); color: #8fa8bd; }

.section { max-width: 1120px; margin: 0 auto; padding: 64px 20px; }
.section-title { text-align: center; font-size:calc(30px*var(--fs,1)); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size:calc(16px*var(--fs,1)); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .18s ease;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size:calc(21px*var(--fs,1));
  background: linear-gradient(135deg, rgba(27,58,75,.10), rgba(27,58,75,.05));
  margin-bottom: 12px;
}
.feat-card h3 { margin: 0 0 6px; font-size:calc(17px*var(--fs,1)); }
.feat-card p { margin: 0; color: var(--muted); font-size:calc(14px*var(--fs,1)); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: passo; }
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step-card h3 { margin: 0 0 6px; font-size:calc(16px*var(--fs,1)); }
.step-card p { margin: 0; color: var(--muted); font-size:calc(14px*var(--fs,1)); }

.cta-band {
  background: linear-gradient(135deg, var(--accent), #f0922e);
  border-radius: 20px;
  padding: 44px 30px;
  text-align: center;
  color: #231703;
  margin: 0 20px;
}
.cta-band h2 { margin: 0 0 8px; font-size:calc(28px*var(--fs,1)); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin: 0 0 22px; font-size:calc(16px*var(--fs,1)); opacity: .85; }
.cta-band .btn { background: #10222e; font-size:calc(15.5px*var(--fs,1)); padding: 13px 26px; }
@media (min-width: 900px) { .cta-band { margin: 0 auto; max-width: 1080px; } }

.site-footer {
  background: #0b1626;
  color: #93a9bd;
  text-align: center;
  padding: 34px 20px;
  font-size:calc(13.5px*var(--fs,1));
  margin-top: 70px;
}
.site-footer a { color: #c7d5e2; }

/* ---------- planos / assinatura ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 14px; }
.plan-grid .card { display: flex; flex-direction: column; }
.plan-price { font-size:calc(30px*var(--fs,1)); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0; }
.plan-price small { font-size:calc(13.5px*var(--fs,1)); color: var(--muted); font-weight: 500; margin-left: 4px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.feat-list li { padding: 5px 0 5px 26px; position: relative; font-size:calc(14px*var(--fs,1)); }
.feat-list li:before {
  content: "\2713";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  font-size:calc(11px*var(--fs,1));
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plan-destaque { border: 2px solid var(--accent) !important; box-shadow: 0 10px 26px rgba(245,185,66,.22) !important; }

/* ---------- integracoes ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.integ-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.integ-card h4 { margin: 0 0 4px; font-size:calc(15.5px*var(--fs,1)); display: flex; align-items: center; gap: 8px; }
.integ-status { margin-left: auto; }
.integ-card p { margin: 0 0 10px; font-size:calc(13px*var(--fs,1)); color: var(--muted); }

.copy-line {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f1f5fb;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size:calc(12px*var(--fs,1));
  word-break: break-all;
}
.copy-line code { flex: 1; font-size:calc(11.5px*var(--fs,1)); word-break: break-all; }

/* ---------- modo demonstracao ---------- */
.demo-banner {
  background: linear-gradient(90deg, var(--accent), #f7cf7a);
  color: #3d2e00;
  font-size:calc(14px*var(--fs,1));
  font-weight: 600;
  padding: 9px 16px;
  text-align: center;
}
/* barra da demonstracao: o menu fica no canto, separado do aviso */
.demo-bar { display: flex; align-items: stretch; background: linear-gradient(90deg, var(--accent), #f7cf7a); }
.demo-bar .menu-toggle { margin: 6px 0 6px 10px; align-self: flex-start; flex: 0 0 auto; }
.demo-bar .demo-banner { flex: 1; background: transparent; padding: 9px 14px; min-width: 0; }
.demo-banner a { font-weight: 800; text-decoration: underline; color: inherit; }
@media (max-width: 820px) {
  .layout-demo .table-wrap { overflow-x: visible; margin: 0; padding: 0; }
  .layout-demo .table-wrap table.tbl, .layout-demo table.tbl { min-width: 0; width: 100%; display: block; }
  .layout-demo table.tbl thead, .layout-demo table.tbl tr.demo-hrow { display: none; }
  .layout-demo table.tbl tr:nth-child(even) td, .layout-demo table.tbl tr:nth-child(even) th { background: transparent !important; }
  .layout-demo table.tbl tbody, .layout-demo table.tbl tr { display: block; }
  .layout-demo table.tbl tr { border: 1px solid var(--line, #e3eaf3); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  .layout-demo table.tbl td, .layout-demo table.tbl th { display: block; border: 0; padding: 3px 0; white-space: normal; word-break: break-word; overflow-wrap: anywhere; text-align: left; background: transparent; }
  .layout-demo table.tbl td[data-label]::before { content: attr(data-label); display: block; font-size:calc(11px*var(--fs,1)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
  .layout-demo table.tbl tr th + td { font-weight: 600; }
  .layout-demo table.tbl tr > th { font-size:calc(11px*var(--fs,1)); letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
  .layout-demo .card { overflow-x: visible; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .content { padding: 18px; }
  .hero h1 { font-size:calc(38px*var(--fs,1)); }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    left: -270px;
    z-index: 70;
    transition: left .22s ease;
    box-shadow: none;
    width: 262px;
  }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,18,30,.55);
    z-index: 65;
  }
  .sidebar-overlay.show { display: block; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .content { padding: 14px; }
  .slot-grid, .day-grid { grid-template-columns: repeat(3, 1fr); }
  .card { overflow-x: auto; padding: 16px; }
  body { overflow-x: hidden; }
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size:calc(15.5px*var(--fs,1)); }
  .public-header { padding: 42px 16px 56px; }
  .hero { padding: 60px 18px 74px; }
  .hero h1 { font-size:calc(31px*var(--fs,1)); }
  .hero p.sub { font-size:calc(16px*var(--fs,1)); }
  .section { padding: 46px 16px; }
  .section-title { font-size:calc(25px*var(--fs,1)); }
  .site-nav a:not(.btn) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .kpi-value { font-size:calc(22px*var(--fs,1)); }
}

@media (max-width: 480px) {
  .slot-grid, .day-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size:calc(27px*var(--fs,1)); }
  .btn { padding: 10px 15px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .filters { width: 100%; }
  .toolbar .filters input, .toolbar .filters select { flex: 1; min-width: 0; }
}


/* ---------- v2.1: icones SVG (sem depender de emoji) ---------- */
svg.ic { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.sidebar-brand .logo svg.ic, .site-brand .logo svg.ic { width: 22px; height: 22px; vertical-align: -5px; color: var(--accent); }
.sidebar-nav a .ico svg.ic { width: 17px; height: 17px; vertical-align: -3px; }
.sidebar-public .ico svg.ic { width: 16px; height: 16px; }
.menu-toggle svg.ic { width: 22px; height: 22px; vertical-align: middle; }
.feat-ico svg.ic { width: 22px; height: 22px; color: var(--brand); vertical-align: middle; }
.hero-pill svg.ic { width: 14px; height: 14px; vertical-align: -2px; }
.foot-brand svg.ic { width: 18px; height: 18px; vertical-align: -4px; color: var(--accent); }

/* ---------- v2.1: tabelas com rolagem horizontal no celular ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.table-wrap table.tbl { min-width: 560px; }
@media (max-width: 760px) {
  .table-wrap { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px;
    background: linear-gradient(to left, rgba(27,58,75,.07), rgba(27,58,75,0) 24px) right center / 28px 100% no-repeat; }
}

/* ---------- v2.1: hero com imagem e faixa de fotos ---------- */
.hero { text-align: left; }
.hero .wrap { max-width: 1120px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { margin: 0 0 16px; }
.hero p.sub { margin: 0 0 28px; }
.hero-ctas { justify-content: flex-start; }
.hero-media img {
  width: 100%; display: block; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
  object-fit: cover; aspect-ratio: 4 / 3.1;
}
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-item { margin: 0; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-item img { width: 100%; height: 300px; object-fit: cover; display: block; }
.photo-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px; color: #fff; font-size:calc(14px*var(--fs,1)); font-weight: 600;
  background: linear-gradient(to top, rgba(10,20,32,.82), rgba(10,20,32,0));
}
@media (max-width: 900px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { margin: 0 auto 16px; }
  .hero p.sub { margin: 0 auto 28px; }
  .hero-ctas { justify-content: center; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item img { height: 220px; }
}


/* ============================================================
   v3 - novo visual: tema claro/escuro, graficos, menu inferior
   ============================================================ */
:root { --soft: #f7fafd; --line: #eef2f7; --input: #ffffff; --head: #52677e; }

[data-theme="dark"] {
  --ink: #e6edf5;
  --muted: #93a4b8;
  --bg: #0b1220;
  --card: #111c30;
  --border: #22324b;
  --soft: #15233b;
  --line: #1b2b45;
  --input: #0e1930;
  --head: #9db0c6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.35);
  color-scheme: dark;
}
[data-theme="dark"] a { color: #8fc1e3; }
[data-theme="dark"] .topbar { background: rgba(14,24,42,.86); }
[data-theme="dark"] .menu-toggle,
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea,
[data-theme="dark"] .toolbar input, [data-theme="dark"] .toolbar select,
[data-theme="dark"] .tbl input[type="time"], [data-theme="dark"] .tbl input[type="date"], [data-theme="dark"] .tbl select,
[data-theme="dark"] .step-pick, [data-theme="dark"] .slot, [data-theme="dark"] .day-pick {
  background: var(--input); color: var(--ink); border-color: var(--border);
}
[data-theme="dark"] .tbl th { color: var(--head); border-bottom-color: var(--border); }
[data-theme="dark"] .tbl td { border-bottom-color: var(--line); }
[data-theme="dark"] .tbl tr:hover td { background: var(--soft); }
[data-theme="dark"] .btn-outline { background: transparent; color: var(--out-fg-d, #cfe3f3); border-color: var(--out-fg-d, #3b5a7a); }
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,.06); color: var(--out-fg-d, #fff); }
[data-theme="dark"] .summary-box { background: var(--soft); border-color: var(--border); }
[data-theme="dark"] .badge { background: #22324b; color: #cbd5e1; }
[data-theme="dark"] .badge-green { background: #0f3d2e; color: #86efac; }
[data-theme="dark"] .badge-amber { background: #4a3510; color: #fcd34d; }
[data-theme="dark"] .badge-blue { background: #14305e; color: #93c5fd; }
[data-theme="dark"] .badge-red { background: #4c1717; color: #fca5a5; }
[data-theme="dark"] .badge-purple { background: #2e1f5c; color: #c4b5fd; }
[data-theme="dark"] .alert-success { background: #0f3d2e; color: #86efac; border-color: #14532d; }
[data-theme="dark"] .alert-info { background: #14305e; color: #bfdbfe; border-color: #1e3a8a; }
[data-theme="dark"] .alert-warn { background: #4a3510; color: #fde68a; border-color: #713f12; }
[data-theme="dark"] .alert-danger { background: #4c1717; color: #fecaca; border-color: #7f1d1d; }
[data-theme="dark"] .banner-danger { background: #4c1717; color: #fecaca; border-color: #7f1d1d; }
[data-theme="dark"] .banner-warn { background: #4a3510; color: #fde68a; border-color: #713f12; }
[data-theme="dark"] .banner-info { background: #14305e; color: #bfdbfe; border-color: #1e3a8a; }
[data-theme="dark"] .field .hint, [data-theme="dark"] .tbl .empty { color: #6b7f98; }
[data-theme="dark"] .card h3, [data-theme="dark"] .kpi-value { color: var(--ink); }
[data-theme="dark"] .feat-ico { background: var(--soft); }
[data-theme="dark"] .copy-line { background: var(--soft); border-color: var(--border); color: var(--ink); }
[data-theme="dark"] .integ-card { background: var(--soft); }

/* alternar tema */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle .t-sun { display: none; }
[data-theme="dark"] .theme-toggle .t-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .t-moon { display: none; }

/* botoes mais vivos */
.btn { letter-spacing: .005em; }
.btn svg.ic { width: 16px; height: 16px; vertical-align: -3px; }
.btn-accent { box-shadow: 0 6px 18px rgba(240,146,46,.35); }
.btn-lg { padding: 14px 26px; font-size:calc(16px*var(--fs,1)); border-radius: 12px; }
.card { border-radius: 16px; }
.kpi { border-radius: 16px; }
.kpi-value { font-size:calc(28px*var(--fs,1)); }
.topbar-name { font-weight: 600; color: var(--ink); }
.tbl tr:nth-child(even) td { background: color-mix(in srgb, var(--soft) 45%, transparent); }

/* cabecalho de boas-vindas */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hello h2 { margin: 0; font-size:calc(24px*var(--fs,1)); letter-spacing: -0.03em; }
.hello p { margin: 2px 0 0; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 18px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }

/* graficos */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 6px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-val { font-size:calc(10.5px*var(--fs,1)); color: var(--muted); white-space: nowrap; font-weight: 600; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill { width: 70%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), #f0922e); min-height: 4px; transition: height .4s ease; }
.bar-col:last-child .bar-fill { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.bar-lbl { font-size:calc(12px*var(--fs,1)); color: var(--muted); font-weight: 600; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.donut-hole { width: 98px; height: 98px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-size:calc(26px*var(--fs,1)); font-weight: 800; letter-spacing: -0.03em; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size:calc(14px*var(--fs,1)); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.legend b { margin-left: 6px; }
.hlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hl-top { display: flex; justify-content: space-between; gap: 10px; font-size:calc(14px*var(--fs,1)); margin-bottom: 5px; }
.hl-top b { color: var(--muted); font-weight: 600; font-size:calc(13px*var(--fs,1)); white-space: nowrap; }
.hl-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hl-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* menu inferior (celular) */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(15,23,42,.08);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; font-size:calc(11px*var(--fs,1)); font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 10px;
  }
  .bottom-nav a svg.ic { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
  [data-theme="dark"] .bottom-nav a.active { color: var(--accent); }
  .layout .content { padding-bottom: 86px; }
  .topbar-name { display: none; }
  .hello h2 { font-size:calc(20px*var(--fs,1)); }
  .quick .btn { flex: 1; }
  .bars { gap: 6px; height: 170px; }
  .bar-val { font-size:calc(9px*var(--fs,1)); }
}

/* seletor de tema da barbearia */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 42px; height: 42px; border-radius: 12px; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--border); }
.swatch input:checked + span { border-color: var(--card); box-shadow: 0 0 0 3px var(--brand), 0 4px 10px rgba(0,0,0,.2); }

/* ---------- agendamento publico: passos ---------- */
.stepper { display: flex; justify-content: space-between; gap: 6px; margin: 20px 0 -6px; padding: 0; list-style: none; counter-reset: s; }
.stepper li { flex: 1; text-align: center; font-size:calc(11.5px*var(--fs,1)); font-weight: 600; color: var(--muted); position: relative; }
.stepper li:before {
  counter-increment: s; content: counter(s);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 5px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 2px solid var(--border); font-size:calc(13px*var(--fs,1)); position: relative; z-index: 1;
}
.stepper li:after { content: ""; position: absolute; top: 14px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: var(--border); }
.stepper li:last-child:after { display: none; }
.stepper li.done:before { background: var(--brand); border-color: var(--brand); color: #fff; content: "\2713"; }
.stepper li.done:after { background: var(--brand); }
.stepper li.now { color: var(--ink); }
.stepper li.now:before { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size:calc(14px*var(--fs,1)); margin-right: 12px; vertical-align: middle; }
.step-pick { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.step-pick .sp-main { flex: 1; min-width: 0; }
.step-pick .sp-price { font-weight: 800; white-space: nowrap; }
.public-header .logo-box { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.public-header .logo-box svg.ic { width: 26px; height: 26px; }

/* ---------- landing v3 ---------- */
.stats-band { max-width: 1120px; margin: -38px auto 0; padding: 0 20px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.stat { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size:calc(26px*var(--fs,1)); letter-spacing: -0.03em; color: var(--brand); }
.stat span { font-size:calc(13px*var(--fs,1)); color: var(--muted); }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.showcase.rev .show-img { order: 2; }
.show-img img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: block; }
.show-copy h3 { font-size:calc(26px*var(--fs,1)); letter-spacing: -0.03em; margin: 0 0 10px; }
.show-copy p { color: var(--muted); font-size:calc(16px*var(--fs,1)); margin: 0 0 14px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tick-list li { padding-left: 28px; position: relative; font-size:calc(15px*var(--fs,1)); }
.tick-list li:before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #d1fae5; color: #065f46; font-size:calc(12px*var(--fs,1)); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.integ-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.integ-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size:calc(14px*var(--fs,1)); box-shadow: var(--shadow-sm); }
.integ-chip svg.ic { color: var(--brand); }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; font-size:calc(22px*var(--fs,1)); line-height: 1; color: var(--brand); }
.faq details[open] summary:after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.feat-card { transition: transform .15s ease, box-shadow .15s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 20px; }
  .showcase.rev .show-img { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.ok-badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; background: #d1fae5; color: #15803d; display: flex; align-items: center; justify-content: center; }
.ok-badge svg.ic { width: 36px; height: 36px; stroke-width: 2.4; }
.card h3 svg.ic { color: var(--brand); margin-right: 4px; }
[data-theme="dark"] .card h3 svg.ic { color: var(--accent); }
@media (max-width: 820px) { .kpi-value { font-size:calc(20px*var(--fs,1)); white-space: nowrap; } .kpi-label { font-size:calc(10.5px*var(--fs,1)); } }
[data-theme="dark"] a.btn { color: #fff; }
[data-theme="dark"] a.btn-accent { color: var(--btn-fg, #231703); }
[data-theme="dark"] a.btn-outline { color: var(--out-fg-d, #cfe3f3); }
a.step-pick, a.day-pick, a.slot { text-decoration: none; color: var(--ink); }
a.step-pick .muted { color: var(--muted); }
[data-theme="dark"] a.step-pick, [data-theme="dark"] a.day-pick, [data-theme="dark"] a.slot { color: var(--ink); }

/* v3: tabelas largas no celular deixam claro que rolam */
.scroll-hint{display:none;font-size:calc(12px*var(--fs,1));color:var(--muted,#6b7280);margin:0 0 6px}
@media(max-width:720px){
  .scroll-hint{display:block}
  .table-wrap.has-more{position:relative;box-shadow:inset -22px 0 14px -14px rgba(0,0,0,.22)}
}

.field input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 0; }
.demo-intro { margin: -6px 0 14px; font-size:calc(14px*var(--fs,1)); }

/* ---------- v3.6: ajustes de alinhamento e espacamento (celular, tablet e computador) ---------- */
.public { overflow-x: hidden; }
.card form > .btn, .card form > a.btn, .card > .btn, .card > a.btn, .card > p > .btn, .card > p > a.btn { margin: 0 8px 10px 0; }
.card form > .btn.btn-block, .card > .btn.btn-block { margin-right: 0; }
td form.inline { display: inline-block; margin: 3px 6px 3px 0; }
.sidebar-brand .logo svg.ic, .site-brand .logo svg.ic, .logo-box svg.ic { display: block; vertical-align: baseline; margin: 0; }
.sidebar-brand .logo, .site-brand .logo { line-height: 1; }
.sidebar-brand { line-height: 1.2; }
@media (max-width: 480px) {
  .public-wrap { padding-left: 16px; padding-right: 16px; }
  .public-wrap > .card { margin-left: 0; margin-right: 0; }
}
/* logo mais visivel: icone escuro sobre o quadrado laranja, imagem enviada inteira (sem cortar nem distorcer) */
.site-brand .logo { width: 46px; height: 46px; border-radius: 12px; }
.sidebar-brand .logo { width: 38px; height: 38px; border-radius: 11px; }
.site-brand { gap: 12px; font-size:calc(20px*var(--fs,1)); }
.sidebar-brand .logo svg.ic, .site-brand .logo svg.ic { color: #1a1205; }
.site-brand .logo svg.ic { width: 28px; height: 28px; }
.sidebar-brand .logo svg.ic { width: 24px; height: 24px; }
.logo .logo-img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; padding: 3px; box-sizing: border-box; border-radius: inherit; }
.btn-sm { white-space: nowrap; }
.login-links a{display:block;padding:12px 8px;min-height:44px;box-sizing:border-box;line-height:20px}
.login-links a + a{margin-top:4px;border-top:1px solid #e3eaf3}
@media (max-width: 600px) {
  .table-wrap:has(> table.tbl-stack){overflow-x:visible}
  table.tbl-stack, table.tbl-stack tbody, table.tbl-stack tr{display:block;min-width:0;width:100%}
  table.tbl-stack tr:first-child{display:none}
  table.tbl-stack tr{border:1px solid #e3eaf3;border-radius:12px;padding:8px 12px;margin-bottom:10px;background:#fff}
  table.tbl-stack td{display:block;border:0;padding:3px 0;background:transparent;word-break:break-word;overflow-wrap:anywhere}
  table.tbl-stack td[data-label]::before{content:attr(data-label);display:block;font-size:calc(11px*var(--fs,1));font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b}
  table.tbl-stack td.tbl-actions{padding-top:10px}
  table.tbl-stack td.tbl-actions form.inline{display:inline-block;margin:0 8px 8px 0}
}
@media (max-width:600px){table.tbl-stack tr{box-sizing:border-box}}
@media (max-width:600px){.table-wrap table.tbl.tbl-stack{min-width:0;width:100%}}
@media (max-width:600px){.table-wrap.has-more:has(> table.tbl-stack){box-shadow:none}}

/* Login centralizado (horizontal e vertical). margin:auto dentro do flex mantem o cartao sempre acessivel:
   se a altura for curta (teclado aberto), a pagina rola em vez de cortar o topo. */
body.public .auth-center{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;box-sizing:border-box;padding:24px 16px}
body.public .auth-center > .public-wrap{margin:auto;width:100%;padding:0}
body.public .auth-center > .public-wrap > .card{margin-top:0 !important}

/* Admin: menu mais confortavel so no computador. Ate820px permanece identico. */
.desktop-menu-toggle { display:none; }
@media (min-width:821px) {
  .admin-layout .sidebar { width:272px; }
  .admin-layout .sidebar-nav { gap:4px; }
  .admin-layout .sidebar-nav a { min-height:48px; padding:12px 14px; font-size:calc(15px*var(--fs,1)); gap:12px; }
  .admin-layout .sidebar-nav a .ico { width:24px; }
  .admin-layout .sidebar-nav a .ico svg.ic { width:21px; height:21px; }
  .admin-layout .sidebar-nav .sidebar-public { font-size:calc(14px*var(--fs,1))!important; }
  .admin-layout .desktop-menu-toggle { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; border:1px solid var(--border); border-radius:10px; background:var(--surface,#fff); color:var(--ink); cursor:pointer; box-shadow:var(--shadow-sm); }
  .admin-layout .desktop-menu-toggle svg.ic { width:23px; height:23px; }
  .admin-layout .desktop-menu-toggle:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
  .admin-layout.desktop-menu-closed .sidebar { display:none; }
}

/* Assinar: ajuste exclusivo para computador, preservando o celular. */
@media (min-width:821px) {
  .subscription-payment-card { max-width:none !important; width:100%; }
  .subscription-whatsapp { min-height:52px; padding:15px 24px; font-size:16px; line-height:1.4; animation:subscription-wa-pulse 2.2s ease-out infinite; }
  .subscription-whatsapp:hover, .subscription-whatsapp:focus { animation:none; }
  @keyframes subscription-wa-pulse {
    0%,100% { box-shadow:0 3px 10px rgba(22,163,74,.22),0 0 0 0 rgba(22,163,74,.24); }
    65% { box-shadow:0 3px 10px rgba(22,163,74,.22),0 0 0 9px rgba(22,163,74,0); }
  }
}
@media (min-width:821px) and (prefers-reduced-motion:reduce) {
  .subscription-whatsapp { animation:none; }
}

/* Assinatura em Configuracoes: novos controles so no computador. */
.subscription-desktop-support { display:none; }
@media (min-width:821px) {
  .subscription-account-card { width:100%; padding:28px 30px; }
  .subscription-account-card h3 { font-size:26px; margin-bottom:18px; }
  .subscription-account-card > p { font-size:18px !important; line-height:1.65; }
  .subscription-desktop-support { display:block; margin-top:22px; padding-top:18px; border-top:1px solid var(--border,#e2e8f0); }
  .subscription-desktop-support > p { font-size:17px; line-height:1.65; }
  .subscription-desktop-support .subscription-whatsapp { min-height:58px; padding:17px 28px; font-size:18px; }
  .subscription-desktop-support .subscription-support-note { font-size:14px; margin-bottom:0; }
}
