/* ==========================================
   B L O C K   C I P H E R   3 0 0 0 ™
   "The #1 Trusted Cipher Since 1997"
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&family=Press+Start+2P&family=Rubik+Glitch&display=swap');

/* === SEIZURE WARNING: YES === */

:root {
  --neon-pink: #ff00ff;
  --neon-green: #39ff14;
  --neon-yellow: #ffff00;
  --neon-cyan: #00ffff;
  --neon-orange: #ff6600;
  --hell-red: #ff0000;
  --acid-purple: #9d00ff;
  --sick-blue: #0066ff;
  --bg-dark: #0a0011;
  --marquee-speed: 8s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='28' font-size='28'>🔒</text></svg>") 4 4, auto;
}

/* The background from hell */
body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  background: var(--bg-dark);
  color: var(--neon-green);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255, 0, 255, 0.03) 20px,
      rgba(255, 0, 255, 0.03) 40px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(57, 255, 20, 0.03) 20px,
      rgba(57, 255, 20, 0.03) 40px
    );
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(57, 255, 20, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 4s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* === TOP BANNER OF DOOM === */
.top-banner {
  background: linear-gradient(90deg, var(--hell-red), var(--neon-yellow), var(--neon-green), var(--neon-cyan), var(--acid-purple), var(--neon-pink), var(--hell-red));
  background-size: 400% 100%;
  animation: rainbowSlide 3s linear infinite;
  color: #000;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 3px dashed var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  overflow: hidden;
  white-space: nowrap;
}

.top-banner .scroll-text {
  display: inline-block;
  animation: marqueeScroll var(--marquee-speed) linear infinite;
  padding-left: 100%;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes rainbowSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* === HEADER === */
.site-header {
  text-align: center;
  padding: 30px 20px 10px;
  position: relative;
  z-index: 1;
}

.site-header h1 {
  font-family: 'Bungee Shade', cursive;
  font-size: clamp(2.2rem, 7vw, 5rem);
  color: var(--neon-pink);
  text-shadow:
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-pink),
    0 0 40px var(--acid-purple),
    0 0 80px var(--acid-purple),
    3px 3px 0 var(--neon-cyan),
    -2px -2px 0 var(--neon-yellow);
  animation: titlePulse 2s ease-in-out infinite alternate, titleWobble 5s ease-in-out infinite;
  letter-spacing: 4px;
  line-height: 1.2;
}

@keyframes titlePulse {
  0% { text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--acid-purple), 3px 3px 0 var(--neon-cyan); }
  100% { text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green), 0 0 80px var(--neon-yellow), -3px -3px 0 var(--neon-orange); }
}

@keyframes titleWobble {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  25% { transform: rotate(0.5deg) scale(1.02); }
  50% { transform: rotate(-0.5deg) scale(0.99); }
  75% { transform: rotate(1deg) scale(1.01); }
}

.site-header .subtitle {
  font-family: 'Rubik Glitch', cursive;
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  color: var(--neon-yellow);
  margin-top: 5px;
  animation: subtitleBlink 1.5s steps(2) infinite;
  text-shadow: 0 0 10px var(--neon-yellow);
}

@keyframes subtitleBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

/* === TRUST BADGES === */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px 20px;
  position: relative;
  z-index: 1;
}

.badge {
  background: linear-gradient(135deg, rgba(255,0,255,0.15), rgba(0,255,255,0.15));
  border: 2px solid var(--neon-green);
  border-radius: 0;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: badgeFlash 3s ease-in-out infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  transform: skewX(-5deg);
}

.badge:nth-child(2) { animation-delay: 0.5s; border-color: var(--neon-pink); color: var(--neon-pink); }
.badge:nth-child(3) { animation-delay: 1s; border-color: var(--neon-yellow); color: var(--neon-yellow); }
.badge:nth-child(4) { animation-delay: 1.5s; border-color: var(--neon-cyan); color: var(--neon-cyan); }

@keyframes badgeFlash {
  0%, 100% { opacity: 0.7; transform: skewX(-5deg) scale(1); }
  50% { opacity: 1; transform: skewX(-5deg) scale(1.05); }
}

/* === FAKE SALE BANNER === */
.sale-banner {
  background: repeating-linear-gradient(
    -45deg,
    var(--hell-red),
    var(--hell-red) 10px,
    #cc0000 10px,
    #cc0000 20px
  );
  text-align: center;
  padding: 10px 20px;
  margin: 15px 20px;
  border: 4px double var(--neon-yellow);
  animation: salePulse 0.8s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

.sale-banner span {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 2vw, 14px);
  color: var(--neon-yellow);
  text-shadow: 2px 2px 0 #000;
  animation: saleText 0.5s steps(2) infinite;
}

@keyframes salePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

@keyframes saleText {
  0%, 49% { color: var(--neon-yellow); }
  50%, 100% { color: #fff; }
}

/* === MAIN CONTAINER === */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* === CIPHER TOOL BOX === */
.cipher-box {
  background:
    linear-gradient(135deg, rgba(10, 0, 17, 0.95), rgba(30, 0, 50, 0.95));
  border: 3px solid var(--neon-pink);
  box-shadow:
    0 0 15px rgba(255, 0, 255, 0.4),
    0 0 30px rgba(255, 0, 255, 0.2),
    inset 0 0 30px rgba(255, 0, 255, 0.05);
  padding: 25px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.cipher-box::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-green), var(--neon-yellow), var(--neon-pink));
  background-size: 400% 400%;
  z-index: -1;
  animation: borderGlow 4s linear infinite;
  filter: blur(4px);
  opacity: 0.5;
}

@keyframes borderGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 400%; }
}

.cipher-box h2 {
  font-family: 'Rubik Glitch', cursive;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: var(--neon-cyan);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* === MODE TOGGLE === */
.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.mode-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.8vw, 11px);
  padding: 12px 25px;
  border: 2px solid var(--neon-green);
  background: transparent;
  color: var(--neon-green);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.mode-btn:first-child { border-right: none; }

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.2), transparent);
  transition: left 0.4s;
}

.mode-btn:hover::before { left: 100%; }

.mode-btn.active {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.5), 0 0 30px rgba(57, 255, 20, 0.2);
  animation: activeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% { box-shadow: 0 0 15px rgba(57, 255, 20, 0.5); }
  100% { box-shadow: 0 0 25px rgba(57, 255, 20, 0.8), 0 0 50px rgba(57, 255, 20, 0.3); }
}

/* === TEXTAREA === */
.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--neon-yellow);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px var(--neon-yellow);
}

.input-group textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--acid-purple);
  color: var(--neon-green);
  font-family: 'Comic Sans MS', cursive;
  font-size: 16px;
  padding: 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  line-height: 1.6;
  letter-spacing: 1px;
}

.input-group textarea::placeholder {
  color: rgba(57, 255, 20, 0.3);
  font-style: italic;
}

.input-group textarea:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.3), inset 0 0 15px rgba(255, 0, 255, 0.05);
}

.output-area textarea {
  border-color: var(--neon-cyan);
  color: var(--neon-yellow);
  font-size: 18px;
  letter-spacing: 2px;
  word-break: break-all;
}

.output-area textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3), inset 0 0 15px rgba(57, 255, 20, 0.05);
}

/* === ACTION BUTTONS === */
.action-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn-cipher {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 2vw, 12px);
  padding: 15px 30px;
  border: 3px solid;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-encode {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.btn-encode:hover {
  background: var(--neon-pink);
  color: #000;
  box-shadow: 0 0 20px var(--neon-pink), 0 0 40px rgba(255,0,255,0.3);
  transform: scale(1.05);
}

.btn-decode {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.btn-decode:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0,255,255,0.3);
  transform: scale(1.05);
}

.btn-copy {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  font-size: clamp(7px, 1.5vw, 9px);
  padding: 10px 20px;
}

.btn-copy:hover {
  background: var(--neon-yellow);
  color: #000;
  box-shadow: 0 0 20px var(--neon-yellow);
  transform: scale(1.05);
}

.btn-clear {
  color: var(--hell-red);
  border-color: var(--hell-red);
  font-size: clamp(7px, 1.5vw, 9px);
  padding: 10px 20px;
}

.btn-clear:hover {
  background: var(--hell-red);
  color: #000;
  box-shadow: 0 0 20px var(--hell-red);
  transform: scale(1.05);
}

/* === STATUS MESSAGE === */
.status-msg {
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  min-height: 20px;
  margin: 10px 0;
  transition: all 0.3s;
}

.status-msg.success { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.status-msg.error { color: var(--hell-red); text-shadow: 0 0 10px var(--hell-red); animation: errorShake 0.4s ease-in-out; }

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* === REFERENCE TABLE === */
.ref-section {
  margin-top: 30px;
}

.ref-toggle {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--acid-purple);
  background: none;
  border: 2px dashed var(--acid-purple);
  padding: 10px 20px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  text-transform: uppercase;
  transition: all 0.3s;
}

.ref-toggle:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255,0,255,0.3);
}

.ref-table-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.ref-table-wrap.open {
  max-height: 2000px;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.ref-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-pink);
  border-bottom: 2px solid var(--neon-pink);
  padding: 8px;
  text-transform: uppercase;
  text-align: left;
}

.ref-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255,0,255,0.15);
  font-family: 'Comic Sans MS', cursive;
}

.ref-table td:first-child {
  color: var(--neon-yellow);
  font-weight: bold;
  width: 60px;
  text-align: center;
  font-size: 16px;
}

.ref-table td:last-child {
  color: var(--neon-cyan);
  font-size: 18px;
  letter-spacing: 3px;
}

.ref-table tr:hover {
  background: rgba(255, 0, 255, 0.07);
}

/* === SIDEBAR POPUPS / FAKE ADS === */
.fake-ad {
  position: fixed;
  z-index: 100;
  padding: 10px 15px;
  border: 3px solid;
  font-family: 'Comic Sans MS', cursive;
  font-weight: 900;
  text-align: center;
  animation: adBounce 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.75;
}

.fake-ad-1 {
  top: 120px; right: 10px;
  border-color: var(--neon-green);
  color: var(--neon-green);
  font-size: 11px;
  transform: rotate(5deg);
  background: rgba(0,0,0,0.85);
  max-width: 150px;
}

.fake-ad-2 {
  bottom: 80px; left: 10px;
  border-color: var(--neon-orange);
  color: var(--neon-orange);
  font-size: 10px;
  transform: rotate(-3deg);
  background: rgba(0,0,0,0.85);
  max-width: 140px;
}

.fake-ad-3 {
  top: 300px; left: 10px;
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  font-size: 10px;
  transform: rotate(2deg);
  background: rgba(0,0,0,0.85);
  max-width: 130px;
}

@keyframes adBounce {
  0%, 100% { transform: rotate(var(--rot, 5deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 5deg)) translateY(-8px); }
}

.fake-ad-1 { --rot: 5deg; }
.fake-ad-2 { --rot: -3deg; animation-delay: 1s; }
.fake-ad-3 { --rot: 2deg; animation-delay: 2s; }

/* === VISITOR COUNTER === */
.visitor-counter {
  text-align: center;
  margin: 20px 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--acid-purple);
}

.visitor-counter .count {
  display: inline-block;
  background: #000;
  border: 2px inset #666;
  padding: 4px 10px;
  color: var(--neon-green);
  font-size: 12px;
  margin: 0 5px;
  letter-spacing: 3px;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 2px dashed var(--acid-purple);
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.site-footer p {
  font-family: 'Comic Sans MS', cursive;
  font-size: 11px;
  color: rgba(157, 0, 255, 0.5);
  margin: 5px 0;
}

.site-footer .disclaimer {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.15);
  max-width: 600px;
  margin: 15px auto 0;
  line-height: 1.6;
}

/* === STAR RATINGS === */
.stars {
  color: var(--neon-yellow);
  font-size: 16px;
  letter-spacing: 2px;
  display: inline-block;
  animation: starSpin 4s linear infinite;
}

@keyframes starSpin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* === "NEW" / "HOT" BADGES === */
.hot-badge {
  display: inline-block;
  background: var(--hell-red);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 3px 8px;
  margin-left: 8px;
  animation: hotPulse 0.6s ease-in-out infinite alternate;
  vertical-align: super;
}

@keyframes hotPulse {
  0% { transform: scale(1); background: var(--hell-red); }
  100% { transform: scale(1.15); background: var(--neon-orange); }
}

/* === TESTIMONIAL === */
.testimonial {
  background: rgba(0,0,0,0.5);
  border-left: 4px solid var(--neon-green);
  padding: 12px 15px;
  margin: 15px 0;
  font-style: italic;
  color: rgba(57, 255, 20, 0.7);
  font-size: 13px;
  position: relative;
}

.testimonial::before {
  content: '❝';
  font-size: 30px;
  color: var(--neon-pink);
  position: absolute;
  top: -5px; left: 10px;
  opacity: 0.5;
}

.testimonial cite {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  color: var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  font-style: normal;
}

/* === FLOATING EMOJIS === */
.float-emoji {
  position: fixed;
  font-size: 24px;
  opacity: 0.15;
  animation: floatUp 10s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0.15; }
  50% { opacity: 0.25; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* === HOW IT WORKS SECTION === */
.how-section {
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--acid-purple);
  padding: 20px;
  margin: 25px 0;
  position: relative;
}

.how-section h3 {
  font-family: 'Rubik Glitch', cursive;
  color: var(--neon-orange);
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--neon-orange);
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.how-step {
  text-align: center;
  padding: 15px 10px;
  border: 1px dashed rgba(157, 0, 255, 0.4);
}

.how-step .step-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
  animation: iconWobble 2s ease-in-out infinite;
}

.how-step:nth-child(2) .step-icon { animation-delay: 0.3s; }
.how-step:nth-child(3) .step-icon { animation-delay: 0.6s; }

@keyframes iconWobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(0.95) rotate(5deg); }
}

.how-step h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-cyan);
  margin-bottom: 5px;
}

.how-step p {
  font-size: 12px;
  color: rgba(57, 255, 20, 0.6);
  line-height: 1.5;
}

/* === RESPONSIVE / HIDE ADS ON SMALL === */
@media (max-width: 1100px) {
  .fake-ad { display: none; }
}

@media (max-width: 600px) {
  .cipher-box { padding: 15px; margin: 10px 0; }
  .action-row { flex-direction: column; align-items: center; }
  .btn-cipher { width: 100%; max-width: 280px; }
  .how-grid { grid-template-columns: 1fr; }
  .sale-banner { margin: 10px; }
}

/* === SCANLINES OVERLAY === */
.scanlines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* === SELECTION COLOR === */
::selection {
  background: var(--neon-pink);
  color: #000;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0011; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-pink), var(--acid-purple));
  border: 1px solid var(--neon-pink);
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-pink); }
