/* ============================================================
   NuevaExpress — Main Stylesheet
   Colors from logo: blue #4A90D9, green #2ECC71, gold #F5C518, purple #7B4FBF
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --off-white:  #f8f9fa;
  --bg:         #f4f6f9;
  --charcoal:   #1a1a2e;
  --ink:        #2d2d3a;
  --muted:      #6b7280;
  --border:     #e5e7eb;

  /* Brand colors from logo */
  --blue:       #4A90D9;
  --blue-dark:  #3578c7;
  --green:      #2ECC71;
  --green-dark: #27ae60;
  --gold:       #F5C518;
  --gold-dark:  #e0b000;
  --purple:     #7B4FBF;

  /* Accent = blue (primary brand color) */
  --accent:     #4A90D9;
  --accent2:    #2ECC71;

  --success:    #2ECC71;
  --warning:    #F5C518;
  --danger:     #e63946;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: 200ms ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.15; color: var(--charcoal); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800;
}
.logo img { height: 40px; width: auto; border-radius: 8px; object-fit: cover; }
.logo-text { color: var(--blue); }
.logo-text span { color: var(--green); }
.nav-right { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white; padding: 9px 20px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 8px rgba(74,144,217,.3);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,144,217,.4); }

.btn-ghost {
  background: transparent; color: var(--ink); padding: 9px 16px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: .9rem;
  border: 1.5px solid var(--border); cursor: pointer; transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal) 0%, #16213e 60%, #0f3460 100%);
  padding: 80px 24px 90px; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(74,144,217,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(46,204,113,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(245,197,24,.15) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: white; font-weight: 800; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 36px; }
.accent { color: var(--gold); }
.accent-green { color: var(--green); }

.search-bar {
  display: flex; background: white; border-radius: 50px;
  padding: 6px 6px 6px 24px; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); max-width: 580px; margin: 0 auto;
}
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  font-family: 'DM Sans', sans-serif; color: var(--ink); background: transparent;
}
.btn-search {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: none; border-radius: 40px;
  padding: 10px 20px; cursor: pointer; display: flex; align-items: center;
  transition: var(--transition); box-shadow: 0 2px 8px rgba(74,144,217,.4);
}
.btn-search svg { width: 20px; height: 20px; stroke: white; }
.btn-search:hover { filter: brightness(1.1); }

/* ── Section Titles ──────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.5rem; font-weight: 700; }
.see-all { color: var(--blue); font-weight: 600; font-size: .9rem; cursor: pointer; }
.see-all:hover { color: var(--blue-dark); text-decoration: underline; }

/* ── Categories ──────────────────────────────────────────── */
.categories-section { padding: 32px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.categories-track {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.categories-track::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  border: 1.5px solid var(--border); background: white;
  font-size: .9rem; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: var(--transition);
  font-family: 'DM Sans', sans-serif; color: var(--ink);
}
.cat-chip:hover { border-color: var(--blue); color: var(--blue); background: #f0f7ff; }
.cat-chip.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Business Sections / Carousel ────────────────────────── */
.biz-section { padding: 48px 0; }
.biz-section:nth-child(even) { background: var(--white); }
.biz-section:nth-child(odd) { background: var(--bg); }

.carousel-wrapper { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-btn {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: white; border: none; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow); transition: var(--transition);
}
.carousel-btn:hover { background: var(--blue); color: white; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
@media (min-width: 768px) { .carousel-btn { display: flex; align-items: center; justify-content: center; } }

/* ── Business Card ───────────────────────────────────────── */
.biz-card {
  flex: 0 0 280px; background: white; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; scroll-snap-align: start;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-photo { height: 180px; background-size: cover; background-position: center; position: relative; background-color: #e8eaf0; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600;
  color: white; backdrop-filter: blur(4px);
}
.card-delivery {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(46,204,113,.9); color: white;
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.card-body { padding: 16px; }
.card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: .85rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { background: #f0f7ff; color: var(--blue); padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.rating { font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.zone { font-size: .8rem; color: var(--muted); }

/* ── Businesses Grid ─────────────────────────────────────── */
.businesses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 24px; } }
.modal-box {
  background: white; border-radius: 20px 20px 0 0; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative; max-width: 760px;
}
@media (min-width: 640px) { .modal-box { border-radius: 20px; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(0,0,0,.5); color: white; border: none;
  border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.modal-photos { background: var(--charcoal); min-height: 220px; }
.photos-scroll { display: flex; gap: 4px; overflow-x: auto; max-height: 280px; }
.photos-scroll img { height: 280px; width: auto; object-fit: cover; flex-shrink: 0; }
.modal-cover { height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--charcoal), #0f3460); }
.modal-logo-text { font-family: 'Syne', sans-serif; font-size: 2rem; color: white; font-weight: 800; }
.modal-info { padding: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-cat-badge { display: inline-block; background: #f0f7ff; color: var(--blue); border-radius: 20px; padding: 4px 12px; font-size: .8rem; margin-bottom: 8px; font-weight: 600; }
.modal-info h2 { font-size: 1.6rem; }
.modal-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-action {
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: var(--transition); border: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-action.call { background: #e8f5e9; color: #1b5e20; }
.btn-action.call:hover { background: var(--green); color: white; }
.btn-action.whatsapp { background: #e8f5e9; color: #075e54; }
.btn-action.whatsapp:hover { background: #25d366; color: white; }
.modal-desc { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.modal-section { margin: 20px 0; }
.modal-section h4 { font-family: 'Syne', sans-serif; font-size: 1rem; margin-bottom: 10px; color: var(--blue); }
.modal-meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.meta-item { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); }
.meta-item a { color: var(--blue); }
.btn-maps {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e8f0fe; color: var(--blue); padding: 10px 20px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  margin: 8px 0; transition: var(--transition);
}
.btn-maps:hover { background: var(--blue); color: white; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.product-card { background: var(--off-white); border-radius: var(--radius-sm); overflow: hidden; }
.product-card img { width: 100%; height: 100px; object-fit: cover; }
.product-info { padding: 8px; }
.product-name { font-size: .85rem; font-weight: 600; display: block; }
.product-price { font-size: .85rem; color: var(--blue); font-weight: 700; }
.btn-order {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white; padding: 16px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; margin-top: 24px; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(74,144,217,.3);
}
.btn-order:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── States ──────────────────────────────────────────────── */
.loading-state { display: flex; justify-content: center; padding: 60px; }
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }
.hidden { display: none !important; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal); padding: 40px 24px;
  text-align: center;
}
.footer .logo { justify-content: center; margin-bottom: 12px; }
.footer p { color: rgba(255,255,255,.4); font-size: .85rem; }
.footer a { color: rgba(255,255,255,.5); margin: 0 8px; font-size: .85rem; transition: var(--transition); }
.footer a:hover { color: var(--gold); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: 'DM Sans', sans-serif;
  color: var(--ink); background: white; transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,144,217,.1); }
.form-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }

/* ── Dashboard Shared ────────────────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 240px; padding: 24px 0;
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 50;
  background: linear-gradient(180deg, var(--charcoal) 0%, #16213e 100%);
  border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.sidebar-logo .logo { flex-direction: column; align-items: flex-start; gap: 6px; }
.sidebar-logo .logo img { height: 44px; border-radius: 10px; }
.sidebar-logo .logo-text { font-size: 1.1rem; }
.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: rgba(255,255,255,.6);
  font-size: .9rem; transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: white; background: rgba(255,255,255,.07); }
.sidebar-nav a.active { border-left: 3px solid var(--gold); color: var(--gold); }
.main-content { margin-left: 240px; flex: 1; padding: 32px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--muted); margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); border-top: 3px solid var(--blue);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card .stat-label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { background: var(--off-white); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8faff; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-pending  { background: #fff8e1; color: #e65100; }
.badge-accepted { background: #e3f2fd; color: #1565c0; }
.badge-active   { background: #e8f5e9; color: #2e7d32; }
.badge-cancel   { background: #fce4ec; color: #c62828; }
.badge-delivery { background: #f3e5f5; color: #6a1b9a; }
.badge-done     { background: #e8f5e9; color: #1b5e20; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card {
  background: white; border-radius: 20px; padding: 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.auth-logo { margin-bottom: 24px; }
.auth-logo .logo { justify-content: center; }
.auth-logo .logo img { height: 52px; }
.role-toggle { display: flex; gap: 8px; margin-bottom: 24px; }
.role-btn {
  flex: 1; padding: 9px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: white; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: .82rem; font-weight: 500; transition: var(--transition);
}
.role-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.error-msg { background: #fdf0f0; border: 1px solid #f5c2c2; color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; display: none; }

/* ── Mobile responsive ───────────────────────────────────── */
.mobile-menu-btn {
  display: none !important;
  position: fixed; top: 14px; left: 14px; z-index: 300;
  background: var(--blue); color: white; border: none;
  border-radius: 8px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 199;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .nav-right .btn-ghost { display: none; }
  .hero { padding: 44px 16px 54px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .95rem; }
  .search-bar { padding: 5px 5px 5px 16px; }
  .cat-chip { padding: 8px 14px; font-size: .82rem; }
  .biz-card { flex: 0 0 240px; }
  .card-photo { height: 155px; }
  .section-title { font-size: 1.2rem; }

  .sidebar {
    position: fixed; left: -240px; top: 0; height: 100vh;
    transition: left .3s ease; z-index: 200; width: 240px;
  }
  .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  .main-content { margin-left: 0 !important; padding: 64px 16px 16px; }
  .mobile-menu-btn { display: flex !important; }
  .page-header { margin-top: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal-box { border-radius: 16px 16px 0 0; }
  .modal-info { padding: 16px; }
  .modal-header { flex-direction: column; }
  .modal-actions-top { width: 100%; }
  .btn-action { flex: 1; justify-content: center; }
  .auth-card { padding: 24px 20px; }
  .biz-card { flex: 0 0 220px; }
  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

@media (max-width: 600px) {
  .form-card { padding: 16px; }
  .two-col { grid-template-columns: 1fr !important; }
  .order-layout { grid-template-columns: 1fr !important; }
  .cart-summary { position: static; }
  .content-grid { grid-template-columns: 1fr !important; padding: 0 12px; }
}
/* ============================================================
   RESPONSIVE — Clean consolidated rules
   ============================================================ */

/* ── Logo ──────────────────────────────────────────────────── */
.logo img { height: 34px; border-radius: 7px; flex-shrink: 0; }
.logo-text { font-size: 1.05rem; white-space: nowrap; }

/* ── Mobile hamburger button ───────────────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 400;
  background: var(--blue); color: white; border: none;
  border-radius: 8px; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 2px 12px rgba(74,144,217,.4);
}

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* ── Tablet (max 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  .main-content { padding: 24px 20px; }
}

/* ── Mobile (max 768px) ────────────────────────────────────── */
@media (max-width: 768px) {

  /* Sidebar hidden off-screen */
  .sidebar {
    position: fixed; left: -260px; top: 0;
    height: 100vh; width: 240px; z-index: 200;
    transition: left .25s ease;
    overflow-y: auto;
  }
  .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.3); }

  /* Show hamburger */
  .mobile-menu-btn { display: flex !important; }

  /* Main content full width with top padding for button */
  .main-content {
    margin-left: 0 !important;
    padding: 64px 16px 24px !important;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Page header smaller */
  .page-header h1 { font-size: 1.3rem; }
  .page-header p  { font-size: .82rem; }

  /* Stats: 2 columns */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .stat-card { padding: 14px 12px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .stat-card .stat-label { font-size: .7rem; }

  /* Tables: horizontal scroll */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: .82rem; }

  /* Navbar */
  .nav-right .btn-ghost { display: none; }
  .logo img { height: 30px; }
  .logo-text { font-size: .95rem; }

  /* Hero */
  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .9rem; }
  .search-bar { padding: 5px 5px 5px 14px; }
  .search-bar input { font-size: .88rem; }

  /* Categories */
  .categories-section { padding: 24px 0; }
  .cat-chip { padding: 8px 14px; font-size: .82rem; }

  /* Cards */
  .biz-card { flex: 0 0 230px; }
  .card-photo { height: 150px; }
  .section-title { font-size: 1.1rem; }

  /* Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 90vh; }
  .modal-info { padding: 16px; }
  .modal-header { flex-direction: column; }
  .modal-actions-top { width: 100%; }
  .btn-action { flex: 1; justify-content: center; }

  /* Forms */
  .form-card { padding: 16px; }
  .auth-card { padding: 24px 18px; }
  .auth-wrap { padding: 20px 12px; }
  .two-col { grid-template-columns: 1fr !important; }

  /* Order / cart layout */
  .order-layout { grid-template-columns: 1fr !important; }
  .cart-summary { position: static; }

  /* Business page */
  .biz-hero-content { padding: 16px; }
  .biz-hero-logo { width: 60px; height: 60px; }
  .biz-hero-info h1 { font-size: 1.2rem; }
  .content-grid { grid-template-columns: 1fr !important; padding: 0 12px; }
  .sticky-order { position: static; }

  /* Report */
  .report-header { flex-direction: column; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; }

  /* Chat */
  .order-detail-grid { grid-template-columns: 1fr !important; }
}

/* ── Small mobile (max 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .main-content { padding: 60px 12px 20px !important; }
  .biz-card { flex: 0 0 210px; }
  .report-summary-grid { grid-template-columns: 1fr; }
  .nav-right .btn-primary { padding: 6px 12px; font-size: .78rem; }
}

/* ── Categories section ────────────────────────────────────── */
.categories-section { padding: 36px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.categories-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 24px 8px; scrollbar-width: none; flex-wrap: wrap; justify-content: center; }
.categories-track::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .categories-track { flex-wrap: nowrap; justify-content: flex-start; }
}

/* ── Chat ──────────────────────────────────────────────────── */
.chat-wrap { display:flex; flex-direction:column; height:420px; background:var(--off-white); border-radius:var(--radius); border:1px solid var(--border); overflow:hidden; }
.chat-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.chat-msg { display:flex; flex-direction:column; max-width:75%; }
.chat-msg.mine { align-self:flex-end; align-items:flex-end; }
.chat-msg.theirs { align-self:flex-start; align-items:flex-start; }
.chat-msg.system { align-self:center; max-width:90%; }
.chat-bubble { padding:10px 14px; border-radius:16px; font-size:.9rem; line-height:1.5; word-break:break-word; }
.chat-msg.mine .chat-bubble { background:var(--blue); color:white; border-radius:16px 16px 4px 16px; }
.chat-msg.theirs .chat-bubble { background:white; color:var(--ink); border:1px solid var(--border); border-radius:16px 16px 16px 4px; }
.chat-msg.system .chat-bubble { background:#fff8e1; color:#795548; border:1px solid #ffe082; border-radius:10px; font-size:.82rem; }
.chat-time { font-size:.72rem; color:var(--muted); margin-top:3px; }
.chat-sender { font-size:.75rem; color:var(--muted); margin-bottom:2px; font-weight:600; }
.chat-input-wrap { display:flex; gap:8px; padding:12px; background:white; border-top:1px solid var(--border); }
.chat-input { flex:1; padding:10px 14px; border:1.5px solid var(--border); border-radius:24px; font-family:'DM Sans',sans-serif; font-size:.9rem; outline:none; resize:none; }
.chat-input:focus { border-color:var(--blue); }
.chat-send-btn { background:var(--blue); color:white; border:none; border-radius:50%; width:40px; height:40px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; }
.chat-send-btn:hover { background:var(--blue-dark); }

/* ── Report styles ─────────────────────────────────────────── */
.report-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.report-biz-card { background:white; border-radius:var(--radius); border:1px solid var(--border); padding:20px; margin-bottom:16px; }
.report-biz-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; flex-wrap:wrap; gap:8px; cursor:pointer; }
.report-biz-name { font-family:'Syne',sans-serif; font-weight:700; font-size:1rem; }
.report-biz-total { font-family:'Syne',sans-serif; font-weight:700; font-size:1.1rem; color:var(--blue); }
.report-orders-list { border-top:1px solid var(--border); margin-top:12px; padding-top:12px; display:none; }
.report-orders-list.open { display:block; }
.report-order-row { display:grid; grid-template-columns:1fr auto auto auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.report-order-row:last-child { border-bottom:none; }
.report-summary { background:linear-gradient(135deg,var(--blue),var(--blue-dark)); color:white; border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.report-summary h3 { font-size:1rem; opacity:.8; margin-bottom:12px; }
.report-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:16px; }
.report-summary-item .label { font-size:.72rem; opacity:.7; text-transform:uppercase; letter-spacing:.05em; }
.report-summary-item .value { font-family:'Syne',sans-serif; font-size:1.4rem; font-weight:700; margin-top:4px; }

/* ── Search bars ───────────────────────────────────────────── */
.admin-search-bar { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.admin-search-bar input,.admin-search-bar select { padding:10px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-family:'DM Sans',sans-serif; font-size:.9rem; outline:none; background:white; }
.admin-search-bar input { flex:1; min-width:160px; }
.admin-search-bar input:focus,.admin-search-bar select:focus { border-color:var(--blue); }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .sidebar,.mobile-menu-btn,.sidebar-overlay,.no-print { display:none !important; }
  .main-content { margin-left:0 !important; padding:20px !important; }
  .report-orders-list { display:block !important; }
  .report-biz-card { break-inside:avoid; border:1px solid #ccc; }
  body { background:white; }
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 20px; flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border);
  background: white; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px; transition: var(--transition);
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-info { font-size: .82rem; color: var(--muted); padding: 0 8px; }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 12px 16px; margin-bottom: 16px;
}
.filter-bar input, .filter-bar select {
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .85rem; outline: none; background: white;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--blue); }
.filter-bar input[type=text] { min-width: 180px; flex: 1; }
.btn-filter { padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: white; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 500; transition: var(--transition); }
.btn-filter:hover { background: var(--off-white); }
.btn-filter.active { background: var(--blue); color: white; border-color: var(--blue); }
