﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --green: #176b48;
  --green-strong: #14563d;
  --green-soft: #eaf4ef;
  --navy: #13243b;
  --navy-2: #203650;
  --cyan: #21b9ce;
  --violet: #7860c5;
  --ink: #202c3b;
  --muted: #667485;
  --line: #dfe6ed;
  --paper: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow-soft: 0 12px 30px rgba(19, 36, 59, .055);
  --shadow-modal: 0 30px 90px rgba(10, 24, 43, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(33, 185, 206, .38); outline-offset: 2px; }
.hidden { display: none !important; }
.small { font-size: 12px !important; }
.muted { color: var(--muted); }

/* Shared navigation and product identity */
.topbar {
  position: relative;
  z-index: 3;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 76px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e5eaf0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--navy);
  font: 800 16px Manrope, sans-serif;
  letter-spacing: -.025em;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 500 10px 'DM Sans', sans-serif;
  letter-spacing: 0;
}
.brandmark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font: 800 22px Manrope, sans-serif;
  box-shadow: 0 5px 14px rgba(23, 107, 72, .16);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  color: #536174;
  font-size: 12px;
  font-weight: 600;
}
.topbar nav > a:not(.parent-brand):hover { color: var(--green); }
.parent-brand {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.nexa-brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}
.btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(23, 107, 72, .12);
}
.btn:hover { background: var(--green-strong); border-color: var(--green-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: #fff;
  color: var(--navy-2);
  border-color: #cfd9e2;
  box-shadow: none;
}
.btn-outline:hover { background: #f1f5f8; border-color: #aebdca; }
.btn-large { min-height: 48px; padding: 13px 19px; }
.btn-block { width: 100%; margin-top: 6px; }
.mini-btn {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #d3dde5;
  border-radius: 9px;
  background: #fff;
  color: #40576a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mini-btn:hover { background: #f1f6f4; border-color: #b9d2c5; color: var(--green); }
.mini-btn.danger { color: #9a4a42; border-color: #ead3d0; }
.mini-btn.danger:hover { background: #fbf3f2; border-color: #dfbdb8; }
.text-button { padding: 0; border: 0; background: none; color: #5368a8; font-weight: 800; cursor: pointer; }
.text-button:hover { color: var(--violet); }

/* Landing page */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  overflow: hidden;
  padding: clamp(62px, 8vw, 104px) max(7vw, 24px) clamp(66px, 8vw, 96px);
  background: linear-gradient(118deg, #eef4f8 0%, #f8faf9 59%, #f2f0fa 100%);
}
.hero::before {
  position: absolute;
  top: -245px;
  right: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(82, 104, 169, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(82, 104, 169, .025), 0 0 0 92px rgba(82, 104, 169, .018);
  content: '';
  pointer-events: none;
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.eyebrow {
  color: #5268a9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
h1, h2, h3 { color: var(--navy); font-family: Manrope, sans-serif; letter-spacing: -.04em; }
h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.07; letter-spacing: -.055em; }
h1 span { color: var(--green); }
.hero-copy > p { max-width: 500px; color: #596a7a; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 26px 0 18px; }
.hero-actions .btn-outline { color: var(--green); border-color: #bfd1c8; }
.hero-actions .btn-outline:hover { background: #eff6f2; }
.hero-art { min-height: 345px; display: grid; place-items: center; }
.mock-window {
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid #dfe7ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(19, 36, 59, .14);
  transform: rotate(.5deg);
}
.mock-head { height: 47px; display: flex; align-items: center; gap: 6px; padding: 0 15px; border-bottom: 1px solid #e8edf1; background: #f8fafb; }
.mock-head i { width: 7px; height: 7px; border-radius: 50%; background: #c4d0da; }
.mock-head span { margin-left: 9px; color: var(--muted); font-size: 11px; }
.mock-content { padding: 24px; }
.mock-banner { height: 92px; margin-bottom: 20px; border-radius: 12px; background: linear-gradient(110deg, #173450, #287f82 62%, #4f7e69); }
.mock-line { width: 45%; height: 8px; margin: 10px 0; border-radius: 9px; background: #e8edf1; }
.mock-line.wide { width: 75%; height: 13px; }
.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.mock-products > div { padding: 12px 7px; border: 1px solid #e5eaee; border-radius: 10px; background: #fbfcfd; text-align: center; }
.mock-products b { display: block; font-size: 27px; }
.mock-products small { color: var(--muted); font-size: 9px; }
.mock-cta { padding: 13px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; text-align: center; }
.floating-tag { position: absolute; right: -4px; bottom: 24px; padding: 13px 16px; border: 1px solid #e8edf1; border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 38px max(7vw, 24px) 78px; background: linear-gradient(#f3f6f9, #f8fafb); }
.feature-grid article { padding: 25px 26px; border: 1px solid #e2e8ed; border-radius: 15px; background: rgba(255, 255, 255, .78); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.feature-grid article:hover { transform: translateY(-3px); border-color: #ccd9e4; box-shadow: 0 12px 28px rgba(19, 36, 59, .06); }
.feature-grid article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #eef1fa; color: #5268a9; font-size: 11px; font-weight: 800; }
.feature-grid h3 { margin: 19px 0 8px; font-size: 17px; }
.feature-grid p { margin: 0; color: #667485; font-size: 13px; line-height: 1.7; }

/* Login and registration modal */
.auth-panel {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(12, 25, 43, .58);
  backdrop-filter: blur(8px);
}
.auth-card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-modal);
}
.nexa-auth-brand { display: flex; width: 100%; justify-content: center; margin: 0 auto 12px; }
.nexa-auth-brand img { display: block; width: 72px; height: 72px; object-fit: contain; object-position: center; }
.close { position: absolute; top: 12px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.close:hover { background: #f0f3f6; color: var(--navy); }
.auth-card .eyebrow { display: block; margin-top: 0; }
.auth-card h2 { margin: 10px 0 7px; font-size: clamp(24px, 5vw, 29px); letter-spacing: -.045em; }
.auth-card > p.muted { margin: 0; color: #687688; font-size: 13px; line-height: 1.65; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card label, .field { display: grid; gap: 8px; color: #394a5a; font-size: 12px; font-weight: 700; }
.auth-card input, .field input, .field textarea, .field select, .toolbar input, .toolbar select,
.store-choice select, .store-choice input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #d6e0e8;
  border-radius: 10px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-card input:focus, .field input:focus, .field textarea:focus, .field select:focus,
.toolbar input:focus, .toolbar select:focus, .store-choice select:focus, .store-choice input:focus {
  border-color: #62a5aa;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 185, 206, .13);
}
.auth-card input::placeholder, .field input::placeholder { color: #97a4b0; }
.auth-card .btn-block { min-height: 46px; margin-top: 3px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.notice { padding: 12px; border: 1px solid #e6ebf2; border-radius: 10px; background: #f5f7fb; color: #637184; line-height: 1.6; }
body:has(#auth-panel:not(.hidden)) .topbar .parent-brand { display: none; }

/* Shared dashboard frame */
.dashboard { max-width: 1320px; min-height: 70vh; margin: 0 auto; padding: 34px clamp(18px, 4vw, 50px) 82px; }
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid #273b55;
  border-radius: 18px;
  background: linear-gradient(112deg, #13243b 0%, #1e3652 70%, #253c59 100%);
  box-shadow: 0 14px 30px rgba(19, 36, 59, .13);
}
.dashboard-head .eyebrow { color: #7bd6e1; }
.dashboard-head h2 { margin: 7px 0 5px; color: #fff; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; }
.dashboard-head .muted { margin: 0; color: #c5d1df; font-size: 13px; line-height: 1.6; }
.dashboard-head > div { min-width: 0; }
.dashboard-head > .btn-outline { flex: 0 0 auto; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); color: #fff; }
.dashboard-head > .btn-outline:hover { background: rgba(255,255,255,.16); }
#dashboard-content { display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 4px; }
.stat {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #dce5ec;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #f7fafc);
}
.stat span { color: #69798a; font-size: 11px; letter-spacing: .02em; }
.stat strong { display: block; margin-top: 8px; color: var(--navy); font: 800 27px Manrope, sans-serif; }
.dashboard .panel, #store-cart .panel {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid #e0e7ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}
.dashboard #dashboard-content > .panel:has(#edit-business) { background: linear-gradient(120deg, #fff 20%, #f7faff 100%); }
.dashboard #dashboard-content > .panel:has(#merchant-store-qr) { background: #f4f8fc; }
.dashboard #dashboard-content > .panel:has(#edit-bank-name) { background: #f7faf8; }
.dashboard #dashboard-content > .panel:has(#product-list),
.dashboard #dashboard-content > .panel:has(#order-list) { border-color: #dce5ec; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid #e9eef2; }
.panel h3 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.025em; }
.panel-head > .muted { font-size: 11px; }
.dashboard .panel-head .btn, .dashboard .panel-head .mini-btn { flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field.full { grid-column: 1 / -1; }
.field small, .field p { margin: 0; line-height: 1.6; }
.field input[type="file"] { min-height: 44px; padding: 8px; border-style: dashed; background: #f8fafc; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #e4eaef; border-radius: 11px; scrollbar-color: #c8d2d8 #f5f7f8; scrollbar-width: thin; }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e9eef2; font-size: 12px; text-align: left; vertical-align: middle; }
th { background: #f5f8fa; color: #617285; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
td { color: #344354; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-block; padding: 5px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill.off { background: #f9edec; color: #a14942; }
.empty { padding: 28px; border: 1px dashed #d6e0e7; border-radius: 13px; background: #f9fbfc; color: var(--muted); line-height: 1.6; text-align: center; }

/* Admin account list and expiry controls */
.admin-merchant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-merchant-card { min-width: 0; padding: 18px; border: 1px solid #dfe7ed; border-radius: 14px; background: #fff; }
.admin-merchant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e9eef2; }
.admin-merchant-heading > div { min-width: 0; overflow-wrap: anywhere; }
.admin-merchant-heading > div > strong { color: var(--navy); font: 700 16px Manrope, sans-serif; }
.admin-merchant-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; }
.admin-merchant-meta > div { display: grid; min-width: 0; gap: 4px; }
.admin-merchant-meta > div:last-child { grid-column: 1 / -1; }
.admin-merchant-meta span { color: var(--muted); font-size: 11px; }
.admin-merchant-meta strong { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.admin-expiry-control { padding: 14px; border: 1px solid #e1e8ee; border-radius: 11px; background: #f6f9fb; }
.admin-expiry-control .field { font-size: 12px; }
.admin-expiry-control input[type="date"] { display: block; width: 100%; min-height: 44px; margin-top: 2px; padding: 10px 12px; border: 1px solid #d1dce5; border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; }
.admin-expiry-control input[type="date"]:disabled { background: #edf0ed; color: #89928a; }
.admin-expiry-control small { display: block; margin-top: 8px; line-height: 1.5; }
.admin-merchant-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.admin-merchant-actions .mini-btn { min-height: 38px; padding: 9px 14px; font-size: 12px; }

/* Product cards, variation editor, and image pickers */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card, .store-product-card { min-width: 0; overflow: hidden; border: 1px solid #e1e8ed; border-radius: 14px; background: #fff; }
.product-card { box-shadow: 0 5px 18px rgba(19, 36, 59, .035); }
.product-image { height: 160px; display: grid; place-items: center; overflow: hidden; background: #edf4f1; color: #8fa99d; font-size: 35px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 16px; }
.product-info h3 { margin: 0 0 7px; font-size: 15px; }
.price { color: var(--green); font-size: 15px; font-weight: 800; }
.variation-choices { margin-top: 14px; padding: 12px; border: 1px solid #e0e7ed; border-radius: 13px; background: #f8fafc; }
.variation-choice-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px auto; align-items: end; gap: 8px; margin: 8px 0; }
.variation-choice-row .field { min-width: 0; margin: 0; }
.variation-choice-row input { width: 100%; min-width: 0; }
.variation-choice-row [data-remove-choice] { white-space: nowrap; }
.variation-group-card { background: #fff; box-shadow: none; }
.photo-picker-panel { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; overflow: auto; padding: 18px; background: rgba(12, 25, 43, .58); backdrop-filter: blur(7px); }
.product-editor-card, .photo-picker-card { display: grid; width: min(100%, 520px); max-height: 90vh; gap: 14px; overflow: auto; padding: 24px; border: 1px solid #e0e7ed; border-radius: 18px; background: #fff; box-shadow: var(--shadow-modal); }
.product-editor-card h3, .photo-picker-card h3 { margin: 0; font-size: 23px; }
.product-editor-card input[type="file"], .photo-picker-card input[type="file"] { padding: 12px; border: 1px dashed #cbd8e0; border-radius: 10px; background: #f8fafb; }
.photo-picker-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.photo-picker-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.photo-picker-actions button:disabled { opacity: .5; cursor: not-allowed; }

/* Public storefront, cart, payment information, and store QR */
.public-store { max-width: 1120px; min-height: 70vh; margin: 0 auto; padding: 18px 22px 70px; }
.store-topline { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 22px; border-bottom: 1px solid var(--line); }
.store-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: Manrope, sans-serif; font-weight: 800; }
.store-brand small { display: block; margin-top: 3px; color: var(--muted); font: 500 11px 'DM Sans', sans-serif; }
.store-hero { margin: 24px 0 30px; padding: clamp(22px, 5vw, 48px); border: 1px solid #dfe8e4; border-radius: 20px; background: linear-gradient(120deg, #fff, #f0f7f4); }
.store-identity { display: flex; align-items: center; gap: 22px; }
.store-logo { width: 104px; height: 104px; padding: 4px; border: 1px solid var(--line); border-radius: 20px; background: #fff; object-fit: cover; }
.store-hero h2 { margin: 8px 0; font-size: clamp(28px, 5vw, 42px); }
.store-hero p { max-width: 680px; margin: 0; line-height: 1.65; }
.store-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.store-meta span { padding: 7px 10px; border: 1px solid #e1e9e4; border-radius: 99px; background: rgba(255,255,255,.85); }
.store-menu-section { padding: 0 0 20px; }
.store-menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 18px; }
.store-menu-heading h3 { margin: 5px 0 0; font-size: 24px; }
.store-product-card { transition: transform .2s, box-shadow .2s; box-shadow: 0 6px 22px rgba(19, 36, 59, .05); }
.store-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.store-product-card .product-image { height: 210px; background: linear-gradient(135deg, #f2f7f4, #e7eff1); }
.store-product-card .product-info { display: flex; flex-direction: column; align-items: stretch; padding: 18px; }
.store-product-card .product-info h3 { margin: 8px 0 4px; font-size: 17px; }
.store-category { display: inline-block; padding: 5px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.store-variation { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.store-empty { grid-column: 1 / -1; padding: 50px 20px; }
.store-choice { display: block; margin: 10px 0; }
.store-choice select, .store-choice input { display: block; margin-top: 5px; }
.store-add { width: 100%; margin-top: 12px; }
.checkout-panel { grid-column: 1 / -1; margin-top: 28px; }
.checkout-panel h3 { margin-top: 0; }
.checkout-panel .form-grid { margin-top: 16px; }
#store-cart { max-width: 1100px; margin: 24px auto; padding: 0 18px; }
#store-cart .panel { margin-top: 0; }
#store-cart .form-grid { margin-top: 18px; }
.merchant-qr { margin-top: 12px; }
.qr-card { display: grid; max-width: 250px; justify-items: start; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.qr-card img { width: 180px; height: 180px; border-radius: 8px; background: #fff; object-fit: contain; }
.qr-store-layout { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding: 4px 0; }
.qr-store-image { width: clamp(190px, 22vw, 230px); aspect-ratio: 1; display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 0; padding: 10px; border: 1px solid #dce5eb; border-radius: 15px; background: #fff; }
.qr-store-image canvas, .qr-store-image img { display: block; width: 100%; max-width: 100%; height: auto; }
.qr-store-info { min-width: min(100%, 240px); flex: 1; }
.qr-store-info p { line-height: 1.7; }
.qr-store-info a { overflow-wrap: anywhere; color: #5368a8; }
#store-cart .table-wrap { border-color: #e2e8ed; }

/* Footer and status messages */
#toast { position: fixed; z-index: 20; bottom: 22px; left: 50%; max-width: min(90vw, 600px); padding: 12px 18px; transform: translate(-50%, 20px); border-radius: 11px; background: #273842; color: #fff; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 23px max(5vw, 24px); border-top: 1px solid #e2e8ed; background: #f8fafb; color: var(--muted); font-size: 12px; }
footer strong { color: var(--navy); font: 800 13px Manrope, sans-serif; }
footer span { line-height: 1.7; }
footer a { color: #5368a8; font-weight: 700; }
footer a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive layouts */
@media (max-width: 800px) {
  .topbar { height: 72px; padding: 0 18px; }
  .topbar nav { gap: 9px; }
  .topbar nav > a:not(.parent-brand) { display: none; }
  .parent-brand { height: 52px; min-height: 52px; padding-left: 10px; }
  .nexa-brand-logo { width: 50px; height: 50px; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 52px; }
  .hero-art { min-height: 300px; }
  .feature-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .dashboard { padding-top: 25px; }
  .dashboard-head { align-items: flex-start; padding: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .admin-merchant-list { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-identity { align-items: flex-start; }
}
@media (max-width: 600px) {
  .public-store { padding: 10px 15px 44px; }
  .store-identity { gap: 14px; }
  .store-logo { width: 78px; height: 78px; border-radius: 16px; }
  .store-hero { padding: 22px 17px; border-radius: 17px; }
  .store-menu-heading { align-items: flex-start; flex-direction: column; }
  .store-product-card .product-image { height: 180px; }
  .product-editor-card, .photo-picker-card { padding: 20px 17px; }
  .store-topline .btn { padding: 10px 12px; font-size: 12px; }
  .qr-store-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 15px; }
  .qr-store-image { width: min(100%, 210px); justify-self: start; }
  .qr-store-info { width: 100%; min-width: 0; }
  .qr-store-info .actions > * { flex: 1; }
  .variation-choice-row { grid-template-columns: minmax(0, 1fr) 94px; gap: 7px; }
  .variation-choice-row [data-remove-choice] { grid-column: 2; justify-self: end; }
  .variation-choices { padding: 10px; }
  .admin-merchant-card { padding: 15px; }
  .admin-merchant-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-merchant-actions .mini-btn { width: 100%; min-width: 0; padding: 8px; }
}
@media (max-width: 520px) {
  .topbar { height: 66px; padding: 0 10px; }
  .brand { gap: 6px; font-size: 12px; }
  .brand small { display: none; }
  .brandmark { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; }
  .topbar nav { gap: 4px; }
  .parent-brand { height: 42px; min-height: 42px; padding-left: 4px; border-left: 0; }
  .nexa-brand-logo { width: 40px; height: 40px; }
  .topbar nav .btn { min-height: 34px; padding: 7px 7px; font-size: 9px; white-space: nowrap; }
  .hero { gap: 4px; padding: 46px 19px 40px; }
  h1 { font-size: clamp(39px, 11vw, 48px); }
  .hero-copy > p { font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-art { min-height: 250px; margin-top: 4px; }
  .mock-window { width: calc(100% - 12px); border-radius: 15px; }
  .mock-content { padding: 17px; }
  .mock-banner { height: 72px; }
  .floating-tag { right: 0; bottom: 9px; padding: 11px 13px; font-size: 11px; }
  .feature-grid { gap: 11px; padding: 22px 19px 48px; }
  .feature-grid article { padding: 20px; border-radius: 13px; }
  .auth-panel { align-items: center; padding: 12px; }
  .auth-card { padding: 26px 20px; border-radius: 17px; }
  .nexa-auth-brand { margin-bottom: 9px; }
  .nexa-auth-brand img { width: 64px; height: 64px; }
  .dashboard { padding: 20px 13px 54px; }
  .dashboard-head { gap: 12px; margin-bottom: 17px; padding: 17px 15px; border-radius: 14px; }
  .dashboard-head .btn { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .dashboard-head .muted { font-size: 12px; }
  .stats { gap: 9px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 23px; }
  .dashboard .panel, #store-cart .panel { padding: 16px 14px; border-radius: 13px; }
  .panel-head { align-items: flex-start; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
  .form-grid { gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card, .store-product-card { min-width: 0; }
  .store-product-card .product-image { height: 150px; }
  .store-product-card .product-info { padding: 12px; }
  .store-product-card .product-info h3 { font-size: 15px; }
  .table-wrap { margin-inline: -2px; }
  .dashboard #product-list table, .dashboard #order-list table { min-width: 0; display: block; border-collapse: separate; }
  .dashboard #product-list thead, .dashboard #order-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .dashboard #product-list tbody, .dashboard #order-list tbody { display: grid; gap: 10px; }
  .dashboard #product-list tr, .dashboard #order-list tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px; border: 1px solid #e4eaef; border-radius: 11px; background: #fff; }
  .dashboard #product-list td, .dashboard #order-list td { display: flex; min-width: 0; flex-direction: column; gap: 4px; overflow-wrap: anywhere; padding: 5px 2px; border: 0; }
  .dashboard #product-list td::before, .dashboard #order-list td::before { color: #708093; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .dashboard #product-list td:nth-child(1)::before { content: 'Menu'; }
  .dashboard #product-list td:nth-child(2)::before { content: 'Harga'; }
  .dashboard #product-list td:nth-child(3)::before { content: 'Kategori'; }
  .dashboard #product-list td:nth-child(4)::before { content: 'Status'; }
  .dashboard #product-list td:nth-child(5) { grid-column: 1 / -1; }
  .dashboard #product-list td:nth-child(5)::before { content: 'Aksi'; }
  .dashboard #order-list td:nth-child(1)::before { content: 'Pelanggan'; }
  .dashboard #order-list td:nth-child(2)::before { content: 'Pembayaran'; }
  .dashboard #order-list td:nth-child(3)::before { content: 'Total'; }
  .dashboard #order-list td:nth-child(4)::before { content: 'Status'; }
  .dashboard #order-list td:nth-child(5) { grid-column: 1 / -1; }
  .dashboard #order-list td:nth-child(5)::before { content: 'Waktu'; }
  .dashboard #product-list .actions { gap: 6px; }
  footer { align-items: flex-start; flex-direction: column; gap: 6px; padding: 20px; }
  footer span { font-size: 11px; }
}
@media (max-width: 360px) {
  .brand { font-size: 11px; }
  .brandmark { width: 30px; height: 30px; }
  .topbar nav .btn { padding-inline: 6px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
