/* ============================================================
   Infotafel – Design System CSS
   Version 1.0 · Based on Style Guide v1.0
   Fonts werden lokal gehostet (fonts/fonts.css) – kein Google-CDN (DSGVO).
   ============================================================ */

/* --- CSS Variables (from Style Guide §2) --- */
:root {
  /* Primary */
  --primary: #2B6B4F;
  --primary-light: #E8F3ED;
  --primary-dark: #1E4D38;

  /* Accent */
  --accent: #E8913A;
  --accent-light: #FFF3E6;

  /* Status */
  --danger: #C0392B;
  --danger-light: #FDEDEC;
  --success: #27AE60;

  /* Poll (Umfragen, aus states-poll.html) */
  --poll: #7E57C2;
  --poll-light: #EDE7F6;
  --poll-track: #D1C4E9;

  /* Neutrals */
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --border: #E5E5E0;

  /* Group Colors */
  --group-1: #2471A3; --group-1-bg: #EBF5FB;
  --group-2: #CA6F1E; --group-2-bg: #FEF5E7;
  --group-3: #1ABC9C; --group-3-bg: #E8F8F5;
  --group-4: #8E44AD; --group-4-bg: #F5EEF8;
  --group-5: #C0392B; --group-5-bg: #FDEDEC;
  --group-6: #2E86C1; --group-6-bg: #EBF5FB;
  --group-7: #D4AC0D; --group-7-bg: #FEF9E7;
  --group-8: #1E8449; --group-8-bg: #E9F7EF;

  /* Spacing (4px grid, §4) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-base: 16px;
  --sp-lg: 20px;
  --sp-xl: 24px;
  --sp-2xl: 32px;

  /* App-Shell-Breite: fluid auf Mobile, am Desktop zentriert begrenzt */
  --app-width: 640px;

  /* Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 20px;

  /* Shadows */
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-menu: 0 -8px 40px rgba(0,0,0,0.15);
  --shadow-hamburger: 0 4px 20px rgba(43,107,79,0.35);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Base (§3, §4) --- */
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Full-Bleed-Header nutzen 100vw; klemmt die Scrollbar-Differenz ab */
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Nunito', sans-serif;
}

/* --- Layout (§4, §8) --- */
.page {
  max-width: var(--app-width);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.content-pad {
  padding: var(--sp-base);
}

.screen-content {
  flex: 1;
  overflow-y: auto;
  /* Ohne explizites overflow-x rechnet CSS es bei gesetztem overflow-y zu "auto"
     hoch → der Container würde horizontal scrollen, sobald ein Kind zu breit ist. */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* --- Header (§5.1) --- */
.app-header {
  background: var(--primary);
  color: #fff;
  /* Full-Bleed: Bar über die volle Viewport-Breite, Inhalt bleibt in der Spalte */
  margin-inline: calc(50% - 50vw);
  padding: var(--sp-base) max(var(--sp-lg), calc(50vw - var(--app-width) / 2)) var(--sp-lg);
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-base);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.app-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.app-header-action:active {
  opacity: 0.5;
}

.app-header-action.spinning {
  animation: app-header-spin 0.6s linear infinite;
}

@keyframes app-header-spin {
  to { transform: rotate(360deg); }
}

.app-header-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.app-header-sub {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 2px;
}

.app-header-back {
  font-size: 13px;
  opacity: 0.7;
  cursor: pointer;
  margin-bottom: var(--sp-sm);
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

/* --- Hamburger Button (§5.2) --- */
.hamburger-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hamburger);
  z-index: 20;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.hamburger-btn:hover { transform: scale(1.05); }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-icon span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

/* --- Slide-Up Menu (§5.3) --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--app-width);
  margin: 0 auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 30;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: var(--shadow-menu);
}

.slide-menu.open {
  transform: translateY(0);
}

.menu-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: var(--sp-md) auto var(--sp-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--sp-base) var(--sp-xl);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.menu-item:hover { background: var(--primary-light); }

.menu-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.menu-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--sp-md);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.menu-item.active .menu-item-icon {
  background: var(--primary);
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-xs) var(--sp-xl);
}

.menu-footer {
  padding: var(--sp-md) var(--sp-xl) 28px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.menu-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* --- Cards (§4) --- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.card-body {
  padding: var(--sp-base);
}

/* --- Buttons (§5.4) --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px var(--sp-lg);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-accent  { background: var(--accent);  color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-danger  { background: var(--danger);  color: #fff; }

.btn-sm {
  padding: var(--sp-sm) 14px;
  font-size: 13px;
  width: auto;
  min-height: 36px;
  display: inline-flex;
}

/* --- Input Fields (§5.5) --- */
.input-group {
  margin-bottom: var(--sp-base);
}

.input-label {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.input-field {
  width: 100%;
  padding: var(--sp-md) 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.input-field:focus { border-color: var(--primary); }
.input-field::placeholder { color: var(--text-muted); }
.input-field.error { border-color: var(--danger); }

textarea.input-field {
  resize: none;
  min-height: 80px;
}

.input-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: var(--sp-xs);
}

/* --- Tags & Badges (§5.6) --- */
.group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-xs) var(--sp-sm) var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Shorthand group color classes */
.group-1      { background: var(--group-1-bg); color: var(--group-1); }
.group-1 .group-dot { background: var(--group-1); }
.group-2      { background: var(--group-2-bg); color: var(--group-2); }
.group-2 .group-dot { background: var(--group-2); }
.group-3      { background: var(--group-3-bg); color: var(--group-3); }
.group-3 .group-dot { background: var(--group-3); }
.group-4      { background: var(--group-4-bg); color: var(--group-4); }
.group-4 .group-dot { background: var(--group-4); }
.group-5      { background: var(--group-5-bg); color: var(--group-5); }
.group-5 .group-dot { background: var(--group-5); }
.group-6      { background: var(--group-6-bg); color: var(--group-6); }
.group-6 .group-dot { background: var(--group-6); }
.group-7      { background: var(--group-7-bg); color: var(--group-7); }
.group-7 .group-dot { background: var(--group-7); }
.group-8      { background: var(--group-8-bg); color: var(--group-8); }
.group-8 .group-dot { background: var(--group-8); }

.tag {
  display: inline-block;
  padding: 2px var(--sp-sm);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.tag-info     { background: var(--accent-light); color: var(--accent); }
.tag-cancel   { background: var(--danger-light); color: var(--danger); }
.tag-role     { background: var(--primary-light); color: var(--primary); }
.tag-owner    { background: var(--accent-light); color: var(--accent); }
.tag-poll     { background: var(--poll-light); color: var(--poll); }

/* --- Event Item (§5.7) --- */
.event-item {
  display: flex;
  gap: var(--sp-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.event-item:last-child { border-bottom: none; }

.event-time {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  min-width: 52px;
  padding-top: 1px;
  flex-shrink: 0;
  /* In den Abschnitten "Nächste Woche"/"Später" steht hier Tag + Uhrzeit (z.B. "Mi 17:30").
     nowrap hält das auf einer Zeile, statt in den Titel zu rutschen. */
  white-space: nowrap;
}

/* Textspalte der Event-Zeile: muss schrumpfen dürfen (min-width:0), sonst sprengen
   lange Titel/Beschreibungen die Breite → horizontales Scrollen + Überlappen. */
.event-content {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.event-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-badge {
  margin-top: 6px;
}

.event-cancelled .event-title {
  text-decoration: line-through;
  opacity: 0.5;
}

/* --- List Item (§5.8) --- */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--sp-base);
  border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.list-content { flex: 1; min-width: 0; }

.list-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.list-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.list-right {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Date Label --- */
.date-label {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--sp-sm);
  margin-top: var(--sp-xs);
}

/* --- Section Title --- */
.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: var(--sp-base) 0 var(--sp-md);
}

/* --- Homescreen Banner (§5.9) --- */
.homescreen-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-base);
  background: var(--accent-light);
  border-bottom: 1px solid #F0D9B5;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.homescreen-banner-close {
  margin-left: auto;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}

/* --- Empty State (§5.10, states-empty.html) --- */
.empty-state {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.empty-icon {
  font-size: 56px;
  margin-bottom: var(--sp-base);
  opacity: 0.8;
}

.empty-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto var(--sp-lg);
}

.empty-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.empty-btn:hover { opacity: 0.9; }
.empty-btn-primary { background: var(--primary); color: #fff; }
.empty-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }

.empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

/* --- Steps Hint (states-empty.html) --- */
.steps-hint {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: var(--sp-base);
  margin-top: var(--sp-lg);
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.step-row {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-top: 4px;
}

/* --- Error State (states-error.html) --- */
.error-state {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.error-icon {
  font-size: 56px;
  margin-bottom: var(--sp-base);
}

.error-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.error-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto var(--sp-lg);
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.error-btn:hover { opacity: 0.9; }
.error-btn-primary { background: var(--primary); color: #fff; }
.error-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.error-btn-danger  { background: var(--danger); color: #fff; }

.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.error-card {
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  padding: var(--sp-base);
  border-left: 4px solid var(--danger);
  margin-bottom: var(--sp-base);
}

.error-card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 4px;
}

.error-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.warning-card {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: var(--sp-base);
  border-left: 4px solid var(--accent);
  margin-bottom: var(--sp-base);
}

.warning-card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.warning-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Header Danger-Variante (Beitritt abgelehnt) --- */
.app-header-danger {
  background: var(--danger);
}

/* --- Role Picker (§5.11) --- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.role-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-base);
  border: 2px solid var(--border);
  border-radius: var(--sp-md);
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.role-tile:hover { border-color: var(--primary); }

.role-tile.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.role-emoji {
  font-size: 32px;
}

.role-name {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* --- Toggle (§7) --- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) 0;
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
}

.toggle-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.toggle-track {
  width: 48px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-track.on { background: var(--primary); }

.toggle-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: left 0.2s;
}

.toggle-track.on .toggle-thumb { left: 23px; }

/* --- Tab Bar (Poster/Besitzer views) --- */
.tab-bar {
  display: flex;
  background: var(--primary-dark);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: var(--sp-md) 0;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-item.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* --- Confirmation Dialog (§7) --- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.confirm-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--app-width);
  margin: 0 auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 0 var(--sp-lg) 28px;
}

.confirm-sheet.open { transform: translateY(0); }

.confirm-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--sp-sm);
}

.confirm-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* --- Toast / Banner Feedback (§7) --- */
.toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--app-width);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-base);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  z-index: 50;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.toast.show { transform: translateY(0); }
.toast-success { background: var(--success); color: #fff; }
.toast-error   { background: var(--danger);  color: #fff; }

/* --- Type Selector (Beitrag erstellen) --- */
.type-selector {
  display: flex;
  gap: var(--sp-sm);
}

.type-chip {
  padding: var(--sp-sm) var(--sp-base);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.type-chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin: var(--sp-base) 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Seen Counter (Admin) --- */
.seen-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
}

/* --- Pending Badge --- */
.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  padding: 0 6px;
}

/* --- QR Display --- */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-xl);
}

.qr-box {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  margin-bottom: var(--sp-base);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.mt-xs  { margin-top: var(--sp-xs); }
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mt-base { margin-top: var(--sp-base); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-base { margin-bottom: var(--sp-base); }
.gap-sm { gap: var(--sp-sm); }
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* --- Spacer (bottom padding for hamburger clearance) --- */
.hamburger-clearance {
  height: 80px;
}
