:root {
  --bg: #f3f6f1;
  --card: #ffffff;
  --ink: #14231a;
  --muted: #5d6f63;
  --line: #d7e2d8;
  --brand: #1f7a4d;
  --brand-dark: #145c39;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;
  --shadow: 0 10px 30px rgba(20, 35, 26, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #e7f2e4 0%, var(--bg) 45%);
  color: var(--ink);
  font-family: "Vazirmatn", sans-serif;
  min-height: 100%;
}
body { padding-bottom: 88px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 8px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.muted { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chip {
  background: #dff3e7;
  color: var(--brand-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

#screen { padding: 8px 16px 24px; }

.hero-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
}
.hero-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid .wide { grid-column: 1 / -1; }

.btn {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 16px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: var(--brand);
  color: white;
  min-height: 56px;
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn.secondary {
  background: #eef5ef;
  color: var(--brand-dark);
  border: 1px solid var(--line);
}
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.big-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 92px;
}
.big-link strong { font-size: 17px; }
.big-link span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.big-link .badge {
  align-self: flex-start;
  background: #fee2e2;
  color: var(--danger);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.choice {
  display: grid;
  gap: 8px;
}
.choice button, .slot, .pill {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.choice button.selected, .slot.selected, .pill.selected {
  border-color: var(--brand);
  background: #e8f7ef;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.slot.disabled { opacity: 0.45; cursor: not-allowed; }

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row > * { flex: 1; }

label.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  background: white;
}
textarea { min-height: 120px; resize: vertical; }

.list-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.list-item:first-child { border-top: none; padding-top: 0; }
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef5ef;
  color: var(--brand-dark);
}
.status.awaiting { background: #fff7ed; color: var(--warn); }
.status.pending { background: #eff6ff; color: #1d4ed8; }
.status.cancelled, .status.rejected, .status.expired { background: #fef2f2; color: var(--danger); }

.receipt-img {
  width: 100%;
  border-radius: 14px;
  margin: 10px 0;
  border: 1px solid var(--line);
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.tab {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px;
  border-radius: 12px;
}
.tab.active {
  color: var(--brand-dark);
  background: #e8f7ef;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 96px;
  background: var(--ink);
  color: white;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  z-index: 50;
}
.hidden { display: none !important; }
.step-title { font-size: 18px; font-weight: 800; margin: 4px 0 12px; }
.price { font-weight: 800; color: var(--brand-dark); }
.help { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
