:root {
  --bg-top: #0b0f16;
  --bg-bottom: #121826;
  --ink: #e6e9ef;
  --muted: #a5aebb;
  --title: #e3c88b;
  --accent: #b58a46;
  --accent-strong: #8c6a37;
  --warn: #f59e0b;
  --danger: #ef4444;
  --card: #151c27;
  --border: #273043;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: "Almendra Sans", "Segoe UI", sans-serif;
    line-height: 1.5;
    background: radial-gradient(circle at 20% -10%, rgba(179, 140, 70, 0.15), transparent 45%),
                radial-gradient(circle at 90% 0%, rgba(84, 105, 138, 0.18), transparent 48%),
                linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  }

h1, h2, h3, h4, h5 {
    color: var(--title);
}

.brand {
    color: var(--title);
}

a {
  color: #c9a05e;
  text-decoration: none;
}

a:hover {
  color: #e3bc80;
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 16, 24, 0.95);
  border-bottom: 1px solid rgba(60, 70, 90, 0.6);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.18rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.94rem;
}

.main-content {
  padding-top: 8px;
  padding-bottom: 40px;
}

.nav-submit-event {
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid rgba(181, 138, 70, 0.45);
  border-radius: 5px;
  padding: 2px 9px;
}

.nav-submit-event:hover {
  background: rgba(181, 138, 70, 0.12);
}

/* ── Nav Bell ────────────────────────────────────────────── */
.nav-bell-toggle {
  position: relative;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.nav-bell-toggle:hover,
.nav-bell-toggle[aria-expanded="true"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.6);
}

.nav-bell-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

.nav-notif-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ── Nav Dropdown ─────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 1px solid rgba(181, 138, 70, 0.4);
  border-radius: 8px;
  color: #c9a05e;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  background: rgba(181, 138, 70, 0.12);
  color: #e3bc80;
  border-color: rgba(181, 138, 70, 0.7);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #151c27;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 100;
}

.nav-dropdown-menu.is-open {
  display: block;
}

.nav-dropdown-menu li a,
.nav-dropdown-logout {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 0.93rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-logout:hover {
  background: rgba(181, 138, 70, 0.1);
  color: #e3bc80;
  text-decoration: none;
}

.nav-dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.nav-dropdown-logout {
  color: #fca5a5;
}

.nav-dropdown-logout:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.1);
}

.hero {
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2a20, #132238);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero h1 {
  margin-top: 0;
}

.hero-lean {
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(18, 24, 36, 0.92);
  border: 1px solid rgba(74, 87, 110, 0.6);
}

.hero-lean-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(181, 138, 70, 0.7);
}

.btn-outline:hover {
  background: var(--accent);
  color: #1b1308;
  border-color: var(--accent);
}

.hero-lean h1 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-lean p {
  margin: 3px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel-slim {
  padding: 10px 12px;
  border-radius: 10px;
}

.report-panel h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.max-w {
  max-width: 720px;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.flash-error {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fecaca;
}

.flash-success {
  background: #dcfce7;
  color: #14532d;
  border-color: #bbf7d0;
}

.form-grid,
.filter-grid {
  display: grid;
  gap: 10px;
}

.filter-collapsed {
  display: none;
  margin-top: 10px;
}

.filter-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-head h1,
.filter-head h2 {
  margin: 0;
}

.filter-toggle-btn.slim {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent);
  border-color: rgba(181, 138, 70, 0.6);
}

.filter-toggle-btn.slim:hover {
  background: rgba(181, 138, 70, 0.18);
  color: #f5e7c2;
  border-color: rgba(181, 138, 70, 0.9);
}

.filter-toggle-btn.slim.is-open {
  transform: rotate(180deg);
}

.form-grid label:not(.checkbox),
.filter-grid label:not(.checkbox) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
  font-size: 0.94rem;
}

.form-grid label:not(.checkbox) input,
.form-grid label:not(.checkbox) select,
.form-grid label:not(.checkbox) textarea,
.filter-grid label:not(.checkbox) input,
.filter-grid label:not(.checkbox) select,
.filter-grid label:not(.checkbox) textarea {
  flex: 0 0 100%;
  margin-top: 2px;
}

.required-marker {
  color: var(--danger);
  font-size: 0.85em;
  line-height: 1;
}

.form-grid-slim {
  gap: 6px;
}

.form-grid-slim label:not(.checkbox) {
  font-size: 0.88rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: #0f172a;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.85);
}

input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

textarea {
  resize: vertical;
}

button,
.btn {
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--accent);
  color: #1b1308;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-block;
}

button:hover,
.btn:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.btn-slim {
  padding: 5px 9px;
  font-size: 0.86rem;
}

.btn-ghost {
  background: #111827;
  color: #c9a05e;
  border-color: #374151;
}
.btn-ghost:hover {
  background: #0f172a;
  color: #e3bc80;
  border-color: #465063;
}

.btn-danger-ghost {
  background: #111827;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.65);
}

.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.storyteller-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 2px 0;
  font-size: 0.92rem;
}

.storyteller-line .inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.storyteller-line .follow-star-btn,
.storyteller-line > a[aria-label="Einloggen zum Folgen"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  transform: none;
  vertical-align: middle;
}

.event-rating {
  color: var(--muted);
  font-size: 0.88rem;
}

.follow-star-btn {
  border: 0;
  background: transparent;
  color: #b45309;
  padding: 0 2px;
  font-size: 1.05rem;
  line-height: 1;
}

.follow-star-btn:hover {
  background: transparent;
  color: #92400e;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.form-grid label.checkbox,
.filter-grid label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}

.inline-check {
  margin-right: 6px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #2c374a;
  text-align: left;
  padding: 8px 6px;
  vertical-align: top;
}

.data-table tr.status-confirmed td {
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
}

.data-table tr.status-pending td {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.data-table tr.status-attended td {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.data-table tr.status-muted td {
  background: rgba(71, 85, 105, 0.2);
  color: #cbd5e1;
}
.data-table tr.row-pending-highlight td {
  border-top: 2px solid #f59e0b;
  border-bottom: 2px solid #f59e0b;
}
.data-table tr.row-pending-highlight td:first-child {
  border-left: 4px solid #f59e0b;
}
.data-table tr.row-pending-highlight td:last-child {
  border-right: 2px solid #f59e0b;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: lowercase;
}

.status-badge.status-confirmed {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.status-badge.status-attended {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  border: 1px solid #2c374a;
  border-radius: 10px;
  padding: 12px;
  background: #141a25;
}

.event-card h3 {
  margin: 0 0 6px;
}

.event-card-lean {
  padding: 9px 10px;
  border-radius: 8px;
}

.event-card-lean h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.event-meta {
  margin: 2px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.event-datetime {
  font-weight: 700;
  color: var(--ink);
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(226, 232, 240, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-beginner {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
}

.badge-free-ok {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
}

.badge-free-low {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-free-none {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-waitlist {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.badge-new {
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
  border-color: rgba(14, 165, 233, 0.35);
}

.badge-status {
  background: rgba(94, 106, 123, 0.25);
  color: #e2e8f0;
  border-color: rgba(94, 106, 123, 0.4);
}

.badge-private {
  background: rgba(124, 58, 237, 0.2);
  color: #e9d5ff;
  border-color: rgba(124, 58, 237, 0.4);
}

.badge-traveller {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.4);
}

.badge-beginner::before,
.badge-private::before,
.badge-traveller::before,
.badge-waitlist::before {
  display: inline-block;
  margin-right: 4px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.badge-beginner::before {
  content: "\2726";
}

.badge-private::before {
  content: "\25C6";
}

.badge-traveller::before {
  content: "\27A4";
}

.badge-waitlist::before {
  content: "\231B";
}

.badge-community {
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.4);
}

.badge-community::before {
  content: "\2605";
  display: inline-block;
  margin-right: 4px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.event-card-community {
  border-left: 3px solid rgba(20, 184, 166, 0.5);
}

/* Community event map marker */
.map-external-icon-wrap {
  background: transparent !important;
  border: none !important;
}

.map-external-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.85);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Popup badge for community events */
.popup-community-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(20, 184, 166, 0.25);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.5);
  border-radius: 4px;
  padding: 0 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Duplicate modal ─────────────────────────────────────── */
.dup-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dup-modal-backdrop[hidden] {
  display: none;
}

.dup-modal {
  background: var(--surface);
  border: 1px solid rgba(181,138,70,0.4);
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 520px;
  width: 100%;
}

.dup-modal h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
}

.dup-list {
  margin: 10px 0 14px 0;
  padding-left: 18px;
}

.dup-list li {
  margin-bottom: 6px;
  font-size: 0.93rem;
}

.dup-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── Info-box slim (inline hints) ────────────────────────── */
.info-box-slim {
  background: rgba(181,138,70,0.07);
  border: 1px solid rgba(181,138,70,0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.93rem;
}

/* Contact list in detail view */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.contact-list li {
  padding: 4px 0;
}

.event-cta {
  margin-top: 6px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.stats-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.stats-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--title);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(181, 138, 70, 0.12);
  border: 1px solid rgba(181, 138, 70, 0.3);
  font-size: 0.86rem;
  color: #c9a05e;
}
.participant-chip:hover {
  background: rgba(181, 138, 70, 0.2);
  text-decoration: none;
}

.script-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.script-green {
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.script-orange {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

.script-red {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.script-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.86rem;
}

.script-option.script-green {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
}

.script-option.script-orange {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
}

.script-option.script-red {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}

#map {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.map-fallback {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #111827;
}

.map-fallback iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 8px;
}

.map-fallback p {
  margin: 8px 4px 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-aggregate-icon-wrap {
  background: transparent;
  border: 0;
}

.map-aggregate-icon {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: #0f766e;
  border: 2px solid #0b4f49;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.calendar-day {
  min-height: 120px;
  border: 1px solid #2c374a;
  border-radius: 8px;
  background: #141a25;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-day.is-empty {
  background: #0f1520;
  border-style: dashed;
}

.calendar-day-number {
  font-weight: 700;
  font-size: 0.9rem;
}

.calendar-empty-note {
  color: #9aa9b4;
  font-size: 0.86rem;
}

.calendar-event-chip {
  display: grid;
  gap: 2px;
  border: 1px solid #2c374a;
  border-radius: 6px;
  background: #111827;
  padding: 5px 6px;
  font-size: 0.84rem;
}

.calendar-event-chip span:last-child {
  color: #4f646f;
  font-size: 0.8rem;
}

.calendar-event-chip.chip-green {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
}

.calendar-event-chip.chip-orange {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}

.calendar-event-chip.chip-red {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

.calendar-event-chip.chip-community {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.35);
  color: #5eead4;
}

.calendar-event-chip.chip-completed {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.calendar-event-chip.chip-completed span:last-child {
  color: #94a3b8;
}

.inline-rating-form {
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  display: grid;
  gap: 8px;
}
.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.status-label {
  font-weight: 600;
  color: var(--muted);
}
.rating-fields {
  display: grid;
  gap: 8px;
}
.star-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.star-label {
  min-width: 150px;
  font-weight: 600;
}
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 3px;
}
.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-rating label {
  font-size: 1.25rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f59e0b;
}

.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.danger-btn {
  background: var(--danger);
  border-color: #7f1d1d;
  color: #fff5f5;
}

.danger-btn:hover {
  background: #dc2626;
  border-color: #991b1b;
  color: #fff5f5;
}

.btn-success {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}
.btn-success:hover {
  background: rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.6);
}

.btn-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}
.btn-warn:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.6);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 30px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 23, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1200;
}

.modal-card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.modal-card h2 {
  margin: 0 0 8px;
}

.modal-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1201;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-heatmap {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7fbfd;
}

.hint {
  margin: 8px 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.info-box h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.info-list {
  margin: 0 0 6px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.info-steps {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}

.info-highlight {
  margin: 6px 0 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  display: inline-block;
}
.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.suggestion-chip {
  background: rgba(181, 138, 70, 0.1);
  border: 1px solid rgba(181, 138, 70, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.86rem;
  color: #c9a05e;
  cursor: pointer;
}
.suggestion-chip:hover {
  background: rgba(181, 138, 70, 0.2);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .form-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-lean-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

.form-grid fieldset {
  grid-column: 1 / -1;
}

.form-box {
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 10px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.85);
}

.form-box legend {
  font-weight: 600;
  padding: 0 6px;
}

/* Required field marker */
.form-grid input[required],
.form-grid select[required],
.form-grid textarea[required] {
  border-left: 3px solid var(--danger);
}
}

