@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-feature-settings: "tnum";
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0A0A0A;
  color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.view { display: none; }
.view.active { display: block; }

/* ==================== SIDEBAR ==================== */

.sidebar-accounts {
  width: 72px;
  background: #0D0D0D;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.account-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: rgba(255, 91, 39, 0.85);
}

.account-btn:hover {
  border-radius: 12px;
  transform: scale(1.05);
}

.account-btn.active {
  border-radius: 12px;
  box-shadow: 0 0 0 2px #0A0A0A, 0 0 0 4px rgba(255, 91, 39, 0.6);
}

.account-btn .tooltip {
  position: absolute;
  left: 60px;
  background: #1A1A1A;
  color: #FAFAFA;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
}

.account-btn:hover .tooltip { opacity: 1; }

#dashboard-global-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 91, 39, 0.9);
}

#dashboard-global-btn:hover {
  border-radius: 12px;
  transform: scale(1.05);
}

#dashboard-global-btn.active-account {
  box-shadow: 0 0 0 2px #0A0A0A, 0 0 0 4px rgba(255, 91, 39, 0.6);
  border-radius: 12px;
}

/* ==================== SIDEBAR NAV ==================== */

.sidebar-nav {
  width: 220px;
  background: #0D0D0D;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #8A8A8A;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #D4D4D4;
  background: rgba(255,255,255,0.03);
}

.nav-link.active {
  color: #FAFAFA;
  background: rgba(255, 91, 39, 0.08);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 16px;
  background: #FF5B27;
  border-radius: 0 2px 2px 0;
}

/* ==================== KPI CARDS ==================== */

.kpi-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.kpi-label {
  font-size: 13px;
  font-weight: 400;
  color: #8A8A8A;
  letter-spacing: 0;
}

.kpi-value {
  font-size: 24px;
  font-weight: 600;
  color: #FAFAFA;
  font-feature-settings: "tnum";
  line-height: 1.2;
  margin-top: 4px;
}

.kpi-value.orange { color: #FF5B27; }
.kpi-value.green { color: #22C55E; }
.kpi-value.blue { color: #3B82F6; }

/* ==================== CARDS ==================== */

.card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.card-highlight {
  background: #141414;
  border: 1px solid rgba(255, 91, 39, 0.12);
  border-radius: 14px;
}

/* ==================== PROGRESS BARS (FINAS) ==================== */

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== FUNNEL ==================== */

.funnel-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-bar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  height: 28px;
}

/* ==================== CHART ==================== */

.chart-bar {
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px 4px 0 0;
}

/* ==================== STATUS BADGES ==================== */

.status-paid {
  background: rgba(34, 197, 94, 0.08);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.12);
}

.status-pending {
  background: rgba(234, 179, 8, 0.08);
  color: #EAB308;
  border: 1px solid rgba(234, 179, 8, 0.12);
}

.status-abandoned {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.12);
}

/* ==================== TABLES ==================== */

.table-row {
  transition: background 0.15s ease;
}

.table-row:hover {
  background: rgba(255,255,255,0.02);
}

.table-header {
  font-size: 11px;
  font-weight: 500;
  color: #8A8A8A;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
  background: #FF5B27;
  color: #FAFAFA;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #E64A19;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #8A8A8A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: #D4D4D4;
}

/* ==================== INPUTS ==================== */

.input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #FAFAFA;
  transition: all 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(255, 91, 39, 0.4);
}

.input::placeholder {
  color: #525252;
}

.select {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #FAFAFA;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8A8A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.select:focus {
  outline: none;
  border-color: rgba(255, 91, 39, 0.4);
}

.select option {
  background: #1a1a1a;
  color: #FAFAFA;
  padding: 8px;
}

/* ==================== MODAL ==================== */

.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ==================== DATE PRESETS ==================== */

.date-preset {
  transition: all 0.15s ease;
  color: #8A8A8A;
  background: transparent;
}

.date-preset:hover {
  color: #D4D4D4;
}

.date-preset.date-active {
  background: #FF5B27 !important;
  color: #FAFAFA !important;
}

/* ==================== LIVE FEED ==================== */

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-item {
  transition: all 0.15s ease;
}

.live-item:hover {
  background: rgba(255,255,255,0.03);
}

/* ==================== ANIMATIONS ==================== */

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

.pulse { animation: pulse 2s infinite; }

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

.fade-in { animation: fadeIn 0.25s ease-out; }

/* ==================== MODAL SHOW ==================== */

#modal-overlay.show,
#txn-detail-overlay.show,
#profile-overlay.show,
#oferta-overlay.show {
  display: flex;
}
