/* Root Styling variables */
:root {
  --bg-obsidian: #090B0E;
  --panel-slate: #12151B;
  --glass-surface: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --text-primary: #F8F9FA;
  --text-secondary: #8E9AAF;
  --text-muted: #5C677D;
  
  /* Accent Colors */
  --accent-amber: #FF9F1C;
  --accent-emerald: #2EC4B6;
  --accent-purple: #9D4EDD;
  --accent-blue: #3A86FF;
  --accent-pink: #FF006E;
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow blobs */
.ambient-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(160px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.glow-top-left {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
}

.glow-bottom-right {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 80%);
}

/* Main Dashboard Structure */
.dashboard-container {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 40px;
  z-index: 10;
  align-items: center;
}

/* Left panel style */
.concept-panel {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo-area {
  margin-bottom: 10px;
}

.badge {
  background: rgba(46, 196, 182, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.concept-panel h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mission-section {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.mission-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mission-section p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Demo panel instructions */
.demo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.demo-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #FFF, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.demo-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-steps li {
  position: relative;
  padding-left: 20px;
}

.demo-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-amber);
}

.demo-steps strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.demo-steps p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.footer-links {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right panel: iPhone Frame */
.simulator-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-frame {
  width: 390px;
  height: 844px;
  background-color: #1c1c1e;
  border-radius: 55px;
  border: 12px solid #3a3a3c;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 
              0 0 0 3px #2c2c2e,
              inset 0 0 10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island & Notch elements */
.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background-color: #000;
  border-radius: 20px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speaker-grill {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #222;
  border-radius: 10px;
  z-index: 101;
}

/* Inside screen container */
.iphone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background-color: #07090c;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
  padding-bottom: 25px; /* space for home indicator */
}

/* iOS status bar */
.status-bar {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px 6px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  z-index: 99;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: 14px;
  height: 14px;
}

.battery-icon {
  width: 18px !important;
}

/* Toast Notifications (City Pulse global stream) */
.city-pulse-toast {
  position: absolute;
  top: 55px;
  left: 15px;
  right: 15px;
  background: rgba(18, 21, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-120%);
  opacity: 0;
  z-index: 95;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.city-pulse-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  flex-shrink: 0;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.toast-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.2;
}

/* Navigation screens controller */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Hide webkit scrollbars for premium look */
.app-content::-webkit-scrollbar {
  display: none;
}

.view-screen {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: viewFadeIn 0.4s ease-out;
  flex: 1;
}

.view-screen.active {
  display: flex;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* App Header styling */
.app-header {
  padding-top: 10px;
  margin-bottom: 5px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chapter-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.chapter-badge {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-amber);
}

.live-counter {
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
}

/* Pulsing rings */
.pulse-ring {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  animation: pulse-ring-anim 1.5s infinite;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Glassmorphism panels */
.glass-panel {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Brief Card Specifics */
.brief-card {
  border-left: 3px solid var(--accent-purple);
}

.card-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 1.2s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.4; }
}

.brief-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 400;
}

.brief-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.brief-stat {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Progress ring card */
.progress-card {
  padding: 14px 18px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-desc {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

.progress-desc span {
  color: var(--accent-amber);
}

.completion-ring-container {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completion-ring {
  transform: rotate(-90deg);
}

.ring-fg {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-label {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: -5px;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.section-action {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Action items list */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.action-checkbox {
  width: 26px;
  height: 26px;
  border: 2px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--bg-obsidian);
  background: transparent;
}

.action-checkbox svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Checked states */
.action-item.checked {
  border-color: rgba(255, 159, 28, 0.2);
  background: rgba(255, 159, 28, 0.02);
}

.action-item.checked .action-checkbox {
  background-color: var(--accent-amber);
  border-color: var(--accent-amber);
  color: var(--bg-obsidian);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.4);
}

.action-item.checked .action-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.action-item.checked h4 {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.action-details {
  flex: 1;
}

.action-details h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.action-benefit {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.action-community {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-meta {
  align-self: flex-start;
}

.action-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Recovery advice box */
.recovery-suggestion {
  border: 1px dashed rgba(46, 196, 182, 0.3);
  background: rgba(46, 196, 182, 0.02);
}

.recovery-suggestion h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.recovery-suggestion p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* SCREEN 2: CITY SPECIFICS */
.city-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

/* SVG map styling */
.map-container {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.map-graphic {
  width: 100%;
  height: 170px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.svg-map {
  width: 100%;
  height: 100%;
  display: block;
}

.map-water {
  fill: rgba(58, 134, 255, 0.1);
  stroke: rgba(58, 134, 255, 0.2);
  stroke-width: 1;
  transition: fill 0.3s ease;
}

.map-road {
  stroke: rgba(255,255,255,0.03);
  stroke-width: 1.5;
}

.map-road-curve {
  fill: none;
  stroke: rgba(255,255,255,0.03);
  stroke-width: 1.5;
}

/* Interactive hotspots on map */
.map-hotspot-group {
  cursor: pointer;
}

.hotspot-pulse {
  fill: var(--accent-amber);
  fill-opacity: 0.2;
  animation: map-pulse 2s infinite;
}

.hotspot-pulse.green {
  fill: var(--accent-emerald);
}

.hotspot-pulse.purple {
  fill: var(--accent-purple);
}

@keyframes map-pulse {
  0% { r: 5px; fill-opacity: 0.6; }
  100% { r: 18px; fill-opacity: 0; }
}

.hotspot-core {
  fill: var(--accent-amber);
  stroke: #fff;
  stroke-width: 1.5;
}

.hotspot-core.green {
  fill: var(--accent-emerald);
}

.hotspot-core.purple {
  fill: var(--accent-purple);
}

.hotspot-label {
  fill: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 7px;
  font-weight: 600;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Map controls overlays */
.map-overlay-selector {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 4px;
}

.map-filter-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-filter-btn.active {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.map-details-box {
  background: rgba(18, 21, 27, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  margin-top: 2px;
}

.map-details-box h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 2px;
}

.map-details-box p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Map layout options styling states */
.map-container.aqi-layer .map-water {
  fill: rgba(46, 196, 182, 0.08);
}
.map-container.aqi-layer .map-road, .map-container.aqi-layer .map-road-curve {
  stroke: rgba(46, 196, 182, 0.15);
}

.map-container.activity-layer .map-road, .map-container.activity-layer .map-road-curve {
  stroke: rgba(157, 78, 221, 0.15);
}

/* Challenge card progress */
.challenge-card {
  border-top: 3px solid var(--accent-emerald);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.challenge-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.challenge-title {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.challenge-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.challenge-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.challenge-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.challenge-track {
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 4px;
}

.challenge-fill {
  height: 100%;
  border-radius: 5px;
}

.fill-hamburg {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(46, 196, 182, 0.5);
}

.fill-berlin {
  background: var(--accent-purple);
  box-shadow: 0 0 8px rgba(157, 78, 221, 0.5);
}

/* Leaders Row */
.leaders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.leader-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  text-align: center;
}

.leader-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  margin-bottom: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Background image presets for leadership avatars */
.avatar-elena {
  background-color: var(--accent-purple);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.avatar-elena::after {
  content: "👩‍🔬";
  font-size: 1.4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.avatar-christian {
  background-color: var(--accent-amber);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.avatar-christian::after {
  content: "🙋‍♂️";
  font-size: 1.4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.leader-avatar-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.leader-avatar-card p {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Live Activity Ticker Feed */
.live-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px 12px;
  animation: tickerSlideIn 0.3s ease-out;
}

@keyframes tickerSlideIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.entry-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entry-indicator.joined {
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.entry-indicator.completed {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.entry-indicator.rsvped {
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.entry-indicator.attended {
  background-color: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.entry-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.entry-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.entry-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* SCREEN 3: COMPANION WORKSPACE SPECIFICS */
.pattern-card {
  border-left: 3px solid var(--accent-purple);
}

.pattern-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pattern-icon {
  width: 14px;
  height: 14px;
}

.pattern-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pattern-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Chat structure container */
.chat-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
}

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  max-height: 290px;
}

.chat-log::-webkit-scrollbar {
  display: none;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.chat-bubble.assistant {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--accent-purple);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Prompt Scroller */
.chat-prompts-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chat-prompts-scroller::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* Inputs design */
.chat-input-row {
  display: flex;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 6px;
  align-items: center;
}

#chatInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  padding-left: 10px;
}

#chatInput::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  background: var(--accent-purple);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

.chat-send-btn:hover {
  opacity: 0.9;
}

/* SCREEN 4: EVENTS ELEMENTS */
.events-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  padding: 0;
  overflow: hidden;
}

.event-summary-top {
  padding: 16px;
  cursor: pointer;
}

.event-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.event-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(255, 159, 28, 0.08);
  border: 1px solid rgba(255, 159, 28, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.event-badge.green {
  color: var(--accent-emerald);
  background: rgba(46, 196, 182, 0.08);
  border-color: rgba(46, 196, 182, 0.15);
}

.event-badge.purple {
  color: var(--accent-purple);
  background: rgba(157, 78, 221, 0.08);
  border-color: rgba(157, 78, 221, 0.15);
}

.event-date {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.event-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.event-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.attendee-mini-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.mini-avatars {
  display: flex;
}

.mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-obsidian);
  margin-left: -5px;
  background-size: cover;
}

.mini-avatar:first-child {
  margin-left: 0;
}

/* Generate small mockup profile colors/letters */
.av1 { background-color: var(--accent-emerald); }
.av2 { background-color: var(--accent-purple); }
.av3 { background-color: var(--accent-amber); }
.av4 { background-color: var(--accent-blue); }
.av5 { background-color: var(--accent-pink); }

.attendee-count {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Expanded state details */
.event-expanded-details {
  display: none;
  padding: 0 16px 16px 16px;
  animation: expandFadeIn 0.3s ease-out;
}

.event-card.expanded .event-expanded-details {
  display: block;
}

@keyframes expandFadeIn {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: auto; }
}

.event-divider {
  border: 0;
  height: 1px;
  background: var(--glass-border);
  margin-bottom: 12px;
}

/* Subtabs in event card */
.event-internal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1.5px solid var(--glass-border);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.event-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding-bottom: 6px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.event-tab-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-amber);
}

.event-subview {
  display: none;
}

.event-subview.active {
  display: block;
}

.event-desc-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.event-associated-action {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 10px;
  margin-top: 12px;
}

.event-associated-action h5 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-amber);
  margin-bottom: 2px;
}

.event-associated-action .action-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Event People Subtab */
.speaker-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.speaker-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--accent-purple);
  position: relative;
}

.speaker-avatar-circle::after {
  content: "👩‍🔬";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
}

.speaker-role {
  font-size: 0.65rem;
  color: var(--text-muted) !important;
}

.discussion-preview h6, .speaker-profile h6, .summary-box .summary-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.disc-comment {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.1);
  padding: 8px;
  border-radius: 6px;
  line-height: 1.35;
}

/* After Event Subtab */
.summary-box {
  background: rgba(157, 78, 221, 0.05);
  border: 1px solid rgba(157, 78, 221, 0.15);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.summary-box p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.follow-up-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.follow-up-checklist h6 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--accent-amber);
}

/* RSVP Actions */
.rsvp-action-btn {
  width: 100%;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
  color: var(--accent-amber);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.rsvp-action-btn:hover {
  background: rgba(255, 159, 28, 0.15);
}

.rsvp-action-btn.active {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: var(--bg-obsidian);
  box-shadow: 0 0 12px rgba(46, 196, 182, 0.4);
}

/* SCREEN 5: JOURNEY WORKSPACE SPECIFICS */
.constellation-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.constellation-container {
  width: 100%;
  height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.svg-constellation {
  width: 100%;
  height: 100%;
  max-width: 200px;
  overflow: visible;
}

.c-line {
  stroke: rgba(255,255,255,0.06);
  stroke-dasharray: 2 2;
  stroke-width: 1;
}

.c-line.line-inner {
  stroke: rgba(255, 255, 255, 0.03);
}

.c-node {
  fill: var(--bg-obsidian);
  stroke-width: 2;
  transition: all 0.3s ease;
}

/* Dynamic shifting gradients for the nodes */
.node-sleep { stroke: var(--accent-blue); filter: drop-shadow(0 0 4px var(--accent-blue)); }
.node-recovery { stroke: var(--accent-emerald); filter: drop-shadow(0 0 4px var(--accent-emerald)); }
.node-movement { stroke: var(--accent-amber); filter: drop-shadow(0 0 4px var(--accent-amber)); }
.node-resilience { stroke: var(--accent-purple); filter: drop-shadow(0 0 4px var(--accent-purple)); }
.node-social { stroke: var(--accent-pink); filter: drop-shadow(0 0 4px var(--accent-pink)); }
.node-purpose { stroke: #fff; filter: drop-shadow(0 0 4px #fff); }

.c-node-core {
  fill: var(--bg-obsidian);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1.5;
  animation: core-pulsate 4s infinite alternate;
}

@keyframes core-pulsate {
  0% { r: 8px; fill: rgba(255,255,255,0.02); }
  100% { r: 12px; fill: rgba(255,255,255,0.05); }
}

.constellation-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* Legend grid styling */
.journey-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
}

.j-metric-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.jm-dot.sleep { background-color: var(--accent-blue); }
.jm-dot.recovery { background-color: var(--accent-emerald); }
.jm-dot.movement { background-color: var(--accent-amber); }
.jm-dot.resilience { background-color: var(--accent-purple); }
.jm-dot.social { background-color: var(--accent-pink); }
.jm-dot.purpose { background-color: #fff; }

.jm-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex: 1;
}

.jm-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Milestones badge collection */
.achievements-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.achievements-scroll::-webkit-scrollbar {
  display: none;
}

.badge-item {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 8px;
  position: relative;
}

/* Custom mockup badge emojis */
.badge-pioneer { background-color: rgba(58, 134, 255, 0.1); }
.badge-pioneer::after { content: "⚓"; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:1.15rem; }

.badge-alster { background-color: rgba(255, 159, 28, 0.1); }
.badge-alster::after { content: "🏃"; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:1.15rem; }

.badge-sleep { background-color: rgba(46, 196, 182, 0.1); }
.badge-sleep::after { content: "😴"; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:1.15rem; }

.badge-item h5 {
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-item p {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* Contributions block details */
.contribution-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contrib-points {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.contribution-details p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: 70%;
}

.contrib-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
}

.contrib-history p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Bottom Navigation Bar Layout */
.nav-bar {
  height: 60px;
  background: rgba(18, 21, 27, 0.9);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.1s ease;
  flex: 1;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
  font-size: 0.65rem;
  font-weight: 500;
}

.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
  color: var(--accent-amber);
}

/* Responsive fixes for desktop scaling */
@media(max-width: 900px) {
  body {
    padding: 20px;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px;
  }
  .concept-panel {
    text-align: center;
    padding-right: 0;
    align-items: center;
  }
  .leader-avatar-card {
    align-items: center;
  }
}

/* --- REDESIGNED DAILY ACTIONS (COMMUNITY SESSION CARDS) --- */
.action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-badge.live {
  background: rgba(46, 196, 182, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(46, 196, 182, 0.2);
}

.action-badge.upcoming {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-badge.done {
  background: rgba(255, 159, 28, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 28, 0.2);
}

.pulse-dot-green {
  width: 5px;
  height: 5px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: dot-pulse-green 1.5s infinite;
}

@keyframes dot-pulse-green {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.4; }
}

.action-card-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 4px;
}

.action-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.action-benefit {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 500;
  margin-bottom: 4px;
}

.action-community-row {
  display: flex;
  gap: 12px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.action-members-count {
  font-weight: 500;
}

.action-completed-count {
  color: var(--text-muted);
}

.action-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
  margin-top: 4px;
}

.action-status-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.join-practice-btn {
  background: linear-gradient(135deg, var(--accent-amber), rgba(255, 159, 28, 0.8));
  color: var(--bg-obsidian);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.join-practice-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(255, 159, 28, 0.3);
}

/* Completed Card State */
.action-card.completed {
  border-color: rgba(255, 159, 28, 0.2);
  background: rgba(255, 159, 28, 0.02);
}

.action-card.completed h4 {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.action-card.completed .join-practice-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
}

.action-card.completed .join-practice-btn:hover {
  transform: none;
  box-shadow: none;
}


/* --- IMMERSIVE SESSION OVERLAY --- */
.session-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  background-color: #07090c;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 43px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.session-overlay.active {
  display: flex;
  animation: slideUpOverlay 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideUpOverlay {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.session-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Background visual container styles */
.session-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.session-bg-dimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.45) 0%, rgba(7, 9, 12, 0.85) 60%, #07090c 100%);
}


/* Overlay Foreground Elements */
.session-player-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 50px 24px 30px 24px; /* safe margins for notch and controls */
}

.session-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leave-session-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.leave-session-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.session-badge-active {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot-red {
  width: 5px;
  height: 5px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: dot-pulse-red 1.5s infinite;
}

@keyframes dot-pulse-red {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

.session-info-main {
  margin-top: 15px;
  text-align: center;
}

.session-info-main h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.player-live-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.badge-active-count {
  background: rgba(46, 196, 182, 0.12);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.badge-total-count {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Scientific Context benefit box style */
.session-scientific-benefit-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.science-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.science-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  font-weight: 400;
}

/* Circular Countdown Timer styles */
.session-timer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 12px;
}

.circular-timer-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  transform: rotate(-90deg);
}

.timer-progress {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-value-display {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Session player text instruction panel */
.session-instruction-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.instruction-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  animation: instructFade 0.5s ease-out;
}

@keyframes instructFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Activity feedback ticker */
.session-activity-ticker {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-top: 15px;
  padding: 10px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.session-activity-ticker::-webkit-scrollbar {
  display: none;
}

.ticker-message {
  font-size: 0.72rem;
  color: var(--text-secondary);
  animation: tickerMsgIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  line-height: 1.35;
  padding-left: 10px;
  position: relative;
}

.ticker-message::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-amber);
}

.ticker-message.new-join::before {
  background-color: var(--accent-blue);
}

.ticker-message.complete::before {
  background-color: var(--accent-emerald);
}

@keyframes tickerMsgIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.init-msg {
  color: var(--text-muted);
  font-style: italic;
}

.session-player-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.simulate-complete-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.simulate-complete-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}


/* --- COMPLETION SCREEN OVERLAY --- */
.session-completion-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: #07090c;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.session-completion-screen.active {
  display: flex;
  animation: fadeInOverlay 0.4s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.completion-card-inner {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 24px;
}

.success-ring {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.1);
  border: 2px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.3);
  animation: bounceRing 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-checkmark {
  font-size: 1.8rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

@keyframes bounceRing {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.completion-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.completion-card-inner h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.completion-metrics {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.contrib-highlight {
  font-size: 0.82rem;
  color: var(--accent-amber);
  font-weight: 600;
}

.completed-stats-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.community-boost-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  background: rgba(46, 196, 182, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  align-self: center;
  border: 1px solid rgba(46, 196, 182, 0.12);
}

.finish-session-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), rgba(46, 196, 182, 0.8));
  color: var(--bg-obsidian);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.finish-session-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}
