:root {
  --ink: #18201b;
  --muted: #6e776f;
  --line: #e8ebe7;
  --paper: #f8faf7;
  --white: #fff;
  --green: #145a3a;
  --green-2: #1d7650;
  --green-soft: #e8f3ed;
  --lime: #b9e55a;
  --orange: #ef7a3a;
  --orange-soft: #fff0e6;
  --yellow: #f6c453;
  --red: #d94a4a;
  --blue: #477ad8;
  --shadow: 0 16px 40px rgba(23, 43, 31, .09);
  --shadow-sm: 0 8px 20px rgba(23, 43, 31, .07);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Tajawal", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.material-symbols-rounded { font-size: 22px; line-height: 1; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }

/* Launcher */
.launcher-body { background: #121813; color: #f6f8f2; min-height: 100vh; }
.launcher-body:before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 7%, rgba(185,229,90,.12), transparent 26%), radial-gradient(circle at 5% 55%, rgba(239,122,58,.08), transparent 29%); }
.launcher { width: min(1240px, calc(100% - 44px)); margin: auto; position: relative; }
.launcher-nav { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.brand-light .brand-mark { background: var(--lime); color: #132317; }
.brand b { display: block; font-size: 20px; letter-spacing: -.3px; }
.brand small { color: #9ca69d; display: block; font-size: 10px; margin-top: 1px; }
.demo-pill { padding: 8px 13px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05); border-radius: 99px; font-size: 12px; color: #c8d0c7; display: flex; align-items: center; gap: 8px; }
.demo-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,229,90,.1); }
.launcher-hero { min-height: 540px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 80px; align-items: center; padding: 62px 0 74px; }
.eyebrow { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .4px; }
.launcher-copy h1 { font-size: clamp(48px, 6vw, 80px); line-height: .99; margin: 15px 0 25px; letter-spacing: -3px; }
.launcher-copy h1 em { color: var(--lime); font-style: normal; }
.launcher-copy > p { max-width: 570px; font-size: 18px; color: #aeb7ae; line-height: 1.8; margin: 0; }
.launcher-stats { display: flex; gap: 44px; margin-top: 38px; }
.launcher-stats span { display: grid; gap: 2px; }
.launcher-stats b { font-size: 24px; color: #fff; }
.launcher-stats small { font-size: 12px; color: #7f8b81; }
.hero-visual { height: 410px; position: relative; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 280px; height: 280px; border-color: rgba(185,229,90,.15); }
.hero-card { position: relative; z-index: 2; background: white; color: var(--ink); width: 320px; padding: 10px; border-radius: 28px; transform: rotate(3deg); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.hero-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 21px; }
.hero-card div { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 7px; font-size: 13px; }
.hero-card div b { color: var(--green-2); }
.float-chip { position: absolute; z-index: 3; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 15px; padding: 12px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 7px; font-size: 12px; backdrop-filter: blur(10px); }
.float-chip .material-symbols-rounded { color: var(--orange); }
.float-top { top: 35px; right: 4px; transform: rotate(-4deg); }
.float-bottom { bottom: 34px; left: -2px; transform: rotate(2deg); }
.role-section { border-top: 1px solid rgba(255,255,255,.09); padding: 68px 0 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { font-size: 34px; margin: 6px 0 0; letter-spacing: -.7px; }
.section-heading p { width: 360px; color: #849086; line-height: 1.7; font-size: 13px; margin: 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; direction: rtl; }
.role-card { min-height: 370px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); border-radius: 26px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, background .3s; }
.role-card:after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -110px; top: -110px; background: var(--role-glow); filter: blur(30px); opacity: .18; }
.role-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.065); }
.customer-role { --role: var(--lime); --role-glow: var(--lime); }
.restaurant-role { --role: #f4a16f; --role-glow: var(--orange); }
.platform-role { --role: #80a6ee; --role-glow: #477ad8; }
.role-number { position: absolute; left: 24px; top: 21px; font-weight: 800; color: rgba(255,255,255,.14); font-size: 26px; }
.role-icon { width: 54px; height: 54px; background: color-mix(in srgb, var(--role) 16%, transparent); color: var(--role); border-radius: 17px; display: grid; place-items: center; margin-bottom: 25px; }
.role-icon .material-symbols-rounded { font-size: 29px; }
.role-kicker { color: var(--role); font-size: 12px; font-weight: 700; }
.role-card h3 { font-size: 24px; margin: 6px 0 10px; }
.role-card p { color: #9da79e; line-height: 1.7; margin: 0; font-size: 14px; }
.role-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.role-features i { font-style: normal; font-size: 10px; color: #abb4ac; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 5px 9px; }
.role-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: #fff; font-weight: 700; font-size: 13px; }
.role-link .material-symbols-rounded { color: var(--role); transition: transform .25s; }
.role-card:hover .role-link .material-symbols-rounded { transform: translateX(-5px); }
.launcher-footer { border-top: 1px solid rgba(255,255,255,.09); padding: 25px 0 34px; color: #727d73; display: flex; justify-content: space-between; font-size: 11px; }

/* Shared application shell */
.app-body { background: #f5f7f3; min-height: 100vh; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #17221b; color: #fff; padding: 24px 17px; display: flex; flex-direction: column; z-index: 30; }
.sidebar .brand { padding: 0 7px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand-mark { background: var(--lime); color: #17311f; }
.workspace-switch { margin: 18px 3px 15px; padding: 11px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); border-radius: 13px; display: flex; align-items: center; gap: 9px; }
.workspace-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; font-weight: 800; }
.workspace-switch div { min-width: 0; flex: 1; }
.workspace-switch b, .workspace-switch small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-switch b { font-size: 12px; }
.workspace-switch small { font-size: 9px; color: #8f9b92; margin-top: 3px; }
.sidebar-label { font-size: 9px; font-weight: 700; color: #6f7c72; padding: 10px 11px 6px; }
.side-nav { display: grid; gap: 3px; overflow-y: auto; scrollbar-width: none; }
.nav-link { color: #a9b4ac; border: 0; background: transparent; text-align: right; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; font-size: 12px; transition: .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: #15271a; background: var(--lime); font-weight: 700; }
.nav-link .material-symbols-rounded { font-size: 19px; }
.nav-link .nav-badge { margin-right: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 9px; background: rgba(255,255,255,.1); color: #dbe2dc; }
.nav-link.active .nav-badge { background: rgba(21,39,26,.12); color: #15271a; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.main-area { min-width: 0; }
.topbar { height: 76px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.page-intro h1 { margin: 0; font-size: 21px; letter-spacing: -.2px; }
.page-intro p { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 39px; height: 39px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #455148; display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn:hover { background: #f6f8f5; }
.icon-btn .dot { width: 7px; height: 7px; background: var(--red); border: 2px solid white; border-radius: 50%; position: absolute; top: 7px; right: 7px; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding-right: 4px; }
.avatar { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 12px; }
.profile-chip b, .profile-chip small { display: block; }
.profile-chip b { font-size: 11px; }
.profile-chip small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.content { padding: 27px 32px 54px; max-width: 1500px; margin: auto; }
.view { animation: fadeUp .35s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(24,32,27,.025); }
.card-pad { padding: 21px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.metric-card { padding: 18px; position: relative; min-height: 126px; overflow: hidden; }
.metric-card:after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: var(--metric-color, var(--green)); opacity: .05; left: -20px; bottom: -30px; }
.metric-head { display: flex; justify-content: space-between; align-items: center; }
.metric-icon { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--metric-color, var(--green)) 11%, white); color: var(--metric-color, var(--green)); display: grid; place-items: center; }
.metric-change { color: var(--green-2); background: var(--green-soft); padding: 4px 7px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.metric-card strong { display: block; font-size: 24px; margin: 15px 0 2px; }
.metric-card small { color: var(--muted); font-size: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-head h2 { font-size: 15px; margin: 0; }
.card-head p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.text-link { border: 0; background: transparent; color: var(--green-2); font-weight: 700; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.btn { border: 0; background: var(--green); color: white; border-radius: 11px; padding: 10px 15px; font-weight: 700; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .15s, background .15s; }
.btn:hover { background: #0e4b2f; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: #f7f8f6; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #da6930; }
.btn-danger { background: #fff0f0; color: var(--red); }
.btn-danger:hover { background: #ffe5e5; }
.btn-sm { padding: 7px 10px; font-size: 10px; border-radius: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success { background: #e9f5ee; color: #237249; }
.status-warning { background: #fff5d9; color: #9a6a06; }
.status-danger { background: #ffeded; color: #ba4141; }
.status-info { background: #eaf0fb; color: #4772bc; }
.status-neutral { background: #eef0ee; color: #69726b; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { text-align: right; color: #8a928c; font-size: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #f0f2ef; white-space: nowrap; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbf9; }
.entity-cell { display: flex; align-items: center; gap: 9px; }
.entity-img { width: 35px; height: 35px; border-radius: 10px; object-fit: cover; background: #eff2ee; }
.entity-cell b, .entity-cell small { display: block; }
.entity-cell b { font-size: 11px; }
.entity-cell small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.search-box { width: 250px; height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.search-box input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; font-size: 11px; }
.search-box .material-symbols-rounded { color: #929b94; font-size: 18px; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); background: white; color: #626b64; padding: 7px 11px; border-radius: 99px; font-size: 10px; cursor: pointer; }
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* Customer application */
.customer-body { --customer-width: 1180px; background: #f7f8f4; }
.customer-header { height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(15px); }
.customer-header-inner { max-width: var(--customer-width); height: 100%; margin: auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.customer-header .brand { margin-left: 12px; }
.customer-nav { display: flex; align-self: stretch; gap: 4px; }
.customer-nav button { border: 0; background: transparent; color: #687169; padding: 0 13px; position: relative; cursor: pointer; font-size: 12px; }
.customer-nav button.active { color: var(--green); font-weight: 800; }
.customer-nav button.active:after { content: ""; position: absolute; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); bottom: 0; right: 12px; left: 12px; }
.header-search { margin-right: auto; width: 225px; height: 40px; display: flex; align-items: center; gap: 8px; background: #f2f5f1; padding: 0 12px; border-radius: 12px; }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 11px; }
.customer-main { max-width: var(--customer-width); margin: auto; padding: 26px 22px 90px; }
.location-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.location-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.location-label strong { color: var(--ink); }
.customer-hero { min-height: 310px; border-radius: 29px; overflow: hidden; position: relative; background: #1b4e35; color: white; display: flex; align-items: center; padding: 42px; }
.customer-hero:after { content: ""; position: absolute; inset: 0 45% 0 0; background: linear-gradient(90deg, rgba(27,78,53,.05), #1b4e35); }
.customer-hero img { position: absolute; inset: 0 0 0 auto; width: 59%; height: 100%; object-fit: cover; opacity: .85; }
.hero-content { position: relative; z-index: 2; width: 50%; }
.hero-content .mini-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(185,229,90,.15); color: var(--lime); padding: 6px 10px; border-radius: 99px; font-size: 10px; }
.hero-content h1 { font-size: 37px; line-height: 1.2; margin: 12px 0 9px; letter-spacing: -.8px; }
.hero-content p { color: #bed0c3; font-size: 13px; margin: 0 0 22px; }
.section-block { margin-top: 30px; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.category-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.category-item { border: 1px solid var(--line); background: white; border-radius: 17px; padding: 14px 8px; text-align: center; cursor: pointer; transition: .2s; }
.category-item:hover, .category-item.active { transform: translateY(-2px); border-color: #a8c9b5; box-shadow: var(--shadow-sm); }
.category-item span:first-child { width: 39px; height: 39px; border-radius: 13px; margin: 0 auto 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.category-item b { display: block; font-size: 10px; }
.restaurant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.restaurant-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.restaurant-image { height: 165px; position: relative; overflow: hidden; }
.restaurant-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.restaurant-card:hover img { transform: scale(1.04); }
.restaurant-image .favorite { position: absolute; top: 11px; left: 11px; width: 33px; height: 33px; border-radius: 11px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; }
.offer-tag { position: absolute; bottom: 10px; right: 10px; background: var(--orange); color: white; padding: 6px 9px; border-radius: 8px; font-size: 9px; font-weight: 700; }
.restaurant-info { padding: 14px; }
.restaurant-title { display: flex; justify-content: space-between; gap: 10px; }
.restaurant-title h3 { font-size: 14px; margin: 0 0 4px; }
.restaurant-title p { font-size: 9px; color: var(--muted); margin: 0; }
.rating { font-size: 10px; display: flex; align-items: center; gap: 3px; }
.rating .material-symbols-rounded { color: var(--yellow); font-size: 15px; font-variation-settings: "FILL" 1; }
.restaurant-meta { display: flex; align-items: center; gap: 10px; color: #7b847d; font-size: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #f0f2ef; }
.restaurant-meta span { display: flex; align-items: center; gap: 3px; }
.restaurant-meta .material-symbols-rounded { font-size: 14px; }
.points-hint { margin-right: auto; color: var(--green-2); font-weight: 700; }
.customer-bottom-nav { display: none; }
.loyalty-banner { background: linear-gradient(120deg, #173f2c, #1d6845); color: white; padding: 25px; border-radius: 22px; display: flex; align-items: center; gap: 25px; position: relative; overflow: hidden; }
.loyalty-banner:after { content: ""; position: absolute; width: 180px; height: 180px; left: -40px; top: -70px; border: 30px solid rgba(185,229,90,.07); border-radius: 50%; }
.loyalty-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 19px; background: var(--lime); color: #173f2c; }
.loyalty-icon .material-symbols-rounded { font-size: 31px; }
.loyalty-banner h3 { margin: 0 0 5px; font-size: 18px; }
.loyalty-banner p { margin: 0; color: #b8cdbf; font-size: 11px; }
.loyalty-numbers { display: flex; gap: 24px; margin-right: auto; position: relative; z-index: 2; }
.loyalty-numbers span { display: grid; gap: 2px; }
.loyalty-numbers b { color: var(--lime); font-size: 21px; }
.loyalty-numbers small { font-size: 9px; color: #aebfb3; }

/* Charts and utility visuals */
.bar-chart { height: 210px; display: flex; align-items: end; gap: 13px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.bar-chart span { flex: 1; height: var(--h); min-width: 12px; max-width: 38px; margin: 0 auto; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--green-2), #86bd9f); position: relative; }
.bar-chart span:after { content: attr(data-label); position: absolute; bottom: -24px; right: 50%; transform: translateX(50%); font-size: 8px; color: var(--muted); }
.sparkline { width: 90px; height: 34px; }
.progress { height: 7px; border-radius: 99px; overflow: hidden; background: #edf0ec; }
.progress i { display: block; height: 100%; width: var(--value); border-radius: inherit; background: var(--bar, var(--green-2)); }
.donut { width: 154px; height: 154px; border-radius: 50%; background: conic-gradient(var(--green) 0 47%, var(--orange) 47% 71%, var(--yellow) 71% 87%, #dfe5df 87%); position: relative; display: grid; place-items: center; }
.donut:after { content: ""; width: 94px; height: 94px; border-radius: 50%; background: white; }
.donut-label { position: absolute; z-index: 2; text-align: center; }
.donut-label b { display: block; font-size: 22px; }
.donut-label small { color: var(--muted); font-size: 9px; }
.legend { display: grid; gap: 10px; }
.legend span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.legend b { color: var(--ink); margin-right: auto; }

/* Modal & toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(14,22,17,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(500px, 100%); max-height: 90vh; overflow-y: auto; background: white; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.24); animation: modalIn .25s both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: 0; background: #fbfcfa; font-size: 11px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8db8a0; box-shadow: 0 0 0 3px rgba(20,90,58,.07); }
.toast-stack { position: fixed; left: 24px; bottom: 24px; z-index: 150; display: grid; gap: 8px; }
.toast { min-width: 280px; padding: 13px 15px; background: #17221b; color: white; border-radius: 13px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px; font-size: 11px; animation: toastIn .3s both; }
.toast .material-symbols-rounded { color: var(--lime); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state .material-symbols-rounded { width: 60px; height: 60px; display: grid; place-items: center; margin: auto; background: #f0f3ef; color: #879189; border-radius: 20px; font-size: 30px; }
.empty-state h3 { font-size: 15px; margin: 14px 0 5px; }
.empty-state p { color: var(--muted); font-size: 10px; margin: 0 0 16px; }
.mobile-only { display: none; }

@media (max-width: 1050px) {
  .launcher-hero { gap: 30px; }
  .hero-visual { transform: scale(.87); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
  .category-strip { grid-template-columns: repeat(4, 1fr); }
  .customer-nav { display: none; }
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .launcher { width: min(100% - 28px, 580px); }
  .launcher-nav { height: 75px; }
  .demo-pill { font-size: 10px; }
  .launcher-hero { display: block; padding: 52px 0; min-height: auto; }
  .launcher-copy h1 { font-size: 47px; letter-spacing: -2px; }
  .launcher-copy > p { font-size: 15px; }
  .hero-visual { display: none; }
  .section-heading { display: block; }
  .section-heading p { width: auto; margin-top: 12px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 330px; }
  .launcher-footer { display: grid; gap: 7px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; right: 0; transform: translateX(100%); width: 250px; transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.22); }
  .topbar { padding: 0 16px; height: 67px; }
  .profile-chip div:last-child { display: none; }
  .content { padding: 18px 14px 80px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .mobile-only { display: grid; }
  .customer-header { height: 67px; }
  .customer-header-inner { padding: 0 14px; gap: 10px; }
  .customer-header .brand small, .customer-header .brand > span:last-child { display: none; }
  .header-search { flex: 1; width: auto; }
  .customer-main { padding: 15px 14px 82px; }
  .customer-hero { min-height: 340px; padding: 28px 24px; align-items: end; }
  .customer-hero img { width: 100%; }
  .customer-hero:after { inset: 25% 0 0; background: linear-gradient(0deg, #18472f 5%, rgba(24,71,47,.02)); }
  .hero-content { width: 100%; }
  .hero-content h1 { font-size: 29px; }
  .category-strip { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .category-item { min-width: 85px; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .restaurant-image { height: 190px; }
  .loyalty-banner { align-items: flex-start; flex-wrap: wrap; }
  .loyalty-numbers { width: 100%; margin: 0; }
  .customer-bottom-nav { display: flex; position: fixed; bottom: 0; right: 0; left: 0; height: 67px; z-index: 50; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(13px); justify-content: space-around; padding: 6px 4px; }
  .customer-bottom-nav button { border: 0; background: transparent; color: #89918a; min-width: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 8px; }
  .customer-bottom-nav button.active { color: var(--green); font-weight: 800; }
  .customer-bottom-nav .material-symbols-rounded { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Customer details, ordering and wallet */
.cart-count { position: absolute; top: -5px; left: -5px; width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: white; display: grid; place-items: center; font-size: 8px; border: 2px solid white; }
.view-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.view-header h1 { margin: 0; font-size: 27px; }
.view-header p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.back-btn { border: 0; background: white; border: 1px solid var(--line); border-radius: 11px; height: 39px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.restaurant-cover { height: 330px; border-radius: 26px; overflow: hidden; position: relative; }
.restaurant-cover img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-cover:after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(14,25,18,.82), transparent); }
.cover-info { position: absolute; z-index: 2; bottom: 25px; right: 28px; left: 28px; display: flex; align-items: end; color: white; }
.cover-info h1 { font-size: 27px; margin: 0 0 4px; }
.cover-info p { font-size: 10px; color: #d5ddd7; margin: 0; }
.cover-badge { margin-right: auto; background: rgba(255,255,255,.92); color: var(--ink); padding: 9px 12px; border-radius: 11px; font-size: 10px; }
.restaurant-tabs { display: flex; gap: 5px; margin: 16px 0; background: white; border: 1px solid var(--line); padding: 5px; border-radius: 14px; width: fit-content; }
.restaurant-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 8px 13px; cursor: pointer; font-size: 10px; color: var(--muted); }
.restaurant-tabs button.active { background: var(--green); color: white; font-weight: 700; }
.menu-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.menu-list { display: grid; gap: 11px; }
.menu-item-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 14px; }
.menu-item-card img { width: 105px; height: 92px; border-radius: 13px; object-fit: cover; }
.menu-item-card h3 { margin: 0 0 5px; font-size: 13px; }
.menu-item-card p { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 0 0 9px; }
.menu-item-card strong { color: var(--green); font-size: 12px; }
.add-circle { width: 34px; height: 34px; border: 0; border-radius: 11px; background: var(--green); color: white; display: grid; place-items: center; cursor: pointer; }
.cart-panel { position: sticky; top: 96px; padding: 18px; }
.cart-panel h2 { margin: 0 0 15px; font-size: 15px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.cart-item b { display: block; font-size: 11px; }
.cart-item small { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 7px; }
.quantity button { border: 1px solid var(--line); background: white; border-radius: 7px; width: 24px; height: 24px; cursor: pointer; }
.cart-summary { display: grid; gap: 8px; margin: 13px 0; font-size: 10px; }
.cart-summary span { display: flex; justify-content: space-between; }
.cart-summary .total { padding-top: 10px; border-top: 1px dashed #d9ded9; font-size: 12px; font-weight: 800; }
.cart-points { background: var(--green-soft); color: var(--green); padding: 9px 10px; border-radius: 10px; font-size: 9px; display: flex; align-items: center; gap: 6px; margin-bottom: 11px; }
.cart-panel .btn { width: 100%; }
.wallet-hero { background: linear-gradient(125deg, #123c29, #1d6a47); border-radius: 27px; padding: 29px; color: white; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.wallet-hero:before { content: ""; position: absolute; width: 260px; height: 260px; border: 38px solid rgba(185,229,90,.08); border-radius: 50%; left: -100px; top: -110px; }
.wallet-hero h1 { font-size: 34px; margin: 5px 0; color: var(--lime); }
.wallet-hero p { margin: 0; font-size: 10px; color: #a9c3b2; }
.wallet-stats { display: flex; gap: 27px; align-items: center; position: relative; }
.wallet-stats span { display: grid; gap: 3px; }
.wallet-stats b { font-size: 18px; }
.wallet-stats small { font-size: 8px; color: #a9c3b2; }
.wallet-hero .btn { position: relative; align-self: end; background: var(--lime); color: #173c29; }
.reward-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.reward-card { background: white; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; }
.reward-visual { height: 115px; background: linear-gradient(135deg, var(--reward-a), var(--reward-b)); display: grid; place-items: center; color: white; position: relative; }
.reward-visual .material-symbols-rounded { font-size: 43px; font-variation-settings: "FILL" 1; }
.reward-visual span.cost { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); color: var(--ink); padding: 5px 8px; font-size: 9px; border-radius: 8px; }
.reward-content { padding: 14px; }
.reward-content h3 { font-size: 13px; margin: 0 0 4px; }
.reward-content p { font-size: 9px; color: var(--muted); margin: 0 0 12px; }
.reward-content .btn { width: 100%; }
.ledger-list { display: grid; }
.ledger-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eff1ee; }
.ledger-item:last-child { border-bottom: 0; }
.ledger-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.ledger-item.minus .ledger-icon { background: var(--orange-soft); color: var(--orange); }
.ledger-item b { display: block; font-size: 11px; }
.ledger-item small { color: var(--muted); font-size: 9px; }
.ledger-amount { font-weight: 800; color: var(--green-2); font-size: 12px; }
.ledger-item.minus .ledger-amount { color: var(--orange); }
.order-card { padding: 18px; display: grid; grid-template-columns: 50px 1fr auto; gap: 13px; align-items: center; }
.order-logo { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 15px; font-weight: 800; }
.order-card h3 { font-size: 13px; margin: 0 0 4px; }
.order-card p { color: var(--muted); font-size: 9px; margin: 0; }
.order-side { text-align: left; }
.order-side b { display: block; font-size: 12px; margin-bottom: 6px; }
.order-timeline { display: grid; grid-template-columns: repeat(4,1fr); margin: 28px 0 18px; position: relative; }
.order-timeline:before { content: ""; position: absolute; top: 14px; right: 12.5%; left: 12.5%; height: 3px; background: #e4e8e4; }
.timeline-step { text-align: center; z-index: 2; font-size: 9px; color: var(--muted); }
.timeline-step i { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 7px; background: white; border: 3px solid #dfe4df; display: grid; place-items: center; font-style: normal; }
.timeline-step.done i { background: var(--green); border-color: var(--green); color: white; }
.timeline-step.active i { background: var(--lime); border-color: var(--green); color: var(--green); box-shadow: 0 0 0 5px rgba(20,90,58,.08); }
.qr-card { text-align: center; max-width: 390px; margin: auto; padding: 27px; }
.qr-box { width: 200px; height: 200px; margin: 19px auto; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.qr-grid { display: grid; grid-template-columns: repeat(11,1fr); gap: 2px; height: 100%; }
.qr-grid i { background: #17221b; border-radius: 1px; }
.qr-grid i.off { background: transparent; }
.countdown { color: var(--orange); font-size: 11px; font-weight: 700; }
.profile-layout { display: grid; grid-template-columns: 270px 1fr; gap: 17px; }
.profile-card { text-align: center; padding: 25px; }
.profile-avatar { width: 78px; height: 78px; border-radius: 25px; display: grid; place-items: center; margin: auto; background: var(--green-soft); color: var(--green); font-size: 23px; font-weight: 800; }
.profile-card h2 { margin: 13px 0 3px; font-size: 17px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 10px; }
.setting-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row > .material-symbols-rounded { width: 38px; height: 38px; border-radius: 11px; background: #f1f4f0; display: grid; place-items: center; color: #5b655e; }
.setting-row div { flex: 1; }
.setting-row b, .setting-row small { display: block; }
.setting-row b { font-size: 11px; }
.setting-row small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.toggle { width: 39px; height: 22px; border-radius: 99px; background: #cfd5cf; border: 0; padding: 3px; cursor: pointer; }
.toggle:after { content: ""; width: 16px; height: 16px; display: block; border-radius: 50%; background: white; transition: .2s; }
.toggle.on { background: var(--green); }
.toggle.on:after { transform: translateX(-17px); }

/* Restaurant workspace */
.date-note { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.live-orders { display: grid; gap: 9px; }
.live-order { border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.order-num { width: 42px; height: 42px; border-radius: 12px; background: #f1f4f0; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.live-order b { display: block; font-size: 11px; }
.live-order small { color: var(--muted); font-size: 9px; }
.status-select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; background: white; font-size: 9px; outline: 0; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f2ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.activity-icon.orange { background: var(--orange-soft); color: var(--orange); }
.activity-item b { display: block; font-size: 10px; }
.activity-item p { margin: 2px 0 0; font-size: 9px; color: var(--muted); }
.activity-item time { color: #a0a7a2; font-size: 8px; }
.order-board { display: grid; grid-template-columns: repeat(4, minmax(220px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.order-column { background: #edf0ec; border-radius: 17px; padding: 11px; min-height: 480px; }
.order-column-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 3px 11px; }
.order-column-head b { font-size: 11px; }
.column-count { width: 21px; height: 21px; border-radius: 7px; background: white; display: grid; place-items: center; font-size: 9px; }
.kanban-card { background: white; border: 1px solid #e1e5e1; border-radius: 13px; padding: 12px; margin-bottom: 9px; box-shadow: 0 3px 8px rgba(24,32,27,.04); }
.kanban-card header { display: flex; justify-content: space-between; align-items: center; }
.kanban-card header b { font-size: 11px; }
.kanban-card time { color: var(--orange); font-size: 9px; font-weight: 700; }
.kanban-card p { font-size: 9px; line-height: 1.6; color: var(--muted); margin: 9px 0; }
.kanban-card footer { border-top: 1px solid #eef0ee; padding-top: 9px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; }
.menu-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.menu-admin-card { padding: 11px; display: grid; grid-template-columns: 82px 1fr; gap: 11px; align-items: center; }
.menu-admin-card img { width: 82px; height: 75px; object-fit: cover; border-radius: 12px; }
.menu-admin-card h3 { font-size: 11px; margin: 0 0 3px; }
.menu-admin-card p { margin: 0 0 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.menu-admin-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; }
.tiny-toggle { width: 29px; height: 16px; padding: 2px; }
.tiny-toggle:after { width: 12px; height: 12px; }
.tiny-toggle.on:after { transform: translateX(-13px); }
.offer-admin-card { padding: 18px; position: relative; overflow: hidden; }
.offer-admin-card .offer-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--accent); }
.offer-admin-card h3 { font-size: 14px; margin: 13px 0 5px; }
.offer-admin-card p { color: var(--muted); font-size: 9px; line-height: 1.6; min-height: 30px; }
.offer-admin-card footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; }
.offer-admin-card footer span { color: var(--muted); font-size: 9px; }
.loyalty-rule { padding: 16px; display: flex; align-items: center; gap: 12px; }
.loyalty-rule > .material-symbols-rounded { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.loyalty-rule div { flex: 1; }
.loyalty-rule b, .loyalty-rule small { display: block; }
.loyalty-rule b { font-size: 11px; }
.loyalty-rule small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.scan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.scanner { min-height: 440px; background: #17221b; border-radius: 24px; color: white; display: grid; place-items: center; text-align: center; padding: 30px; position: relative; overflow: hidden; }
.scanner:before { content: ""; position: absolute; inset: 50%; width: 230px; height: 230px; transform: translate(-50%,-50%); border: 2px solid rgba(185,229,90,.8); border-radius: 23px; box-shadow: 0 0 0 999px rgba(4,10,6,.25); }
.scanner-line { position: absolute; z-index: 2; top: calc(50% - 80px); width: 190px; height: 2px; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(155px); } }
.scanner-content { z-index: 3; margin-top: 315px; }
.scanner-content h3 { font-size: 14px; margin: 0 0 5px; }
.scanner-content p { color: #aebbb2; font-size: 9px; margin: 0; }
.quick-action { padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .2s; }
.quick-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-action > .material-symbols-rounded { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.quick-action b, .quick-action small { display: block; }
.quick-action b { font-size: 11px; }
.quick-action small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.branch-card { overflow: hidden; }
.branch-cover { height: 120px; object-fit: cover; width: 100%; }
.branch-content { padding: 15px; }
.branch-content h3 { font-size: 13px; margin: 0 0 4px; }
.branch-content p { font-size: 9px; color: var(--muted); margin: 0 0 12px; }
.branch-content footer { display: flex; justify-content: space-between; align-items: center; }

/* Platform */
.platform-sidebar { background: #18243a; }
.platform-sidebar .brand-mark { background: #8bb0f7; }
.platform-sidebar .nav-link.active { background: #8bb0f7; color: #15233a; }
.platform-mode { margin: 18px 3px 10px; background: rgba(139,176,247,.1); border: 1px solid rgba(139,176,247,.17); border-radius: 13px; padding: 11px; display: flex; align-items: center; gap: 9px; }
.platform-mode > .material-symbols-rounded { color: #8bb0f7; }
.platform-mode b, .platform-mode small { display: block; }
.platform-mode b { font-size: 10px; }
.platform-mode small { color: #8496b6; font-size: 8px; margin-top: 3px; }
.platform-avatar { color: #2d579f; background: #eaf1ff; }
.nav-badge.alert { background: rgba(239,91,91,.2); color: #ff9d9d; }
.health-bar { background: linear-gradient(110deg, #1c2a43, #253c63); color: white; border-radius: 20px; padding: 19px 22px; display: flex; align-items: center; gap: 14px; }
.health-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(114,219,159,.13); color: #72db9f; display: grid; place-items: center; }
.health-bar h3 { margin: 0 0 3px; font-size: 13px; }
.health-bar p { margin: 0; color: #9eb0cd; font-size: 9px; }
.health-services { margin-right: auto; display: flex; gap: 17px; }
.health-services span { font-size: 9px; color: #b1bfd5; display: flex; align-items: center; gap: 5px; }
.health-services i { width: 6px; height: 6px; border-radius: 50%; background: #72db9f; }
.map-placeholder { min-height: 270px; border-radius: 16px; background-color: #edf1f5; background-image: linear-gradient(30deg, rgba(101,125,151,.08) 12%, transparent 12.5%, transparent 87%, rgba(101,125,151,.08) 87.5%), linear-gradient(150deg, rgba(101,125,151,.08) 12%, transparent 12.5%, transparent 87%, rgba(101,125,151,.08) 87.5%); background-size: 48px 84px; position: relative; overflow: hidden; }
.map-pin { position: absolute; right: var(--x); top: var(--y); width: 29px; height: 29px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--blue)); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(32,54,84,.2); }
.map-pin:after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: white; }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.plan-card { padding: 23px; position: relative; }
.plan-card.featured { border: 2px solid var(--blue); }
.popular-label { position: absolute; top: -11px; right: 50%; transform: translateX(50%); background: var(--blue); color: white; font-size: 9px; padding: 5px 11px; border-radius: 99px; }
.plan-card h3 { font-size: 17px; margin: 0; }
.plan-price { font-size: 30px; font-weight: 800; margin: 14px 0 3px; }
.plan-price small { font-size: 10px; color: var(--muted); font-weight: 500; }
.plan-card > p { color: var(--muted); font-size: 9px; min-height: 30px; }
.plan-features { display: grid; gap: 9px; margin: 17px 0; }
.plan-features span { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.plan-features .material-symbols-rounded { color: var(--green-2); font-size: 17px; }
.plan-card .btn { width: 100%; }
.signal-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 16px; }
.risk-score { width: 47px; height: 47px; border-radius: 14px; display: grid; place-items: center; background: #fff0f0; color: var(--red); font-size: 13px; font-weight: 800; }
.signal-card h3 { font-size: 11px; margin: 0 0 4px; }
.signal-card p { color: var(--muted); font-size: 9px; margin: 0; }
.approval-card { padding: 18px; }
.approval-head { display: flex; align-items: center; gap: 11px; }
.approval-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: white; font-size: 15px; font-weight: 800; background: var(--logo); }
.approval-head div { flex: 1; }
.approval-head h3 { margin: 0 0 3px; font-size: 12px; }
.approval-head p { margin: 0; color: var(--muted); font-size: 9px; }
.approval-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approval-details span { font-size: 9px; color: var(--muted); }
.approval-details b { color: var(--ink); }
.approval-actions { display: flex; gap: 7px; }
.audit-timeline { position: relative; padding-right: 22px; }
.audit-timeline:before { content: ""; position: absolute; right: 6px; top: 10px; bottom: 10px; width: 1px; background: #dfe4df; }
.audit-event { position: relative; padding: 0 13px 19px 0; }
.audit-event:before { content: ""; position: absolute; right: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--event, var(--green)); border: 3px solid white; box-shadow: 0 0 0 1px #dfe4df; }
.audit-event h3 { margin: 0 0 4px; font-size: 11px; }
.audit-event p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.audit-event time { color: #9da59f; font-size: 8px; }

@media (max-width: 1050px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .reward-grid, .menu-admin-grid, .plan-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .view-header { align-items: flex-start; }
  .view-header h1 { font-size: 22px; }
  .restaurant-cover { height: 370px; }
  .cover-info { display: block; }
  .cover-badge { display: inline-block; margin-top: 10px; }
  .menu-item-card { grid-template-columns: 78px 1fr auto; }
  .menu-item-card img { width: 78px; height: 75px; }
  .reward-grid, .menu-admin-grid, .plan-grid { grid-template-columns: 1fr; }
  .wallet-hero { grid-template-columns: 1fr; }
  .wallet-stats { flex-wrap: wrap; }
  .profile-layout, .scan-layout { grid-template-columns: 1fr; }
  .health-bar { align-items: flex-start; flex-wrap: wrap; }
  .health-services { margin: 0; width: 100%; flex-wrap: wrap; }
  .order-board { grid-template-columns: repeat(4, 255px); }
  .top-actions > .btn-light { display: none; }
}
