/* Modern Speed Test CSS */

:root {
  --primary-bg: #1a1b2e;
  --secondary-bg: #16213e;
  --card-bg: #252a4a;
  --accent-blue: #4a90e2;
  --accent-dark-blue: #314755;
  --accent-light-blue: #26a0da;
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --border-color: #2a2f4f;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
}

/* Reset and override existing styles */
.non-captive {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%) !important;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.non-captive * {
  box-sizing: border-box;
}

/* Modern Container */
.modern-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Roboto', sans-serif;
  color: var(--text-primary);
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.server-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.server-info:hover {
  background: rgba(255, 255, 255, 0.2);
}

.server-info.hidden {
  display: none;
}

.close-btn {
  margin-left: 10px;
  font-weight: bold;
}

.main-title {
  margin: 30px 0;
}

.title-main {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-dark-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-sub {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(45deg, var(--accent-dark-blue), var(--accent-light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: -5px;
}

@keyframes titleGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* Top Ad Container */
.top-ad-container {
  text-align: center;
  margin-bottom: 30px;
}

.top-ad-container iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Speed Test Section */
.speed-test-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Gauge Container */
.gauge-container {
  position: relative;
  width: 400px;
  height: 320px;
  margin: 20px 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Background Particles */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.8), transparent);
  border-radius: 50%;
  opacity: 0;
}

.speed-gauge {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-track {
  stroke-dasharray: 330;
  stroke-dashoffset: 0;
}

.gauge-progress {
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-glow {
  animation: gaugeGlow 2s ease-in-out infinite alternate;
}

@keyframes gaugeGlow {
  0% { opacity: 0; r: 85; }
  100% { opacity: 0.3; r: 90; }
}

/* Speed Needle Animation */
.speed-needle {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 100px 100px;
}

/* Data Particles Animation */
.data-particles {
  opacity: 0;
}

.data-particles.active {
  opacity: 1;
}

/* Speed Markers */
.marker-text {
  font-size: 12px;
  font-weight: 700;
  fill: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.marker-group circle {
  transition: all 0.3s ease;
  stroke: var(--accent-blue);
  stroke-width: 1;
}

.marker-group.active circle {
  opacity: 1 !important;
  r: 5;
  fill: var(--accent-blue);
  stroke: var(--text-primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--accent-blue));
}

.marker-group.active .marker-text {
  fill: var(--accent-blue);
  font-size: 13px;
  filter: drop-shadow(0 0 4px var(--accent-blue));
}

/* Gauge Center */
.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GO Button */
.go-button {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
  animation: goButtonPulse 2s ease-in-out infinite;
  border: none;
  outline: none;
  overflow: visible;
}

.go-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.5);
}

.go-button:active {
  transform: scale(0.95);
}

.go-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.go-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.go-ring-1, .go-ring-2 {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-dark-blue), var(--accent-light-blue), var(--accent-blue));
  background-clip: border-box;
  opacity: 0.6;
}

.go-ring-1 {
  width: 130px;
  height: 130px;
  animation: ringRotate 3s linear infinite;
}

.go-ring-2 {
  width: 150px;
  height: 150px;
  animation: ringRotate 4s linear infinite reverse;
  opacity: 0.3;
}

@keyframes goButtonPulse {
  0%, 100% { 
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.6);
    transform: scale(1.02);
  }
}

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

/* Speed Display (Hidden by default) */
.speed-display {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: speedDisplayFadeIn 0.5s ease-out;
}

.speed-display.hidden {
  display: none;
}

.current-speed {
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

#current-speed-value {
  font-size: 2rem;
  font-weight: 300;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-dark-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: speedValueGlow 1s ease-in-out infinite alternate;
  line-height: 1;
  transition: all 0.3s ease;
}

.speed-decimal {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0.7;
}

.speed-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.progress-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.3;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.progress-dots .dot:nth-child(2) {
  animation-delay: 0.5s;
}

.progress-dots .dot:nth-child(3) {
  animation-delay: 1s;
}

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

@keyframes speedDisplayFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes speedValueGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

@keyframes phaseFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Progress Indicator */
.progress-indicator {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.progress-indicator.active {
  opacity: 1;
}

.progress-line {
  transition: all 0.3s ease;
}

/* Interactive Speed Game */
.speed-game {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  z-index: 10;
  text-align: center;
}

.speed-game.hidden {
  display: none;
}

.game-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0.9;
}

.game-area {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1), transparent);
  overflow: hidden;
}

.connection-orb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--accent-blue), var(--accent-dark-blue));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
}

.connection-orb:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
}

.signal-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.wave {
  position: absolute;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  opacity: 0;
  animation: waveExpand 2s ease-out infinite;
}

.wave-1 {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.wave-2 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.7s;
}

.wave-3 {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.4s;
}

@keyframes waveExpand {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.game-score {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#signal-strength {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Cursor Trail Effect */
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--accent-blue), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Global Cursor Effects */
body.testing-mode {
  cursor: none;
}

body.testing-mode .gauge-container {
  cursor: crosshair;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-blue);
}

.result-icon {
  margin-bottom: 8px;
}

.result-icon i {
  font-size: 1.2rem;
  color: var(--accent-blue);
}

.result-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.result-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.result-value .unit {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-left: 3px;
}

/* Quality Section */
.quality-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
}

.quality-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-align: center;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quality-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.quality-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.quality-icon {
  margin-bottom: 6px;
}

.quality-icon i {
  font-size: 1rem;
  color: var(--accent-blue);
}

.quality-info {
  text-align: center;
}

.quality-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.quality-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success-color);
}

/* IP Check Button */
.ip-check-section {
  width: 100%;
  max-width: 350px;
}

.ip-check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--accent-dark-blue), var(--accent-light-blue));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(123, 104, 238, 0.3);
}

.ip-check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(123, 104, 238, 0.4);
  text-decoration: none;
  color: white;
}

/* Info and Ads Section */
.info-ads-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info Panel */
.info-panel {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.info-panel h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-align: center;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

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

.info-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-value i {
  font-size: 0.8rem;
  color: var(--accent-blue);
}

/* Ads Container */
.ads-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Ad Banners */
.ad-banner {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ad-banner:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.ad-banner iframe {
  border-radius: 6px;
  max-width: 100%;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.chart-container {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.chart-container h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.chart-placeholder {
  height: 100px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.chart-placeholder canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Animations for Test States */
.testing-animation {
  animation: testingPulse 1s ease-in-out infinite alternate;
}

@keyframes testingPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* Test Progress Section */
.test-progress-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.test-progress-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

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

.phase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.phase-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 3px solid var(--border-color);
  background: var(--card-bg);
}

.phase-icon i {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.phase-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.phase-status {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.phase-connector {
  flex: 1;
  height: 3px;
  background: var(--border-color);
  margin: 0 10px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  top: -25px;
}

/* Phase States */
.phase-item.pending .phase-icon {
  border-color: var(--border-color);
  background: var(--card-bg);
}

.phase-item.pending .phase-icon i {
  color: var(--text-secondary);
}

.phase-item.pending .phase-status {
  color: var(--text-secondary);
}

.phase-item.running .phase-icon {
  border-color: var(--warning-color);
  background: rgba(255, 193, 7, 0.1);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  animation: phaseRunning 1.5s ease-in-out infinite;
}

.phase-item.running .phase-icon i {
  color: var(--warning-color);
}

.phase-item.running .phase-label {
  color: var(--warning-color);
}

.phase-item.running .phase-status {
  color: var(--warning-color);
}

.phase-item.completed .phase-icon {
  border-color: var(--success-color);
  background: rgba(40, 167, 69, 0.1);
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.phase-item.completed .phase-icon i {
  color: var(--success-color);
}

.phase-item.completed .phase-label {
  color: var(--success-color);
}

.phase-item.completed .phase-status {
  color: var(--success-color);
}

/* Connector States */
.phase-connector.completed {
  background: linear-gradient(90deg, var(--success-color), var(--success-color));
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.phase-connector.running {
  background: linear-gradient(90deg, var(--success-color), var(--warning-color));
  animation: connectorProgress 2s ease-in-out infinite;
}

/* Animations */
@keyframes phaseRunning {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5);
  }
}

@keyframes connectorProgress {
  0% {
    background: linear-gradient(90deg, var(--success-color), var(--border-color));
  }
  50% {
    background: linear-gradient(90deg, var(--success-color), var(--warning-color));
  }
  100% {
    background: linear-gradient(90deg, var(--success-color), var(--border-color));
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .info-ads-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .modern-container {
    padding: 15px;
  }
  
  .title-main {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .title-sub {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }
  
  .gauge-container {
    width: 280px;
    height: 280px;
  }
  
  .go-button {
    width: 80px;
    height: 80px;
  }
  
  .go-text {
    font-size: 1.5rem;
  }
  
  #current-speed-value {
    font-size: 2.2rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .info-ads-section {
    grid-template-columns: 1fr;
  }
  
  /* Progress indicator mobile styles */
  .test-progress-section {
    padding: 15px;
  }
  
  .phase-icon {
    width: 40px;
    height: 40px;
  }
  
  .phase-icon i {
    font-size: 1rem;
  }
  
  .phase-label {
    font-size: 0.7rem;
  }
  
  .phase-status {
    font-size: 0.6rem;
  }
  
  .phase-connector {
    margin: 0 5px;
    top: -20px;
  }
}

@media (max-width: 480px) {
  .gauge-container {
    width: 250px;
    height: 250px;
  }
  
  .go-button {
    width: 70px;
    height: 70px;
  }
  
  .go-text {
    font-size: 1.2rem;
  }
  
  #current-speed-value {
    font-size: 1.8rem;
  }
  
  .title-main {
    font-size: 2rem;
  }
  
  .title-sub {
    font-size: 1.2rem;
  }
  
  /* Progress indicator very small screen styles */
  .test-progress-section {
    padding: 12px;
  }
  
  .test-progress-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .phase-icon {
    width: 35px;
    height: 35px;
  }
  
  .phase-icon i {
    font-size: 0.9rem;
  }
  
  .phase-label {
    font-size: 0.65rem;
  }
  
  .phase-status {
    font-size: 0.55rem;
  }
  
  .phase-connector {
    margin: 0 3px;
    height: 2px;
    top: -18px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.fade-out {
  animation: fadeOut 0.5s ease-out;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* Captive window styles */
.captive {
  display: none;
}

.non-captive {
  display: block;
}

.inline-ads {
  display: inline-block;
}

@media screen and (max-height: 70px) {
  .captive {
    display: block;
    overflow-y: hidden;
    overflow-y: -moz-hidden-unscrollable;
  }

  .non-captive {
    display: none;
  }
} 