/**
 * components.css — Componentes UI Premium para KOVE Customer & Sales Hub
 * Enterprise SaaS Dark UI — Turquesa KOVE #32A6AA
 */

/* ══════════════════════════════════════════════
   CARDS — Glass Surface
   ══════════════════════════════════════════════ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition:
    border-color var(--transition-fast),
    box-shadow   var(--transition-base),
    transform    var(--transition-base);
}

/* Glow halo inferior al hover */
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md), var(--glow-accent-xs);
}
.card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-family: var(--font-condensed);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ══════════════════════════════════════════════
   KPI CARDS — Telemetry Panels
   ══════════════════════════════════════════════ */
.kpi-card {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transition:
    border-color var(--transition-fast),
    box-shadow   var(--transition-base);
  will-change: transform;
  transform-style: preserve-3d;
}

/* Spotlight interno reactivo al cursor (JS setea --tilt-gx / --tilt-gy) */
.kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
    rgba(50,166,170,0.09) 0%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.kpi-card:hover {
  border-color: rgba(50,166,170,0.38);
  box-shadow: var(--shadow-md), var(--shadow-cyan), 0 8px 24px rgba(0,0,0,0.35);
}
.kpi-card:hover::after {
  opacity: 1;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-default);
  transform-origin: left;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.kpi-card:hover::before {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 6px var(--accent);
}

.kpi-card.accent-top::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.kpi-card.red-top::before {
  background: var(--status-red);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.kpi-card.green-top::before {
  background: var(--status-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.kpi-card.amber-top::before {
  background: var(--status-amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* KPI decorative icon */
.kpi-icon {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.9;
}

.kpi-icon-accent {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border: 1px solid rgba(50, 166, 170, 0.2);
}

.kpi-icon-green {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid var(--status-green-border);
}

.kpi-icon-red {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
}

.kpi-label {
  font-family: var(--font-condensed);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 2px;
  animation: countReveal 380ms var(--easing) both;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ══════════════════════════════════════════════
   BADGES OPERATIVOS
   ══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  font-family: var(--font-condensed);
  white-space: nowrap;
}

.badge-default {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.badge-green {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid var(--status-green-border);
}

.badge-amber {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid var(--status-amber-border);
}

.badge-red {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
}

.badge-blue {
  background: var(--status-blue-bg);
  color: var(--status-blue);
  border: 1px solid var(--status-blue-border);
}

.badge-purple {
  background: var(--status-purple-bg);
  color: var(--status-purple);
  border: 1px solid var(--status-purple-border);
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border: 1px solid rgba(50, 166, 170, 0.25);
}

/* Temperatura de Leads */
.temp-frio {
  background: rgba(107, 114, 128, 0.12);
  color: #a3acb9;
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.temp-tibio {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.temp-caliente {
  background: rgba(50, 166, 170, 0.14);
  color: #3ec1c6;
  border: 1px solid rgba(50, 166, 170, 0.4);
  box-shadow: 0 0 8px rgba(50, 166, 170, 0.15);
}

.temp-muy-caliente {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: breatheBadge 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 10px 1px rgba(239, 68, 68, 0.2); }
}

/* SLA Badges */
.sla-ok {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid var(--status-green-border);
}

.sla-warning {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid var(--status-amber-border);
}

.sla-breached {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid var(--status-red-border);
  font-weight: 700;
  animation: pulse-border 2.5s infinite;
}

/* Canal Badges */
.channel-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-condensed);
  letter-spacing: 0.04em;
}

.channel-whatsapp { background: rgba(37, 211, 102, 0.10); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.2); }
.channel-tiktok { background: rgba(255, 0, 79, 0.10); color: #ff3b75; border: 1px solid rgba(255, 0, 79, 0.2); }
.channel-instagram { background: rgba(225, 48, 108, 0.10); color: #f43f5e; border: 1px solid rgba(225, 48, 108, 0.2); }
.channel-web { background: rgba(50, 166, 170, 0.10); color: #3ec1c6; border: 1px solid rgba(50, 166, 170, 0.25); }
.channel-showroom { background: rgba(245, 158, 11, 0.10); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

/* ══════════════════════════════════════════════
   BUTTONS — Premium Action Controls
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 18px;
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(50, 166, 170, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow:
    0 0 18px var(--accent-glow-strong),
    0 0 36px rgba(50,166,170,0.20),
    0 2px 10px rgba(50, 166, 170, 0.30);
  transform: translateY(-1px);
  letter-spacing: 0.08em;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-light);
  border-color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: #ef4444;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 10px;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.76rem;
}

.btn-icon {
  padding: 7px;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════
   FORMS — Premium Inputs
   ══════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.form-label {
  font-family: var(--font-condensed);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px rgba(50, 166, 170, 0.20),
    0 0 0 1px var(--accent),
    0 0 16px rgba(50, 166, 170, 0.18);
  background: rgba(50, 166, 170, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

/* ══════════════════════════════════════════════
   TABLES — Data Grid Premium
   ══════════════════════════════════════════════ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.table, .data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.table th, .data-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  font-weight: 600;
}

.table td, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

.table tr:last-child td, .data-table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td, .data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ══════════════════════════════════════════════
   MODALS — Premium Glass
   ══════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-modal), 0 0 60px rgba(50, 166, 170, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
  /* Línea acento turquesa en el borde superior */
  border-top: 2px solid var(--accent);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
  box-shadow: var(--shadow-modal), 0 0 80px rgba(50, 166, 170, 0.12);
}

.modal-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(50, 166, 170, 0.04) 0%, transparent 100%);
}

.modal-body {
  padding: var(--space-5);
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.01);
}

/* ══════════════════════════════════════════════
   TOASTS — Floating Notifications
   ══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 200;
}

.toast {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  max-width: 440px;
}

.toast.toast-success { border-left-color: var(--status-green); }
.toast.toast-error { border-left-color: var(--status-red); }
.toast.toast-warning { border-left-color: var(--status-amber); }
.toast.toast-info { border-left-color: var(--accent); }

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

/* ══════════════════════════════════════════════
   NBA CARD — Next Best Action (split panel)
   ══════════════════════════════════════════════ */
.nba-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(50, 166, 170, 0.06) 100%);
  border: 1px solid rgba(50, 166, 170, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  align-items: stretch;
  margin-bottom: var(--space-5);
  box-shadow: 0 0 24px -6px rgba(50, 166, 170, 0.15);
  position: relative;
  overflow: hidden;
}

.nba-main {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
}

.nba-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.nba-badge {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nba-ia-badge {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.nba-title {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nba-reason {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Panel derecho: mensaje sugerido */
.nba-suggestion {
  width: 340px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.025);
  border-left: 1px solid rgba(50, 166, 170, 0.15);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nba-suggestion-label {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.nba-suggestion-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  flex: 1;
}

.nba-suggestion-actions {
  display: flex;
  gap: var(--space-2);
}

/* Botón de cierre del NBA */
.nba-close-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.nba-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   KPI SPARKLINE — Mini bar chart
   ══════════════════════════════════════════════ */
.kpi-sparkline {
  margin-top: var(--space-3);
  line-height: 0;
}

.kpi-sparkline-svg rect {
  transition: opacity var(--transition-fast);
}

.kpi-card:hover .kpi-sparkline-svg rect {
  opacity: 1 !important;
}

/* ══════════════════════════════════════════════
   METRICS BAR — Dashboard bottom strip
   ══════════════════════════════════════════════ */
.metrics-bar-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr 1.4fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.metric-card-v2 {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-base);
}

.metric-card-v2:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.metric-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1px solid rgba(50,166,170,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-card-data {
  flex: 1;
  min-width: 0;
}

.metric-card-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.metric-card-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-condensed);
  margin-top: 2px;
}

/* Promo card KOVE en metrics bar */
.kove-promo-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(50,166,170,0.08) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
}

.kove-promo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.kove-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -52deg,
    transparent,
    transparent 12px,
    rgba(50,166,170,0.03) 12px,
    rgba(50,166,170,0.03) 13px
  );
  pointer-events: none;
}

.kove-promo-model {
  font-family: var(--font-condensed);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
  position: relative;
}

.kove-promo-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  position: relative;
}

.kove-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  position: relative;
}

.kove-promo-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.kove-promo-card:hover .kove-promo-arrow {
  transform: translateX(3px);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ══════════════════════════════════════════════
   TIMELINE — Customer 360 History
   ══════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border-default) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-4);
}

.timeline-point {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.timeline-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin: 2px 0;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   TABS — Premium Navigation
   ══════════════════════════════════════════════ */
.tabs-nav {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  padding-bottom: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* ══════════════════════════════════════════════
   METRICS BAR — Bottom Strip
   ══════════════════════════════════════════════ */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: var(--space-6);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(50, 166, 170, 0.15);
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════
   SLA THRESHOLD INDICATOR
   ══════════════════════════════════════════════ */
.sla-threshold {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  color: var(--status-red);
  font-family: var(--font-mono);
  font-weight: 600;
}

.sla-threshold::before {
  content: '⊘';
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════
   TIME ELAPSED DISPLAY
   ══════════════════════════════════════════════ */
.time-elapsed {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
}

.time-ok { color: var(--status-green); }
.time-warning { color: var(--status-amber); }
.time-critical { color: var(--status-red); }

/* ══════════════════════════════════════════════
   LOGIN SCREEN — KOVE MOTO PERÚ OFFICIAL
   ══════════════════════════════════════════════ */
.login-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at 50% 20%, #151d28 0%, #0a0d14 70%, #05070a 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 16px;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.login-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: rgba(18, 22, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 168, 150, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 168, 150, 0.08);
  border-radius: 14px;
  padding: 32px 28px;
  z-index: 10;
  box-sizing: border-box;
}

.login-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.login-official-logo {
  width: auto;
  height: 64px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 auto 12px auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 168, 150, 0.4));
}

.login-brand-title {
  font-family: var(--font-condensed);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.login-brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.login-brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.login-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.login-alert.active {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.alert-error {
  background: rgba(229, 62, 62, 0.12);
  border: 1px solid rgba(229, 62, 62, 0.35);
  color: #fc8181;
}

.login-alert.alert-warning {
  background: rgba(221, 107, 32, 0.12);
  border: 1px solid rgba(221, 107, 32, 0.35);
  color: #f6ad55;
}

.lockout-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.lockout-icon {
  font-size: 1.4rem;
}

.lockout-text strong {
  display: block;
  font-size: 0.85rem;
  color: #ff8b8b;
  margin-bottom: 2px;
}

.lockout-timer {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.lockout-timer span {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.92rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 38px;
  padding-right: 40px;
  width: 100%;
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  height: 42px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.input-with-icon .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 168, 150, 0.25);
  outline: none;
  background: rgba(14, 18, 28, 0.95);
}

.pwd-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.pwd-toggle-btn:hover {
  opacity: 0.8;
}

.pwd-strength-text {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.pwd-strength-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.pwd-strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
}

.pwd-strength-fill.weak {
  width: 25%;
  background: #e53e3e;
}

.pwd-strength-fill.medium {
  width: 60%;
  background: #dd6b20;
}

.pwd-strength-fill.strong {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 168, 150, 0.6);
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.max-attempts-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  opacity: 0.8;
}

/* ══════════════════════════════════════════════
   CLOUDFLARE TURNSTILE — Bot Protection Widget
   ══════════════════════════════════════════════ */
.cf-turnstile-container {
  margin: 14px 0 18px 0;
  width: 100%;
}

.cf-turnstile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 56px;
  transition: all 0.25s ease;
  user-select: none;
}

.cf-turnstile-card:hover {
  border-color: rgba(243, 128, 32, 0.4);
  background: rgba(14, 18, 28, 0.95);
}

.cf-turnstile-card.verified {
  border-color: rgba(72, 187, 120, 0.45);
  background: rgba(12, 26, 22, 0.9);
}

.cf-turnstile-card.error-glow {
  border-color: rgba(229, 62, 62, 0.7);
  box-shadow: 0 0 14px rgba(229, 62, 62, 0.3);
  animation: cf-shake 0.35s ease;
}

@keyframes cf-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.cf-turnstile-left {
  display: flex;
  align-items: center;
}

.cf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.cf-real-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cf-custom-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cf-checkbox-label:hover .cf-custom-box {
  border-color: #f38020;
}

.cf-custom-box.loading {
  border-color: transparent;
  background: transparent;
}

.cf-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f38020;
  border-radius: 50%;
  animation: cf-spin 0.7s linear infinite;
}

.cf-custom-box.loading .cf-spinner {
  display: block;
}

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

.cf-checkmark {
  display: none;
  font-size: 1.05rem;
  color: #48bb78;
  font-weight: 900;
  line-height: 1;
}

.cf-custom-box.verified {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.18);
}

.cf-custom-box.verified .cf-checkmark {
  display: block;
}

.cf-status-text {
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.2s;
}

.cf-status-text.verified {
  color: #68d391;
  font-weight: 600;
}

.cf-turnstile-right {
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cf-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.cf-logo-icon {
  width: 26px;
  height: 18px;
  object-fit: contain;
}

.cf-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.cf-brand-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: #cbd5e0;
  letter-spacing: 0.02em;
}

.cf-brand-links {
  font-size: 0.52rem;
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  height: 44px;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #008272 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 168, 150, 0.3);
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.45);
  background: linear-gradient(135deg, #00bda8 0%, var(--accent) 100%);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.login-btn.loading {
  position: relative;
  pointer-events: none;
}

.login-quick-access {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-access-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.quick-access-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-pill:hover {
  background: rgba(0, 168, 150, 0.1);
  border-color: rgba(0, 168, 150, 0.35);
  transform: translateY(-1px);
}

.pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 168, 150, 0.2);
  color: var(--accent-light);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-info {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pill-info strong {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e2e8f0;
}

.pill-info small {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-footer-legal {
  margin-top: 20px;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  font-family: var(--font-mono);
}

.logout-topbar-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logout-topbar-btn:hover {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
}

/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════════ */
.theme-toggle-btn {
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .theme-toggle-btn {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   TRANSICIONES DE SUPERFICIE (light/dark switch)
   ══════════════════════════════════════════════ */
.app-sidebar,
.app-topbar,
.app-footer,
.card,
.kpi-card,
.kanban-column,
.inbox-list,
.inbox-context,
.sidebar-promo,
.topbar-search,
.telemetry-clock,
.topbar-user {
  transition:
    background var(--dur-micro) var(--easing),
    background-color var(--dur-micro) var(--easing),
    border-color var(--dur-micro) var(--easing);
}

/* ══════════════════════════════════════════════
   ADAPTACIONES MODO CLARO
   ══════════════════════════════════════════════ */
[data-theme="light"] .login-wrapper {
  background: linear-gradient(135deg, #E8E6E1 0%, #D6F5F6 100%);
}

[data-theme="light"] .login-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .input-with-icon .form-input {
  background: #F5F4F1;
  border-color: rgba(0, 0, 0, 0.14);
  color: #111318;
}

[data-theme="light"] .input-with-icon .form-input::placeholder {
  color: #9AA3B0;
}

[data-theme="light"] .login-footer-legal {
  color: rgba(0, 0, 0, 0.35);
}

/* ══════════════════════════════════════════════
   PÁGINA DE PERFIL DEL VENDEDOR
   ══════════════════════════════════════════════ */

.profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ── Header card ── */
.profile-header-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,166,170,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.profile-header-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
}

/* ── Avatar ── */
.profile-avatar-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 4px 20px rgba(0,0,0,0.4);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
}

/* ── Info del header ── */
.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.profile-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 8px;
}

.profile-status-dot {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.profile-status-dot.active  { color: var(--status-green); }
.profile-status-dot.inactive { color: var(--status-red); }

.profile-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.profile-zone {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-header-actions {
  flex-shrink: 0;
}

/* ── KPI strip ── */
.profile-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.profile-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  transition: border-color var(--transition-base);
}
.profile-kpi-card:hover { border-color: var(--accent-subtle-strong); }

.profile-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
}

.profile-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Body: 2 columnas ── */
.profile-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  align-items: start;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.profile-card-header {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-4);
}

/* ── Campo/valor ── */
.profile-fields {
  padding: var(--space-3) 0;
}

.profile-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-3);
}
.profile-field-row:last-child { border-bottom: none; }

.profile-field-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-field-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  text-align: right;
  word-break: break-all;
}

/* ── Comisiones ── */
.profile-commission-header {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-4);
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-3);
}

.profile-comm-rate {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-light);
  line-height: 1;
}

.profile-comm-amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--status-green);
}

.profile-comm-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.profile-goal-section {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.profile-goal-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.profile-goal-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.profile-goal-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.profile-goal-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.profile-comm-detail {
  padding: var(--space-3) var(--space-4);
}

.profile-comm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.profile-comm-row:last-child { border-bottom: none; }
.profile-comm-row strong { color: var(--text-primary); font-family: var(--font-mono); }

/* ── Nota foto ── */
.profile-photo-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}

.profile-photo-note code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  background: var(--bg-elevated);
  padding: 1px 5px;
  border-radius: 3px;
}

.badge-accent {
  background: var(--accent-subtle-strong);
  color: var(--accent-light);
  border: 1px solid var(--accent-subtle-strong);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.badge-amber {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid var(--status-amber-border);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .profile-header-content { flex-wrap: wrap; }
  .profile-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .profile-body { grid-template-columns: 1fr; }
  .profile-header-actions { width: 100%; }
}
