/* Modern Dashboard Styles - El Inmortal 2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables for Theme */
:root {
  --gold: #ffd700;
  --gold-light: #ffed4e;
  --gold-dark: #b8860b;
  --cyan: #00d4ff;
  --cyan-light: #7dd3fc;
  --red: #ff4757;
  --green: #2ed573;
  --purple: #a855f7;
  --dark-bg: #0a0a0f;
  --card-bg: rgba(15, 15, 25, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  z-index: -1;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation - Modern Glass Navbar */
.navbar {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-size: 1.5em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.navbar-brand-logo {
  background: none;
  -webkit-text-fill-color: initial;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 45px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
  transform: scale(1.05);
}

.navbar-logo-fallback {
  font-size: 1.2em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.navbar-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.navbar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.navbar-nav a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.navbar-nav a:hover::before {
  opacity: 1;
}

.navbar-nav a[href="/auth/logout"] {
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.navbar-nav a[href="/auth/logout"]:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: var(--red);
}

/* Header - Hero Section */
.header {
  background: linear-gradient(180deg, 
    rgba(15, 15, 30, 0.95) 0%, 
    rgba(10, 10, 20, 0.9) 100%);
  padding: 60px 30px 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--gold) 20%, 
    var(--cyan) 50%, 
    var(--gold) 80%, 
    transparent 100%);
  animation: headerLine 3s ease-in-out infinite;
}

@keyframes headerLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

.dashboard-brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-brand-logo {
  width: min(540px, 85vw);
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.22));
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.subtitle {
  font-size: 1.4em;
  color: var(--cyan-light);
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Main Countdown */
.countdown-main {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    rgba(255, 215, 0, 0.05) 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 35px 50px;
  display: inline-block;
  position: relative;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.2),
    inset 0 0 40px rgba(255, 215, 0, 0.05);
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2), inset 0 0 40px rgba(255, 215, 0, 0.05);
  }
  50% { 
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3), inset 0 0 50px rgba(255, 215, 0, 0.1);
  }
}

.countdown-title {
  font-size: 1.1em;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  font-weight: 600;
}

.countdown-time {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: baseline;
}

.countdown-time span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.countdown-time span::after {
  content: attr(data-label);
  font-size: 0.25em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  font-weight: 500;
}

/* Daily Timers Section */
.daily-timers-section {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.08) 0%, 
    rgba(0, 212, 255, 0.05) 50%,
    rgba(255, 107, 107, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 24px;
  padding: 30px;
  margin: 30px auto;
  max-width: 1400px;
  backdrop-filter: blur(10px);
}

.daily-timers-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8em;
  color: var(--gold);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.daily-timers-title::before,
.daily-timers-title::after {
  content: '◆';
  color: var(--cyan);
  font-size: 0.6em;
  opacity: 0.7;
}

.timers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.timer-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.timer-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 215, 0, 0.15);
}

.timer-card:hover::before {
  left: 100%;
}

.timer-card.launch-timer {
  border-color: rgba(255, 71, 87, 0.4);
  background: linear-gradient(135deg, 
    rgba(255, 71, 87, 0.15) 0%, 
    rgba(255, 71, 87, 0.05) 100%);
}

.timer-card.launch-timer:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 71, 87, 0.2);
}

.timer-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.timer-card.launch-timer .timer-label {
  color: var(--red);
  font-size: 1.1em;
  font-weight: 700;
}

.timer-date {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  font-weight: 400;
}

.timer-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.timer-unit {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 10px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timer-card:hover .timer-unit {
  border-color: rgba(255, 215, 0, 0.2);
}

.timer-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 2em;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.timer-card.launch-timer .timer-number {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.timer-text {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  font-weight: 500;
}

.timer-status {
  margin-top: 15px;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.8em;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-upcoming {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.status-active {
  background: rgba(46, 213, 115, 0.2);
  color: var(--green);
  border: 1px solid rgba(46, 213, 115, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
  }
  50% { 
    box-shadow: 0 0 20px 5px rgba(46, 213, 115, 0.2);
  }
}

.status-launched {
  background: rgba(255, 71, 87, 0.2);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.5);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* Stats Grid - Modern Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.stat-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 24px;
  padding: 35px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
  background-size: 200% 200%;
  animation: borderShimmer 3s ease infinite;
}

@keyframes borderShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.1);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card h3 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-card .label {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 15px;
  font-size: 0.95em;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 12px;
  border-radius: 12px;
  margin-top: 25px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--cyan));
  background-size: 200% 100%;
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: progressGradient 3s ease infinite;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Sections */
.section {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.3), 
    transparent);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  flex-wrap: wrap;
  gap: 20px;
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-icon {
  font-size: 1.3em;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Buttons - Modern Style */
.btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  color: #0a0a0f;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
  background-position: 100% 50%;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-small {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-small:hover {
  background: var(--gold);
  color: #0a0a0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Tables - Modern Style */
.tracks-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 25px;
  border-radius: 16px;
  overflow: hidden;
}

.tracks-table th {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    rgba(255, 215, 0, 0.05) 100%);
  padding: 20px;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.tracks-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.tracks-table tr {
  transition: all 0.3s ease;
}

.tracks-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.tracks-table tr:hover td {
  color: #fff;
}

/* Status Badges - Enhanced */
.status-badge {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-pending::before {
  background: #ffc107;
  box-shadow: 0 0 10px #ffc107;
  animation: pulseDot 2s ease-in-out infinite;
}

.status-done {
  background: rgba(46, 213, 115, 0.15);
  color: var(--green);
  border: 1px solid rgba(46, 213, 115, 0.4);
}

.status-done::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-urgent {
  background: rgba(255, 71, 87, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.4);
}

.status-urgent::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulseDot 1.5s ease-in-out infinite;
}

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

/* Quick Links - Card Grid */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.quick-link {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.08) 0%, 
    rgba(255, 215, 0, 0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--gold);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.quick-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2) 0%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-link:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(255, 215, 0, 0.2);
}

.quick-link:hover::before {
  opacity: 1;
}

.quick-link-icon {
  font-size: 2.8em;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  transition: transform 0.3s ease;
}

.quick-link:hover .quick-link-icon {
  transform: scale(1.15) rotate(5deg);
}

.quick-link > div:last-child {
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

/* Footer - Modern Style */
.footer {
  background: linear-gradient(180deg, 
    rgba(10, 10, 15, 0.98) 0%, 
    rgba(5, 5, 10, 1) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  padding: 50px 30px 30px;
  margin-top: 80px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--gold) 20%, 
    var(--cyan) 50%, 
    var(--gold) 80%, 
    transparent 100%);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  height: 35px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.footer-tagline {
  color: var(--cyan-light);
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9em;
  margin-top: 10px;
}

.footer-clock {
  font-family: 'Space Grotesk', monospace;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 25px;
  }
  
  .footer-links {
    gap: 20px;
  }
  
  .footer-meta {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .footer-divider {
    display: none;
  }
}

/* Forms - Modern Inputs */
.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.95em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 
    0 0 0 3px rgba(255, 215, 0, 0.1),
    0 0 20px rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Reveal Animation on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealAnimation 0.8s ease forwards;
}

@keyframes revealAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children animations */
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }

.timers-grid .timer-card:nth-child(1) { animation-delay: 0.05s; }
.timers-grid .timer-card:nth-child(2) { animation-delay: 0.1s; }
.timers-grid .timer-card:nth-child(3) { animation-delay: 0.15s; }
.timers-grid .timer-card:nth-child(4) { animation-delay: 0.2s; }
.timers-grid .timer-card:nth-child(5) { animation-delay: 0.25s; }
.timers-grid .timer-card:nth-child(6) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .header {
    padding: 40px 20px;
  }
  
  .header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .dashboard-brand-logo {
    width: min(360px, 90vw);
    max-height: 110px;
  }
  
  .countdown-main {
    padding: 25px 30px;
  }
  
  .countdown-time {
    font-size: 2rem;
    gap: 10px;
  }
  
  .countdown-time span {
    min-width: 60px;
    padding: 8px;
  }
  
  .timers-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section {
    padding: 25px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tracks-table {
    font-size: 0.9em;
  }
  
  .tracks-table th,
  .tracks-table td {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
  
  .timer-display {
    gap: 4px;
  }
  
  .timer-number {
    font-size: 1.5em;
  }
  
  .stat-card .number {
    font-size: 2.5em;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

/* Selection Color */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 0.8s ease-in-out infinite;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, 
    rgba(15, 15, 25, 0.95) 0%, 
    rgba(15, 15, 25, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 20px 25px;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.1);
  z-index: 9999;
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-color: var(--green);
}

.toast.error {
  border-color: var(--red);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 
    0 15px 40px rgba(255, 215, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.3);
}

.fab svg {
  width: 24px;
  height: 24px;
  fill: #0a0a0f;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Card Hover Shine Effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.shine-effect:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-red {
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

/* Pulse Animation for Important Elements */
.pulse-gold {
  animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }
}

/* Grid Pattern Background */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Noise Texture Overlay */
.noise-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Custom Tooltip */
.custom-tooltip {
  position: absolute;
  background: rgba(15, 15, 25, 0.95);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9em;
  font-weight: 500;
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 215, 0, 0.3);
}

/* Toast Notifications - Dashboard Style */
.dashboard-toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95em;
  z-index: 10000;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.dashboard-toast.success {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.1));
  color: var(--green);
  border-color: rgba(46, 213, 115, 0.4);
  box-shadow: 0 10px 40px rgba(46, 213, 115, 0.2);
}

.dashboard-toast.error {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
  color: var(--red);
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: 0 10px 40px rgba(255, 71, 87, 0.2);
}

.dashboard-toast.info {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.toast-icon {
  font-size: 1.3em;
  font-weight: 700;
}

/* Quick Search Modal */
.quick-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-search-modal.active {
  opacity: 1;
}

.quick-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.quick-search-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.95), rgba(15, 15, 25, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.quick-search-modal.active .quick-search-container {
  transform: translateY(0);
}

.quick-search-container input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1.1em;
  font-family: inherit;
}

.quick-search-container input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Shake Animation for Error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  cursor: pointer;
  gap: 6px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 768px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-nav {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    gap: 5px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }
  
  .navbar-nav.active {
    transform: translateX(0);
  }
  
  .navbar-nav li {
    width: 100%;
  }
  
  .navbar-nav a {
    display: block;
    padding: 16px 20px;
    font-size: 1.1em;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .navbar-nav a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
  }
}

/* Admin Calendar */
.admin-calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-calendar-month-label {
  min-width: 220px;
  text-align: center;
  font-size: 1.05em;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
}

.admin-calendar-section {
  overflow: visible;
}

.admin-calendar-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-calendar-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.admin-calendar-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.admin-calendar-stat-label {
  margin-top: 4px;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.admin-calendar-help {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 16px;
  font-size: 0.92em;
  line-height: 1.45;
}

.admin-calendar-loading {
  display: none;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 600;
}

.admin-calendar-shell {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

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

.admin-calendar-weekday {
  text-align: center;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px;
  font-weight: 700;
}

.admin-calendar-day {
  position: relative;
  min-height: 148px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-calendar-day:hover {
  border-color: rgba(255, 215, 0, 0.45);
  transform: translateY(-1px);
}

.admin-calendar-day.today {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.45);
}

.admin-calendar-day.empty {
  min-height: 0;
  background: transparent;
  border: none;
  pointer-events: none;
}

.admin-calendar-day.is-drop-target {
  border-color: rgba(46, 213, 115, 0.85);
  box-shadow: inset 0 0 0 2px rgba(46, 213, 115, 0.45);
}

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

.admin-calendar-day-number {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.96em;
  padding: 0;
}

.admin-calendar-day-add {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.admin-calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-calendar-event {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 6px;
  font-size: 0.77em;
  cursor: grab;
}

.admin-calendar-event.is-dragging {
  opacity: 0.55;
}

.admin-calendar-event-platform {
  font-size: 0.68em;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.6px;
}

.admin-calendar-event-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-calendar-event-time {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.admin-calendar-event-delete {
  appearance: none;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 71, 87, 0.28);
}

.admin-calendar-event-delete:hover {
  background: rgba(255, 71, 87, 0.52);
}

.admin-calendar-event.platform-youtube {
  border-left: 3px solid #ff3b30;
}

.admin-calendar-event.platform-tiktok {
  border-left: 3px solid #25f4ee;
}

.admin-calendar-event.platform-facebook {
  border-left: 3px solid #1877f2;
}

.admin-calendar-event.platform-instagram {
  border-left: 3px solid #f56040;
}

.admin-calendar-event.platform-x {
  border-left: 3px solid #c2c2c2;
}

.admin-calendar-event.sync-error {
  box-shadow: inset 0 0 0 1px rgba(255, 71, 87, 0.55);
}

.admin-calendar-day-menu {
  position: absolute;
  top: 28px;
  left: 8px;
  z-index: 40;
  width: min(320px, calc(100vw - 56px));
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  background: rgba(8, 8, 15, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.admin-calendar-day-form {
  display: grid;
  gap: 8px;
}

.admin-calendar-day-form-title {
  color: var(--gold);
  font-size: 0.92em;
  font-weight: 700;
  margin-bottom: 2px;
}

.admin-calendar-day-form label {
  font-size: 0.74em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.admin-calendar-day-form input,
.admin-calendar-day-form select,
.admin-calendar-day-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.86em;
  padding: 8px 10px;
}

.admin-calendar-day-form textarea {
  resize: vertical;
}

.admin-calendar-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82em;
  color: #ddd;
}

.admin-calendar-inline-check input {
  width: auto;
  margin: 0;
}

.admin-calendar-day-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.admin-calendar-youtube-fields {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
}

@media (max-width: 900px) {
  .admin-calendar-month-label {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .admin-calendar-toolbar {
    width: 100%;
  }

  .admin-calendar-toolbar .btn-small {
    flex: 1;
    justify-content: center;
  }

  .admin-calendar-month-label {
    width: 100%;
  }
}

/* Compact artistic admin layout (home dashboard) */
body.dashboard-view .navbar {
  height: 62px;
  padding: 0 18px;
}

body.dashboard-view .navbar-logo {
  height: 34px;
}

body.dashboard-view .navbar-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.82em;
}

body.dashboard-view .header.dashboard-hero {
  padding: 34px 22px 26px;
  border-bottom-color: rgba(255, 215, 0, 0.15);
}

body.dashboard-view.mission-control-mode::before {
  background:
    linear-gradient(rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 80% 0%, rgba(251, 191, 36, 0.12) 0%, transparent 48%),
    linear-gradient(180deg, #050910 0%, #04070d 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  animation: bgPulse 10s ease-in-out infinite;
}

body.dashboard-view .mission-strip {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dashboard-view .mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.66em;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 23, 42, 0.78);
}

body.dashboard-view .mission-chip-live {
  border-color: rgba(74, 222, 128, 0.6);
  color: #86efac;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.18) inset;
}

body.dashboard-view .mission-chip-clock {
  font-family: 'Space Grotesk', monospace;
}

body.dashboard-view .global-mission-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(2, 6, 23, 0.6) 100%);
  backdrop-filter: blur(12px);
}

body.dashboard-view .global-mission-strip.is-hidden {
  display: none;
}

body.dashboard-view .global-mission-strip .mission-chip {
  font-size: 0.63em;
}

body.dashboard-view .container:not(.dashboard-shell):not(.tracks-mission-shell):not(.tools-mission-shell) {
  max-width: 1560px;
  padding: 24px 18px 28px;
}

body.dashboard-view .dashboard-brand-logo {
  width: min(420px, 78vw);
  max-height: 102px;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.18));
}

body.dashboard-view .subtitle {
  margin-bottom: 10px;
  font-size: 0.92em;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

body.dashboard-view .dashboard-hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.dashboard-view .dashboard-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(6, 182, 212, 0.1);
  color: #7dd3fc;
  font-size: 0.74em;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
}

body.dashboard-view .density-toggle-btn {
  border: 1px solid rgba(255, 215, 0, 0.38);
  background: rgba(255, 215, 0, 0.13);
  color: #fef08a;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.74em;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dashboard-view .density-toggle-btn:hover {
  background: rgba(255, 215, 0, 0.24);
  transform: translateY(-1px);
}

body.dashboard-view .dashboard-shell {
  max-width: 1600px;
  padding: 18px 18px 28px;
}

body.dashboard-view .dashboard-flash {
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.82em;
}

body.dashboard-view .dashboard-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.dashboard-view .dashboard-stats-grid .stat-card {
  border-radius: 14px;
  padding: 14px 12px 12px;
  min-height: 0;
}

body.dashboard-view .dashboard-stats-grid .stat-card::before {
  height: 3px;
}

body.dashboard-view .dashboard-stats-grid .stat-card h3 {
  font-size: 0.65em;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

body.dashboard-view .dashboard-stats-grid .stat-card .number {
  font-size: 1.9em;
}

body.dashboard-view .dashboard-stats-grid .stat-card .label {
  margin-top: 7px;
  font-size: 0.77em;
}

body.dashboard-view .dashboard-stats-grid .stat-card .stat-meta {
  margin-top: 6px;
  color: rgba(125, 211, 252, 0.88);
  font-size: 0.63em;
  text-transform: uppercase;
  letter-spacing: 1.35px;
  font-weight: 700;
}

body.dashboard-view .dashboard-stats-grid .progress-bar {
  height: 6px;
  margin-top: 10px;
}

body.dashboard-view .dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

body.dashboard-view .dashboard-sidebar {
  display: grid;
  gap: 14px;
}

body.dashboard-view .section {
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 0;
}

body.dashboard-view .section-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  gap: 8px;
}

body.dashboard-view .section h2 {
  font-size: 1.08em;
  letter-spacing: 0.5px;
}

body.dashboard-view .compact-section-header {
  margin-bottom: 10px;
}

body.dashboard-view .section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dashboard-view .btn {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.7em;
  letter-spacing: 1.2px;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.24);
}

body.dashboard-view .btn-ghost {
  background: rgba(255, 215, 0, 0.14);
  color: #fde68a;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

body.dashboard-view .btn-ghost:hover {
  color: #111827;
  background: rgba(255, 215, 0, 0.8);
}

body.dashboard-view .dashboard-tracks-table {
  margin-top: 8px;
}

body.dashboard-view .dashboard-tracks-table th,
body.dashboard-view .dashboard-tracks-table td {
  padding: 10px;
}

body.dashboard-view .dashboard-tracks-table th {
  font-size: 0.68em;
  letter-spacing: 1.3px;
}

body.dashboard-view .dashboard-tracks-table td {
  font-size: 0.86em;
}

body.dashboard-view .dashboard-tracks-table td:nth-child(2) {
  font-family: 'Space Grotesk', monospace;
  color: rgba(125, 211, 252, 0.95);
  font-size: 0.78em;
}

body.dashboard-view .dashboard-tracks-table .table-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  padding: 20px 12px;
}

body.dashboard-view .status-badge {
  padding: 5px 10px;
  font-size: 0.66em;
  letter-spacing: 0.8px;
}

body.dashboard-view .btn-small {
  padding: 6px 10px;
  font-size: 0.74em;
  border-radius: 7px;
}

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

body.dashboard-view .emoji-command-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(2, 6, 23, 0.35);
  font-size: 1.06rem;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.dashboard-view .emoji-command-link:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 18px rgba(2, 6, 23, 0.5);
}

body.dashboard-view .emoji-command-legend {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.67em;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dashboard-view .emoji-command-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.dashboard-view .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
}

body.dashboard-view .legend-dot.tone-gold {
  color: #fde047;
  background: #fde047;
}

body.dashboard-view .legend-dot.tone-cyan {
  color: #38bdf8;
  background: #38bdf8;
}

body.dashboard-view .legend-dot.tone-violet {
  color: #a78bfa;
  background: #a78bfa;
}

body.dashboard-view .emoji-command-link.tone-gold {
  background: radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.32) 0%, rgba(17, 24, 39, 0.82) 72%);
}

body.dashboard-view .emoji-command-link.tone-cyan {
  background: radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.34) 0%, rgba(15, 23, 42, 0.82) 70%);
}

body.dashboard-view .emoji-command-link.tone-violet {
  background: radial-gradient(circle at 22% 18%, rgba(167, 139, 250, 0.34) 0%, rgba(30, 27, 75, 0.82) 72%);
}

body.dashboard-view .emoji-command-link.tone-mint {
  background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.34) 0%, rgba(6, 78, 59, 0.72) 72%);
}

body.dashboard-view .emoji-command-link.tone-sunset {
  background: radial-gradient(circle at 22% 18%, rgba(251, 146, 60, 0.35) 0%, rgba(124, 45, 18, 0.72) 72%);
}

body.dashboard-view .emoji-command-link.tone-steel {
  background: radial-gradient(circle at 22% 20%, rgba(148, 163, 184, 0.36) 0%, rgba(15, 23, 42, 0.82) 74%);
}

body.dashboard-view .emoji-command-link.tone-plasma {
  background: radial-gradient(circle at 22% 20%, rgba(244, 114, 182, 0.36) 0%, rgba(76, 29, 149, 0.74) 72%);
}

body.dashboard-view .emoji-command-link.tone-red {
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.36) 0%, rgba(127, 29, 29, 0.74) 72%);
}

body.dashboard-view .emoji-command-link.tone-neon {
  background: radial-gradient(circle at 22% 18%, rgba(52, 211, 153, 0.34) 0%, rgba(6, 95, 70, 0.75) 72%);
}

body.dashboard-view .emoji-command-link.tone-amber {
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.37) 0%, rgba(120, 53, 15, 0.75) 74%);
}

body.dashboard-view .emoji-command-link.tone-lime {
  background: radial-gradient(circle at 20% 20%, rgba(163, 230, 53, 0.35) 0%, rgba(63, 98, 18, 0.74) 72%);
}

body.dashboard-view .emoji-command-link.tone-indigo {
  background: radial-gradient(circle at 22% 20%, rgba(129, 140, 248, 0.36) 0%, rgba(49, 46, 129, 0.76) 72%);
}

body.dashboard-view .emoji-command-link.tone-cobalt {
  background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.36) 0%, rgba(30, 64, 175, 0.76) 72%);
}

body.dashboard-view .emoji-command-hint {
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.69em;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body.dashboard-view .dashboard-mission-panel {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(140deg, rgba(14, 116, 144, 0.14) 0%, rgba(2, 6, 23, 0.9) 65%);
}

body.dashboard-view .mission-feed-list {
  display: grid;
  gap: 8px;
}

body.dashboard-view .mission-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 9px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.58);
}

body.dashboard-view .mission-feed-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(125, 211, 252, 0.92);
}

body.dashboard-view .mission-feed-value {
  font-family: 'Space Grotesk', monospace;
  color: #fef08a;
  font-size: 0.84em;
  letter-spacing: 0.6px;
}

body.dashboard-view .report-form {
  display: grid;
  gap: 8px;
}

body.dashboard-view .report-form input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.75);
  color: #e2e8f0;
  font-size: 0.84em;
}

body.dashboard-view .report-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.dashboard-view .activity-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

body.dashboard-view .activity-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.62);
  border-radius: 10px;
  padding: 9px 10px;
}

body.dashboard-view .activity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.dashboard-view .activity-action {
  font-size: 0.68em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #7dd3fc;
  font-weight: 700;
}

body.dashboard-view .activity-time {
  font-size: 0.67em;
  color: rgba(148, 163, 184, 0.9);
}

body.dashboard-view .activity-details {
  margin-top: 6px;
  font-size: 0.81em;
  color: #e2e8f0;
  line-height: 1.3;
}

body.dashboard-view .activity-empty {
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.8em;
}

body.dashboard-view .dashboard-news-section {
  margin-top: 14px;
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(140deg, rgba(30, 64, 175, 0.12) 0%, rgba(2, 6, 23, 0.92) 62%);
}

body.dashboard-view .news-control-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.48);
  background: rgba(30, 64, 175, 0.24);
  color: #bfdbfe;
  font-size: 0.67em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

body.dashboard-view .dashboard-news-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 12px;
  align-items: start;
}

body.dashboard-view .news-wire-panel {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 12px;
  padding: 10px;
}

body.dashboard-view .news-wire-header {
  font-size: 0.69em;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #93c5fd;
  margin-bottom: 8px;
  font-weight: 700;
}

body.dashboard-view .news-wire-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

body.dashboard-view .news-wire-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  padding: 8px;
}

body.dashboard-view .news-wire-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.57em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 6px;
}

body.dashboard-view .news-wire-tag.tag-hot {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.26);
  border: 1px solid rgba(248, 113, 113, 0.44);
}

body.dashboard-view .news-wire-tag.tag-drop {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.26);
  border: 1px solid rgba(251, 191, 36, 0.44);
}

body.dashboard-view .news-wire-tag.tag-social {
  color: #86efac;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.42);
}

body.dashboard-view .news-wire-tag.tag-ai {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.44);
}

body.dashboard-view .news-wire-text {
  color: #e2e8f0;
  font-size: 0.77em;
  line-height: 1.35;
}

body.dashboard-view .algorithm-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dashboard-view .algorithm-card {
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(30, 64, 175, 0.15) 0%, rgba(2, 6, 23, 0.78) 75%);
  padding: 10px;
  min-height: 116px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.dashboard-view .algorithm-card:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.52);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.42);
}

body.dashboard-view .algorithm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.dashboard-view .algorithm-id {
  font-family: 'Space Grotesk', monospace;
  color: #7dd3fc;
  font-size: 0.66em;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 700;
}

body.dashboard-view .algorithm-level {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.58em;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

body.dashboard-view .algorithm-title {
  margin-top: 6px;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 0.82em;
  letter-spacing: 0.3px;
}

body.dashboard-view .algorithm-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.dashboard-view .algorithm-step {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border-radius: 7px;
  font-size: 0.68em;
  line-height: 1.1;
  padding: 4px 7px;
  letter-spacing: 0.2px;
}

body.dashboard-view .algorithm-arrow {
  color: rgba(125, 211, 252, 0.86);
  font-size: 0.72em;
}

body.dashboard-view.density-cinematic .dashboard-stats-grid {
  gap: 18px;
}

body.dashboard-view.density-cinematic .mission-chip {
  font-size: 0.72em;
  padding: 7px 12px;
}

body.dashboard-view.density-cinematic .dashboard-stats-grid .stat-card {
  padding: 22px 20px 18px;
}

body.dashboard-view.density-cinematic .dashboard-stats-grid .stat-card .number {
  font-size: 2.8em;
}

body.dashboard-view.density-cinematic .section {
  padding: 24px;
}

body.dashboard-view.density-cinematic .btn {
  padding: 11px 16px;
  font-size: 0.76em;
}

body.dashboard-view.density-cinematic .emoji-command-link {
  min-height: 54px;
  font-size: 1.18rem;
}

@media (max-width: 1500px) {
  body.dashboard-view .dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  body.dashboard-view .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-view .dashboard-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  body.dashboard-view .dashboard-activity-panel {
    grid-column: 1 / -1;
  }

  body.dashboard-view .dashboard-news-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-view .algorithm-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.dashboard-view .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-view .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  body.dashboard-view .emoji-command-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.dashboard-view .section-actions {
    width: 100%;
  }

  body.dashboard-view .algorithm-lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.dashboard-view .global-mission-strip {
    justify-content: flex-start;
    padding: 7px 10px;
  }

  body.dashboard-view .global-mission-strip .mission-chip {
    font-size: 0.58em;
    letter-spacing: 0.9px;
    padding: 4px 8px;
  }

  body.dashboard-view .dashboard-shell {
    padding: 14px 12px 22px;
  }

  body.dashboard-view .header.dashboard-hero {
    padding: 24px 14px 18px;
  }

  body.dashboard-view .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-view .section {
    padding: 14px;
  }

  body.dashboard-view .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.dashboard-view .report-date-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-view .emoji-command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tracks page mission control */
body.page-tracks .tracks-mission-shell {
  padding-top: 22px;
}

body.page-tracks .tracks-mission-strip {
  justify-content: flex-start;
  margin-bottom: 12px;
}

body.page-tracks .tracks-port-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

body.page-tracks .tracks-port-notice-main {
  color: #fcd34d;
  margin: 0;
  font-weight: 700;
  font-size: 0.85em;
}

body.page-tracks .tracks-port-notice-sub {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.74em;
  margin: 4px 0 0;
}

body.page-tracks .tracks-page-header {
  margin-bottom: 14px;
}

body.page-tracks .tracks-page-header h1 {
  font-size: 1.35em;
  letter-spacing: 0.5px;
}

body.page-tracks .stats-overview {
  gap: 10px;
  margin-bottom: 12px;
}

body.page-tracks .stat-mini {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px;
}

body.page-tracks .stat-mini .number {
  font-size: 1.55em;
}

body.page-tracks .stat-mini .label {
  font-size: 0.72em;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body.page-tracks .filter-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

body.page-tracks .filter-tab {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.page-tracks .tracks-mission-table-shell {
  padding: 12px;
}

body.page-tracks .tracks-mission-table {
  margin-top: 0;
}

body.page-tracks .tracks-mission-table th,
body.page-tracks .tracks-mission-table td {
  padding: 10px;
}

body.page-tracks .tracks-mission-table th {
  font-size: 0.66em;
}

body.page-tracks .tracks-mission-table td {
  font-size: 0.82em;
}

body.page-tracks .track-number-cell {
  font-weight: 700;
  color: #facc15;
  font-family: 'Space Grotesk', sans-serif;
}

body.page-tracks .track-features {
  font-size: 0.76em;
  color: rgba(148, 163, 184, 0.95);
}

body.page-tracks .tracks-legend-card {
  margin-top: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
}

body.page-tracks .tracks-legend-card h3 {
  color: #facc15;
  margin-bottom: 9px;
  font-size: 0.95em;
}

body.page-tracks .tracks-legend-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78em;
  color: #cbd5e1;
}

body.page-tracks .tracks-legend-subline {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.74em;
  color: rgba(148, 163, 184, 0.95);
}

/* Tools page mission control */
body.page-tools .tools-mission-shell {
  padding-top: 22px;
}

body.page-tools .tools-mission-strip {
  justify-content: flex-start;
  margin-bottom: 12px;
}

body.page-tools .tools-mission-hero {
  padding: 16px;
}

body.page-tools .tools-mission-copy {
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 12px;
  font-size: 0.86em;
}

body.page-tools .tools-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

body.page-tools .tools-command-card {
  display: grid;
  gap: 4px;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.65));
  min-height: 96px;
  padding: 11px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-tools .tools-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

body.page-tools .tools-command-emoji {
  font-size: 1.08em;
}

body.page-tools .tools-command-title {
  color: #f8fafc;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.25;
}

body.page-tools .tools-command-meta {
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.67em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.page-tools .tools-command-card.tone-gold {
  background: radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.32) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-cyan {
  background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.32) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-violet {
  background: radial-gradient(circle at 18% 20%, rgba(167, 139, 250, 0.32) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-plasma {
  background: radial-gradient(circle at 18% 20%, rgba(244, 114, 182, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-red {
  background: radial-gradient(circle at 18% 20%, rgba(248, 113, 113, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-neon {
  background: radial-gradient(circle at 18% 20%, rgba(52, 211, 153, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-amber {
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-lime {
  background: radial-gradient(circle at 18% 20%, rgba(163, 230, 53, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-cobalt {
  background: radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

body.page-tools .tools-command-card.tone-indigo {
  background: radial-gradient(circle at 18% 20%, rgba(129, 140, 248, 0.34) 0%, rgba(15, 23, 42, 0.9) 74%);
}

/* Landing pages tool */
body.page-tools-landing .tools-landing-shell {
  padding-top: 22px;
}

body.page-tools-landing .tools-landing-flash {
  margin-bottom: 12px;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

body.page-tools-landing .tools-landing-flash-success {
  border-color: rgba(74, 222, 128, 0.5);
  color: #bbf7d0;
}

body.page-tools-landing .tools-landing-flash-error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

body.page-tools-landing .landing-pages-form {
  display: grid;
  gap: 12px;
}

body.page-tools-landing .landing-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.page-tools-landing .landing-form-field {
  display: grid;
  gap: 6px;
}

body.page-tools-landing .landing-form-field span {
  font-size: 0.68em;
  color: rgba(148, 163, 184, 0.94);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.page-tools-landing .landing-form-field input,
body.page-tools-landing .landing-form-field select,
body.page-tools-landing .landing-form-field textarea,
body.page-tools-landing .landing-sort-form input {
  width: 100%;
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.82em;
}

body.page-tools-landing .landing-form-field textarea {
  resize: vertical;
  min-height: 72px;
}

body.page-tools-landing .landing-form-field-full {
  grid-column: 1 / -1;
}

body.page-tools-landing .landing-form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.8em;
}

body.page-tools-landing .landing-form-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
}

body.page-tools-landing .landing-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body.page-tools-landing .landing-rule-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  color: #bfdbfe;
  font-size: 0.76em;
  line-height: 1.4;
}

body.page-tools-landing .landing-empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: rgba(148, 163, 184, 0.95);
}

body.page-tools-landing .landing-pages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-tools-landing .landing-page-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.72));
  padding: 10px;
}

body.page-tools-landing .landing-page-card.is-active {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.15);
}

body.page-tools-landing .landing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.page-tools-landing .landing-card-title-wrap h3 {
  font-size: 0.95em;
  color: #f8fafc;
}

body.page-tools-landing .landing-card-slug {
  margin-top: 4px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.74em;
  color: #7dd3fc;
}

body.page-tools-landing .landing-status-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.62em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

body.page-tools-landing .landing-status-badge.status-active {
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 163, 74, 0.2);
  color: #bbf7d0;
}

body.page-tools-landing .landing-status-badge.status-inactive {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(51, 65, 85, 0.32);
  color: #cbd5e1;
}

body.page-tools-landing .landing-card-meta-grid {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  font-size: 0.75em;
  color: #cbd5e1;
}

body.page-tools-landing .landing-card-description {
  margin-top: 8px;
  font-size: 0.74em;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

body.page-tools-landing .landing-card-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

body.page-tools-landing .landing-sort-form {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

body.page-tools-landing .landing-btn-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.52);
}

body.page-tools-landing .landing-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fee2e2;
}

/* Fan dashboard refinements */
body.page-fan-dashboard .section {
  padding: 14px;
  border-radius: 14px;
}

body.page-fan-dashboard .fan-top-section {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.58) 0%, rgba(15, 23, 42, 0.72) 100%);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

body.page-fan-dashboard .fan-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: stretch;
}

body.page-fan-dashboard .fan-featured-card {
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.28) 0%, rgba(30, 41, 59, 0.88) 72%);
  padding: 16px;
}

body.page-fan-dashboard .fan-featured-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(120, 53, 15, 0.35);
  color: #fde68a;
  font-size: 0.66em;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

body.page-fan-dashboard .fan-featured-title {
  margin-top: 10px;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  line-height: 1.2;
  color: #fff7cc;
}

body.page-fan-dashboard .fan-featured-copy {
  margin-top: 8px;
  margin-bottom: 12px;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.9em;
}

body.page-fan-dashboard .fan-quick-actions-wrap {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
}

body.page-fan-dashboard .fan-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.page-fan-dashboard .emoji-command-link {
  min-height: 66px;
  border-radius: 14px;
  font-size: 1.65rem;
}

@media (max-width: 900px) {
  body.page-fan-dashboard .fan-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.page-tracks .tracks-page-header h1 {
    font-size: 1.18em;
  }

  body.page-tools .tools-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-tools-landing .landing-form-grid,
  body.page-tools-landing .landing-pages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.page-tracks .tracks-mission-strip,
  body.page-tools .tools-mission-strip {
    justify-content: center;
  }

  body.page-tools .tools-command-grid {
    grid-template-columns: 1fr;
  }

  body.page-tools-landing .landing-sort-form {
    grid-template-columns: 1fr;
  }
}

/* Layout editor controls */
.layout-editor-toolbar {
  position: fixed;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1200;
}

.layout-editor-toggle-btn,
.layout-editor-reset-btn {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 0.7em;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-editor-toggle-btn:hover,
.layout-editor-reset-btn:hover {
  border-color: rgba(250, 204, 21, 0.62);
  color: #fef08a;
  transform: translateY(-1px);
}

.layout-editor-reset-btn {
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.layout-item-box {
  position: relative;
}

body.layout-edit-mode [data-layout-item] {
  cursor: grab;
  outline: 1px dashed rgba(56, 189, 248, 0.35);
  outline-offset: -2px;
}

body.layout-edit-mode [data-layout-item]:hover {
  outline-color: rgba(250, 204, 21, 0.62);
}

body.layout-edit-mode [data-layout-item].layout-item-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

@media (max-width: 768px) {
  .layout-editor-toolbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }

  .layout-editor-toggle-btn,
  .layout-editor-reset-btn {
    font-size: 0.66em;
    padding: 8px 10px;
  }
}
