/* Color Palette: Cyber Cyan/Violet Gradient, Black, Grey, White */
:root {
  --bg-dark: #050507;
  --panel-bg: rgba(15, 15, 18, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);

  /* Primary Accent: Cyan to Electric Blue Gradient */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-glow: rgba(0, 242, 254, 0.35);
  --accent-dim: rgba(0, 242, 254, 0.12);

  --status-green: #2ecc71;
  --status-green-glow: rgba(46, 204, 113, 0.4);

  --text-white: #ffffff;
  --text-grey-light: #cccccc;
  --text-muted: #777788;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Consolas', 'Segoe UI', monospace;
  cursor: none !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Custom Cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-blue);
  transition: transform 0.05s linear, width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
}

/* Cursor Click Ripple Effect */
.click-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(1);
  animation: rippleAnimation 0.4s ease-out forwards;
}

@keyframes rippleAnimation {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
  }
  100% {
    width: 50px;
    height: 50px;
    opacity: 0;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
  }
}

/* Background */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  background: radial-gradient(circle at 50% 30%, #0d1322 0%, #030305 70%);
  overflow: hidden;
  pointer-events: none;
}

.particle-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 242, 254, 0.25) 1.5px, transparent 1.5px);
  background-size: 50px 50px;
  animation: particleFloat 12s linear infinite;
  opacity: 0.4;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

.bg-horror-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.15) 2px,
    transparent 4px
  );
  animation: staticFlicker 0.15s infinite;
  opacity: 0.5;
}

@keyframes staticFlicker {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

.crt-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.4) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

/* Loader */
#cyber-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#cyber-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-box { text-align: center; }

.loader-hex {
  font-size: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: hexPulse 1s ease-in-out infinite alternate;
}

@keyframes hexPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-cyan)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 20px var(--accent-blue)); }
}

.terminal-text {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.progress-bar {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  animation: fillProgress 1.4s ease-in-out forwards;
}

@keyframes fillProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Nav */
.hud-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.hud-logo small {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-left: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--status-green);
}

.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-dim);
}

.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.hud-status-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--status-green);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pulse-ring {
  position: absolute;
  left: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--status-green);
  border-radius: 50%;
  animation: ringPulse 1.8s infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--status-green-glow); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

.hero-hud {
  text-align: center;
  margin-bottom: 2.5rem;
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-white);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.subtitle {
  color: var(--text-grey-light);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Layout with Side Media (Cat Image) */
.tab-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.tab-main-content {
  width: 100%;
}

.cat-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-image-wrapper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-img {
  transform: scale(1.03);
}

.cat-caption {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card { text-align: center; }

.card-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hud-card {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  overflow: hidden;
}

.hud-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-glow), inset 0 0 15px rgba(0, 242, 254, 0.05);
  transform: translateY(-2px);
}

.card-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-cyan);
}
.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Support Tab Styling */
.support-card {
  text-align: center;
  padding: 3rem 2rem;
}

.support-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.support-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.support-card h2 {
  font-size: 1.6rem;
  letter-spacing: 2px;
}

.support-desc {
  color: var(--text-grey-light);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.support-btn-wrapper {
  display: flex;
  justify-content: center;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: all 0.25s ease;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-cyan);
  color: #000;
}

/* Bottom Status Section */
.bottom-status-section {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.status-column-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.status-col {
  display: flex;
  flex-direction: column;
}

.main-info {
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.beacon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-beacon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 12px var(--status-green);
  z-index: 2;
}

.beacon-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--status-green);
  border-radius: 50%;
  animation: beaconPulse 2s infinite ease-out;
}

@keyframes beaconPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.main-info h3 { font-size: 0.95rem; letter-spacing: 1px; }

.sub-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-col-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.col-title {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ping-number { color: var(--accent-cyan); font-weight: 700; }
.health-percent { color: var(--status-green); font-weight: 700; }

.signal-bar-track, .health-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.signal-bar-fill {
  height: 100%;
  width: 80%;
  background: var(--accent-gradient);
  box-shadow: 0 0 8px var(--accent-cyan);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.health-bar-fill {
  height: 100%;
  width: 99.98%;
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.4), var(--status-green));
  box-shadow: 0 0 8px var(--status-green);
  border-radius: 4px;
}

/* Section Common */
.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-grey-light);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.card-header i { color: var(--accent-cyan); font-size: 1.4rem; }
.card-header h3 { font-size: 1.1rem; letter-spacing: 1px; }

.counter-display {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  margin-bottom: 0.8rem;
}

.counter-display span {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.fill { height: 100%; border-radius: 3px; background: var(--accent-gradient); box-shadow: 0 0 10px var(--accent-cyan); }
.warning-fill { width: 12%; }
.danger-fill { width: 100%; }

.terminal-container {
  background: rgba(12, 12, 15, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transition: border-color 0.25s ease;
}

.terminal-container:hover {
  border-color: var(--accent-cyan);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.cyan { background: var(--accent-cyan); }
.grey { background: #555566; }
.white { background: #ffffff; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.command-grid { display: flex; flex-direction: column; }

.cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.cmd-row:hover {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.8rem;
}

.cmd {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
}

.desc { color: var(--text-grey-light); font-size: 0.85rem; }

footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--panel-border);
  margin-top: 3rem;
  letter-spacing: 1px;
}

.owner-tag {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-left: 4px;
}

@media (max-width: 950px) {
  .tab-layout { grid-template-columns: 1fr; }
  .tab-side-media { display: flex; justify-content: center; }
  .cat-card { max-width: 320px; width: 100%; }
}

@media (max-width: 850px) {
  .status-column-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hud-nav { flex-direction: column; gap: 15px; }
  .hero-title { font-size: 2.5rem; }
  .cmd-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
