/* =========================================================
   GOAT//PAY CYBER TERMINAL — CSS FUTURISTA (CYBERPUNK / HIGH-TECH)
========================================================= */

:root {
  --bg-dark: #07090e;
  --bg-panel: rgba(13, 18, 28, 0.75);
  --bg-card: rgba(18, 25, 40, 0.65);
  
  --neon-cyan: #00f2fe;
  --neon-blue: #0072ff;
  --neon-purple: #9d4edd;
  --neon-pink: #f72585;
  --neon-green: #00ff88;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-glow: rgba(0, 242, 254, 0.35);
  
  --font-heading: 'Orbitron', sans-serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sub);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 50px;
}

/* Fundo Grid Cibernético & Esferas Glow */
.cyber-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -3;
}

.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: -2;
  pointer-events: none;
}

.sphere-cyan {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  top: -100px;
  left: -100px;
  animation: floatSphere 12s infinite alternate ease-in-out;
}

.sphere-purple {
  width: 600px;
  height: 600px;
  background: var(--neon-purple);
  bottom: -150px;
  right: -100px;
  animation: floatSphere 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatSphere {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

/* Efeito Scanlines Retro-Tech */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 100;
  pointer-events: none;
  opacity: 0.6;
}

/* =========================================================
   CABEÇALHO HUD
========================================================= */
.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 30px rgba(0, 242, 254, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
  animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.logo-text h1 span {
  color: var(--neon-cyan);
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.system-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: blinkDot 1s infinite;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hud-time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--neon-cyan);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--neon-cyan);
}

.hud-time .label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 5px;
}

.hud-revenue {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
  padding: 6px 16px;
  border-radius: 6px;
}

.hud-revenue .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: 6px;
}

.hud-revenue .revenue-val {
  font-weight: 700;
  color: var(--neon-green);
}

/* =========================================================
   COMPONENTES CYBER CARDS
========================================================= */
.matrix-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
}

.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 35px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.05);
}

/* Cantos Cibernéticos */
.card-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--neon-cyan);
  border-style: solid;
  pointer-events: none;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card-header {
  margin-bottom: 30px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 15px;
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
}

.card-header .sub-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================================
   FORMULÁRIO DE ENTRADA
========================================================= */
.pix-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.amount-display-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 10px 25px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.2), inset 0 0 15px rgba(0, 242, 254, 0.1);
  transition: all 0.3s ease;
}

.amount-display-wrapper:focus-within {
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.2);
  border-color: #fff;
}

.currency-symbol {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--neon-cyan);
  margin-right: 15px;
  font-weight: 700;
}

#amount-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px var(--neon-cyan);
}

/* Chips de Valores */
.quick-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chip {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #fff;
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.25);
}

.chip.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.input-glow-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-sub);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-glow-wrapper input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Toggle Switch Cyber */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch-container input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #000;
}

.toggle-title {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.toggle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Botão Submit Nuclear */
.cyber-submit-btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  border: none;
  border-radius: 10px;
  padding: 18px 30px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.cyber-submit-btn .btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #000;
  letter-spacing: 1.5px;
}

.cyber-submit-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.8);
}

.cyber-submit-btn:active {
  transform: translateY(1px);
}

/* =========================================================
   HUD DE SAÍDA (STANDBY & ATIVO)
========================================================= */
.standby-container {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.standby-radar {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 25px;
  border: 2px dashed rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinRadar 20s linear infinite;
}

.radar-circle {
  width: 100px;
  height: 100px;
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.radar-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  animation: blinkText 1.5s infinite;
}

@keyframes spinRadar {
  100% { transform: rotate(360deg); }
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Display Pix Ativo */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.status-badge.pending {
  background: rgba(247, 184, 1, 0.15);
  border: 1px solid #f7b801;
  color: #f7b801;
  box-shadow: 0 0 15px rgba(247, 184, 1, 0.3);
}

.status-badge.completed {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
  animation: celebrateGlow 1.5s infinite alternate;
}

@keyframes celebrateGlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.tx-id-box {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tx-id-box code {
  color: var(--neon-cyan);
}

/* Frame do QR Code com Laser */
.qr-hologram-frame {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 25px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--neon-cyan);
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-wrapper img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 8px;
}

.laser-scanner {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(to right, transparent, var(--neon-pink), var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-pink);
  animation: scanLaser 3s infinite ease-in-out alternate;
  z-index: 5;
}

@keyframes scanLaser {
  0% { top: 5%; opacity: 0.8; }
  100% { top: 95%; opacity: 1; }
}

.amount-summary {
  text-align: center;
  font-family: var(--font-sub);
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.amount-summary strong {
  color: var(--neon-green);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-left: 8px;
}

/* Copia e Cola */
.copy-paste-wrapper label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  display: block;
}

.copy-box {
  display: flex;
  gap: 10px;
}

.copy-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.copy-action-btn {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-action-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--neon-cyan);
}

.hud-footer {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--neon-purple);
  color: #fff;
  box-shadow: 0 0 20px var(--neon-purple);
}

.hidden { display: none !important; }

/* =========================================================
   HISTÓRICO DA SESSÃO
========================================================= */
.history-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.history-card {
  padding: 30px;
}

.table-wrapper {
  overflow-x: auto;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: var(--font-sub);
}

.cyber-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  padding: 14px 16px;
  border-bottom: 2px solid rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
}

.cyber-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}

.cyber-table tr:hover {
  background: rgba(0, 242, 254, 0.05);
}

/* =========================================================
   MODAIS & OUTROS
========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  width: 90%;
  max-width: 550px;
  padding: 35px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  color: var(--neon-cyan);
}

.close-btn {
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer;
}

.help-text {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .matrix-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .cyber-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
    text-align: center;
  }
  .header-left {
    flex-direction: column;
    gap: 10px;
  }
  .logo-text h1 {
    font-size: 1.15rem;
  }
  .system-badge {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .matrix-container {
    padding: 0 8px;
    gap: 20px;
  }
  .cyber-card {
    padding: 22px 14px;
    border-radius: 12px;
  }
  .amount-display-wrapper {
    padding: 12px 8px;
  }
  #amount-input {
    font-size: 2.1rem;
  }
  .currency-symbol {
    font-size: 1.3rem;
  }
  .quick-values {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .chip-btn {
    padding: 10px 4px;
    font-size: 0.82rem;
  }
  .qr-hologram-frame {
    width: 220px;
    height: 220px;
    padding: 10px;
  }
  .qr-image-wrapper img {
    width: 195px;
    height: 195px;
  }
  .copy-box {
    flex-direction: column;
  }
  .copy-action-btn {
    padding: 14px;
    width: 100%;
  }
  .cyber-submit-btn {
    padding: 15px 18px;
  }
  .cyber-submit-btn .btn-content {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  .status-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .modal-box {
    padding: 22px 15px;
  }
}
