/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (Lion Wave Custom Theme)
   ========================================================================== */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors */
  --bg-primary: #050507;
  --bg-secondary: #0e0e11;
  --bg-tertiary: #18181d;
  --bg-glass: rgba(14, 14, 17, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  
  --primary: #ffffff;      /* Metallic Silver / Chrome White */
  --primary-hover: #d4d4d8;
  --primary-glow: rgba(255, 255, 255, 0.2);
  
  --secondary: #a1a1aa;    /* Platinum */
  --secondary-glow: rgba(161, 161, 170, 0.15);
  
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #09090b;
  
  --success: #10b981;      /* Emerald Green */
  --success-glow: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;       /* Ruby Red */
  --danger-glow: rgba(239, 68, 68, 0.25);
  --warning: #f59e0b;      /* Yellow Amber */
  
  /* Shadows & Radius */
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 15px var(--primary-glow);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Layout */
  --header-height: 64px;
  --nav-bar-height: 0px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-body);
  background-image: linear-gradient(rgba(5, 5, 7, 0.65), rgba(5, 5, 7, 0.85)), url('van_background.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
}

/* ==========================================================================
   PANTALLA DE LOGIN (Glassmorphism & Glow)
   ========================================================================== */
.login-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 20px;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.login-glass-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-header {
  margin-bottom: 30px;
}

.logo-circle-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.brand-logo-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 50%;
}

.header-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-instruction {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

#pin-input {
  width: 100%;
  padding: 16px 20px;
  padding-right: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 8px;
  transition: all 0.3s ease;
  font-family: monospace;
}

#pin-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  box-shadow: 0 0 12px var(--secondary-glow);
}

.input-icon-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
}

.input-icon-btn:hover {
  color: var(--text-main);
}

.error-text {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shake 0.4s ease-in-out;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
}

.login-footer {
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   APP SHELL LAYOUT (Header, Navigation & Content Wrapper)
   ========================================================================== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: transparent;
}

/* App Header */
.app-header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.header-tagline {
  font-size: 0.7rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.icon-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn-round:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Main Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px;
  max-width: 600px; /* Centered, mobile layout behavior */
  margin: 0 auto;
  width: 100%;
}

/* Bottom Navigation Bar */
.app-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: var(--nav-bar-height);
  background: rgba(13, 33, 61, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item i {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* View Visiblity */
.app-view {
  display: flex;
  flex-direction: column;
  animation: view-fade-in 0.3s ease-out;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   VISTA: DASHBOARD STYLES
   ========================================================================== */
.welcome-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gradient-bg {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a365d 100%);
  border: 1px solid var(--border-glass);
}

.welcome-text h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.welcome-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 80%;
}

.highlight-text {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 8px var(--primary-glow);
}

.dashboard-badge {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.15;
}

.badge-icon {
  width: 120px;
  height: 120px;
  color: var(--primary);
}

.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  margin-top: 10px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.view-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.view-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Tip of the day */
.tip-card {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.tip-icon-wrapper {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.tip-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.tip-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Quick Actions Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.quick-card:active {
  transform: scale(0.95);
  background: var(--bg-tertiary);
  border-color: var(--border-glass);
}

.qc-icon {
  width: 28px;
  height: 28px;
}

.quick-card span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
}

.c-orange { color: var(--primary); }
.c-cyan { color: var(--secondary); }
.c-green { color: var(--success); }
.c-yellow { color: var(--warning); }

/* Progress bar */
.percentage-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
}

.progress-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--success) 100%);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.quick-info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-muted);
}

.info-val {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   VISTA: MANUALS (List, Categories & Search)
   ========================================================================== */
.search-bar-container {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

#search-input {
  width: 100%;
  padding: 14px 20px;
  padding-left: 45px;
  padding-right: 40px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
  background: var(--bg-tertiary);
}

.hidden-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}

.hidden-btn.hidden {
  display: none;
}

/* Category Cards */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:active {
  transform: scale(0.98);
  background: var(--bg-tertiary);
  border-color: var(--border-glass);
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
}

.cat-icon-container.bg-blue { background: rgba(0, 210, 255, 0.15); color: var(--secondary); }
.cat-icon-container.bg-yellow { background: rgba(245, 166, 35, 0.15); color: var(--primary); }
.cat-icon-container.bg-orange { background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(239,68,68,0.15)); color: #ff7a00; }
.cat-icon-container.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.cat-icon-container.bg-red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.cat-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.cat-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chevron-btn {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

/* Articles list within category */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.05);
  align-self: flex-start;
  transition: all 0.2s ease;
}

.back-nav:active {
  background: rgba(0, 210, 255, 0.15);
}

.back-nav i {
  width: 16px;
  height: 16px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-row-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-row-card:active {
  background: var(--bg-tertiary);
}

.art-info-col h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.art-meta-p {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.art-meta-p span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.art-status-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.art-status-badge.read {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.art-status-badge.unread {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* Search Results UI */
.search-results-container {
  margin-bottom: 20px;
}

.results-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  background: var(--bg-tertiary);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
}

.search-result-item h4 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.search-result-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-result-snippet mark {
  background: rgba(245, 166, 35, 0.3);
  color: var(--text-main);
  padding: 0 2px;
  border-radius: 2px;
}

/* ==========================================================================
   VISTA: WRITER / ARTICLE READER
   ========================================================================== */
.article-reader {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
}

.article-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-time i {
  width: 14px;
  height: 14px;
}

.btn-mark-read {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-mark-read i {
  width: 14px;
  height: 14px;
}

.btn-mark-read.completed {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* Article Body Typography Styling */
.article-body {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
}

.article-body h4 {
  font-size: 1rem;
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.article-body ul, .article-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Bullet list custom check markers if needed */
.article-body .alert-tip {
  background: rgba(0, 210, 255, 0.08);
  border-left: 4px solid var(--secondary);
  padding: 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.88rem;
}

.article-body .alert-warning {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--danger);
  padding: 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.88rem;
}

.article-body .highlight-box {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

/* ==========================================================================
   VISTA: CHECKLISTS
   ========================================================================== */
.checklist-toggle-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
}

.checklist-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-tab.active {
  background: var(--bg-tertiary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.checklist-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
}

.checklist-header {
  margin-bottom: 20px;
}

.checklist-header span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.checklist-mini-progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.checklist-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* Custom Checkbox Design */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-item.checked {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.03);
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: transparent;
}

.checkbox-custom i {
  width: 14px;
  height: 14px;
}

.checklist-item.checked .checkbox-custom {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-dark);
}

.checklist-item-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.checklist-item.checked .checklist-item-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-footer-action {
  margin-top: 10px;
}

/* ==========================================================================
   VISTA: SUPPORT & PROTOCOLS
   ========================================================================== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.contact-card:active {
  background: var(--bg-tertiary);
  transform: scale(0.99);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.bg-blue { background: rgba(0, 210, 255, 0.1); color: var(--secondary); }
.contact-icon.bg-red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.contact-icon.bg-yellow { background: rgba(245, 166, 35, 0.1); color: var(--primary); }

.contact-info {
  flex: 1;
}

.contact-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-main);
}

.contact-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.phone-number {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

.ext-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Accident Protocol Timeline */
.protocol-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
  margin-top: 15px;
}

.protocol-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--bg-tertiary);
}

.timeline-step {
  position: relative;
  padding-bottom: 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-desc strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   UI UTILITIES (Toasts, Alert Boxes & Animations)
   ========================================================================== */
.alert-box-info {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #f2e1c1;
  margin-top: 10px;
}

.info-alert-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-tertiary);
  border: 1px solid var(--secondary);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Animations */
@keyframes view-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 210, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

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

.animate-slide-up {
  animation: view-fade-in 0.4s ease-out;
}

.text-glow {
  text-shadow: 0 0 10px var(--secondary-glow);
}

/* Language Switcher Button Styles */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.lang-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
}

/* Desktop Centering and Frame */
@media (min-width: 600px) {
  body {
    /* Keep background image from global body */
  }
  
  .app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .login-glass-card {
    border: 1px solid var(--border-glass);
  }
}

/* Step Cards for typical-day workflow */
.step-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-bottom-right-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-details {
  margin-top: 14px;
}

.step-details h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 700;
}

.step-details ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.step-details li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}

.step-details li:last-child {
  margin-bottom: 0;
}

.step-details li strong {
  color: var(--text-main);
}


