@import url("/assets/brand-tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

* { box-sizing: border-box; margin: 0; }

:root {
  --bg: #f7fbf5;
  --surface: #ffffff;
  --text: #1a2e22;
  --muted: #6b8f78;
  --green: #2d6a4f;
  --green-soft: #eaf7ee;
  --green-light: #d4edda;
  --border: #e4efe8;
  --shadow-sm: 0 1px 3px rgba(27,67,50,0.06);
  --shadow-md: 0 4px 12px rgba(27,67,50,0.08);
  --shadow-lg: 0 12px 40px rgba(27,67,50,0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --page-w: min(1200px, 100vw - 32px);
}

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.has-modal { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

textarea { min-height: 80px; resize: vertical; }

/* ── Boot screen ── */

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.boot-logo { width: min(240px, 55vw); height: auto; }
.boot p { margin: 0; color: var(--muted); line-height: 1.6; }
.boot small { color: var(--green); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Topbar ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.tb-brand {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
}

.tb-brand img { height: 38px; width: auto; }

.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.tb-btn:hover { border-color: var(--green); background: var(--green-soft); }
.tb-btn svg { flex-shrink: 0; }

.tb-location { color: var(--green); }

.tb-lang-select {
  padding: 7px 8px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.tb-lang-select:hover, .tb-lang-select:focus { border-color: var(--green); }

.tb-lang {
  width: 36px;
  justify-content: center;
  padding: 7px 0;
}

.tb-signin {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.tb-signin:hover { background: #245a42; }

.tb-avatar {
  width: 36px;
  min-width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Page main ── */

.page-main {
  width: var(--page-w);
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ── Hero banner (compact) ── */

.hero-banner {
  padding: 28px 0 20px;
  text-align: center;
}

.hero-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-banner p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.how-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.how-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.how-steps strong {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Search bar ── */

.search-bar {
  position: relative;
  margin: 0 0 16px;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1), var(--shadow-sm);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Quick filters ── */

.quick-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-filters::-webkit-scrollbar { display: none; }

.qf-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.qf-chip:hover { border-color: var(--green); color: var(--green); }

.qf-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Location bar ── */

.location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.lb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lb-badge.live { background: var(--green-soft); color: var(--green); }
.lb-badge.preview { background: #fff3ea; color: #c97a2a; }

.lb-text { font-size: 0.92rem; color: var(--muted); }
.lb-text strong { color: var(--text); }

.lb-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

/* ── Deal grid ── */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Deal card ── */

.deal-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dc-art {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  overflow: hidden;
}

.dc-flower {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  opacity: 0.85;
  pointer-events: none;
}

.dc-flower svg {
  width: 100%;
  height: 100%;
}

.dc-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d95d5d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.dc-mood {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text);
}

.dc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.dc-shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-shop strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.dc-shop span {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.dc-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.dc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.dc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dc-deal {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
}

.dc-original {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.dc-pickup {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
}

.dc-remaining {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Deal photo ── */

.dc-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── File upload ── */

.file-input-hidden { display: none; }

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.file-upload-btn {
  padding: 8px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.file-upload-label:hover .file-upload-btn { border-color: var(--green); }

.file-upload-name {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview {
  position: relative;
  max-width: 200px;
  margin-top: 8px;
}

.image-preview img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* ── Tone gradients ── */

.tone-1 { background: linear-gradient(135deg, #eaf7ee, #d7efdf 85%); }
.tone-2 { background: linear-gradient(135deg, #fff1eb, #ffe1d7 85%); }
.tone-3 { background: linear-gradient(135deg, #eef3ff, #dde6ff 85%); }
.tone-4 { background: linear-gradient(135deg, #fff7df, #ffefbf 85%); }

/* ── Empty state ── */

.empty-state {
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.empty-inline {
  padding: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Sections (orders, florist) ── */

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.orders-section, .florist-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Order grid ── */

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.order-card:hover { box-shadow: var(--shadow-md); }

.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oc-top strong { font-size: 0.85rem; font-weight: 700; }

.oc-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oc-status.reserved { background: var(--green-soft); color: var(--green); }
.oc-status.picked_up { background: #fff3ea; color: #c97a2a; }

.order-card h3 { font-size: 1rem; font-weight: 700; }
.oc-meta { font-size: 0.82rem; color: var(--muted); }
.oc-price { font-size: 1rem; font-weight: 800; color: var(--green); }

/* ── Florist dashboard ── */

.fl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.fl-stat {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.fl-stat strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--green); }
.fl-stat span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }

.fl-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.fl-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.fl-panel h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.fl-list { display: grid; gap: 8px; }

.fl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.fl-item:last-child { border-bottom: none; padding-bottom: 0; }
.fl-item strong { font-size: 0.88rem; font-weight: 600; }
.fl-item span { font-size: 0.78rem; color: var(--muted); text-align: right; }

.fl-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fl-form-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.fl-form-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.fl-form-card p { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; line-height: 1.4; }
.fl-publish-card { grid-column: 1 / -1; }
.fl-form-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.fl-form { display: grid; gap: 10px; }

.fl-form-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.fl-form-section:first-child { border-top: none; padding-top: 0; }

.fl-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fl-field { display: grid; gap: 4px; }

.fl-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.fl-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  min-height: 44px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Buttons ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: #245a42; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary.full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--green); }
.btn-secondary.full { width: 100%; }

/* ── Form alert ── */

.form-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff0f0;
  color: #8f3f58;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ── Modal system ── */

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.modal-body { padding: 24px; }

/* ── Auth modal ── */

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.auth-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.auth-mode-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #f0f4f1;
  margin-bottom: 16px;
}

.am-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s;
}

.am-tab.active { background: var(--surface); box-shadow: var(--shadow-sm); }

.auth-modal h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.auth-copy { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; line-height: 1.4; }
.auth-form { display: grid; gap: 10px; }
.auth-hint { margin-top: 14px; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ── Account modal ── */

.account-header { text-align: center; margin-bottom: 20px; }

.account-avatar {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.account-header h3 { font-size: 1.2rem; font-weight: 700; }
.account-email { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

.account-role-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Account sections (birthday, special dates, referrals) ── */

.account-section {
  border-top: 1px solid var(--green-soft);
  padding-top: 16px;
  margin-top: 16px;
}

.account-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.acct-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.acct-inline-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.88rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm:hover { background: var(--green-dark); }

.acct-empty {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.sd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
}

.sd-row:last-of-type { border-bottom: none; margin-bottom: 10px; }

.sd-remove {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.sd-remove:hover { background: #ffeaea; }

.referral-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green-soft);
}

.referral-code {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
  flex: 1;
}

.referral-stats-row {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.referral-stats-row strong { color: var(--dark); }

/* ── Deal modal ── */

.deal-modal { width: min(520px, 100%); }
.deal-modal .dc-discount { right: 52px; }

.dm-art {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.dm-art strong {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.dm-body { padding: 20px; }

.dm-shop {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.dm-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dm-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.dm-detail {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.dm-detail span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.dm-detail strong { display: block; font-size: 1.05rem; font-weight: 700; }
.dm-original { text-decoration: line-through; color: var(--muted) !important; font-weight: 500 !important; }

.dm-note {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff3ea;
  color: #7a4c18;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* ── Order modal ── */

.order-modal { width: min(420px, 100%); }

.om-header {
  text-align: center;
  margin-bottom: 16px;
}

.om-check {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.om-header h3 { font-size: 1.2rem; font-weight: 700; }

.om-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.qr-grid {
  width: 160px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
}

.qr-cell { width: 100%; aspect-ratio: 1; border-radius: 2px; background: rgba(29,42,34,0.08); }
.qr-cell.on { background: #18231c; }

.om-details { display: grid; gap: 8px; margin-bottom: 16px; }

.om-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.om-detail span { font-size: 0.82rem; color: var(--muted); }
.om-detail strong { font-size: 0.92rem; font-weight: 700; }

.om-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Download section ── */

.download-section {
  margin-top: 56px;
  padding: 48px 24px;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
  border-radius: var(--r-lg);
  color: #fff;
}
.download-inner {
  max-width: var(--page-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.download-text {
  flex: 1;
}
.download-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.download-text p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 24px;
}
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.store-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.badge-soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  color: #fff;
}
.btn-install-pwa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-install-pwa:hover {
  background: rgba(255, 255, 255, 0.25);
}
.download-visual {
  flex-shrink: 0;
}
.iphone-mockup {
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.iphone-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}
.iphone-svg {
  width: 240px;
  height: auto;
}

@media (max-width: 768px) {
  .download-inner {
    flex-direction: column;
    text-align: center;
  }
  .store-badges {
    justify-content: center;
  }
  .download-text h2 {
    font-size: 1.4rem;
  }
  .iphone-svg {
    width: 190px;
  }
  .iphone-mockup {
    transform: none;
  }
  .iphone-mockup:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .download-section {
    padding: 32px 16px;
    border-radius: var(--r-md);
  }
  .download-visual {
    display: none;
  }
}

/* ── About footer ── */

.about-footer {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.af-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.af-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.af-mission {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.af-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.af-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.af-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 14px;
}

.af-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.af-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.af-how {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
}

.af-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.af-step strong {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.af-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0 16px;
  text-align: center;
}

.af-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.af-byline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.af-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Toast ── */

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(24,35,28,0.92);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .page-main { padding-bottom: 60px; }
  .hero-banner { padding: 20px 0 16px; }
  .hero-banner h1 { font-size: 1.5rem; }
  .how-steps { gap: 12px; }
  .how-steps span { font-size: 0.75rem; }
  .deal-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .fl-stats { grid-template-columns: repeat(2, 1fr); }
  .fl-panels, .fl-forms { grid-template-columns: 1fr; }
  .dm-details { grid-template-columns: 1fr; }
  .af-grid { grid-template-columns: 1fr; }
  .af-how { flex-direction: column; gap: 14px; }
}

@media (max-width: 480px) {
  :root { --page-w: calc(100vw - 20px); }
  .topbar { padding: 8px 12px; }
  .tb-brand img { height: 32px; }
  .tb-location span:not(svg) { display: none; }
  .hero-banner { padding: 16px 0 12px; }
  .hero-banner h1 { font-size: 1.35rem; }
  .hero-banner p { font-size: 0.88rem; }
  .how-steps { display: none; }
  .deal-grid { grid-template-columns: 1fr; }
  .location-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .order-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .fl-price-row { grid-template-columns: 1fr 1fr; }
  .fl-price-row .discount-badge { grid-column: 1 / -1; justify-self: start; }
  .fl-stats { grid-template-columns: repeat(2, 1fr); }
}
