/* EDC Colombia Settimes - High Performance Luxury Dark Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-main);
  
  --bg-deep: #080914;
  --bg-surface: #0e1124;
  --bg-card: #12152d;
  --bg-card-hover: #191e3e;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  
  --color-kinetic: #a855f7;
  --color-kinetic-glow: rgba(168, 85, 247, 0.3);
  --color-circuit: #00d2f0;
  --color-circuit-glow: rgba(0, 210, 240, 0.3);
  --color-neon: #ff2d60;
  --color-neon-glow: rgba(255, 45, 96, 0.3);
  --color-bionic: #10b981;
  --color-bionic-glow: rgba(16, 185, 129, 0.3);
  --color-stereo: #f59e0b;
  --color-stereo-glow: rgba(245, 158, 11, 0.3);

  --heart-color: #ff2a6d;
  --heart-glow: rgba(255, 42, 109, 0.45);
  --clash-warning: #f97316;
  
  --minute-scale: 2px; /* 1 min = 2px -> 1 hr = 120px */
  --grid-top-offset: 36px; /* Generous breathing room so 3:00 PM is never cut off */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Custom fast scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #080914;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

html, body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 5%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(0, 210, 240, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(255, 45, 96, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.app-header {
  position: relative;
  z-index: 30;
  background: rgba(8, 9, 20, 0.95);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.edc-logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
}

.brand-info h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-info h1 span {
  font-weight: 400;
  color: #94a3b8;
  font-size: 1.05rem;
}

.brand-info p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 9999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 600;
}

/* Day Switcher */
.day-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px;
  border-radius: 11px;
  gap: 3px;
}

.day-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.day-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.day-btn.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(168, 85, 247, 0.35);
}

.day-btn .day-date {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, #ff2a6d 0%, #a855f7 100%);
  border: none;
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: 9px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(255, 42, 109, 0.28);
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 42, 109, 0.45);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
}

/* Toolbar & Instant Search */
.toolbar-section {
  position: relative;
  z-index: 25;
  background: #0b0e22;
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 1.5rem;
}

.toolbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: relative;
}

.search-container {
  position: relative;
  width: 260px;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.48rem 0.75rem 0.48rem 2rem;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.search-input:focus {
  border-color: var(--color-kinetic);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 8px var(--color-kinetic-glow);
}

.search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Search Results Autocomplete Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  max-width: 90vw;
  background: #0f132a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 150;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

.search-results-dropdown.visible {
  display: flex;
}

.search-dropdown-header {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.65rem;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.search-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-text {
  min-width: 0;
}

.search-result-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.btn-search-go {
  background: var(--color-kinetic);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-search-go:hover {
  background: #c084fc;
  transform: scale(1.05);
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

.filter-pill.active {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--heart-color);
  color: #ffffff;
}

.filter-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.filter-pill.active .filter-badge {
  background: var(--heart-color);
  color: #fff;
}

.view-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Official Clashes Bar */
.clash-highlight-bar {
  background: #0d1026;
  border-bottom: 1px solid var(--border-glass);
  padding: 0.45rem 1.5rem;
  position: relative;
  z-index: 15;
}

.clash-highlight-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.clash-highlight-inner::-webkit-scrollbar {
  display: none;
}

.clash-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  color: #f97316;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.clash-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.clash-item strong {
  color: #e2e8f0;
}

/* Main Timeline Section */
.main-content {
  position: relative;
  z-index: 5;
  max-width: 1700px;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}

/* Timeline Wrapper */
.timeline-wrapper {
  position: relative;
  background: #0b0e22;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.timeline-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Stage Headers Sticky */
.stages-header-row {
  display: grid;
  grid-template-columns: 80px repeat(5, minmax(260px, 1fr));
  position: sticky;
  top: 0;
  z-index: 12;
  background: #0a0d20;
  border-bottom: 1px solid var(--border-glass);
}

.stage-header-time-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  border-right: 1px solid var(--border-glass);
  letter-spacing: 1px;
  background: #080a1a;
}

.stage-header-card {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-glass);
  position: relative;
}

.stage-header-card:last-child {
  border-right: none;
}

.stage-header-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--stage-color);
  box-shadow: 0 0 8px var(--stage-glow);
  border-radius: 2px;
}

.stage-icon {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.stage-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.stage-subtitle {
  font-size: 0.66rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

/* Timeline Grid Body with generous top offset so 3:00 PM is fully visible */
.timeline-grid {
  display: grid;
  grid-template-columns: 80px repeat(5, minmax(260px, 1fr));
  position: relative;
  height: calc(780 * var(--minute-scale) + var(--grid-top-offset) + 40px); /* 1636px */
}

/* Time Axis (Left) */
.time-axis {
  position: sticky;
  left: 0;
  border-right: 1px solid var(--border-glass);
  background: #080a1a;
  z-index: 5;
}

.time-marker {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  transform: translateY(-50%);
  background: #080a1a;
  padding: 2px 0;
}

/* Horizontal Hour Grid Lines across all stages */
.hour-grid-line {
  position: absolute;
  left: 80px;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}

.hour-grid-line.major {
  background: rgba(255, 255, 255, 0.07);
}

/* Stage Columns */
.stage-lane {
  position: relative;
  border-right: 1px solid var(--border-glass);
  padding: 0 5px;
}

.stage-lane:last-child {
  border-right: none;
}

/* =========================================================
   HIGH PERFORMANCE ELEGANT SET CARDS
   ========================================================= */

.set-card {
  position: absolute;
  left: 5px;
  right: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-left: 3.5px solid var(--stage-color);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  overflow: hidden;
  contain: paint layout style;
}

/* Subtle background artwork */
.set-card-bg-artwork {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
}

.set-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  z-index: 10;
}

.set-card.is-favorite {
  background: rgba(255, 42, 109, 0.14);
  border: 1px solid var(--heart-color);
  border-left: 4px solid var(--stage-color);
  z-index: 6;
}

.set-card.is-clashing {
  border-color: var(--clash-warning);
}

/* Card Content Layout */
.set-card-main-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  position: relative;
  z-index: 2;
  flex: 1;
}

/* Artist Avatar Thumbnail */
.artist-avatar-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #090a16;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* Artist Name & Times */
.artist-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.set-card-artist {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.15;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.set-card.is-favorite .set-card-artist {
  color: #ffffff;
}

.set-time-badge {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.time-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stage-color);
  display: inline-block;
}

.clash-badge {
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid var(--clash-warning);
  color: #fdba74;
  padding: 0.06rem 0.3rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.1rem;
  width: fit-content;
}

/* Heart Button */
.heart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition: transform 0.15s ease, background 0.15s ease;
}

.heart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.12);
}

.heart-btn svg {
  width: 14px;
  height: 14px;
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2;
}

.set-card.is-favorite .heart-btn {
  background: rgba(255, 42, 109, 0.2);
  border-color: var(--heart-color);
}

.set-card.is-favorite .heart-btn svg {
  fill: var(--heart-color);
  stroke: var(--heart-color);
}

/* Dimmed / Highlighted states */
.set-card.dimmed {
  opacity: 0.14;
  filter: grayscale(0.8);
  pointer-events: none;
}

.set-card.highlighted {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8) !important;
  transform: scale(1.02);
  z-index: 20;
}

/* Pulse animation when navigated to via search "Ir" */
@keyframes targetCardPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px #a855f7; border-color: #a855f7; }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
}

.set-card.target-pulse {
  animation: targetCardPulse 1.8s ease;
  z-index: 25;
}

/* Alternate List View */
.list-view-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.list-stage-group {
  background: #0d1025;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.list-stage-header {
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-stage-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--stage-color);
}

.list-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
}

.list-set-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-left: 3.5px solid var(--stage-color);
  border-radius: 9px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease;
  overflow: hidden;
  position: relative;
}

.list-set-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.list-set-item.is-favorite {
  background: rgba(255, 42, 109, 0.12);
  border-color: var(--heart-color);
  border-left: 3.5px solid var(--stage-color);
}

/* Floating Bottom Action Drawer */
.floating-favorites-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 100;
  background: rgba(12, 15, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.6rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.floating-favorites-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.favorites-count-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: #ffffff;
}

.clash-indicator-chip {
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid var(--clash-warning);
  color: #fdba74;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-window {
  background: #0d1024;
  border: 1px solid var(--border-glass-hover);
  border-radius: 18px;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.modal-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.poster-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-preview-wrapper {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-preview-wrapper canvas,
.canvas-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poster-controls-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.control-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
}

.control-input:focus {
  border-color: var(--color-kinetic);
}

.export-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-export {
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease;
}

.btn-export.primary {
  background: linear-gradient(135deg, #ff2a6d 0%, #a855f7 100%);
  color: #ffffff;
  grid-column: span 2;
}

.btn-export.primary:hover {
  transform: translateY(-1px);
}

.btn-export.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #ffffff;
}

.btn-export.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #141738;
  border: 1px solid var(--color-kinetic);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.22s ease;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

/* Footer & Visit Counter */
.app-footer {
  border-top: 1px solid var(--border-glass);
  background: #060712;
  padding: 2.25rem 1.25rem 2rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  height: 32px;
  opacity: 0.75;
}

.visit-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 700;
}

.visit-counter-pill strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
  }
  
  .day-switcher {
    width: 100%;
    justify-content: center;
  }

  .day-btn {
    flex: 1;
    justify-content: center;
  }

  .header-actions {
    justify-content: space-between;
  }

  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
  }

  .search-container {
    width: 100%;
  }

  .search-results-dropdown {
    width: 100%;
  }

  .stages-header-row,
  .timeline-grid {
    grid-template-columns: 65px repeat(5, 220px);
  }

  .stage-header-card {
    padding: 0.6rem 0.5rem;
  }

  .stage-title {
    font-size: 0.84rem;
  }

  .stage-subtitle {
    display: none;
  }

  .floating-favorites-bar {
    width: 92%;
    justify-content: space-between;
    bottom: 0.85rem;
  }
}
