:root {
  --coffee-900: #2E1B10;
  --coffee-800: #4B2E1E;
  --coffee-700: #6F4E37;
  --coffee-600: #8B6B4F;
  --coffee-500: #A9886A;
  --coffee-400: #C8A27C;
  --coffee-300: #E0C9A6;
  --coffee-200: #F0E2CC;
  --cream-100: #FAF3E7;
  --cream-50:  #FFFBF3;
  --gold:      #D4AF37;
  --gold-dark: #B08D1C;
  --leaf:      #5D7052;
  --danger:    #B0413E;
  --text:      #2E1F13;
  --muted:     #7A6A58;
  --border:    #E6D8BF;
  --shadow:    0 10px 30px rgba(62, 39, 22, .12);
  --shadow-sm: 0 2px 8px rgba(62, 39, 22, .08);
  --radius:    14px;
  --radius-lg: 22px;
  --max-w:     1180px;
  --font:      "Tajawal", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(111,78,55,.14), transparent 60%),
    var(--cream-100);
  min-height: 100vh;
  line-height: 1.6;
  direction: rtl;
}

a { color: var(--coffee-700); text-decoration: none; }
a:hover { color: var(--coffee-900); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 243, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--coffee-900);
}
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(212,175,55,.35), transparent 55%),
    linear-gradient(135deg, var(--coffee-700) 0%, var(--coffee-900) 60%, #2E1B10 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -1.5px;
  font-family: 'Tajawal', system-ui, sans-serif;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(212,175,55,.25);
  position: relative;
  transform: rotate(-2deg);
  transition: transform .25s ease;
}
.brand-logo::after {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,.65);
}
.brand:hover .brand-logo { transform: rotate(0deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-weight: 600;
  color: var(--coffee-800);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease;
}
.nav-links a:hover { background: var(--coffee-200); }
.nav-links a.active { background: var(--coffee-700); color: var(--cream-50); }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  padding: 70px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--coffee-900);
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--gold-dark); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 26px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art {
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 6%, transparent 7%),
    radial-gradient(circle at 70% 35%, rgba(255,255,255,.6) 0 3%, transparent 4%),
    radial-gradient(circle at 50% 50%, #5B3A22 0 40%, #3E2516 41% 65%, #2A180E 66% 100%);
  box-shadow:
    inset 0 -30px 60px rgba(0,0,0,.35),
    inset 0 30px 60px rgba(255,255,255,.08),
    0 30px 60px rgba(62,39,22,.25);
  position: relative;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 2px dashed rgba(212,175,55,.55);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--coffee-700), var(--coffee-900));
  color: var(--cream-50);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); color: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2E1B10;
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: var(--coffee-800);
  border-color: var(--coffee-400);
}
.btn-outline:hover { background: var(--coffee-200); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Cards & Sections ===== */
.section { padding: 50px 0; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
}
.section-title h2 {
  font-size: 30px;
  margin: 0;
  color: var(--coffee-900);
}
.section-title p { color: var(--muted); margin: 0; }

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stage-card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.stage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--coffee-400);
}
.stage-card .stage-num {
  position: absolute;
  top: 16px; left: 16px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--coffee-700);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 18px;
}
.stage-card h3 { margin: 50px 0 8px; font-size: 22px; color: var(--coffee-900); }
.stage-card p  { color: var(--muted); margin: 0 0 20px; }

/* ===== Forms ===== */
.card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid.full > * { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 700;
  color: var(--coffee-800);
  font-size: 14px;
}
.field .hint { font-size: 12px; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--coffee-500);
  box-shadow: 0 0 0 4px rgba(111,78,55,.15);
}
.textarea { min-height: 110px; resize: vertical; }

.input-group {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--coffee-500); }
.chip.active {
  background: var(--coffee-700);
  color: var(--cream-50);
  border-color: var(--coffee-700);
}

/* Sliders */
.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.slider-row output {
  background: var(--coffee-200);
  color: var(--coffee-900);
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
}
input[type=range] {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--coffee-200);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--coffee-700);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  border: 2px solid var(--gold);
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--coffee-700);
  cursor: pointer;
  border: 2px solid var(--gold);
}

/* ===== Coffee Cup (SVG-like CSS) ===== */
.cup-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 820px) {
  .cup-stage { grid-template-columns: 1fr; }
}

.cup-wrap {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.cup {
  position: relative;
  width: 260px;
  height: 340px;
  background: linear-gradient(180deg, #FFFBF3 0%, #F4E7CF 100%);
  border: 3px solid var(--coffee-800);
  border-radius: 18px 18px 40px 40px / 18px 18px 70px 70px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cup .lid {
  position: absolute;
  top: -18px; left: -6px; right: -6px;
  height: 30px;
  background: linear-gradient(180deg, #3E2516, #2A180E);
  border-radius: 12px 12px 4px 4px;
  border: 3px solid var(--coffee-900);
}
.cup .lid::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 4px;
  width: 40px; height: 10px;
  background: #1B0E07;
  border-radius: 4px;
}
.cup .sleeve {
  position: absolute;
  top: 45%; left: 0; right: 0;
  height: 28%;
  background: repeating-linear-gradient(-45deg, #C49569 0 8px, #B58758 8px 16px);
  border-top: 2px solid var(--coffee-800);
  border-bottom: 2px solid var(--coffee-800);
  display: grid;
  place-items: center;
}
.cup .logo {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 35%, var(--coffee-900) 36% 100%);
  color: var(--cream-50);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 11px;
  border: 2px solid var(--coffee-900);
  text-align: center;
  line-height: 1;
}
.cup .notes {
  position: absolute;
  top: 6px; left: 0; right: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--coffee-900);
  font-weight: 700;
}
.cup .scribble {
  position: absolute;
  bottom: 16%;
  left: 0; right: 0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--coffee-900);
  text-align: center;
  transform: rotate(-4deg);
}

/* Recipe paper */
.recipe-paper {
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(111,78,55,.08) 28px 29px),
    linear-gradient(180deg, #FFFDF7, #FDF4E0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  font-family: "Courier New", monospace;
}
.recipe-paper::before,
.recipe-paper::after {
  content: "";
  position: absolute;
  top: -6px; height: 12px; width: 40px;
  background: rgba(212,175,55,.35);
  border-radius: 2px;
}
.recipe-paper::before { left: 30px; transform: rotate(-8deg); }
.recipe-paper::after  { right: 30px; transform: rotate(6deg); }

.recipe-paper h3 {
  margin: 0 0 6px;
  color: var(--coffee-900);
  font-size: 22px;
  letter-spacing: .5px;
}
.recipe-paper .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.recipe-paper ul { list-style: none; padding: 0; margin: 8px 0; }
.recipe-paper li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(111,78,55,.25);
  font-size: 15px;
}
.recipe-paper li b { color: var(--coffee-900); }

/* Saved recipes list */
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.saved-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.saved-item h4 { margin: 0; color: var(--coffee-900); }
.saved-item small { color: var(--muted); }
.saved-item .actions { display: flex; gap: 6px; margin-top: 8px; }
.saved-item .actions button { flex: 1; padding: 6px 10px; font-size: 12px; }

/* ===== Marketplace ===== */
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  min-width: 200px;
  max-width: 520px;
}

.listings-grid, .baristas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.listing-card, .barista-card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover, .barista-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.listing-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--coffee-300), var(--coffee-500));
  display: grid;
  place-items: center;
  color: var(--coffee-900);
  font-size: 36px;
  overflow: hidden;
}
.listing-media img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Barista card: LinkedIn-style banner + circular avatar */
.barista-banner {
  height: 72px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212,175,55,.45), transparent 45%),
    linear-gradient(135deg, var(--coffee-700), var(--coffee-900));
}
.barista-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coffee-300), var(--coffee-500));
  border: 4px solid var(--cream-50);
  margin: -56px auto 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--coffee-900);
  font-size: 40px;
  box-shadow: 0 6px 18px rgba(62,39,22,.18);
}
.barista-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.barista-card { text-align: center; }
.barista-card .meta-row { justify-content: center; }

.listing-body, .barista-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-body h3, .barista-body h3 { margin: 0; font-size: 17px; color: var(--coffee-900); }

/* Avatar preview inside the form (circular) */
.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 10px auto 0;
  background: var(--coffee-200);
  border: 4px solid var(--cream-50);
  box-shadow: 0 4px 12px rgba(62,39,22,.15);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--coffee-700);
  font-size: 36px;
  position: relative;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Semi-transparent overlay shown while a photo is uploading */
.avatar-preview .upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: inherit;
  text-align: center;
  padding: 6px;
  line-height: 1.3;
}

/* Disabled submit button visual */
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.6);
}

/* Auth toolbar chip */
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coffee-200);
  color: var(--coffee-900);
  font-weight: 700;
  font-size: 14px;
}
.auth-chip .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coffee-700); color: var(--gold);
  display: grid; place-items: center;
  font-weight: 900;
}

/* Dynamic list entries (experiences, certifications, languages) */
.dyn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.dyn-entry {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}
.dyn-entry .remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background .15s ease;
}
.dyn-entry .remove-btn:hover {
  background: var(--danger);
  color: #fff;
}
.dyn-entry .dyn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dyn-entry .dyn-grid.full { grid-template-columns: 1fr; }
.dyn-entry .field { margin: 0; }
.dyn-entry label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.dyn-entry .input,
.dyn-entry .select { padding: 8px 10px; font-size: 14px; }
.dyn-entry .current-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--coffee-800);
  cursor: pointer;
}
@media (max-width: 480px) {
  .dyn-entry .dyn-grid { grid-template-columns: 1fr; }
}

/* Agreement checkbox (terms + privacy) */
.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--coffee-800);
  cursor: pointer;
  line-height: 1.7;
}
.terms-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--coffee-700);
  margin-top: 2px;
  cursor: pointer;
}
.terms-check a {
  color: var(--coffee-700);
  font-weight: 700;
  text-decoration: underline;
}
.terms-check a:hover { color: var(--coffee-900); }

/* Auth tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--coffee-200);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--coffee-800);
  user-select: none;
  transition: background .15s ease, color .15s ease;
}
.tab.active {
  background: var(--cream-50);
  color: var(--coffee-900);
  box-shadow: var(--shadow-sm);
}
.price {
  color: var(--gold-dark);
  font-weight: 900;
  font-size: 18px;
}
.meta-row {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.listing-body p, .barista-body p { margin: 0; color: var(--muted); font-size: 14px; }
.listing-actions, .barista-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  margin-top: auto;
}
.listing-actions a, .barista-actions a { flex: 1; text-align: center; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--coffee-200);
  color: var(--coffee-900);
  font-size: 12px;
  font-weight: 700;
}

/* Upload */
.upload {
  border: 2px dashed var(--coffee-400);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.upload:hover { background: var(--coffee-200); border-color: var(--coffee-700); }
.upload input { display: none; }
.upload .preview,
.preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.upload .preview img,
.preview > img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; }

/* Pending upload tile in marketplace previews */
.upload-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.upload-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-tile .upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--coffee-900);
  color: var(--cream-50);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: slideUp .25s ease;
}
.toast.success { background: var(--leaf); }
.toast.error   { background: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty h3 { color: var(--coffee-900); margin: 0 0 6px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  background: var(--cream-50);
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(46, 27, 16, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal header h3 { margin: 0; color: var(--coffee-900); }
.modal .close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 20px; }
  .hero h1 { font-size: 34px; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .stages-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--coffee-400);
    color: var(--coffee-800);
    padding: 8px 12px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 12px; right: 12px;
    background: var(--cream-50);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}
