/* ==========================================================================
   TEF/POS Help - Design System & Modern UI Styles
   ========================================================================== */

:root {
  --bg-body: #090d16;
  --bg-surface: #0e1526;
  --bg-card: #121a2d;
  --bg-card-hover: #17223b;
  --bg-glass: rgba(18, 26, 45, 0.75);
  --bg-input: #151f36;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(139, 92, 246, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --primary: #8b5cf6;
  --primary-hover: #a78bfa;
  --primary-light: rgba(139, 92, 246, 0.15);
  --primary-glow: rgba(139, 92, 246, 0.35);
  
  --blue: #3b82f6;
  --blue-light: rgba(59, 130, 246, 0.15);
  --blue-glow: rgba(59, 130, 246, 0.3);
  
  --cyan: #06b6d4;
  --cyan-light: rgba(6, 182, 212, 0.15);
  
  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  
  --amber: #f59e0b;
  --amber-light: rgba(245, 158, 11, 0.15);
  
  --rose: #ef4444;
  --rose-light: rgba(239, 68, 68, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.light-mode {
  --bg-body: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;
  
  --border-color: #cbd5e1;
  --border-highlight: rgba(99, 102, 241, 0.45);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #475569;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.12);
  --primary-glow: rgba(79, 70, 229, 0.25);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);
}

select option {
  background-color: #ffffff;
  color: #0f172a;
}

body.dark-mode select option {
  background-color: #121a2d;
  color: #f8fafc;
}

::selection {
  background: #bfdbfe;
  color: #0f172a;
}

body.dark-mode ::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient glow background effects */
.bg-ambient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.blob-1 {
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(139, 92, 246, 0) 70%);
}

.blob-2 {
  top: 35%;
  left: -150px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(6, 182, 212, 0) 70%);
}

.blob-3 {
  bottom: -100px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, rgba(59, 130, 246, 0) 70%);
}

/* Top Navbar */
.help-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .brand-name {
  background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-action:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Main Layout */
.help-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 16px 32px 16px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid var(--border-highlight);
  color: var(--primary-hover);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 30px auto;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 20px auto;
}

.search-input {
  width: 100%;
  padding: 16px 52px 16px 50px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
}

.search-icon-left {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 4px;
  border-radius: 4px;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

.search-kbd-hint {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

/* Quick Cheat Sheet Bar (Comandos Rápidos) */
.quick-commands-bar {
  margin: 28px 0 44px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.quick-commands-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--blue), var(--cyan), var(--emerald));
}

.commands-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.commands-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.commands-bar-badge {
  font-size: 0.72rem;
  background: var(--emerald-light);
  color: var(--emerald);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.command-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.command-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.command-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.command-code {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
}

.command-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.command-copy-btn {
  background: var(--primary-light);
  border: 1px solid var(--border-highlight);
  color: var(--primary-hover);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.command-card:hover .command-copy-btn {
  background: var(--primary);
  color: #fff;
}

/* Category Filter Tabs */
.filter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Cards Grid */
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .procedures-grid {
    grid-template-columns: 1fr;
  }
}

/* Procedure Card */
.proc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.proc-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(139, 92, 246, 0.2);
}

.proc-card-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-hover);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  transition: var(--transition);
}

.proc-card:hover .proc-card-click-hint {
  background: var(--primary);
  color: #fff;
}

.proc-card-header {
  padding: 24px 24px 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.proc-card-title-group {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.proc-number-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid var(--border-highlight);
  color: var(--primary-hover);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proc-header-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 4px;
}

.proc-category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.proc-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Sections inside card body */
.info-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.info-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.info-block-content {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Callout Alert Boxes */
.callout-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.callout-box.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.callout-box.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.callout-box.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.callout-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Steps List (Numbered timeline style) */
.steps-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  font-size: 0.9rem;
  color: var(--text-main);
  flex: 1;
}

.step-content strong {
  color: #fff;
}

body.light-mode .step-content strong {
  color: #0f172a;
}

.code-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-hover);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid rgba(139, 92, 246, 0.3);
  cursor: pointer;
}

.code-badge:hover {
  background: var(--primary);
  color: #fff;
}

/* Deadline Badges */
.deadlines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deadline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deadline-card-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.deadline-card-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
}

.deadline-card-note {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Card Action Footer */
.proc-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-card-action {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: var(--primary-light);
}

/* Interactive Simulator Section */
.simulator-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.simulator-header {
  margin-bottom: 24px;
}

.simulator-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

@media (max-width: 880px) {
  .simulator-body {
    grid-template-columns: 1fr;
  }
}

.sim-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sim-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.sim-select:focus {
  border-color: var(--primary);
}

.sim-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-result-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-result-steps {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* WhatsApp Generator Section */
.share-tool-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .share-tool-section {
    grid-template-columns: 1fr;
  }
}

.share-tool-preview {
  background: #0b141a;
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #e9edef;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 280px;
  overflow-y: auto;
}

body.light-mode .share-tool-preview {
  background: #e5ddd5;
  color: #111b21;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Procedure Detail Modal */
.proc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.proc-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.proc-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl), 0 0 50px rgba(139, 92, 246, 0.3);
  transform: scale(0.94) translateY(15px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.proc-modal-backdrop.active .proc-modal-content {
  transform: scale(1) translateY(0);
}

.proc-modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
}

.proc-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proc-modal-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid var(--border-highlight);
  color: var(--primary-hover);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proc-modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.proc-modal-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.proc-modal-close-btn:hover {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  transform: rotate(90deg);
}

.proc-modal-body {
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.proc-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.help-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  background: var(--bg-surface);
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-hover);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .bg-ambient-blob,
  .help-navbar,
  .search-wrapper,
  .filter-pills-wrap,
  .simulator-section,
  .share-tool-section,
  .proc-card-footer,
  .btn-nav-action,
  .command-copy-btn,
  .help-footer {
    display: none !important;
  }
  .help-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .procedures-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .proc-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
    box-shadow: none !important;
  }
  .quick-commands-bar {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}
