/* ═══════════════════════════════════════════════════════
   HURRICANE FESTIVAL 2026 – TIMETABLE STYLES
   ═══════════════════════════════════════════════════════ */

/* ── CUSTOM SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e8192c, #a0101f);
  border-radius: 4px;
  border: 2px solid #111;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff2d42, #c01428);
}
::-webkit-scrollbar-corner {
  background: #111;
}
* { scrollbar-width: thin; scrollbar-color: #e8192c #111; }

/* ── RESET & CUSTOM PROPERTIES ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --red:          #e8192c;
  --red-dark:     #a0101f;
  --red-glow:     rgba(232, 25, 44, 0.35);

  /* Backgrounds */
  --bg-base:      #0d0d0d;
  --bg-surface:   #161616;
  --bg-card:      #1e1e1e;
  --bg-elevated:  #252525;
  --bg-hover:     #2a2a2a;

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-strong:rgba(255,255,255,0.14);

  /* Text */
  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #555;

  /* Stage colors */
  --forest:       #6ee777;
  --forest-bg:    rgba(28, 65, 22, 0.9);
  --river:        #5bc4f5;
  --river-bg:     rgba(18, 48, 72, 0.9);
  --mountain:     #f5c842;
  --mountain-bg:  rgba(58, 46, 18, 0.9);
  --wild:         #ff8a65;
  --wild-bg:      rgba(65, 28, 18, 0.9);

  /* Timing */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --header-h:     68px;
  --tabs-h:       50px;
  --sticky-top:   calc(var(--header-h) + var(--tabs-h));
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
  background: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1800px;
  margin: 0 auto;
  gap: 16px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 18px var(--red-glow);
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Name Input + Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.name-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.name-field-wrap .field-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.name-input {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px 8px 34px;
  font-size: 0.88rem;
  font-weight: 600;
  width: 170px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.name-input::placeholder { color: var(--text-dim); font-weight: 400; }

.name-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 8px 14px;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px var(--red-glow);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ── DAY TABS ──────────────────────────────────────── */
.day-tabs {
  height: var(--tabs-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 0 24px;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex-shrink: 0;
  padding: 0 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}

.day-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.day-tab:hover { color: var(--text); }
.day-tab.active { color: var(--red); }
.day-tab.active::after { transform: scaleX(1); }

/* ── MAIN LAYOUT ───────────────────────────────────── */
.main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.day-view { display: none; }
.day-view.active { display: block; }

/* ── HERO BANNER ───────────────────────────────────── */
.day-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.day-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.day-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.day-banner-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-banner-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── STAGE LEGEND ──────────────────────────────────── */
.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── TIMETABLE SCROLL CONTAINER ────────────────────── */
.timetable-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.timetable-inner {
  min-width: max-content;
}

/* ── TIME RULER ────────────────────────────────────── */
.time-ruler {
  display: flex;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.ruler-spacer {
  width: 148px;
  min-width: 148px;
  border-right: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.time-tick {
  border-right: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ── STAGE ROW ─────────────────────────────────────── */
.stage-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  min-height: 90px;
  position: relative;
}

.stage-row:last-child { border-bottom: none; }

/* Alternating row backgrounds for readability */
.stage-row:nth-child(even) .acts-area { background: rgba(255,255,255,0.012); }

.stage-label {
  width: 148px;
  min-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  border-right: 1px solid var(--border-strong);
  text-align: center;
  gap: 5px;
  position: sticky;
  left: 0;
  z-index: 5;
}

.stage-label.forest   { background: var(--forest-bg);   border-right-color: rgba(110,231,119,0.4); }
.stage-label.river    { background: var(--river-bg);    border-right-color: rgba(91,196,245,0.4); }
.stage-label.mountain { background: var(--mountain-bg); border-right-color: rgba(245,200,66,0.4); }
.stage-label.wild     { background: var(--wild-bg);     border-right-color: rgba(255,138,101,0.4); }

.stage-icon { font-size: 1.3rem; line-height: 1; }

.stage-name {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

/* ── ACTS AREA ─────────────────────────────────────── */
.acts-area {
  position: relative;
  flex: 1;
}

/* Vertical hour dividers */
.acts-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(150px - 1px),
    rgba(255,255,255,0.04) calc(150px - 1px),
    rgba(255,255,255,0.04) 150px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── ACT CARD ──────────────────────────────────────── */
.act {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  min-height: 60px;
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, opacity 0.15s;
  border: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  z-index: 1;
}

/* Shimmer overlay */
.act::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.act:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  z-index: 20;
  border-color: rgba(255,255,255,0.2);
}

.act.forest   { background: linear-gradient(145deg, #2a5e1e, #1e4415); border-color: rgba(110,231,119,0.25); }
.act.river    { background: linear-gradient(145deg, #1a4a6e, #123654); border-color: rgba(91,196,245,0.25); }
.act.mountain { background: linear-gradient(145deg, #5a4a18, #3e3410); border-color: rgba(245,200,66,0.25); }
.act.wild     { background: linear-gradient(145deg, #5e2e1a, #3e2010); border-color: rgba(255,138,101,0.25); }

.act:hover.forest   { box-shadow: 0 8px 28px rgba(110,231,119,0.2); }
.act:hover.river    { box-shadow: 0 8px 28px rgba(91,196,245,0.2); }
.act:hover.mountain { box-shadow: 0 8px 28px rgba(245,200,66,0.2); }
.act:hover.wild     { box-shadow: 0 8px 28px rgba(255,138,101,0.2); }

.act-time {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.act-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}

.act-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 16px;
}

.act-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
}

.attendee-chip {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.attendee-chip.me {
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.act-count-badge {
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── MODAL ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px var(--border);
  animation: popIn 0.22s var(--ease-out);
}

@keyframes popIn {
  from { transform: scale(0.94) translateY(8px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

.modal-header {
  padding: 20px 20px 16px;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.modal-header.forest   { background: var(--forest-bg);   border-bottom: 2px solid var(--forest); }
.modal-header.river    { background: var(--river-bg);    border-bottom: 2px solid var(--river); }
.modal-header.mountain { background: var(--mountain-bg); border-bottom: 2px solid var(--mountain); }
.modal-header.wild     { background: var(--wild-bg);     border-bottom: 2px solid var(--wild); }

.modal-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.modal-act-name {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.modal-act-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.modal-stage-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  margin-top: 6px;
  display: inline-block;
}

.modal-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-body {
  padding: 20px;
}

/* Attendees */
.section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.attendees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 20px;
}

.attendee-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: badgeIn 0.2s var(--ease-out);
}

@keyframes badgeIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.attendee-badge.me {
  background: rgba(232,25,44,0.18);
  border-color: rgba(232,25,44,0.45);
  color: #ff8a96;
}

.remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.remove-btn:hover { color: var(--red); }

.empty-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Toggle button */
.modal-actions {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.btn-join {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
}

.btn-join:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-join:active { transform: translateY(0); }

.btn-join.join {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 18px var(--red-glow);
}

.btn-join.leave {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1.5px solid var(--border-strong);
}

/* ── SUMMARY ───────────────────────────────────────── */
.summary-section {
  margin-top: 32px;
  animation: slideDown 0.25s var(--ease-out);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}
.section-title:hover { color: var(--text-primary); }
.section-title:hover .section-toggle { color: var(--accent); border-color: rgba(232,25,44,0.3); }

.section-title-count {
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 20px;
  padding: 2px 8px;
}

.section-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 5px;
  transition: color 0.2s, border-color 0.2s, transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.section-toggle:hover {
  color: var(--accent);
  border-color: rgba(232, 25, 44, 0.3);
}
.section-toggle.collapsed {
  transform: rotate(-90deg);
}

.section-collapsible {
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.section-collapsible.collapsed {
  max-height: 0;
  opacity: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.summary-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.summary-card-act {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.summary-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.summary-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.summary-chip.me {
  background: rgba(232,25,44,0.18);
  border-color: rgba(232,25,44,0.45);
  color: #ff8a96;
}

/* ── PARTIES VIEW ──────────────────────────────────── */
.parties-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.parties-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.parties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.party-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  overflow: hidden;
  position: relative;
}

.party-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--wild), var(--red));
}

.party-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(255,138,101,0.35);
  transform: translateY(-2px);
}

.party-day-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wild);
  margin-bottom: 4px;
}

.party-name {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.party-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.party-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

/* ── TOAST ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 20px 10px 16px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 500;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 1rem; }

/* ── NAME GESPERRT & EINGABE ───────────────────────── */
.name-entry {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,25,44,0.1);
  border: 1px solid rgba(232,25,44,0.25);
  border-radius: 8px;
  padding: 7px 8px 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  max-width: 200px;
}

.name-locked-icon { font-size: 0.88rem; flex-shrink: 0; }

.name-locked-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-name-edit {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.btn-name-edit:hover {
  color: var(--red);
  background: rgba(232,25,44,0.12);
  border-color: rgba(232,25,44,0.3);
}

/* ── GRUPPENÜBERSICHT ─────────────────────────────── */
.group-section { margin-top: 32px; }

.group-day-section { margin-bottom: 24px; }

.group-day-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.group-act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.group-act-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.group-act-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.group-act-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.group-act-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.group-act-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.group-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.group-chip.me {
  background: rgba(232,25,44,0.18);
  border-color: rgba(232,25,44,0.45);
  color: #ff8a96;
}

/* ── NO NAME WARNING ───────────────────────────────── */
.no-name-banner {
  background: rgba(245,200,66,0.08);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--mountain);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ── ÄHNLICHER NAME DIALOG ─────────────────────────────── */
.similar-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.similar-dialog-overlay.open { display: flex; }

.similar-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 30px 24px 22px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideDown 0.2s var(--ease-out);
}

.similar-dialog-icon  { font-size: 2.2rem; margin-bottom: 10px; }

.similar-dialog-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.similar-dialog-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.similar-dialog-body strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.similar-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── MOBILE (Tablet, ≤ 700px) ──────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { padding: 0 14px; }
  .logo-text h1 { font-size: 0.95rem; }
  .logo-text span { display: none; }
  .name-input { width: 130px; }
  .name-locked { max-width: 160px; }

  .day-tabs { padding: 0 12px; }
  .main { padding: 14px 10px 60px; }

  .modal { max-width: 100%; border-radius: 16px 16px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }

  .summary-grid { grid-template-columns: 1fr 1fr; }
  .parties-grid { grid-template-columns: 1fr 1fr; }
  .group-act-grid { grid-template-columns: 1fr 1fr; }
}

/* ── HANDY (≤ 560px) ──────────────────────────── */
@media (max-width: 560px) {
  :root { --header-h: 104px; }

  /* Header bricht in 2 Zeilen um */
  .site-header { height: auto; padding: 8px 0; }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 4px 14px;
    row-gap: 6px;
  }
  .logo-wrap { flex: 1; }
  .header-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .name-entry { flex: 1; min-width: 0; }
  .name-input { width: 100%; }
  .name-locked { flex: 1; max-width: none; min-width: 0; }

  .group-act-grid { grid-template-columns: 1fr; }

  .day-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .day-banner-title { font-size: 0.95rem; }
  .legend { margin-bottom: 0; }
}

/* ── KLEINES HANDY (≤ 420px) ──────────────────── */
@media (max-width: 420px) {
  .summary-grid  { grid-template-columns: 1fr; }
  .parties-grid  { grid-template-columns: 1fr; }
  .group-act-grid { grid-template-columns: 1fr; }
}
