/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FAF7F2;
  color: #211C18;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --brand:    #EA580C;
  --brand-dk: #C2410C;
  --ink:      #211C18;
  --ink2:     #6B625A;
  --ink3:     #A79E93;
  --bg:       #FAF7F2;
  --surface:  #FFFFFF;
  --surface2: #F4EFE6;
  --line:     #ECE5D8;
  --r:        14px;
  --shadow:   0 2px 12px rgba(33,28,24,.07);
}

/* ── Utility ────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px; height: 48px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-ghost { background: var(--surface2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.navbar-logo {
  font-size: 18px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.navbar-logo span { color: var(--brand); }
.navbar-gap { flex: 1; }
.navbar a.nav-link {
  font-size: 14px; font-weight: 600; color: var(--ink2);
  padding: 6px 12px; border-radius: 8px;
}
.navbar a.nav-link:hover { color: var(--ink); background: var(--surface2); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(135deg, #fff8f5 0%, #faf7f2 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(234,88,12,.1); color: var(--brand);
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--brand); }
.hero-sub {
  font-size: 18px; color: var(--ink2); max-width: 480px;
  line-height: 1.6; margin-bottom: 36px;
}
.hero-benefits {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px;
}
.hero-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink2); line-height: 1.5;
}
.hero-benefits li::before {
  content: '✓'; color: var(--brand); font-weight: 800;
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(234,88,12,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 1px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink3); }

.hero-mockup {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 420px; opacity: .12;
  pointer-events: none;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps { padding: 96px 0; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px;
}
.section-sub { font-size: 17px; color: var(--ink2); max-width: 480px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 48px;
}
.step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 24px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(234,88,12,.1); color: var(--brand);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--ink2); line-height: 1.55; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing { padding: 96px 0; background: var(--surface); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.plan-card {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px; position: relative;
}
.plan-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(234,88,12,.08);
}
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  padding: 3px 12px; border-radius: 999px;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.plan-price {
  font-size: 40px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 4px;
}
.plan-price sup { font-size: 20px; vertical-align: super; }
.plan-cycle { font-size: 13px; color: var(--ink3); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink2); padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.plan-features li:last-child { border: none; }
.plan-features li::before {
  content: '✓'; color: var(--brand);
  font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line); padding: 32px 0;
  font-size: 13px; color: var(--ink3);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ── Auth pages ─────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-logo { font-size: 22px; font-weight: 800; margin-bottom: 28px; }
.auth-logo span { color: var(--brand); }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--ink2); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.form-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 15px; color: var(--ink);
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--brand); }
.form-input::placeholder { color: var(--ink3); }
.form-error { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.form-error p { font-size: 13.5px; color: #B91C1C; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink2); }
.auth-footer a { color: var(--brand); font-weight: 700; }

/* ── Dashboard shell ────────────────────────────────────── */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 24px 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.dash-logo {
  font-size: 17px; font-weight: 800; padding: 0 20px 24px;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.dash-logo span { color: var(--brand); }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--ink2);
  border-radius: 0; transition: background .1s, color .1s;
}
.dash-nav a:hover { background: var(--surface2); color: var(--ink); }
.dash-nav a.active { color: var(--brand); background: rgba(234,88,12,.07); }
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-content { flex: 1; padding: 32px; max-width: 900px; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.dash-topbar h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px;
}
.stat-label { font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }

/* ── Upload area ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--r);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--brand); background: rgba(234,88,12,.04); }
.upload-zone p { font-size: 14px; color: var(--ink2); margin-top: 10px; }
.upload-zone strong { color: var(--brand); }
.image-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-top: 24px;
}
.image-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb .del-btn {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s;
}
.image-thumb:hover .del-btn { opacity: 1; }

/* ── QR display ─────────────────────────────────────────── */
.qr-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px; text-align: center;
  max-width: 360px;
}
.qr-card img { margin: 0 auto 20px; border-radius: 12px; }
.qr-url {
  font-size: 13px; color: var(--ink2); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; word-break: break-all; margin-bottom: 16px;
  text-align: left;
}

/* ── Customer menu page ─────────────────────────────────── */
body.menu-page { background: #F5F0E8; }
.menu-header {
  background: #fff; border-bottom: 1px solid #E8E0D4;
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 10;
}
.menu-header-logo {
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover; background: #F4EFE6; flex-shrink: 0;
}
.menu-header-logo-placeholder {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(234,88,12,.12); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--brand); flex-shrink: 0;
}
.menu-header-info h1 { font-size: 17px; font-weight: 800; color: #211C18; }
.menu-header-info p  { font-size: 12.5px; color: #A79E93; margin-top: 1px; }
.menu-images { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.menu-image-slide {
  border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  cursor: zoom-in;
}
.menu-image-slide img { width: 100%; height: auto; display: block; }
.menu-footer {
  text-align: center; padding: 28px 16px 40px;
  font-size: 12px; color: #C4B8A8;
}
.menu-footer a { color: var(--brand); font-weight: 700; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; padding: 12px; }
  .dash-logo { padding: 8px 12px 12px; border: none; margin: 0; }
  .dash-nav { display: flex; flex-wrap: wrap; flex: 1; }
  .dash-nav a { padding: 8px 12px; border-radius: 8px; }
  .dash-content { padding: 20px 16px; }
  .hero { padding: 60px 0 50px; }
  .hero-mockup { display: none; }
  .auth-card { padding: 28px 22px; }
  .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
}
