/**
 * JUQOR — Componentes
 * 
 * Botões, inputs, cards glass, badges e elementos reutilizáveis.
 */

/* ══════════════════════════════════════
   GLASS CARD
   ══════════════════════════════════════ */
.glass {
  background: linear-gradient(135deg, var(--card)ee, var(--bg2)dd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  transition: all 0.3s var(--ease);
}
.glass:hover {
  border-color: var(--b3);
}
.glass.interactive {
  cursor: pointer;
}
.glass.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--a3);
}
.glass.selected {
  border-color: var(--a)60 !important;
  box-shadow: var(--shadow-glow), inset 0 0 0 1px var(--a)30;
}

/* ══════════════════════════════════════
   BOTÕES
   ══════════════════════════════════════ */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--a), #04b890);
  color: var(--bg0);
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.3s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--a2);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  background: var(--bg3);
  color: var(--t1);
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--b3);
  background: var(--surface);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 12px;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s;
}
.btn-ghost:hover {
  color: var(--t1);
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-icon:hover {
  border-color: var(--b3);
  background: var(--surface);
}

.btn-round {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--b1);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.btn-round:hover {
  border-color: var(--b3);
}

/* ══════════════════════════════════════
   INPUT
   ══════════════════════════════════════ */
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  background: var(--bg2);
  color: var(--t0);
  font-family: var(--fh);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.input:focus {
  border-color: var(--a)50;
}
.input::placeholder {
  color: var(--t4);
}

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 9px;
  font-family: var(--fm);
  font-weight: 600;
}
.badge-green { background: var(--green-d); color: var(--green); border: 1px solid var(--green)20; }
.badge-red   { background: var(--red-d);   color: var(--red);   border: 1px solid var(--red)20;   }
.badge-sol   { background: var(--sol-d);   color: var(--sol);   border: 1px solid var(--sol)20;   }
.badge-gold  { background: var(--gold2);   color: var(--gold);  font-weight: 700; letter-spacing: 1px; }
.badge-usdt  { background: var(--usdt-d);  color: var(--usdt);  border: 1px solid var(--usdt)20;  }
.badge-usdc  { background: var(--usdc-d);  color: var(--usdc);  border: 1px solid var(--usdc)20;  }
.badge-orange{ background: var(--orange-d);color: var(--orange); border: 1px solid var(--orange)20;}

/* ══════════════════════════════════════
   DOTS
   ══════════════════════════════════════ */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--green);
  box-shadow: 0 0 8px var(--green)80;
}
.dot-sm { width: 5px; height: 5px; }
.dot-lg { width: 11px; height: 11px; }

/* ══════════════════════════════════════
   DIVIDERS
   ══════════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b1), transparent);
}
.divider-solid {
  height: 1px;
  background: var(--b1);
}

/* ══════════════════════════════════════
   SPINNER / LOADING
   ══════════════════════════════════════ */
.spinner {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  border: 2px solid var(--b2);
  border-top-color: var(--a);
  animation: spin 1.2s linear infinite;
}
.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ══════════════════════════════════════
   STEP DOTS (loading screens)
   ══════════════════════════════════════ */
.step-dots {
  display: flex;
  gap: 8px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--b2);
  transition: all 0.4s var(--ease);
}
.step-dot.active {
  background: var(--a);
  box-shadow: 0 0 8px var(--a2);
}

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: linear-gradient(180deg, var(--card), var(--bg1));
  border: 1px solid var(--b1);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.modal-head {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-title {
  font-size: 16px;
  color: var(--t0);
  font-weight: 700;
}
.modal-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 4px;
}
.modal-body {
  padding: 16px 24px 32px;
}

/* ══════════════════════════════════════
   QR CODE WRAPPER
   ══════════════════════════════════════ */
.qr-wrap {
  width: 164px;
  height: 164px;
  background: white;
  padding: 10px;
  border-radius: 14px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   CRYPTO SELECTOR
   ══════════════════════════════════════ */
.crypto-option {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.crypto-option .crypto-radio {
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  border: 2px solid var(--t4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.crypto-option.selected .crypto-radio {
  border-color: var(--a);
}
.crypto-option .crypto-radio-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  background: var(--a);
  box-shadow: 0 0 6px var(--a);
  display: none;
}
.crypto-option.selected .crypto-radio-dot {
  display: block;
}
