/***************************************************************
 * crypto.confiaro.com — Conversor Privado BTC ↔ XMR
 * Estilo 2026 • Glassmorphism + Neon Cyber + Canvas Background
 * Completo • Responsivo • Fluido • ~850 linhas
 ***************************************************************/

[hidden] {
  display: none !important;
}

:root {
  --bg-deep:          #05070f;
  --glass-light:      rgba(22, 32, 58, 0.58);
  --glass-medium:     rgba(28, 42, 78, 0.68);
  --glass-strong:     rgba(35, 50, 90, 0.78);
  --neon-cyan:        #6bf0d1;
  --neon-cyan-dark:   #4dd8b8;
  --neon-blue:        #7aa2ff;
  --neon-blue-dark:   #5a82df;
  --text-primary:     #f2f8ff;
  --text-secondary:   #c2d4f8;
  --text-muted:       #8ca0d2;
  --success:          #4ae9a4;
  --warning:          #ffca70;
  --danger:           #ff6b81;
  --radius-sm:        10px;
  --radius:           16px;
  --radius-lg:        24px;
  --blur-md:          14px;
  --blur-lg:          22px;
  --shadow-glow:      0 0 32px rgba(107, 240, 209, 0.28);
  --shadow-deep:      0 18px 56px rgba(0, 0, 0, 0.58);
  --transition:       all 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-main:        'Inter', system-ui, -apple-system, sans-serif;
}

/* ======================================
   EFEITO CORELDRAW — CAMADA DE COR VIVA
====================================== */
.fx-color-blend {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;

  background:
radial-gradient( circle at 15% 25%, rgba(255, 120, 0, 0.23), #00000045 45% ), radial-gradient( circle at 85% 70%, rgba(122, 162, 255, 0.22), transparent 50% ), linear-gradient( 180deg, rgba(22, 32, 58, 0.35), rgba(5, 7, 15, 0.85) );

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  mix-blend-mode: screen;
}

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


/* ======================================
   PRESET — GLASS ADDITIVE (SUBSTITUI AZUL)
====================================== */
.glass-add {
  position: relative;

  background:
    linear-gradient(
      135deg,
      rgba(107,240,209,0.20),
      rgba(122,162,255,0.20)
    ),
    rgba(18, 26, 52, 0.72);

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  background-blend-mode: screen;

  border: 1px solid rgba(107,240,209,0.32);
  box-shadow:
    var(--shadow-deep),
    0 0 42px rgba(107,240,209,0.28),
    0 0 58px rgba(122,162,255,0.22);
}

/* efeito de luz interna */
.glass-add::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(107,240,209,0.38),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(122,162,255,0.35),
      transparent 50%
    );

  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ======================================
   BASE GLOBAL
====================================== */
html, body {
  height: 100%;
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ======================================
   CAMADA 1 — CANVAS ANIMADO (JÁ EXISTE)
====================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* ======================================
   CAMADA 2 — IMAGEM ESPACIAL (NOVA)
====================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;

  background-image: url("/static/img/bg-space.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  /* 🔮 integração visual */
  opacity: 0.42;
  mix-blend-mode: screen;

  z-index: -2;
  pointer-events: none;
}

/* ======================================
   CAMADA 3 — OVERLAY DE CONTRASTE (SEU)
====================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(122,162,255,0.07) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107,240,209,0.06) 0%,
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      rgba(5,7,15,0.25),
      rgba(5,7,15,0.85)
    );

  z-index: -1;
  pointer-events: none;
}

/* =============================================
   TOPBAR + MENU DE IDIOMAS (desktop + mobile)
   UPGRADE RESPONSIVO — sem quebrar layout atual
============================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122,162,255,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.brand {
  font-size: 1.72rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   MENU DE IDIOMAS — BASE ORIGINAL
============================================= */
.lang-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* container dos idiomas visíveis */
.lang-menu .lang-visible {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-menu a,
.lang-menu .lang-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-menu a:hover,
.lang-menu a.active,
.lang-menu .lang-item:hover,
.lang-menu .lang-item.active {
  background: rgba(107,240,209,0.18);
  color: white;
  box-shadow: 0 0 16px rgba(107,240,209,0.35);
}

/* =============================================
   BOTÃO "MAIS IDIOMAS"
============================================= */
.lang-more-btn {
  display: none; /* só aparece quando necessário */
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(122,162,255,0.18);
  color: white;
  font-size: 1.1rem;
  line-height: 1;
  transition: var(--transition);
}

.lang-more-btn:hover {
  background: rgba(107,240,209,0.35);
  box-shadow: 0 0 14px rgba(107,240,209,0.35);
}

/* =============================================
   DROPDOWN DE IDIOMAS (GLASS)
============================================= */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;

  background: rgba(18, 26, 52, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(122,162,255,0.22);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);

  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.lang-dropdown a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: rgba(107,240,209,0.22);
  color: white;
}

/* =============================================
   BREAKPOINTS PROGRESSIVOS
============================================= */

/* telas médias — reduz idiomas visíveis */
@media (max-width: 1100px) {
  .lang-menu .lang-visible .lang-item:nth-child(n+5) {
    display: none;
  }

  .lang-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* mobile — mostra só idioma ativo */
@media (max-width: 640px) {
  .lang-menu .lang-visible .lang-item {
    display: none;
  }

  .lang-menu .lang-visible .lang-item.active {
    display: inline-flex;
  }

  .lang-more-btn {
    display: inline-flex;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1vh 5vw 5vh;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.94;
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--neon-blue) 10%, var(--neon-cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 2.6rem;
  opacity: 0.93;
}

.btn-cta {
    padding: 1.25rem 3.2rem;
    font-size: 1.26rem;
    font-weight: 700;
    color: #0a1328;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    border: none;
    border-radius: 999px;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none; /* Remove underline */
    display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.035);
  box-shadow: 0 0 48px rgba(107,240,209,0.58);
}

/* =============================================
   DASHBOARD / CONVERSOR (Glass Card Grande)
   ============================================= */
.dashboard {
  padding: 0 5vw 12vh;
  position: relative;
  z-index: 5;
}

.swap-giant {
  position: relative;

  /* 🔹 BASE DE VIDRO */
  background:
  linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.10);

  /*backdrop-filter: blur(var(--blur-lg));*/
  /*-webkit-backdrop-filter: blur(var(--blur-lg));*/

  border: 1px solid rgba(107,240,209,0.32);
  border-radius: var(--radius-lg);

  box-shadow:
    var(--shadow-deep),
    0 0 48px rgba(107,240,209,0.35),
    0 0 64px rgba(122,162,255,0.28);

  padding: 3rem 3.2rem 2.6rem;
  max-width: 860px;
  margin: 0 auto;

  /* 🔥 ESSENCIAL PARA "ADICIONAR" */
  background-blend-mode: screen;
}

.swap-giant h2 {
  text-align: center;
  font-size: 1.92rem;
  font-weight: 800;
  color: var(--neon-blue);
  margin-bottom: 2.4rem;
}

.swap-giant::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(107,240,209,0.35),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(122,162,255,0.35),
      transparent 55%
    );

  mix-blend-mode: screen;
  opacity: 0.85;
}

/* ===============================
   CONTAINER PRINCIPAL
================================ */
.swap-row {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2.8rem;
  isolation: isolate; /* impede interferência externa */
}

/* ===============================
   CARTEIRAS — GLASS ADDITIVE
================================ */
.wallet-col {
  flex: 1 1 0;
  min-width: 0;

  /* 🔮 VIDRO + ADICIONAR (COREL STYLE) */
  background:
  linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.72);

  background-blend-mode: screen;

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  border: 1px solid rgba(107,240,209,0.32);
  border-radius: var(--radius);

  box-shadow:
    var(--shadow-deep),
    0 0 36px rgba(107,240,209,0.28),
    0 0 52px rgba(122,162,255,0.22);

  padding: 2rem 2.2rem;

  /* animação */
  transition:
    transform 0.65s cubic-bezier(0.68,-0.55,0.265,1.55),
    opacity   0.45s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;

  will-change: transform;
}

/* efeito de luz interna */
.wallet-col::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(107,240,209,0.45),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(122,162,255,0.42),
      transparent 50%
    );

  mix-blend-mode: screen;
  opacity: 0.85;
}

/* Hover / focus */
.wallet-col:hover,
.wallet-col:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(107,240,209,0.25);
  background: rgba(30,45,80,0.85);
}

/* ===============================
   CABEÇALHO DA CARTEIRA
================================ */
.wallet-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.wallet-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
  font-size: 2.1rem;
}

.wallet-icon.btc { background: #f7931a22; color: #f7931a; }
.wallet-icon.xmr { background: #ff660022; color: #ff6600; }

.wallet-title {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ===============================
   SALDO
================================ */
.wallet-balance {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.78rem;
  font-weight: 800;
  text-align: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.28);
  margin-bottom: 1.6rem;
}

#wallet-btc .wallet-balance { color: #ffad32; }
#wallet-xmr .wallet-balance { color: var(--success); }

/* ===============================
   INPUTS
================================ */
.wallet-actions input {
  width: 100%;
  padding: 1.15rem 1.4rem;
  font-size: 1.48rem;
  background: rgba(122,162,255,0.10);
  border: 1px solid rgba(122,162,255,0.24);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  transition: var(--transition);
}

.wallet-actions input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(107,240,209,0.26);
  background: rgba(107,240,209,0.09);
}

/* ===============================
   QR CODE
================================ */
.wallet-qrcode-area {
  margin-top: 1.4rem;
  background: rgba(107,240,209,0.08);
  border: 1px solid rgba(107,240,209,0.32);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}

.wallet-qrcode-instr {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* =========================================================
   ALERTA — CONFIRMAÇÕES MONERO (XMR)
========================================================= */

.xmr-confirmation-alert {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-size: 0.95rem;
  line-height: 1.4;

  color: #ffd9b3;
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.35);

  box-shadow: 0 0 18px rgba(255, 102, 0, 0.18);
}

/* Ícone do alerta (Monero — SVG local) */
.xmr-alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;

  /* garante cor Monero mesmo se o SVG for neutro */
  filter: invert(69%) sepia(95%) saturate(1800%)
          hue-rotate(10deg) brightness(1.2);
}

.xmr-confirmation-alert strong {
  color: #ffb36b;
  font-weight: 800;
}

/* Mobile: melhora leitura */
@media (max-width: 580px) {
  .xmr-confirmation-alert {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
}

/* =========================================================
   BOTÃO SWAP — FIXO DE VERDADE
   ========================================================= */

/* swap-mid NÃO participa do layout */
.swap-mid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* botão ancorado no centro absoluto do swap-row */
#swap-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #fff;
  font-size: 2.1rem;

  box-shadow: 0 12px 42px rgba(107,240,209,0.48);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#swap-btn:hover {
  box-shadow: 0 18px 64px rgba(107,240,209,0.68);
}

/* rotação sem deslocamento */
#swap-btn.swapping {
  animation: swapSpin 0.9s ease-in-out;
}

@keyframes swapSpin {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.12); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* =========================================================
   ANIMAÇÃO DAS CARTEIRAS
   ========================================================= */
.wallet-col.swap-move-right {
  transform: translateX(140%);
  opacity: 0.75;
}

.wallet-col.swap-move-left {
  transform: translateX(-140%);
  opacity: 0.75;
}

/* ===============================
   BOTÃO CONVERTER
================================ */
.btn-convert {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 2.6rem auto 1.6rem;
  padding: 1.4rem 2.4rem;
  font-size: 1.32rem;
  font-weight: 700;
  color: #091128;
  background: linear-gradient(
    90deg,
    var(--neon-cyan),
    var(--neon-blue) 55%,
    var(--neon-cyan)
  );
  background-size: 200% auto;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: var(--transition);
}

.btn-convert:hover {
  background-position: right center;
  transform: translateY(-6px);
  box-shadow: 0 24px 72px rgba(107,240,209,0.65);
}


/* ===== MODAL DE AVISO (AMARELO) ===== */

#warning-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.warning-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5;
  border-radius: 14px;
  padding: 1.6rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: modalPop .2s ease-out;
}

h3 {
  margin-bottom: 15px;
}

.warning-modal h3 {
  margin: 0 0 .6rem;
  font-size: 1.1rem;
}

.warning-modal p {
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

.modal-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 0.5rem 0;
}

.warning-btn {
  width: 100%;
  padding: .7rem;
  border-radius: 10px;
  border: none;
  background: #ffc107;
  color: #3b2f00;
  font-weight: 600;
  cursor: pointer;
}

.warning-btn:hover {
  background: #ffb300;
}

@keyframes modalPop {
  from { transform: translate(-50%, -45%) scale(.96); opacity: 0 }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1 }
}

/* =========================================================
   ALERTA DE AVISO — SALDO MÍNIMO / CONVERSÃO
========================================================= */

.status.warning {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-size: 0.95rem;
  line-height: 1.4;

  color: #7a5a00;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.45);

  box-shadow: 0 0 14px rgba(255, 193, 7, 0.25);
  margin-bottom: 20px;
}

.status.warning::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;

  background-image: url("/static/icons/alert-line.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* =========================
   MODAL DE AVISO GLOBAL
========================= */
#alert-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.alert-warning-box {
  position: relative;
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5;
  border-radius: 14px;
  padding: 1.6rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* ===============================
   STATUS
================================ */
.conversion-status {
  min-height: 32px;
  text-align: center;
  font-size: 1.12rem;
  margin-top: 1rem;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 820px) {

  .swap-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* mantém o botão flutuando no centro */
  .swap-mid {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
    z-index: 20;
  }

  #swap-btn {
    position: absolute !important;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    margin: 0;
  }

  /* animação vertical continua funcionando */
  .wallet-col.swap-move-right,
  .wallet-col.swap-move-left {
    transform: translateY(90px) scale(0.96);
    opacity: 0.85;
  }
  /* Quando QR está ativo, o swap some suavemente */
.swap-row.qr-active #swap-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

/* transição suave */
#swap-btn {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
}

/* =========================================================
   ESTILO EXCLUSIVO — iPhone SE (375x667)
========================================================= */
@media screen and (max-width: 375px) and (max-height: 667px) {
  #swap-btn {
    top: 410px !important;
  }
}

/* =============================================
   TRUST CARDS
   ============================================= */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw 10vh;
  position: relative;
  z-index: 3;
}

/* =============================================
   TRUST CARD — GLASS ADDITIVE (LIGHT)
============================================= */
.trust-card {
  position: relative;

  /* vidro aditivo leve */
  background:
  linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.10);

  background-blend-mode: screen;

  /*backdrop-filter: blur(var(--blur-md));*/
  /*-webkit-backdrop-filter: blur(var(--blur-md));*/

  border: 1px solid rgba(107,240,209,0.22);
  border-radius: var(--radius);

  box-shadow:
    0 6px 32px rgba(0,0,0,0.45),
    0 0 22px rgba(107,240,209,0.18);

  padding: 2rem 1.8rem;
  transition: var(--transition);
}

/* luz interna sutil */
.trust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(107,240,209,0.28),
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 80%,
      rgba(122,162,255,0.24),
      transparent 55%
    );

  mix-blend-mode: screen;
  opacity: 0.65;
}

.trust-card:hover {
  transform: translateY(-6px);

  border-color: var(--neon-cyan);

  box-shadow:
    0 12px 48px rgba(0,0,0,0.55),
    0 0 36px rgba(107,240,209,0.32);
}

.trust-card h3 {
  color: var(--neon-blue);
  font-size: 1.38rem;
  margin-bottom: 1rem;
}

/* =============================================
   COMO FUNCIONA + FAQ
   ============================================= */
.how-works,
.faq {
  max-width: 820px;
  margin: 0 auto 10vh;
  padding: 0 5vw;
  position: relative;
  z-index: 3;
}

.how-works h2,
.faq h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neon-blue);
  margin-bottom: 1.6rem;
  text-align: center;
}

.how-works ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.how-works li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.8rem;
  font-size: 1.14rem;
  line-height: 1.6;
}

.how-works li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--neon-cyan);
  color: #0a1328;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 1.18rem;
}

/* FAQ */
.faq-item {
  background: rgba(122,162,255,0.08);
  border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

.faq-item h4 {
  color: var(--neon-blue);
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.10);
  border-top: 1px solid rgba(122,162,255,0.14);
  color: var(--text-muted);
  padding: 6vh 5vw 4vh;
  position: relative;
  z-index: 3;
}

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

.footer strong {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* =============================================
   MODAL DE LOGIN / CONTA
   ============================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
}

.modal-login {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2100;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(107,240,209,0.32);
  border-radius: var(--radius-lg);
  width: 94%;
  max-width: 420px;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(107,240,209,0.28);
  padding: 2.2rem;
  animation: modal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#login-label {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin-bottom: 10px;
 }
 
@keyframes modal-pop {
  from { opacity: 0; transform: translate(-50%, -60%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.modal-header h3 {
  color: var(--neon-blue);
  font-size: 1.48rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--neon-cyan);
  transform: rotate(90deg);
}

#loginForm input {
  width: 100%;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  background: rgba(122,162,255,0.10);
  border: 1px solid rgba(122,162,255,0.28);
  border-radius: var(--radius);
  color: white;
  font-size: 1.12rem;
}

#loginForm input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(107,240,209,0.24);
  background: rgba(107,240,209,0.10);
}

.btn-glass,
.generate-btn {
  width: 100%;
  padding: 1.2rem;
  margin: 0.8rem 0;
  background: linear-gradient(90deg, rgba(122,162,255,0.35), rgba(107,240,209,0.45));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-glass:hover,
.generate-btn:hover {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
}

/* Responsividade geral */

@media (max-width: 580px) {
  .swap-giant {
    padding: 2rem 1.4rem 1.8rem;
  }
  .btn-convert {
    padding: 1.2rem 2rem;
    font-size: 1.22rem;
  }
  .modal-login {
    width: 96%;
    padding: 1.8rem;
  }
}

/* Placeholder */
::placeholder {
  color: rgba(200, 220, 255, 0.48);
}

/* QR Code Centering */
.qr {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}


/* ===============================
   MOBILE – botão swap no meio
================================ */

/* animação vertical correta */
.wallet-col.swap-move-up {
  transform: translateY(-140%);
  opacity: 0.75;
}

.wallet-col.swap-move-down {
  transform: translateY(140%);
  opacity: 0.75;
}



/* =========================================================
   QR / HASH — layout moderno + copiar
========================================================= */

.wallet-qrcode-area {
  position: relative;
}

/* container do endereço + botão */
.wallet-hash-wrap {
  margin-top: 0.9rem;
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-direction: column;
}

/* “chip” do endereço */
.wallet-hash {
  flex: 1;
  min-width: 0;

  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
  line-height: 1.2;

  padding: 0.9rem 1rem;
  border-radius: 14px;

  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(122,162,255,0.22);
  color: rgba(242,248,255,0.92);

  /* truncamento elegante */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  user-select: text;
  cursor: text;
}

/* ao passar o mouse, deixa mais “ativo” */
.wallet-hash:hover {
  border-color: rgba(107,240,209,0.42);
  box-shadow: 0 0 0 3px rgba(107,240,209,0.14);
}

/* botão copiar */
.copy-btn {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  padding: 0.4rem 1rem;
  border-radius: 14px;

  border: 1px solid rgba(107,240,209,0.32);
  background: linear-gradient(135deg, rgba(122,162,255,0.25), rgba(107,240,209,0.25));
  color: rgba(242,248,255,0.95);

  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;

  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(107,240,209,0.60);
  box-shadow: 0 18px 50px rgba(107,240,209,0.20);
  background: linear-gradient(135deg, rgba(122,162,255,0.35), rgba(107,240,209,0.38));
}

.copy-btn:active {
  transform: translateY(0px) scale(0.99);
}

.copy-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ícone simples */
.copy-btn .ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  opacity: 0.95;
}

/* toast de feedback */
.copy-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;

  background: rgba(5, 10, 25, 0.85);
  border: 1px solid rgba(107,240,209,0.32);
  box-shadow: 0 16px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);

  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font-size: 0.98rem;
  color: rgba(242,248,255,0.95);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* mobile: botão copiar embaixo */
@media (max-width: 580px) {
  .wallet-hash-wrap {
    flex-direction: column;
  }
  .copy-btn {
    width: 100%;
  }
}

/* Espaçamento extra no input de valor */
input#amount-in {
  margin-top: 10px;
}
input#amount-out {
  margin-top: 10px;
}


.icons-person {
  filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(10deg);
}

.icons-tor {
  filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(270deg);
}

.icons-xmr {
  filter: invert(69%) sepia(95%) saturate(1800%) hue-rotate(10deg) brightness(1.3);
}


/* =============================================
   FORMULÁRIOS INTERNOS
   ============================================= */
/* ======================================================
   TRANSFERÊNCIA MANUAL
====================================================== */

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.input-glass {
  padding: 1.05rem 1.25rem;
  font-size: 1.08rem;
  border-radius: var(--radius);
  border: 1px solid rgba(122,162,255,0.22);
  background: rgba(122,162,255,0.08);
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.input-glass:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(107,240,209,0.24);
  background: rgba(107,240,209,0.08);
  color: black;
}

.input-glass.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

/* ===== Carteira Preview ===== */

.wallet-preview {
  align-self: end;
  background: linear-gradient( 135deg, rgba(0, 0, 0, 0.2), rgba(0, 77, 255, 0.2) ), rgba(15, 22, 42, 0.72);
  border: 1px solid rgba(122,162,255,0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.wallet-preview .wallet-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(255,255,255,0.06);
}

.wallet-preview .wallet-icon.btc {
  background: #f7931a22;
  color: #f7931a;
}

.wallet-preview .wallet-icon.xmr {
  background: #ff660022;
  color: #ff6600;
}

@media (max-width: 820px) {
  .wallet-preview {
    max-width: 100%;
  }
}

/* Ícones das carteiras */
.icon-wallet-img {
  display: block;
  pointer-events: none;
  user-select: none;
}

.icons-btc {
  filter: invert(75%) sepia(100%) saturate(4000%) hue-rotate(0deg);
}

.icons-xmr {
  filter: invert(69%) sepia(95%) saturate(5500%) hue-rotate(10deg) brightness(130%);
}



/* =============================================
   History transactions table
============================================= */
.history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.history-icon {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 50px;
}

/* BASE neutra (remove a cor genérica que está estragando tudo) */
.icon-asset {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: none !important;
}

/* =========================
   HISTÓRICO: por arquivo SVG
   (não depende de classe extra)
========================= */

/* MONERO */
.history-icon img.icon-asset[src$="/monero.svg"],
.history-icon img.icon-asset[src$="monero.svg"] {
  filter:
    invert(55%)
    sepia(95%)
    saturate(3000%)
    hue-rotate(0deg)
    brightness(100%)
    contrast(110%) !important;
}

/* BITCOIN */
.history-icon img.icon-asset[src$="/bitcoin.svg"],
.history-icon img.icon-asset[src$="bitcoin.svg"] {
  filter:
    invert(74%)
    sepia(85%)
    saturate(2200%)
    hue-rotate(2deg)
    brightness(105%)
    contrast(105%) !important;
}

.icon-arrow {
  width: 16px;
  height: 16px;
}

.arrow-green {
  stroke: #5eff90;
}

.arrow-red {
  stroke: #ff5e5e;
}

.history-text {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.95rem;
  color: #fff;
}

.history-text small {
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 1rem;
}

/* =========================
   Barra de progresso — Transferência
   Estilo Windows (shimmer contínuo)
========================= */

.transfer-progress {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

/* Cabeçalho */
.transfer-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 6px;
  opacity: 0.85;
}

/* =========================
   Container da barra (trilho)
========================= */

.transfer-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* =========================
   Preenchimento real
========================= */

.transfer-progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #4ade80,
    #22c55e
  );
  transition: width 0.4s ease;
  z-index: 2;
}

/* =========================
   Brilho animado (sempre ativo)
   Independente do progresso
========================= */

.transfer-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  animation: transfer-glow 2.7s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* =========================
   Keyframes
========================= */

@keyframes transfer-glow {
  from {
    left: -40%;
  }
  to {
    left: 110%;
  }
}

/* =========================
   Nota informativa
========================= */

.transfer-progress-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}


/* =============================================
   BARRA DE PROGRESSO DE CONVERSÃO
   ============================================= */

.conversion-progress {
  margin-top: 1.2rem;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2cff9a, #5effb8, #2cff9a);
  background-size: 200% 100%;
  transition: width 0.25s linear;
  position: relative;
}

.progress-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );
  animation: shineMove 1.6s infinite;
}

@keyframes shineMove {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.progress-text {
  margin-top: 0.4rem;
  font-weight: 600;
  text-align: center;
}


/* =========================
   HISTÓRICO
========================= */

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}

/* =========================
   HISTÓRICO — CORES DE AÇÃO
========================= */

/* DEPÓSITO → VERDE */
.history-deposit .icon-action {
  filter:
    invert(63%)
    sepia(76%)
    saturate(520%)
    hue-rotate(85deg)
    brightness(1.1);
}

/* CONVERSÃO → AZUL */
.history-convert .icon-action {
  filter:
    invert(45%)
    sepia(92%)
    saturate(2800%)
    hue-rotate(210deg)
    brightness(1.1);
}

.history-transfer {
  border-left: 3px solid #ef4444;
}

.history-transfer .icon-action {
  filter:
    invert(32%)
    sepia(98%)
    saturate(6500%)
    hue-rotate(355deg)
    brightness(110%)
    contrast(110%);
}



/* =========================
   ÍCONES
========================= */

.history-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 64px;
}

.icon-asset {
  width: 26px;
  height: 26px;
}

.icon-action {
  width: 18px;
  height: 25px;
  opacity: 0.85;
  filter: none;
}

/* =========================
   TEXTO
========================= */

.history-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.history-text small {
  opacity: 0.65;
  font-size: 0.8rem;
  margin-top: 2px;
}
