/* Wolfz Sistemas — site e painel */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7ef;
  --brand: #ea580c;
  --brand-2: #f97316;
  --brand-soft: #fff1e8;
  --navy: #0b1220;
  --ok: #16a34a;
  --ok-soft: #e8f8ee;
  --warn: #d97706;
  --warn-soft: #fff6e0;
  --bad: #dc2626;
  --bad-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Botões e formulários */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600;
  cursor: pointer; background: var(--brand); color: #fff; text-decoration: none !important; transition: .15s;
  white-space: nowrap;
}
.btn:hover { background: #c2410c; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f1f3f8; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f1f3f8; }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #15803d; }
.btn.danger { background: transparent; color: var(--bad); border-color: #f3c4c4; }
.btn.danger:hover { background: var(--bad-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
  color: var(--ink); transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.alert.ok { background: var(--ok-soft); color: #14532d; }
.alert.err { background: var(--bad-soft); color: #7f1d1d; }
.alert.warn { background: var(--warn-soft); color: #78350f; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: #e8efff; color: #1d4ed8; }
.badge.gray { background: #eef0f5; color: var(--muted); }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ─── Site público ─────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink) !important;
  text-decoration: none !important; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span b { color: var(--brand); }
.topbar nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.topbar nav a:not(.btn) { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .topbar nav .hide-m { display: none; } .topbar nav { gap: 10px; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #ffe2cc 0, transparent 60%), linear-gradient(#fff, var(--bg));
  padding: 70px 0 60px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: #334155; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { background: var(--brand-soft); color: #9a3412; border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .82rem; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.mock { position: relative; height: 430px; }
.phone { position: absolute; left: 0; top: 10px; width: 230px; height: 420px; background: var(--navy); border-radius: 32px; padding: 10px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .25); }
.phone .scr { background: #fff; border-radius: 24px; height: 100%; overflow: hidden; padding: 14px; font-size: .78rem; }
.phone .hd { background: var(--brand); color: #fff; margin: -14px -14px 10px; padding: 16px 14px 12px; font-weight: 700; }
.phone .hd small { display: block; font-weight: 500; opacity: .9; }
.phone .it { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f4; }
.phone .it i { font-style: normal; font-size: 1.4rem; width: 36px; height: 36px; background: #fff4ec; border-radius: 9px;
  display: grid; place-items: center; }
.phone .it b { display: block; }
.phone .it span { margin-left: auto; font-weight: 700; color: var(--brand); }
.phone .send { margin-top: 12px; background: var(--ok); color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-weight: 700; }
.kds { position: absolute; right: 0; top: 90px; width: 285px; background: #111827; border-radius: 16px; padding: 14px; color: #fff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .3); font-size: .78rem; }
.kds .t { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.kds .col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kds .tk { background: #1f2937; border-radius: 10px; padding: 10px; border-top: 4px solid var(--brand-2); }
.kds .tk.p { border-top-color: #3b82f6; }
.kds .tk b { font-size: .95rem; }
.kds .tk div { opacity: .85; }
.kds .new { position: absolute; top: -12px; right: 16px; background: var(--ok); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
@media (max-width: 900px) { .mock { display: none; } }

section.block { padding: 70px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.sec-title p { color: var(--muted); font-size: 1.05rem; }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.feat .ic { font-size: 1.6rem; margin-bottom: 8px; }
.feat h3 { font-size: 1.02rem; }
.feat p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.prod.on { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.prod .ic { font-size: 2rem; }
.prod h3 { margin-top: 10px; }
.prod p { color: var(--muted); font-size: .95rem; }
.prod .badge { position: absolute; top: 18px; right: 18px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

.plan { max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--brand); border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 50px rgba(234, 88, 12, .12); }
.plan .price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding: 7px 0 7px 30px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: #334155; margin: 10px 0 0; }

.cta-band { background: var(--navy); color: #fff; border-radius: 22px; padding: 44px; display: flex; gap: 20px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; opacity: .8; }

footer.site { padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth .card { width: 100%; max-width: 440px; padding: 30px; }

/* ─── Painel ───────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cbd5e1; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex;
  flex-direction: column; }
.side .logo { color: #fff !important; padding: 4px 8px 18px; }
.side .rest { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px; margin-bottom: 14px; font-size: .85rem; }
.side .rest b { color: #fff; display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a.nav { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 500;
  text-decoration: none; margin-bottom: 2px; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nav.on { background: var(--brand); color: #fff; }
.side .ic { width: 20px; text-align: center; }
.side .bottom { margin-top: auto; }
.main { padding: 28px 32px 60px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.main-head h1 { margin: 0; font-size: 1.6rem; }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .mobile-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff;
    position: sticky; top: 0; z-index: 40; }
  .mobile-bar button { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
  .main { padding: 20px 16px 60px; }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink);
  text-decoration: none; display: flex; gap: 14px; align-items: center; transition: .15s; }
.quick a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.quick .ic { font-size: 1.6rem; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.quick b { display: block; }
.quick span { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr; } }

.cat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.cat-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.prod-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.prod-row:last-child { border-bottom: 0; }
.prod-row.off { opacity: .55; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center;
  font-size: 1.6rem; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-row .info { flex: 1; min-width: 0; }
.prod-row .info b { display: block; }
.prod-row .info span { color: var(--muted); font-size: .86rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-row .pr { font-weight: 700; min-width: 90px; text-align: right; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 34px; height: 34px; cursor: pointer;
  display: inline-grid; place-items: center; font-size: .95rem; color: var(--ink); }
.icon-btn:hover { background: #f1f3f8; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(18px); }
@media (max-width: 640px) { .prod-row { flex-wrap: wrap; } .prod-row .pr { text-align: left; min-width: 0; } }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tcard { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: .15s;
  position: relative; }
.tcard:hover { box-shadow: var(--shadow); }
.tcard .num { font-size: 1.5rem; font-weight: 800; }
.tcard .st { font-size: .85rem; color: var(--muted); }
.tcard .tot { font-weight: 700; margin-top: 6px; }
.tcard.busy { border-color: var(--brand); background: #fffaf6; }
.tcard.call { border-color: var(--bad); animation: pulse 1.2s infinite; }
.tcard .bell { position: absolute; top: 10px; right: 10px; font-size: .75rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .15); } }

.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100; display: none; align-items: flex-start;
  justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 1.3rem; }
.x { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 200; transition: transform .25s; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }

.bill-line { display: flex; justify-content: space-between; padding: 6px 0; }
.bill-line.total { font-weight: 800; font-size: 1.15rem; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.order-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.order-block .oh { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; font-size: .9rem; }
.order-block .oi { font-size: .9rem; display: flex; justify-content: space-between; }
.order-block .oi small { color: var(--muted); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: ui-monospace, monospace; font-size: .85rem; }
.pix-box { text-align: center; }
.pix-box img { width: 230px; height: 230px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.banner { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 14px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; font-weight: 500; }
.banner.warn { background: var(--warn-soft); color: #78350f; border: 1px solid #fde3a7; }
.banner.bad { background: var(--bad-soft); color: #7f1d1d; border: 1px solid #f7c6c6; }
.banner.info { background: #eef4ff; color: #1e3a8a; border: 1px solid #d3e0ff; }
