/* ==========================================================================
   NegocioUp Pulse App - CSS Stylesheet (V12.0 Command Center)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  /* Colors */
  --bg-deep-space: #080C14;
  --bg-slate-card: rgba(15, 23, 42, 0.45);
  --border-glow-default: rgba(255, 255, 255, 0.08);
  
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;
  --cyan-neon: #00F2FE;
  
  --text-primary: #F8F9FA;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-numbers: 'Outfit', sans-serif;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --transition-bezier: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

input, button, select {
  font-family: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}

/* Layout container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Starfield background decoration */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(66, 133, 244, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(52, 168, 83, 0.05) 0%, transparent 40%);
}

/* Sidebar Menu navigation */
.app-sidebar {
  width: 280px;
  background: rgba(10, 15, 26, 0.95);
  border-right: 1px solid var(--border-glow-default);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.logo-icon {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}
.logo-icon span {
  display: block;
  width: 5px;
  border-radius: 2.5px 2.5px 0 0;
}
.logo-icon span:nth-child(1) { height: 8px; background: var(--google-blue); }
.logo-icon span:nth-child(2) { height: 13px; background: var(--google-red); }
.logo-icon span:nth-child(3) { height: 18px; background: var(--google-yellow); }
.logo-icon span:nth-child(4) { height: 24px; background: var(--google-green); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--google-blue);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: var(--transition-bezier);
}
.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  border-left: 3px solid var(--cyan-neon);
  box-shadow: inset 5px 0 15px rgba(0, 242, 254, 0.05);
}
.nav-icon {
  font-size: 18px;
}

/* Sidebar VIP Support Widget */
.sidebar-vip-box {
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: auto;
}
.vip-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #25D366;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.vip-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

/* Main Dashboard Panel */
.app-main {
  flex: 1;
  padding: 40px;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}
.header-info h2 {
  font-size: 28px;
  line-height: 1.2;
}
.header-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Toggle Switch Container */
.toggle-switch-card {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-glow-default);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.toggle-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-bezier);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toggle-btn.active {
  color: #fff;
}
.toggle-btn.active.before {
  background: var(--google-red);
  box-shadow: 0 0 15px rgba(234, 67, 53, 0.4);
}
.toggle-btn.active.after {
  background: var(--google-green);
  box-shadow: 0 0 15px rgba(52, 168, 83, 0.4);
}

/* Main Cards Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

/* Card layout */
.glass-card {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-glow-default);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition-bezier);
  overflow: hidden;
}
.glass-card.glowing-red {
  border-color: rgba(234, 67, 53, 0.2);
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.05);
}
.glass-card.glowing-green {
  border-color: rgba(52, 168, 83, 0.2);
  box-shadow: 0 0 20px rgba(52, 168, 83, 0.05);
}
.glass-card.glowing-blue {
  border-color: rgba(66, 133, 244, 0.2);
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.05);
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular health score component */
.score-circle-container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.circular-progress {
  position: relative;
  width: 100px;
  height: 100px;
}
.circular-progress svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 8;
}
.circle-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 276.4; /* 2 * PI * 44 */
  stroke-dashoffset: 27.64; /* 90% optimization */
  transition: stroke-dashoffset 1s ease-in-out;
}
.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-numbers);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.score-info h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.score-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Top 3 Local Pack list */
.local-pack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pack-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.pack-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.pack-item.highlight-my-business {
  background: rgba(66, 133, 244, 0.05);
  border-color: rgba(66, 133, 244, 0.2);
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.05);
}
.pack-rank {
  font-family: var(--font-numbers);
  font-size: 20px;
  font-weight: 900;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pack-item:nth-child(1) .pack-rank { background: rgba(251, 188, 5, 0.15); color: var(--google-yellow); }
.pack-item:nth-child(2) .pack-rank { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.pack-item:nth-child(3) .pack-rank { background: rgba(249, 115, 22, 0.15); color: #F97316; }

.pack-info {
  flex: 1;
}
.pack-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.pack-stars {
  font-size: 11px;
  color: var(--google-yellow);
  margin-top: 2px;
}
.pack-status {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
}
.pack-status.verified {
  background: rgba(52, 168, 83, 0.1);
  color: var(--google-green);
}
.pack-status.unoptimized {
  background: rgba(234, 67, 53, 0.1);
  color: var(--google-red);
}

/* Metric Display Widgets */
.metric-row-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.mini-metric-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.mini-metric-num {
  font-family: var(--font-numbers);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.mini-metric-num.before-color {
  color: var(--google-red);
}
.mini-metric-num.after-color {
  color: var(--google-green);
}
.mini-metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* SVG Line Chart animation */
.svg-chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.chart-grid-line {
  stroke: rgba(255,255,255,0.04);
  stroke-width: 1;
}

/* Locked Card overlay */
.locked-card {
  position: relative;
}
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  z-index: 5;
  transition: var(--transition-bezier);
}
.locked-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.locked-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.locked-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.5;
}

/* Achievement Notification Banner */
.achievement-banner {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.9) 0%, rgba(0, 242, 254, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.25);
  border-radius: 50px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.achievement-banner.active {
  top: 24px;
}
.ach-badge {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ach-info h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 900;
  color: #fff;
}
.ach-info p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.8);
}
.ach-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  margin-left: 8px;
  transition: opacity 0.2s;
}
.ach-close:hover {
  opacity: 1;
}

/* Login screen overlay */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-deep-space);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.login-screen.hidden {
  transform: translateY(-100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border-glow-default);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.login-logo-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}
.login-logo-bars span {
  display: block;
  width: 5px;
  border-radius: 2px 2px 0 0;
}
.login-logo-bars span:nth-child(1) { height: 8px; background: var(--google-blue); }
.login-logo-bars span:nth-child(2) { height: 13px; background: var(--google-red); }
.login-logo-bars span:nth-child(3) { height: 18px; background: var(--google-yellow); }
.login-logo-bars span:nth-child(4) { height: 24px; background: var(--google-green); }

.login-logo-word {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.login-logo-word em {
  font-style: normal;
  color: var(--google-blue);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  color: #fff;
  outline: none;
  transition: all 0.3s;
}
.login-input:focus {
  border-color: var(--google-blue);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.25);
}
.login-btn {
  background: var(--google-blue);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
  transition: all 0.3s;
}
.login-btn:hover {
  background: #1a6bda;
  transform: translateY(-1px);
}
.login-error-msg {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--google-red);
  margin-top: 12px;
}
.login-creds-hint {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  color: var(--google-yellow);
  background: rgba(251, 188, 5, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 20px;
  border: 1px solid rgba(251, 188, 5, 0.15);
}

/* ==========================================================================
   Responsive adjustments & SPA Layout Updates
   ========================================================================== */

/* Client Selector styling */
.sidebar-selector-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 24px;
}
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.sidebar-client-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}
.sidebar-client-select:focus {
  border-color: var(--google-blue);
}

.top-selector-container {
  display: flex;
  align-items: center;
}
.top-client-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* SPA Tabs Switching */
.tab-view {
  display: none;
}
.tab-view.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom Nav Menu */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  flex: 1;
  height: 100%;
  transition: var(--transition-bezier);
}
.bottom-nav-item.active {
  color: var(--cyan-neon);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}
.bottom-nav-icon {
  font-size: 18px;
}

/* Alert Card Styles */
.alert-card {
  background: rgba(234, 67, 53, 0.03);
  border: 1px solid rgba(234, 67, 53, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.05);
}
.alert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--google-red);
}
.alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.alert-icon {
  font-size: 22px;
}
.alert-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.alert-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 34px;
}
.alert-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 34px;
  flex-wrap: wrap;
  gap: 12px;
}
.alert-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--google-red);
  background: rgba(234, 67, 53, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(234, 67, 53, 0.15);
}
.btn-primary-small {
  background: var(--google-blue);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}
.btn-primary-small:hover {
  background: #1a6bda;
  transform: translateY(-1px);
}

/* Fugas Selladas checklist widget styles */
.fugas-summary-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.fugas-progress-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fugas-progress-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.fugas-progress-count {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.fugas-progress-bar-container {
  flex: 1;
  min-width: 150px;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fugas-progress-bar-fill {
  height: 100%;
  background: var(--google-green);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(52, 168, 83, 0.4);
}
.fugas-recovered-badge {
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--google-green);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(52, 168, 83, 0.05);
}
.fugas-recovered-badge strong {
  font-family: var(--font-numbers);
  font-size: 14.5px;
  font-weight: 900;
  color: #fff;
}
.fugas-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.fuga-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-bezier);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.fuga-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}
.fuga-checkbox-item.completed {
  border-color: rgba(52, 168, 83, 0.15);
  background: rgba(52, 168, 83, 0.02);
}
.fuga-checkbox-item.completed:hover {
  background: rgba(52, 168, 83, 0.03);
}
.fuga-check {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.fuga-checkbox-box {
  position: relative;
  height: 20px;
  width: 20px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.3s;
  margin-top: 2px;
}
.fuga-check:checked ~ .fuga-checkbox-box {
  background: var(--google-green);
  border-color: var(--google-green);
  box-shadow: 0 0 10px rgba(52, 168, 83, 0.4);
}
.fuga-check:disabled ~ .fuga-checkbox-box {
  opacity: 0.7;
}
.fuga-checkbox-box::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.fuga-check:checked ~ .fuga-checkbox-box::after {
  display: block;
}
.fuga-checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fuga-checkbox-label strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.fuga-checkbox-label span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Security scan sweep animation on locked cards */
.roadmap-phases-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.roadmap-phase-card {
  position: relative;
  background: var(--bg-slate-card);
  border: 1px solid var(--border-glow-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.roadmap-phase-card.completed {
  border-color: rgba(52, 168, 83, 0.25);
  box-shadow: 0 0 25px rgba(52, 168, 83, 0.06);
}
.roadmap-phase-card.locked {
  border-color: rgba(0, 242, 254, 0.1);
  background: rgba(10, 15, 26, 0.4);
}
.phase-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.phase-badge.active {
  background: rgba(52, 168, 83, 0.1);
  color: var(--google-green);
  border: 1px solid rgba(52, 168, 83, 0.2);
}
.phase-badge.locked {
  background: rgba(0, 242, 254, 0.08);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 242, 254, 0.15);
  animation: pulse-cyan-badge 2s infinite;
}
@keyframes pulse-cyan-badge {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.2); }
  70% { box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}
.phase-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.phase-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.phase-stats {
  display: flex;
  gap: 12px;
}
.stat-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
}
.phase-lock-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cyan-neon);
  font-weight: 700;
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}
.lock-icon {
  font-size: 14px;
}
.security-scan-sweep {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 242, 254, 0.01) 40%,
    rgba(0, 242, 254, 0.15) 50%,
    rgba(0, 242, 254, 0.01) 60%,
    transparent 100%
  );
  animation: sweepAnimation 5s infinite linear;
  pointer-events: none;
  z-index: 1;
}
@keyframes sweepAnimation {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Chat container styles */
.messages-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 500px;
  padding: 0 !important;
  overflow: hidden;
}
.messages-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.msg-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.msg-sidebar-header h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}
.msg-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.channel-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.channel-item.active {
  background: rgba(161, 66, 244, 0.08);
  border: 1px solid rgba(161, 66, 244, 0.15);
}
.channel-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.channel-icon {
  font-size: 16px;
}
.channel-info {
  display: flex;
  flex-direction: column;
}
.channel-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.channel-status {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.messages-chat-area {
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 20, 0.3);
  position: relative;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}
.chat-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.chat-user-status {
  font-size: 10px;
  color: var(--google-green);
}
.chat-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--google-blue);
  background: rgba(66, 133, 244, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(66, 133, 244, 0.15);
}
.chat-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  position: relative;
}
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}
.chat-message.incoming {
  align-self: flex-start;
}
.chat-message.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}
.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.5;
}
.chat-message.incoming .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  border-top-left-radius: 4px;
}
.chat-message.outgoing .msg-bubble {
  background: var(--google-blue);
  color: #fff;
  border-top-right-radius: 4px;
}
.msg-time {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}
.chat-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  z-index: 5;
}
.chat-locked-overlay h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.chat-locked-overlay p {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Support and FAQs */
.support-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.support-card-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.support-icon {
  font-size: 40px;
  margin-bottom: 16px;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-card-item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.support-card-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.faq-accordion {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item[open] {
  border-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.faq-question {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.faq-answer {
  padding: 0 16px 16px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Multicolor Progress Loader for TechFlow/En proceso */
.loader-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.spinner-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 48px;
}
.spinner-bars span {
  display: block;
  width: 10px;
  border-radius: 5px;
  animation: pulse-equalizer 1.5s infinite ease-in-out;
}
.spinner-bars span:nth-child(1) { height: 16px; background: var(--google-blue); animation-delay: 0.1s; }
.spinner-bars span:nth-child(2) { height: 26px; background: var(--google-red); animation-delay: 0.3s; }
.spinner-bars span:nth-child(3) { height: 36px; background: var(--google-yellow); animation-delay: 0.5s; }
.spinner-bars span:nth-child(4) { height: 48px; background: var(--google-green); animation-delay: 0.7s; }

@keyframes pulse-equalizer {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.loader-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}
.multicolor-progress-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.multicolor-progress-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.05);
}
.multicolor-progress-fill {
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  height: 100%;
  width: 0%;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
  transition: width 0.2s linear;
}
.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-percentage {
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 900;
  color: var(--google-yellow);
}
.progress-step-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.neon-text-yellow {
  color: var(--google-yellow);
  text-shadow: 0 0 10px rgba(251, 188, 5, 0.3);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    height: 100vh;
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding-bottom: 80px; /* spacing for bottom nav */
  }
  .app-sidebar.open {
    left: 0;
  }
  .mobile-navbar {
    display: flex;
  }
  .app-main {
    padding: 24px 16px 88px 16px; /* Space for bottom nav */
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .glass-card {
    grid-column: span 12 !important;
    padding: 24px;
  }
  .bottom-nav {
    display: flex;
  }
  .fugas-checklist-grid {
    grid-template-columns: 1fr;
  }
  .support-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .messages-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 400px;
  }
  .messages-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  .header-info h2 {
    font-size: 22px;
  }
  .metric-row-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .score-circle-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }
  .circular-progress {
    width: 80px;
    height: 80px;
  }
  .circle-text {
    font-size: 20px;
  }
  .achievement-banner {
    width: calc(100% - 32px);
    border-radius: 24px;
    padding: 10px 16px;
    gap: 10px;
  }
  .ach-badge {
    font-size: 18px;
    width: 32px;
    height: 32px;
  }
}
