html {
  font-size: clamp(13px, calc(9px + 0.3vw + 0.3vh), 22px);
}

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

/* ── TOKENS ── */
:root {
  --gap: 0.6rem;
  --corner: 10px;
  --corner-w: 1.5px;

  --bg: #1e2530;
  --grid-col: rgba(255, 255, 255, 0.045);
  --grid-col2: rgba(255, 255, 255, 0.022);
  --surface: rgba(28, 36, 50, 0.85);
  --surface2: rgba(18, 26, 38, 0.92);

  --text: #bdd0c8;
  --text-dim: #93b0a9;
  --accent: #4ec9a0;
  --accent2: #72e0ba;
  --steel: #7a9eb8;
  --steel-dim: #253545;
}

/* ── MILLIMETER GRID ── */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-col) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-col) 1px, transparent 1px),
    linear-gradient(var(--grid-col2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-col2) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  height: 100vh;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(8, 12, 18, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.header h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.header__badge {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 7px;
  opacity: 0.8;
  animation: live-blink 2s ease-in-out infinite;
}

@keyframes live-blink {

  0%,
  100% {
    background: rgba(78, 201, 160, 0.0);
  }

  50% {
    background: rgba(78, 201, 160, 0.18);
  }
}

.header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--steel-dim), transparent);
}

.header__time {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* ── SOCIAL BUTTONS ── */
.header__socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(78, 201, 160, 0.25);
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-btn svg {
  width: 13px;
  height: 13px;
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(78, 201, 160, 0.08);
}

/* ── GRID ── */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
  grid-auto-rows: 1fr;
}

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

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr 1fr;
  }
}

.block--full {
  grid-column: 1 / -1;
}

.block--span-2 {
  grid-column: span 1;
}

.block--span-3 {
  grid-column: span 1;
}

@media (min-width: 480px) {
  .block--span-2 {
    grid-column: span 2;
  }

  .block--span-3 {
    grid-column: span 2;
  }
}

@media (min-width: 700px) {
  .block--span-3 {
    grid-column: span 3;
  }
}

/* ── BLOCK ── */
.block {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(6px);
  padding: 1rem 1.125rem;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: appear 0.4s ease forwards;
  display: flex;
  flex-direction: column;
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block.delay-1 {
  animation-delay: 0.05s;
}

.block.delay-2 {
  animation-delay: 0.10s;
}

.block.delay-3 {
  animation-delay: 0.15s;
}

.block.delay-4 {
  animation-delay: 0.20s;
}

.block.delay-5 {
  animation-delay: 0.25s;
}

.block.delay-6 {
  animation-delay: 0.30s;
}

.block.delay-7 {
  animation-delay: 0.35s;
}

.block.delay-8 {
  animation-delay: 0.40s;
}

.block.delay-9 {
  animation-delay: 0.45s;
}

.block.delay-10 {
  animation-delay: 0.50s;
}

.block.delay-11 {
  animation-delay: 0.55s;
}

.block.delay-12 {
  animation-delay: 0.60s;
}

.block.delay-13 {
  animation-delay: 0.65s;
}

.block.delay-14 {
  animation-delay: 0.70s;
}

.block.delay-15 {
  animation-delay: 0.75s;
}

.block.delay-16 {
  animation-delay: 0.80s;
}

.block.delay-17 {
  animation-delay: 0.85s;
}

.block.delay-18 {
  animation-delay: 0.90s;
}

.block.delay-19 {
  animation-delay: 0.95s;
}

.block.delay-20 {
  animation-delay: 1.00s;
}

.block--dark {
  background: var(--surface2);
}

.block--accent {
  background: rgba(78, 201, 160, 0.055);
}

/* ── CORNERS ── */
.block::before,
.block::after,
.block .corner-br,
.block .corner-bl {
  content: '';
  position: absolute;
  width: var(--corner);
  height: var(--corner);
  pointer-events: none;
  transition: width 0.35s ease, height 0.35s ease, border-color 0.3s ease;
  z-index: 3;
}

.block::before {
  top: 0;
  left: 0;
  border-top: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
}

.block::after {
  top: 0;
  right: 0;
  border-top: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
}

.block .corner-br {
  bottom: 0;
  right: 0;
  border-bottom: var(--corner-w) solid var(--accent);
  border-right: var(--corner-w) solid var(--accent);
}

.block .corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: var(--corner-w) solid var(--accent);
  border-left: var(--corner-w) solid var(--accent);
}

.block:hover::before,
.block:hover::after,
.block:hover .corner-br,
.block:hover .corner-bl {
  width: 100%;
  height: 100%;
  border-color: var(--accent2);
}

/* ── BLOCK CONTENT ── */
.block__tag {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.block__title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.1vw, 0.84rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.block__num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.block__body {
  font-size: 0.7rem;
  line-height: 1.8;
  color: var(--text-dim);
  list-style: none;
}

.block__body li {
  padding-left: 1em;
  position: relative;
}

.block__body li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

.block__line {
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  margin: 8px 0;
}

.block__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.block__status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.2
  }
}

.block__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 10px;
}

.block__bar {
  flex: 1;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 1px 1px 0 0;
  transition: opacity 0.2s;
}

.block__bar:hover {
  opacity: 1;
}

.block__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
}

.block__stat:last-child {
  border-bottom: none;
}

.block__stat-label {
  color: var(--text-dim);
}

.block__stat-val {
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── VIDEO CYBER BLOCK ── */
.block--video-cyber {
  display: flex;
  flex-direction: column;
  padding: 0;
  /* Flush on all sides for mobile! */
  gap: 1rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .block--video-cyber {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0 1.25rem 0 0;
    /* 0 left padding so video is perfectly flush to left edge! */
  }
}

.cyber-video-wrapper {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16/9;
  background: #0d1218;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(78, 201, 160, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cyber-video-wrapper {
    flex: 0 1 auto;
    /* sizes dynamically based on aspect ratio, can shrink */
    height: 100%;
    max-width: 50%;
    /* safeguard to ensure typewriter text always has at least 50% width */
    aspect-ratio: auto;
    /* disable rigid aspect ratio on desktop */
    border-top: none;
    border-left: none;
    border-bottom: none;
    border-right: 1px solid rgba(78, 201, 160, 0.15);
  }
}

.cyber-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  display: block;
}

@media (min-width: 768px) {
  .cyber-video-wrapper video {
    width: auto;
    /* natural width on desktop based on height */
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }
}

.cyber-video-wrapper:hover video {
  opacity: 1;
}

/* Cyber video HUD overlay */
.cyber-video-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(78, 201, 160, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Blinking record indicator */
.cyber-video-hud::before {
  content: '● REC LOOP';
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #ff3b30;
  font-family: 'Share Tech Mono', monospace;
  animation: rec-blink 1.5s step-end infinite;
  text-shadow: 0 0 4px rgba(255, 59, 48, 0.6);
}

@keyframes rec-blink {
  50% {
    opacity: 0;
  }
}

/* Tech tag bottom-left */
.cyber-video-hud::after {
  content: 'CAM_09 // DRONE_FEED';
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  opacity: 0.8;
  text-shadow: 0 0 4px rgba(78, 201, 160, 0.4);
}

/* Diagonal crosshair overlay in center */
.cyber-video-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.cyber-video-crosshair::before,
.cyber-video-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.cyber-video-crosshair::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

.cyber-video-crosshair::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

/* Scanlines overlay */
.cyber-video-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 1;
  opacity: 0.4;
}

/* ── TYPEWRITER TEXT CONTENT ── */
.cyber-typewriter-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow-y: auto;
  padding: 0 16px 16px 16px;
  /* clean mobile padding (sides + bottom) */
}

@media (min-width: 768px) {
  .cyber-typewriter-wrapper {
    padding: 16px 4px 16px 0;
    /* clean desktop padding */
  }
}

/* Custom scrollbar for typewriter text if it overflows */
.cyber-typewriter-wrapper::-webkit-scrollbar {
  width: 3px;
}

.cyber-typewriter-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.cyber-typewriter-wrapper::-webkit-scrollbar-thumb {
  background: rgba(78, 201, 160, 0.2);
}

.cyber-typewriter-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.cyber-typewriter__p {
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-align: justify;
}

.cyber-typewriter__ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.cyber-typewriter__ul li {
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 10px;
  position: relative;
  padding-left: 14px;
}

.cyber-typewriter__ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.55rem;
  color: var(--accent);
  opacity: 0.75;
  animation: bullet-glow 2s ease-in-out infinite alternate;
}

@keyframes bullet-glow {
  0% {
    text-shadow: 0 0 1px rgba(78, 201, 160, 0.2);
  }

  100% {
    text-shadow: 0 0 6px rgba(78, 201, 160, 0.8);
  }
}

.cyber-typewriter__title {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Orbitron', sans-serif;
  margin-right: 4px;
}

.cyber-typewriter__desc {
  color: var(--text-dim);
}

/* Blinking terminal cursor */
.cyber-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background-color: var(--accent);
  color: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursor-blink 0.8s steps(2, start) infinite;
  box-shadow: 0 0 4px var(--accent);
}

@keyframes cursor-blink {
  to {
    opacity: 0;
  }
}

/* ── MONOBANK JAR BLOCK ── */
.block--jar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.jar-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 8px;
}

.jar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

.jar-tag {
  color: var(--accent);
  opacity: 0.8;
}

.jar-status {
  color: #ffcc00;
  text-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
}

.jar-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.jar-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(78, 201, 160, 0.25);
  margin-top: 0;
  display: inline-flex;
  align-items: center;
}

.jar-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffcc00;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  filter: drop-shadow(0 0 4px rgba(255, 204, 0, 0.65));
  animation: jar-alert-blink 0.9s steps(2, start) infinite;
}

.jar-alert-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes jar-alert-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

.jar-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.jar-social-icon-btn {
  color: var(--text);
  opacity: 0.6;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jar-social-icon-btn:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.1);
}

.jar-social-icon-btn svg {
  width: 100%;
  height: 100%;
}

.jar-progress-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(78, 201, 160, 0.1);
  height: 8px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.jar-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px var(--accent);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.jar-stats {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.65fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.jar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jar-stat-label {
  font-size: 0.6rem;
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.05em;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 2px;
}

.jar-stat-val {
  font-size: 0.8rem;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
}

.font-accent {
  color: var(--accent2);
}

.font-bright {
  color: var(--accent);
  text-shadow: 0 0 4px rgba(78, 201, 160, 0.3);
}

.jar-payment-info {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.jar-card-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-label {
  font-size: 0.65rem;
  color: var(--text);
  opacity: 0.8;
  font-family: 'Share Tech Mono', monospace;
}

.card-number-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(78, 201, 160, 0.15);
  padding: 5px 8px;
  gap: 6px;
  min-width: 0;
}

.card-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.copy-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  opacity: 1;
  color: var(--accent);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.jar-qr-box {
  flex: 0 0 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(78, 201, 160, 0.15);
  padding: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.qr-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.jar-qr-code {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(88%) sepia(21%) saturate(1000%) hue-rotate(110deg) brightness(95%) contrast(90%);
  /* Cyber green tinted QR code! */
  transition: transform 0.3s ease;
}

.jar-qr-box:hover .jar-qr-code {
  transform: scale(1.05);
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  /* Turns bright white on hover! */
}

.qr-hover-text {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 24, 0.9);
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.42rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  letter-spacing: 0.05em;
}

.jar-qr-box:hover .qr-hover-text {
  opacity: 1;
}

/* ── VACANCY BLOCK ── */
.block--vacancy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem 1.125rem 0 1.125rem !important;
  /* Force flush bottom! */
}

.vacancy-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.vacancy-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px 4px 0 4px;
  margin-bottom: 12px;
}

/* Cyber thin scrollbar for vacancy block */
.vacancy-content::-webkit-scrollbar {
  width: 4px;
}

.vacancy-content::-webkit-scrollbar-track {
  background: rgba(13, 18, 24, 0.5);
}

.vacancy-content::-webkit-scrollbar-thumb {
  background: rgba(78, 201, 160, 0.3);
  border-radius: 2px;
}

.vacancy-content::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 201, 160, 0.6);
}

.vacancy-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  gap: 12px;
}

.vacancy-action {
  margin-top: auto;
  flex-shrink: 0;
  margin-left: -1.125rem;
  /* Stretch flush to the left card edge! */
  margin-right: -1.125rem;
  /* Stretch flush to the right card edge! */
  margin-bottom: 0;
}

.vacancy-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.vacancy-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.vacancy-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}

.vacancy-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.vacancy-reqs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vacancy-reqs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text);
}

.req-marker {
  color: var(--accent);
  font-size: 0.7rem;
}

.vacancy-apply-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  /* Adjusted padding! */
  background: rgba(78, 201, 160, 0.06);
  border-width: 1px 0 0 0;
  /* Top border only, no sides/bottom! */
  border-style: solid;
  border-color: rgba(78, 201, 160, 0.3);
  color: var(--accent);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  margin-top: auto;
}

.vacancy-apply-btn:hover {
  background: rgba(78, 201, 160, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(78, 201, 160, 0.3);
  text-shadow: 0 0 4px var(--accent);
}

/* Sci-fi corners for the button */
.btn-corner {
  position: absolute;
  width: 4px;
  height: 4px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.vacancy-apply-btn:hover .btn-corner {
  opacity: 1;
}

.btn-corner.top-left {
  top: -1px;
  left: 0;
  border-width: 1px 0 0 1px;
}

.btn-corner.top-right {
  top: -1px;
  right: 0;
  border-width: 1px 1px 0 0;
}

.btn-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.btn-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

/* ── MODAL WINDOW SYSTEM ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 9, 13, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: var(--surface2);
  border: 1px solid rgba(78, 201, 160, 0.25);
  box-shadow: 0 0 30px rgba(78, 201, 160, 0.1);
  width: 95%;
  max-width: 480px;
  padding: 24px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal__title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(78, 201, 160, 0.2);
}

.modal__close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal__close-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.modal__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 201, 160, 0.5) 0%, rgba(78, 201, 160, 0.0) 100%);
  margin-bottom: 20px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(13, 18, 24, 0.8);
  border: 1px solid rgba(78, 201, 160, 0.2);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  padding: 8px 12px;
  outline: none;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(78, 201, 160, 0.2);
  background: rgba(13, 18, 24, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
}

.modal__submit-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: rgba(78, 201, 160, 0.08);
  border: 1px solid rgba(78, 201, 160, 0.4);
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.modal__submit-btn:hover {
  background: rgba(78, 201, 160, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(78, 201, 160, 0.3);
  text-shadow: 0 0 4px var(--accent);
}

/* ── FACEBOOK TACTICAL FEED ── */
.block--facebook {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fb-feed-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.fb-feed-header {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.fb-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.fb-posts-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
  position: relative;
  min-height: 0;
}

.fb-iframe-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(78, 201, 160, 0.15);
  background: #0d1218;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Magical CSS filter to convert standard light-mode iframe into gorgeous army-green dark-mode HUD! */
  filter: invert(0.9) hue-rotate(130deg) saturate(2) brightness(0.8) contrast(1.25);
}

.fb-feed-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.fb-tab-btn {
  background: rgba(13, 18, 24, 0.6);
  border: 1px solid rgba(78, 201, 160, 0.2);
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.fb-tab-btn:hover,
.fb-tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(78, 201, 160, 0.08);
  box-shadow: 0 0 8px rgba(78, 201, 160, 0.15);
}

.block--instagram {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── DYNAMIC HUD FACEBOOK POSTS STYLING ── */
.fb-feed-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
}

.fb-posts-container.dynamic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  width: 100%;
  flex-grow: 1;
  min-height: 0;
}

@media (max-width: 768px) {
  .fb-posts-container.dynamic-grid {
    grid-template-columns: 1fr;
  }
}

.fb-post {
  background: rgba(13, 18, 24, 0.5);
  border: 1px solid rgba(78, 201, 160, 0.15);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.fb-post:hover {
  border-color: var(--accent);
  background: rgba(78, 201, 160, 0.04);
  box-shadow: 0 0 12px rgba(78, 201, 160, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.fb-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(78, 201, 160, 0.2);
  padding-bottom: 4px;
}

.fb-post-date {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(78, 201, 160, 0.4);
}

.fb-post-source {
  color: var(--text-muted);
  opacity: 0.8;
}

.fb-post-body {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  padding-right: 6px;
  text-align: left;
}

/* Dynamic scrollbar styling for terminal readability */
.fb-post-body::-webkit-scrollbar {
  width: 4px;
}

.fb-post-body::-webkit-scrollbar-thumb {
  background: rgba(78, 201, 160, 0.25);
  border-radius: 2px;
}

.fb-post-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.fb-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(78, 201, 160, 0.2);
}

.fb-post-stats {
  display: flex;
  gap: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fb-post-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.fb-post-link:hover {
  color: #fff;
  text-shadow: 0 0 6px var(--accent);
}

/* Animated Cyber Loader */
.cyber-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-shadow: 0 0 8px rgba(78, 201, 160, 0.3);
  animation: cyber-pulse-load 1.6s ease-in-out infinite;
}

@keyframes cyber-pulse-load {

  0%,
  100% {
    opacity: 0.4;
    text-shadow: 0 0 4px rgba(78, 201, 160, 0.2);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(78, 201, 160, 0.6);
  }
}

.fb-posts-container.dynamic-grid.insta-grid {
  grid-template-columns: 1fr;
}

/* ── MOBILE RESPONSIVENESS FIX ── */
@media (max-width: 899px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .grid {
    flex: none;
    min-height: min-content;
    grid-auto-rows: auto;
  }

  .block {
    min-height: auto;
  }

  .block--video-cyber {
    height: 320px;
  }

  .cyber-video-wrapper video {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 500px) {
  .header {
    gap: 8px;
  }

  .header h1 {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .header__badge {
    padding: 2px 4px;
    font-size: 0.5rem;
  }

  .header__time {
    display: none;
  }
}

/* ── NEW TACTICAL WIDGETS STYLING ── */

/* 1. Combat Losses Widget */
.losses-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
}

.losses-header {
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.losses-day {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px rgba(78, 201, 160, 0.4);
}

.losses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  flex-grow: 1;
  min-height: 0;
}

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

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

.loss-card {
  background: rgba(13, 18, 24, 0.6);
  border: 1px solid rgba(78, 201, 160, 0.15);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.loss-card:hover {
  border-color: rgba(78, 201, 160, 0.4);
  box-shadow: inset 0 0 10px rgba(78, 201, 160, 0.1);
  transform: translateY(-1px);
}

.loss-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loss-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  filter: drop-shadow(0 0 3px rgba(78, 201, 160, 0.4));
  display: block;
}

.loss-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.loss-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loss-values {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.loss-total {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: bold;
}

.loss-change {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: #ff3b30;
  /* Neon red */
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 59, 48, 0.4);
}

/* 2. UAV Weather Widget */
.weather-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
}

.weather-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  justify-content: space-between;
}

.weather-item {
  border-bottom: 1px dashed rgba(78, 201, 160, 0.15);
  padding-bottom: 4px;
}

.weather-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.weather-loc {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weather-details {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.25rem 0.5rem;
  align-items: center;
}

.weather-metric {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-icon-svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
  filter: drop-shadow(0 0 2px rgba(78, 201, 160, 0.4));
  flex-shrink: 0;
  display: block;
}

.weather-status {
  font-size: 0.65rem;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
  display: inline-block;
  width: max-content;
  justify-self: start;
}

.status-ideal {
  color: #4ec9a0;
  border: 1px solid rgba(78, 201, 160, 0.4);
  background: rgba(78, 201, 160, 0.1);
}

.status-risk {
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.1);
}

.status-ban {
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
  background: rgba(255, 59, 48, 0.1);
  animation: live-blink 1.5s infinite;
}

/* 3. Unified Env Monitor Widget (NOAA & CBRN) */
.env-monitor-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
  justify-content: center;
}

.env-monitor-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.env-monitor-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.kp-col {
  border-bottom: 1px dashed rgba(78, 201, 160, 0.15);
  padding-bottom: 8px;
  margin-bottom: 0px;
}

.kp-block {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kp-status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
}

.kp-value-rect {
  padding: 8px 16px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(78, 201, 160, 0.15);
  animation: cyber-pulse-load 2s ease-in-out infinite;
}

.kp-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.1;
}

.kp-label {
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  line-height: 0.8;
}

.kp-text-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kp-status {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kp-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.kp-time {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Share Tech Mono', monospace;
}

/* 4. CBRN Radiation Column */
.cbrn-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cbrn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbrn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(78, 201, 160, 0.1);
  padding-bottom: 4px;
}

.cbrn-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cbrn-loc {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.cbrn-vals {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cbrn-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-light);
}

.cbrn-status {
  font-size: 0.6rem;
  font-weight: bold;
  border: 1px solid rgba(78, 201, 160, 0.3);
  padding: 0px 4px;
  border-radius: 1px;
}

/* 5. Combat Chronicle (RSS Military News) */
.news-military-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex-grow: 1;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
}

.news-item {
  border: 1px solid rgba(78, 201, 160, 0.1);
  background: rgba(13, 18, 24, 0.4);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.25s ease;
}

.news-item:hover {
  border-color: rgba(78, 201, 160, 0.3);
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
}

.news-link {
  font-size: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.news-link:hover {
  text-decoration: underline;
}

.news-title {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
  font-weight: 500;
}