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

:root {
  --bg: #2a1108;
  --card: rgba(255,255,255,0.09);
  --card-inner: rgba(255,255,255,0.13);
  --primary: #f59e0b;
  --primary-end: #ea580c;
  --primary-hover: #fbbf24;
  --text: #f5ede4;
  --text-muted: rgba(245,237,228,0.58);
  --border: rgba(255,140,0,0.2);
  --border-focus: rgba(245,158,11,0.6);
  --shadow: 0 10px 32px rgba(0,0,0,0.45), 0 1px 0 rgba(255,140,0,0.08) inset;
  --glow: 0 0 24px rgba(245,158,11,0.15);
  --radius: 16px;
  --grad-primary: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse 80% 50% at 15% 0%, #4a1c08 0%, transparent 55%),
              radial-gradient(ellipse 60% 40% at 85% 100%, #3a1206 0%, transparent 50%),
              #2a1108;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  box-shadow: 0 6px 22px rgba(245,158,11,0.45);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.4);
  color: var(--primary);
}
.btn-full { width: 100%; justify-content: center; padding: 13px; }

/* ── Login page ── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.login-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow), var(--glow);
  border: 1px solid rgba(255,140,0,0.18);
  backdrop-filter: blur(16px);
  text-align: center;
}
.ruentro-title {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.bbq-section h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.bbq-text {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.bbq-text .highlight { color: var(--primary); font-weight: 700; }
.bbq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  display: inline-block;
}
.bbq-list li {
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 4px 0;
}
.bbq-aside { opacity: 0.6; font-size: 0.9em; }
.bbq-final {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 0;
}
.emoji-row { font-size: 2rem; margin: 18px 0; }
.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.login-card { text-align: left; }
.login-card h2 {
  font-size: 1rem;
  margin-bottom: 18px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

/* ── Alerts ── */
.alert {
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-error  { background: rgba(185,28,28,0.25); color: #fca5a5; border: 1px solid rgba(185,28,28,0.4); }
.alert-success{ background: rgba(21,128,61,0.25); color: #86efac; border: 1px solid rgba(21,128,61,0.4); }

/* ── Header ── */
.site-header {
  background: rgba(30,12,4,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,140,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-brand h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.header-brand h1 a { color: inherit; }
.header-brand span {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  line-height: 1;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Gallery ── */
.gallery-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}
.gallery-hero {
  text-align: center;
  padding: 20px 0 32px;
}
.gallery-hero h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.gallery-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.photo-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  background: var(--card-inner);
  border: 1px solid var(--border);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.65));
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.btn-delete {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-delete:hover { background: #fff; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--primary); }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; font-size: 1rem; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  z-index: 9999;
  transition: opacity 0.4s, transform 0.4s;
  backdrop-filter: blur(10px);
}
.toast-success {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 8px 28px rgba(245,158,11,0.35);
}
.toast-error {
  background: rgba(185,28,28,0.9);
  color: #fff;
  border: 1px solid rgba(239,68,68,0.3);
}
.toast.hide { opacity: 0; transform: translateY(12px); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: rgba(36,16,6,0.94);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.14);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Upload area ── */
.upload-area {
  margin: 24px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 160px;
  position: relative;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(255,165,0,0.05);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  pointer-events: none;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-placeholder p { font-weight: 700; margin-bottom: 4px; }
.upload-placeholder small { color: var(--text-muted); font-size: 0.8rem; }
.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  pointer-events: none;
}
.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 90px;
}
.preview-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
}
.preview-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  white-space: nowrap;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,165,0,0.15);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,165,0,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── Events page ── */
.events-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.events-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.events-header h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 4px; }
.events-header p  { color: var(--text-muted); font-size: 0.9rem; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.event-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,140,0,0.18);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  border-color: rgba(245,158,11,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--glow);
}
.event-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.event-card-header h3 { font-size: 1.05rem; line-height: 1.3; }
.event-keyword {
  background: rgba(255,165,0,0.12);
  color: var(--primary);
  border: 1px solid rgba(255,165,0,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.event-card-body { padding: 14px 20px; }
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.event-meta span { font-size: 0.85rem; color: var(--text-muted); }
.event-card-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 6px 18px rgba(220,38,38,0.4);
  transform: translateY(-1px);
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.events-empty { text-align: center; padding: 60px 20px; }
.events-empty .empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.events-empty h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary); }
.events-empty p  { color: var(--text-muted); }
.create-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,140,0,0.18);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.create-form h3 { margin-bottom: 20px; color: var(--primary); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Admin login corner (Default page) ── */
.admin-corner {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 300;
}
.admin-corner-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-corner-btn:hover { color: var(--text); border-color: var(--primary); }
.admin-corner-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 260px;
  box-shadow: var(--shadow);
}
.admin-corner-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: center;
}
.input-keyword { font-size: 1.05rem !important; font-weight: 700 !important; letter-spacing: 0.5px; }

/* ── Gallery back link ── */
.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 2px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ── Copy feedback ── */
.copy-feedback {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #1a0800;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
}
.copy-feedback.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Setup page ── */
.setup-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.setup-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
}
.setup-card h2 { margin-bottom: 6px; font-size: 1.2rem; }
.setup-card .subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.manage-link { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.manage-link a { color: var(--primary); font-weight: 700; }

/* ── Manage users ── */
.user-list { margin-top: 20px; }
.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.user-item:last-child { border-bottom: none; }

/* ── Confirm page ── */
.confirm-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
}
/* ── RSVP status panel (Confirm) ── */
.rsvp-status-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.rsvp-status-card.status-yes { border-color: rgba(21,128,61,0.4); background: rgba(21,128,61,0.08); }
.rsvp-status-card.status-no  { border-color: rgba(185,28,28,0.4); background: rgba(185,28,28,0.08); }
.rsvp-status-info { margin-bottom: 16px; }
.rsvp-status-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.rsvp-status-text { font-size: 0.97rem; color: var(--text-muted); }
.rsvp-status-text strong { color: var(--text); }
.rsvp-status-people  { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }
.rsvp-status-comment { font-size: 0.88rem; color: var(--text-muted); font-style: italic; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.rsvp-status-comment::before { content: '\201C'; }
.rsvp-status-comment::after  { content: '\201D'; }
/* ── People counters ── */
.rsvp-counters { display: flex; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.rsvp-counter  { display: flex; align-items: center; gap: 12px; }
.counter-label { font-size: 0.9rem; color: var(--text-muted); min-width: 80px; }
.counter-stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.counter-btn {
  background: var(--card-inner); border: none; cursor: pointer;
  width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700;
  color: var(--text); transition: background 0.15s; line-height: 1;
}
.counter-btn:hover { background: var(--border); }
.counter-val { min-width: 32px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--text); }
/* RSVP people badge in admin list */
.rsvp-people-badge { font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.08); border-radius: 4px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.rsvp-status-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── Admin RSVP buttons in list ── */
.rsvp-admin-btns { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.rsvp-admin-btn {
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1.6;
}
.rsvp-edit-btn { background: rgba(255,165,0,0.15); color: var(--primary); }
.rsvp-edit-btn:hover { background: rgba(255,165,0,0.3); }
.rsvp-del-btn  { background: rgba(185,28,28,0.15); color: #fca5a5; }
.rsvp-del-btn:hover  { background: rgba(185,28,28,0.3); }
.rsvp-edit-label { font-weight: 700; font-size: 1rem; margin-bottom: 12px; }

/* ── Help button + modal ── */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-inner);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 6px;
}
.help-btn:hover { border-color: var(--primary); color: var(--primary); }
.help-modal-body { padding: 16px 24px; }
.help-modal-body p { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.6; }
.help-invite-example {
  background: var(--card-inner);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.9rem;
  line-height: 1.8;
  border-left: 3px solid var(--primary);
}
.help-invite-example p { margin: 0; }
.help-url { font-size: 0.85rem; color: var(--text-muted); word-break: break-all; }
.help-code-highlight { color: var(--primary); font-weight: 700; }
.help-tip { font-size: 0.88rem; color: var(--text-muted); }
.help-tip strong { color: var(--text); }

.confirm-brand { margin-bottom: 20px; text-align: center; }
.confirm-brand h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
}
.login-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
  opacity: 0.92;
}
.header-logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.confirm-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}
.confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}
.confirm-event {
  padding: 28px 28px 20px;
  text-align: center;
  background: var(--card-inner);
  border-bottom: 1px solid var(--border);
}
.confirm-fire { font-size: 2.8rem; margin-bottom: 8px; }
.confirm-event h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 6px; }
.confirm-date { color: var(--text-muted); font-size: 0.9rem; }
.confirm-error {
  margin: 16px 20px 0;
  padding: 10px 14px;
  background: rgba(185,28,28,0.25);
  color: #fca5a5;
  border: 1px solid rgba(185,28,28,0.4);
  border-radius: 8px;
  font-size: 0.9rem;
}
.confirm-form { padding: 24px 28px; }
.confirm-name-step { padding: 24px 28px 28px; }
.confirm-name-step .form-group { margin-bottom: 20px; }
.already-confirmed-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.confirm-name-header { padding: 14px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.confirm-name-val { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.back-to-name { margin-top: 12px; text-align: center; }
.btn-link { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; padding: 0; text-decoration: underline; }
.confirm-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.confirm-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.confirm-textarea { resize: vertical; min-height: 80px; display: block; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; display: block; }
.btn-confirm { width: 100%; justify-content: center; padding: 13px; margin-top: 8px; }
.reenter-section { text-align: center; margin-top: 14px; }
.reenter-link {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  width: 100%;
  display: block;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.reenter-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,165,0,0.06); }

/* ── Attend toggle ── */
.attend-toggle { display: flex; gap: 10px; margin-top: 4px; }
.attend-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.attend-btn:not(.active):hover { border-color: var(--primary); color: var(--text); }
.attend-yes.active { background: rgba(21,128,61,0.25); color: #86efac; border-color: rgba(21,128,61,0.5); }
.attend-no.active  { background: rgba(185,28,28,0.25); color: #fca5a5; border-color: rgba(185,28,28,0.4); }

/* ── RSVP list in Events ── */
.rsvp-panel { display: none; margin-top: 10px; }
.rsvp-panel.open { display: block; }
.rsvp-list { list-style: none; }
.rsvp-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.rsvp-item:last-child { border-bottom: none; }
.rsvp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rsvp-icon { flex-shrink: 0; font-weight: 700; }
.rsvp-yes .rsvp-icon { color: #86efac; }
.rsvp-no  .rsvp-icon { color: #fca5a5; }
.rsvp-name { font-weight: 700; }
.rsvp-comment { color: var(--text-muted); font-style: italic; padding-left: 20px; font-size: 0.82rem; }
.rsvp-ts { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; margin-left: auto; }
.rsvp-empty { color: var(--text-muted); font-size: 0.85rem; font-style: italic; margin: 6px 0 0; }
.rsvp-add-row { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--border); }
.rsvp-add-btn {
  background: none; border: none; cursor: pointer; color: var(--primary);
  font-size: 0.82rem; font-weight: 600; padding: 4px 0;
  transition: opacity 0.15s;
}
.rsvp-add-btn:hover { opacity: 0.75; }
.btn-rsvp-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 0 0;
  font-weight: 700;
  text-decoration: underline dotted;
  display: block;
}
.btn-rsvp-toggle:hover { opacity: 0.8; }

/* ── Likers popover ── */
.likers-popover {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  min-width: 150px;
  max-width: 220px;
  z-index: 1200;
  overflow: hidden;
}
.likers-pop-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f87171;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--border);
}
.likers-pop-name {
  font-size: 0.85rem;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,165,0,0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.likers-pop-name:last-child { border-bottom: none; }

/* ── Photo reactions bar ── */
.photo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 8px 7px;
  pointer-events: none;
}
.react-btn {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  pointer-events: auto;
  line-height: 1.4;
}
.react-btn:hover { background: rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.4); }
.react-like.liked { background: rgba(220,38,38,0.5); border-color: rgba(255,100,100,0.5); }
.react-count { min-width: 10px; }
.react-group { display: inline-flex; align-items: center; }
.react-count-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px 4px 3px;
  font-family: inherit;
  line-height: 1;
  pointer-events: auto;
  min-width: 18px;
  text-align: left;
}
.react-count-btn:hover { color: #fff; text-decoration: underline; }

/* ── Lightbox reactions ── */
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.lightbox-reactions { display: flex; gap: 8px; }
.lb-react-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  font-family: inherit;
}
.lb-react-btn:hover { background: rgba(255,255,255,0.22); }
.lb-like.liked { background: rgba(220,38,38,0.4); border-color: rgba(255,100,100,0.4); }
.lb-count-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  min-width: 22px;
  text-align: left;
}
.lb-count-btn:hover { color: #fff; text-decoration: underline; }

/* ── Comments modal ── */
.comments-modal { max-width: 460px; }
.comments-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 20px 4px;
}
.comments-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
  text-align: center;
  padding: 24px 0;
}
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-who { font-weight: 700; font-size: 0.85rem; }
.comment-ts  { color: var(--text-muted); font-size: 0.75rem; }
.comment-text { font-size: 0.9rem; line-height: 1.45; word-break: break-word; }
.comments-add {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.comment-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card-inner);
  font-family: inherit;
  transition: border-color 0.2s;
  min-width: 0;
}
.comment-input:focus { outline: none; border-color: var(--primary); }
.comment-header { flex-wrap: wrap; }
.comment-actions { margin-left: auto; display: flex; gap: 4px; }
.comment-edit-btn, .comment-del-btn {
  background: none; border: none; cursor: pointer; padding: 2px 5px;
  font-size: 0.85rem; border-radius: 4px; color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.comment-edit-btn:hover { color: var(--primary); background: rgba(var(--primary-rgb,212,124,28),0.1); }
.comment-del-btn:hover  { color: #dc2626; background: rgba(220,38,38,0.1); }
.comment-edit-area { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.comment-edit-input {
  width: 100%; padding: 7px 10px; border: 1.5px solid var(--primary);
  border-radius: 7px; font-size: 0.9rem; color: var(--text);
  background: var(--card-inner); font-family: inherit; box-sizing: border-box;
}
.comment-edit-input:focus { outline: none; }
.comment-edit-btns { display: flex; gap: 8px; }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.likers-section {
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.5;
}
.likers-label { color: #f87171; font-weight: 700; }
.likers-names { color: var(--text-muted); }

/* ── Rich text editor ── */
.editor-container {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-inner);
  transition: border-color 0.2s;
}
.editor-container:focus-within { border-color: var(--primary); }
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  flex-wrap: wrap;
}
.toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s;
  min-width: 30px;
  text-align: center;
}
.toolbar-btn:hover  { background: rgba(255,165,0,0.12); border-color: var(--border); }
.toolbar-btn.active { background: rgba(255,165,0,0.22); border-color: var(--primary); color: var(--primary); }
.toolbar-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.ementa-editor {
  min-height: 210px;
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  line-height: 1.7;
  outline: none;
  word-break: break-word;
}
.ementa-editor:empty::before {
  content: 'Ex: Entrecosto, Frango, Salada, Cerveja...';
  color: var(--text-muted);
  pointer-events: none;
}
.ementa-editor ul { margin-left: 20px; }
.editor-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 7px; }

/* ── Ementa ── */
.ementa-modal { max-width: 560px; }
.ementa-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--card-inner);
  font-family: inherit;
  resize: vertical;
  min-height: 220px;
  transition: border-color 0.2s;
  display: block;
}
.ementa-textarea:focus { outline: none; border-color: var(--primary); }
.ementa-modal-body { padding: 20px 24px 4px; }
.ementa-display {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
/* Confirm page ementa section */
.confirm-ementa-section {
  border-top: 1px solid var(--border);
  padding: 0;
}
.confirm-ementa-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 28px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.confirm-ementa-toggle:hover { background: rgba(255,165,0,0.05); }
.ementa-arrow { margin-left: auto; font-size: 0.7rem; }
.confirm-ementa-content {
  display: none;
  padding: 0 28px 16px;
  background: var(--card-inner);
  border-top: 1px solid var(--border);
}
.confirm-ementa-content.open { display: block; }
.confirm-ementa-content .ementa-display {
  padding-top: 12px;
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-content {
    padding: 10px 16px;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .header-brand h1 { font-size: 1.2rem; }
  .header-brand span { display: none; }
  .header-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-nav .btn { padding: 8px 14px; font-size: 0.82rem; }
  .user-info { display: none; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-main { padding: 20px 16px; }
  .lightbox-nav {
    padding: 12px 14px;
    font-size: 1.8rem;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    top: 50%;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .login-container { padding: 28px 20px; }
  .ruentro-title { font-size: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .events-main { padding: 20px 16px; }
  .events-header { flex-direction: column; }
}

/* ── PIN styles ── */
.pin-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  font-weight: 700;
  width: 100%;
  max-width: 160px;
}
.pin-reenter-group {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pin-create-section {
  background: rgba(255,165,0,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.pin-create-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.pin-create-fields {
  display: flex;
  gap: 12px;
}
.pin-create-fields .pin-input {
  flex: 1;
  max-width: none;
}
.confirm-pin-setup {
  background: var(--card-inner);
  border-radius: var(--radius);
  padding: 28px;
}
.pin-setup-header {
  text-align: center;
  margin-bottom: 22px;
}
.pin-setup-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 8px;
}
.pin-setup-header h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.pin-setup-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.rsvp-pin-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 4px;
  margin-right: 2px;
}
.rsvp-no-pin {
  opacity: 0.3;
}
.rsvp-pin-reset-btn {
  opacity: 0.7;
}
.rsvp-pin-reset-btn:hover {
  opacity: 1;
  color: var(--primary);
}
.rsvp-pin-reset-disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Search bar ── */
.search-bar-wrap {
  position: relative;
  max-width: 420px;
  margin-bottom: 1.25rem;
}
.search-bar-input {
  width: 100%;
  padding: 11px 42px 11px 16px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.search-bar-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.search-bar-input::placeholder { color: var(--text-muted); }
.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
.search-clear:hover { color: var(--text); }
.search-no-results {
  color: var(--text-muted);
  font-style: italic;
  padding: 20px 0 8px;
  font-size: 0.95rem;
}

/* ── Recipes ── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.recipe-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,140,0,0.18);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.recipe-card:hover {
  border-color: rgba(245,158,11,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--glow);
}
.recipe-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.recipe-cover-placeholder {
  width: 100%;
  height: 170px;
  background: var(--card-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.recipe-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recipe-category-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,165,0,0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.recipe-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}
.recipe-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* RecipeEdit form */
.recipe-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.recipe-edit-section {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,140,0,0.18);
}
.recipe-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.recipe-cover-preview {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.recipe-check label { font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.file-upload-input {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
.form-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-select:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }

/* Ingredients table */
.ingredients-table {
  width: 100%;
  border-collapse: collapse;
}
.ingredients-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 6px 8px;
}
.ingredients-table td { padding: 4px 6px 4px 0; }
.ingredients-table td:last-child { padding-right: 0; }
.ing-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ing-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.ing-remove-btn {
  background: none;
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.ing-remove-btn:hover { color: #ef4444; border-color: rgba(239,68,68,0.4); }

/* Steps list */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.step-edit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  counter-increment: step-counter;
}
.step-edit-item::before {
  content: counter(step-counter);
  min-width: 28px;
  height: 28px;
  background: var(--primary);
  color: #1a0800;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text-input {
  flex: 1;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step-text-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.step-remove-btn {
  background: none;
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.step-remove-btn:hover { color: #ef4444; border-color: rgba(239,68,68,0.4); }

/* ── Recipe View ── */
.recipe-view-main {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.recipe-view-hero {
  position: relative;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
}
.recipe-view-cover {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
.recipe-view-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(30,10,0,0.7));
}
.recipe-view-body {
  padding: 0 24px;
}
.recipe-view-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.recipe-view-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.recipe-view-servings {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.recipe-view-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.recipe-view-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.recipe-view-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.recipe-view-section {}
.recipe-view-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.recipe-ingredients-view {
  width: 100%;
  border-collapse: collapse;
}
.ingredient-row {
  border-bottom: 1px solid rgba(255,165,0,0.08);
}
.ingredient-row:last-child { border-bottom: none; }
.ing-view-qty {
  width: 80px;
  font-weight: 700;
  color: var(--primary);
  padding: 9px 8px 9px 0;
  vertical-align: top;
  white-space: nowrap;
}
.ing-view-unit {
  width: 70px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 9px 8px;
  vertical-align: top;
  white-space: nowrap;
}
.ing-view-name {
  color: var(--text);
  padding: 9px 0;
  vertical-align: top;
}
.recipe-steps-view {
  list-style: none;
  counter-reset: step-view;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}
.recipe-step-view {
  counter-increment: step-view;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.6;
  color: var(--text);
}
.recipe-step-view::before {
  content: counter(step-view);
  min-width: 32px;
  height: 32px;
  background: var(--primary);
  color: #1a0800;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .recipe-view-body { padding: 0 16px; }
  .recipe-view-title { font-size: 1.4rem; }
  .recipe-view-actions { gap: 0.5rem; }
  .recipe-view-actions .btn { flex: 1; justify-content: center; }
}
