/* ===== WYSHAPP DESIGN SYSTEM v1 (desde cero) ===== */
/* Colores alineados con la landing: azul #0A2540 + verde #00C853 */
:root {
  --bg: #F8FAFC;
  --bg2: #FFFFFF;
  --dark: #0A2540;
  --green: #00C853;
  --green-pale: rgba(0,200,83,0.12);
  --text1: #1A1A2E;
  --text2: #64748B;
  --text3: #94A3B8;
  --border: rgba(10,37,64,0.10);
  --sidebar: #0A2540;
  --sidebar-w: 220px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --red: #DC2626;
  --red-pale: rgba(220,38,38,0.12);
  --amber: #D97706;
  --amber-pale: rgba(217,119,6,0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); font-family: 'Inter', system-ui, -apple-system, sans-serif; min-height: 100vh; color: var(--text1); }

/* LAYOUT */
.layout { display: flex; min-height: 100vh; }
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* SIDEBAR — v2 claro por defecto; legacy oscuro solo sin .sidebar-v2 */
.sidebar:not(.sidebar-v2) { width: var(--sidebar-w); background: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; }
.sidebar.sidebar-v2 {
  width: var(--sidebar-w);
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}
.sidebar.sidebar-v2 .sidebar-logo {
  color: #0F172A;
  border-bottom: none;
  padding: 0;
}
.sidebar.sidebar-v2 .sidebar-logo span { color: #2563EB; }
.sidebar.sidebar-v2 .sidebar-link { color: #64748B; }
.sidebar.sidebar-v2 .sidebar-link.active { color: #2563EB; background: rgba(37, 99, 235, 0.08); }
.sidebar.sidebar-v2 .sidebar-link-icon { background: transparent; }
.sidebar.sidebar-v2 .sidebar-link-icon i { color: #64748B; }
.sidebar.sidebar-v2 .sidebar-group-label { color: #64748B; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 12px 4px; }
.sidebar-logo { font-size: 20px; font-weight: 600; color: #fff; padding: 18px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; display: block; letter-spacing: -0.3px; }
.sidebar-logo span { color: var(--green); }
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-section { margin-bottom: 18px; }
.nav-section-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; padding: 0 12px; margin-bottom: 3px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; color: rgba(255,255,255,0.55); cursor: pointer; text-decoration: none; transition: all 0.15s; margin-bottom: 1px; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(0,200,83,0.15); color: var(--green); }
.nav-item i { font-size: 16px; width: 18px; flex-shrink: 0; line-height: 1; }
.nav-lock-badge { margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.25); display: flex; align-items: center; gap: 3px; }
.sidebar-user { padding: 10px 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user-inner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.sidebar-user-inner:hover { background: rgba(255,255,255,0.05); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,200,83,0.2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--green); flex-shrink: 0; }
.user-name { font-size: 12px; font-weight: 500; color: #fff; line-height: 1.2; }
.user-plan { font-size: 10px; color: rgba(255,255,255,0.3); }
.user-logout { margin-left: auto; color: rgba(255,255,255,0.2); font-size: 14px; text-decoration: none; }
.user-logout:hover { color: rgba(255,255,255,0.5); }

/* TOPBAR */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 7px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 50; min-height: 42px; }
.topbar-title { font-size: 13px; font-weight: 600; color: var(--text1); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.bot-status-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: #16a34a; background: #dcfce7; padding: 3px 10px; border-radius: 20px; }
.bot-status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.bot-status-badge.offline { color: var(--text2); background: var(--bg); }
.bot-status-badge.offline .dot { background: #94a3b8; }
.plan-pill { font-size: 11px; color: var(--text2); background: var(--bg); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }

/* CONTENT */
.content { padding: 14px 18px; flex: 1; }
.page-title { font-size: 18px; font-weight: 600; color: var(--text1); margin-bottom: 16px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-header .page-title { margin-bottom: 0; }

/* CARDS */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text1); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card-title i { font-size: 15px; color: var(--green); }

/* METRICS */
.metrics-grid { display: grid; gap: 12px; margin-bottom: 16px; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.metrics-grid.col-4 { grid-template-columns: repeat(4,1fr); }
.metrics-grid.col-3 { grid-template-columns: repeat(3,1fr); }
.metrics-grid.col-2 { grid-template-columns: repeat(2,1fr); }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.metric-label { font-size: 11px; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 500; }
.metric-value { font-size: 26px; font-weight: 600; color: var(--text1); line-height: 1; }
.metric-sub { font-size: 11px; color: #16a34a; margin-top: 5px; }
.metric-sub.warn { color: #d97706; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; border: none; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.btn i { font-size: 14px; }
.btn-primary { background: var(--green); color: var(--dark); }
.btn-primary:hover { background: #00b348; }
.btn-secondary { background: transparent; color: var(--text1); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 4px 9px; font-size: 11px; }
.btn-sm i { font-size: 13px; }
.btn-icon { padding: 6px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border); color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; }
.btn-icon:hover { background: var(--bg); color: var(--text1); }

/* BADGES */
.badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef9c3; color: #ca8a04; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-blue { background: #dbeafe; color: #2563eb; }
.badge-gray { background: var(--bg); color: var(--text2); border: 1px solid var(--border); }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* TABLES */
.table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-header-title { font-size: 13px; font-weight: 600; color: var(--text1); }
.search-input { padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; font-family: inherit; font-size: 13px; outline: none; width: 200px; background: var(--bg); }
.search-input:focus { border-color: var(--green); background: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 9px 14px; text-align: left; font-size: 10px; font-weight: 600; color: var(--text2); border-bottom: 1px solid var(--border); background: var(--bg); text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 11px 14px; color: var(--text1); border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(248,250,252,0.8); }
.td-muted { color: var(--text2); font-size: 12px; }

/* FORMS */
.form-grid { display: grid; gap: 14px; }
.form-grid.col-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.4px; }
.form-input, .form-select, .form-textarea { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text1); background: var(--bg2); font-family: inherit; outline: none; transition: border-color 0.15s; width: 100%; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); background: white; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* TOGGLES */
.toggle-list { display: flex; flex-direction: column; }
.toggle-section-sep { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px 4px; }
.toggle-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background 0.15s; }
.toggle-item:hover { background: var(--bg); }
.toggle-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toggle-icon i { font-size: 16px; color: var(--text2); }
.toggle-icon.on i { color: var(--green); }
.toggle-info { flex: 1; min-width: 0; }
.toggle-name { font-size: 13px; font-weight: 500; color: var(--text1); }
.toggle-desc { font-size: 11px; color: var(--text2); margin-top: 1px; }
input[type=checkbox].switch-native { display: none; }
.switch-ui { width: 36px; height: 20px; border-radius: 10px; background: #CBD5E1; display: block; position: relative; cursor: pointer; transition: background 0.2s; }
.switch-ui::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: white; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
input[type=checkbox].switch-native:checked + .switch-ui { background: var(--green); }
input[type=checkbox].switch-native:checked + .switch-ui::after { transform: translateX(16px); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,37,64,0.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 16px; padding: 28px; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(10,37,64,0.15); }
.modal-title { font-size: 16px; font-weight: 600; color: var(--text1); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; justify-content: center; padding: 10px; }

/* ALERTS */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 14px; font-size: 13px; }
.alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-warn i { color: #d97706; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert-success i { color: #16a34a; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a5f; }
.alert-info i { color: #2563eb; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-danger i { color: #dc2626; }
.upgrade-banner { background: var(--dark); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.upgrade-banner-text strong { color: #fff; font-size: 14px; display: block; margin-bottom: 2px; }
.upgrade-banner-text span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* STATUS */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.green { background: var(--green); }
.status-dot.yellow { background: #eab308; }
.status-dot.red { background: #ef4444; }
.status-dot.gray { background: #94a3b8; }

/* QUOTA BAR */
.quota-bar-bg { height: 5px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.quota-bar-fill { height: 100%; border-radius: 10px; transition: width 0.3s; }
.quota-bar-fill.green { background: var(--green); }
.quota-bar-fill.yellow { background: #eab308; }
.quota-bar-fill.red { background: #ef4444; }
.quota-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2); margin-bottom: 4px; }

/* CHECKLIST */
.checklist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; background: var(--bg); }
.checklist-left { display: flex; align-items: center; gap: 10px; }
.checklist-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checklist-icon i { font-size: 15px; color: var(--text2); }
.checklist-name { font-size: 13px; font-weight: 500; color: var(--text1); }
.checklist-sub { font-size: 11px; color: var(--text2); }

/* QUICK ACTIONS */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text1); background: var(--bg); transition: all 0.15s; }
.quick-btn:hover { background: white; border-color: rgba(10,37,64,0.18); }
.quick-btn-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-btn-icon i { font-size: 15px; color: var(--green); }
.quick-btn-name { font-size: 12px; font-weight: 600; }
.quick-btn-desc { font-size: 11px; color: var(--text2); }

/* BANDEJA LAYOUT */
.bandeja-layout { display: flex; height: calc(100vh - 48px); overflow: hidden; }
.hilos-panel { width: 290px; border-right: 1px solid var(--border); background: white; display: flex; flex-direction: column; flex-shrink: 0; }
.hilos-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.hilos-header i { color: var(--green); }
.hilos-list { flex: 1; overflow-y: auto; }
.chat-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.chat-header-bar { padding: 12px 18px; border-bottom: 1px solid var(--border); background: white; flex-shrink: 0; font-size: 14px; font-weight: 600; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-input-area { padding: 12px 18px; border-top: 1px solid var(--border); background: white; display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.chat-textarea { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; color: var(--text1); background: var(--bg); outline: none; resize: none; transition: border-color 0.15s; max-height: 100px; }
.chat-textarea:focus { border-color: var(--green); background: white; }
.fallback-box { display: none; padding: 12px 18px; border-top: 1px solid rgba(245,158,11,0.3); background: #fffbeb; gap: 12px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.fallback-box.visible { display: flex; }
.bandeja-bloqueado { padding: 12px 18px; border-top: 1px solid var(--border); background: #fef9c3; color: #92400e; font-size: 13px; font-weight: 500; text-align: center; flex-shrink: 0; }
.bandeja-bloqueado a { color: #92400e; font-weight: 700; text-decoration: underline; }
.tickets-box { padding: 10px 18px; border-bottom: 1px solid var(--border); background: #fffbeb; flex-shrink: 0; }
.tickets-box h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #92400e; }
.ticket-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 6px 0; border-top: 1px solid rgba(146,64,14,0.1); }
.ticket-row:first-child { border-top: none; padding-top: 0; }
.ticket-meta { font-size: 11px; color: #78350f; font-weight: 700; white-space: nowrap; }
.ticket-body { flex: 1; font-size: 11px; color: #92400e; line-height: 1.35; }

/* AUTH PAGES */
.auth-layout { display: flex; min-height: 100vh; }
.auth-side { width: 360px; flex-shrink: 0; background: var(--dark); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 40px; }
.auth-side-logo { font-size: 26px; font-weight: 600; color: white; margin-bottom: 28px; }
.auth-side-logo span { color: var(--green); }
.auth-side-tagline { font-size: 20px; font-weight: 600; color: white; line-height: 1.35; margin-bottom: 14px; }
.auth-side-sub { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form-box { width: 100%; max-width: 400px; }
.auth-form-title { font-size: 22px; font-weight: 600; color: var(--text1); margin-bottom: 6px; }
.auth-form-sub { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.auth-link { font-size: 13px; color: var(--text2); margin-top: 18px; text-align: center; }
.auth-link a { color: var(--green); font-weight: 600; text-decoration: none; }
.auth-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.section-label-form { font-size: 10px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px; }

/* AUTH STANDALONE (login/registro) */
.auth-body { background: var(--bg); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; color: var(--dark); }
.auth-nav { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: white; }
.auth-logo { font-weight: 600; font-size: 22px; text-decoration: none; color: var(--dark); }
.auth-logo span { color: var(--green); }
.auth-nav-link { font-size: 14px; color: var(--text2); text-decoration: none; }
.auth-nav-link:hover { color: var(--dark); }
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; width: 100%; max-width: 420px; box-shadow: 0 10px 30px rgba(10,37,64,0.08); }
.auth-card-wide { max-width: 520px; }
.auth-card-header { margin-bottom: 32px; text-align: center; }
.auth-card-header-left { text-align: left; }
.auth-card-logo { font-weight: 600; font-size: 32px; margin-bottom: 16px; color: var(--dark); }
.auth-card-logo span { color: var(--green); }
.auth-card-header h1 { font-size: 24px; font-weight: 500; letter-spacing: -0.2px; margin-bottom: 6px; color: var(--dark); }
.auth-card-header p { font-size: 14px; color: var(--text2); }
.auth-error-box { background: #FEE2E2; border: 1px solid #FECACA; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #D62828; margin-bottom: 20px; }
.btn-auth-submit { width: 100%; padding: 14px; background: var(--green); border: none; border-radius: 8px; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-size: 15px; font-weight: 600; color: var(--dark); cursor: pointer; margin-top: 8px; transition: all 0.2s; }
.btn-auth-submit:hover { filter: brightness(0.97); }
.auth-footer-link { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text2); }
.auth-footer-link a { color: var(--green); font-weight: 600; text-decoration: none; }
.auth-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin: 24px 0 12px; }
.auth-section-label:first-of-type { margin-top: 0; }
.auth-demo-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-pale); border: 1px solid rgba(0,200,83,0.20); border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--green); margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-req { color: var(--green); }
.form-opt { font-size: 11px; color: var(--text2); margin-left: 4px; }
.form-help { margin-top: 6px; font-size: 12px; color: var(--text2); line-height: 1.4; }

/* PLAN CARDS */
.planes-wrap { background: var(--dark); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.plan-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.plan-card { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 16px; cursor: pointer; transition: all 0.2s; position: relative; }
.plan-card:hover { border-color: rgba(0,200,83,0.4); }
.plan-card.selected { border-color: var(--green); background: rgba(0,200,83,0.1); }
.plan-card.popular { border-color: var(--green); }
.popular-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--dark); font-size: 10px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.current-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: none; }
.plan-card.current .current-badge { display: inline-flex; }
.plan-name { font-size: 15px; font-weight: 600; color: white; margin-bottom: 4px; }
.plan-price { font-size: 24px; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.35); }
.plan-features { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.plan-features li { font-size: 11px; color: rgba(255,255,255,0.7); display: flex; align-items: flex-start; gap: 5px; line-height: 1.3; }
.plan-features li i { color: var(--green); font-size: 12px; flex-shrink: 0; }
.plan-features li.no { color: rgba(255,255,255,0.3); }
.plan-features li.no i { color: rgba(255,255,255,0.2); }
.plan-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 10px 0; }
.btn-upgrade { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); color: white; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; margin-top: 12px; }
.btn-upgrade:hover { border-color: rgba(0,200,83,0.6); background: rgba(0,200,83,0.12); }
.btn-upgrade.primary { background: var(--green); border-color: var(--green); color: var(--dark); }
.btn-upgrade.primary:hover { background: #00b348; }
.btn-upgrade.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.lock-alert { display: none; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.lock-alert.visible { display: block; }
.lock-alert h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 3px; }
.lock-alert p { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.pago-section { margin-top: 16px; }
.pago-section h3 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.metodos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.metodo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; background: rgba(255,255,255,0.04); }
.metodo:hover { border-color: rgba(0,200,83,0.5); }
.metodo.selected { border-color: var(--green); background: rgba(0,200,83,0.1); }
.metodo-icon { font-size: 22px; }
.metodo-info h4 { font-size: 13px; font-weight: 600; color: white; }
.metodo-info p { font-size: 11px; color: rgba(255,255,255,0.4); }
.instr { background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 14px; display: none; margin-bottom: 14px; }
.instr.visible { display: block; }
.instr h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 8px; }
.instr p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 4px; }
.num-pago { font-family: monospace; font-size: 18px; font-weight: 700; color: white; background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: var(--radius-sm); display: inline-block; margin: 6px 0; letter-spacing: 1px; }
.form-label-dark { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-input-dark { width: 100%; padding: 9px 12px; border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; color: white; background: rgba(255,255,255,0.07); outline: none; transition: border-color 0.15s; }
.form-input-dark:focus { border-color: var(--green); background: rgba(255,255,255,0.1); }
.form-input-dark::placeholder { color: rgba(255,255,255,0.25); }
.btn-solicitar { width: 100%; padding: 14px; background: var(--green); border: none; border-radius: var(--radius); font-family: inherit; font-size: 15px; font-weight: 700; color: var(--dark); cursor: pointer; transition: all 0.2s; margin-top: 4px; }
.btn-solicitar:hover { background: #00b348; }
.nota-footer { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 10px; line-height: 1.7; }
.activo-box { background: var(--green-pale); border: 1px solid rgba(45,106,79,0.2); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; }
.activo-box h2 { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.activo-box p { font-size: 13px; color: var(--green); opacity: 0.85; }
.incluye-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.incluye-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.incluye-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.incluye-item { display: flex; gap: 12px; align-items: flex-start; }
.incluye-item i { font-size: 20px; flex-shrink: 0; color: var(--green); margin-top: 2px; }
.incluye-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.incluye-item p { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* BOT PAGE EXTRAS */
.lock-overlay { position: absolute; inset: 0; background: rgba(248,250,252,0.88); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; backdrop-filter: blur(3px); z-index: 10; }
.lock-overlay i.lock-icon { font-size: 28px; color: var(--text2); }
.lock-overlay h3 { font-size: 16px; font-weight: 600; }
.lock-overlay p { font-size: 12px; color: var(--text2); text-align: center; max-width: 220px; }

/* SWITCHES for bot.html (legacy compat) */
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #CBD5E1; border-radius: 100px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; left: 3px; top: 3px; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ADMIN EXTRAS */
.sidebar-badge { font-size: 10px; background: var(--green); color: var(--dark); padding: 2px 7px; border-radius: 10px; font-weight: 700; margin-left: 6px; }
.estado-conexion { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.estado-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.dot-orange { background: #f59e0b; }
.dot-gray { background: #9ca3af; }
.tag-canal { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: #e0f2fe; color: #0369a1; font-weight: 700; }
.tag-canal.meta { background: #ede9fe; color: #6d28d9; }
.form-section { margin-bottom: 18px; }
.form-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--green-pale); }
.info-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; color: #166534; margin-top: 6px; }
.err-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; color: #dc2626; margin-top: 6px; }
.mono { font-family: monospace; font-size: 13px; }

/* UTILS */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text2); }
.text-green { color: var(--green); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* WISPHUB */
.wh-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.wh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tpl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tpl-row:last-child { border-bottom: none; }
.tpl-name { font-size: 13px; font-weight: 500; }
.sync-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sync-row:last-child { border-bottom: none; }

/* CAMPANAS / PAGOS */
.progress-bar-bg { width: 100%; height: 8px; background: var(--bg); border-radius: 100px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 100px; transition: width 0.25s; }
.count-box { margin-top: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; color: var(--text1); display: none; }
.count-box.visible { display: block; }

/* TOPBAR MENU (móvil) */
.topbar-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-menu-btn i { font-size: 20px; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  z-index: 90;
}
.sidebar-backdrop.open { display: block; }
body.sidebar-open { overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(10, 37, 64, 0.2);
  }
  .topbar-menu-btn { display: inline-flex; }
  .main-content { margin-left: 0; }
  .metrics-grid.col-4, .metrics-grid.col-3 { grid-template-columns: repeat(2,1fr); }
  .form-grid.col-2, .wh-two-col { grid-template-columns: 1fr; }
  .plan-cards-grid { grid-template-columns: 1fr 1fr; }
  .auth-side { display: none; }
  .incluye-grid { grid-template-columns: 1fr; }
  .wh-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .metrics-grid.col-4, .metrics-grid.col-2 { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .plan-cards-grid { grid-template-columns: 1fr; }
  .metodos-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ===== BACKWARD COMPAT — HTML uses old class names ===== */

/* Sidebar old names */
.sidebar-section { margin-bottom: 18px; }
.sidebar-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; padding: 6px 12px 3px; display: block; }
.sidebar-link { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.15s; margin-bottom: 1px; }
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-link.active { background: rgba(0,200,83,0.15); color: var(--green); }
.sidebar-link .icon { display: inline-flex; align-items: center; width: 18px; flex-shrink: 0; }
.sidebar-link .icon i { font-size: 16px; }
.sidebar-bottom { padding: 10px 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-bottom .sidebar-user { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.sidebar-bottom .sidebar-user strong { color: #fff; font-weight: 600; display: block; }
.btn-logout { display: block; padding: 6px 10px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); text-decoration: none; text-align: center; transition: all 0.15s; }
.btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== SIDEBAR V2 — generado por server.js ===== */
.sidebar-v2 {
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
}
.sidebar-v2 .sidebar-logo {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 0;
  flex-shrink: 0;
}
.sidebar-v2 .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 10px;
}
.sidebar-v2 .sidebar-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 6px;
}
.sidebar-v2 .sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 1px;
  border-radius: 8px;
  border: 1px solid transparent;
  position: relative;
}
.sidebar-v2 .sidebar-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.sidebar-v2 .sidebar-link-icon i { font-size: 15px; color: rgba(255, 255, 255, 0.55); }
.sidebar-v2 .sidebar-link-label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-v2 .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar-v2 .sidebar-link:hover .sidebar-link-icon {
  background: rgba(255, 255, 255, 0.1);
}
.sidebar-v2 .sidebar-link:hover .sidebar-link-icon i { color: #fff; }
.sidebar-v2 .sidebar-link.active {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.22);
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}
.sidebar-v2 .sidebar-link.active .sidebar-link-icon {
  background: rgba(0, 200, 83, 0.2);
}
.sidebar-v2 .sidebar-link.active .sidebar-link-icon i { color: var(--green); }
.sidebar-v2 .sidebar-link.locked {
  opacity: 0.72;
}
.sidebar-v2 .sidebar-link.locked:hover { opacity: 0.9; }
.sidebar-v2 .sidebar-link.plan-lock .sidebar-nav-badge {
  background: rgba(217, 119, 6, 0.18);
  color: #fcd34d;
  border-color: rgba(217, 119, 6, 0.35);
}
.sidebar-v2 .sidebar-link.config-lock .sidebar-nav-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}
.sidebar-v2 .sidebar-lock-ico { display: none; }
.sidebar-v2 .sidebar-nav-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  white-space: nowrap;
}
.sidebar-v2 .sidebar-footer {
  padding: 8px 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar-v2 .sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-v2 .sidebar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 200, 83, 0.18);
  color: var(--green);
  font-family: Poppins, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-v2 .sidebar-user-info {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.sidebar-v2 .sidebar-user-info strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-v2 .sidebar-user-info span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-v2 .sidebar-logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.15s;
}
.sidebar-v2 .sidebar-logout-btn:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
}
.sidebar-v2 .sidebar-logout-btn i { font-size: 15px; }

@media (max-width: 900px) {
  .sidebar-v2 .sidebar-nav { padding-bottom: 8px; }
}

/* Panel page layout */
h1 { font-size: 22px; font-weight: 600; color: var(--text1); }
h2 { font-size: 16px; font-weight: 600; color: var(--text1); }
h3 { font-size: 14px; font-weight: 600; color: var(--text1); }
p { color: var(--text2); font-size: 13px; line-height: 1.5; }
.top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel-card-title { font-size: 14px; font-weight: 600; color: var(--text1); margin-bottom: 4px; }
.panel-card-sub { font-size: 12px; color: var(--text2); margin-bottom: 14px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .top-grid, .config-grid { grid-template-columns: 1fr; } }

/* Card inner header */
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon i { font-size: 15px; color: var(--green); }
.card-header-text h2 { font-size: 13px; font-weight: 600; color: var(--text1); margin-bottom: 0; }
.card-header-text p { font-size: 11px; color: var(--text2); }

/* Payment rows */
.pay-rows { display: flex; flex-direction: column; gap: 8px; }

/* Product / FAQ item lists */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px; }
.items-list { display: flex; flex-direction: column; gap: 10px; }

/* Button ghost */
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }

/* Alert compat */
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-warning i { color: #d97706; }

/* Badge compat */
.badge-success { background: #dcfce7; color: #16a34a; }

/* Bandeja old class names */
.chat-header { padding: 12px 18px; border-bottom: 1px solid var(--border); background: white; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--text1); }
.chat-input { padding: 12px 18px; border-top: 1px solid var(--border); background: white; display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.chat-input textarea { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; color: var(--text1); background: var(--bg); outline: none; resize: none; transition: border-color 0.15s; max-height: 100px; }
.chat-input textarea:focus { border-color: var(--green); background: white; }
.btn-send { padding: 8px 18px; background: var(--green); color: var(--dark); border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-tpl { padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; }
.btn-tpl:hover { background: white; color: var(--text1); }
.btn-fallback-si { padding: 7px 14px; background: var(--green); color: var(--dark); border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-fallback-no { padding: 7px 14px; background: transparent; color: var(--text2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; cursor: pointer; }

/* ===== HTML generado por server.js (panel dinámico) ===== */
.plan-banner {
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.12);
}
.plan-banner-left h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.plan-banner-left p { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.demo-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checklist-items { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text1);
  transition: background 0.15s, border-color 0.15s;
}
.check-item:hover { background: #fff; border-color: rgba(10, 37, 64, 0.16); }
.check-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.check-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
}
.check-ico i { font-size: 16px; }
.check-txt strong { display: block; font-size: 13px; font-weight: 600; color: var(--text1); }
.check-txt span { display: block; font-size: 12px; color: var(--text2); }

.pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-ok { background: var(--green-pale); color: #15803d; border: 1px solid rgba(0, 200, 83, 0.25); }
.pill-warn { background: #fef3c7; color: #b45309; border: 1px solid rgba(180, 83, 9, 0.2); }
.pill-off { background: #fee2e2; color: #b91c1c; border: 1px solid rgba(185, 28, 28, 0.2); }

.qbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text1);
  transition: all 0.15s;
}
.qbtn:hover {
  background: #fff;
  border-color: rgba(10, 37, 64, 0.16);
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.06);
}
.qbtn .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qbtn .l .i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  color: var(--green);
  flex-shrink: 0;
}
.qbtn .l .i i { font-size: 17px; }
.qbtn .l .t strong { display: block; font-size: 13px; font-weight: 700; }
.qbtn .l .t span { display: block; font-size: 12px; color: var(--text2); }
.qbtn .r { font-weight: 800; color: var(--green); }

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat-card .label {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.stat-card .value { font-size: 26px; font-weight: 700; color: var(--text1); line-height: 1.1; }
.stat-card .sub { font-size: 11px; color: #16a34a; margin-top: 6px; }

.metrics-grid .stat-card { min-height: 100%; }

.auth-error-box:empty { display: none !important; }

/* ===== AUTH SPLIT (login / registro premium) ===== */
.auth-split .auth-layout { min-height: 100vh; }
.auth-side {
  width: min(440px, 42vw);
  background: linear-gradient(165deg, #0a2540 0%, #0d3a5c 55%, #0a2540 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 200, 83, 0.12);
  filter: blur(40px);
}
.auth-side-logo {
  font-family: Poppins, Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 28px;
  position: relative;
  letter-spacing: -0.5px;
}
.auth-side-logo span { color: var(--green); }
.auth-side-tagline {
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
  position: relative;
  max-width: 320px;
}
.auth-side-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 28px;
  position: relative;
  max-width: 340px;
}
.auth-side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
}
.auth-side-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.auth-side-list li i {
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
}
.auth-side-foot {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  position: relative;
}
.auth-side-stat {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-side-stat strong {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  color: var(--green);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}
.auth-split .auth-form-side .auth-form-box {
  margin: auto;
  width: 100%;
  padding: 32px 28px 48px;
}
.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.auth-logo-mobile {
  display: none;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  text-decoration: none;
}
.auth-logo-mobile span { color: var(--green); }
.auth-form-box-wide { max-width: 520px; }
.auth-form-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.auth-split .auth-form-sub { margin-bottom: 28px; }

/* ===== PANEL HOME POLISH ===== */
.page-header-hero { margin-bottom: 12px; }
.page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 3px;
}
.page-header-hero h1 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.page-header-hero p { font-size: 12px; max-width: 520px; line-height: 1.45; }
.page-header-hero p strong { color: var(--text1); }

.share-bot-card {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-color: rgba(0, 200, 83, 0.2);
}
.share-bot-qr {
  flex-shrink: 0;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.share-bot-body { flex: 1; min-width: 240px; }
.share-bot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.share-bot-title i { color: var(--green); font-size: 22px; }
.share-bot-desc { margin-bottom: 14px; }
.share-bot-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.share-bot-link {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  word-break: break-all;
  text-decoration: none;
}
.share-bot-link:hover { text-decoration: underline; }
.share-bot-num { font-size: 12px; color: var(--text2); }
.share-bot-num strong { color: var(--text1); }

.bot-status-badge.offline { color: var(--text2); background: var(--bg); }
.bot-status-badge.offline .dot { background: #94a3b8; }

.sidebar-logo {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-side { display: none; }
  .auth-logo-mobile { display: block; }
  .auth-form-side { min-height: auto; }
  .auth-form-box { padding: 0 4px; }
}

/* ===== BANDEJA FULL HEIGHT ===== */
.main-content--bandeja {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.main-content--bandeja .topbar { flex-shrink: 0; }
.main-content--bandeja .bandeja-layout {
  flex: 1;
  min-height: 0;
  height: auto;
}
.hilos-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hilos-header i { color: var(--green); font-size: 18px; }

.hilos-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text2);
}
.hilos-empty i { font-size: 36px; color: var(--text3); margin-bottom: 10px; display: block; }
.hilos-empty p { font-size: 14px; font-weight: 600; color: var(--text1); }

/* Hilos lista */
a.hilo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text1);
  background: #fff;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
a.hilo-item:hover { background: rgba(0, 200, 83, 0.04); }
a.hilo-item.active {
  background: var(--green-pale);
  border-left-color: var(--green);
}
.hilo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
}
.hilo-avatar i { font-size: 18px; }
.hilo-body { flex: 1; min-width: 0; }
.hilo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.hilo-nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  line-height: 1.3;
}
.hilo-wait {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: #fee2e2;
  color: #b91c1c;
  vertical-align: middle;
}
.hilo-unread {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hilo-preview {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.hilo-preview i { font-size: 13px; vertical-align: -2px; }
.hilo-assign {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.hilo-assign i { font-size: 12px; vertical-align: -1px; }
.hilo-time { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* Chat panel */
.chat-panel { background: var(--bg); }
.chat-header {
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-contact-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text1);
}
.chat-assign-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.chat-assign-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.chat-assign-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  outline: none;
}
.chat-assign-select:focus { border-color: var(--green); }
.chat-assign-info {
  font-size: 12px;
  color: var(--text2);
  margin-top: 8px;
}
.chat-assign-info i { vertical-align: -2px; color: var(--green); }
.chat-wait-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
}
.chat-assign-me { margin-top: 8px; }
.chat-flash {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
}
.chat-flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.chat-flash-ok {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--text2);
}
.chat-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.chat-empty-icon i { font-size: 28px; color: var(--green); }
.chat-empty p { font-size: 15px; font-weight: 600; color: var(--text1); margin-bottom: 4px; }
.chat-empty span { font-size: 13px; }

/* Mensajes */
.msg-row {
  display: flex;
  margin-bottom: 6px;
}
.msg-row-in { justify-content: flex-start; }
.msg-row-out { justify-content: flex-end; }
.msg-bubble {
  max-width: min(78%, 420px);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}
.msg-in {
  background: #fff;
  border-bottom-left-radius: 4px;
}
.msg-out {
  background: #ede8e1;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  background: var(--green-pale);
  border-color: rgba(0, 200, 83, 0.25);
  border-bottom-right-radius: 4px;
}
.msg-text { word-break: break-word; }
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
  color: var(--text3);
  margin-top: 6px;
}
.msg-meta i { font-size: 12px; }
.msg-ticks {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: -2px;
  line-height: 1;
  margin-left: 1px;
  color: #94a3b8;
  user-select: none;
  vertical-align: baseline;
}
.msg-ticks.sent { letter-spacing: 0; }
.msg-ticks.delivered { color: #94a3b8; }
.msg-ticks.read { color: #3b82f6; }
.msg-ticks.failed {
  letter-spacing: 0;
  color: #ef4444;
  font-size: 12px;
}
.msg-ticks.failed i { font-size: 12px; }
.msg-img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
}
.msg-audio { width: min(320px, 100%); max-width: 100%; }
.msg-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.msg-file-link:hover { text-decoration: underline; }

.ticket-type { font-weight: 700; margin-bottom: 2px; }
.tickets-empty { font-size: 12px; color: #92400e; }

/* ===== WISPHUB / PAGOS PAGE POLISH ===== */
.banner-plan-inactive {
  background: var(--amber-pale);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  color: #92400e;
  text-align: center;
  font-size: 14px;
}
.banner-plan-inactive a {
  color: var(--green);
  font-weight: 700;
  margin-left: 6px;
  text-decoration: none;
}
.banner-plan-inactive a:hover { text-decoration: underline; }

.mini-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.mini-metric-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.mini-metric-card .v {
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.mini-metric-card .v.ok { color: var(--green); }
.mini-metric-card .v.err { color: var(--red); }
.mini-metric-card .l {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}

.page-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pagos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pagos-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.pagos-stat .l {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 8px;
}
.pagos-stat .v {
  font-family: Poppins, Inter, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.pagos-stat .v.green { color: #16a34a; }
.pagos-stat .v.amber { color: var(--amber); }

.pagos-table-card {
  overflow: hidden;
  margin-bottom: 24px;
}
.pagos-table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pagos-table-toolbar .search-input { width: min(260px, 100%); }

@media (max-width: 900px) {
  .pagos-stats { grid-template-columns: 1fr; }
}

/* Activar — títulos en página clara */
.activar-page .planes-titulo {
  font-family: Poppins, Inter, sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}

/* ===== WISPHUB PAGE ===== */
.wh-page .content { padding-bottom: 32px; }

.wh-split-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 18px;
}
@media (max-width: 720px) {
  .wh-split-intro-grid { grid-template-columns: 1fr; }
}
.wh-split-intro-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.wh-split-intro-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.wh-split-intro-icon.outbound {
  background: #f0fdf4;
  color: #059669;
}
.wh-split-intro-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.wh-split-intro-item p { font-size: 12px; color: var(--text2); line-height: 1.45; margin: 0; }

.wh-main-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.wh-main-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.wh-main-tab i { font-size: 16px; }
.wh-main-tab:hover { color: var(--text1); background: rgba(255,255,255,0.6); }
.wh-main-tab.active {
  background: #fff;
  color: var(--text1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.wh-main-pane { display: none; }
.wh-main-pane.active { display: block; }

.wh-top-strip {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.wh-top-strip .mini-metrics-grid {
  flex: 1;
  min-width: 240px;
  margin-bottom: 0;
  grid-template-columns: repeat(2, 1fr);
}
.wh-top-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
}
.wh-top-actions .btn { justify-content: center; padding: 11px 18px; font-weight: 600; }

.wh-section {
  margin-bottom: 28px;
}
.wh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.wh-section-label {
  font-family: Poppins, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 4px;
}
.wh-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text1);
  letter-spacing: -0.02em;
}
.wh-section-desc {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
  max-width: 640px;
}

.wh-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 20px;
}
.wh-status-banner .wh-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.wh-status-banner .wh-status-body { flex: 1; min-width: 0; }
.wh-status-banner .wh-status-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.wh-status-banner .wh-status-text { font-size: 13px; line-height: 1.55; }
.wh-status-banner .wh-status-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.wh-status-ready {
  background: var(--green-pale);
  border-color: rgba(0, 200, 83, 0.28);
}
.wh-status-ready .wh-status-icon { background: rgba(0, 200, 83, 0.18); color: #15803d; }
.wh-status-ready .wh-status-title { color: #15803d; }
.wh-status-ready .wh-status-text { color: #166534; }
.wh-status-ready .wh-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.2);
  animation: wh-pulse 2s infinite;
}
@keyframes wh-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 200, 83, 0.08); }
}

.wh-status-warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.wh-status-warn .wh-status-icon { background: var(--amber-pale); color: var(--amber); }
.wh-status-warn .wh-status-title { color: #92400e; }
.wh-status-warn .wh-status-text { color: #92400e; }

.wh-status-error {
  background: var(--red-pale);
  border-color: rgba(220, 38, 38, 0.22);
}
.wh-status-error .wh-status-icon { background: rgba(220, 38, 38, 0.12); color: var(--red); }
.wh-status-error .wh-status-title { color: var(--red); }
.wh-status-error .wh-status-text { color: #991b1b; }

.wh-status-neutral {
  background: var(--bg2);
  border-color: var(--border);
}
.wh-status-neutral .wh-status-icon { background: var(--bg); color: var(--text2); }
.wh-status-neutral .wh-status-title { color: var(--text1); }
.wh-status-neutral .wh-status-text { color: var(--text2); }

.wh-card { padding: 0; overflow: hidden; margin-bottom: 14px; }
.wh-card .card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.wh-card .card-body { padding: 18px 20px 20px; }
.wh-card .card-body-flush { padding: 0; }
.wh-card.highlight {
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.08);
}

.card-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-sm i { font-size: 14px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--green-pale);
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--green); color: var(--dark); }
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--bg2);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-copy:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.btn-copy i { font-size: 13px; }

.wh-key-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.wh-key-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  word-break: break-all;
  color: var(--dark);
}
.wh-key-hint {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin: -8px 0 16px;
}
.wh-key-hint code { font-size: 11px; }

.wh-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.wh-tab {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  background: transparent;
  transition: all 0.15s;
}
.wh-tab:hover { color: var(--text1); }
.wh-tab.active {
  background: var(--bg2);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.wh-panel-v { display: none; }
.wh-panel-v.active { display: block; }
.wh-panel-intro {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.5;
}
.wh-panel-intro strong { color: var(--text1); font-weight: 600; }

.wh-field-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg2);
}
.wh-field-row {
  display: grid;
  grid-template-columns: minmax(140px, 32%) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wh-field-row:last-child { border-bottom: none; }
.wh-field-row:hover { background: rgba(248, 250, 252, 0.9); }
.wh-field-row.highlight {
  background: #fffbeb;
}
.wh-field-row.highlight:hover { background: #fef3c7; }
.wh-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.wh-field-value {
  color: var(--text1);
  min-width: 0;
}
.wh-field-value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.45;
}
.wh-field-value .field-hint {
  display: block;
  font-size: 11px;
  color: var(--amber);
  margin-top: 4px;
  font-family: inherit;
}
.wh-field-action { text-align: right; }
.wh-field-value .val-yes { color: #15803d; font-weight: 700; }
.wh-field-value .val-muted { color: var(--text2); }

.wh-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .wh-two-col-grid { grid-template-columns: 1fr; }
  .wh-field-row { grid-template-columns: 1fr; gap: 6px; }
  .wh-field-action { text-align: left; }
  .wh-top-strip .mini-metrics-grid { grid-template-columns: 1fr 1fr; }
}

.wh-alertas-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.wh-qr-box {
  width: 168px;
  height: 168px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wh-link-box {
  flex: 1;
  min-width: 260px;
}
.wh-link-box .form-label { margin-bottom: 6px; }
.wh-link-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.5;
}
.wh-link-hint { margin-top: 10px; font-size: 12px; color: var(--text2); line-height: 1.55; }

.wh-tpl-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--bg2);
  transition: border-color 0.15s;
}
.wh-tpl-item.active {
  border-color: rgba(0, 200, 83, 0.35);
  background: var(--green-pale);
}
.wh-tpl-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wh-tpl-item-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}
.wh-tpl-item-body { font-size: 12px; color: var(--text2); line-height: 1.45; }

.empty-state {
  text-align: center;
  padding: 28px 20px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
}
.empty-state a { color: var(--green); font-weight: 700; text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

.feedback-msg { margin-top: 10px; }
.feedback-msg .alert { margin-bottom: 0; }

.nx-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.25);
  animation: nx-toast-in 0.2s ease;
}
@keyframes nx-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wh-table-wrap { overflow-x: auto; }
.wh-table-wrap table { min-width: 520px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ===== DASHBOARD V2 (Panel inicio) ===== */
.dashboard-v2 .dash-content { padding-bottom: 24px; padding-top: 0; }

.dash-topbar {
  padding: 10px 18px;
  min-height: auto;
  gap: 12px;
}
.dash-topbar .dash-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dash-topbar .dash-greet-title {
  font-family: Poppins, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text1);
  line-height: 1.2;
  margin: 0;
}
.dash-topbar .dash-greet-sub {
  font-size: 11px;
  color: var(--text2);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.dash-topbar .dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: none;
}

.dash-header {
  display: none;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.dash-kpi {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}
.dash-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
}
.dash-kpi-icon i { font-size: 16px; }
.dash-kpi-icon.ok { background: var(--green-pale); color: #15803d; }
.dash-kpi-value {
  font-family: Poppins, Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.dash-kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text2);
  margin-bottom: 2px;
}
.dash-kpi-sub {
  font-size: 10px;
  color: var(--text2);
  margin-top: 2px;
}
.dash-kpi-sub a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.dash-kpi-sub a:hover { text-decoration: underline; }

.dash-cuota-row { margin-bottom: 12px; }
.dash-cuota-card { padding: 10px 14px; }
.dash-cuota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dash-cuota-head strong { font-size: 13px; color: var(--text1); }
.dash-cuota-head span { font-size: 13px; font-weight: 700; color: var(--dark); }
.dash-cuota-bar {
  height: 8px;
  background: rgba(10, 37, 64, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dash-cuota-bar-fill { height: 100%; border-radius: 999px; transition: width 0.3s; }
.dash-cuota-foot {
  font-size: 11px;
  margin-top: 8px;
  font-weight: 600;
}
.dash-cuota-warn { color: #991b1b; margin-top: 6px; font-size: 12px; font-weight: 700; }

.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}
.dash-main-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash-side-col { display: flex; flex-direction: column; gap: 10px; }

.dash-wa-hero {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0A2540 0%, #0d3d5c 55%, #0a4a3a 100%);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.15);
}
.dash-wa-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.dash-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #6ee7a0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.dash-wa-copy h2 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.dash-wa-copy p { color: rgba(255, 255, 255, 0.65); font-size: 12px; margin-bottom: 10px; max-width: 380px; }
.dash-wa-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dash-wa-link {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 7px;
  text-decoration: none;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-wa-link:hover { background: rgba(0, 0, 0, 0.35); }
.dash-wa-num { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.dash-wa-num strong { color: rgba(255, 255, 255, 0.85); }
.dash-wa-qr-wrap { text-align: center; flex-shrink: 0; }
.dash-wa-qr {
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.dash-wa-qr-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.dash-wa-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.dash-wa-placeholder.hidden,
.dash-wa-hero.hidden,
.dash-wa-placeholder[hidden],
.dash-wa-hero[hidden] { display: none !important; }
.dash-wa-placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-wa-placeholder-icon i { font-size: 20px; }
.dash-wa-placeholder h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.dash-wa-placeholder p { font-size: 12px; margin-bottom: 10px; }

.dash-setup-card { padding: 12px 14px; }
.dash-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dash-setup-head h2 { font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.dash-setup-head p { font-size: 11px; }

.dash-setup-progress { min-width: 96px; text-align: right; }
.dash-setup-pct {
  font-family: Poppins, Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.dash-setup-pct-label { font-size: 10px; color: var(--text2); margin-top: 1px; }
.dash-setup-bar {
  height: 5px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
  width: 96px;
  margin-left: auto;
}
.dash-setup-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.dash-setup-list { display: flex; flex-direction: column; gap: 4px; }
.dash-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.dash-step:hover {
  background: #fff;
  border-color: rgba(0, 200, 83, 0.3);
}
.dash-step.done { border-color: rgba(0, 200, 83, 0.2); background: rgba(0, 200, 83, 0.04); }
.dash-step-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
}
.dash-step.done .dash-step-num {
  background: var(--green-pale);
  border-color: rgba(0, 200, 83, 0.3);
  color: #15803d;
}
.dash-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
}
.dash-step-icon i { font-size: 14px; }
.dash-step.done .dash-step-icon { color: var(--green); background: var(--green-pale); }
.dash-step-body { flex: 1; min-width: 0; }
.dash-step-body strong { display: block; font-size: 12px; font-weight: 600; }
.dash-step-body span { display: block; font-size: 10px; color: var(--text2); }
.dash-step-arrow { display: none; }
.dash-step-status { flex-shrink: 0; }
.dash-step-status .pill { font-size: 10px; padding: 2px 7px; }

.dash-plan-card {
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid;
  box-shadow: var(--shadow);
}
.dash-plan-card h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.dash-plan-card p { font-size: 11px; line-height: 1.45; margin-bottom: 0; }
.dash-plan-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.dash-plan-active {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(0, 200, 83, 0.3);
}
.dash-plan-active .dash-plan-tag { background: rgba(0, 200, 83, 0.18); color: #15803d; }
.dash-plan-active h3 { color: #14532d; }
.dash-plan-active p { color: #166534; }
.dash-plan-pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.dash-plan-pending .dash-plan-tag { background: var(--amber-pale); color: var(--amber); }
.dash-plan-pending h3 { color: #92400e; }
.dash-plan-demo {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: var(--border);
}
.dash-plan-demo .dash-plan-tag { background: rgba(217, 119, 6, 0.14); color: var(--amber); }
.dash-plan-demo h3 { color: var(--dark); }
.dash-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 100px;
  background: #25D366;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s;
}
.dash-plan-cta:hover { filter: brightness(0.95); }

.bot-plan-summary-body { padding: 0 4px 4px; }
.bot-plan-cta-row { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.bot-plan-included { margin-top: 14px; }
.bot-plan-included-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin-bottom: 8px; }
.bot-plan-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; }
.bot-plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); line-height: 1.4; }
.bot-plan-features li i { color: var(--green); font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.bot-plan-hint { margin: 12px 0 0; font-size: 13px; color: var(--text2); line-height: 1.5; }

.dash-nav-card { padding: 16px 18px; }
.dash-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 12px;
}
.dash-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-nav-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  color: var(--text1);
  transition: all 0.15s;
  text-align: center;
}
.dash-nav-tile:hover {
  background: #fff;
  border-color: rgba(0, 200, 83, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.06);
}
.dash-nav-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-nav-tile-icon i { font-size: 18px; }
.dash-nav-tile span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.dash-settings-section { margin-top: 8px; }
.dash-settings-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dash-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text1);
  user-select: none;
}
.dash-settings-summary::-webkit-details-marker { display: none; }
.dash-settings-summary span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-settings-summary i { color: var(--green); font-size: 18px; }
.dash-settings-hint { font-size: 12px; font-weight: 400; color: var(--text2); }
.dash-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.dash-settings-item { padding: 16px 18px; }

.hidden { display: none !important; }

@media (max-width: 1100px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
.wh-page .content { padding-top: 12px; }
.wh-section { margin-bottom: 16px; }
.wh-section-head { margin-bottom: 10px; }
.wh-section-title { font-size: 14px; }
.wh-section-desc { font-size: 11px; }
.wh-top-strip { margin-bottom: 14px; gap: 10px; }
.wh-top-actions .btn { padding: 7px 12px; font-size: 12px; }
.wh-card .card-header-row { padding: 10px 12px; }
.wh-card .card-body { padding: 10px 12px 12px; }
.wh-field-row { padding: 9px 12px; font-size: 12px; }
.wh-status-banner { padding: 12px 14px; margin-bottom: 14px; }
.wh-status-banner .wh-status-icon { width: 34px; height: 34px; font-size: 17px; }
.wh-status-banner .wh-status-title { font-size: 13px; }
.wh-status-banner .wh-status-text { font-size: 12px; }
.wh-qr-box { width: 140px; height: 140px; }

.dash-nav-card { padding: 10px 12px; }
.dash-nav-title { font-size: 10px; margin-bottom: 8px; }
.dash-nav-grid { gap: 6px; }
.dash-nav-tile { padding: 8px 4px; gap: 4px; }
.dash-nav-tile-icon { width: 28px; height: 28px; border-radius: 8px; }
.dash-nav-tile-icon i { font-size: 15px; }
.dash-nav-tile span { font-size: 10px; }

.dash-settings-summary { padding: 12px 14px; font-size: 13px; }
.dash-settings-grid { padding: 0 12px 12px; gap: 10px; padding-top: 12px; }
.dash-settings-item { padding: 12px 14px; }

.form-input, .form-select, .form-textarea { padding: 7px 10px; font-size: 12px; }
.alert { padding: 10px 12px; font-size: 12px; margin-bottom: 10px; }

h1 { font-size: 18px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
td, th { padding: 8px 12px; }
th { font-size: 9px; }

.page-intro {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 640px;
}

@media (max-width: 640px) {
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-side-col { grid-template-columns: 1fr; }
  .dash-settings-grid { grid-template-columns: 1fr; }
  .dash-wa-hero-inner { flex-direction: column; align-items: flex-start; }
  .dash-setup-progress { text-align: left; width: 100%; }
  .dash-setup-bar { margin-left: 0; width: 100%; }
  .dash-topbar { flex-wrap: wrap; }
}
