/* ==========================================================================
   THE SOCIAL CLUB .COMMUNITY - EVENT & SLOT PLANNER
   Design-System: Cozy Cyberpunk Lounge & Tactical Glassmorphism
   Fonts: Outfit, Space Grotesk, Chakra Petch, Inter, JetBrains Mono
   ========================================================================== */

:root {
  --bg-deep: #06080e;
  --bg-surface: #0a0d16;
  --card-bg: rgba(14, 18, 30, 0.82);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover-border: rgba(0, 212, 255, 0.4);
  --panel-bg: rgba(16, 22, 36, 0.92);
  
  --text-main: #f0f4f8;
  --text-muted: #8e9bb0;
  --text-dim: #5c687e;

  --neon-cyan: #00d4ff;
  --neon-cyan-glow: rgba(0, 212, 255, 0.35);
  --neon-purple: #9d4edd;
  --neon-purple-glow: rgba(157, 78, 221, 0.35);
  --neon-pink: #ff3388;
  --neon-gold: #ffb703;
  --nvg-green: #bce2f5;
  --nvg-green-glow: rgba(188, 226, 245, 0.25);
  --hud-amber: #ffaa00;
  --danger-red: #ff4d6d;
  --discord-blurple: #5865f2;

  --day-empty: rgba(255, 255, 255, 0.03);
  --day-empty-hover: rgba(255, 255, 255, 0.07);
  --day-has-event: rgba(0, 212, 255, 0.12);
  --day-event-border: rgba(0, 212, 255, 0.35);
  --day-rog: rgba(188, 226, 245, 0.12);
  --day-rog-border: rgba(188, 226, 245, 0.35);

  --font-main: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
  --font-tactical: 'Chakra Petch', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 25px rgba(0, 212, 255, 0.15);
}

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

html, body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ambient Backdrop (GPU Composite Isolated) */
.ambient-glow-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(157, 78, 221, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0, 255, 157, 0.05) 0%, transparent 60%);
}

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--text-muted); }

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.sc-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
}

.sc-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.sc-nav-brand:hover {
  transform: translateY(-1px);
}

.sc-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.event-brand-3d-box {
  width: 68px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  contain: layout paint;
  will-change: transform;
  transition: transform 0.2s ease;
}

.sc-nav-brand:hover .event-brand-3d-box {
  transform: scale(1.08);
}

.event-brand-3d-canvas {
  width: 68px !important;
  height: 48px !important;
  display: block;
  outline: none;
  cursor: pointer;
}

.event-brand-3d-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28) 0%, rgba(157, 78, 221, 0.12) 45%, transparent 70%);
  pointer-events: none;
  opacity: 0.75;
}

.sc-brand-text {
  display: flex;
  flex-direction: column;
}

.sc-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sc-brand-sub {
  font-family: var(--font-tactical);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-purple);
}

/* Nav Menu */
.sc-nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.sc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.sc-nav-link.active {
  color: #fff;
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.sc-nav-link-rog {
  color: var(--nvg-green) !important;
}

.sc-nav-link-rog:hover {
  background: rgba(0, 255, 157, 0.1) !important;
  border-color: rgba(0, 255, 157, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.sc-nav-btn-discord {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.35);
  color: #c7cbfa;
}

.sc-nav-btn-discord:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.6);
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.sc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nvg-green);
  box-shadow: 0 0 8px var(--nvg-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav Actions */
.sc-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Compact Nav Discord Logo Button */
.btn-nav-discord-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-nav-discord-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease, filter 0.25s ease;
  display: block;
}

.btn-nav-discord-icon:hover {
  background: linear-gradient(135deg, #6c78ff 0%, #5865F2 100%);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.08) translateY(-1px);
  color: #ffffff !important;
}

.btn-nav-discord-icon:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.btn-nav-discord-icon:active {
  transform: scale(0.96);
}

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--discord-blurple);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-discord-join:hover {
  background: #6d78f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.account-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.4);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex: none;
  color: var(--neon-cyan);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-badge {
  font-family: var(--font-tactical);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  background: rgba(255, 183, 3, 0.1);
  letter-spacing: 1px;
}

/* Buttons */
.primary-btn, .ghost-btn, .danger-btn {
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099ff 100%);
  color: #040810;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.55);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.danger-btn {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: var(--danger-red);
}

.danger-btn:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: var(--danger-red);
}

.discord-btn {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6774f7 0%, #4f5be3 100%);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.65);
  color: #ffffff !important;
}

/* Discord Button Error State (Rot bei Fehler) */
.discord-btn.discord-btn-error {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.55) !important;
  animation: pulseRedBorder 2s infinite ease-in-out;
}

.discord-btn.discord-btn-error:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.75) !important;
}

/* Discord Logged In Indicator (Grün bei erfolgreicher Anmeldung) */
.account-status-pill.online {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #22c55e;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.status-dot.pulse-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.8s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulseRedBorder {
  0%, 100% { box-shadow: 0 4px 18px rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 4px 26px rgba(239, 68, 68, 0.85); }
}

.avatar.logged-in-avatar {
  border: 2px solid #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6) !important;
}

.user-name-green {
  color: #ffffff;
  font-weight: 700;
}

.rank-pill.admin-glow {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%) !important;
  border: 1px solid #22c55e !important;
  color: #22c55e !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5) !important;
}

.discord-btn-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-btn-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-cyan);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.calendar-hero-section {
  position: relative;
  z-index: 1;
  padding: 40px 24px 20px;
  text-align: center;
}

.sc-content-container {
  max-width: 900px;
  margin: 0 auto;
}

.cal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-family: var(--font-tactical);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.cal-hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulseDot 1.8s infinite;
}

.cal-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 30%, #a8c5ff 70%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cal-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cal-hero-subtitle strong {
  color: #fff;
}

/* ==========================================================================
   MAIN LAYOUT & CARDS
   ========================================================================== */
.sc-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  box-sizing: border-box;
}

.cal-card, .panel {
  background: rgba(14, 18, 30, 0.94);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  contain: layout style;
  transform: translateZ(0);
  box-sizing: border-box;
}

.cal-card {
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Calendar Header */
.cal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.month-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 10px;
  min-width: 240px;
  text-align: center;
  color: #fff;
}

.cal-head .ghost-btn {
  margin-left: auto;
}

/* Calendar Grid */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.weekdays span {
  font-family: var(--font-tactical);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 6px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day {
  min-height: 108px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--day-empty);
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.day:hover {
  background: var(--day-empty-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.day:active {
  transform: scale(0.98);
}

.day.blank {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.day.has-event {
  background: var(--day-has-event);
  border-color: var(--day-event-border);
  box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.08);
}

.day.has-event:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

.day.selected {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2) !important;
}

.day-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day.has-event .day-num {
  color: #fff;
}

.day.today .day-num::after {
  content: 'HEUTE';
  font-family: var(--font-tactical);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-gold), #ff8800);
  color: #090a0f;
}

.day-ev {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  border-left: 2px solid var(--neon-cyan);
}

.day-more {
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 600;
  padding-left: 2px;
}

/* Category Filter Bar / Flags */
.cal-category-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cal-category-bar::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap !important;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.cat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.cat-chip.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

.cat-chip[data-cat="arma"].active {
  background: rgba(0, 255, 157, 0.16);
  border-color: #00ff9d;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.35);
}

.cat-chip[data-cat="multigaming"].active {
  background: rgba(157, 78, 221, 0.18);
  border-color: #b388ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.35);
}

.cat-chip[data-cat="clan"].active {
  background: rgba(255, 209, 102, 0.16);
  border-color: #ffd166;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.3);
}

.cat-chip[data-cat="fuehrung"].active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ff5c5c;
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.cat-chip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.cat-chip-label {
  letter-spacing: 0.3px;
}

.cat-chip-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.cat-chip.active .cat-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Day Event Category Stylings */
.day-ev-arma {
  border-left: 2px solid #00ff9d !important;
  background: rgba(0, 255, 157, 0.12) !important;
  color: #c7ffd8 !important;
}

.day-ev-multigaming {
  border-left: 2px solid #b388ff !important;
  background: rgba(157, 78, 221, 0.14) !important;
  color: #e5d4ff !important;
}

.day-ev-clan {
  border-left: 2px solid #ffd166 !important;
  background: rgba(255, 209, 102, 0.12) !important;
  color: #fff1c7 !important;
}

.day-ev-fuehrung {
  border-left: 2px solid #ff5c5c !important;
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ffc4c4 !important;
}

/* Category Badges / Pills */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-tactical);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.cat-badge-arma {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.35);
  color: #00ff9d;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.15);
}

.cat-badge-multigaming {
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.45);
  color: #d1b3ff;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.cat-badge-clan {
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #ffd166;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.18);
}

.cat-badge-fuehrung {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ff8585;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.22);
}

/* Legend */
.legend {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sw {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.sw-empty { background: var(--day-empty); border: 1px solid rgba(255, 255, 255, 0.1); }
.sw-arma { background: #00ff9d; box-shadow: 0 0 8px rgba(0, 255, 157, 0.6); }
.sw-multigaming { background: #b388ff; box-shadow: 0 0 8px rgba(157, 78, 221, 0.6); }
.sw-clan { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.6); }
.sw-fuehrung { background: #ff5c5c; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.sw-today { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

/* ==========================================================================
   UPCOMING SECTION IN CALENDAR
   ========================================================================== */
.upcoming-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.upcoming-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
}

.next-event {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-align: left;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.next-event:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateX(4px);
}

.next-when {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

.next-event strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
}

.next-source {
  font-family: var(--font-tactical);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* ==========================================================================
   SIDE PANEL
   ========================================================================== */
.panel h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  font-family: var(--font-tactical);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 4px;
}

.add-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan), #0088ff);
  color: #040810;
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.3);
  transition: all 0.2s ease;
}

.add-btn:hover {
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
}

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.ev-item:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(4px);
}

.ev-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.ev-title {
  font-weight: 600;
  color: #fff;
}

.ev-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-tactical);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.back {
  background: none;
  border: none;
  color: var(--neon-cyan);
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back:hover {
  color: #fff;
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0 18px;
}

.desc {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
  color: var(--text-main);
  transition: background 0.15s;
}

button.desc:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.desc.empty { color: var(--text-muted); }

.desc-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.desc-more {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slots {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.slot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 52px;
  transition: background 0.15s ease;
}

.slot:first-child { border-top: 0; }

.slot-role {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.slot-who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.slot-who .avatar {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.slot.mine {
  background: rgba(0, 212, 255, 0.1);
  border-left: 3px solid var(--neon-cyan);
}

.slot.mine .slot-who { color: #fff; }

.slot-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.slot-btn.free {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.4);
  color: var(--nvg-green);
}

.slot-btn.free:hover {
  background: rgba(0, 255, 157, 0.3);
  border-color: var(--nvg-green);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
  transform: scale(1.08);
}

.slot-btn.taken {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.25);
  color: var(--danger-red);
  cursor: default;
}

.slot-btn.leave {
  width: auto;
  padding: 0 12px;
  height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.35);
  color: var(--danger-red);
  border-radius: var(--radius-full);
}

.slot-btn.leave:hover {
  background: var(--danger-red);
  color: #fff;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--nvg-green));
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input, textarea, select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-main);
  color: #fff;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option {
  background: #0f1322;
  color: #fff;
  padding: 8px;
}

input[type="date"], input[type="time"] {
  color-scheme: dark;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MODALS / DIALOGS
   ========================================================================== */
dialog {
  background: rgba(14, 18, 30, 0.96);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(440px, calc(100vw - 32px));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.15);
  margin: auto;
}

dialog::backdrop {
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
}

dialog h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

dialog p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.row-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Briefing Dialog */
dialog.briefing {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  display: none;
}

dialog.briefing[open] {
  display: flex;
  flex-direction: column;
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brief-head h2 { margin: 0 0 4px; }

.brief-text {
  padding: 22px 24px 28px;
  white-space: pre-wrap;
  overflow-y: auto;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #e2e8f0;
}

/* Members Dialog (Discord Telemetry) */
.members-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(85vh, 850px);
  padding: 0;
  overflow: hidden;
  display: none;
}

.members-dialog[open] {
  display: flex;
  flex-direction: column;
}

.members-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.member-search-input {
  max-width: 260px;
  padding: 7px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

.members-stats-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-chip {
  font-family: var(--font-tactical);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.m-chip-voice {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--nvg-green);
}

.m-chip-online {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--neon-cyan);
}

.m-chip-refresh {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--neon-gold);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  font-size: inherit;
}

.m-chip-refresh:hover {
  background: rgba(255, 183, 3, 0.25);
  border-color: var(--neon-gold);
  transform: translateY(-1px);
}

.m-chip-refresh:active {
  transform: scale(0.95);
}

.member-list {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(85vh - 180px);
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.member-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(3px);
}

.member-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.status-dot.online { background: #00ff9d; box-shadow: 0 0 8px #00ff9d; }
.status-dot.idle { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }
.status-dot.dnd { background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; }

.member-meta-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.member-meta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-voice-channel {
  color: var(--nvg-green);
  font-weight: 600;
}

.badge-game-playing {
  color: var(--neon-cyan);
  font-weight: 600;
}

.rank-pill, .slot-rank {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--neon-gold);
  border: 1px solid rgba(255, 183, 3, 0.35);
  background: rgba(255, 183, 3, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-tactical);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slot-rank { padding: 2px 8px; font-size: 0.72rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 212, 255, 0.3);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  z-index: 100;
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .sc-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 14px calc(76px + env(safe-area-inset-bottom, 0px));
    gap: 20px;
    margin: 0 auto;
    overflow-x: hidden;
  }
  .cal-card, .panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .month-title {
    min-width: 0;
  }
  .panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .sc-nav-container {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }
}

/* Mobile Back-to-Calendar Navigation Buttons */
.btn-back-to-cal-grid {
  display: block;
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-md);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back-to-cal-grid:hover {
  background: rgba(0, 212, 255, 0.22);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.panel-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.btn-back-to-cal-grid-mini {
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-full);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Day Dots on Mobile */
.day-dots {
  display: none;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 2px;
  width: 100%;
}
.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 5px var(--neon-cyan);
  display: inline-block;
  flex-shrink: 0;
}
.day-dot.badge-arma, .day-dot.arma {
  background: #00ff9d !important;
  box-shadow: 0 0 5px #00ff9d !important;
}
.day-dot.badge-multigaming, .day-dot.multigaming {
  background: #ffb800 !important;
  box-shadow: 0 0 5px #ffb800 !important;
}
.day-dot.badge-clan, .day-dot.clan {
  background: #00d4ff !important;
  box-shadow: 0 0 5px #00d4ff !important;
}
.day-dot.badge-fuehrung, .day-dot.fuehrung {
  background: #9d4edd !important;
  box-shadow: 0 0 5px #9d4edd !important;
}
.day-dot-more {
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

@media (max-width: 680px) {
  .sc-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 10px 10px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 14px !important;
    margin: 0 !important;
  }
  .cal-card {
    padding: 12px 8px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .cal-category-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 2px 2px 8px 2px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cal-category-bar::-webkit-scrollbar {
    display: none !important;
  }
  .cat-chip {
    flex: 0 0 auto !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  .cal-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  .month-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cal-head .icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }
  .cal-head .ghost-btn,
  .cal-head #todayBtn {
    margin-left: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .weekdays, .grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .weekdays span {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 3px 0 !important;
    color: var(--text-dim, #5c687e) !important;
  }
  .day { 
    min-height: 48px !important;
    height: auto !important;
    aspect-ratio: 1 / 1.15;
    padding: 3px 2px !important; 
    border-radius: 8px !important; 
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .day-num {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .day.today .day-num::after {
    display: none !important;
  }
  .day.today {
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 212, 255, 0.14) !important;
  }
  .day.has-event {
    background: rgba(0, 212, 255, 0.12) !important;
    border-color: rgba(0, 212, 255, 0.45) !important;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2) !important;
  }
  .day.selected {
    background: rgba(0, 212, 255, 0.25) !important;
    border: 2px solid var(--neon-cyan) !important;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.5) !important;
  }
  .day-dots {
    display: flex !important;
    gap: 3px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding-top: 1px !important;
  }
  .day-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .day-dot-more {
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }
  .day-ev, .day-more { display: none !important; }
  
  .legend {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    font-size: 0.72rem !important;
  }
  .legend span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .legend .sw {
    width: 10px !important;
    height: 10px !important;
    border-radius: 3px !important;
  }

  .upcoming-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 16px !important;
    padding-top: 12px !important;
  }
  .upcoming-title {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }
  .next-event {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    gap: 6px !important;
  }
  .next-event strong {
    font-size: 0.88rem !important;
    word-break: break-word !important;
  }

  .slot {
    padding: 10px 12px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .slot-btn.free {
    width: auto !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.84rem !important;
  }
  .slot-btn.taken {
    width: auto !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
  }
  .slot-btn.leave {
    width: auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
  }
  .form .two { grid-template-columns: 1fr !important; gap: 8px !important; }
}

/* ==========================================================================
   EVENT FOOTER
   ========================================================================== */
.event-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 12, 0.95);
  padding: 40px 24px 50px;
  position: relative;
  z-index: 2;
}

.event-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}

.event-footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.event-footer-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tag-18-red {
  color: #ff3344 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 51, 68, 0.65), 0 0 20px rgba(255, 51, 68, 0.35);
}

.event-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.event-footer-nav a:hover {
  color: var(--neon-cyan);
}

.event-footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  width: 100%;
}

/* ==========================================================================
   EVENT NAVIGATION LANGUAGE SWITCHER (DE / EN)
   ========================================================================== */
.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(13, 11, 24, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-full, 9999px);
  color: #e2e8f0;
  font-family: var(--font-heading, 'Chakra Petch', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  user-select: none;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.btn-lang-toggle:hover {
  border-color: rgba(0, 212, 255, 0.85);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-lang-toggle .lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  opacity: 0.48;
  color: #94a3b8;
}

.btn-lang-toggle .lang-opt.active {
  opacity: 1;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.75);
  font-weight: 800;
}

.btn-lang-toggle .lang-sep {
  opacity: 0.3;
  font-size: 0.75rem;
  color: #64748b;
}

/* Visibility rules for elements with .lang-de and .lang-en */
html[lang="en"] .lang-de,
body.lang-en .lang-de {
  display: none !important;
}

html[lang="en"] .lang-en,
body.lang-en .lang-en {
  display: block !important;
}

html[lang="en"] span.lang-en,
body.lang-en span.lang-en,
html[lang="en"] a.lang-en,
body.lang-en a.lang-en {
  display: inline !important;
}

html[lang="de"] .lang-en,
body.lang-de .lang-en {
  display: none !important;
}

html[lang="de"] .lang-de,
body.lang-de .lang-de {
  display: block !important;
}

html[lang="de"] span.lang-de,
body.lang-de span.lang-de,
html[lang="de"] a.lang-de,
body.lang-de a.lang-de {
  display: inline !important;
}
