/* Banco do Pedrão — Styles */

:root {
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --gray-900: #111827;
  --gray-950: #030712;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #030712;
  color: #fff;
}

/* Scrollbar customizado */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #111827;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #9ca3af;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  border-color: #4b5563;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(239,68,68,0.3);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.5);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34,197,94,0.3);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-success:hover {
  background: rgba(34,197,94,0.25);
  border-color: rgba(34,197,94,0.5);
}

/* Input */
.input-field {
  width: 100%;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid #1f2937;
  color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}

.input-field:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(234,179,8,0.15);
  background: rgba(17, 24, 39, 0.95);
}

.input-field::placeholder { color: #4b5563; }

/* Cards */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.5);
  backdrop-filter: blur(12px);
}

.auth-card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.stat-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: rgba(234, 179, 8, 0.2);
  background: rgba(17, 24, 39, 0.95);
}

.balance-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #1e3a5f 50%, #14532d 100%);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(55, 65, 81, 0.4);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-glow {
  box-shadow: 0 0 60px rgba(234, 179, 8, 0.1), 0 0 120px rgba(234, 179, 8, 0.05);
}

/* Package Cards */
.package-card {
  background: rgba(17, 24, 39, 0.8);
  border: 2px solid rgba(55, 65, 81, 0.4);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.package-card:hover {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.15);
}

.package-card.popular {
  border-color: rgba(234, 179, 8, 0.6);
  background: rgba(234, 179, 8, 0.05);
}

.package-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #111827;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.package-skeleton {
  background: rgba(55, 65, 81, 0.3);
  border-radius: 1rem;
  height: 180px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Tabs */
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.tab-btn:hover {
  color: #d1d5db;
  background: rgba(255,255,255,0.05);
}

.tab-btn.active {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

/* Error Box */
.error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.success-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(55, 65, 81, 0.7);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Toast */
.toast {
  background: #1f2937;
  border: 1px solid rgba(55, 65, 81, 0.7);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease;
  pointer-events: all;
  min-width: 280px;
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }
.toast.warning { border-color: rgba(234, 179, 8, 0.4); }
.toast.info { border-color: rgba(59, 130, 246, 0.4); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* Status badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: rgba(234, 179, 8, 0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }
.status-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* Transaction Row */
.tx-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
  transition: background 0.15s;
  gap: 1rem;
}

.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: rgba(255, 255, 255, 0.02); }

/* Page transitions */
.page {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #facc15;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* PIX code display */
.pix-code-box {
  background: rgba(17, 24, 39, 0.9);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #4ade80;
  word-break: break-all;
  text-align: center;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Crypto amount display */
.amount-display {
  font-family: 'Inter', monospace;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Admin specific */
.admin-badge {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover states */
.hover-lift {
  transition: transform 0.2s, box-shadow 0.2s;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Glow effects */
.glow-yellow { box-shadow: 0 0 20px rgba(234, 179, 8, 0.3); }
.glow-green { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }

/* Animated background dots (subtle) */
.bg-dots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .auth-card { padding: 1.5rem; }
  .modal-content { padding: 1.5rem; border-radius: 1rem; }
  .tx-row { flex-wrap: wrap; }
}

/* Font utility */
.font-inter { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.font-mono { font-family: 'Courier New', Courier, monospace; }
