:root {
  --orange: #f26b21;
  --orange-soft: rgba(242,107,33,.12);
  --bg: #0d0b0a;
  --sidebar: #110f0d;
  --surface: #171411;
  --surface-2: #201b17;
  --line: rgba(255,255,255,.09);
  --text: #f7efe7;
  --muted: #9b8e84;
  --success: #69c875;
  --warning: #f0b45b;
  --danger: #dd5e54;
  --display: "Arial Narrow", "Aptos Display", Impact, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--body); }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
.admin-eyebrow { margin: 0 0 12px; color: var(--orange); text-transform: uppercase; font-size: .68rem; font-weight: 900; letter-spacing: .17em; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-brand-panel { min-height: 100vh; position: relative; overflow: hidden; padding: 42px 60px; background: linear-gradient(100deg, rgba(9,7,6,.98), rgba(9,7,6,.7)), url("../assets/hero-brasa.webp") center/cover; display: flex; flex-direction: column; }
.login-brand-panel::after { content: ""; width: 420px; height: 420px; position: absolute; right: -180px; bottom: -180px; border-radius: 50%; background: var(--orange); filter: blur(90px); opacity: .18; }
.login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.login-brand img { width: 70px; height: 70px; object-fit: contain; border-radius: 14px; background: #211e1c; }
.login-brand span { display: grid; }
.login-brand b { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.login-brand small { margin-top: 4px; color: var(--orange); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.login-message { max-width: 660px; position: relative; z-index: 1; margin-block: auto; }
.login-message h1 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(4.2rem,7vw,7.2rem); line-height: .88; text-transform: uppercase; letter-spacing: -.04em; }
.login-message h1 em { color: var(--orange); font-style: normal; }
.login-message > p:last-child { max-width: 490px; margin: 0; color: #b4a69b; line-height: 1.7; }
.login-status { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login-status > i { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(105,200,117,.1); }
.login-status span { display: grid; }
.login-status b { font-size: .75rem; }
.login-status small { color: #8f8177; font-size: .65rem; }
.login-form-panel { min-height: 100vh; padding: 45px; display: grid; place-items: center; background: #12100e; }
.login-card { width: min(420px,100%); }
.login-card h2 { margin: 0 0 5px; font-family: var(--display); font-size: 3.5rem; text-transform: uppercase; }
.login-card > p:not(.admin-eyebrow) { margin: 0 0 34px; color: var(--muted); font-size: .82rem; }
.login-card > label { display: grid; gap: 8px; margin-bottom: 17px; color: #b7aaa0; font-size: .7rem; font-weight: 800; }
.login-card input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; outline: 0; background: var(--surface); }
.login-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.password-wrap { position: relative; }
.show-password { width: 42px; height: 42px; position: absolute; top: 4px; right: 4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.login-options { display: flex; justify-content: space-between; gap: 15px; margin: 3px 0 22px; color: var(--muted); font-size: .65rem; }
.login-options label { display: flex; align-items: center; gap: 7px; }
.login-options input { width: 15px; height: 15px; accent-color: var(--orange); }
.login-options button { border: 0; padding: 0; background: transparent; color: var(--orange); cursor: pointer; }
.admin-primary { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 0 20px; background: var(--orange); color: #170b05; font-weight: 900; cursor: pointer; box-shadow: 0 13px 30px rgba(242,107,33,.2); }
.login-card > .admin-primary { width: 100%; }
.prototype-warning { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 20px; padding: 13px; border: 1px solid rgba(240,180,91,.2); border-radius: 10px; background: rgba(240,180,91,.05); color: var(--muted); }
.prototype-warning b { color: var(--warning); font-size: .65rem; }
.prototype-warning span { font-size: .62rem; }
.back-store { display: block; margin-top: 25px; color: var(--muted); text-align: center; font-size: .7rem; }
.back-store:hover { color: var(--orange); }

.admin-app { min-height: 100vh; }
.admin-sidebar { width: 242px; position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); }
.sidebar-brand { min-height: 82px; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #211e1c; }
.sidebar-brand span { display: grid; line-height: 1; }
.sidebar-brand b { font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; }
.sidebar-brand small { margin-top: 5px; color: var(--orange); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.admin-nav { flex: 1; overflow-y: auto; padding: 18px 10px; }
.admin-nav p { margin: 17px 12px 7px; color: #615750; font-size: .57rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.admin-nav p:first-child { margin-top: 0; }
.admin-nav button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 0 11px; background: transparent; color: #8e8178; text-align: left; font-size: .72rem; font-weight: 700; cursor: pointer; }
.admin-nav button:hover { color: var(--text); background: rgba(255,255,255,.035); }
.admin-nav button.active { color: #fff; background: var(--orange-soft); }
.admin-nav button.active svg { color: var(--orange); }
.admin-nav button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: var(--orange); color: #190b05; font-size: .58rem; }
.sidebar-footer { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 15px; border-top: 1px solid var(--line); }
.operator-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-soft); color: var(--orange); font-size: .67rem; font-weight: 900; }
.sidebar-footer > span:nth-child(2) { display: grid; }
.sidebar-footer b { font-size: .67rem; }
.sidebar-footer small { color: var(--muted); font-size: .57rem; }
.sidebar-footer button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.admin-shell { min-width: 0; min-height: 100vh; margin-left: 242px; }
.admin-topbar { height: 82px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(13,11,10,.9); backdrop-filter: blur(16px); }
.sidebar-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.topbar-store { display: flex; align-items: center; gap: 10px; }
.topbar-store > i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(105,200,117,.09); }
.topbar-store span { display: grid; }
.topbar-store b { font-size: .69rem; }
.topbar-store small { color: var(--muted); font-size: .57rem; }
.topbar-store button { margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--surface); color: var(--warning); font-size: .61rem; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions label { width: 220px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.topbar-actions label svg { color: var(--muted); width: 16px; }
.topbar-actions input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: .67rem; }
.topbar-actions input::placeholder { color: var(--muted); }
.notification-button { width: 40px; height: 40px; position: relative; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.notification-button i { width: 7px; height: 7px; position: absolute; top: 8px; right: 8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--orange); }
.notification-button.ringing { border-color: var(--orange); animation: order-bell-ring .32s ease-in-out 4; box-shadow: 0 0 0 5px rgba(242,107,33,.12); }
.notification-button.ringing i { animation: order-dot-pulse .7s ease-in-out infinite alternate; }
@keyframes order-bell-ring { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 70% { transform: rotate(9deg); } }
@keyframes order-dot-pulse { to { transform: scale(1.55); box-shadow: 0 0 12px var(--orange); } }
.topbar-actions > a { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; color: var(--orange); font-size: .65rem; font-weight: 800; }
.admin-content { min-width: 0; padding: 30px; }

.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-page-head h1 { margin: 0 0 5px; font-family: var(--display); font-size: 2.5rem; text-transform: uppercase; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: .72rem; }
.admin-page-head .head-actions { display: flex; gap: 8px; }
.admin-secondary { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 13px; background: var(--surface); color: var(--text); font-size: .65rem; font-weight: 800; cursor: pointer; }
.admin-secondary:hover { border-color: var(--orange); }
.admin-page-head .admin-primary { min-height: 40px; font-size: .65rem; }
.period-pill { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: .62rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 128px; position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.metric-card::after { content: ""; width: 70px; height: 70px; position: absolute; right: -22px; top: -22px; border-radius: 50%; background: var(--orange); filter: blur(30px); opacity: .08; }
.metric-card > span { color: var(--muted); font-size: .64rem; }
.metric-card strong { display: block; margin: 14px 0 8px; font-size: 1.55rem; }
.metric-card small { color: var(--success); font-size: .58rem; }
.metric-card small.neutral { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: .82rem; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .58rem; }
.panel-head button { border: 0; background: transparent; color: var(--orange); font-size: .6rem; cursor: pointer; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: .63rem; }
.orders-table th { color: var(--muted); font-size: .54rem; text-transform: uppercase; letter-spacing: .08em; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table b { color: var(--orange); }
.status-badge { width: fit-content; display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; padding: 5px 7px; background: rgba(240,180,91,.09); color: var(--warning); font-size: .54rem; font-weight: 800; }
.status-badge.green { background: rgba(105,200,117,.09); color: var(--success); }
.status-badge.orange { background: var(--orange-soft); color: var(--orange); }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.alerts-list { padding: 7px 16px; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.alert-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: var(--orange-soft); color: var(--orange); }
.alert-row span { display: grid; }
.alert-row b { font-size: .62rem; }
.alert-row small { margin-top: 3px; color: var(--muted); font-size: .55rem; }
.alert-row time { color: var(--muted); font-size: .53rem; }
.performance { margin-top: 18px; padding: 18px; }
.performance h2 { margin: 0 0 18px; font-size: .8rem; }
.bars { height: 150px; display: flex; align-items: end; gap: 9px; }
.bar { flex: 1; min-height: 8px; position: relative; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--orange), #9d3c12); }
.bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .49rem; }
.bar small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .49rem; }

.kanban-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.kanban-toolbar label { width: 240px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.kanban-toolbar input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: .65rem; }
.kanban-toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--surface); font-size: .62rem; }
.kanban { max-width: 100%; display: grid; grid-template-columns: repeat(4,minmax(235px,1fr)); gap: 13px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-height: 560px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #110f0d; }
.kanban-column-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 13px; }
.kanban-column-head h3 { margin: 0; display: flex; align-items: center; gap: 7px; font-size: .68rem; }
.kanban-column-head h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.kanban-column[data-status="preparing"] h3::before { background: var(--orange); }
.kanban-column[data-status="delivery"] h3::before { background: #61a8e8; }
.kanban-column[data-status="done"] h3::before { background: var(--success); }
.kanban-column-head span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: .56rem; }
.order-card { margin-bottom: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card-head b { color: var(--orange); font-size: .66rem; }
.order-card-head time { color: var(--muted); font-size: .52rem; }
.order-card h4 { margin: 11px 0 3px; font-size: .65rem; }
.order-card p { margin: 0; color: var(--muted); font-size: .56rem; line-height: 1.5; }
.order-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.order-card-meta span { color: var(--muted); font-size: .53rem; }
.order-card-meta b { font-size: .61rem; }
.advance-order { width: 100%; margin-top: 9px; border: 0; border-radius: 8px; padding: 7px; background: var(--orange-soft); color: var(--orange); font-size: .56rem; font-weight: 900; cursor: pointer; }
.advance-order:hover { background: var(--orange); color: #190b05; }

.prototype-module { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.data-list { padding: 0 18px; }
.data-row { min-height: 62px; display: grid; grid-template-columns: 1.4fr .9fr .6fr auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); font-size: .62rem; }
.data-row:last-child { border-bottom: 0; }
.data-row > span { color: var(--muted); }
.toggle { width: 34px; height: 20px; position: relative; border: 0; border-radius: 12px; background: #40362f; cursor: pointer; }
.toggle::after { content: ""; width: 14px; height: 14px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #87786e; transition: .2s ease; }
.toggle.on { background: rgba(105,200,117,.24); }
.toggle.on::after { left: 17px; background: var(--success); }
.module-preview { min-height: 390px; padding: 24px; position: relative; overflow: hidden; background: linear-gradient(145deg,#24150e,#12100e); }
.module-preview::after { content: ""; width: 170px; height: 170px; position: absolute; right: -60px; bottom: -60px; border-radius: 50%; background: var(--orange); filter: blur(45px); opacity: .22; }
.module-preview span { color: var(--orange); font-size: .62rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.module-preview h2 { margin: 18px 0; font-family: var(--display); font-size: 3.3rem; line-height: .9; text-transform: uppercase; }
.module-preview p { max-width: 330px; color: var(--muted); font-size: .68rem; line-height: 1.7; }
.module-preview ul { padding-left: 17px; color: #c2b5ab; font-size: .62rem; line-height: 1.9; }

.admin-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--text); color: var(--bg); font-size: .65rem; font-weight: 800; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.admin-toast.show { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .prototype-module { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 25px; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 18px 0 50px rgba(0,0,0,.4); }
  .admin-sidebar.open { transform: none; }
  .admin-shell { margin-left: 0; }
  .admin-topbar { height: 70px; padding: 0 16px; }
  .sidebar-toggle { display: grid; }
  .topbar-store span, .topbar-store button, .topbar-actions label, .topbar-actions > a { display: none; }
  .admin-content { padding: 20px 14px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .orders-table { min-width: 650px; }
  .panel:has(.orders-table) { overflow-x: auto; }
  .kanban { grid-template-columns: repeat(4,265px); }
  .data-row { grid-template-columns: 1.2fr .8fr auto; }
  .data-row > span:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr; }
  .admin-page-head .head-actions { width: 100%; }
  .admin-page-head .head-actions > * { flex: 1; }
  .kanban-toolbar { align-items: stretch; flex-direction: column; }
  .kanban-toolbar label { width: 100%; }
  .data-row { grid-template-columns: 1fr auto; }
  .data-row > span { display: none; }
}

/* Administração conectada à nova vitrine pública */
body.admin-modal-open { overflow: hidden; }
.admin-primary, .admin-secondary, .topbar-store button, .topbar-actions > a, .row-menu { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.admin-primary:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(242,107,33,.28); }
.admin-primary:focus-visible, .admin-secondary:focus-visible, .admin-nav button:focus-visible, .toggle:focus-visible { outline: 3px solid rgba(242,107,33,.3); outline-offset: 2px; }

.operation-summary { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 20px 22px; border: 1px solid rgba(105,200,117,.2); border-radius: 16px; background: linear-gradient(110deg,rgba(105,200,117,.07),rgba(23,20,17,.95)); }
.operation-summary.paused { border-color: rgba(221,94,84,.25); background: linear-gradient(110deg,rgba(221,94,84,.08),rgba(23,20,17,.95)); }
.operation-summary > div:first-child { display: flex; align-items: center; gap: 14px; }
.operation-summary > div:first-child > i { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 8px rgba(105,200,117,.08); }
.operation-summary.paused > div:first-child > i { background: var(--danger); box-shadow: 0 0 0 8px rgba(221,94,84,.08); }
.operation-summary span { display: grid; }
.operation-summary small { color: var(--muted); font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.operation-summary strong { margin-top: 4px; font-size: .83rem; }
.operation-summary p { margin: 4px 0 0; color: var(--muted); font-size: .6rem; }
.operation-actions { display: flex; align-items: center; gap: 8px; }
.operation-actions button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: var(--surface); color: var(--muted); font-size: .59rem; font-weight: 800; cursor: pointer; }
.operation-actions .store-toggle-inline { border-color: rgba(242,107,33,.32); color: var(--orange); }

.table-scroll { overflow-x: auto; }
.orders-table tr.open-order { cursor: pointer; transition: background .18s ease; }
.orders-table tr.open-order:hover { background: rgba(242,107,33,.035); }
.status-badge.blue { background: rgba(97,168,232,.1); color: #70b6f0; }
.status-badge.red { background: rgba(221,94,84,.1); color: var(--danger); }
.sync-list { padding: 8px 17px; }
.sync-list > div { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.sync-list > div:last-child { border-bottom: 0; }
.sync-list span { color: var(--muted); font-size: .59rem; }
.sync-list b { color: var(--orange); font-size: .61rem; }
.alerts-panel { margin-top: 18px; }

.kanban { grid-template-columns: repeat(5,minmax(225px,1fr)); }
.kanban-legend { margin-left: auto; color: var(--muted); font-size: .56rem; }
.kanban-column[data-status="confirmed"] h3::before { background: #70b6f0; }
.empty-column { min-height: 94px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; color: #665b54; text-align: center; font-size: .56rem; }
.order-card { padding: 0; overflow: hidden; }
.order-card-main { width: 100%; display: block; border: 0; padding: 13px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.order-card-main:hover { background: rgba(255,255,255,.018); }
.order-card-main > strong { display: block; margin: 11px 0 3px; font-size: .65rem; }
.order-card-main > small { display: block; color: var(--muted); font-size: .56rem; line-height: 1.5; }
.order-card .advance-order { width: calc(100% - 18px); margin: 0 9px 9px; }
.order-card-meta em { color: var(--muted); font-size: .53rem; font-style: normal; }
.archived-orders { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.archived-orders > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.archived-orders h2 { margin: 0; font-size: .78rem; }
.archived-orders p { margin: 4px 0 0; color: var(--muted); font-size: .57rem; }
.archived-orders > header > span { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(221,94,84,.1); color: var(--danger); font-size: .58rem; font-weight: 900; }
.archived-order { width: 100%; min-height: 55px; display: grid; grid-template-columns: .6fr 1.2fr .8fr .6fr; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); padding: 8px 18px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.archived-order:last-child { border-bottom: 0; }
.archived-order:hover { background: rgba(255,255,255,.02); }
.archived-order > b { color: var(--orange); font-size: .61rem; }
.archived-order > span { color: var(--muted); font-size: .6rem; }
.archived-order > strong { font-size: .61rem; text-align: right; }
.empty-archive { padding: 18px; }

.admin-summary-strip { display: grid; grid-template-columns: repeat(3,150px) 1fr; gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.admin-summary-strip > div, .admin-summary-strip > p { margin: 0; padding: 17px; background: var(--surface); }
.admin-summary-strip > div { display: grid; gap: 7px; }
.admin-summary-strip small { color: var(--muted); font-size: .55rem; }
.admin-summary-strip strong { color: var(--orange); font-size: 1.05rem; }
.admin-summary-strip > p { display: flex; align-items: center; color: var(--muted); font-size: .6rem; line-height: 1.6; }
.admin-product-list { padding: 0 17px; }
.admin-product-row { min-height: 78px; display: grid; grid-template-columns: 58px minmax(180px,1.25fr) .55fr .75fr auto auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.admin-product-row:last-child { border-bottom: 0; }
.admin-product-row > img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.admin-product-row > div { display: grid; }
.admin-product-row > div b { font-size: .66rem; }
.admin-product-row > div small { margin-top: 5px; color: var(--muted); font-size: .54rem; }
.admin-product-row > strong { font-size: .63rem; }
.feature-check { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .57rem; cursor: pointer; }
.feature-check input { accent-color: var(--orange); }
.row-menu { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.row-menu:hover { border-color: var(--orange); color: var(--orange); }

.category-preview { display: grid; grid-template-columns: minmax(230px,.7fr) 1.3fr; align-items: center; gap: 25px; margin-bottom: 18px; padding: 24px; background: linear-gradient(135deg,#21140f,#151210); }
.category-preview h2 { margin: 0 0 7px; font-family: var(--display); font-size: 2.3rem; text-transform: uppercase; }
.category-preview > div > small { color: var(--muted); font-size: .58rem; }
.category-admin-pills { display: flex; gap: 7px; overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13,11,10,.72); scrollbar-width: none; }
.category-admin-pills::-webkit-scrollbar { display: none; }
.category-admin-pills span { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); background: var(--surface); font-size: .57rem; font-weight: 800; }
.category-admin-pills span.active { border-color: var(--orange); background: var(--orange); color: #180b05; }
.category-manager .panel-head > span { color: var(--orange); font-size: .59rem; }
.category-admin-list { padding: 0 18px; }
.category-admin-row { min-height: 70px; display: grid; grid-template-columns: 25px 38px minmax(160px,1fr) 42px 72px auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.category-admin-row:last-child { border-bottom: 0; }
.drag-handle { color: #665b54; letter-spacing: -3px; }
.category-admin-row > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); font-style: normal; }
.category-admin-row > div:nth-of-type(1) { display: grid; }
.category-admin-row b { font-size: .65rem; }
.category-admin-row small { margin-top: 4px; color: var(--muted); font-size: .54rem; }
.order-number { color: var(--orange); font-size: .6rem; font-weight: 900; }
.order-buttons { display: flex; gap: 4px; }
.order-buttons button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.order-buttons button:disabled { opacity: .25; cursor: default; }

.campaign-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.campaign-card { overflow: hidden; }
.campaign-image { height: 175px; position: relative; }
.campaign-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,7,5,.82),transparent 70%); }
.campaign-image img { width: 100%; height: 100%; object-fit: cover; }
.campaign-image > span { position: absolute; z-index: 1; left: 13px; bottom: 12px; border-radius: 7px; padding: 6px 8px; background: var(--orange); color: #190b05; font-size: .52rem; font-weight: 900; text-transform: uppercase; }
.campaign-content { padding: 17px; }
.campaign-content header { display: flex; justify-content: space-between; gap: 12px; }
.campaign-content h2 { margin: 0; font-size: .75rem; }
.campaign-content p { margin: 5px 0 0; color: var(--muted); font-size: .56rem; }
.campaign-content > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.edit-campaign { border: 0; padding: 0; background: transparent; color: var(--orange); font-size: .57rem; cursor: pointer; }
.storefront-map { display: grid; grid-template-columns: 1fr .85fr; gap: 28px; margin-top: 18px; padding: 25px; background: linear-gradient(135deg,#22150f,#13110f); }
.storefront-map h2 { margin: 0 0 10px; font-family: var(--display); font-size: 2.4rem; text-transform: uppercase; }
.storefront-map p:last-child { max-width: 580px; color: var(--muted); font-size: .62rem; line-height: 1.7; }
.storefront-map > div:last-child { display: grid; gap: 8px; }
.storefront-map > div:last-child span { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--muted); font-size: .58rem; }
.storefront-map > div:last-child b { color: var(--orange); }

.customer-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.customer-metrics article { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.customer-metrics small, .customer-metrics span { color: var(--muted); font-size: .56rem; }
.customer-metrics strong { font-size: 1.35rem; }
.inline-search { width: 210px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.inline-search svg { width: 15px; color: var(--muted); }
.inline-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: .59rem; }
.customer-list { padding: 0 17px; }
.customer-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 42px minmax(170px,1.2fr) .55fr .7fr .75fr .4fr; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.customer-row:last-child { border-bottom: 0; }
.customer-row:hover { background: rgba(255,255,255,.018); }
.customer-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--orange-soft); color: var(--orange); font-size: .62rem; font-weight: 900; }
.customer-row > span:not(.customer-avatar) { display: grid; gap: 4px; }
.customer-row b { font-size: .61rem; }
.customer-row small { color: var(--muted); font-size: .53rem; }
.customer-row em { width: fit-content; border-radius: 7px; padding: 5px 7px; background: rgba(105,200,117,.08); color: var(--success); font-size: .52rem; font-style: normal; font-weight: 800; }

.data-row { grid-template-columns: 1.35fr .85fr .7fr auto auto; }
.sidebar-scrim { position: fixed; z-index: 35; inset: 0; border: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(2px); }
.admin-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 22px; opacity: 0; visibility: hidden; transition: .22s ease; }
.admin-modal.open { opacity: 1; visibility: visible; }
.admin-modal-scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(7px); }
.admin-modal-card { width: min(570px,100%); max-height: min(760px,90vh); position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #171411; box-shadow: 0 30px 80px rgba(0,0,0,.55); transform: translateY(14px) scale(.98); transition: .22s ease; }
.admin-modal.open .admin-modal-card { transform: none; }
.admin-modal-card > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.admin-modal-card h2 { margin: 0; font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.admin-modal-close { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 1.25rem; cursor: pointer; }
.admin-modal-body { max-height: calc(min(760px,90vh) - 82px); overflow-y: auto; padding: 20px; }
.order-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.order-detail-head > strong { font-size: 1.15rem; }
.order-customer { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.order-customer > span:last-child { display: grid; }
.order-customer b { font-size: .69rem; }
.order-customer small { margin-top: 4px; color: var(--muted); font-size: .56rem; }
.order-detail-block { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.order-detail-block small, .order-detail-grid small { color: var(--muted); font-size: .54rem; text-transform: uppercase; letter-spacing: .08em; }
.order-detail-block p { margin: 8px 0 0; font-size: .64rem; line-height: 1.55; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 10px; }
.order-detail-grid > div { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.order-detail-grid b { font-size: .63rem; }
.order-timeline { display: grid; grid-template-columns: repeat(5,1fr); margin: 24px 0; }
.order-timeline span { min-width: 0; position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; }
.order-timeline span::before { content: ""; height: 2px; position: absolute; z-index: 0; top: 5px; left: 0; right: 0; background: var(--line); }
.order-timeline span:first-child::before { left: 50%; }
.order-timeline span:last-child::before { right: 50%; }
.order-timeline i { width: 12px; height: 12px; position: relative; z-index: 1; border: 2px solid #4a4039; border-radius: 50%; background: var(--surface); }
.order-timeline span.done::before { background: var(--orange); }
.order-timeline span.done i { border-color: var(--orange); background: var(--orange); }
.order-timeline small { color: var(--muted); font-size: .48rem; }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; }
.modal-actions > * { min-height: 44px; flex: 1; }
.admin-danger { border: 1px solid rgba(221,94,84,.25); border-radius: 10px; padding: 0 13px; background: rgba(221,94,84,.07); color: var(--danger); font-size: .62rem; font-weight: 800; cursor: pointer; }
.admin-editor { display: grid; gap: 15px; }
.admin-editor > label, .editor-grid label { display: grid; gap: 7px; color: #b7aaa0; font-size: .61rem; font-weight: 800; }
.admin-editor input, .admin-editor select, .admin-editor textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px; outline: 0; background: var(--surface-2); resize: vertical; }
.admin-editor input, .admin-editor select { height: 45px; }
.admin-editor input:focus, .admin-editor select:focus, .admin-editor textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .58rem; }
.editor-checks label { display: flex; align-items: center; gap: 7px; }
.editor-checks input { width: 15px; height: 15px; accent-color: var(--orange); }
.customer-profile { text-align: center; }
.customer-avatar.large { width: 68px; height: 68px; margin: 0 auto; border-radius: 18px; font-size: 1rem; }
.customer-profile h3 { margin: 13px 0 5px; font-size: 1.05rem; }
.customer-profile > p { margin: 0 0 18px; color: var(--muted); font-size: .64rem; }

.module-filter.active { border-color: var(--orange); color: var(--orange); }
.module-inline-tools { min-height: 58px; display: flex; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.module-inline-tools label { width: min(390px,100%); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.module-inline-tools label svg { width: 16px; color: var(--muted); }
.module-inline-tools input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: .63rem; }
.module-inline-tools > button { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: transparent; color: var(--orange); font-size: .58rem; font-weight: 800; cursor: pointer; }
.module-inline-tools > button:disabled { opacity: .35; cursor: default; }
.module-inline-tools > span { margin-left: auto; color: var(--muted); font-size: .56rem; }
.module-empty { min-height: 170px; display: grid; place-content: center; gap: 7px; color: var(--muted); text-align: center; }
.module-empty b { color: var(--text); font-size: .7rem; }
.module-empty span { font-size: .58rem; }
.row-action-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.row-action-summary p { margin: 0; color: var(--muted); font-size: .58rem; text-align: right; }
.row-action-menu { display: grid; gap: 8px; }
.row-action-menu button { min-height: 62px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.row-action-menu button:hover { border-color: rgba(242,107,33,.42); background: rgba(242,107,33,.04); }
.row-action-menu b { font-size: .66rem; }
.row-action-menu span { color: var(--muted); font-size: .55rem; }
.row-action-menu i { grid-column: 2; grid-row: 1 / 3; color: var(--orange); font-size: 1rem; font-style: normal; }
.row-action-menu .row-action-delete:hover { border-color: rgba(221,94,84,.35); background: rgba(221,94,84,.04); }
.row-action-menu .row-action-delete i { color: var(--danger); }
.delete-confirm { padding: 8px 2px 2px; text-align: center; }
.delete-confirm > i { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: rgba(221,94,84,.1); color: var(--danger); font-size: 1.35rem; font-style: normal; font-weight: 900; }
.delete-confirm h3 { margin: 0; font-size: 1rem; }
.delete-confirm > p { max-width: 410px; margin: 9px auto 20px; color: var(--muted); font-size: .62rem; line-height: 1.65; }
.editor-intro { margin: 0; padding: 12px; border: 1px solid rgba(242,107,33,.18); border-radius: 10px; background: var(--orange-soft); color: #c9bcb2; font-size: .59rem; line-height: 1.55; }
.settings-editor fieldset { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.settings-editor legend { padding: 0 7px; color: var(--orange); font-size: .6rem; font-weight: 900; }
.product-image-editor { display: grid; grid-template-columns: 210px 1fr; gap: 14px; }
.product-image-preview { height: 158px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #0e0c0a; }
.product-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-image-preview > span { position: absolute; left: 9px; bottom: 9px; border-radius: 7px; padding: 5px 7px; background: rgba(13,11,10,.82); color: #fff; font-size: .49rem; font-weight: 800; backdrop-filter: blur(5px); }
.product-image-actions { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.product-image-picker { min-height: 92px; position: relative; display: grid; place-content: center; gap: 6px; overflow: hidden; border: 1px dashed rgba(242,107,33,.42); border-radius: 13px; padding: 14px; background: rgba(242,107,33,.035); color: var(--orange); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.product-image-picker:hover { border-color: var(--orange); background: rgba(242,107,33,.07); }
.product-image-picker.loading { opacity: .6; pointer-events: none; }
.product-image-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.product-image-picker b { font-size: .65rem; }
.product-image-picker span { color: var(--muted); font-size: .53rem; }
.product-image-actions > p { margin: 9px 2px 0; color: var(--muted); font-size: .53rem; line-height: 1.45; }

@media (max-width: 1180px) {
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .admin-product-row { grid-template-columns: 52px minmax(160px,1fr) .55fr auto auto; }
  .admin-product-row .feature-check { display: none; }
  .customer-row { grid-template-columns: 42px minmax(170px,1fr) .55fr .7fr .4fr; }
  .customer-row > span:nth-of-type(4) { display: none; }
}
@media (max-width: 820px) {
  .operation-summary { align-items: flex-start; flex-direction: column; }
  .operation-actions { width: 100%; overflow-x: auto; }
  .operation-actions button { flex: 0 0 auto; }
  .kanban { grid-template-columns: repeat(5,265px); }
  .kanban-legend { display: none; }
  .admin-summary-strip { grid-template-columns: repeat(3,1fr); }
  .admin-summary-strip > p { grid-column: 1 / -1; }
  .category-preview, .storefront-map { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }
  .customer-row { grid-template-columns: 42px minmax(150px,1fr) .55fr .4fr; }
  .customer-row > span:nth-of-type(3) { display: none; }
  .data-row { grid-template-columns: 1.2fr .8fr auto auto; }
  .data-row > span:nth-child(3) { display: none; }
}
@media (max-width: 580px) {
  .operation-summary { padding: 17px; }
  .operation-summary p { line-height: 1.5; }
  .admin-summary-strip { grid-template-columns: 1fr 1fr 1fr; }
  .admin-summary-strip > div { padding: 13px 10px; }
  .admin-summary-strip > p { display: none; }
  .admin-product-list, .category-admin-list, .customer-list { padding-inline: 12px; }
  .admin-product-row { min-height: 72px; grid-template-columns: 48px 1fr auto auto; gap: 10px; }
  .admin-product-row > img { width: 46px; height: 46px; }
  .admin-product-row > strong { display: none; }
  .category-admin-row { grid-template-columns: 34px 1fr 66px auto; gap: 9px; }
  .category-admin-row .drag-handle, .category-admin-row .order-number { display: none; }
  .customer-metrics { grid-template-columns: 1fr; }
  .customer-panel .panel-head { align-items: stretch; flex-direction: column; }
  .inline-search { width: 100%; }
  .customer-row { grid-template-columns: 38px 1fr auto; }
  .customer-row > span:nth-of-type(n+2) { display: none; }
  .archived-order { grid-template-columns: .7fr 1fr .65fr; }
  .archived-order > em { display: none; }
  .admin-modal { align-items: end; padding: 0; }
  .admin-modal-card { width: 100%; max-height: 91dvh; border-radius: 20px 20px 0 0; }
  .admin-modal-body { max-height: calc(91dvh - 82px); }
  .order-timeline small { font-size: .43rem; }
  .modal-actions { flex-direction: column; }
  .editor-grid { grid-template-columns: 1fr; }
  .module-inline-tools { align-items: stretch; flex-wrap: wrap; }
  .module-inline-tools label { width: 100%; }
  .module-inline-tools > span { align-self: center; margin-left: auto; }
  .row-action-summary { align-items: flex-start; flex-direction: column; }
  .row-action-summary p { text-align: left; }
  .product-image-editor { grid-template-columns: 1fr; }
  .product-image-preview { height: 205px; }
}
