/* ==========================================================
   Under Construction & Countdown Timer Style
   Tema: Futuristic Dark Glassmorphism & Cyber Neon Glow
   ========================================================== */

:root {
  --bg-primary: #070a14;
  --bg-secondary: #0d1427;
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(99, 102, 241, 0.25);
  --card-border-hover: rgba(0, 240, 255, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --neon-cyan: #00f0ff;
  --neon-indigo: #6366f1;
  --neon-purple: #a855f7;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;

  --glow-cyan: rgba(0, 240, 255, 0.35);
  --glow-indigo: rgba(99, 102, 241, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.3);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Glowing Ambient Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.15) 70%, transparent 100%);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  top: 35%;
  left: 45%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Subtle Cyber Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Page Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* Header Section */
.header-section {
  text-align: center;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(12px);
}

.pulse-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.ping-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.core-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.version-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.main-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.highlight-time {
  color: var(--neon-cyan);
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Core Grid: Visual Card & Countdown */
.core-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 960px) {
  .core-grid {
    grid-template-columns: 1fr;
  }
}

/* Visual Card */
.visual-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.visual-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.illustration-wrapper {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.maintenance-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.visual-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulseLive 1.5s infinite;
}

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

/* SVG Animations */
.spin-slow {
  transform-origin: 250px 340px;
  animation: spinSlow 30s linear infinite;
}

.spin-reverse {
  transform-origin: 250px 157px;
  animation: spinSlow 8s linear infinite reverse;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.float-anim-1 {
  animation: floating 4.5s ease-in-out infinite;
}

.float-anim-2 {
  animation: floating 5.5s ease-in-out infinite 0.5s;
}

.float-anim-3 {
  animation: floating 4.8s ease-in-out infinite 1s;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-drone {
  animation: droneFloat 3.8s ease-in-out infinite;
}

@keyframes droneFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 8px); }
}

.beam-scan {
  animation: beamScan 2.5s ease-in-out infinite alternate;
  transform-origin: 370px 105px;
}

@keyframes beamScan {
  0% { opacity: 0.2; transform: scaleX(0.85); }
  100% { opacity: 0.55; transform: scaleX(1.15); }
}

.scanline {
  animation: scanDown 3.2s ease-in-out infinite alternate;
}

@keyframes scanDown {
  0% { transform: translateY(-60px); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateY(80px); opacity: 0.2; }
}

.led-blink {
  animation: ledBlink 1.4s infinite alternate;
}

@keyframes ledBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.pulse-scale {
  animation: pulseScale 2s infinite ease-in-out;
  transform-origin: 250px 157px;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Countdown Card */
.countdown-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.timer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
}

.target-badge {
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* Timer Grid */
.timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 580px) {
  .timer-grid {
    gap: 8px;
  }
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.time-box {
  position: relative;
  width: 100%;
  min-height: 96px;
  background: linear-gradient(180deg, #131d36 0%, #0a1122 100%);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.time-box:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
}

.digit {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  z-index: 2;
  position: relative;
}

.digit-glow {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--neon-cyan);
  filter: blur(12px);
  opacity: 0.6;
  z-index: 1;
}

.ms-box {
  border-color: rgba(168, 85, 247, 0.3);
}

.ms-box .digit {
  color: #e9d5ff;
}

.time-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.time-colon {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-top: -24px;
  opacity: 0.7;
  animation: colonPulse 1s infinite alternate;
}

@keyframes colonPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.9; }
}

/* Progress Section */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.progress-title {
  color: var(--text-muted);
}

.progress-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-cyan);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #6366f1 50%, #a855f7 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--glow-cyan);
  transition: width 0.5s ease-out;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

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

/* Finished State Banner */
.finished-state {
  text-align: center;
  padding: 24px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.finished-icon {
  font-size: 2.5rem;
}

.finished-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #34d399;
}

.finished-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #10b981;
  color: #064e3b;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-launch:hover {
  background: #34d399;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
  transform: scale(1.03);
}

/* Subscription Form */
.notify-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

@media (max-width: 580px) {
  .notify-form {
    flex-direction: column;
  }
}

.input-group {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.mail-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.notify-form input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.notify-form input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.notify-form input::placeholder {
  color: var(--text-dim);
}

.btn-notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #00f0ff 0%, #6366f1 100%);
  color: #040d1a;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px -6px rgba(0, 240, 255, 0.4);
}

.btn-notify:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(0, 240, 255, 0.6);
  filter: brightness(1.1);
}

.btn-notify:active {
  transform: translateY(0);
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
}

/* Diagnostics Grid */
.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 900px) {
  .diagnostics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }
}

.diag-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.diag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
}

.diag-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
}

.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--neon-purple);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--neon-emerald);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--neon-amber);
}

.diag-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.diag-title {
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diag-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-green, .status-indicator-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-green {
  background: var(--neon-emerald);
  box-shadow: 0 0 6px var(--neon-emerald);
}

.status-indicator-amber {
  background: var(--neon-amber);
  box-shadow: 0 0 6px var(--neon-amber);
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions Bar */
.actions-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-time {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer-time strong {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(12px);
  animation: toastSlideIn 0.3s ease-out forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.hide {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}
