:root{
 --bg:#f5f6f8;--surface:#fff;--surface-soft:#fafafa;--text:#17181b;--muted:#6f747d;--line:#e7e9ed;
 --brand:#e6392f;--brand-dark:#c92e25;--dark:#17191d;--green:#15803d;--orange:#f59e0b;--red:#dc2626;--blue:#2563eb;
 --shadow-sm:0 4px 18px rgba(17,24,39,.06);--shadow:0 18px 50px rgba(17,24,39,.12);--radius:18px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}
body.modal-open{overflow:hidden}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
a{color:inherit}
img{max-width:100%}
.container{width:min(1180px,100%);margin:0 auto;padding:24px}
.muted{color:var(--muted)}
.topbar{position:sticky;top:0;z-index:60;min-height:72px;padding:10px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(231,233,237,.9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.brand{display:flex;align-items:center;gap:11px;min-width:0;font-weight:900;letter-spacing:-.02em}
.brand-copy{min-width:0;display:flex;flex-direction:column;line-height:1.1}
.brand-copy>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand-copy small{margin-top:5px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em}
.logo{width:48px;height:48px;flex:0 0 48px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff;padding:3px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}
.elevated{box-shadow:var(--shadow)}
.btn{appearance:none;border:0;border-radius:12px;min-height:43px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-weight:850;line-height:1.1;cursor:pointer;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
.btn:hover{filter:brightness(.98)}.btn:active{transform:scale(.975)}.btn:disabled{opacity:.58;cursor:not-allowed;transform:none}
.btn.primary{background:var(--dark);color:#fff}.btn.brand{background:var(--brand);color:#fff}.btn.green{background:var(--green);color:#fff}.btn.orange{background:var(--orange);color:#171717}.btn.red{background:var(--red);color:#fff}.btn.blue{background:var(--blue);color:#fff}.btn.gray{background:#eef0f3;color:#25272b}.btn.outline{background:#fff;color:var(--text);border:1px solid var(--line)}.btn.small{min-height:36px;padding:8px 11px;font-size:12px}
input,select,textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #dfe2e7;border-radius:12px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}
textarea{min-height:92px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#a2a7b0;box-shadow:0 0 0 4px rgba(23,25,29,.06)}
label{display:block;margin:8px 0 6px;color:#3d4148;font-size:12px;font-weight:850}.field-hint{margin-top:5px;color:var(--muted);font-size:11px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.error,.success,.info,.checkout-error{border-radius:12px;padding:11px 12px;font-size:13px}.error,.checkout-error{background:#fff1f1;color:#991b1b;border:1px solid #fecaca}.success{background:#effcf3;color:#166534;border:1px solid #bbf7d0}.info{background:#eff6ff;color:#1e4e8c;border:1px solid #cfe1ff}
.eyebrow{color:var(--brand);font-size:11px;font-weight:950;letter-spacing:.11em;text-transform:uppercase}
.section-title{margin:22px 0 13px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.section-title h2{margin:0;font-size:22px;letter-spacing:-.025em}.section-title p{margin:2px 0 0;color:var(--muted);font-size:13px}
.hero{padding:22px 0 8px}.hero h1{margin:6px 0 8px;font-size:clamp(30px,4.7vw,46px);line-height:1.03;letter-spacing:-.05em}.hero p{max-width:620px;margin:0;color:var(--muted)}
.search-shell{position:relative;margin:18px 0 8px}.search-shell svg{position:absolute;left:15px;top:50%;width:18px;transform:translateY(-50%);color:#858b94}.search-shell input{height:52px;padding-left:44px;border-radius:15px;box-shadow:var(--shadow-sm)}
.category-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 0 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.category-tabs::-webkit-scrollbar{display:none}.category-tabs .chip{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:#fff;color:#303238;font-size:13px;font-weight:850;cursor:pointer}.category-tabs .chip.active{background:var(--dark);border-color:var(--dark);color:#fff}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px}.product{position:relative;min-width:0;min-height:100%;display:flex;flex-direction:column;overflow:hidden;padding:12px;transition:transform .18s ease,box-shadow .18s ease}.product:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.product-media{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:#f0f1f3}.product-media img{width:100%;height:100%;display:block;object-fit:cover}.food-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#fff2e8,#f3f4f6);font-size:50px}.featured-tag{position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:999px;background:rgba(23,25,29,.9);color:#fff;font-size:9px;font-weight:950;letter-spacing:.07em}
.product-body{min-width:0;display:flex;flex:1;flex-direction:column;padding:11px 2px 2px}.product-body>.muted{display:flex;align-items:center;gap:6px;font-size:11px}.veg-dot{width:12px;height:12px;border:2px solid currentColor;display:inline-grid;place-items:center;border-radius:2px}.veg-dot:after{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.veg{color:#16833e}.nonveg{color:#c62828}.product h3{margin:5px 0 3px;font-size:17px;line-height:1.2;letter-spacing:-.025em}.product-desc{min-height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--muted);font-size:12px}.product-bottom{margin-top:auto;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.price{font-size:19px;font-weight:950;letter-spacing:-.025em}.product-bottom .btn{min-width:74px}
.empty-state{padding:28px 16px;text-align:center;color:var(--muted)}.empty-state .emoji{margin-bottom:7px;font-size:34px}
.sticky-cart{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:80;width:min(700px,calc(100% - 22px));transform:translateX(-50%);padding:10px 11px 10px 14px;display:none;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:17px;background:#17191d;color:#fff;box-shadow:0 16px 42px rgba(0,0,0,.28);cursor:pointer}.sticky-cart.show{display:flex}.cart-meta{color:#c5c8ce;font-size:11px}.cart-total{font-size:18px;font-weight:950}
.ux-modal{position:fixed;inset:0;z-index:500;display:none;align-items:flex-end;justify-content:center}.ux-modal.show{display:flex}.ux-backdrop{position:absolute;inset:0;background:rgba(10,12,15,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.ux-sheet{position:relative;z-index:1;width:min(620px,100%);max-height:min(90vh,820px);overflow:auto;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.24);padding:22px max(18px,env(safe-area-inset-left)) max(22px,calc(env(safe-area-inset-bottom) + 18px));animation:sheetUp .2s ease-out}@keyframes sheetUp{from{transform:translateY(22px);opacity:.6}to{transform:none;opacity:1}}
.alert-sheet{text-align:center;padding-top:28px}.alert-hero-icon{width:72px;height:72px;margin:0 auto 14px;display:grid;place-items:center;border-radius:22px;background:#fff1ef;font-size:36px}.alert-sheet h2{margin:6px 0 9px;font-size:27px;line-height:1.08;letter-spacing:-.04em}.alert-sheet p{max-width:490px;margin:0 auto;color:var(--muted);font-size:14px}.alert-points{margin:18px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.alert-points span{padding:9px 6px;border:1px solid var(--line);border-radius:12px;background:#fafafa;font-size:11px;font-weight:800}.modal-primary{width:100%;min-height:52px;font-size:14px}.gate-later{margin:9px auto 0;padding:8px 12px;border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}.modal-note{display:block;margin-top:9px;color:#92969d;font-size:10px}
.sheet-handle{width:42px;height:4px;margin:-8px auto 15px;border-radius:999px;background:#d8dbe0}.sheet-head{position:sticky;top:-22px;z-index:2;margin:0 -18px 12px;padding:16px 18px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;background:rgba(255,255,255,.98);border-bottom:1px solid #f0f1f3}.sheet-head h2{margin:4px 0 0;font-size:22px;letter-spacing:-.03em}.sheet-close{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:50%;background:#f0f1f3;color:#333;font-size:24px;line-height:1;cursor:pointer}
.cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 0;border-bottom:1px dashed var(--line)}.cart-item:last-child{border-bottom:0}.qty-control{display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:999px;background:#fff}.qty-control button{width:34px;height:32px;border:0;background:#f3f4f6;font-size:18px;cursor:pointer}.qty-control span{min-width:32px;text-align:center;font-weight:900}.checkout-summary{margin:14px 0;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fafafa}.summary-row{margin:6px 0;display:flex;justify-content:space-between;gap:14px;font-size:13px}.summary-row.total{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:17px;font-weight:950}.checkout-error{margin-top:10px}
.track-wrap{max-width:700px;padding-top:28px}.track-card{text-align:center;padding:30px}.track-token-label{color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.12em}.track-token{margin:4px 0 12px;font-size:clamp(44px,10vw,72px);line-height:1;font-weight:1000;letter-spacing:-.06em}.track-status{margin:0;font-size:25px;letter-spacing:-.035em}.track-message{margin:8px auto 0;max-width:460px;color:var(--muted);font-size:14px}.status-timeline{position:relative;margin:28px 0 22px;display:grid;grid-template-columns:repeat(4,1fr)}.status-timeline:before{content:"";position:absolute;left:12.5%;right:12.5%;top:9px;height:2px;background:#e4e6e9}.timeline-step{position:relative;z-index:1;text-align:center}.timeline-dot{width:19px;height:19px;margin:0 auto 8px;border:4px solid #e4e6e9;border-radius:50%;background:#fff}.timeline-step.done .timeline-dot,.timeline-step.current .timeline-dot{border-color:var(--green);background:var(--green)}.timeline-step.current .timeline-dot{box-shadow:0 0 0 5px rgba(21,128,61,.12)}.timeline-label{color:#8a8f97;font-size:10px;font-weight:850}.timeline-step.done .timeline-label,.timeline-step.current .timeline-label{color:#30343a}.ready-box{display:none;margin:18px 0;padding:18px;border:1px solid #bbf7d0;border-radius:16px;background:#ecfdf3;color:#166534}.ready-box.show{display:block;animation:readyPulse 1.25s ease-in-out infinite alternate}@keyframes readyPulse{to{box-shadow:0 0 0 5px rgba(21,128,61,.08)}}
.permission-banner{margin:14px 0;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #fed7aa;border-radius:15px;background:#fff7ed}.permission-banner.enabled{border-color:#bbf7d0;background:#ecfdf3}.permission-banner .icon{font-size:24px}.permission-copy{min-width:0;flex:1}.permission-copy b{display:block;font-size:13px}.permission-copy small{display:block;color:#7a6048;font-size:11px}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.admin-sidebar{position:sticky;top:0;height:100vh;overflow:auto;padding:20px 14px;background:#17191d;color:#fff}.admin-sidebar>.brand{padding:2px 8px 20px}.admin-sidebar .logo{border-color:#34373d}.admin-sidebar .brand-copy small{color:#a9aeb7}.admin-nav{display:grid;gap:5px}.admin-nav a{padding:11px 12px;border-radius:11px;color:#cdd1d7;text-decoration:none;font-size:13px;font-weight:780}.admin-nav a:hover,.admin-nav a.active{background:#2a2d32;color:#fff}.admin-main{min-width:0;background:var(--bg)}.admin-top{position:sticky;top:0;z-index:40;height:70px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(14px)}.admin-content{width:100%;max-width:1500px;margin:0 auto;padding:24px}.page-head{margin-bottom:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.page-head h1{margin:0;font-size:28px;line-height:1.1;letter-spacing:-.04em}.page-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-sm)}.stat-label{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.06em}.stat-value{margin-top:4px;font-size:28px;font-weight:1000;letter-spacing:-.04em}.stat-sub{margin-top:3px;color:var(--muted);font-size:11px}.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}.card.table-wrap{padding:0}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:13px 14px;border-bottom:1px solid #edf0f2;text-align:left;white-space:nowrap;font-size:13px;vertical-align:middle}th{position:sticky;top:0;z-index:2;background:#fafbfc;color:#777d87;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fcfcfd}.badge{padding:6px 9px;display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#eee;font-size:10px;font-weight:900;letter-spacing:.025em}.badge.new{background:#fee2e2;color:#a31818}.badge.confirmed{background:#dbeafe;color:#194da7}.badge.preparing{background:#ffedd5;color:#a84c04}.badge.ready{background:#dcfce7;color:#0e7138}.badge.completed{background:#eceef0;color:#535962}.badge.cancelled{background:#f1f1f1;color:#777}.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.center{min-height:100vh;padding:20px;display:grid;place-items:center;background:radial-gradient(circle at top,#fff,#f2f3f6 60%)}.auth{width:min(430px,100%)}.auth-card{padding:28px}
.kitchen-body{background:#f3f4f6}.kitchen-body .container{width:min(1480px,100%)}.kitchen-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.sound-indicator{height:36px;padding:0 11px;display:inline-flex;align-items:center;gap:7px;border:1px solid #e1e3e6;border-radius:999px;background:#fff;color:#666b73;font-size:11px;font-weight:850}.sound-dot{width:8px;height:8px;border-radius:50%;background:#b7bbc2}.sound-indicator.on{border-color:#bbf7d0;background:#ecfdf3;color:#166534}.sound-indicator.on .sound-dot{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.12)}.kitchen-stats{margin-bottom:14px;display:flex;gap:8px;flex-wrap:wrap}.kstat{padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;font-weight:800}.kstat b{margin-left:4px}.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.order-card{position:relative;overflow:hidden;padding:16px;border-top-width:4px}.order-card.new{border-top-color:#dc2626}.order-card.confirmed{border-top-color:#2563eb}.order-card.preparing{border-top-color:#f59e0b}.order-card.ready{border-top-color:#16a34a}.order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.token{font-size:29px;font-weight:1000;line-height:1;letter-spacing:-.04em}.order-time{margin-top:5px;color:var(--muted);font-size:10px}.order-items{margin:12px 0 0;padding:10px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}.order-line{padding:4px 0;display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px;font-size:13px}.order-note{margin-top:10px;padding:9px 10px;border-radius:10px;background:#fff7ed;color:#754d22;font-size:12px}.alert-sheet .checkout-error{margin-top:10px;text-align:left}
@media (max-width:980px){
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell{grid-template-columns:210px minmax(0,1fr)}
 .admin-sidebar{padding-left:10px;padding-right:10px}
 .admin-content{padding:20px}
}
@media (max-width:700px){
 .container{padding:16px}
 .topbar{min-height:62px;padding:8px 13px}.logo{width:42px;height:42px;flex-basis:42px;border-radius:12px}.brand{gap:9px;font-size:14px}.brand-copy small{font-size:9px}
 .hero{padding:18px 0 7px}.hero h1{font-size:31px}.hero p{font-size:13px}.search-shell{margin-top:14px}.search-shell input{height:48px}
 .section-title{margin-top:17px}.section-title h2{font-size:20px}
 .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{padding:8px;border-radius:15px}.product-media{border-radius:11px;aspect-ratio:1/1}.food-placeholder{font-size:38px}.featured-tag{left:6px;top:6px;padding:4px 6px;font-size:8px}.product-body{padding-top:8px}.product-body>.muted{font-size:9px}.veg-dot{width:10px;height:10px}.product h3{margin-top:4px;font-size:14px}.product-desc{min-height:30px;font-size:10px;line-height:1.35}.product-bottom{padding-top:9px}.price{font-size:15px}.product-bottom .btn{min-width:59px;min-height:34px;padding:7px 8px;border-radius:9px;font-size:11px}
 .sticky-cart{bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);border-radius:15px}.sticky-cart .btn{min-height:35px}
 .ux-sheet{max-height:92dvh;padding-left:16px;padding-right:16px}.alert-sheet{padding-top:24px}.alert-hero-icon{width:64px;height:64px;font-size:31px}.alert-sheet h2{font-size:25px}.alert-points{gap:6px}.alert-points span{font-size:10px}.sheet-head{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.form-row{grid-template-columns:1fr;gap:2px}.checkout-sheet textarea{min-height:72px}.modal-primary{position:sticky;bottom:0;z-index:1}
 .track-wrap{padding-top:18px}.track-card{padding:24px 14px}.track-token{font-size:56px}.track-status{font-size:22px}.status-timeline{margin-left:-5px;margin-right:-5px}.timeline-label{font-size:9px}.permission-banner{align-items:flex-start}.permission-banner .btn{flex:0 0 auto}
 .page-head{align-items:flex-start;flex-direction:column}.page-head>.btn{width:100%}
 .kitchen-toolbar{gap:5px}.kitchen-body .topbar{align-items:flex-start;flex-direction:column}.kitchen-body .topbar .brand{width:100%}.kitchen-toolbar{width:100%;justify-content:flex-start}.kitchen-toolbar .btn{min-height:36px;padding:8px 10px;font-size:11px}.sound-indicator{height:34px}.order-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
 .admin-shell{display:block}.admin-sidebar{position:relative;width:100%;height:auto;padding:12px}.admin-sidebar>.brand{padding:2px 4px 10px}.admin-nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:2px;scrollbar-width:none}.admin-nav::-webkit-scrollbar{display:none}.admin-nav a{flex:0 0 auto;padding:9px 10px;background:#22252a}
 .admin-top{height:60px;padding:0 14px}.admin-content{padding:15px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:13px}.stat-value{font-size:23px}.page-head h1{font-size:24px}
 th,td{padding:11px 12px}.card:not(.product):not(.track-card){border-radius:15px}
}
@media (max-width:380px){.menu-grid{gap:8px}.product{padding:7px}.product h3{font-size:13px}.price{font-size:14px}.alert-points{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr}}
