body {
	font-family: 'Press Start 2P', monospace;
	height: 100%;
	margin: 0;
	justify-content: center;
	align-items: center;  
	background: #000000;
	color:grey;
	font-size:11px;
	animation: 
        screenFlicker 10s infinite,
        screenShake 15s infinite;
}
.prompt-modal {
  background: #0b0018;
  border: 3px solid #00ffff;
  box-shadow:
    0 0 8px #00ffff,
    0 0 16px #ff00ff,
    inset 0 0 6px #00ffff;
  padding: 20px;
  border-radius: 6px;
  width: 320px;
  text-align: center;
  color: #00ffff;
  text-shadow: 0 0 4px #ff00ff;
}

/* --- Wiadomość --- */
.prompt-modal .prompt-message {
  font-size: 12px;
  margin-bottom: 10px;
}

/* --- Pole tekstowe --- */
.prompt-modal .prompt-input {
  width: 90%;
  padding: 6px;
  font-size: 12px;
  background: #100020;
  color: #00ffff;
  border: 2px solid #ff00ff;
  outline: none;
  margin-bottom: 12px;
  text-align: center;
  box-shadow:
    0 0 5px #ff00ff,
    inset 0 0 3px #00ffff;
}
.prompt-modal .prompt-input:focus {
  border-color: #00ffff;
  box-shadow:
    0 0 8px #00ffff,
    inset 0 0 4px #ff00ff;
}

/* --- Przyciski --- */
.prompt-modal .buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.prompt-modal button {
  font-family: inherit;
  font-size: 10px;
  padding: 6px 10px;
  border: 2px solid #00ffff;
  background: #100020;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 3px #ff00ff;
}

.prompt-modal button:hover {
  background: #ff00ff;
  color: #0b0018;
  border-color: #ff00ff;
  box-shadow:
    0 0 8px #ff00ff,
    0 0 12px #00ffff;
}

/* --- Animacje --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.2s ease-out forwards;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
#fgiCanvas {
	display:flex;
	justify-self:end;
}
.footer {
	text-align: center;
	margin-top: 40px;
	padding: 20px;
	border-top: 2px solid #00ff00;
	font-size: 8px;
	color: #ff00ff;
}
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.confirm-modal {
  background: #000000;
  padding: 30px 40px;
  border: 4px dashed #00ffff;
  border-radius: 0;
  text-align: center;
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #ff00ff;
  box-shadow: 0 0 25px #00ffff, inset 0 0 15px #ff00ff;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  from {
    box-shadow: 0 0 20px #00ffff, inset 0 0 10px #ff00ff;
  }
  to {
    box-shadow: 0 0 35px #ff00ff, inset 0 0 20px #00ffff;
  }
}

.confirm-modal p {
  font-size: 10px;
  margin: 0 0 25px 0;
  line-height: 1.6;
  color: #ff66ff;
}

.confirm-modal .buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.confirm-modal button {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 10px 20px;
  background: black;
  color: #00ffff;
  border: 2px solid #00ffff;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 8px #00ffff;
}

.confirm-modal button:hover {
  background: #00ffff;
  color: #0d001f;
  box-shadow: 0 0 15px #ff00ff, 0 0 30px #00ffff;
}

.lang-container {
  display: flex;
  align-items: center; /* wyrównanie w pionie */
  gap: 8px;            /* odstęp między tekstem a selectem */
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  margin:10px 0;
}

@keyframes screenFlicker {
	0% { opacity: 1; }
	90% { opacity: 1; }
	91% { opacity: 0.8; }
	92% { opacity: 1; }
	93% { opacity: 0.6; }
	94% { opacity: 1; }
}
@keyframes screenShake {
    0%, 96% { margin-left: 0; }
    97% { margin-left: -1px; }
    98% { margin-left: 2px; }
    99% { margin-left: -1px; }
    100% { margin-left: 0; }
}
.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px; /* odstęp między nimi */
    flex-wrap: nowrap; /* żeby na małych ekranach się zawijało */
}

/* Pierwszy blok (4 karty) - 2 kolumny */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolumny */
    gap: 15px;
    flex: 1; /* żeby dzieliły przestrzeń */
}

/* Drugi blok (canvas) */
.fgi-grid {
    display: flex;
    justify-content: end;
    align-items: center;
}

/* Karty statystyk */
.stat-card {
    background: #001100;
    border: 2px solid #ff00ff;
    padding: 15px;
    text-align: center;
    position: relative;
    color: #fff;
}
		.stat-card img {
			max-width:100%;
		}

        .stat-card::before {
            content: '';
            position: absolute;
            top: -4px;
            left: 6px;
            right: 6px;
            height: 2px;
            background: #ff00ff;
        }

        .stat-value {
            font-size: 16px;
            color: #ff00ff;
            margin: 10px 0;
        }

        .stat-label {
            font-size: 8px;
            color: #00ffff;
        }
.header {
			width:80%;
            text-align: center;
			margin:0 auto;
            margin-bottom: 30px;
            position: relative;
        }

        .header::before,
        .header::after {
            content: '';
            position: absolute;
            background: #00ff00;
        }
        .title {
            font-size: 24px;
            color: #00ff00;
            text-shadow: 0 0 10px #00ff00;
            margin-bottom: 10px;
            animation: titleGlow 2s infinite alternate;
        }

        .subtitle {
            font-size: 10px;
            color: #ffff00;
            margin-bottom: 15px;
        }

        .timestamp {
            font-size: 8px;
            color: #ff00ff;
        }
.scanlines {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent 50%,
		rgba(0, 255, 0, 0.03) 51%
	);
	background-size: 100% 4px;
	pointer-events: none;
	z-index: 1000;
	animation: scanlines 0.1s linear infinite;
}

#multiAlertList li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin:20px 0;
}

#multiAlertList li > :first-child {
  flex: 1;
  min-width: min-content;
}

#multiAlertList li button {
  white-space: nowrap;
  flex-shrink: 0;
}

.button-group {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}
.button-group button.override {
	padding: 8px;
}
.condition {
  display: flex;  
  flex-direction: row;
  justify-content: center; /* wyśrodkuj całość */
  gap: 10px;
}

.input-wrapper {
  position: relative;
}
@keyframes titleGlow {
	0% { text-shadow: 0 0 10px #00ff00; }
	100% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}
input.crt-input7,
select.crt-select7 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  background: transparent;
  border: 2px solid #ff0044;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ff0044;
  letter-spacing: 1px;
  outline: none;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.2s, background 0.2s;
  appearance: none; /* usuwa domyślny styl przeglądarki */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: fit-content;
  max-width: none;
  display: inline-block;
  margin: 10px auto;
}

input.crt-input7::before,
select.crt-select7::before {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,0,68,0.08),
    rgba(255,0,68,0.08) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index:1;
}

input.crt-input7:focus,
select.crt-select7:focus {
  box-shadow: 0 0 18px #ff0044;
  background: rgba(255,0,68,0.05);
}

@keyframes scanlines {
  0% { background-position:0 0; }
  100% { background-position:0 4px; }
}

button.override {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #ff0044;
  background: black;
  border: 2px solid #ff0044;
  border-radius: 6px;
  padding: 12px 8px;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, box-shadow 0.2s;
}

button.override::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,0,68,0.2),
    rgba(255,0,68,0.2) 2px,
    transparent 2px,
    transparent 4px
  );
  z-index: 1;
  pointer-events: none;
}

button.override:hover {
  color: black;
  background: #ff0044;
  box-shadow: 0 0 20px #ff0044;
}

button.override span {
  position: relative;
  z-index: 2;
}
/* ===== PEPE ALERT ===== */
/* ===== KODY QR ===== */
.crt-secion {
  display: flex;
  justify-content: center; /* wyśrodkowanie */
  gap: 20px; /* odstęp między panelami */
  flex-wrap: wrap; /* opcjonalnie: zawijanie na małych ekranach */
  margin: 60px 0px;
}
.crt-panel {
  position: relative;
  padding: 30px;
  border: 2px solid #00fff2;
  border-radius: 12px;
  background: rgba(0, 20, 20, 0.8);
  width: 600px;
  max-width: calc(95% - 60px);
  box-shadow: 0 0 20px #00fff2;
  overflow: hidden;
  margin: 0px auto;
}

.crt-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* Wysokość pasa szumu */
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAABJJREFUeNrtwQEBAAAAgiD/r25IQAEAAewDPQAAAAAASUVORK5CYII=') repeat,
            linear-gradient(
              to bottom,
              transparent,
              rgba(30, 30, 30, 0.6) 50%, /* Ciemniejszy szary odcień */
              transparent
            );
  background-size: auto, 100% 100%;
  transform: rotate(5deg) translateY(400px); /* Początkowa pozycja na dole */
  opacity: 0; /* Domyślnie niewidoczny */
  pointer-events: none;
  z-index: 10; /* Powyżej obrazów, ale poniżej .signal-lost */
  will-change: transform, opacity;
}

.crt-panel.active::after {
  opacity: 0.4; /* Widoczny podczas animacji */
  animation: rolling-noise 1.5s linear forwards;
}

@keyframes rolling-noise {
  0% { transform: rotate(5deg) translateY(400px); opacity: 0.4; } /* Start na dole */
  100% { transform: rotate(5deg) translateY(-100px); opacity: 0.4; } /* Koniec na górze */
}

.crt-title {
  text-align: center;
  color: #00ffea;
  font-size: 1.6rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 12px #00fff2;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 4em;
  overflow-y: auto;
  padding: 5px;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.qr-card {
  position: relative;
  background: rgba(0, 15, 15, 0.9);
  padding: 20px;
  border: 2px solid #00fff2;
  border-radius: 10px;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(0,255,255,0.4);
  overflow: hidden;
  /*max-height:200px;*/
}

.qr-card img {
  filter: contrast(1.3) brightness(1);
  transition: filter 0.3s;
  max-width:60%;
}

.wallet-address {
  margin: 15px 0 10px;
  font-size: 0.9rem;
  word-break: break-all;
  color: #aaffff;
  text-shadow: 0 0 8px #00fff2;
}

.copy-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: #ff4444;
  border: 1px solid #ff4444;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  animation: neonPulse 1.5s infinite alternate;
}

.copy-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.2) 0px,
    rgba(255, 0, 0, 0.2) 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.4;
}

.copy-btn:hover {
  background: rgba(255, 0, 0, 0.25);
  text-shadow: 0 0 12px #ff4444, 0 0 20px #ff0000;
  box-shadow: 0 0 15px #ff4444, 0 0 30px #ff0000, 0 0 45px #ff0000;
  animation: neonPulseHover 0.8s infinite alternate;
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 6px #ff4444, 0 0 12px #ff4444, 0 0 18px #ff4444; }
  50% { box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444, 0 0 30px #ff4444; }
  100% { box-shadow: 0 0 6px #ff4444, 0 0 12px #ff4444, 0 0 18px #ff4444; }
}

@keyframes neonPulseHover {
  0% { box-shadow: 0 0 15px #ff4444, 0 0 25px #ff0000, 0 0 35px #ff0000; }
  50% { box-shadow: 0 0 25px #ff4444, 0 0 40px #ff0000, 0 0 60px #ff0000; }
  100% { box-shadow: 0 0 15px #ff4444, 0 0 25px #ff0000, 0 0 35px #ff0000; }
}

.signal-lost {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.9) 0px,
    rgba(0,0,0,0.9) 5px,
    rgba(0,0,0,0) 5px,
    rgba(0,0,0,0) 10px
  );
  display: none;
  align-items: center;
  justify-content: center;
  color: #ff4444;
  font-size: 1.4rem;
  letter-spacing: 3px;
  text-shadow: 0 0 12px #ff0000;
  z-index: 100;
}

.stat-card.signal-down .signal-lost {
  display: flex;
}
/* ===== KODY QR ===== */


.mainContainer {
	width: 80%;
	display: flex;
	justify-content: center;
	flex-direction: column;
	margin: 0 auto;
}
#fgiSection {width:100%;}

@media screen and (orientation: landscape) and (max-width: 1024px) {
	.mainContainer {
		width:calc(100dvw - 100px);
		padding-left: 70px;
		padding-bottom: 0;
		transition: padding-left 0.3s ease;
	}
	.header {
		width:calc(100dvw - 100px);
		padding-left: 70px;
	}
	#vibe {display:none;}
	.crt-panel canvas {
	  display: block;
	  max-height: 350px; /* ograniczenie mobilne */
	  height: auto;      /* wysokość proporcjonalna */
	  margin: 0 auto;
	}
	.chart-body {height: 270px;}
}
@media (max-width: 1024px) {
	.chart-wrapper {
		padding: 20px 5px;
		width: calc(100% - 18px);
	}
	.stats-grid {
		grid-template-columns: auto;
	}
	.qr-card {
		display:none;
	}
	.stats-grid {
		width:calc(50% - 15px);
	}
}
@media (max-width: 600px) {
	.main-terminal {	max-width: calc(100% - 68px);}
	#pageLoader {background: rgba(0, 0, 0, 0.8);}
	html, body {background: #000000;}
	body {padding-bottom:50px;}
	button.override {
	    margin: 10px 0px;
	}
	li button.override {
	    margin: 0;
	}
	#multiAlertList li {
		margin: 40px 0;
	}
	.mainContainer {
		width:100dvw;
	}
	canvas {max-width:100%;}
	.tutorial-step {
      padding: 15px;
      max-width: 95%;
    }
    .tutorial-text {
      font-size: 14px;
    }
    .tutorial-buttons button {
      font-size: 12px;
      padding: 8px;
    }
    .tutorial-icon {
      font-size: 28px;
    }
	.condition {
		flex-direction: column; /* na mobile pionowo */
		align-items: center;
	}
	.chart-body {height: 400px;}
	.header {
		width:auto;
	}
	.stats-container {
		flex-wrap: wrap; /* żeby na małych ekranach się zawijało */
	}
	.stats-grid {
		width:100%;
	}
}