:root {
  /* Theme variables (Dark Fintech Mode) */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.28);
  --accent: #06b6d4;
  --accent-color: #f59e0b;
  --bg-color-start: #070b12;
  --bg-color-end: #0f172a;
  --surface-1: rgba(15, 23, 42, 0.65);
  --surface-2: rgba(30, 41, 59, 0.45);
  --surface-light: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #f87171;
  --success: #10b981;
  --warning: #f59e0b;

  /* Glassmorphism Premium */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(16, 185, 129, 0.35);
  --glass-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* Scrollbar variables */
  --scrollbar-thumb: rgba(148, 163, 184, 0.28);
  --scrollbar-track: rgba(7, 11, 18, 0.6);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Legacy fallback for WebKit/Blink browsers without standard scrollbar-color */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
  }
}

body {
  background-color: var(--bg-color-start);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(6, 182, 212, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-color-start) 0%, #0a101d 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo {
  height: 34px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.25));
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #34d399; }

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  font-family: var(--font-heading);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* Forms */
.form-group { margin-bottom: 1.35rem; }
.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control::placeholder {
  color: rgba(148, 163, 184, 0.55);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(7, 11, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

/* Layouts & Helpers */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Auth Pages */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  position: relative;
}
.auth-wrapper::before {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.auth-box {
  width: 100%;
  max-width: 430px;
  padding: 2.5rem 2.25rem;
  border-radius: 20px;
}
.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-header h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}
.auth-header p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Dashboard Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-right: 1px solid var(--glass-border);
  background: rgba(7, 11, 18, 0.82);
}
.sidebar-logo {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  padding: 0.25rem 0.75rem;
}
.nav-menu {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.nav-item { margin-bottom: 0; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.nav-link.active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.25);
  font-weight: 600;
}
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 1.75rem 2.25rem 6rem;
  max-width: 1320px;
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 50;
  border-radius: 16px;
}
.topbar h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.user-profile { display: flex; align-items: center; gap: 0.85rem; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04130d;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Grids & Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card { padding: 1.5rem; position: relative; overflow: hidden; }
.stat-title { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Bot Store Legacy Classes */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.bot-card { padding: 2rem; text-align: center; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.2s; }
.bot-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); }
.bot-icon { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 0 15px currentColor; }
.bot-price { font-size: 2.5rem; font-weight: bold; color: var(--text-main); }
.bot-features { list-style: none; text-align: left; margin: 1rem 0; }
.bot-features li { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.bot-features li i { color: var(--success); margin-right: 0.5rem; }

/* Progress Bars */
.progress-container { width: 100%; background: rgba(0, 0, 0, 0.35); border-radius: 6px; height: 8px; margin-top: 0.5rem; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 6px; }

/* Tabs & Responsive Tables */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.28);
}
.tab-content { display: none; animation: fadeIn 0.28s ease; }
.tab-content.active { display: block; }

.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}
thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}
th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(8px);
}

/* Notifications Panel */
.notification-panel {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
.notification-item { padding: 1rem; border-bottom: 1px solid var(--glass-border); }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  width: 92%;
  max-width: 500px;
  transform: translateY(-16px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  position: relative;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateX(0); }
.toast.error { background: rgba(239, 68, 68, 0.95); }

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}
.bottom-nav-item {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.bottom-nav-item.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}
.bottom-nav-item i { font-size: 1.15rem; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}

/* ==================== NUEVO DASHBOARD UI ==================== */
/* ========== SALDO PRINCIPAL ========== */
.balance-hero {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.balance-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.balance-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-weight: 600;
}
.balance-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.35rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.balance-amount .currency {
  font-size: 1.4rem;
  color: #34d399;
  font-weight: 600;
  margin-right: 4px;
}
.balance-sub {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
}
.balance-sub .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* ========== TARJETA BOT ACTIVO ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  margin-top: 28px;
}
.section-title i {
  color: var(--primary);
  font-size: 1rem;
}

.dash-bot-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dash-bot-card.active-bot {
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78) 0%, rgba(16, 185, 129, 0.05) 100%);
}
.dash-bot-card.no-bot { opacity: 0.72; }
.dash-bot-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.dash-bot-icon.active { color: #34d399; }
.dash-bot-icon.inactive { color: #64748b; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.dash-bot-info { flex: 1; min-width: 0; }
.dash-bot-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; }
.dash-bot-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.dash-bot-meta span { display: flex; align-items: center; gap: 5px; }
.dash-bot-meta .success { color: #34d399; font-weight: 600; }
.dash-bot-profit {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #34d399;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.dash-bot-profit .label-mini {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ========== 3 TARJETAS RESUMEN ========== */
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.summary-card {
  padding: 22px 16px;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}
.summary-card .val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.summary-card .val.green { color: #34d399; }
.summary-card .val.red { color: #f87171; }
.summary-card .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== GRÁFICO DE BARRAS SIMPLE ========== */
.chart-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}
.chart-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 12px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  transition: height 0.4s ease;
  min-height: 3px;
}
.chart-bar.gain {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.chart-bar.loss {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}
.chart-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 10px; font-weight: 500; }
.chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  font-size: 0.8rem;
  justify-content: center;
  color: var(--text-muted);
}
.chart-legend span { display: flex; align-items: center; gap: 8px; }
.chart-legend .dot-leg { width: 10px; height: 10px; border-radius: 50%; }
.dot-leg.g { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.dot-leg.r { background: #f87171; }

/* ========== ÚLTIMOS MOVIMIENTOS ========== */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.tx-item {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tx-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.75);
}
.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  flex-shrink: 0;
}
.tx-icon.profit, .tx-icon.deposit {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.tx-icon.withdraw {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}
.tx-detail { flex: 1; min-width: 0; }
.tx-detail .tx-type { font-weight: 600; font-size: 0.95rem; color: #fff; }
.tx-detail .tx-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.tx-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tx-amount.positive { color: #34d399; }
.tx-amount.negative { color: #e2e8f0; }

/* ========== SALDO FLOTANTE ========== */
.saldo-flotante {
  margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.saldo-flotante .lbl { font-size: 0.85rem; color: #cbd5e1; font-weight: 500; }
.saldo-flotante .val { font-size: 1.45rem; font-weight: 800; color: #34d399; font-family: var(--font-heading); }

/* ========== TIENDA DE BOTS ========== */
.grid-bots { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0 0 30px; }
@media (min-width: 600px) { .grid-bots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-bots { grid-template-columns: 1fr 1fr 1fr; } }

.bot-card-tienda {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bot-card-tienda:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
}
.bot-card-tienda.activo {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.2);
}
.bot-card-tienda .nombre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.bot-card-tienda .nombre i { color: var(--primary); }
.bot-card-tienda .precio {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.bot-card-tienda .precio small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-family);
}
.barra-exito {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.barra-exito .fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.metas {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.metas span { font-weight: 600; }
.btn-comprar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-comprar:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
}
.btn-comprar:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-comprar.actual {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: none;
}

/* ========== MOVIMIENTOS & FORMS ========== */
.form-card {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 18px;
}
.form-card label { font-size: 0.82rem; color: #cbd5e1; font-weight: 600; }
.form-card input, .form-card select {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card input:focus, .form-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.info-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px;
  border-radius: 10px;
}
.filtro { margin: 0 0 14px; }
.filtro input {
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 0.9rem;
}
.filtro input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ========== REFERIDOS ========== */
.link-card {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 18px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.link-card input {
  flex: 1;
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #34d399;
  font-family: monospace;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
}
.link-card button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.resumen-ref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.resumen-ref .card {
  background: var(--glass-bg);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--glass-border);
}
.resumen-ref .val { font-size: 1.45rem; font-weight: 700; font-family: var(--font-heading); }
.resumen-ref .val.green { color: #34d399; }
.resumen-ref .lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.tabla-ref {
  margin: 0;
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
}
.ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.88rem;
}
.ref-item:last-child { border-bottom: none; }
.ref-item .estado { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.estado.califica { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.estado.pendiente { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }

/* ========== NOTIFICACIONES ========== */
.noti-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.noti-item {
  background: var(--glass-bg);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.noti-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.noti-icon.ganancia { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.noti-icon.sistema { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
.noti-icon.alerta { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.noti-content { flex: 1; }
.noti-title { font-weight: 600; font-size: 0.92rem; color: #fff; }
.noti-body { font-size: 0.84rem; color: var(--text-muted); margin-top: 2px; }
.noti-time { font-size: 0.72rem; color: #64748b; margin-top: 6px; }

/* ========== AJUSTES (METODOS PAGO) ========== */
.metodo-lista { margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.metodo-item {
  background: var(--glass-bg);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.metodo-info { font-size: 0.88rem; }
.metodo-info strong { color: #fff; }
.metodo-info .direccion { font-size: 0.78rem; color: var(--text-muted); word-break: break-all; font-family: monospace; }
.btn-eliminar {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-eliminar:hover { background: var(--danger); color: #fff; }

/* ========== ADMIN HELPERS ========== */
.badge-admin { background: #f59e0b; color: #000; font-weight: 700; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
@media (min-width: 600px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { background: var(--glass-bg); border-radius: 14px; padding: 16px; text-align: center; border: 1px solid var(--glass-border); }
.kpi-card .val { font-size: 1.5rem; font-weight: 700; }
.kpi-card .lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; }
.tabla { background: var(--glass-bg); border-radius: 16px; padding: 8px; border: 1px solid var(--glass-border); overflow-x: auto; margin: 0 0 16px; }
.btn-sm { padding: 6px 11px; border-radius: 8px; font-size: 0.72rem; border: none; cursor: pointer; font-weight: 600; }
.btn-edit { background: #3b82f6; color: #fff; }
.btn-success { background: var(--success); color: #04130d; }
.chat-box { background: var(--glass-bg); border-radius: 16px; padding: 14px; border: 1px solid var(--glass-border); max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; max-width: 80%; }
.chat-msg.user { background: rgba(255, 255, 255, 0.06); align-self: flex-start; }
.chat-msg.admin { background: rgba(16, 185, 129, 0.14); align-self: flex-end; color: #34d399; }
.chat-input { display: flex; gap: 8px; margin: 10px 0 16px; }
.chat-input input { flex: 1; background: rgba(7, 11, 18, 0.65); border: 1px solid var(--glass-border); color: #fff; padding: 10px 14px; border-radius: 10px; }

/* ========== BOT SCHEDULE SETTINGS PANEL ========== */
.bot-settings-panel {
  background: transparent;
  padding: 0;
  margin-top: 24px;
  width: 100%;
}
.bot-settings-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bot-settings-title i { color: var(--primary); }
.time-range-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.time-input-group { display: flex; flex-direction: column; gap: 4px; }
.time-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.time-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(7, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.time-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.time-input-wrapper i {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 8px;
  pointer-events: none;
}
.time-input-wrapper input[type="time"] {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: monospace;
}
.time-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.time-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.days-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.day-pill { cursor: pointer; flex: 1; min-width: 34px; }
.day-pill input[type="checkbox"] { display: none; }
.day-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 18, 0.45);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}
.day-pill input[type="checkbox"]:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #04130d;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.day-pill:hover span {
  border-color: rgba(16, 185, 129, 0.45);
  color: #fff;
}
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}
.switch-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.switch-label i { color: var(--primary); font-size: 0.85rem; }
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  cursor: pointer;
}
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: 0.3s;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}
.switch-toggle input:checked + .switch-slider {
  background-color: rgba(16, 185, 129, 0.22);
  border-color: var(--success);
}
.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.btn-save {
  width: auto;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}
.btn-save:hover {
  background: var(--primary);
  color: #04130d;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; padding-bottom: 92px; }
  .bottom-nav { display: flex; }
  .grid-cards { grid-template-columns: 1fr; }
  .toast-container { bottom: 80px; left: 16px; right: 16px; }
  .toast { width: 100%; }
  .summary-row { grid-template-columns: 1fr; gap: 10px; }
  .resumen-ref { grid-template-columns: 1fr; }
  .dash-bot-card { flex-direction: column; align-items: center; text-align: center; }
  .dash-bot-profit { text-align: center; width: 100%; margin-top: 10px; }
  .dash-bot-meta { justify-content: center; }
  .balance-hero { padding: 24px 18px; }
  .auth-box { padding: 2rem 1.5rem; }
}
