:root {
  /* Theme variables (Dark Mode default) */
  --primary: #10b981; /* Verde Nyqto */
  --primary-hover: #059669; /* Verde Oscuro Nyqto */
  --bg-color-start: #1a1a1a; 
  --bg-color-end: #1a1a1a; 
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #ff6b6b; 
  --success: #10b981; 
  --warning: #f59e0b;
  
  /* Glassmorphism Sutil */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: none;
  
  --font-family: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  background: var(--bg-color-start);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

.brand-logo {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-hover); }

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 8px; border: none; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease; text-align: center; font-family: var(--font-heading);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-glass { background: transparent; color: var(--text-main); border: 1px solid rgba(255,255,255,0.1); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,0.2); }
.btn-danger { background: var(--danger); color: white; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main);
  transition: all 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); }


/* Layouts */
.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-primary { color: var(--primary); }

.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; }
.auth-box { width: 100%; max-width: 400px; padding: 2.5rem; }

/* Dashboard Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; height: 100vh; position: fixed; left: 0; top: 0; padding: 1.5rem;
  display: flex; flex-direction: column; z-index: 100; border-right: 1px solid var(--glass-border);
}
.sidebar-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 3rem; text-align: center; }
.nav-menu { list-style: none; flex: 1; }
.nav-item { margin-bottom: 0.5rem; }
.nav-link {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem;
  color: var(--text-muted); border-radius: 8px; transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.1); color: var(--text-main); }
.main-content { flex: 1; margin-left: 250px; padding: 2rem; padding-bottom: 6rem; /* space for mobile nav */ }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding: 1rem 1.5rem; position: relative; z-index: 50;
}
.user-profile { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #000; display: flex; justify-content: center; align-items: center; font-weight: bold; }

/* 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.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-main); }
.stat-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%); z-index: -1; pointer-events: none; }

/* Bot Store */
.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: rgba(255, 255, 255, 0.1); }
.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.3); border-radius: 4px; height: 8px; margin-top: 0.5rem; overflow: hidden; }
.progress-bar { height: 100%; background: var(--success); border-radius: 4px; }


/* Tabs & Tables */
.tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; overflow-x: auto; }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s; white-space: nowrap; }
.tab-btn.active, .tab-btn:hover { background: var(--glass-bg); color: var(--text-main); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
th { color: var(--text-muted); font-weight: 500; }

/* 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(0, 0, 0, 0.8);
  backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center;
  z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { width: 90%; max-width: 500px; transform: translateY(-20px) scale(0.95); transition: all 0.3s ease; padding: 2rem; position: relative; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }

/* Toasts */
.toast-container { position: fixed; bottom: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: rgba(16, 185, 129, 0.95); color: white; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.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: 60px;
  background: var(--glass-bg); 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;
}
.bottom-nav-item { color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; text-decoration: none; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item i { font-size: 1.2rem; }

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; padding-bottom: 80px; }
  .bottom-nav { display: flex; }
  .grid-cards { grid-template-columns: 1fr; }
  .toast-container { bottom: 80px; left: 20px; right: 20px; }
  .toast { width: 100%; }
  
  /* Nuevos ajustes UI Dashboard */
  .summary-row { grid-template-columns: 1fr; gap: 10px; }
  .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; }
}

/* ==================== NUEVO DASHBOARD UI ==================== */
/* ========== SALDO PRINCIPAL ========== */
.balance-hero {
    background: transparent;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}
.balance-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.balance-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; }
.balance-amount .currency { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; margin-right: 4px; }
.balance-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.balance-sub .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; opacity: 0.8; }

/* ========== TARJETA BOT ACTIVO ========== */
.section-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; margin-top: 30px; }
.section-title i { color: var(--text-muted); font-size: 0.9rem; }

.dash-bot-card { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 24px; display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.05); }
.dash-bot-card.active-bot { border: 1px solid rgba(255,255,255,0.1); }
.dash-bot-card.no-bot { opacity: 0.6; }
.dash-bot-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.dash-bot-icon.active { color: #fff; }
.dash-bot-icon.inactive { color: #666; }
.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: 12px; flex-wrap: wrap; margin-top: 6px; }
.dash-bot-meta span { display: flex; align-items: center; gap: 4px; }
.dash-bot-meta .success { color: var(--text-main); }
.dash-bot-profit { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: #fff; text-align: right; flex-shrink: 0; }
.dash-bot-profit .label-mini { font-family: var(--font-family); font-size: 0.75rem; color: var(--text-muted); font-weight: 400; display: block; margin-bottom: 4px; }

/* ========== 3 TARJETAS RESUMEN ========== */
.summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.summary-card { padding: 20px 16px; text-align: center; }
.summary-card .val { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1; color: #fff; }
.summary-card .val.green { color: #fff; }
.summary-card .val.red { color: #fff; }
.summary-card .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ========== GRÁFICO DE BARRAS SIMPLE ========== */
.chart-section { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 24px; margin-bottom: 30px; }
.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: 0 4px; }
.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: 24px; border-radius: 4px; transition: height 0.4s ease; min-height: 2px; }
.chart-bar.gain { background: rgba(255,255,255,0.8); }
.chart-bar.loss { background: rgba(255,255,255,0.2); }
.chart-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 10px; }
.chart-legend { display: flex; gap: 20px; margin-top: 20px; 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: 8px; height: 8px; border-radius: 50%; }
.dot-leg.g { background: rgba(255,255,255,0.8); }
.dot-leg.r { background: rgba(255,255,255,0.2); }

/* ========== ÚLTIMOS MOVIMIENTOS ========== */
.tx-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.tx-item { padding: 16px 0; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tx-item:last-child { border-bottom: none; }
.tx-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; background: rgba(255,255,255,0.03); color: var(--text-muted); }
.tx-detail { flex: 1; min-width: 0; }
.tx-detail .tx-type { font-weight: 500; font-size: 0.95rem; color: #fff; }
.tx-detail .tx-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.tx-amount { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; text-align: right; }
.tx-amount.positive { color: #fff; }
.tx-amount.negative { color: var(--text-muted); }

/* ========== SALDO FLOTANTE ========== */
.saldo-flotante { margin: 0 16px 16px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--glass-border); }
.saldo-flotante .lbl { font-size: 0.75rem; color: var(--text-muted); }
.saldo-flotante .val { font-size: 1.3rem; font-weight: 700; color: #fff; }

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

.bot-card-tienda { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 24px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 16px; }
.bot-card-tienda.activo { border-color: rgba(255,255,255,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(--text-muted); }
.bot-card-tienda .precio { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: #fff; }
.bot-card-tienda .precio small { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-family); }
.barra-exito { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.barra-exito .fill { height: 100%; background: #fff; border-radius: 4px; transition: width 0.4s; }
.metas { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.metas span { font-weight: 500; }
.btn-comprar { background: #fff; color: #000; font-family: var(--font-heading); font-weight: 700; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: 0.2s; margin-top: 10px; }
.btn-comprar:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; }
.btn-comprar.actual { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; }

/* ========== MOVIMIENTOS & FORMS ========== */
.form-card { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 18px; border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 14px; margin: 0 16px 16px; }
.form-card label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.form-card input, .form-card select { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: #fff; padding: 12px; border-radius: 10px; font-size: 0.9rem; width: 100%; }
.info-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; }
.filtro { margin: 0 16px 10px; }
.filtro input { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: #fff; padding: 10px; border-radius: 8px; width: 100%; font-size: 0.85rem; }

/* ========== REFERIDOS ========== */
.link-card { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 16px; margin: 0 16px 16px; border: 1px solid var(--glass-border); display: flex; align-items: center; gap: 10px; }
.link-card input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: #fff; padding: 10px; border-radius: 8px; font-size: 0.8rem; }
.link-card button { background: var(--success); color: #000; border: none; padding: 10px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.resumen-ref { display: flex; gap: 10px; margin: 0 16px 16px; }
.resumen-ref .card { flex: 1; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; text-align: center; border: 1px solid var(--glass-border); }
.resumen-ref .val { font-size: 1.3rem; font-weight: 700; }
.resumen-ref .val.green { color: var(--success); }
.resumen-ref .lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.tabla-ref { margin: 0 16px; background: rgba(0,0,0,0.2); border-radius: 16px; padding: 8px; border: 1px solid var(--glass-border); }
.ref-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-bottom: 1px solid var(--glass-border); font-size: 0.85rem; }
.ref-item:last-child { border-bottom: none; }
.ref-item .estado { font-size: 0.7rem; padding: 4px 8px; border-radius: 12px; font-weight: 600; }
.estado.califica { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.estado.pendiente { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* ========== NOTIFICACIONES ========== */
.noti-list { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.noti-item { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; border: 1px solid var(--glass-border); display: flex; gap: 10px; align-items: flex-start; }
.noti-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.noti-icon.ganancia { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.noti-icon.sistema { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
.noti-icon.alerta { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.noti-content { flex: 1; }
.noti-title { font-weight: 600; font-size: 0.9rem; }
.noti-body { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.noti-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ========== AJUSTES (METODOS PAGO) ========== */
.metodo-lista { margin: 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.metodo-item { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; border: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.metodo-info { font-size: 0.85rem; }
.metodo-info strong { color: #fff; }
.metodo-info .direccion { font-size: 0.75rem; color: var(--text-muted); word-break: break-all; }
.btn-eliminar { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; }

/* ========== ADMIN ========== */
.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: 10px; margin: 0 16px 16px; }
@media (min-width: 600px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; 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.65rem; color: var(--text-muted); text-transform: uppercase; }
.tabla { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 8px; border: 1px solid var(--glass-border); overflow-x: auto; margin: 0 16px 16px;}
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--glass-border); }
th { color: var(--text-muted); font-weight: 600; }
.btn-sm { padding: 5px 10px; border-radius: 6px; font-size: 0.7rem; border: none; cursor: pointer; font-weight: 600; }
.btn-edit { background: #3b82f6; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #000; }
.chat-box { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 14px; border: 1px solid var(--glass-border); max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 0 16px; }
.chat-msg { padding: 8px 12px; border-radius: 8px; font-size: 0.8rem; max-width: 80%; }
.chat-msg.user { background: rgba(255,255,255,0.05); align-self: flex-start; }
.chat-msg.admin { background: rgba(245, 158, 11, 0.1); align-self: flex-end; color: #f59e0b; }
.chat-input { display: flex; gap: 8px; margin: 10px 16px 16px; }
.chat-input input { flex:1; background: rgba(0,0,0,0.3); border:1px solid var(--glass-border); color:#fff; padding:10px; border-radius:8px; }

/* ========== 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.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bot-settings-title i {
    color: var(--text-muted);
}
.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(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    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 8px rgba(212, 175, 55, 0.25);
}
.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: 32px;
}
.day-pill input[type="checkbox"] {
    display: none;
}
.day-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.72rem;
    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: #000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.day-pill:hover span {
    border-color: rgba(212, 175, 55, 0.5);
    color: #fff;
}
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}
.switch-label {
    font-size: 0.8rem;
    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.2);
    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: transparent;
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}
.btn-save:hover {
    background: rgba(255,255,255,0.05);
}
