/* DeliveryLivre UI bundle - FTP safe */
:root {
  --primary: #315B8C;
  --primary-hover: #24456c;
  --primary-light: #e8f0fa;
  --accent: #ff6b18;
  --accent-light: #fff1e8;
  --success: #11845b;
  --danger: #b42318;
  --warning: #b54708;
  --warning-light: #fffaeb;
  --info: #2368b6;
  --info-light: #eff8ff;
  --background: #F7F2EB;
  --surface: #F7F2EB;
  --surface-soft: #EEEEEE;
  --text: #17202a;
  --text-secondary: #667085;
  --text-muted: #98a2b3;
  --border: #EAE2D6;
  --border-strong: #EAE2D6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, .10);
  --container-width: 1180px;
  --sidebar-width: 264px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--primary); }
:focus-visible { outline: 3px solid rgba(18, 107, 87, .22); outline-offset: 2px; }
.container { width: min(var(--container-width), calc(100% - 32px)); margin: 0 auto; }
main { width: min(var(--container-width), calc(100% - 32px)); margin: 0 auto; padding: var(--space-8) 0 var(--space-10); }
.admin-main { width: auto; max-width: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-logo { width: 210px; height: auto; max-height: 52px; object-fit: contain; }
.brand-symbol { width: 36px; height: 46px; object-fit: contain; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.btn, button, .primary-link {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover, button:hover, .primary-link:hover { background: var(--primary-hover); }
.btn-secondary, .secondary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(35,104,182,.20); }
.btn-secondary:hover, .secondary:hover { background: #dcefe9; color: var(--primary-hover); }
.btn-ghost { background: #fff3df; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #fee4e2; color: var(--danger); border: 1px solid #fecdca; }
.card, .empty, .auth-box, .wizard, .legal, .plan-card, .dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.empty, .empty-state {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-secondary);
}
.alert, .flash {
  width: min(var(--container-width), calc(100% - 32px));
  margin: var(--space-4) auto 0;
  border: 1px solid #fedf89;
  background: var(--warning-light);
  color: #7a2e0e;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.badge-success, .open { background: #ecfdf3; color: var(--success); }
.badge-danger, .closed { background: #fef3f2; color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-muted { background: #f2f4f7; color: #475467; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
label { display: grid; gap: 7px; font-weight: 700; color: #344054; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff3df;
  color: var(--text);
  padding: 10px 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(35, 104, 182, .14);
}
.check { display: flex !important; align-items: center; gap: 10px; }
.check input { width: auto; min-height: auto; }
.page-header, .portal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
}
.compact-header {
  justify-content: flex-start;
  margin-bottom: var(--space-4);
}
.page-header h1, .portal-head h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: 0; }
.page-header p, .portal-head p, .muted, .auth-box p { margin: 6px 0 0; color: var(--text-secondary); }
.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 14px; }
th { background: #f9fafb; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: #fcfdfd; }
tbody tr:last-child td { border-bottom: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #F7F2EB;
  border-bottom: 1px solid #EAE2D6;
  backdrop-filter: blur(10px);
}
.topbar-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
}
.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
}
.location-bar {
  background: #F7F2EB;
  border-bottom: 1px solid #EAE2D6;
  padding: 14px 0 18px;
}
.header-location {
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
}
.header-location:hover { background: transparent; color: var(--primary-hover); }
.header-search input {
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid #315B8C;
  background: #EEEEEE;
  color: var(--text);
  font-weight: 900;
}
.header-search input::placeholder { color: #667085; font-weight: 800; }
.header-actions { display: none; }
.location-pill, .hamb {
  min-height: 42px;
  border: 1px solid #EAE2D6;
  background: #315B8C;
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  font-weight: 800;
}
.location-pill {
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.location-pill [data-location-label] {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hamb {
  display: inline-flex;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.hamb span { width: 20px; height: 2px; border-radius: 2px; background: #fff; display: block; transition: transform .18s ease, opacity .18s ease; }
.hamb.is-open { background: var(--primary-hover); border-color: var(--primary-hover); }
.hamb.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamb.is-open span:nth-child(2) { opacity: 0; }
.hamb.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  top: 106px;
  right: max(16px, calc((100vw - var(--container-width)) / 2));
  z-index: 120;
  width: min(260px, calc(100vw - 32px));
  background: #F7F2EB;
  border: 1px solid #EAE2D6;
  border-radius: var(--radius-md);
  padding: 8px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-md);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  min-height: 40px;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 900;
  color: var(--text);
  background: transparent;
}
.mobile-menu a:hover {
  color: #fff;
  background: #315B8C;
}
.flag-switch {
  border-bottom: 1px solid #EAE2D6;
  padding-bottom: 8px;
}
.flag-switch summary {
  min-height: 42px;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.flag-switch summary::-webkit-details-marker { display: none; }
.flag-switch summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.flag-switch[open] summary::after { transform: rotate(225deg); }
.flag-menu {
  display: grid;
  gap: 4px;
  padding: 4px 0 0;
}
.flag-menu span {
  min-height: 34px;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 800;
}
.hero {
  display: none;
}
.hero h1, .hero > p { display: none; }
.hero-location {
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(11,23,95,.50);
  color: #fff;
  padding: 9px 14px;
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-band {
  margin-top: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(247,242,235,.18);
  border: 1px solid #EAE2D6;
  box-shadow: var(--shadow-md);
}
.search-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px,.6fr) minmax(150px,.6fr) 52px; gap: 10px; }
.search-form input, .search-form select {
  border: 2px solid #315B8C;
  background: #EEEEEE;
  color: var(--text);
  font-weight: 900;
}
.search-form input::placeholder { color: #667085; font-weight: 800; }
.search-form select option { color: #17202a; background: #fff; }
.search-icon-btn {
  min-width: 48px;
  padding: 0;
  background: #315B8C;
  color: #fff;
  border: 0;
}
.icon-search {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 999px;
  display: inline-block;
  position: relative;
}
.icon-search::after {
  content: "";
  width: 9px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  position: absolute;
  right: -8px;
  bottom: -5px;
  transform: rotate(45deg);
}
.icon-location {
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 50% 0;
  display: inline-block;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  position: relative;
}
.icon-location::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  left: 3px;
  top: 3px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.category-strip, .filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0 22px;
  scrollbar-width: thin;
}
.category-chip, .filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid #EAE2D6;
  border-radius: 999px;
  padding: 7px 12px;
  background: #F7F2EB;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}
.category-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #EEEEEE;
  color: var(--primary);
  position: relative;
}
.category-chip.is-active { border-color: #315B8C; background: #e8f0fa; color: var(--primary-hover); }
.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.icon-all::before { width: 4px; height: 4px; border-radius: 50%; box-shadow: -5px -5px 0 currentColor, 5px -5px 0 currentColor, -5px 5px 0 currentColor, 5px 5px 0 currentColor; }
.icon-sweet::before { width: 13px; height: 13px; border-radius: 50%; }
.icon-sweet::after { width: 18px; height: 6px; border-radius: 999px; background: transparent; border: 2px solid currentColor; }
.icon-japanese::before { width: 3px; height: 18px; transform: rotate(28deg); left: 9px; top: 4px; }
.icon-japanese::after { width: 3px; height: 18px; transform: rotate(28deg); right: 9px; top: 4px; }
.icon-snack::before { width: 16px; height: 11px; border-radius: 10px 10px 4px 4px; top: 6px; }
.icon-snack::after { width: 18px; height: 3px; border-radius: 999px; bottom: 6px; }
.icon-meal::before { width: 17px; height: 11px; border-radius: 3px; bottom: 6px; }
.icon-meal::after { width: 13px; height: 3px; border-radius: 999px; top: 7px; }
.icon-market::before { width: 15px; height: 12px; border-radius: 2px 2px 5px 5px; bottom: 5px; }
.icon-market::after { width: 17px; height: 5px; border-radius: 7px 7px 2px 2px; top: 6px; }
.icon-pizza::before { width: 0; height: 0; background: transparent; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 17px solid currentColor; top: 5px; }
.icon-store::before { width: 15px; height: 11px; border-radius: 2px; bottom: 5px; }
.icon-store::after { width: 17px; height: 5px; border-radius: 7px 7px 2px 2px; top: 6px; }
.store-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.store-card {
  overflow: hidden;
  background: #fff3df;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(18,107,87,.24); }
.store-cover {
  height: 136px;
  background: linear-gradient(135deg, #dcefe9, #f4f7f6);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 30px;
}
.store-card-body { padding: 0 var(--space-4) var(--space-4); }
.store-heading { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: end; margin-top: -26px; }
.store-logo, .profile-logo {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.store-logo img, .profile-logo img, .cover img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.store-title { display: block; margin-top: 28px; font-size: 16px; font-weight: 900; text-decoration: none; line-height: 1.15; }
.store-desc { margin: 8px 0 0; min-height: 42px; color: var(--text-secondary); font-size: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--text-secondary); font-size: 13px; }
.profile { overflow: hidden; background: #fff3df; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.cover { height: clamp(210px, 32vw, 360px); background: linear-gradient(135deg, #eaf2ff, #fff1e8); display: grid; place-items: center; color: var(--primary); font-weight: 900; }
.profile-main { padding: var(--space-6); display: grid; grid-template-columns: 86px 1fr; gap: var(--space-5); align-items: center; }
.profile-main .profile-logo { width: 86px; height: 86px; border-radius: 22px; font-size: 34px; }
.profile-title h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.profile-title p { margin: 10px 0 0; color: var(--text-secondary); max-width: 760px; }
.link-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--space-6) var(--space-6); }
.link-grid a { border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; text-decoration: none; font-weight: 900; color: var(--primary); background: var(--primary-light); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 var(--space-6) var(--space-6); }
.gallery img { height: 150px; border-radius: var(--radius-md); object-fit: cover; }
.menu-view { padding: var(--space-6); border-top: 1px solid var(--border); }
.menu-view h2 { margin: 0 0 var(--space-4); font-size: 26px; }
.menu-view h3 { margin: var(--space-6) 0 var(--space-3); }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #fff3df;
}
.menu-item p { margin: 5px 0 0; color: var(--text-secondary); }
.admin-body { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; background: var(--background); }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--space-5);
  background: #071247;
  color: #dbe8ff;
  border-right: 1px solid #0b175f;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-sidebar .brand { color: #fff; margin-bottom: var(--space-4); }
.admin-brand {
  display: grid;
  gap: 6px;
  align-items: start;
  justify-items: start;
  background: #fffaf3;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  overflow: hidden;
}
.admin-brand .brand-logo { width: 172px; max-height: none; }
.admin-sidebar a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbe8ff;
  text-decoration: none;
  font-weight: 800;
}
.admin-sidebar a:hover, .admin-sidebar a.is-active { background: #fff; color: #0b175f; box-shadow: var(--shadow-sm); }
.admin-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.admin-sidebar a.is-active .admin-icon { background: var(--accent-light); color: var(--accent); }
.admin-spacer { flex: 1; }
.admin-main { padding: var(--space-8); }
.admin-topbar {
  display: none;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.dash-card { padding: var(--space-5); }
.dash-card span { color: var(--text-secondary); font-weight: 800; font-size: 13px; }
.dash-card strong { display: block; margin-top: 6px; font-size: 30px; line-height: 1; letter-spacing: 0; }
.dash-card small { color: var(--text-muted); }
.admin-action-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: end;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.admin-action-list { display: grid; gap: var(--space-3); }
.admin-action-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-actions form { display: inline-flex; gap: 8px; align-items: center; }
.inline-actions input[name="notes"] { min-width: 170px; min-height: 38px; }
.inline-actions button { min-height: 38px; padding: 8px 12px; }
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-5);
}
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.admin-filters input, .admin-filters select { max-width: 260px; min-height: 42px; }
.table-actions { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.btn-small { min-height: 34px; padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 31, 27, .42);
}
.modal.is-open { display: flex; }
.modal-panel {
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.modal-header, .modal-footer {
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.modal-footer { border-top: 1px solid var(--border); border-bottom: 0; justify-content: flex-end; }
.modal-header h2 { margin: 0; font-size: 22px; }
.modal-body { padding: var(--space-5); display: grid; gap: var(--space-4); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 140; display: grid; gap: 10px; }
.toast { padding: 12px 14px; border-radius: var(--radius-md); background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; box-shadow: var(--shadow-md); font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.plan-card { padding: var(--space-6); cursor: pointer; }
.plan-card input { width: auto; min-height: auto; }
.plan-card strong { font-size: 20px; }
.plan-card .plan-price { color: var(--primary); font-size: 28px; font-weight: 900; line-height: 1.1; }
.plan-card .badge { font-size: 12px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-5); }
.action-row a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}
.auth-box { width: min(560px, 100%); margin: var(--space-8) auto; padding: var(--space-8); }
.auth-box h1, .wizard h1 { margin: 0 0 8px; font-size: 32px; }
.auth-box form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.demo-users { margin-top: var(--space-5); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-users strong { grid-column: 1 / -1; }
.demo-users button { min-height: 38px; padding: 8px; background: var(--primary-light); color: var(--primary); border: 1px solid rgba(35,104,182,.20); }
.wizard { padding: var(--space-8); }
.wizard form { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.wizard fieldset { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.wizard legend { padding: 0 8px; font-weight: 900; color: var(--primary); }
.wizard textarea, .wizard label:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 1180px) {
  .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: 1fr auto auto; min-height: auto; padding: 12px 0; }
  .brand-logo { width: 170px; }
  .header-search { grid-column: 1 / -1; order: 2; }
  .location-bar { padding: 10px 0 12px; }
  .header-actions { display: none; }
  .search-form { grid-template-columns: 1fr; }
  .mobile-menu { top: 142px; right: 12px; }
  .hero { border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .profile-main { grid-template-columns: 1fr; text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .admin-body { display: block; }
  .admin-topbar { display: flex; position: sticky; top: 0; z-index: 60; }
  .admin-mobile-logo { width: 160px; }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, var(--sidebar-width));
    z-index: 80;
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-main { padding: var(--space-5); }
}
@media (max-width: 720px) {
  main, .container { width: min(100% - 24px, var(--container-width)); }
  .page-header, .portal-head { display: grid; align-items: start; }
  .store-list { grid-template-columns: 1fr; }
  .store-cover { height: 150px; }
  .dashboard-grid, .plan-grid, .form-grid, .wizard fieldset { grid-template-columns: 1fr; }
  .admin-action-item { grid-template-columns: 1fr; }
  .inline-actions, .inline-actions form { width: 100%; }
  .inline-actions button, .inline-actions input, .inline-actions select { width: 100%; }
  .admin-toolbar { display: grid; }
  .admin-filters input, .admin-filters select { max-width: none; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .demo-users { grid-template-columns: repeat(2, 1fr); }
  table { min-width: 680px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .profile-main, .menu-view, .link-grid, .gallery { padding-left: var(--space-4); padding-right: var(--space-4); }
  .auth-box, .wizard { padding: var(--space-5); }
}
