/* ── Grupo Lucian Santos Agents — Custom CSS ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Dark Theme Base ─────────────────── */
  --bg-primary:   #04041a;
  --bg-secondary: #07072a;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-hover:rgba(255,255,255,0.07);
  --border-card:  rgba(255,255,255,0.08);
  --border-glow:  rgba(124,58,237,0.4);
  /* ── Gradients (brand primary #181818→#00015c) ── */
  --grad-start:   #7C3AED;
  --grad-mid:     #00015c;   /* ← brand secondary */
  --grad-end:     #3be5ff;   /* ← brand accent */
  /* ── Brand Colors (Grupo Lucian Santos) ── */
  --ls-navy:      #00015c;   /* brand secondary */
  --ls-accent:    #3be5ff;   /* brand accent */
  --ls-dark:      #181818;   /* brand primary */
  /* ── Semantic Colors ──────────────────── */
  --text-primary: #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:   #64748b;
  --green:  #10b981;
  --red:    #ef4444;
  --yellow: #f59e0b;
  --blue:   #3B82F6;
  --pink:   #EC4899;
  --cyan:   #3be5ff;   /* ← updated to brand accent */
  --purple: #7C3AED;
  --amber:  #f59e0b;
  --sidebar-w: 260px;
}

/* ── Emergency Stop Button ───────────────────────────────────────────────── */
.emergency-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.emergency-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(239,68,68,0.25) 0%, rgba(239,68,68,0.05) 70%);
  animation: emergency-pulse 1.4s ease-in-out infinite;
  box-shadow:
    0 0 0 0 rgba(239,68,68,0.6),
    0 0 18px rgba(239,68,68,0.3),
    inset 0 0 12px rgba(239,68,68,0.1);
  transition: transform .15s;
  position: relative;
}
.emergency-ring:hover { transform: scale(1.08); }
.emergency-ring:active { transform: scale(0.96); }
.emergency-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(239,68,68,0.8);
}
/* farol rotating halo */
.emergency-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(239,68,68,0.7);
  border-right-color: rgba(239,68,68,0.3);
  animation: emergency-spin 1.8s linear infinite;
}
.emergency-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(239,68,68,0.35);
  animation: emergency-spin 2.6s linear infinite reverse;
}
.emergency-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ef4444;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(239,68,68,0.6);
  animation: emergency-blink 1.4s ease-in-out infinite;
}
@keyframes emergency-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6), 0 0 18px rgba(239,68,68,0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(239,68,68,0), 0 0 28px rgba(239,68,68,0.5); }
}
@keyframes emergency-spin {
  to { transform: rotate(360deg); }
}
@keyframes emergency-blink {
  0%,100% { opacity:1; }
  50%     { opacity:0.4; }
}

/* Emergency modal */
.emergency-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.emergency-modal.open { display: flex; animation: fade-in .2s ease; }
.emergency-modal-box {
  background: linear-gradient(135deg, #1a0505, #2d0808);
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(239,68,68,0.4);
  animation: emergency-modal-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes emergency-modal-in {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.emergency-modal-title {
  font-size: 22px; font-weight: 800;
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239,68,68,0.5);
  margin-bottom: 8px;
}
.emergency-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.emergency-confirm {
  background: #ef4444; color: #fff; border: none;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 0 20px rgba(239,68,68,0.4);
  transition: all .2s;
}
.emergency-confirm:hover { background: #dc2626; box-shadow: 0 0 28px rgba(239,68,68,0.6); }
.emergency-cancel {
  background: rgba(255,255,255,0.08); color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.emergency-cancel:hover { background: rgba(255,255,255,0.12); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background grid pattern ─────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--grad-start); border-radius: 2px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #0d0d2b 0%, #080818 100%);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-card);
}

.sidebar-brand .brand-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sidebar-brand .brand-name {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-brand .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav { padding: 16px 12px; flex: 1; }

.sidebar-nav .nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: 2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  border-left: 3px solid var(--purple);
  padding-left: 9px;
}

.sidebar-nav a .nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-nav a .nav-icon { font-size: 16px; flex-shrink: 0; }

.sidebar-nav a .nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(124,58,237,0.2);
  color: var(--purple);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-card);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user .user-info .user-name { font-size: 13px; font-weight: 600; }
.sidebar-user .user-info .user-role { font-size: 11px; color: var(--text-muted); }

.sidebar-user .logout-btn {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: color .2s;
}

.sidebar-user .logout-btn:hover { color: var(--red); }

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  background: rgba(6,6,26,0.8);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}

.topbar .page-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar .breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar .live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

.topbar .live-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s infinite;
}

.topbar .time-display {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Page content ────────────────────────────────────────────────────────── */
.page-content { padding: 24px 28px; flex: 1; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}

.card:hover {
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 0 24px rgba(124,58,237,0.06);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
  display: flex; align-items: center; gap: 10px;
}

.card-body { padding: 16px 20px; }

/* ── Agent Cards (Dashboard) ─────────────────────────────────────────────── */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--agent-color, var(--purple));
  opacity: 0;
  transition: opacity .3s;
}

.agent-card:hover {
  border-color: var(--agent-color, rgba(124,58,237,0.3));
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px color-mix(in srgb, var(--agent-color, var(--purple)) 15%, transparent);
  transform: translateY(-2px);
}

.agent-card:hover::before { opacity: 1; }

.agent-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.agent-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--agent-color, var(--purple)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-color, var(--purple)) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.agent-info .agent-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.agent-info .agent-company { font-size: 12px; color: var(--text-muted); }

.agent-status {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  color: var(--green);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}

.status-dot.processing { color: var(--yellow); }
.status-dot.offline    { color: var(--text-muted); animation: none; }

/* ── Terminal ────────────────────────────────────────────────────────────── */
.terminal {
  background: #010110;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  overflow: hidden;
}

.terminal-titlebar {
  background: rgba(255,255,255,0.04);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red   { background: #ff5f57; }
.terminal-dot.yellow{ background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 14px;
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
  line-height: 1.6;
}

.terminal-line { display: block; margin-bottom: 2px; }
.terminal-line.cmd   { color: #a78bfa; }
.terminal-line.ok    { color: var(--green); }
.terminal-line.err   { color: var(--red); }
.terminal-line.warn  { color: var(--yellow); }
.terminal-line.info  { color: #60a5fa; }
.terminal-line.muted { color: var(--text-muted); }
.terminal-line.white { color: var(--text-primary); }

.terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}

/* ── Metrics ─────────────────────────────────────────────────────────────── */
.metric-bar {
  margin-bottom: 12px;
}

.metric-bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-secondary);
  margin-bottom: 5px;
}

.metric-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-item .metric-value {
  font-size: 20px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-item .metric-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px;
}

.stat-card .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; }
.stat-card .stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Pipeline ────────────────────────────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
}

.pipeline-stage {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
}

.pipeline-stage.active { color: var(--text-primary); }

.pipeline-stage-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-size: 12px;
  background: var(--bg-secondary);
  transition: all .5s;
}

.pipeline-stage.active .pipeline-stage-dot {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 15%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 40%, transparent);
}

.pipeline-stage::after {
  content: '';
  position: absolute;
  top: 21px; right: 0;
  width: calc(50% - 14px);
  height: 2px;
  background: var(--border-card);
}

.pipeline-stage::before {
  content: '';
  position: absolute;
  top: 21px; left: 0;
  width: calc(50% - 14px);
  height: 2px;
  background: var(--border-card);
}

.pipeline-stage:first-child::before,
.pipeline-stage:last-child::after { display: none; }

/* ── Chat ────────────────────────────────────────────────────────────────── */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  height: 320px;
  overflow-y: auto;
}

.chat-msg { display: flex; gap: 8px; max-width: 85%; }
.chat-msg.agent { flex-direction: row; }
.chat-msg.client { flex-direction: row-reverse; margin-left: auto; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.agent .chat-bubble {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  border-bottom-left-radius: 4px;
}

.chat-msg.client .chat-bubble {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.25);
  border-bottom-right-radius: 4px;
}

.chat-msg.system .chat-bubble {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
  width: 100%;
  max-width: 100%;
}

.chat-msg.system { max-width: 100%; }

.thinking-bubble {
  display: flex; gap: 4px; align-items: center;
  padding: 12px 16px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.thinking-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  animation: bounce-dot .8s infinite;
}

.thinking-dot:nth-child(2) { animation-delay: .15s; }
.thinking-dot:nth-child(3) { animation-delay: .3s; }

/* ── Gradient text helper ─────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green  { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.badge-red    { background: rgba(239,68,68,0.15);  color: var(--red);   border: 1px solid rgba(239,68,68,0.25); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--yellow);border: 1px solid rgba(245,158,11,0.25); }
.badge-purple { background: rgba(124,58,237,0.15); color: var(--purple);border: 1px solid rgba(124,58,237,0.25); }
.badge-cyan   { background: rgba(6,182,212,0.15);  color: var(--cyan);  border: 1px solid rgba(6,182,212,0.25); }
.badge-blue   { background: rgba(59,130,246,0.15); color: var(--blue);  border: 1px solid rgba(59,130,246,0.25); }

/* ── Glow effects ────────────────────────────────────────────────────────── */
.glow-purple { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
.glow-cyan   { box-shadow: 0 0 20px rgba(6,182,212,0.3); }
.glow-green  { box-shadow: 0 0 20px rgba(16,185,129,0.3); }

/* ── Loading spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(124,58,237,0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes bounce-dot {
  0%, 80%, 100% { transform: translateY(0); }
  40%            { transform: translateY(-6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slide-in-bottom {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(124,58,237,0.2); }
  50%       { border-color: rgba(124,58,237,0.5); }
}

.animate-in { animation: slide-in-bottom .4s ease forwards; }
.fade-in    { animation: fade-in .4s ease forwards; }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  animation: slide-in-bottom .5s ease;
}

.login-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.login-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.login-input::placeholder { color: var(--text-muted); }

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}

.login-btn:hover  { opacity: .9; }
.login-btn:active { transform: scale(.99); }

/* ── Sofon special ───────────────────────────────────────────────────────── */
.sofon-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  animation: pulse-border 3s infinite;
}

.sofon-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.05) 0%, transparent 60%);
  animation: spin 20s linear infinite;
}

/* ── Map mock ────────────────────────────────────────────────────────────── */
.map-mock {
  background: #010820;
  border-radius: 10px;
  border: 1px solid rgba(6,182,212,0.2);
  overflow: hidden;
  position: relative;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transition: width 1.5s ease;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; padding: 8px 12px; border-bottom: 1px solid var(--border-card); text-align: left; font-weight: 600; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-cyan   { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-muted  { color: var(--text-muted); }
.mono        { font-family: 'JetBrains Mono', monospace; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
