/*
Theme Name: NeoWeaver
Author: Czaplicka
Version: 1.4.0
*/

/* --- 1. CORE VARIABLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;500;700&display=swap');

:root {
    --neo-bg: #020508;
    --neo-accent: #adff00;
    --neo-border: rgba(173, 255, 0, 0.3);
    --neo-text-main: #c8ffd0;
    --neo-text-dim: #6fb37a;
    --neo-error: #ff0000;
    --neo-font: 'Chakra Petch', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--neo-bg) !important;
    color: var(--neo-text-main);
    font-family: var(--neo-font);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 2. HEADER SYSTEM --- */
.neo-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #000 !important;
    border-bottom: 2px solid var(--neo-accent);
    box-shadow: 0 5px 20px rgba(173, 255, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.neo-menu-trigger {
    background: transparent;
    border: 1px solid var(--neo-accent);
    color: var(--neo-accent);
    padding: 8px 15px;
    font-family: var(--neo-font);
    cursor: pointer;
    text-transform: uppercase;
}

.neo-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    border: 2px solid var(--neo-accent);
    min-width: 220px;
}
.neo-dropdown.is-active { display: block; animation: monitor-flicker 0.2s; }

.neo-menu-list { list-style: none; padding: 10px 0; margin: 0; }
.neo-menu-item a {
    display: block;
    padding: 10px 20px;
    color: var(--neo-text-main) !important;
    text-decoration: none !important;
}
.neo-menu-item a:hover { background: rgba(173, 255, 0, 0.1); color: var(--neo-accent) !important; }

/* --- 3. MAIN TERMINAL CONTAINER --- */
.neo-terminal-container {
    background: rgba(5, 5, 5, 0.95) !important;
    color: var(--neo-text-main);
    padding: 40px;
    border: 2px solid var(--neo-accent);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(173, 255, 0, 0.15);
    margin: 40px auto;
    max-width: 1000px;
    animation: monitor-flicker 1.2s infinite;
}

/* Scanlines & Noise Effects */
.neo-terminal-container::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    top: -100%; left: 0; bottom: -100%; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    animation: scanline-scroll 10s linear infinite;
}

    /* Animacja mocnego migotania obrazu */
    @keyframes monitor-flicker {
        0% { opacity: 0.98; }
        20% { opacity: 1; }
        40% { opacity: 0.96; }
        60% { opacity: 0.99; }
        80% { opacity: 0.95; }
        100% { opacity: 1; }
    }

    @keyframes scanline-scroll {
        0% { transform: translateY(0); }
        100% { transform: translateY(50%); }
    }

/* --- 4. CONTENT REPAIR (Fix dla niebieskich linków ze screena) --- */
.neo-content-area p { margin-bottom: 1.5rem; color: var(--neo-text-main); }
.neo-content-area a { color: var(--neo-accent) !important; text-decoration: none !important; }
.neo-content-area a:hover { text-shadow: 0 0 10px var(--neo-accent); }

.neo-content-area ul { list-style: none !important; padding-left: 0 !important; }
.neo-content-area li::before { content: "> "; color: var(--neo-accent); margin-right: 8px; }

.neo-title {
    color: var(--neo-accent) !important;
    font-size: 2.2rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neo-accent);
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

/* --- 5. FOOTER SYSTEM --- */
.neo-footer-container {
    background: #000 !important;
    border-top: 2px solid var(--neo-accent);
    padding: 60px 20px 20px;
    margin-top: auto;
    position: relative;
}

.neo-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.neo-footer-title {
    color: var(--neo-accent);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--neo-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.neo-footer-list { list-style: none !important; padding: 0 !important; }
.neo-footer-list li::before { content: "> "; color: var(--neo-accent); }
.neo-footer-list a { color: var(--neo-text-dim) !important; text-decoration: none !important; }
.neo-footer-list a:hover { color: var(--neo-accent) !important; padding-left: 5px; }

/* --- 6. ANIMATIONS --- */
@keyframes monitor-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.97; }
}

@keyframes scanline-scroll {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

@keyframes glitch-skew {
    0%, 20%, 23%, 100% { transform: skew(0deg); }
    21% { transform: skew(5deg); filter: blur(1px); }
    22% { transform: skew(-5deg); }
}

.neo-bar-entropy::after {
    content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒";
    animation: entropy-loop 5s steps(20) infinite;
    color: var(--neo-accent);
}

@keyframes entropy-loop {
    0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒"; }
    50% { content: "████████▒▒▒▒▒▒▒"; }
    100% { content: "███████████████"; }
}

.neo-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--neo-accent);
    animation: blink 0.8s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.neo-monitor-frame {
    position: relative;
    background: #050505;
    color: #adff00;
    font-family: 'Chakra Petch', monospace;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.neo-os-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(173, 255, 0, 0.3);
    font-size: 0.9rem;
}

.neo-os-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Animacja paska postępu */
.neo-progress-bar {
    height: 2px;
    background: #adff00;
    box-shadow: 0 0 10px #adff00;
    width: 30%; /* Można animować width od 0 do 100% */
}
a,
.neo-terminal-container a {
  color: var(--neo-accent) !important;
}

a:hover,
.neo-terminal-container a:hover {
  color: var(--neo-accent) !important;
  text-shadow: 0 0 10px var(--neo-accent);
}
#neo-main-nav {
  display: none;
}
#neo-main-nav.is-open {
  display: block;
}
body .neo-terminal-container {
  background: rgba(5, 5, 5, 0.95) !important;
  color: var(--neo-text-main) !important;
  padding: 40px !important;
  border: 2px solid var(--neo-accent) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 0 30px rgba(173, 255, 0, 0.15) !important;
  margin: 40px auto !important;
  max-width: 1000px !important;
  animation: monitor-flicker 1.2s infinite !important;
}
body .neo-terminal-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  z-index: 10;
  pointer-events: none;
  animation: scanline-scroll 10s linear infinite;
}
/* === NEO: DIRTY CRT TERMINAL SKIN === */

/* Tło całej strony lekko brudne, z winietą */
body {
  background-color: #020508 !important;
  background-image:
    radial-gradient(circle at 0 0, rgba(173,255,0,0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(173,255,0,0.06), transparent 55%);
  color: var(--neo-text-main);
  font-family: var(--neo-font);
}

/* Klatka monitora – minimalnie mniejsza, jak w pudełku */
body .neo-terminal-container {
  background: #050707 !important;
  color: var(--neo-text-main) !important;
  padding: 36px 42px !important;
  border: 2px solid var(--neo-accent) !important;
  box-shadow:
    0 0 35px rgba(173,255,0,0.18),
    0 0 0 1px rgba(0,0,0,0.9);
  position: relative !important;
  overflow: hidden !important;
  margin: 48px auto 32px !important;
  max-width: 980px !important;
  animation: monitor-flicker-neo 0.18s infinite;
}

/* Scanlines + lekki vertical roll */
body .neo-terminal-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(rgba(10,10,10,0) 50%, rgba(0,0,0,0.28) 50%);
  background-size: 100% 3px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  animation: scanline-scroll-neo 6s linear infinite;
  z-index: 3;
}

/* Subtelny szum */
body .neo-terminal-container::after {
  content:"";
  position: absolute;
  inset: -20px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events:none;
  z-index:2;
}

/* Treść nad efektami */
.neo-terminal-container > * {
  position: relative;
  z-index: 4;
}

/* Główne animacje ekranu */
@keyframes monitor-flicker-neo {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.97; }
  55% { opacity: 0.93; }
  70% { opacity: 0.99; }
}

@keyframes scanline-scroll-neo {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}
/* Ogólny kontener paska */
.neo-status-line {
  font-family: 'Chakra Petch', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--neo-text-dim);
}

/* Pasek w jednej linii tekstu */
.neo-status-line .neo-bar {
  display: inline-block;
  margin-left: 10px;
  min-width: 200px;
  text-shadow: 0 0 8px rgba(173,255,0,0.5);
}

/* Loopująca animacja entropii */
.neo-status-line .neo-bar::after {
  content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 03%";
  animation: neo-entropy-loop 5.5s steps(18, end) infinite;
}

@keyframes neo-entropy-loop {
  0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 03%"; }
  15% { content: "███▒▒▒▒▒▒▒▒▒▒▒▒ 18%"; }
  30% { content: "█████▒▒▒▒▒▒▒▒▒▒ 33%"; }
  45% { content: "████████▒▒▒▒▒▒▒ 56%"; }
  60% { content: "███████████▒▒▒▒ 77%"; }
  75% { content: "█████████████▒▒ 89%"; }
  88% { content: "██████████████▒ 96%"; }
  95% { content: "███████████████ 99%"; color:#ff0000; }
  100%{ content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 03%"; color: var(--neo-accent); }
}

/* Można używać takiego HTML:
   <div class="neo-status-line">STABILITY:<span class="neo-bar"></span></div>
*/
/* Stopka jak log systemowy */
.neo-footer-container {
  background:#020304 !important;
  border-top:1px solid var(--neo-accent);
  padding-top:32px;
  font-size:0.75rem;
}

.neo-footer-title {
  font-size:0.78rem;
  letter-spacing:0.16em;
}

.neo-footer-list a {
  font-size:0.76rem;
  letter-spacing:0.1em;
}

.neo-footer-list a::before {
  content: ">> ";
  color: var(--neo-accent);
}
/* === NEO: FRONT ARCHITECT CORE UPGRADE === */

/* Pasek statusu u góry kontenera – jak w logu */
.neo-terminal-status-top {
  border-bottom: 1px solid rgba(173,255,0,0.35);
  padding-bottom: 8px;
  margin-bottom: 22px;
  font-family: 'Chakra Petch', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--neo-text-dim);
  text-transform: uppercase;
}

/* Małe tagi statusowe */
.neo-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 10px;
  margin-bottom: 4px;
  border: 1px solid rgba(173,255,0,0.55);
  background: rgba(0,0,0,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--neo-accent);
}

/* Alert / czerwony panel jak w logu */
.neo-alert {
  position: relative;
  margin: 24px 0 26px;
  padding: 12px 16px;
  border: 1px solid rgba(255,0,0,0.6);
  background: linear-gradient(
      to bottom,
      rgba(60,0,0,0.75),
      rgba(5,0,0,0.95)
  );
  box-shadow: 0 0 18px rgba(255,0,0,0.45);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffcccc;
}

.neo-alert-label {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 2px 8px;
  background: #ff0000;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
/* Główny neonowy podtytuł (NEOWEAVER: ARCHITECT_CORE) */
.neo-title {
  display: inline-block;
  padding: 10px 16px 9px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(173,255,0,0.6);
  box-shadow:
    0 0 18px rgba(173,255,0,0.8),
    0 0 40px rgba(173,255,0,0.6);
  margin-bottom: 26px;
}

/* Sekcyjne nagłówki jak w logu */
.neo-section-label {
  margin-top: 26px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neo-text-dim);
}

/* Wiersze z listami komend */
.neo-command-list {
  margin-top: 14px;
  margin-bottom: 20px;
  font-family: 'Chakra Petch', monospace;
  font-size: 0.86rem;
}

.neo-command-list a {
  display: block;
  margin: 3px 0;
}

.neo-command-list a::before {
  content: "> ";
  color: var(--neo-accent);
}

/* Pasek stabilności – podobny do tych w logu */
.neo-stability-wrapper {
  margin-top: 24px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: 'Chakra Petch', monospace;
}

.neo-stability-bar {
  display: block;
  position: relative;
  margin-top: 8px;
  height: 14px;
  background: #111;
  border: 1px solid rgba(173,255,0,0.6);
  box-shadow: inset 0 0 6px #000;
  overflow: hidden;
}

.neo-stability-bar-fill {
  position: absolute;
  inset: 1px;
  width: 78%;
  background: linear-gradient(
      to right,
      #adff00 0%,
      #d6ff66 60%,
      #f6ffb0 100%
  );
  box-shadow: 0 0 12px rgba(173,255,0,0.9);
  animation: neo-stability-pulse 3.6s ease-in-out infinite;
}

.neo-stability-bar-glitch {
  position: absolute;
  inset: 1px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,0.0),
      rgba(0,0,0,0.0) 3px,
      rgba(0,0,0,0.45) 3px,
      rgba(0,0,0,0.45) 4px
  );
  mix-blend-mode: soft-light;
  pointer-events:none;
}

@keyframes neo-stability-pulse {
  0%,100% { opacity: 0.95; }
  50% { opacity: 0.7; }
}

/* Dolne logi w stopce */
.neo-footer-line {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neo-text-dim);
}

.neo-footer-line span {
  color: var(--neo-accent);
}
/* === NEO: GLOBAL FIXES === */

/* Linki – zawsze neonowe */
a,
.neo-terminal-container a {
  color: var(--neo-accent) !important;
  text-decoration: none !important;
}
a:hover,
.neo-terminal-container a:hover {
  color: var(--neo-accent) !important;
  text-shadow: 0 0 10px var(--neo-accent);
}

/* Menu SYSTEM – dropdown */
#neo-main-nav {
  display: none;
}
#neo-main-nav.is-open {
  display: block;
}

/* === DIRTY CRT TERMINAL (ramka + tło) === */

body {
  background-color: #020508 !important;
  background-image:
    radial-gradient(circle at 0 0, rgba(173,255,0,0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(173,255,0,0.06), transparent 55%);
  color: var(--neo-text-main);
  font-family: var(--neo-font);
}

body .neo-terminal-container {
  background-color: #050505 !important;
  color: var(--neo-text-main) !important;
  padding: 40px !important;
  border: 2px solid #adff00 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow:
    0 0 30px rgba(173, 255, 0, 0.2),
    0 0 0 1px #000;
  line-height: 1.6;
  margin: 40px auto 30px !important;
  max-width: 1000px !important;
  animation: monitor-flicker-neo 0.1s infinite;
}

/* scanlines */
body .neo-terminal-container::before {
  content: " ";
  display: block;
  position: absolute;
  top: -100%; left: 0; right: 0; bottom: -100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  z-index: 3;
  pointer-events: none;
  animation: scanline-scroll-neo 8s linear infinite;
}

/* szum */
body .neo-terminal-container::after {
  content:"";
  position:absolute;
  inset:-20px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events:none;
  z-index:2;
}
.neo-terminal-container > * {
  position: relative;
  z-index: 4;
}

/* flicker + scanline animacje */
@keyframes monitor-flicker-neo {
  0% { opacity: 0.98; }
  20% { opacity: 1; }
  40% { opacity: 0.96; }
  60% { opacity: 0.99; }
  80% { opacity: 0.95; }
  100% { opacity: 1; }
}
@keyframes scanline-scroll-neo {
  0% { transform: translateY(0); }
  100% { transform: translateY(50%); }
}

/* === TERMINAL HEADER + TITLE (z inspiracji) === */

.terminal-header {
  color: #adff00;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(173, 255, 0, 0.3);
  padding-bottom: 10px;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* użyj tego zamiast .neo-title w HTML */
.terminal-title {
  color: #adff00;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 20px 0;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(173, 255, 0, 0.7);
  animation: text-glitch 4s step-end infinite;
}
@keyframes text-glitch {
  0% { transform: translate(0); }
  2% { transform: translate(2px, -1px); filter: hue-rotate(90deg); }
  4% { transform: translate(-2px, 1px); }
  6% { transform: translate(0); filter: none; }
}

/* kursor przy tytule lub promptach */
.terminal-cursor {
  display: inline-block;
  width: 12px;
  height: 24px;
  background-color: #adff00;
  vertical-align: middle;
  margin-left: 5px;
  animation: power-blink 0.8s step-end infinite;
  box-shadow: 0 0 8px #adff00;
}
@keyframes power-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* tagi / statusy */
.neoweave-tag {
  color: #adff00;
  font-weight: bold;
  background: rgba(173, 255, 0, 0.1);
  padding: 0 5px;
  border: 1px solid rgba(173, 255, 0, 0.5);
  box-shadow: 0 0 5px rgba(173, 255, 0, 0.2);
}
.status-bar {
  background: rgba(173, 255, 0, 0.2);
  color: #adff00;
  padding: 5px 15px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  border-left: 4px solid #adff00;
}
.terminal-section-title {
  color: #adff00;
  text-transform: uppercase;
  margin-top: 30px;
  display: block;
  font-weight: bold;
}

/* === LOADING / ENTROPY BARS (pełny inspiracyjny kod) === */

@keyframes progress-fill {
  0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 5%"; }
  15% { content: "███▒▒▒▒▒▒▒▒▒▒▒▒ 22%"; }
  30% { content: "██████▒▒▒▒▒▒▒▒▒ 45%"; }
  45% { content: "███████▒▒▒▒▒▒▒▒ 51%"; }
  50% { content: "███████████▒▒▒▒ 78%"; opacity: 0.5; }
  70% { content: "████████████▒▒▒ 89%"; opacity: 1; }
  90% { content: "██████████████▒ 96%"; }
  100% { content: "███████████████ 100%"; }
}
.loading-bar {
  font-family: 'Chakra Petch', monospace;
  color: #adff00;
  margin: 25px 0;
  font-size: 0.9rem;
  letter-spacing: 1px;
  height: 20px;
  display: block;
  text-shadow: 0 0 8px rgba(173, 255, 0, 0.6);
}
.loading-bar::after {
  content: "";
  display: inline-block;
  animation: progress-fill 5s linear infinite, monitor-flicker-neo 0.2s infinite;
  margin-left: 10px;
}
@keyframes bar-warning {
  0%, 90% { color: #adff00; }
  95% { color: #ff0000; text-shadow: 0 0 10px #ff0000; }
}
.loading-bar-container {
  border: 1px dashed rgba(173, 255, 0, 0.3);
  padding: 10px;
  margin: 20px 0;
  background: rgba(0, 255, 0, 0.02);
}

@keyframes entropy-loop {
  0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 02%"; color: #adff00; }
  10% { content: "██▒▒▒▒▒▒▒▒▒▒▒▒▒ 14%"; }
  20% { content: "████▒▒▒▒▒▒▒▒▒▒▒ 25%"; }
  30% { content: "██████▒▒▒▒▒▒▒▒▒ 42%"; }
  50% { content: "██████████▒▒▒▒▒ 68%"; }
  60% { content: "███████████▒▒▒▒ 78%"; }
  70% { content: "█████████████▒▒ 88%"; }
  80% { content: "██████████████▒ 97%"; color: #adff00; }
  85% { content: "███████████████ 99%"; color: #ff0000; text-shadow: 0 0 15px #ff0000; }
  90% { content: "███████████████ 99%"; color: #ff0000; text-shadow: 0 0 15px #ff0000; }
  95% { content: "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 00%"; color: #ff0000; opacity: 0.5; }
  100% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 02%"; color: #adff00; }
}
.entropy-bar {
  font-family: 'Chakra Petch', monospace;
  color: #adff00;
  margin: 10px 0;
  font-size: 0.8rem;
  display: block;
  text-transform: uppercase;
}
.entropy-bar::after {
  content: "";
  display: inline-block;
  animation: entropy-loop 5s steps(20) infinite;
  margin-left: 10px;
  min-width: 200px;
}
.entropy-container {
  border: 1px solid rgba(255, 0, 0, 0.2);
  padding: 15px;
  background: rgba(255, 0, 0, 0.05);
  margin: 20px 0;
  position: relative;
}
.entropy-warning {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #ff0000;
  color: #000;
  font-size: 0.6rem;
  padding: 2px 6px;
  font-weight: bold;
  animation: monitor-flicker-neo 3s infinite;
}

/* === NEO STABILITY BAR – przesuwający się pasek === */
.neo-stability-wrapper {
  margin-top: 24px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: 'Chakra Petch', monospace;
}
.neo-stability-bar {
  position: relative;
  margin-top: 8px;
  height: 14px;
  background: #111;
  border: 1px solid rgba(173,255,0,0.6);
  box-shadow: inset 0 0 6px #000;
  overflow: hidden;
}
.neo-stability-bar-fill {
  position: absolute;
  inset: 1px;
  width: 35%;
  background: linear-gradient(to right,#adff00,#d6ff66,#f6ffb0);
  box-shadow: 0 0 12px rgba(173,255,0,0.9);
  animation: neo-stability-move 4s linear infinite;
}
.neo-stability-bar-glitch {
  position:absolute;
  inset:1px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,0.0),
    rgba(0,0,0,0.0) 3px,
    rgba(0,0,0,0.45) 3px,
    rgba(0,0,0,0.45) 4px
  );
  mix-blend-mode: soft-light;
  pointer-events:none;
}
@keyframes neo-stability-move {
  0% { transform: translateX(-10%); }
  50% { transform: translateX(40%); }
  100%{ transform: translateX(90%); }
}

/* === COMMAND LIST – prostszy, czytelny === */
.neo-command-list {
  margin-top: 14px;
  margin-bottom: 20px;
  font-family: 'Chakra Petch', monospace;
  font-size: 0.86rem;
}
.neo-command-list a {
  display: block;
  margin: 3px 0;
  letter-spacing: 0.08em;
}
.neo-command-list a::before {
  content: ">> ";
  color: var(--neo-accent);
}

/* === FOOTER: jasne spany + linie === */
.neo-footer-container {
  background:#020304 !important;
  border-top:1px solid var(--neo-accent);
  padding-top:32px;
  font-size:0.75rem;
}
.neo-footer-title {
  font-size:0.78rem;
  letter-spacing:0.16em;
}
.neo-footer-list a {
  font-size:0.76rem;
  letter-spacing:0.1em;
}
.neo-footer-list a::before {
  content: ">> ";
  color: var(--neo-accent);
}
.neo-footer-line {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neo-text-dim);
  border-top: 1px solid rgba(173,255,0,0.2);
  padding-top: 8px;
}
.neo-footer-line span {
  color: #ffffff;
}
/* === AUTH MODAL === */

.neo-lock-scroll {
  overflow: hidden;
}
.neo-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.neo-auth-modal.is-open {
  display: block;
}

.neo-auth-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(173,255,0,0.15), rgba(0,0,0,0.95));
  backdrop-filter: blur(3px);
}

.neo-auth-window {
  position: relative;
  max-width: 520px;
  margin: 60px auto;
}

/* nadpisujemy niektóre elementy z neoweave-terminal, żeby było ciaśniej */
.neo-auth-window.neoweave-terminal {
  margin: 80px auto;
  padding: 32px;
}

/* zakładki */
.neo-auth-tabs {
  display: inline-flex;
  border: 1px solid rgba(173,255,0,0.4);
  margin: 18px 0 20px;
}

.neo-auth-tab {
  background: transparent;
  border: none;
  padding: 6px 16px;
  font-family: 'Chakra Petch', sans-serif;
  color: var(--neo-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.neo-auth-tab.is-active {
  background: rgba(173,255,0,0.15);
  color: var(--neo-accent);
}

.neo-auth-panel {
  display: none;
  margin-top: 10px;
}
.neo-auth-panel.is-active {
  display: block;
}

.neo-auth-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neo-text-dim);
}

.neo-auth-panel input[type="text"],
.neo-auth-panel input[type="password"],
.neo-auth-panel input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  background: #020202;
  border: 1px solid rgba(173,255,0,0.4);
  color: var(--neo-text-main);
  font-family: 'Chakra Petch', sans-serif;
}

.neo-auth-submit {
  margin-top: 16px;
}

.neo-auth-submit .button {
  background: #adff00;
  border: none;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(173,255,0,0.7);
}

.neo-auth-submit .button:hover {
  box-shadow: 0 0 18px rgba(173,255,0,1);
}
.neoweave-terminal {
        background-color: #050505;
        color: #e0e0e0;
        font-family: 'Chakra Petch', sans-serif;
        padding: 40px;
        border: 2px solid #adff00;
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 30px rgba(173, 255, 0, 0.2);
        line-height: 1.6;
        margin: 20px 0;
        /* Główny, mocny flicker */
        animation: monitor-flicker 0.1s infinite;
    }

    /* Animacja mocnego migotania obrazu */
    @keyframes monitor-flicker {
        0% { opacity: 0.98; }
        20% { opacity: 1; }
        40% { opacity: 0.96; }
        60% { opacity: 0.99; }
        80% { opacity: 0.95; }
        100% { opacity: 1; }
    }

    /* Drgające linie skanowania */
    .neoweave-terminal::before {
        content: " ";
        display: block;
        position: absolute;
        top: -100%; left: 0; bottom: -100%; right: 0;
        background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
        background-size: 100% 4px;
        z-index: 10;
        pointer-events: none;
        animation: scanline-scroll 8s linear infinite;
    }

    @keyframes scanline-scroll {
        0% { transform: translateY(0); }
        100% { transform: translateY(50%); }
    }

    /* Nagłówek i Tytuł */
    .terminal-header {
        color: #adff00;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(173, 255, 0, 0.3);
        padding-bottom: 10px;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .terminal-title {
        color: #adff00;
        font-size: 2.2rem;
        font-weight: 700;
        margin: 20px 0;
        text-transform: uppercase;
        text-shadow: 0 0 15px rgba(173, 255, 0, 0.7);
        /* Efekt Glitch na tytule */
        animation: text-glitch 4s step-end infinite;
    }

    @keyframes text-glitch {
        0% { transform: translate(0); }
        2% { transform: translate(2px, -1px); filter: hue-rotate(90deg); }
        4% { transform: translate(-2px, 1px); }
        6% { transform: translate(0); filter: none; }
    }

    /* Migający kursor na końcu */
    .terminal-cursor {
        display: inline-block;
        width: 12px;
        height: 24px;
        background-color: #adff00;
        vertical-align: middle;
        margin-left: 5px;
        animation: power-blink 0.8s step-end infinite;
        box-shadow: 0 0 8px #adff00;
    }

    @keyframes power-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

    .neoweave-tag {
        color: #adff00;
        font-weight: bold;
        background: rgba(173, 255, 0, 0.1);
        padding: 0 5px;
        border: 1px solid rgba(173, 255, 0, 0.5);
        box-shadow: 0 0 5px rgba(173, 255, 0, 0.2);
    }

    .status-bar {
        background: rgba(173, 255, 0, 0.2);
        color: #adff00;
        padding: 5px 15px;
        display: inline-block;
        margin-bottom: 20px;
        font-size: 0.8rem;
        border-left: 4px solid #adff00;
    }

    .terminal-section-title {
        color: #adff00;
        text-transform: uppercase;
        margin-top: 30px;
        display: block;
        font-weight: bold;
    }

    .footer-log {
        margin-top: 50px;
        font-size: 0.7rem;
        color: rgba(173, 255, 0, 0.6);
        text-align: right;
        border-top: 1px solid rgba(173, 255, 0, 0.2);
        padding-top: 10px;
    }
    /* Animacja wypełniania paska z "czkawką" */
    @keyframes progress-fill {
        0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 5%"; }
        15% { content: "███▒▒▒▒▒▒▒▒▒▒▒▒ 22%"; }
        30% { content: "██████▒▒▒▒▒▒▒▒▒ 45%"; }
        45% { content: "███████▒▒▒▒▒▒▒▒ 51%"; }
        50% { content: "███████████▒▒▒▒ 78%"; opacity: 0.5; } /* Glitch / spadek napięcia */
        70% { content: "████████████▒▒▒ 89%"; opacity: 1; }
        90% { content: "██████████████▒ 96%"; }
        100% { content: "███████████████ 100%"; }
    }

    .loading-bar {
        font-family: 'Chakra Petch', monospace;
        color: #adff00;
        margin: 25px 0;
        font-size: 0.9rem;
        letter-spacing: 1px;
        height: 20px;
        display: block;
        /* Mocny neonowy blask */
        text-shadow: 0 0 8px rgba(173, 255, 0, 0.6);
    }

    .loading-bar::after {
        content: "";
        display: inline-block;
        animation: progress-fill 5s linear infinite, monitor-flicker 0.2s infinite;
        margin-left: 10px;
    }

    /* Dodatkowy efekt "Warning" jeśli pasek miga na czerwono przy 100% (opcjonalnie) */
    @keyframes bar-warning {
        0%, 90% { color: #adff00; }
        95% { color: #ff0000; text-shadow: 0 0 10px #ff0000; }
    }
    
    .loading-bar-container {
        border: 1px dashed rgba(173, 255, 0, 0.3);
        padding: 10px;
        margin: 20px 0;
        background: rgba(0, 255, 0, 0.02);
    }
    /* Animacja paska, który pętli się 0 -> 99 -> 0 */
    @keyframes entropy-loop {
        0% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 02%"; color: #adff00; }
        10% { content: "██▒▒▒▒▒▒▒▒▒▒▒▒▒ 14%"; }
         20% { content: "████▒▒▒▒▒▒▒▒▒▒▒ 25%"; }
        30% { content: "██████▒▒▒▒▒▒▒▒▒ 42%"; }
        50% { content: "██████████▒▒▒▒▒ 68%"; }
        60% { content: "███████████▒▒▒▒ 78%"; }
        70% { content: "█████████████▒▒ 88%"; }
        80% { content: "██████████████▒ 97%"; color: #adff00; }
        85% { content: "███████████████ 99%"; color: #ff0000; text-shadow: 0 0 15px #ff0000; } /* BŁĄD */
        90% { content: "███████████████ 99%"; color: #ff0000; text-shadow: 0 0 15px #ff0000; } /* BŁĄD */
        95% { content: "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 00%"; color: #ff0000; opacity: 0.5; } /* RESET */
        100% { content: "█▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 02%"; color: #adff00; }
    }
    .entropy-bar {
        font-family: 'Chakra Petch', monospace;
        color: #adff00;
        margin: 10px 0;
        font-size: 0.8rem;
        display: block;
        text-transform: uppercase;
    }

    .entropy-bar::after {
        content: "";
        display: inline-block;
        animation: entropy-loop 5s steps(20) infinite;
        margin-left: 10px;
        min-width: 200px;
    }

    .entropy-container {
        border: 1px solid rgba(255, 0, 0, 0.2);
        padding: 15px;
        background: rgba(255, 0, 0, 0.05);
        margin: 20px 0;
        position: relative;
    }

    /* Mały napis ostrzegawczy */
    .entropy-warning {
        position: absolute;
        top: -10px;
        right: 10px;
        background: #ff0000;
        color: #000;
        font-size: 0.6rem;
        padding: 2px 6px;
        font-weight: bold;
        animation: monitor-flicker 3s infinite;
    }
    .neo-terminal-meta .neo-value,
.neo-terminal-meta .neo-value-clock {
  display: inline-block;
  min-width: 68px; /* wystarczające na 99.9% i 00:00:00 */
  text-align: right;
}
/* Neo auth: unify login form styles (wp_login_form) */

.neo-auth-panel #neo-user-login,
.neo-auth-panel #neo-user-pass,
.neo-auth-panel .input {
  width: 100%;
  padding: 8px 10px;
  background: #020202;
  border: 1px solid rgba(173,255,0,0.4);
  color: var(--neo-text-main);
  font-family: 'Chakra Petch', sans-serif;
  box-shadow: none;
}

.neo-auth-panel .login-submit {
  margin-top: 16px;
}

.neo-auth-panel .login-submit .button-primary,
.neo-auth-submit .button {
  background: #adff00;
  border: none;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(173,255,0,0.7);
}

.neo-auth-panel .login-submit .button-primary:hover,
.neo-auth-submit .button:hover {
  box-shadow: 0 0 18px rgba(173,255,0,1);
}
/* NeoWeave OS layout fix */

.neo-monitor-frame {
  min-height: 100vh;      /* zamiast sztywnego height */
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.neo-terminal-wrapper {
  flex: 1 0 auto;         /* wrapper rośnie z treścią */
  display: flex;
  flex-direction: column;
}

.neo-os-content {
  flex: 1 1 auto;
  overflow-y: visible;    /* pozwól rosnąć */
}

/* Stopka ma być na dole, ale pod treścią */
.neo-os-footer {
  flex-shrink: 0;
  margin-top: 20px;
}
.status-dot { height: 8px; width: 8px; background: var(--neo-accent); border-radius: 50%; display: inline-block; animation: power-blink 1s infinite; box-shadow: 0 0 5px var(--neo-accent); }


/* ============================================================
   === WOOCOMMERCE FIXES v1.4.0 — SHOP / PRODUCT / BUTTONS ===
   ============================================================ */

/* ---- 1. SHOP PAGE: szerszy kontener ---- */

/* Usuwamy ograniczenie 1000px na stronie sklepu i produktu */
.woocommerce .neo-terminal-container,
.woocommerce-page .neo-terminal-container {
  max-width: 1280px !important;
  width: 96% !important;
  padding: 36px 40px !important;
}

/* Tytuł strony sklepu */
.woocommerce .woocommerce-products-header__title,
.woocommerce h1.page-title {
  color: var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 10px var(--neo-accent);
  margin-bottom: 24px;
}

/* Siatka produktów – auto-fill, min 220px, bez artefaktów WooCommerce */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

/* Reset WooCommerce float na kartach */
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  background: #050a05 !important;
  border: 1px solid var(--neo-border) !important;
  padding: 16px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--neo-accent) !important;
  box-shadow: 0 0 14px rgba(173, 255, 0, 0.2);
}

/* Grafika produktu na karcie – full width */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
  margin-bottom: 12px !important;
  border: 1px solid rgba(173, 255, 0, 0.15);
}

/* Nazwa, cena, gwiazdki */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px !important;
}
.woocommerce ul.products li.product .price {
  color: var(--neo-text-main) !important;
  font-family: var(--neo-font) !important;
  font-size: 0.85rem !important;
  margin-bottom: 12px !important;
}
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--neo-accent) !important;
}


/* ---- 2. SINGLE PRODUCT PAGE: grafika full-width z odstępem ---- */

.woocommerce div.product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}

/* Kolumna grafiki */
.woocommerce div.product div.images {
  width: 100% !important;
  padding: 0 !important;
}

/* Główna grafika – full-width, widoczny odstęp od krawędzi */
.woocommerce div.product div.images img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-bottom: 20px !important;
  border: 1px solid var(--neo-border) !important;
  box-shadow: 0 0 20px rgba(173, 255, 0, 0.1);
}

/* Thumbnails */
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: calc(25% - 6px) !important;
  list-style: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
  margin-bottom: 0 !important;
  opacity: 0.7;
  transition: opacity 0.18s;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
  opacity: 1;
  border-color: var(--neo-accent) !important;
}

/* Kolumna opisu */
.woocommerce div.product div.summary {
  width: 100% !important;
  color: var(--neo-text-main) !important;
}

.woocommerce div.product .product_title {
  color: var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  font-size: 1.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 10px rgba(173, 255, 0, 0.5);
  margin-bottom: 16px !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  font-size: 1.3rem !important;
  margin-bottom: 20px !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--neo-text-main) !important;
  font-family: var(--neo-font) !important;
  margin-bottom: 24px !important;
  line-height: 1.7;
}
.woocommerce div.product form.cart {
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.woocommerce div.product form.cart .qty {
  background: #020202 !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text-main) !important;
  font-family: var(--neo-font) !important;
  padding: 8px 10px !important;
  width: 70px !important;
  text-align: center !important;
}
.woocommerce div.product .product_meta {
  font-size: 0.78rem !important;
  color: var(--neo-text-dim) !important;
  border-top: 1px solid var(--neo-border);
  padding-top: 16px !important;
  margin-top: 16px !important;
}
.woocommerce div.product .product_meta a {
  color: var(--neo-accent) !important;
}

/* Zakładki */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  display: flex !important;
  gap: 4px !important;
  border-bottom: 1px solid var(--neo-border) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--neo-text-dim) !important;
  font-family: var(--neo-font) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  padding: 8px 16px !important;
  text-shadow: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: rgba(173, 255, 0, 0.08) !important;
  border-color: var(--neo-accent) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--neo-accent) !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  background: transparent !important;
  color: var(--neo-text-main) !important;
  border: 1px solid var(--neo-border) !important;
  border-top: none !important;
  padding: 24px !important;
  font-family: var(--neo-font) !important;
}

/* Produkty powiązane */
.woocommerce .related h2,
.woocommerce .upsells h2 {
  color: var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  text-transform: uppercase !important;
  font-size: 1rem !important;
  letter-spacing: 0.16em !important;
  margin-bottom: 20px !important;
}


/* ---- 3. PRZYCISKI WOOCOMMERCE: #adff00 / czarny tekst ---- */
/* Nadpisanie domyślnego fioletowego WooCommerce */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce button.single_add_to_cart_button {
  background-color: var(--neo-accent) !important;
  background: var(--neo-accent) !important;
  color: #000 !important;
  border: 1px solid var(--neo-accent) !important;
  font-family: var(--neo-font) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  box-shadow: 0 0 12px rgba(173, 255, 0, 0.5) !important;
  cursor: pointer !important;
  transition: box-shadow 0.18s, opacity 0.18s !important;
  text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce button.single_add_to_cart_button:hover {
  background-color: var(--neo-accent) !important;
  background: var(--neo-accent) !important;
  color: #000 !important;
  box-shadow: 0 0 22px rgba(173, 255, 0, 0.85) !important;
  opacity: 0.92;
}

/* Ghost variant – dla "View cart", "Continue shopping" */
.woocommerce a.button.wc-backward,
.woocommerce a.button.added_to_cart {
  background: transparent !important;
  color: var(--neo-accent) !important;
  border: 1px solid var(--neo-accent) !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
}
.woocommerce a.button.wc-backward:hover,
.woocommerce a.button.added_to_cart:hover {
  background: rgba(173, 255, 0, 0.1) !important;
  box-shadow: 0 0 10px rgba(173, 255, 0, 0.4) !important;
}


/* ---- Responsywność ---- */
@media (max-width: 768px) {
  .woocommerce .neo-terminal-container,
  .woocommerce-page .neo-terminal-container {
    padding: 20px !important;
    width: 100% !important;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr !important;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
}
.neo-footer-list li a::before {
    content: "> ";
    color: var(--neo-accent, #adff00);
}
.neo-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.neo-menu-list > li {
    margin: 0;
    padding: 0;
}

.neo-menu-list > li > a {
    display: block;
    padding: 0.6rem 0.8rem;
}
/* =========================================================
   NeoWeaver Header Responsive Fix
   ========================================================= */

/* desktop / global */
.neo-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 10px 18px !important;
}

.neo-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.neo-system-id {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 220px;
    min-width: 0;
    text-align: center;
}

.neo-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.neo-logo {
    display: block;
    width: clamp(120px, 18vw, 190px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.neo-terminal-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(0.72rem, 0.25vw + 0.68rem, 0.84rem);
}

.neo-terminal-meta .neo-label {
    color: var(--neo-text-dim);
}

.neo-terminal-meta .neo-value,
.neo-terminal-meta .neo-value-clock {
    min-width: 62px;
    text-align: right;
}

.neo-menu-trigger {
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.1;
}

.neo-menu-label {
    display: inline-block;
}

/* dropdown */
#neo-main-nav.neo-dropdown {
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    z-index: 1200;
}

.neo-menu-list li a {
    padding: 0.7rem 0.95rem;
    font-size: 0.82rem;
    line-height: 1.2;
    word-break: break-word;
}

/* medium desktop / tablet */
@media (max-width: 980px) {
    .neo-terminal-header {
        padding: 10px 14px !important;
        gap: 10px 14px;
    }

    .neo-logo {
        width: clamp(108px, 20vw, 160px);
    }

    .neo-terminal-meta {
        font-size: 0.76rem;
    }

    .neo-terminal-meta .neo-value,
    .neo-terminal-meta .neo-value-clock {
        min-width: 56px;
    }
}

/* tablet and mobile layout */
@media (max-width: 768px) {
    .neo-terminal-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "menu meta1"
            "brand brand"
            "meta2 meta2";
        align-items: center;
        padding: 10px 12px !important;
        gap: 10px 12px;
    }

    .neo-menu-container {
        grid-area: menu;
        justify-self: start;
    }

    .neo-system-id {
        grid-area: brand;
        justify-self: center;
        width: 100%;
    }

    .neo-terminal-header > .neo-terminal-meta:nth-of-type(1) {
        grid-area: meta1;
        justify-self: end;
    }

    .neo-terminal-header > .neo-terminal-meta:nth-of-type(2) {
        grid-area: meta2;
        justify-self: center;
    }

    .neo-logo {
        width: clamp(100px, 34vw, 150px);
    }

    .neo-menu-trigger {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .neo-menu-label {
        font-size: 0.72rem;
    }

    .neo-terminal-meta {
        font-size: 0.72rem;
    }

    #neo-main-nav.neo-dropdown {
        left: 0;
        right: auto;
        min-width: 200px;
        max-width: min(300px, calc(100vw - 24px));
    }
}

/* narrow phones */
@media (max-width: 480px) {
    .neo-terminal-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "menu"
            "brand"
            "meta1"
            "meta2";
        justify-items: center;
        text-align: center;
        padding: 10px 10px !important;
    }

    .neo-menu-container,
    .neo-system-id,
    .neo-terminal-header > .neo-terminal-meta:nth-of-type(1),
    .neo-terminal-header > .neo-terminal-meta:nth-of-type(2) {
        justify-self: center;
    }

    .neo-menu-trigger {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .neo-logo {
        width: clamp(92px, 42vw, 132px);
    }

    .neo-terminal-meta {
        font-size: 0.7rem;
        justify-content: center;
    }

    .neo-terminal-meta .neo-value,
    .neo-terminal-meta .neo-value-clock {
        min-width: 0;
        text-align: left;
    }

    #neo-main-nav.neo-dropdown {
        left: 50%;
        transform: translateX(-50%);
        width: min(280px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

    .neo-menu-list li a {
        padding: 0.8rem 0.9rem;
        font-size: 0.8rem;
    }
}
/* =========================================================
   NeoWeaver Login Button
   ========================================================= */

.neo-auth-panel .login-submit,
.neo-auth-submit {
    margin-top: 18px;
}

.neo-auth-panel .login-submit .button-primary,
.neo-auth-submit .button,
.neo-login-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #d7ff72 0%, #adff00 55%, #97e600 100%) !important;
    border: 1px solid rgba(173, 255, 0, 0.95) !important;
    color: #020402 !important;
    font-family: var(--neo-font) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(173, 255, 0, 0.45),
        0 0 24px rgba(173, 255, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition:
        transform 0.14s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        background 0.18s ease;
    position: relative;
    overflow: hidden;
}

/* terminal shimmer */
.neo-auth-panel .login-submit .button-primary::before,
.neo-auth-submit .button::before,
.neo-login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,0.0) 30%,
            rgba(255,255,255,0.28) 48%,
            rgba(255,255,255,0.0) 62%,
            transparent 100%
        );
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.neo-auth-panel .login-submit .button-primary:hover,
.neo-auth-submit .button:hover,
.neo-login-submit:hover {
    background: linear-gradient(180deg, #ebffae 0%, #cfff4f 55%, #adff00 100%) !important;
    color: #000000 !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.82),
        0 0 16px rgba(173, 255, 0, 0.7),
        0 0 34px rgba(173, 255, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
    filter: saturate(1.08);
}

.neo-auth-panel .login-submit .button-primary:hover::before,
.neo-auth-submit .button:hover::before,
#neo-login-submit:hover::before {
    transform: translateX(130%);
}

.neo-auth-panel .login-submit .button-primary:active,
.neo-auth-submit .button:active,
#neo-login-submit:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.82),
        0 0 8px rgba(173, 255, 0, 0.45),
        inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

.neo-auth-panel .login-submit .button-primary:focus,
.neo-auth-panel .login-submit .button-primary:focus-visible,
.neo-auth-submit .button:focus,
.neo-auth-submit .button:focus-visible,
#neo-login-submit:focus,
#neo-login-submit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 1px #000,
        0 0 0 3px rgba(173, 255, 0, 0.28),
        0 0 18px rgba(173, 255, 0, 0.72),
        0 0 36px rgba(173, 255, 0, 0.18);
}

/* disabled */
.neo-auth-panel .login-submit .button-primary:disabled,
.neo-auth-submit .button:disabled,
#neo-login-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.7),
        0 0 8px rgba(173, 255, 0, 0.16);
}

/* mobile */
@media (max-width: 480px) {
    .neo-auth-panel .login-submit .button-primary,
    .neo-auth-submit .button,
    #neo-login-submit {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 0.76rem !important;
        letter-spacing: 0.14em;
    }
}
