/* ============================================
   HaloAgency Maintenance — Premium Design
   ============================================ */

/* === Variables === */
:root {
  --bg-primary: #06090f;
  --bg-secondary: #0c1220;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-solid: #0f172a;
  --bg-hover: rgba(30, 41, 59, 0.5);

  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-ultra: #c4b5fd;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --accent-glow-strong: rgba(124, 58, 237, 0.5);

  --green: #10b981;
  --green-light: #34d399;
  --green-bg: rgba(16, 185, 129, 0.08);
  --green-border: rgba(16, 185, 129, 0.25);

  --orange: #f59e0b;
  --orange-light: #fbbf24;
  --orange-bg: rgba(245, 158, 11, 0.08);
  --orange-border: rgba(245, 158, 11, 0.25);

  --red: #ef4444;
  --red-light: #f87171;
  --red-bg: rgba(239, 68, 68, 0.08);
  --red-border: rgba(239, 68, 68, 0.25);

  --gray: #475569;
  --gray-bg: rgba(71, 85, 104, 0.08);
  --gray-border: rgba(71, 85, 104, 0.25);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(148, 163, 184, 0.08);
  --border-light: rgba(148, 163, 184, 0.12);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

  --glass: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(148, 163, 184, 0.1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === Background Effects === */
.bg-effects {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  top: -10%; right: -5%;
  animation: orb-float-1 20s ease-in-out infinite;
}

.bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
  bottom: -10%; left: -5%;
  animation: orb-float-2 25s ease-in-out infinite;
}

.bg-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float-3 18s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 30px); }
  66% { transform: translate(20px, -20px); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}
@keyframes orb-float-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.bg-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: slide-up 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

@keyframes slide-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Page Structure === */
.page {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 30px 20px 40px;
}

.page.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-only 0.4s ease;
}

.container {
  max-width: 740px;
  width: 100%;
}

/* === Top Bar === */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  margin-bottom: 32px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}

.status-dot.warning {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 12px currentColor, 0 0 20px currentColor; }
}

.top-bar-sep {
  color: var(--border-light);
}

/* === Logo Section === */
.logo-section {
  text-align: center;
  margin-bottom: 36px;
}
.logo-section.small { margin-bottom: 24px; }

.logo-hexagon {
  width: 110px; height: 110px;
  margin: 0 auto 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-hexagon.small { width: 76px; height: 76px; margin-bottom: 12px; }

.logo-hex-inner {
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-light);
  z-index: 2;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}
.logo-hexagon.small .logo-hex-inner { font-size: 20px; }
.logo-hexagon.done-mode .logo-hex-inner { color: var(--green-light); }
.logo-hexagon.warning-mode .logo-hex-inner { color: var(--orange-light); }

.hex-spinner {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: 1;
  animation: hex-rotate 8s linear infinite;
}

.hex-spinner circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 80 200;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.hex-spinner.warning circle { stroke: var(--orange); filter: drop-shadow(0 0 6px rgba(245,158,11,0.3)); }
.hex-spinner.done circle { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(16,185,129,0.3)); }

@keyframes hex-rotate { to { transform: rotate(360deg); } }

.brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.logo-section.small .brand { font-size: 1.6rem; }

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

.brand-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* === Glass Card === */
.glass-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.03) 55%, transparent 60%);
  animation: shine-sweep 6s ease-in-out infinite;
}
@keyframes shine-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.card-border-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
  background-size: 200% 100%;
  animation: border-flow 4s linear infinite;
}
.card-border-glow.done {
  background: linear-gradient(90deg, transparent, var(--green), var(--green-light), var(--green), transparent);
  background-size: 200% 100%;
}
@keyframes border-flow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.card-content {
  padding: 36px;
}

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.pulse-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dot-pulse 2s ease-in-out infinite;
}

/* === Message === */
.message {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.message strong { color: var(--text-primary); }
.message em { color: var(--green-light); font-style: normal; font-weight: 600; }

/* === Schedule Grid === */
.schedule-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.schedule-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.schedule-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent-glow);
}

.schedule-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.schedule-card.start .schedule-icon {
  background: var(--accent-glow);
  color: var(--accent-light);
}
.schedule-card.end .schedule-icon {
  background: var(--green-bg);
  color: var(--green-light);
  border: 1px solid var(--green-border);
}

.schedule-info { display: flex; flex-direction: column; }
.schedule-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.schedule-date { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.schedule-time { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--accent-light); }
.schedule-card.end .schedule-time { color: var(--green-light); }

.schedule-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.schedule-arrow i { font-size: 1rem; color: var(--accent-light); }
.schedule-duration { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; }

/* === Section Label === */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.section-label i { color: var(--accent-light); font-size: 0.9rem; }

/* === Countdown === */
.countdown-section {
  text-align: center;
  margin-bottom: 36px;
  margin-top: 36px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.countdown-unit { text-align: center; }

.countdown-flip {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.countdown-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(6,9,15,0.95));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  min-width: 100px;
  padding: 16px 12px;
  line-height: 1;
  position: relative;
  text-shadow: 0 0 20px var(--accent-glow);
}

.countdown-value::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(148, 163, 184, 0.06);
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 600;
}

.countdown-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 24px;
}
.countdown-sep span { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* === Progress Track === */
.progress-track {
  height: 4px;
  background: var(--bg-card-solid);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
}

.progress-glow {
  position: absolute;
  right: 0; top: -3px;
  width: 20px; height: 10px;
  background: var(--accent-light);
  border-radius: 50%;
  filter: blur(6px);
}

/* === Preview Steps === */
.preview-steps {
  margin-top: 36px;
  margin-bottom: 20px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.preview-item:hover {
  border-color: var(--accent-glow);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.preview-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.preview-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.footer i { color: var(--accent-light); }

/* ============================================
   MAINTENANCE PAGE
   ============================================ */

/* === Alert Banner === */
.alert-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--orange-border);
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.alert-bg-sweep {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.04), transparent);
  animation: sweep 4s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.alert-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.alert-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--orange);
  flex-shrink: 0;
  animation: icon-bounce 3s ease-in-out infinite;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.alert-text { flex: 1; }
.alert-text strong { display: block; color: var(--orange); font-size: 1.05rem; margin-bottom: 3px; }
.alert-text p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.alert-timer {
  text-align: center;
  flex-shrink: 0;
  padding: 12px 20px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.timer-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.timer-value { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 700; color: var(--orange); }

/* === Steps Timeline === */
.steps-section { margin-bottom: 20px; }

.steps-progress-track {
  height: 4px;
  background: var(--bg-card-solid);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.steps-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 4px;
  transition: width 0.8s ease;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* Timeline connector line */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--border-light), var(--border), var(--border-light));
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-glow);
}

.step-card.status-done { border-color: var(--green-border); background: linear-gradient(135deg, var(--green-bg), transparent); }
.step-card.status-in-progress { border-color: var(--orange-border); background: linear-gradient(135deg, var(--orange-bg), transparent); }
.step-card.status-incident { border-color: var(--red-border); background: linear-gradient(135deg, var(--red-bg), transparent); }

/* Step Number Circle */
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid var(--border-light);
  background: var(--bg-card-solid);
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-card.status-done .step-num { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 0 16px rgba(16,185,129,0.3); }
.step-card.status-in-progress .step-num { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 0 16px rgba(245,158,11,0.3); animation: num-pulse 2s ease-in-out infinite; }
.step-card.status-incident .step-num { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 0 16px rgba(239,68,68,0.3); animation: num-pulse 1.2s ease-in-out infinite; }

@keyframes num-pulse {
  0%, 100% { box-shadow: 0 0 8px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

.step-body { flex: 1; min-width: 0; }

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.step-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 100px;
  flex-shrink: 0;
}

.step-badge.pending { background: var(--gray-bg); color: var(--text-muted); border: 1px solid var(--gray-border); }
.step-badge.done { background: var(--green-bg); color: var(--green-light); border: 1px solid var(--green-border); }
.step-badge.in-progress { background: var(--orange-bg); color: var(--orange-light); border: 1px solid var(--orange-border); }
.step-badge.incident { background: var(--red-bg); color: var(--red-light); border: 1px solid var(--red-border); }

.step-badge.in-progress, .step-badge.incident { animation: badge-flash 2s ease-in-out infinite; }
@keyframes badge-flash { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.step-spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--orange);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-detail {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  line-height: 1.6;
}
.step-detail i { color: var(--accent-light); margin-right: 6px; }
.step-detail:empty { display: none; }

/* ============================================
   DONE PAGE
   ============================================ */
.done-card-wrap {
  margin-bottom: 20px;
}

.done-check-anim {
  font-size: 3.4rem;
  color: var(--green);
  margin-bottom: 20px;
  animation: check-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
}
@keyframes check-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.done-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 10px;
}

.done-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.done-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.done-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.done-item:hover { transform: translateY(-2px); background: rgba(16, 185, 129, 0.12); }

.done-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.done-item-text { flex: 1; }
.done-item-text strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.done-item-text span { font-size: 0.78rem; color: var(--text-muted); }
.done-item-check { color: var(--green); font-size: 1.1rem; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-body {
  background: var(--bg-primary);
  min-height: 100vh;
}

.admin-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Login */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 52px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
  background-size: 200% 100%;
  animation: border-flow 4s linear infinite;
}

.login-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin-bottom: 8px; }
.login-card > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }

.input-group {
  position: relative;
  margin-bottom: 20px;
}
.input-group i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.input-group input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-group input::placeholder { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  width: 100%;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow-strong); }

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

.btn-green { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-gray { background: var(--gray); color: #fff; }

.login-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 14px;
  display: none;
}

/* Admin Header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-header h1 i { color: var(--accent-light); }

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Phase Control */
.phase-control {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.phase-control h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-control h3 i { color: var(--accent-light); }

.phase-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.phase-btn {
  flex: 1;
  padding: 14px 20px;
  background: rgba(0,0,0,0.2);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.phase-btn:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(124, 58, 237, 0.05); }
.phase-btn.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Admin Steps */
.admin-step {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.admin-step:hover { border-color: var(--border-light); }

.admin-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-step-name {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-light);
  flex-shrink: 0;
}

.status-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.status-btn {
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}

.status-btn.pending   { color: var(--text-muted); border-color: var(--gray-border); }
.status-btn.in-progress { color: var(--orange); border-color: var(--orange-border); }
.status-btn.done      { color: var(--green); border-color: var(--green-border); }
.status-btn.incident  { color: var(--red); border-color: var(--red-border); }

.status-btn:hover { transform: scale(1.05); }
.status-btn.active { transform: scale(1.05); }

.status-btn.pending.active   { background: var(--gray); color: #fff; border-color: var(--gray); }
.status-btn.done.active      { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 0 16px rgba(16,185,129,0.3); }
.status-btn.in-progress.active { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 0 16px rgba(245,158,11,0.3); }
.status-btn.incident.active  { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 0 16px rgba(239,68,68,0.3); }

.admin-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-detail-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  resize: vertical;
  min-height: 70px;
  transition: all 0.25s;
  line-height: 1.5;
}
.admin-detail-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.admin-detail-input::placeholder { color: var(--text-muted); }

.admin-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Live indicator admin */
.admin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-live-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--red-border); color: var(--red); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .countdown-value { font-size: 2.2rem; min-width: 68px; padding: 12px 8px; }
  .countdown-sep { font-size: 1.6rem; }
  .card-content { padding: 24px 20px; }
  .schedule-grid { flex-direction: column; gap: 10px; }
  .schedule-arrow { flex-direction: row; gap: 8px; }
  .schedule-arrow i { transform: rotate(90deg); }
  .done-grid, .preview-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.6rem; }
  .alert-content { flex-direction: column; text-align: center; }
  .step-top { flex-direction: column; align-items: flex-start; }
  .admin-step-header { flex-direction: column; align-items: flex-start; }
  .phase-btns { flex-direction: column; }
  .status-btns { flex-direction: column; width: 100%; }
  .status-btn { justify-content: center; }
}
