:root {
    --orange: #f36b35;
    --orange-dark: #db5522;
    --orange-soft: #fff1eb;
    --green: #12634a;
    --green-soft: #e8f5f0;
    --navy: #172b3a;
    --ink: #243039;
    --muted: #6c7880;
    --line: #e4e8e8;
    --surface: #ffffff;
    --canvas: #f6f7f5;
    --danger: #c63f45;
    --danger-soft: #fff0f0;
    --warning: #a56514;
    --warning-soft: #fff7e8;
    --shadow: 0 8px 28px rgba(31, 44, 51, .07);
    --radius: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: 'Manrope', Arial, sans-serif; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--navy); color: #dbe4e8; padding: 25px 17px 18px; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 0 9px 27px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; background: var(--orange); color: #fff; font: 800 20px/1 'Manrope'; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; line-height: 1.15; }
.brand small { color: #94a7b2; font-size: 10px; margin-top: 3px; letter-spacing: .08em; text-transform: uppercase; }
.nav-label { padding: 0 11px; margin: 3px 0 9px; color: #718894; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 0 12px; font-weight: 600; color: #aab9c1; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: rgba(243,107,53,.16); box-shadow: inset 3px 0 var(--orange); }
.nav-item svg { width: 19px; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 11px; }
.sidebar-store { margin-top: auto; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.store-avatar, .profile-avatar { display: grid; place-items: center; border-radius: 9px; font-weight: 700; }
.store-avatar { width: 33px; height: 33px; background: #2d4858; color: #fff; }
.sidebar-store strong, .sidebar-store small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-store strong { font-size: 12px; color: #fff; }
.sidebar-store small { color: #8ca0ab; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.open { background: #43c894; box-shadow: 0 0 0 3px rgba(67,200,148,.13); }
.status-dot.closed { background: #ed6670; box-shadow: 0 0 0 3px rgba(237,102,112,.13); }
.app-main { margin-left: 248px; min-height: 100vh; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 20; padding: 0 32px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.topbar-store .eyebrow, .topbar-store strong { display: block; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.topbar-store strong { font-size: 14px; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.live-indicator { min-height: 30px; padding: 0 9px; border: 1px solid #cfe5dc; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; color: var(--green); background: #f5fbf8; font-size: 10px; font-weight: 700; }
.live-indicator > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #28a877; box-shadow: 0 0 0 3px rgba(40,168,119,.12); }
.live-indicator.reconnecting { color: var(--warning); border-color: #ead8b9; background: var(--warning-soft); }
.live-indicator.offline{color:#68756f;border-color:#d9e0dd;background:#f5f7f6}.live-indicator.offline>span:first-child{background:#98a39f;box-shadow:none}
.live-indicator.reconnecting > span:first-child { background: var(--warning); box-shadow: 0 0 0 3px rgba(165,101,20,.12); animation: live-pulse 1.2s infinite; }
.store-switch { border: 1px solid #ead9d2; border-radius: 22px; background: var(--orange-soft); color: var(--orange-dark); padding: 8px 13px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; cursor: pointer; }
.store-switch.is-open { color: var(--green); background: var(--green-soft); border-color: #c9e5da; }
.switch-indicator { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.profile-menu { position: relative; }
.profile-trigger { min-width: 196px; padding: 5px 7px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; text-align: left; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.profile-trigger:hover { background: #f4f5f4; }
.profile-avatar { width: 36px; height: 36px; background: var(--navy); color: #fff; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.profile-trigger > svg { width: 15px; color: var(--muted); }
.profile-dropdown { position: absolute; top: calc(100% + 9px); right: 0; width: 225px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-5px); transition: .15s ease; }
.profile-dropdown.open { visibility: visible; opacity: 1; transform: none; }
.profile-dropdown > div { padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.profile-dropdown strong, .profile-dropdown small { display: block; }
.profile-dropdown small { color: var(--muted); font-size: 11px; }
.profile-dropdown a { display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 8px; font-weight: 600; }
.profile-dropdown a:hover { background: var(--canvas); }
.profile-dropdown svg { width: 17px; }
.menu-button.icon-button { display: none; }
.content { width: min(1400px, 100%); margin: 0 auto; padding: 27px 32px 48px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 23px; }
.page-header h1 { margin: 0 0 5px; font-size: 25px; line-height: 1.25; letter-spacing: -.03em; }
.page-header p { color: var(--muted); margin: 0; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.button { min-height: 40px; border-radius: 9px; border: 1px solid transparent; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(243,107,53,.22); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: #cbd1d2; }
.button-danger { background: var(--danger-soft); color: var(--danger); border-color: #f2cfd0; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
.button svg { width: 17px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; }
.alert { margin-bottom: 20px; padding: 12px 15px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.alert button { border: 0; background: none; color: inherit; font-size: 20px; cursor: pointer; }
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid #cce5dc; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f1ccce; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(31,44,51,.025); }
.card-header { min-height: 61px; padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 15px; }
.card-header p { color: var(--muted); margin: 3px 0 0; font-size: 12px; }
.card-body { padding: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(145px,1fr)); gap: 13px; margin-bottom: 19px; }
.metric-grid.product-metrics { grid-template-columns:repeat(3,minmax(160px,220px)); }
.metric-card { padding: 17px; min-height: 124px; position: relative; overflow: hidden; }
.metric-card:after { content: ''; position: absolute; width: 58px; height: 58px; border-radius: 50%; right: -17px; top: -18px; background: var(--metric-soft, #f4f5f4); }
.metric-label { color: var(--muted); font-weight: 600; font-size: 12px; }
.metric-value { margin: 15px 0 2px; font: 800 25px/1.1 'Manrope'; letter-spacing: -.03em; }
.metric-foot { color: var(--muted); font-size: 10px; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--metric-color, var(--navy)); background: var(--metric-soft, #f3f5f5); position: absolute; right: 14px; bottom: 14px; }
.metric-icon svg { width: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(275px,.75fr); gap: 19px; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.quick-action:hover { border-color: #f1b89f; background: #fffaf8; }
.quick-action span:first-child { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }
.quick-action svg { width: 17px; }
.quick-action small { display: block; color: var(--muted); font-weight: 400; }
.store-hours-panel { margin-top: 17px; padding: 16px; background: var(--canvas); border-radius: 11px; }
.store-hours-panel > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; }
.status-banner { margin-bottom: 19px; padding: 16px 19px; border-radius: 13px; background: var(--green); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.status-banner.closed { background: #76393c; }
.status-banner h2 { margin: 0 0 2px; font-size: 16px; }
.status-banner p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.data-table th { text-align: left; padding: 11px 15px; background: #f8f9f8; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfdfc; }
.order-id { color: var(--orange-dark); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; background: #f0f2f2; color: #59656b; }
.badge:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-pending, .badge-unpaid, .badge-pending_verification { color: var(--warning); background: var(--warning-soft); }
.badge-accepted, .badge-ready_for_pickup { color: #2a6893; background: #edf6fc; }
.badge-preparing { color: #7d55a4; background: #f6f0fb; }
.badge-completed, .badge-active, .badge-paid, .badge-verified { color: var(--green); background: var(--green-soft); }
.badge-processing { color: #36628a; background: #edf3fa; }
.badge-cancelled, .badge-disabled, .badge-rejected, .badge-refunded { color: var(--danger); background: var(--danger-soft); }
.tabs { display: flex; overflow-x: auto; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 11px; margin-bottom: 18px; scrollbar-width: none; }
.tabs a { flex: 1; min-width: max-content; padding: 9px 13px; border-radius: 8px; text-align: center; color: var(--muted); font-weight: 700; font-size: 12px; }
.tabs a.active { background: var(--navy); color: #fff; }
.filter-bar { padding: 13px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filter-bar .field { min-width: 180px; flex: 1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; color: #4c595f; }
.input, .select, .textarea { width: 100%; min-height: 42px; border: 1px solid #d7dddd; border-radius: 9px; background: #fff; color: var(--ink); padding: 9px 11px; outline: none; transition: .15s ease; }
.textarea { min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,107,53,.1); }
.input-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 10px; }
.help-text { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 19px; border-top: 1px solid var(--line); margin-top: 20px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr); gap: 19px; align-items: start; }
.settings-aside { display: grid; gap: 15px; }
.notice { padding: 14px; border-radius: 10px; background: #f3f7f6; color: #50605f; font-size: 12px; }
.notice strong { display: block; color: var(--ink); margin-bottom: 3px; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; }
.switch-row > .toggle { flex: 0 0 41px; margin-top: 1px; }
.switch-row > span:not(.toggle) { display: block; flex: 1 1 auto; min-width: 0; }
.switch-row > span:not(.toggle) > strong,
.switch-row > span:not(.toggle) > small { display: block; }
.switch-row > span:not(.toggle) > small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.toggle { position: relative; width: 41px; min-width: 41px; height: 23px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #cbd1d1; border-radius: 20px; cursor: pointer; transition: .2s; }
.toggle span:before { content: ''; width: 17px; height: 17px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: .2s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span:before { transform: translateX(18px); }
.login-partner-link{margin-top:14px;padding:12px;border-radius:10px;background:#fff5f0;display:flex;justify-content:space-between;gap:10px;font-size:11px}.login-partner-link a{color:var(--orange-dark);font-weight:800}@media(max-width:520px){.login-partner-link{display:grid}}
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.product-thumb { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; background: #eef0ef; }
.product-placeholder { display: grid; place-items: center; color: #9aa5a8; font: 700 16px 'Manrope'; }
.product-cell strong, .product-cell small { display: block; }
.product-cell small { max-width: 250px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty-state { padding: 55px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin: 12px 0 5px; }
.empty-icon { width: 48px; height: 48px; border-radius: 13px; margin: auto; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }
.image-upload { border: 1px dashed #c9d0d0; background: #fafbfa; border-radius: 12px; min-height: 190px; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; position: relative; }
.image-upload input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.image-upload-preview { position: absolute; inset: 0; display: none; }
.image-upload-preview.has-image { display: block; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-copy { color: var(--muted); }
.image-upload-copy strong { display: block; color: var(--ink); margin-bottom: 3px; }
.order-list { display: grid; gap: 13px; }
.order-card { padding: 0; overflow: hidden; }
.order-card-head { padding: 14px 18px; background: #fafbfa; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.order-card-title { display: flex; align-items: center; gap: 10px; }
.order-card-title h3 { margin: 0; font-size: 14px; }
.order-card-title small { color: var(--muted); }
.order-card-body { padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 22px; }
.order-section h4 { margin: 0 0 9px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.order-section p { margin: 0 0 5px; }
.order-items { margin: 0; padding: 0; list-style: none; }
.order-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.order-items li span:first-child { flex: 1; }
.order-total { padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; font-weight: 800; }
.order-actions { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.prep-form { display: flex; gap: 7px; align-items: center; }
.prep-form .input { width: 78px; min-height: 34px; }
.cancel-order-form { width: 100%; display: none; justify-content: flex-end; gap: 7px; padding-top: 8px; }
.cancel-order-form.visible { display: flex; }
.cancel-order-form .input { max-width: 340px; min-height: 34px; }
.report-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 19px; }
.chart-bars { height: 230px; padding: 15px 5px 0; display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); }
.chart-column { min-width: 36px; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.chart-bar { width: min(34px, 75%); min-height: 3px; background: linear-gradient(180deg,var(--orange),#f59670); border-radius: 6px 6px 2px 2px; position: relative; }
.chart-bar:hover:after { content: attr(data-value); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 4px 7px; border-radius: 5px; background: var(--navy); color: #fff; white-space: nowrap; font-size: 9px; }
.chart-column small { font-size: 9px; color: var(--muted); white-space: nowrap; }
.report-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 19px; }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rank-list li { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; }
.rank-number { width: 27px; height: 27px; border-radius: 7px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.rank-list strong, .rank-list small { display: block; }
.rank-list small { color: var(--muted); font-size: 10px; }
.mobile-nav, .sidebar-overlay { display: none; }
dialog { width: min(500px, calc(100% - 30px)); border: 0; padding: 0; border-radius: 15px; box-shadow: 0 20px 60px rgba(15,31,39,.23); }
dialog::backdrop { background: rgba(17,35,45,.55); backdrop-filter: blur(2px); }
.confirm-modal .modal-body p { margin: 0; color: var(--muted); }
.modal-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-actions { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: #fafbfa; }
.live-toast { position: fixed; z-index: 70; right: 24px; bottom: 24px; width: min(420px, calc(100% - 30px)); padding: 14px; border: 1px solid #cfe5dc; border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(19,43,56,.18); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 11px; animation: toast-in .42s cubic-bezier(.2,.85,.25,1.15), toast-glow 1.5s ease-out; }
.live-toast-marker { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft); }
.live-toast strong, .live-toast small { display: block; }
.live-toast small { color: var(--muted); margin-top: 2px; }
.live-toast-close { width: 27px; height: 27px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1; }
.live-toast-close:hover { color: var(--ink); background: var(--canvas); }
@keyframes live-pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-glow { 0%,35% { border-color: #f3a17f; box-shadow: 0 18px 45px rgba(19,43,56,.18), 0 0 0 5px rgba(243,107,53,.1); } }
@keyframes live-value-pop { 0% { opacity: .45; transform: translateY(5px) scale(.94); } 55% { color: var(--orange-dark); transform: translateY(-2px) scale(1.07); } 100% { opacity: 1; transform: none; } }
@keyframes live-count-pop { 0% { transform: scale(.65); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes live-order-in { 0% { opacity: 0; transform: translateY(-10px); background: #fff0e9; } 40% { opacity: 1; background: #fff7f2; } 100% { transform: none; background: transparent; } }
@keyframes live-section-fade { 0% { opacity: .72; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes live-store-flash { 0%,45% { box-shadow: 0 0 0 5px rgba(243,107,53,.14); } 100% { box-shadow: none; } }
.live-value-update { display: inline-block; animation: live-value-pop .5s cubic-bezier(.2,.8,.2,1); }
.live-count-update { animation: live-count-pop .45s cubic-bezier(.2,.85,.25,1.2); }
.data-table tr.live-order-enter, .order-card.live-order-enter { animation: live-order-in 1.35s cubic-bezier(.2,.8,.2,1); }
.live-section-update { animation: live-section-fade .3s ease-out; }
.live-store-update { animation: live-store-flash .8s ease-out; }
.login-page { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.03fr .97fr; }
.login-aside { min-height: 100vh; padding: 37px clamp(35px,6vw,85px); color: #fff; background: var(--navy); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.login-aside:before { content:''; position:absolute; width:360px; height:360px; border-radius:50%; left:-180px; bottom:-190px; border:70px solid rgba(243,107,53,.07); }
.login-brand { display:flex; align-items:center; gap:10px; font:800 20px 'Manrope'; position:relative; z-index:1; }
.login-aside-copy { margin:auto 0 30px; position:relative; z-index:1; }
.login-kicker { color:#f6a887; font-weight:700; text-transform:uppercase; font-size:11px; letter-spacing:.15em; }
.login-aside-copy h1 { margin:14px 0 18px; font-size:clamp(37px,4vw,58px); line-height:1.08; letter-spacing:-.045em; }
.login-aside-copy h1 em { color:var(--orange); font-style:normal; }
.login-aside-copy p { max-width:480px; color:#a9bbc4; font-size:15px; }
.login-preview { width:min(530px,100%); height:170px; margin-bottom:30px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.055); box-shadow:0 24px 50px rgba(0,0,0,.15); transform:perspective(900px) rotateY(4deg); overflow:hidden; position:relative; z-index:1; }
.preview-head { height:27px; border-bottom:1px solid rgba(255,255,255,.08); display:flex; gap:5px; align-items:center; padding:0 10px; }
.preview-head span { width:5px; height:5px; border-radius:50%; background:#68808d; }
.preview-body { height:calc(100% - 27px); display:grid; grid-template-columns:95px 1fr; }
.preview-sidebar { background:rgba(0,0,0,.14); }
.preview-content { padding:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.preview-content span { height:48px; border-radius:7px; background:rgba(255,255,255,.08); border-top:2px solid rgba(243,107,53,.6); }
.preview-content div { grid-column:span 3; border-radius:7px; background:rgba(255,255,255,.05); }
.login-footer { color:#718894; position:relative; z-index:1; }
.login-form-panel { display:grid; place-items:center; padding:40px; }
.login-form-wrap { width:min(410px,100%); }
.login-form-wrap h2 { font-size:29px; letter-spacing:-.035em; margin:9px 0 7px; }
.login-form-wrap > p { color:var(--muted); margin-bottom:28px; }
.login-form { display:grid; gap:17px; }
.field-label-row { display:flex; justify-content:space-between; align-items:center; }
.field-label-row span { color:var(--muted); font-size:10px; }
.login-button { width:100%; min-height:47px; margin-top:4px; }
.login-security { margin-top:26px; border-top:1px solid var(--line); padding-top:20px; text-align:center; }
.login-security span,.login-security small { display:block; }
.login-security span { font-weight:700; font-size:11px; }
.login-security small { color:var(--muted); font-size:10px; }
.login-mobile-brand { display:none; }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .menu-open .sidebar { transform: none; }
    .sidebar-overlay { position: fixed; inset: 0; background: rgba(15,31,39,.5); z-index: 25; }
    .menu-open .sidebar-overlay { display: block; }
    .app-main { margin-left: 0; }
    .menu-button.icon-button { display: grid; }
    .topbar { padding: 0 21px; justify-content: initial; gap: 13px; }
    .topbar-actions { margin-left: auto; }
    .dashboard-grid, .settings-grid, .report-grid { grid-template-columns: 1fr; }
    .order-card-body { grid-template-columns: 1fr 1fr; }
    .order-card-body .order-section:last-child { grid-column: span 2; }
    .login-shell { grid-template-columns:1fr; }
    .login-aside { display:none; }
    .login-form-panel { min-height:100vh; }
    .login-mobile-brand { display:flex; align-items:center; gap:9px; font:800 19px 'Manrope'; margin-bottom:48px; }
}

@media (max-width: 640px) {
    body { padding-bottom: 65px; }
    .topbar { height: 61px; padding: 0 14px; }
    .topbar-store .eyebrow, .profile-copy, .profile-trigger > svg { display: none; }
    .topbar-store strong { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .profile-trigger { min-width: auto; display: block; padding: 2px; }
    .store-switch { padding: 8px 10px; }
    .store-switch span:last-child { display: none; }
    .live-indicator { width: 29px; min-height: 29px; padding: 0; justify-content: center; }
    .live-indicator [data-live-label] { display: none; }
    .content { padding: 20px 14px 30px; }
    .page-header { align-items: center; }
    .page-header h1 { font-size: 21px; }
    .page-header p { font-size: 12px; }
    .page-actions .button span.button-label { display: none; }
    .metric-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .metric-card { min-height: 111px; padding: 14px; }
    .metric-value { font-size: 21px; margin-top: 13px; }
    .metric-icon { display: none; }
    .status-banner { align-items: flex-start; }
    .status-banner .button { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .form-actions { position: sticky; bottom: 65px; background: #fff; z-index: 5; margin-left: -20px; margin-right: -20px; padding: 12px 20px; box-shadow: 0 -5px 15px rgba(31,44,51,.05); }
    .card-header, .card-body { padding-left: 15px; padding-right: 15px; }
    .report-metrics { grid-template-columns: repeat(2,1fr); }
    .order-card-body { grid-template-columns: 1fr; gap: 16px; }
    .order-card-body .order-section:last-child { grid-column: span 1; }
    .order-actions { justify-content: stretch; }
    .order-actions .button, .order-actions form:not(.cancel-order-form) { flex: 1; }
    .prep-form { width: 100%; }
    .prep-form .input { flex: 1; }
    .cancel-order-form.visible { display: grid; }
    .mobile-nav { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; height: 65px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6,1fr); }
    .mobile-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; color: #879095; font-size: 9px; font-weight: 700; }
    .mobile-nav a.active { color: var(--orange); }
    .mobile-nav svg { width: 19px; height: 19px; }
    .live-toast { right: 15px; bottom: 79px; }
    .login-page { padding-bottom:0; }
    .login-form-panel { padding:28px 21px; align-items:start; }
    .login-form-wrap { padding-top:10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Inventory and option editor */
.operations-status{display:flex;justify-content:space-between;gap:24px;padding:24px;margin-bottom:18px;border-left:4px solid #76827e}.operations-status.status-open,.operations-status.status-busy{border-left-color:#17805f}.operations-status.status-paused,.operations-status.status-order_limit{border-left-color:#d28a20}.operations-status h2{margin:10px 0 5px}.operations-status>div:last-child{display:grid;grid-template-columns:auto auto;gap:6px 16px;min-width:240px}.operations-status>div:last-child strong{text-align:right}.operations-rules,.weekly-schedule,.special-hours{margin-bottom:18px}.operations-rules .card-footer,.weekly-schedule .card-footer{padding:16px 20px;border-top:1px solid var(--border,#e5e9e7)}.schedule-table{overflow:auto}.schedule-row{display:grid;grid-template-columns:130px 60px repeat(4,minmax(120px,1fr));gap:10px;align-items:center;padding:11px 20px;border-bottom:1px solid var(--border,#e5e9e7);min-width:820px}.schedule-head{background:#f7f9f8;color:#68736f;font-size:.78rem;font-weight:700;text-transform:uppercase}.preorder-disabled{padding:14px;border:1px dashed #cbd5d1;border-radius:10px;background:#fafcfb;display:grid;gap:9px}.special-hours>form{height:max-content}
@media(max-width:720px){.operations-status{display:grid}.operations-status>div:last-child{min-width:0}.schedule-row{padding-inline:14px}}
.quick-restock{display:flex;gap:6px;align-items:center;margin-top:7px}.quick-restock .input{width:68px;min-height:34px;padding:6px}.stock-count{font-size:1.15rem}.stock-count.low{color:#bd3f3f}.option-editor>div{display:grid;gap:16px}.option-group-card .card-footer{display:flex;justify-content:flex-end;padding:14px 18px;border-top:1px solid var(--border,#e5e9e7)}.option-list{display:grid;gap:8px}.option-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border,#e5e9e7)}.option-row>div{display:grid}.option-row form{display:flex;gap:6px}.compact-option-form{margin-top:18px;align-items:end}.alert-warning{background:#fff8e8;border-color:#efd59a;color:#755316}
@media(max-width:720px){.option-row{grid-template-columns:1fr auto}.option-row form{grid-column:1/-1}.quick-restock{min-width:145px}}
.merchant-delivery-tracking{display:grid;gap:10px;margin:0 18px 16px;padding:16px;border:1px solid #dfe7e3;border-radius:12px;background:#f9fbfa}.merchant-delivery-tracking h4,.merchant-delivery-tracking p{margin:0}.merchant-delivery-tracking small{color:#65736d}
.merchant-route-summary{margin:0 18px 14px;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:1px solid #e2e7e4;border-radius:12px;background:#fbfcfa}.merchant-route-summary>div{display:grid;gap:2px}.merchant-route-summary small,.merchant-route-summary span{color:#71807b;font-size:10px}.merchant-route-summary strong{color:#173f49}@media(max-width:700px){.merchant-route-summary{grid-template-columns:1fr}}
.launch-helper{margin:0 0 14px;padding:13px 15px;border-left:4px solid var(--green);border-radius:11px;background:var(--green-soft);color:var(--green);display:grid;gap:3px}.merchant-payable-inline{margin-top:12px;padding:11px;border:1px solid #eed8a9;border-radius:10px;background:#fff9ea;display:flex;align-items:center;justify-content:space-between;gap:12px}.merchant-payable-inline small,.merchant-payable-inline strong{display:block}.merchant-payable-inline small{color:var(--muted)}
.brand-mark{background:transparent url('../images/capygo-app-icon.png') center/contain no-repeat!important;color:transparent!important;font-size:0!important;border-radius:0!important;box-shadow:none!important}.brand .brand-mark{width:56px!important;height:56px!important;flex:0 0 56px}.login-brand .brand-mark,.login-mobile-brand .brand-mark{width:58px!important;height:58px!important;flex:0 0 58px}
