/* ==========================================================================
   andikBSD 403 Forbidden Access Page Stylesheet
   Theme: FreeBSD / NOC Console / Horror Wind & Broken Fluorescent Lamp
   Architecture: Ultra-Responsive (Desktop, Tablet, Foldable, Mobile, iPhone SE)
   Cross-Browser Compatibility: Safari, Chrome, Firefox, Edge, Samsung Internet
   ========================================================================== */

:root {
  --bg-base: #04060a;
  --bg-card: rgba(10, 15, 26, 0.94);
  --border-card: rgba(56, 189, 248, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.07);
  
  --cyan-core: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.25);
  --cyan-dim: rgba(56, 189, 248, 0.08);
  
  --red-alert: #f43f5e;
  --red-glow: rgba(244, 63, 94, 0.35);
  --red-dim: rgba(244, 63, 94, 0.14);
  
  --amber-warn: #fbbf24;
  
  --text-head: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   RESET & SYSTEM NORMALIZE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--bg-base);
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(14, 165, 233, 0.07), transparent 70%),
    linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.5;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 4vw, 1.5rem);
  padding-top: max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-bottom));
  padding-left: max(clamp(0.75rem, 4vw, 1.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(0.75rem, 4vw, 1.5rem), env(safe-area-inset-right));
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ==========================================================================
   HORROR ATMOSPHERE: HEAVY VIGNETTE & CREEPY SHADOWS
   ========================================================================== */
.horror-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at 50% 45%, transparent 28%, rgba(2, 4, 8, 0.65) 65%, rgba(1, 2, 5, 0.96) 100%);
  animation: vignetteBreath 9s ease-in-out infinite alternate;
}

@keyframes vignetteBreath {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.9;
    transform: scale(0.99);
  }
}

/* ==========================================================================
   WIND & MIST IN EMPTY HAUNTED ROOM (Angin Ruangan Kosong)
   ========================================================================== */
.wind-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.fog-stream-1 {
  position: absolute;
  width: 250%;
  height: 120%;
  top: -10%;
  left: -100%;
  background: 
    radial-gradient(ellipse 55% 25% at 35% 55%, rgba(56, 189, 248, 0.07), transparent 60%),
    radial-gradient(ellipse 45% 20% at 70% 40%, rgba(125, 211, 252, 0.05), transparent 55%);
  filter: blur(30px);
  -webkit-filter: blur(30px);
  animation: windDrift1 16s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.fog-stream-2 {
  position: absolute;
  width: 260%;
  height: 100%;
  bottom: -15%;
  left: -80%;
  background: 
    radial-gradient(ellipse 65% 28% at 60% 75%, rgba(30, 58, 138, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 18% at 25% 85%, rgba(56, 189, 248, 0.06), transparent 60%);
  filter: blur(38px);
  -webkit-filter: blur(38px);
  animation: windDrift2 22s ease-in-out infinite alternate;
}

.wind-whisps {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      -6deg,
      transparent,
      transparent 70px,
      rgba(56, 189, 248, 0.02) 71px,
      transparent 74px,
      transparent 160px,
      rgba(241, 245, 249, 0.015) 161px,
      transparent 163px
    );
  opacity: 0.7;
  animation: windGust 7s linear infinite;
  mix-blend-mode: screen;
}

@keyframes windDrift1 {
  0% {
    transform: translate3d(0, 0, 0) scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(40%, -4%, 0) scaleY(1.15);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(80%, 3%, 0) scaleY(0.95);
    opacity: 0.35;
  }
}

@keyframes windDrift2 {
  0% {
    transform: translate3d(60%, 0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate3d(15%, -6%, 0) scale(1.1);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(-30%, 4%, 0) scale(0.95);
    opacity: 0.25;
  }
}

@keyframes windGust {
  0% {
    transform: translateX(-150px) skewX(-4deg);
    opacity: 0.2;
  }
  40% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(150px) skewX(4deg);
    opacity: 0.2;
  }
}

/* ==========================================================================
   FAILING FLUORESCENT LAMP EFFECT (Mati-Hidup Horror)
   ========================================================================== */
.light-tube {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 86vw);
  height: 4px;
  background: rgba(224, 242, 254, 0.98);
  box-shadow: 
    0 0 20px 4px rgba(56, 189, 248, 0.85),
    0 0 50px 14px rgba(56, 189, 248, 0.45);
  border-radius: 0 0 6px 6px;
  z-index: 4;
  pointer-events: none;
  animation: horrorLampTube 6.8s infinite;
}

.ambient-flicker {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 0%, rgba(14, 165, 233, 0.18), transparent 72%);
  pointer-events: none;
  z-index: 1;
  animation: horrorLampAmbient 6.8s infinite;
}

@keyframes horrorLampTube {
  0%, 100% { opacity: 0.95; filter: brightness(1); }
  12%      { opacity: 0.95; }
  12.5%    { opacity: 0.05; filter: brightness(0.2); }
  13%      { opacity: 0.90; filter: brightness(1.2); }
  13.4%    { opacity: 0.02; filter: brightness(0.1); }
  13.9%    { opacity: 0.95; filter: brightness(1); }
  14.3%    { opacity: 0.10; }
  15%      { opacity: 0.92; }
  38%      { opacity: 0.92; }
  38.4%    { opacity: 0.20; }
  39%      { opacity: 0.88; }
  56%      { opacity: 0.88; }
  56.4%    { opacity: 0.0;  filter: brightness(0.1); }
  56.8%    { opacity: 0.70; }
  57.2%    { opacity: 0.0; }
  57.7%    { opacity: 0.85; filter: brightness(1.3); }
  58.2%    { opacity: 0.05; }
  59%      { opacity: 0.95; }
  78%      { opacity: 0.95; }
  78.3%    { opacity: 0.02; filter: brightness(0.1); }
  78.8%    { opacity: 0.02; }
  79.3%    { opacity: 0.65; }
  79.7%    { opacity: 0.05; }
  80.2%    { opacity: 0.95; filter: brightness(1); }
  80.6%    { opacity: 0.30; }
  81.1%    { opacity: 0.92; }
}

@keyframes horrorLampAmbient {
  0%, 100% { opacity: 0.92; }
  12%      { opacity: 0.92; }
  12.5%    { opacity: 0.04; }
  13%      { opacity: 0.85; }
  13.4%    { opacity: 0.01; }
  13.9%    { opacity: 0.90; }
  14.3%    { opacity: 0.08; }
  15%      { opacity: 0.90; }
  38%      { opacity: 0.90; }
  38.4%    { opacity: 0.25; }
  39%      { opacity: 0.85; }
  56%      { opacity: 0.85; }
  56.4%    { opacity: 0.0;  }
  56.8%    { opacity: 0.60; }
  57.2%    { opacity: 0.0;  }
  57.7%    { opacity: 0.80; }
  58.2%    { opacity: 0.04; }
  59%      { opacity: 0.90; }
  78%      { opacity: 0.90; }
  78.3%    { opacity: 0.01; }
  78.8%    { opacity: 0.01; }
  79.3%    { opacity: 0.55; }
  79.7%    { opacity: 0.04; }
  80.2%    { opacity: 0.92; }
  80.6%    { opacity: 0.25; }
  81.1%    { opacity: 0.90; }
}

/* ==========================================================================
   LOADING OVERLAY: "LU SIAPA KIMANK"
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: #040509;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-mono);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-terminal {
  width: 100%;
  max-width: 480px;
  background: #080c16;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: clamp(0.9rem, 3vw, 1.25rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 30px var(--cyan-glow);
}

.loader-bar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: clamp(0.68rem, 2.5vw, 0.75rem);
  color: var(--cyan-core);
}

.loader-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.loader-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  word-break: break-word;
}

.log-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  animation: logStep 0.2s forwards;
}

.log-line:nth-child(1) { animation-delay: 0.1s; }
.log-line:nth-child(2) { animation-delay: 0.4s; }
.log-line:nth-child(3) { animation-delay: 0.8s; }
.log-line:nth-child(4) { animation-delay: 1.2s; }

@keyframes logStep {
  to { opacity: 1; }
}

.log-tag {
  color: var(--text-dim);
  flex-shrink: 0;
}

.log-cyan {
  color: var(--cyan-core);
}

.log-warn {
  color: var(--amber-warn);
}

.log-meme {
  color: var(--red-alert);
  font-weight: 800;
  font-size: clamp(0.85rem, 3vw, 0.98rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px var(--red-glow);
}

.loader-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-core), var(--red-alert));
  animation: fillBar 1.6s ease forwards;
}

@keyframes fillBar {
  0% { width: 0%; }
  50% { width: 65%; }
  85% { width: 85%; }
  100% { width: 100%; }
}

/* ==========================================================================
   MAIN CARD (Fluid Auto-Stretch & Responsive Chassis)
   ========================================================================== */
.main-card {
  width: 100%;
  max-width: 590px;
  margin: auto 0; /* Ensures flawless centering on desktop while allowing vertical scroll on short mobile screens */
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 35px -5px var(--cyan-glow);
  overflow: hidden;
  animation: cardAppear 0.45s cubic-bezier(0.16, 1, 0.3, 1), cardLampReaction 6.8s infinite;
  position: relative;
  z-index: 10;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardLampReaction {
  0%, 100% { border-color: rgba(56, 189, 248, 0.20); }
  12.5%    { border-color: rgba(56, 189, 248, 0.06); }
  13%      { border-color: rgba(56, 189, 248, 0.25); }
  13.4%    { border-color: rgba(56, 189, 248, 0.04); }
  56.4%    { border-color: rgba(56, 189, 248, 0.03); }
  57.7%    { border-color: rgba(56, 189, 248, 0.28); }
  78.3%    { border-color: rgba(56, 189, 248, 0.03); }
  80.2%    { border-color: rgba(56, 189, 248, 0.20); }
}

/* Terminal Top Bar */
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070b14;
  padding: 0.65rem clamp(0.75rem, 2.5vw, 1rem);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2.2vw, 0.75rem);
  letter-spacing: 0.02em;
}

.terminal-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.terminal-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
}

.dot.active {
  background: var(--red-alert);
  box-shadow: 0 0 6px var(--red-glow);
}

.freebsd-mini-logo {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.terminal-title {
  color: var(--text-dim);
  font-size: clamp(0.65rem, 2.2vw, 0.72rem);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-title .brand {
  color: var(--cyan-core);
  font-weight: 600;
}

/* Card Interior */
.card-body {
  padding: clamp(1.35rem, 4vw, 2.25rem) clamp(1rem, 3.5vw, 2rem);
  text-align: center;
}

/* Status Indicator Badge */
.status-badge-container {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-dim);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem clamp(0.65rem, 2vw, 0.85rem);
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-alert);
  box-shadow: 0 0 8px var(--red-alert);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--red-alert);
  animation: pulseSubtle 2.8s ease-out infinite;
}

@keyframes pulseSubtle {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}

/* 403 & ACCESS DENIED Hero */
.hero-section {
  margin-bottom: 1.15rem;
}

.hero-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 20px -5px var(--red-glow);
  margin-bottom: 0.5rem;
}

.hero-emblem img {
  width: clamp(26px, 6vw, 32px);
  height: clamp(26px, 6vw, 32px);
}

.code-display {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 14vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-head);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  margin-bottom: 0.2rem;
}

.status-http {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  color: var(--cyan-core);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.denied-banner {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 3.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: clamp(0.12em, 1.5vw, 0.22em);
  color: var(--text-head);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  word-break: break-word;
}

/* Meme Tag Callout */
.meme-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2.2vw, 0.75rem);
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed rgba(244, 63, 94, 0.35);
  color: #fda4af;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.15rem;
  max-width: 100%;
}

.meme-callout strong {
  color: var(--red-alert);
  letter-spacing: 0.04em;
}

/* Messages */
.alert-lead {
  color: var(--text-head);
  font-size: clamp(0.98rem, 3.5vw, 1.15rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-container {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: clamp(0.85rem, 2.8vw, 1.25rem);
  margin-bottom: 1.15rem;
  text-align: left;
  font-size: clamp(0.82rem, 2.4vw, 0.9rem);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-container p {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.message-container p::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-core);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Visitor Counter: "Jumlah Hamba Tersesat" */
.counter-card {
  background: #070b14;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: clamp(0.75rem, 2.5vw, 0.95rem) clamp(0.85rem, 2.8vw, 1.15rem);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.counter-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.counter-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-title-wrap svg {
  flex-shrink: 0;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 2vw, 0.72rem);
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.counter-desc {
  font-size: clamp(0.66rem, 2vw, 0.72rem);
  color: var(--text-dim);
  line-height: 1.35;
}

.counter-live-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.moe-counter-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 14, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.1);
  flex-shrink: 0;
}

.moe-counter-img {
  height: clamp(34px, 8vw, 42px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  display: block;
}

.counter-badge-stat {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3.8vw, 1.4rem);
  font-weight: 800;
  color: var(--cyan-core);
  text-shadow: 0 0 12px var(--cyan-glow);
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.counter-badge-stat .unit {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Social Links: "Follow Update Saya Cuyy" */
.social-section {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: clamp(0.85rem, 2.8vw, 1.15rem);
  margin-bottom: 1.15rem;
  text-align: left;
}

.social-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.67rem, 2vw, 0.72rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.social-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-core);
  box-shadow: 0 0 6px var(--cyan-core);
  flex-shrink: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 0.5rem;
  background: #080d18;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--text-body);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.75rem);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 38px; /* Accessible mobile touch target */
}

.social-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-btn:hover, .social-btn:active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--cyan-core);
  color: #ffffff;
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: translateY(-2px);
}

/* NOC Telemetry Strip */
.telemetry-strip {
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(0.75rem, 2.5vw, 1rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.telemetry-label {
  color: var(--text-dim);
  font-size: clamp(0.6rem, 1.8vw, 0.65rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telemetry-value {
  color: var(--text-muted);
  font-weight: 500;
  font-size: clamp(0.65rem, 2vw, 0.72rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-value.cyan {
  color: var(--cyan-core);
}

.telemetry-value.red {
  color: var(--red-alert);
}

/* Footer */
.gateway-footer {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  letter-spacing: 0.03em;
}

.gateway-footer svg {
  width: 13px;
  height: 13px;
  stroke: var(--cyan-core);
  opacity: 0.75;
  flex-shrink: 0;
}

/* ==========================================================================
   BREAKPOINTS: TABLET, MOBILE, MINI SCREENS (Auto-Stretch Architecture)
   ========================================================================== */

/* Tablets & Small Desktops (<= 640px) */
@media (max-width: 640px) {
  .main-card {
    max-width: 100%;
    border-radius: 10px;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }
}

/* Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .counter-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .counter-badge-stat {
    align-self: flex-end;
  }
  .telemetry-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* Extra Small Phones (iPhone SE, Galaxy Z Flip cover, <= 340px) */
@media (max-width: 340px) {
  body {
    padding: 0.75rem 0.5rem;
  }
  .card-body {
    padding: 1.15rem 0.75rem;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
  .terminal-title {
    font-size: 0.62rem;
  }
}

/* Short height / Mobile Landscape Mode */
@media (max-height: 580px) and (orientation: landscape) {
  body {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .main-card {
    margin: 1rem auto;
  }
  .hero-section {
    margin-bottom: 0.75rem;
  }
  .code-display {
    font-size: 2.8rem;
  }
}
