:root {
  --brand: #8e4b3f;
  --brand-strong: color-mix(in srgb, var(--brand) 82%, black);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --bg: #f7f4f0;
  --surface: #fffdfb;
  --surface-2: #f2eee9;
  --text: #272321;
  --muted: #746d68;
  --line: rgba(55, 46, 41, .11);
  --shadow: 0 20px 50px rgba(48, 37, 31, .10);
  --shadow-soft: 0 10px 30px rgba(48, 37, 31, .07);
  --danger: #b34646;
  --success: #34765c;
  --warning: #a66f22;
  --radius: 24px;
  --radius-sm: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151413;
  --surface: #201e1c;
  --surface-2: #292622;
  --text: #f5f0eb;
  --muted: #b8afa8;
  --line: rgba(255,255,255,.10);
  --shadow: 0 22px 55px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 22px; height: 22px; flex: 0 0 auto; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.025em; }
.page { min-height: 100vh; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.muted, p { color: var(--muted); line-height: 1.65; }
.boot { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.loader { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { height: 72px; display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; }
.topbar-side { display: flex; align-items: center; gap: 8px; }
.topbar-side.end { justify-content: flex-end; }
.topbar-title { min-width: 0; text-align: center; display: grid; gap: 2px; }
.topbar-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.topbar-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface); cursor: pointer; transition: .2s ease; box-shadow: 0 5px 16px rgba(0,0,0,.03); }
.icon-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.cart-icon { position: relative; }
.cart-icon span { position: absolute; right: -4px; top: -5px; min-width: 19px; height: 19px; border-radius: 999px; padding: 0 5px; display: grid; place-items: center; background: var(--brand); color: white; font-size: .68rem; font-weight: 800; }
.btn { min-height: 46px; border: 1px solid transparent; border-radius: 14px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; cursor: pointer; transition: .2s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: white; box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn.soft { background: var(--brand-soft); color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 18%, transparent); }
:root[data-theme="dark"] .btn.soft { color: color-mix(in srgb, var(--brand) 45%, white); }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.danger-soft { background: color-mix(in srgb, var(--danger) 11%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.btn.small { min-height: 38px; padding: 0 13px; font-size: .86rem; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.text-back { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }

/* Central de projetos */
.hub-page { padding: 72px 0 90px; }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 38px; align-items: end; margin-bottom: 42px; }
.hub-intro h1 { max-width: 760px; margin: 10px 0 14px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; }
.hub-intro p { max-width: 720px; font-size: 1.05rem; }
.hub-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.project-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 20px; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-soft); }
.project-card.featured { grid-row: span 2; }
.project-cover { height: 290px; position: relative; overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-cover img { transform: scale(1.035); }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.36)); }
.project-cover .status-pill { position: absolute; z-index: 2; top: 18px; right: 18px; }
.project-body { padding: 28px; }
.project-body h2 { margin: 8px 0 10px; font-size: 1.65rem; }
.project-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); margin-bottom: 18px; }
.project-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.muted-card { display: flex; flex-direction: column; }
.placeholder-art { min-height: 150px; display: grid; place-items: center; background: radial-gradient(circle at top right, var(--brand-soft), transparent 55%), var(--surface-2); color: var(--brand); }
.placeholder-art svg { width: 48px; height: 48px; opacity: .75; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .73rem; font-weight: 800; }
.status-pill.success { background: color-mix(in srgb, var(--success) 13%, var(--surface)); color: var(--success); }
.status-pill.danger { background: color-mix(in srgb, var(--danger) 13%, var(--surface)); color: var(--danger); }
.status-pill.warning { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); }
.architecture-card { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.architecture-card > div:first-child { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: var(--brand); background: var(--brand-soft); }
.architecture-card h3 { margin-bottom: 6px; }
.architecture-card p { margin-bottom: 0; }

/* Login */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 12% 12%, var(--brand-soft), transparent 34%), radial-gradient(circle at 90% 88%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 38%), var(--bg); }
.auth-shell { width: min(1080px, 100%); min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: 0 28px 80px rgba(38,29,25,.16); }
.auth-visual { min-width: 0; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; color: white; overflow: hidden; }
.auth-visual-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.auth-visual-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,12,10,.18), rgba(16,12,10,.36) 46%, rgba(16,12,10,.90)); }
.auth-visual-top { display: flex; justify-content: flex-start; }
.auth-security-pill { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(25,20,18,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .8rem; font-weight: 800; }
.auth-security-pill svg { width: 17px; height: 17px; }
.auth-visual-copy { max-width: 520px; margin-top: auto; }
.auth-visual-copy .eyebrow { color: rgba(255,255,255,.76); }
.auth-visual-copy h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; }
.auth-visual-copy p { max-width: 470px; margin-bottom: 23px; color: rgba(255,255,255,.78); line-height: 1.55; }
.auth-photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.auth-photo-strip img { width: 100%; height: 82px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; object-fit: cover; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.auth-card { width: 100%; padding: 38px 42px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.auth-card h1 { margin: 28px 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.auth-card > p { margin-bottom: 20px; }
.auth-brand-row { display: flex; align-items: center; gap: 13px; margin-top: 30px; }
.auth-brand-row > div:last-child { display: grid; gap: 3px; }
.auth-brand-row > div:last-child > strong { font-size: 1.03rem; }
.brand-mark { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--brand); color: white; font-weight: 900; letter-spacing: -.05em; box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 24%, transparent); }
.brand-mark.small { width: 44px; height: 44px; border-radius: 14px; }
.floating-theme { position: fixed; z-index: 5; right: 22px; top: 22px; }
.login-scope { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.login-scope > svg { width: 21px; color: var(--brand); justify-self: center; }
.login-scope div { display: grid; gap: 2px; min-width: 0; }
.login-scope small { color: var(--muted); }
.login-scope strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.auth-form { gap: 15px; }
.auth-form input { min-height: 50px; background: var(--bg); }
.password-field { position: relative; }
.password-field input { padding-right: 82px; }
.password-field button { position: absolute; right: 6px; top: 6px; bottom: 6px; min-width: 68px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--brand); font-size: .78rem; font-weight: 800; cursor: pointer; }
.auth-submit { min-height: 52px; margin-top: 2px; }
.demo-access { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.demo-access summary { cursor: pointer; font-weight: 750; }
.demo-access p { margin: 10px 0 0; font-size: .84rem; }

/* Formulários */
.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--text); font-size: .88rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--text); padding: 13px 14px; outline: none; transition: .2s ease; }
input:focus, textarea:focus, select:focus { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 100px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.switch-line { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.switch-line input { width: 20px; height: 20px; accent-color: var(--brand); }
.option-editor > span { display: flex; justify-content: space-between; align-items: center; }
.option-editor small { color: var(--muted); font-weight: 500; }
.option-editor textarea { min-height: 125px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Admin geral */
.admin-main { padding: 44px 0 100px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading.compact { align-items: center; }
.admin-heading h1 { margin: 7px 0 6px; font-size: clamp(2rem, 4vw, 3.3rem); }
.admin-heading p { margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 45px; height: 45px; border-radius: 15px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.stat-card small { display: block; color: var(--muted); margin-bottom: 4px; }
.stat-card strong { font-size: 1.35rem; }
.panel-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-head h2 { margin: 0 0 4px; }
.panel-head p { margin: 0; }
.search-box { width: min(320px, 100%); position: relative; display: block; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 43px; }
.client-list { display: grid; gap: 12px; }
.client-row { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.client-avatar { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--client-color); color: white; font-weight: 900; }
.client-main h3 { margin: 0; }
.client-main p { margin: 4px 0 8px; }
.row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-metrics span { padding: 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.client-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Loja pública */
.store-page { padding-bottom: 100px; }
.store-hero { position: relative; }
.hero-image { height: min(470px, 58vh); position: relative; overflow: hidden; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.72)); }
.hero-content { position: absolute; left: max(24px, calc((100% - 1148px) / 2)); bottom: 46px; width: min(680px, calc(100% - 48px)); color: white; }
.hero-content h1 { margin: 12px 0 8px; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: 1; }
.hero-content p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 0; }
.open-badge { display: inline-flex; min-height: 31px; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(62,157,110,.92); color: white; font-size: .78rem; font-weight: 800; }
.open-badge.closed { background: rgba(177,66,66,.92); }
.quick-info { margin-top: -25px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.quick-info span { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; border-right: 1px solid var(--line); }
.quick-info span:last-child { border-right: 0; }
.quick-info svg { color: var(--brand); }
.category-section { padding-top: 58px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-title h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.category-card { position: relative; min-height: 270px; padding: 0; border: 0; border-radius: 25px; overflow: hidden; text-align: left; cursor: pointer; background: #333; box-shadow: var(--shadow-soft); }
.category-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.category-card:hover > img { transform: scale(1.045); }
.category-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.8)); }
.category-card > div { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: white; }
.category-card h3 { margin-bottom: 5px; font-size: 1.45rem; }
.category-card p { margin-bottom: 12px; color: rgba(255,255,255,.74); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-card div > span { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 800; }
.category-card div > span svg { width: 17px; }
.category-page, .inner-page { padding: 38px 0 90px; }
.category-banner { margin: 24px 0 26px; border-radius: 27px; overflow: hidden; min-height: 230px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; background: var(--surface); border: 1px solid var(--line); }
.category-banner img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.category-banner > div { padding: 34px; align-self: center; }
.category-banner h1 { margin: 8px 0; font-size: 2.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: var(--shadow-soft); }
.product-card > img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.product-body { min-height: 230px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.product-body h3 { margin-bottom: 6px; font-size: 1.25rem; }
.product-body p { margin-bottom: 8px; font-size: .9rem; line-height: 1.5; }
.product-body small { color: var(--brand); font-weight: 750; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.round-add { width: 44px; height: 44px; border: 0; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: white; cursor: pointer; }
.floating-cart { position: fixed; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 30px)); min-height: 58px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--brand); color: white; box-shadow: 0 18px 45px color-mix(in srgb, var(--brand) 35%, transparent); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.floating-cart span { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.page-heading { max-width: 700px; margin-bottom: 26px; }
.page-heading h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.6rem); }
.info-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--surface-2); border-radius: 14px; margin-bottom: 14px; }
.mode-tabs button { min-height: 42px; border: 0; background: transparent; border-radius: 11px; font-weight: 800; cursor: pointer; }
.mode-tabs button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-soft); }
.schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row span { color: var(--muted); }
.info-list { display: grid; gap: 4px; }
.info-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list > div > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.info-list small { display: block; color: var(--muted); margin-bottom: 3px; }
.profile-form { max-width: 850px; }
.customer-order-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.customer-order-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }
.order-top { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.order-top h3 { margin: 5px 0 0; }
.order-date { font-size: .85rem; }
.mini-items { display: grid; gap: 8px; margin: 16px 0; }
.mini-items > div { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.mini-items img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.mini-items span { font-size: .88rem; }
.order-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.waiting-note, .cancel-note { margin-top: 14px; border-radius: 13px; padding: 12px; display: flex; gap: 9px; align-items: center; background: color-mix(in srgb, var(--warning) 11%, transparent); color: var(--warning); font-size: .86rem; font-weight: 750; }
.cancel-note { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

/* Modais e drawer */
#overlay:empty { display: none; }
.overlay-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(17,14,12,.48); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fade .2s ease; }
.modal { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 30px); overflow: auto; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.25); padding: 25px; animation: pop .25s ease; }
.modal.wide { width: min(840px, calc(100% - 28px)); }
.modal.product-modal { padding: 0; width: min(640px, calc(100% - 24px)); }
.modal.drawer { left: 0; top: 0; transform: none; height: 100%; max-height: none; width: min(390px, 88vw); border-radius: 0 24px 24px 0; padding: 22px; display: flex; flex-direction: column; animation: drawerIn .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%,-47%) scale(.98); } }
@keyframes drawerIn { from { transform: translateX(-100%); } }
.modal-head, .drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-head h2 { margin: 5px 0 4px; }
.modal-head p { margin: 0; }
.drawer-head { align-items: center; }
.drawer-head > div:not(.store-mini) { display: grid; }
.drawer-head small { color: var(--muted); }
.drawer-nav { display: grid; gap: 7px; margin-top: 12px; }
.drawer-nav button { min-height: 50px; border: 0; border-radius: 15px; padding: 0 14px; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 750; cursor: pointer; }
.drawer-nav button:hover, .drawer-nav button.active { background: var(--brand-soft); color: var(--brand); }
.drawer-nav em { margin-left: auto; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: white; font-style: normal; font-size: .72rem; }
.drawer-footer { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.user-chip, .store-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-chip > span, .store-mini > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.store-mini > span { color: white; font-weight: 900; }
.user-chip div, .store-mini div { min-width: 0; display: grid; }
.user-chip strong, .user-chip small, .store-mini strong, .store-mini small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small, .store-mini small { color: var(--muted); }
.product-modal-image { height: 280px; position: relative; }
.product-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.floating-close { position: absolute; right: 15px; top: 15px; background: rgba(255,255,255,.88); color: #222; }
.product-modal-body { padding: 25px; }
.product-modal-body h2 { margin: 7px 0; font-size: 1.8rem; }
.option-group { border: 0; padding: 0; margin: 22px 0; }
.option-group legend { font-weight: 850; margin-bottom: 9px; }
.option-line { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.option-line > span { display: flex; align-items: center; gap: 10px; }
.option-line input { width: 20px; height: 20px; accent-color: var(--brand); }
.option-line strong { font-size: .82rem; color: var(--muted); }
.note-label { margin: 18px 0; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
.stepper { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 13px; background: var(--surface-2); }
.stepper button, .cart-controls button { width: 35px; height: 35px; border: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface); cursor: pointer; }
.stepper svg, .cart-controls svg { width: 17px; }
.empty-state { text-align: center; padding: 36px 22px; }
.empty-orbit { width: 82px; height: 82px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.empty-orbit svg { width: 34px; height: 34px; }
.empty-orbit.animated { animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-7px) rotate(-2deg); } }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 13px; align-items: center; padding: 12px; border-radius: 17px; background: var(--surface-2); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.cart-item h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-item p { margin: 0 0 5px; font-size: .78rem; line-height: 1.4; }
.cart-controls { display: flex; align-items: center; gap: 4px; }
.cart-controls .remove { color: var(--danger); margin-left: 3px; }
.cart-summary { display: flex; justify-content: space-between; margin: 20px 0 14px; padding-top: 17px; border-top: 1px solid var(--line); }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border-radius: 14px; background: var(--surface-2); }
.segment label { display: block; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { min-height: 44px; display: grid; place-items: center; border-radius: 11px; cursor: pointer; }
.segment input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-soft); }
.checkout-totals { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.checkout-totals > div { display: flex; justify-content: space-between; }
.checkout-totals .grand { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.success-modal { text-align: center; }
.success-check { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--success); }
.success-check svg { width: 34px; height: 34px; }
.success-modal h2 { margin: 8px 0; }
.waiting-card { margin: 22px 0; padding: 15px; border-radius: 16px; display: flex; align-items: center; gap: 12px; text-align: left; background: color-mix(in srgb, var(--warning) 10%, transparent); color: var(--warning); }
.waiting-card div { display: grid; }
.waiting-card small { margin-top: 3px; color: color-mix(in srgb, var(--warning) 72%, var(--muted)); }

/* Admin do estabelecimento */
.tenant-admin { padding-bottom: 78px; }
.admin-mobile-nav { display: none; }
.order-board { display: grid; gap: 17px; }
.admin-order-card { padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.admin-order-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; }
.admin-order-card.priority-urgent::before { background: var(--danger); }
.admin-order-card.priority-attention::before { background: var(--warning); }
.admin-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-order-head h2 { margin: 5px 0 3px; }
.admin-order-head p { margin: 0; font-size: .85rem; }
.order-status-stack { text-align: right; display: grid; justify-items: end; gap: 6px; }
.order-status-stack small { color: var(--muted); }
.queue-badge { color: var(--brand) !important; font-weight: 850; }
.admin-order-items { display: grid; gap: 8px; margin: 20px 0; }
.admin-order-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 15px; background: var(--surface-2); }
.admin-order-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 13px; }
.admin-order-item div { display: grid; gap: 3px; }
.admin-order-item small { color: var(--muted); }
.admin-order-item em { color: var(--brand); font-size: .78rem; }
.order-details-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.order-details-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.order-details-grid small { display: block; color: var(--muted); margin-bottom: 4px; }
.order-details-grid strong { font-size: .86rem; overflow-wrap: anywhere; }
.order-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.admin-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.admin-product-card > img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.admin-product-card > div { padding: 17px; }
.admin-product-card h3 { margin: 7px 0 5px; }
.admin-product-card p { font-size: .84rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 10%, transparent); }
.option-chips { display: flex; gap: 5px; flex-wrap: wrap; min-height: 28px; }
.option-chips span { padding: 5px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.product-admin-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.category-admin-list { display: grid; gap: 11px; }
.category-admin-list article { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 11px; border-radius: 17px; background: var(--surface-2); }
.category-admin-list img { width: 88px; height: 70px; border-radius: 13px; object-fit: cover; }
.category-admin-list h3 { margin: 0 0 3px; }
.category-admin-list p { margin: 0 0 3px; font-size: .83rem; line-height: 1.35; }
.category-admin-list small { color: var(--brand); font-weight: 750; }
.detail-stack { display: grid; gap: 20px; }
.detail-stack section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-stack section:last-child { border-bottom: 0; }
.detail-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 11px; align-items: center; margin-bottom: 10px; }
.detail-item img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; }
.detail-item p { margin: 3px 0 0; font-size: .8rem; }
.detail-total { display: flex; justify-content: space-between; padding: 7px 0; }
.detail-total.grand { margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 1.1rem; }

/* Bloqueio */
.blocked-page { min-height: 100vh; }
.blocked-card { width: min(620px, calc(100% - 30px)); min-height: calc(100vh - 110px); margin: 30px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.blocked-icon { width: 84px; height: 84px; margin-bottom: 22px; border-radius: 28px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.blocked-icon svg { width: 38px; height: 38px; }
.blocked-card h1 { margin: 8px 0; font-size: 2.25rem; }
.blocked-card small { color: var(--muted); margin-bottom: 24px; }
.error-card { width: min(500px,100%); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 30px; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 30px); padding: 13px 18px; border-radius: 13px; background: #25211f; color: white; box-shadow: var(--shadow); transition: .25s ease; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: 1 / -1; grid-row: auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid, .product-grid, .admin-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-details-grid { grid-template-columns: repeat(2,1fr); }
  .customer-order-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 1180px); }
  .topbar-inner { height: 64px; grid-template-columns: 78px 1fr 78px; }
  .icon-btn { width: 41px; height: 41px; border-radius: 13px; }
  .topbar-side { gap: 5px; }
  .topbar-title strong { font-size: .93rem; }
  .topbar-title small { font-size: .72rem; }
  .hub-page { padding: 38px 0 72px; }
  .hub-intro { grid-template-columns: 1fr; gap: 18px; }
  .hub-intro h1 { font-size: 2.35rem; }
  .hub-actions { justify-content: stretch; }
  .hub-actions .btn { flex: 1 1 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .project-cover { height: 225px; }
  .project-body { padding: 22px; }
  .architecture-card { grid-template-columns: 1fr; }
  .auth-page { padding: 14px; align-items: start; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 26px; }
  .auth-visual { min-height: 260px; padding: 20px; }
  .auth-visual-copy h2 { max-width: 520px; font-size: 2rem; }
  .auth-visual-copy p { display: none; }
  .auth-photo-strip { display: none; }
  .auth-card { padding: 25px 22px 28px; }
  .auth-card h1 { margin-top: 24px; font-size: 2.15rem; }
  .auth-brand-row { margin-top: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 100%; }
  .admin-main { padding: 26px 0 95px; }
  .admin-heading, .admin-heading.compact { align-items: stretch; flex-direction: column; gap: 14px; }
  .admin-heading h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 1.08rem; }
  .panel-card { padding: 17px; border-radius: 20px; }
  .panel-head { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .client-row { grid-template-columns: 46px minmax(0,1fr); align-items: start; }
  .client-avatar { width: 46px; height: 46px; border-radius: 14px; }
  .client-actions { grid-column: 1 / -1; justify-content: stretch; }
  .client-actions .btn { flex: 1; }
  .hero-image { height: 430px; }
  .hero-content { left: 20px; bottom: 38px; width: calc(100% - 40px); }
  .hero-content h1 { font-size: 2.7rem; }
  .hero-content p { font-size: .92rem; }
  .quick-info { grid-template-columns: 1fr; margin-top: -20px; }
  .quick-info span { min-height: 50px; border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; padding: 0 18px; }
  .quick-info span:last-child { border-bottom: 0; }
  .category-section { padding-top: 38px; }
  .category-grid, .product-grid, .admin-product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 225px; }
  .category-page, .inner-page { padding-top: 24px; }
  .category-banner { grid-template-columns: 1fr; }
  .category-banner img { height: 170px; min-height: 170px; }
  .category-banner > div { padding: 22px; }
  .category-banner h1 { font-size: 2rem; }
  .product-card { display: grid; grid-template-columns: 118px 1fr; }
  .product-card > img { width: 118px; height: 100%; aspect-ratio: auto; }
  .product-body { min-height: 185px; padding: 16px; }
  .product-body h3 { font-size: 1.08rem; }
  .product-body p { font-size: .82rem; }
  .product-foot { align-items: end; }
  .product-foot strong { font-size: .82rem; }
  .info-layout { grid-template-columns: 1fr; }
  .floating-cart { bottom: 14px; }
  .modal { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 20px; animation: sheet .25s ease; }
  .modal.wide, .modal.product-modal { width: 100%; }
  @keyframes sheet { from { transform: translate(-50%,100%); } }
  .modal.drawer { top: 0; bottom: auto; transform: none; width: min(365px, 89vw); max-height: none; border-radius: 0 22px 22px 0; animation: drawerIn .25s ease; }
  .product-modal-image { height: 230px; }
  .product-modal-body { padding: 20px; }
  .cart-item { grid-template-columns: 58px 1fr; }
  .cart-item img { width: 58px; height: 58px; }
  .cart-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .admin-order-card { padding: 17px; }
  .admin-order-head { flex-direction: column; }
  .order-status-stack { text-align: left; justify-items: start; }
  .admin-order-item { grid-template-columns: 50px 1fr auto; }
  .admin-order-item img { width: 50px; height: 50px; }
  .order-details-grid { grid-template-columns: 1fr; }
  .order-actions { justify-content: stretch; }
  .order-actions .btn { flex: 1 1 100%; }
  .tenant-admin { padding-bottom: 95px; }
  .admin-mobile-nav { position: fixed; z-index: 35; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); height: 67px; padding: 5px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4,1fr); }
  .admin-mobile-nav button { border: 0; border-radius: 15px; background: transparent; color: var(--muted); display: grid; justify-items: center; align-content: center; gap: 2px; font-size: .68rem; font-weight: 750; }
  .admin-mobile-nav button svg { width: 20px; }
  .admin-mobile-nav button.active { background: var(--brand-soft); color: var(--brand); }
  .category-admin-list article { grid-template-columns: 70px 1fr auto; }
  .category-admin-list img { width: 70px; height: 62px; }
  .blocked-card { min-height: calc(100vh - 90px); padding: 26px; }
  .blocked-card h1 { font-size: 1.85rem; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .project-buttons { display: grid; }
  .product-card { grid-template-columns: 105px 1fr; }
  .product-card > img { width: 105px; }
  .product-body { padding: 14px; }
  .mini-metrics span:nth-child(n+3) { display: none; }
  .admin-order-item { grid-template-columns: 46px 1fr; }
  .admin-order-item > span { grid-column: 2; }
}

.demo-login-buttons{display:grid;gap:10px;margin-top:14px}.demo-login-buttons .btn{justify-content:center}

/* V6.2 — editor visual e cardápio premium */
.quick-info span { padding: 11px 16px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; justify-content: center; }
.quick-info span svg { grid-row: 1 / 3; }
.quick-info span b { font-size: .92rem; }
.quick-info span small { color: var(--muted); font-size: .7rem; font-weight: 650; }
.menu-discovery { padding-top: 52px; }
.menu-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.menu-intro h2 { margin: 7px 0 3px; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.menu-intro p { margin: 0; }
.delivery-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--success) 20%, var(--line)); border-radius: 999px; color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--surface)); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.delivery-chip svg { width: 18px; }
.menu-search { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 14px 0 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-soft); }
.menu-search > svg { color: var(--brand); }
.menu-search input { border: 0; padding: 0; background: transparent; box-shadow: none !important; font-size: .98rem; }
.menu-search button { width: 36px; height: 36px; border: 0; border-radius: 11px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); cursor: pointer; opacity: 0; pointer-events: none; transform: scale(.9); transition: .18s ease; }
.menu-search button.visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.menu-search button svg { width: 17px; }
.menu-search-results { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.search-result-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 12px; }
.search-result-head small { color: var(--muted); }
.menu-result-item { width: 100%; display: grid; grid-template-columns: 60px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.menu-result-item img { width: 60px; height: 52px; border-radius: 13px; object-fit: cover; }
.menu-result-item > span { min-width: 0; display: grid; gap: 2px; }
.menu-result-item > span strong, .menu-result-item > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-result-item > span small { color: var(--muted); font-weight: 500; }
.menu-result-item > b { color: var(--brand); font-size: .86rem; }
.menu-result-item > svg { width: 18px; color: var(--muted); }
.search-no-result { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); }
.search-no-result div { display: grid; gap: 3px; }
.search-no-result small { color: var(--muted); }
.category-section { padding-top: 42px; }
.section-title small { color: var(--muted); font-weight: 650; }
.category-card { min-height: 245px; border: 1px solid rgba(255,255,255,.08); }
.category-card[hidden] { display: none; }
.category-card .category-gradient { background: linear-gradient(180deg, rgba(0,0,0,.03) 16%, rgba(0,0,0,.78) 100%); }
.category-card > div { left: 20px; right: 20px; bottom: 18px; }
.category-card .category-kicker { margin-bottom: 7px; color: rgba(255,255,255,.7); font-size: .64rem; letter-spacing: .13em; }
.category-card .category-action { width: fit-content; min-height: 31px; padding: 0 10px; border-radius: 999px; color: #202020; background: rgba(255,255,255,.92); }
.category-card h3 { font-size: 1.55rem; }
.category-empty { text-align: center; padding: 28px; }
.featured-section { padding-top: 62px; }
.featured-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: 2px 2px 18px; scrollbar-width: thin; }
.featured-product { position: relative; min-height: 132px; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); text-align: left; cursor: pointer; scroll-snap-align: start; }
.featured-product > img { width: 112px; height: 108px; border-radius: 15px; object-fit: cover; }
.featured-product > div { min-width: 0; display: grid; gap: 4px; }
.featured-product h3 { margin: 0; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-product small { color: var(--muted); }
.featured-product strong { margin-top: 5px; color: var(--brand); font-size: .85rem; }
.featured-add { position: absolute; right: 11px; bottom: 11px; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--brand); }
.featured-add svg { width: 17px; }
.trust-strip { margin-top: 58px; margin-bottom: 80px; padding: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.trust-strip > div { display: flex; align-items: center; gap: 12px; padding: 7px; }
.trust-strip > div > svg { color: var(--brand); }
.trust-strip span { display: grid; gap: 2px; }
.trust-strip small { color: var(--muted); font-size: .75rem; }

/* Editor visual de produto */
.modal.product-admin-modal { width: min(980px, calc(100% - 28px)); padding: 25px; }
.product-editor-head { position: sticky; top: -25px; z-index: 5; margin: -25px -25px 20px; padding: 24px 25px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
.product-editor-form { display: grid; gap: 16px; }
.editor-section { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface-2); }
.editor-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.editor-section-head > div:nth-child(2) { min-width: 0; flex: 1; }
.editor-section-head h3 { margin: 1px 0 4px; }
.editor-section-head p { margin: 0; font-size: .82rem; line-height: 1.45; }
.editor-step { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: .8rem; font-weight: 900; }
.field-tip { align-self: end; min-height: 69px; display: grid; align-content: center; gap: 3px; padding: 11px 13px; border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.field-tip small { color: var(--muted); font-weight: 550; line-height: 1.35; }
.photo-picker-body { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.photo-picker-body img { width: 220px; height: 145px; border-radius: 17px; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.photo-picker-body > div { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.photo-picker-body small { flex-basis: 100%; color: var(--muted); font-weight: 500; }
.add-option-top { margin-left: auto; }
.add-option-mobile { display: none; }
.option-builder-list { display: grid; gap: 9px; }
.option-builder-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 190px 44px; gap: 10px; align-items: end; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.option-number { width: 30px; height: 44px; display: grid; place-items: center; color: var(--muted); font-size: .76rem; font-weight: 850; }
.option-builder-row label > span { font-size: .73rem; color: var(--muted); }
.currency-input { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); overflow: hidden; }
.currency-input:focus-within { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 0 0 4px var(--brand-soft); }
.currency-input b { padding-left: 12px; color: var(--muted); font-size: .78rem; }
.currency-input input { border: 0; box-shadow: none !important; padding-left: 8px; }
.remove-option { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.option-builder-empty { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.option-builder-empty > svg { width: 28px; height: 28px; padding: 5px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); }
.option-builder-empty div { display: grid; gap: 2px; }
.option-builder-empty small { color: var(--muted); font-weight: 500; }
.editor-availability > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-availability .switch-line { min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.editor-availability .switch-line > span { display: grid; gap: 2px; }
.editor-availability .switch-line small { color: var(--muted); font-weight: 500; }
.product-editor-actions { position: sticky; bottom: -25px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px -25px -25px; padding: 16px 25px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
.product-editor-actions > div { display: flex; gap: 9px; }
.admin-help-strip { margin: 18px 0 20px; padding: 13px; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; border-radius: 17px; background: var(--surface-2); }
.admin-help-strip > div { display: flex; gap: 9px; align-items: center; padding: 8px; }
.admin-help-strip svg { color: var(--brand); }
.admin-help-strip span { display: grid; gap: 2px; }
.admin-help-strip small { color: var(--muted); font-size: .72rem; }
.admin-product-image { position: relative; }
.admin-product-image img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.admin-product-image .status-pill { position: absolute; top: 11px; right: 11px; backdrop-filter: blur(10px); }
.featured-label { position: absolute; left: 11px; top: 11px; min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; color: white; background: var(--brand); font-size: .7rem; font-weight: 850; }
.admin-product-card > img { display: none; }
.product-option-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 13px; }
.product-option-summary span { padding: 8px 6px; border-radius: 11px; background: var(--surface); color: var(--muted); text-align: center; font-size: .69rem; }
.product-option-summary b { display: block; color: var(--text); font-size: .9rem; }
.product-admin-foot > div { display: grid; gap: 1px; }
.product-admin-foot small { color: var(--muted); font-size: .68rem; }
.product-admin-foot .btn svg { width: 16px; }

@media (max-width: 760px) {
  .menu-discovery { padding-top: 36px; }
  .menu-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .delivery-chip { min-height: 36px; }
  .menu-search { min-height: 54px; border-radius: 17px; }
  .menu-result-item { grid-template-columns: 52px minmax(0,1fr) auto; gap: 9px; }
  .menu-result-item img { width: 52px; height: 48px; }
  .menu-result-item > b { display: none; }
  .menu-result-item > svg { display: none; }
  .quick-info { grid-template-columns: repeat(3,1fr); margin-top: -18px; }
  .quick-info span { min-height: 76px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center; padding: 9px 5px; border-right: 1px solid var(--line); border-bottom: 0; gap: 2px; }
  .quick-info span svg { grid-row: auto; width: 18px; }
  .quick-info span b { font-size: .76rem; }
  .quick-info span small { font-size: .58rem; }
  .category-section { padding-top: 34px; }
  .section-title { align-items: flex-start; }
  .section-title h2 { font-size: 1.65rem; }
  .section-title > small { display: none; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .category-card { min-height: 172px; border-radius: 19px; }
  .category-card > div { left: 13px; right: 13px; bottom: 12px; }
  .category-card h3 { margin: 3px 0 7px; font-size: 1.05rem; }
  .category-card p { display: none; }
  .category-card .category-kicker { font-size: .54rem; margin-bottom: 2px; }
  .category-card .category-action { min-height: 27px; padding: 0 8px; font-size: .66rem; }
  .category-card .category-action svg { width: 14px; }
  .featured-section { padding-top: 45px; }
  .featured-scroll { grid-auto-columns: 86%; }
  .featured-product { grid-template-columns: 96px minmax(0,1fr); min-height: 119px; }
  .featured-product > img { width: 96px; height: 96px; }
  .trust-strip { grid-template-columns: 1fr; gap: 3px; margin-top: 42px; margin-bottom: 100px; }
  .trust-strip > div { border-bottom: 1px solid var(--line); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .modal.product-admin-modal { top: 0; bottom: auto; transform: translateX(-50%); width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 15px; animation: none; }
  .product-editor-head { top: -15px; margin: -15px -15px 14px; padding: calc(15px + env(safe-area-inset-top)) 15px 14px; }
  .product-editor-head h2 { font-size: 1.38rem; }
  .product-editor-head p { font-size: .78rem; line-height: 1.4; }
  .editor-section { padding: 15px; border-radius: 18px; }
  .editor-section-head { margin-bottom: 14px; }
  .editor-step { width: 31px; height: 31px; }
  .photo-picker-body { grid-template-columns: 1fr; }
  .photo-picker-body img { width: 100%; height: 190px; }
  .photo-picker-body > div .btn { flex: 1 1 100%; }
  .add-option-top { display: none; }
  .add-option-mobile { width: 100%; min-height: 45px; margin-top: 11px; border: 1px dashed color-mix(in srgb, var(--brand) 32%, var(--line)); border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand); background: var(--brand-soft); font-weight: 800; }
  .add-option-mobile svg { width: 19px; }
  .option-builder-row { grid-template-columns: 27px minmax(0,1fr) 42px; align-items: center; gap: 7px; padding: 10px; }
  .option-number { width: 25px; height: 36px; }
  .option-builder-row label { grid-column: 2 / 3; }
  .option-builder-row .option-price { margin-top: -2px; }
  .option-builder-row .remove-option { grid-column: 3; grid-row: 1 / 3; align-self: center; width: 39px; height: 39px; }
  .currency-input { width: min(180px, 100%); }
  .editor-availability > div { grid-template-columns: 1fr; }
  .product-editor-actions { bottom: -15px; margin: 0 -15px -15px; padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); }
  .product-editor-actions > span { display: none; }
  .product-editor-actions > div { width: 100%; }
  .product-editor-actions .btn { flex: 1; padding-inline: 10px; }
  .product-editor-actions > .danger-soft { position: absolute; left: 15px; bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 38px; font-size: .78rem; }
  .product-editor-actions:has(> .danger-soft) { margin-top: 46px; }
  .admin-help-strip { grid-template-columns: 1fr; }
  .admin-help-strip > div { border-bottom: 1px solid var(--line); }
  .admin-help-strip > div:last-child { border-bottom: 0; }
  .admin-product-grid { grid-template-columns: 1fr; }
  .product-option-summary { gap: 5px; }
}

/* V6.3 — acessos isolados e cadastro de clientes */
.isolated-access-note { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: 40px 1fr; gap: 11px; align-items: center; border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); border-radius: 16px; background: var(--brand-soft); }
.isolated-access-note > svg { width: 22px; color: var(--brand); justify-self: center; }
.isolated-access-note div { display: grid; gap: 2px; }
.isolated-access-note small { color: var(--muted); line-height: 1.4; }
.customer-admin-panel .panel-head { align-items: flex-end; }
.customer-admin-grid { display: grid; gap: 11px; }
.customer-admin-card { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.customer-admin-card[hidden] { display: none; }
.customer-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: var(--brand); background: var(--brand-soft); font-weight: 900; }
.customer-admin-main { min-width: 0; }
.customer-admin-main h3 { margin: 0; }
.customer-admin-main > p { margin: 4px 0 8px; font-size: .82rem; }
.customer-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.customer-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .73rem; font-weight: 650; }
.customer-meta svg { width: 15px; color: var(--brand); }
.customer-history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.customer-history-row:last-child { border-bottom: 0; }
.customer-history-row div { display: grid; gap: 3px; }
.customer-history-row small { color: var(--muted); }

@media (max-width: 760px) {
  .customer-admin-panel .panel-head { align-items: stretch; }
  .customer-admin-panel .search-box { width: 100%; }
  .customer-admin-card { grid-template-columns: 46px minmax(0,1fr); padding: 13px; }
  .customer-avatar { width: 46px; height: 46px; border-radius: 15px; }
  .customer-admin-card > .btn { grid-column: 1 / -1; width: 100%; }
  .customer-meta { display: grid; gap: 5px; }
  .client-actions .btn { min-width: calc(50% - 5px); }
}

@media (max-width: 430px) {
  .auth-page { padding: 0; background: var(--surface); }
  .auth-shell { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .auth-visual { min-height: 220px; border-radius: 0 0 28px 28px; }
  .auth-visual-copy h2 { font-size: 1.72rem; }
  .auth-card { padding: 22px 18px 32px; }
  .floating-theme { top: 14px; right: 14px; }
  .login-scope { grid-template-columns: 36px 1fr; }
}

.access-delivery-list { display: grid; gap: 11px; margin: 18px 0; }
.access-delivery-list section { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.access-delivery-list section > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.access-delivery-list section > div { min-width: 0; display: grid; gap: 3px; }
.access-delivery-list small { color: var(--muted); }
.access-delivery-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
@media (max-width: 600px) {
  .access-delivery-list section { grid-template-columns: 40px minmax(0,1fr); }
  .access-delivery-list section .btn { grid-column: 1 / -1; width: 100%; }
}


/* Configurações da loja — V7.3 */
.settings-page { display: grid; gap: 18px; }
.settings-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--brand) 7%, var(--surface))); }
.settings-intro h2 { margin: 7px 0 7px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.settings-intro p { margin: 0; max-width: 740px; }
.settings-save-status { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 999px; color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 18%, var(--line)); font-size: .78rem; font-weight: 800; }
.settings-save-status svg { width: 17px; height: 17px; }
.settings-save-status.dirty { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 20%, var(--line)); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 18px; align-items: start; }
.settings-main { display: grid; gap: 18px; min-width: 0; }
.settings-side { display: grid; gap: 14px; position: sticky; top: 92px; min-width: 0; }
.settings-section { min-width: 0; }
.settings-section-head { display: flex; gap: 13px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.settings-section-head h3 { margin: 1px 0 4px; font-size: 1.1rem; }
.settings-section-head p { margin: 0; font-size: .84rem; line-height: 1.45; }
.settings-section-icon { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.settings-section-icon svg { width: 20px; height: 20px; }
.settings-section label > small { color: var(--muted); font-size: .72rem; font-weight: 550; line-height: 1.45; }
.inline-field-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.mini-action { min-height: 47px; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 13px; padding: 0 13px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; cursor: pointer; white-space: nowrap; }
.money-field, .unit-field { display: grid; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); overflow: hidden; transition: .2s ease; }
.money-field { grid-template-columns: auto 1fr; }
.unit-field { grid-template-columns: 1fr auto; }
.money-field:focus-within, .unit-field:focus-within { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 0 0 4px var(--brand-soft); }
.money-field > span, .unit-field > span { padding: 0 13px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.money-field input, .unit-field input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.availability-card { min-height: 76px; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.availability-card > input { position: absolute; opacity: 0; pointer-events: none; }
.availability-toggle { width: 48px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 28%, var(--surface)); position: relative; transition: .2s ease; }
.availability-toggle::after { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: .2s ease; }
.availability-card > input:checked + .availability-toggle { background: var(--success); }
.availability-card > input:checked + .availability-toggle::after { transform: translateX(20px); }
.availability-card > span:last-child { display: grid; gap: 3px; }
.availability-card small { color: var(--muted); font-weight: 550; }
.visual-settings { overflow: hidden; }
.brand-preview { --preview-color: var(--brand); overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--bg); margin-bottom: 21px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--preview-color) 3%, transparent); }
.brand-preview-cover { min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 18px; color: white; background: linear-gradient(135deg, var(--preview-color), color-mix(in srgb, var(--preview-color) 68%, #111827)); }
.brand-preview-cover > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; background: rgba(255,255,255,.16); font-weight: 900; }
.brand-preview-cover > div { display: grid; gap: 3px; min-width: 0; }
.brand-preview-cover strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-cover small { color: rgba(255,255,255,.78); }
.brand-preview-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 14px; }
.brand-preview-body i { display: block; height: 41px; border-radius: 10px; background: color-mix(in srgb, var(--preview-color) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--preview-color) 12%, var(--line)); }
.brand-preview-body button { grid-column: 1 / -1; min-height: 39px; border: 0; border-radius: 11px; background: var(--preview-color); color: white; font-size: .78rem; font-weight: 850; }
.color-picker-block { display: grid; gap: 13px; margin-bottom: 18px; }
.field-title { display: grid; gap: 3px; }
.field-title small { color: var(--muted); font-size: .75rem; }
.color-palette { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.color-choice { min-width: 0; display: grid; gap: 6px; place-items: center; padding: 8px 4px 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); cursor: pointer; transition: .18s ease; }
.color-choice > span { width: 31px; height: 31px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.23), 0 4px 10px rgba(0,0,0,.08); }
.color-choice small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .62rem; font-weight: 750; }
.color-choice:hover { transform: translateY(-1px); }
.color-choice.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.custom-color-control > div { min-height: 49px; display: grid; grid-template-columns: 54px 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); }
.custom-color-control input[type="color"] { width: 54px; height: 49px; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 5px; background: transparent; cursor: pointer; }
.custom-color-control output { padding: 0 13px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; font-weight: 800; }
.settings-sticky-save { padding: 14px; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); border-radius: 19px; background: color-mix(in srgb, var(--surface) 92%, var(--brand-soft)); box-shadow: var(--shadow-soft); }
.settings-sticky-save > div { display: grid; gap: 3px; margin-bottom: 12px; }
.settings-sticky-save small { color: var(--muted); font-size: .74rem; }
.settings-sticky-save .btn { width: 100%; }
.loader.mini { width: 17px; height: 17px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: white; }

@media (max-width: 980px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-side { position: static; }
  .visual-settings { order: 1; }
  .settings-sticky-save { position: sticky; bottom: 76px; z-index: 15; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .settings-sticky-save > div { margin: 0; }
  .settings-sticky-save .btn { width: auto; }
}

@media (max-width: 760px) {
  .settings-page { gap: 12px; }
  .settings-intro { align-items: stretch; flex-direction: column; gap: 14px; }
  .settings-save-status { align-self: flex-start; }
  .settings-layout, .settings-main { gap: 12px; }
  .settings-section-head { gap: 10px; }
  .settings-section-icon { width: 40px; height: 40px; }
  .inline-field-action { grid-template-columns: 1fr; }
  .mini-action { min-height: 42px; }
  .color-palette { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  .color-choice { padding-inline: 2px; }
  .color-choice > span { width: 28px; height: 28px; }
  .color-choice small { font-size: .56rem; }
  .brand-preview-cover { min-height: 94px; padding: 15px; }
  .settings-sticky-save { bottom: 68px; grid-template-columns: 1fr; padding: 11px; border-radius: 17px; }
  .settings-sticky-save > div { display: none; }
  .settings-sticky-save .btn { width: 100%; min-height: 50px; }
  .compact-fields { grid-template-columns: 1fr 1fr !important; }
  .compact-fields .span-2 { grid-column: 1 / -1 !important; }
}

@media (max-width: 420px) {
  .compact-fields { grid-template-columns: 1fr !important; }
  .compact-fields .span-2 { grid-column: auto !important; }
}


/* ==========================================================
   CONNECT SITES V8 — DELIVERY PREMIUM RESPONSIVO
   ========================================================== */
.store-pause-banner { background: color-mix(in srgb, var(--warning) 11%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--warning) 25%, var(--line)); }
.store-pause-banner .shell { min-height: 66px; display:flex; align-items:center; gap:12px; }
.store-pause-banner svg { width:22px; height:22px; color:var(--warning); flex:0 0 auto; }
.store-pause-banner div div { display:grid; gap:2px; }
.store-pause-banner small { color:var(--muted); }
.hero-cta-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.hero-cta { min-height:43px; display:inline-flex; align-items:center; gap:8px; padding:0 15px; border:0; border-radius:13px; color:var(--brand-strong); background:white; font-weight:850; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.12); }
.hero-cta svg { width:18px; height:18px; }
.hero-cta.glass { color:white; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.store-mobile-nav { display:none; }

.premium-admin { min-height:100vh; background:var(--bg); }
.admin-workspace { min-width:0; }
.admin-desktop-sidebar { display:none; }
.premium-heading { align-items:flex-end; }
.heading-actions { display:flex; flex-wrap:wrap; gap:9px; }
.operation-command { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px; margin-bottom:18px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--success) 5%,var(--surface))); box-shadow:var(--shadow-soft); }
.operation-command.paused { background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--warning) 8%,var(--surface))); }
.operation-main { display:flex; align-items:center; gap:15px; min-width:0; }
.operation-main h2 { margin:3px 0 5px; font-size:clamp(1.1rem,2vw,1.45rem); }
.operation-main p { margin:0; }
.operation-icon { width:52px; height:52px; flex:0 0 auto; display:grid; place-items:center; border-radius:17px; color:var(--success); background:color-mix(in srgb,var(--success) 12%,var(--surface)); }
.operation-command.paused .operation-icon { color:var(--warning); background:color-mix(in srgb,var(--warning) 12%,var(--surface)); }
.operation-icon svg { width:24px; height:24px; }
.stats-grid-premium { grid-template-columns:repeat(6,minmax(145px,1fr)); overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; }
.stats-grid-premium .stat-card { min-width:145px; scroll-snap-align:start; }
.dashboard-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; margin:18px 0; }
.analytics-card { min-width:0; }
.revenue-chart-card { grid-row:span 2; }
.mini-revenue-chart { height:245px; display:flex; align-items:flex-end; gap:8px; padding:20px 3px 0; border-top:1px solid var(--line); }
.chart-column { height:100%; flex:1; min-width:14px; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:8px; }
.chart-column span { width:100%; max-width:30px; min-height:4px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,var(--brand),color-mix(in srgb,var(--brand) 65%,#111827)); box-shadow:0 7px 16px var(--brand-soft); transition:.25s ease; }
.chart-column:hover span { filter:brightness(1.08); transform:translateY(-2px); }
.chart-column small { color:var(--muted); font-size:.65rem; }
.ranking-list { display:grid; gap:11px; }
.ranking-list > div { display:grid; grid-template-columns:auto 42px 1fr; align-items:center; gap:10px; padding:8px; border-radius:14px; background:var(--surface-2); }
.ranking-list img { width:42px; height:42px; border-radius:12px; object-fit:cover; }
.ranking-list div div { display:grid; gap:2px; min-width:0; }
.ranking-list strong,.ranking-list small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ranking-list small { color:var(--muted); }
.rank-number { width:25px; height:25px; display:grid; place-items:center; border-radius:9px; color:var(--brand-strong); background:var(--brand-soft); font-size:.73rem; font-weight:900; }
.metric-list { display:grid; gap:4px; }
.metric-list > div { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.metric-list > div:last-child { border:0; }
.peak-hours { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.peak-hours span { display:grid; gap:3px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.peak-hours small,.muted-copy { color:var(--muted); }

.order-control { margin-bottom:15px; padding:16px; }
.order-control-top { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; gap:10px; align-items:center; }
.order-search { width:100%; max-width:none; }
.order-filter-area { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.status-filter-chips { display:flex; flex-wrap:wrap; gap:7px; }
.status-filter-chips button { min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:var(--surface-2); font-weight:780; cursor:pointer; }
.status-filter-chips button.active { color:white; border-color:var(--brand); background:var(--brand); box-shadow:0 7px 18px var(--brand-soft); }
.compact-filter-selects { display:flex; gap:9px; }
.compact-filter-selects label { display:grid; gap:4px; color:var(--muted); font-size:.68rem; font-weight:800; }
.compact-filter-selects select { min-height:38px; padding-block:0; }
.order-results-line { display:flex; justify-content:space-between; gap:12px; margin-top:13px; color:var(--muted); font-size:.78rem; }
.mobile-filter-button { display:none; }
.premium-order-board { gap:14px; }
.premium-order-board .admin-order-card { position:relative; overflow:hidden; padding:0; border-radius:23px; box-shadow:0 12px 35px rgba(15,23,42,.07); }
.order-card-accent { height:4px; background:linear-gradient(90deg,var(--brand),color-mix(in srgb,var(--brand) 35%,transparent)); }
.premium-order-board .admin-order-head,.premium-order-board .admin-order-items,.premium-order-board .order-details-grid,.premium-order-board .order-actions,.premium-order-board .internal-note-preview { margin-left:18px; margin-right:18px; }
.premium-order-board .admin-order-head { margin-top:17px; }
.order-customer-block { display:flex; align-items:center; gap:12px; min-width:0; }
.order-main-photo { width:58px; height:58px; flex:0 0 auto; border-radius:16px; object-fit:cover; box-shadow:0 8px 20px rgba(0,0,0,.12); }
.compact-order-items .admin-order-item { padding-block:9px; }
.more-items { display:block; padding:7px 0; color:var(--muted); font-weight:750; }
.internal-note-preview { display:flex; gap:10px; padding:11px 13px; border-radius:14px; color:var(--brand-strong); background:var(--brand-soft); }
.internal-note-preview svg { width:19px; height:19px; flex:0 0 auto; }
.internal-note-preview span { display:grid; gap:2px; }
.internal-note-preview small { color:var(--muted); }
.premium-order-board .order-actions { padding-bottom:18px; }
.correction-warning { display:flex; gap:11px; padding:13px; border-radius:15px; color:var(--warning); background:color-mix(in srgb,var(--warning) 10%,var(--surface)); border:1px solid color-mix(in srgb,var(--warning) 20%,var(--line)); }
.correction-warning.safe { color:var(--success); background:color-mix(in srgb,var(--success) 9%,var(--surface)); border-color:color-mix(in srgb,var(--success) 18%,var(--line)); }
.correction-warning svg { width:20px; height:20px; flex:0 0 auto; }
.correction-warning span { display:grid; gap:3px; }
.correction-warning small { color:var(--muted); }
.order-detail-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr); gap:16px; }
.detail-side { display:grid; gap:14px; align-content:start; }
.detail-side > section,.detail-stack > section { padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--surface-2); }
.status-timeline { display:grid; gap:0; }
.timeline-row { position:relative; display:grid; grid-template-columns:32px 1fr; gap:10px; padding:8px 0; }
.timeline-row:not(:last-child)::after { content:""; position:absolute; left:15px; top:36px; bottom:-5px; width:2px; background:var(--line); }
.timeline-row > span { width:32px; height:32px; display:grid; place-items:center; border-radius:11px; color:var(--brand); background:var(--brand-soft); z-index:1; }
.timeline-row svg { width:16px; height:16px; }
.timeline-row div { display:grid; gap:2px; }
.timeline-row small,.timeline-row p { color:var(--muted); }
.timeline-row p { margin:3px 0 0; }
.detail-danger-zone { display:grid; gap:8px; }
.admin-mobile-nav em,.store-mobile-nav em { min-width:18px; height:18px; display:grid; place-items:center; border-radius:999px; color:white; background:var(--danger); font-size:.62rem; font-style:normal; }

@media (min-width: 1081px) {
  .premium-admin { display:grid; grid-template-columns:250px minmax(0,1fr); }
  .admin-desktop-sidebar { min-height:100vh; position:sticky; top:0; align-self:start; display:flex; flex-direction:column; gap:16px; padding:20px 16px; border-right:1px solid var(--line); background:color-mix(in srgb,var(--surface) 95%,var(--brand-soft)); }
  .admin-side-brand { display:flex; align-items:center; gap:10px; padding:5px 4px 16px; border-bottom:1px solid var(--line); }
  .admin-side-brand > span { width:43px; height:43px; display:grid; place-items:center; border-radius:14px; color:white; font-weight:900; }
  .admin-side-brand div { display:grid; gap:2px; min-width:0; }
  .admin-side-brand strong,.admin-side-brand small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .admin-side-brand small { color:var(--muted); }
  .admin-desktop-sidebar nav { display:grid; gap:5px; }
  .admin-desktop-sidebar nav button { min-height:45px; display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:10px; padding:0 12px; border:0; border-radius:13px; color:var(--muted); background:transparent; text-align:left; font-weight:800; cursor:pointer; }
  .admin-desktop-sidebar nav button svg { width:20px; height:20px; }
  .admin-desktop-sidebar nav button.active { color:var(--brand-strong); background:var(--brand-soft); }
  .admin-desktop-sidebar nav em { min-width:22px; height:22px; display:grid; place-items:center; border-radius:999px; color:white; background:var(--danger); font-size:.68rem; font-style:normal; }
  .admin-side-status { margin-top:auto; display:flex; gap:10px; padding:12px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
  .admin-side-status div { display:grid; gap:2px; }
  .admin-side-status small { color:var(--muted); }
  .live-dot { width:10px; height:10px; margin-top:4px; border-radius:50%; background:var(--success); box-shadow:0 0 0 5px color-mix(in srgb,var(--success) 12%,transparent); }
  .live-dot.paused { background:var(--warning); box-shadow:0 0 0 5px color-mix(in srgb,var(--warning) 12%,transparent); }
  .premium-admin .topbar .topbar-side:first-child { visibility:hidden; }
  .premium-admin .admin-main { max-width:1400px; }
}

@media (max-width: 1180px) {
  .stats-grid-premium { grid-template-columns:repeat(3,minmax(160px,1fr)); }
  .dashboard-grid { grid-template-columns:1fr 1fr; }
  .revenue-chart-card { grid-column:1/-1; grid-row:auto; }
}

@media (max-width: 800px) {
  .store-page { padding-bottom:78px; }
  .store-mobile-nav { position:fixed; left:max(10px,env(safe-area-inset-left)); right:max(10px,env(safe-area-inset-right)); bottom:max(8px,env(safe-area-inset-bottom)); z-index:35; display:grid; grid-template-columns:repeat(4,1fr); min-height:62px; padding:6px; border:1px solid color-mix(in srgb,var(--line) 78%,transparent); border-radius:20px; background:color-mix(in srgb,var(--surface) 88%,transparent); box-shadow:0 16px 50px rgba(15,23,42,.2); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
  .store-mobile-nav button { position:relative; min-width:0; display:grid; place-items:center; gap:2px; border:0; border-radius:14px; color:var(--muted); background:transparent; font-size:.64rem; font-weight:800; }
  .store-mobile-nav button.active { color:var(--brand-strong); background:var(--brand-soft); }
  .store-mobile-nav svg { width:21px; height:21px; }
  .store-mobile-nav em { position:absolute; top:2px; right:18%; }
  .floating-cart { bottom:84px; }
  .operation-command { align-items:stretch; flex-direction:column; padding:17px; }
  .operation-command .btn { width:100%; }
  .stats-grid-premium { display:flex; overflow-x:auto; gap:10px; margin-inline:-16px; padding-inline:16px; }
  .dashboard-grid { grid-template-columns:1fr; gap:12px; }
  .revenue-chart-card { grid-column:auto; }
  .mini-revenue-chart { height:200px; gap:5px; }
  .order-control-top { grid-template-columns:1fr auto; }
  .order-control-top [data-toggle-archived] { grid-column:1/-1; }
  .mobile-filter-button { display:inline-flex; }
  .order-filter-area { display:none; align-items:stretch; flex-direction:column; }
  .order-filter-area.open { display:flex; }
  .compact-filter-selects { display:grid; grid-template-columns:1fr 1fr; }
  .status-filter-chips { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
  .status-filter-chips button { white-space:nowrap; }
  .order-results-line { align-items:flex-start; flex-direction:column; }
  .premium-order-board .admin-order-head { align-items:flex-start; flex-direction:column; }
  .order-status-stack { align-items:flex-start; }
  .order-details-grid { grid-template-columns:1fr 1fr; }
  .premium-order-board .order-actions { display:grid; grid-template-columns:1fr 1fr; }
  .premium-order-board .order-actions .btn { width:100%; min-width:0; }
  .order-detail-layout { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .hero-cta-row { display:grid; grid-template-columns:1fr 1fr; }
  .hero-cta { justify-content:center; padding-inline:9px; font-size:.78rem; }
  .store-pause-banner .shell { min-height:76px; }
  .operation-main { align-items:flex-start; }
  .operation-icon { width:44px; height:44px; border-radius:14px; }
  .stats-grid-premium .stat-card { min-width:155px; }
  .peak-hours { grid-template-columns:1fr 1fr; }
  .order-control { padding:12px; }
  .order-control-top { grid-template-columns:1fr; }
  .order-control-top .btn { width:100%; }
  .compact-filter-selects { grid-template-columns:1fr; }
  .order-customer-block { align-items:flex-start; }
  .order-main-photo { width:50px; height:50px; border-radius:14px; }
  .premium-order-board .admin-order-head,.premium-order-board .admin-order-items,.premium-order-board .order-details-grid,.premium-order-board .order-actions,.premium-order-board .internal-note-preview { margin-left:13px; margin-right:13px; }
  .order-details-grid { grid-template-columns:1fr; }
  .premium-order-board .order-actions { grid-template-columns:1fr; }
  .order-card-accent { height:3px; }
  .ranking-list > div { grid-template-columns:auto 38px 1fr; }
}

/* V8.1 — credenciais, identidade visual e módulos de nicho */
.auth-forgot {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 750;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 999px;
}
.auth-forgot:hover, .auth-forgot:focus-visible { background: color-mix(in srgb, var(--brand) 10%, transparent); outline: none; }
.status-pill.warning { background: #fff7d6; color: #8a5b00; border-color: #f1d788; }
[data-theme="dark"] .status-pill.warning { background: rgba(245, 183, 49, .14); color: #ffd97b; border-color: rgba(245, 183, 49, .25); }

.media-settings { overflow: hidden; }
.brand-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-media-card {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 20px;
}
.brand-media-card > img { width: 132px; height: 96px; object-fit: cover; border-radius: 15px; box-shadow: var(--shadow-soft); }
.brand-media-card > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.brand-media-card strong, .brand-media-card small { width: 100%; }
.brand-media-card small { color: var(--muted); line-height: 1.45; }
.logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #111));
  color: white;
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker.compact { padding: 0; border: 0; background: transparent; }
.photo-picker.compact .photo-picker-body { padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }

@media (max-width: 760px) {
  .brand-media-grid { grid-template-columns: 1fr; }
  .brand-media-card { grid-template-columns: 104px minmax(0,1fr); padding: 12px; border-radius: 18px; }
  .brand-media-card > img { width: 104px; height: 88px; }
  .logo-preview { width: 88px; height: 88px; border-radius: 22px; }
  .auth-forgot { min-height: 44px; }
}

@media (max-width: 440px) {
  .brand-media-card { grid-template-columns: 1fr; }
  .brand-media-card > img { width: 100%; height: 150px; }
  .logo-preview { width: 92px; height: 92px; }
}
