/* ========== PROFESSIONAL IT HELP DESK STYLESHEET ========== */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
  --primary-50: #1e293b;
  --primary-100: #1e3a5f;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --success-light: rgba(5,150,105,0.15);
  --danger-light: rgba(220,38,38,0.15);
  --warning-light: rgba(217,119,6,0.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* ========== HEADER ========== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

[data-theme="dark"] .header {
  background: rgba(15,23,42,0.95);
}

.header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}

.mobile-nav a:hover { background: var(--primary-50); color: var(--primary); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: 8px;
}

.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-icon { font-size: 16px; }

/* ========== CONTAINER ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
}

.hero > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-wizard {
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wizard:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========== SEARCH ========== */
.search-container {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.search-input::placeholder { color: var(--text-muted); }

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

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

.search-result-item {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s ease;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-50); }
.search-result-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.search-result-category { font-size: 13px; color: var(--text-muted); }

/* ========== SECTIONS ========== */
.section {
  padding: 48px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.section-link:hover { text-decoration: underline; }

/* ========== RECENT ISSUES ========== */
.recent-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.recent-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 220px;
  scroll-snap-align: start;
}

.recent-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.recent-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.recent-card-time { font-size: 13px; color: var(--text-muted); }

/* ========== CATEGORIES ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
}

.category-card:hover .category-card-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.category-card:hover .category-card-icon span {
  filter: brightness(10);
}

.category-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== POPULAR ISSUES ========== */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.popular-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.popular-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.popular-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.popular-card-info { flex: 1; min-width: 0; }
.popular-card-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular-card-meta { font-size: 13px; color: var(--text-muted); }

/* ========== EMERGENCY ========== */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.emergency-card {
  background: var(--bg-card);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.15s ease;
}

.emergency-card:hover { box-shadow: var(--shadow-md); }

.emergency-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--danger-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.emergency-card h3 { font-size: 16px; margin-bottom: 4px; }
.emergency-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 24px 0 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.1s;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 8px; color: var(--text-muted); }
.breadcrumb span { color: var(--text-secondary); font-weight: 500; }

/* ========== VIEWS ========== */
.view {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: none;
}

.view.active { display: block; }

/* ========== CATEGORY VIEW ========== */
#view-category h1, #view-subcategory h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

#view-category > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.subcategory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.subcategory-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.subcategory-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.subcategory-card-name { font-weight: 600; font-size: 14px; }

/* ========== ISSUES LIST ========== */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.issue-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.issue-list-title { flex: 1; font-weight: 600; font-size: 15px; }
.issue-list-meta { display: flex; gap: 8px; align-items: center; }

/* ========== BADGES ========== */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.difficulty-easy { background: var(--success-light); color: var(--success); }
.difficulty-medium { background: var(--warning-light); color: var(--warning); }
.difficulty-hard { background: var(--danger-light); color: var(--danger); }

.time-badge {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== ISSUE VIEW ========== */
.issue-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.issue-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.issue-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.issue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #047857; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-300); }

/* ========== PROGRESS BAR ========== */
.progress-bar-container {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title { font-size: 14px; font-weight: 600; }
.progress-text { font-size: 13px; color: var(--text-muted); }

.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ========== STEPS ========== */
.steps-container {
  margin-bottom: 32px;
}

.steps-container h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 20px 20px 20px 64px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
}

.steps-list li:hover { border-color: var(--primary); }

.steps-list li.completed {
  border-color: var(--success);
  background: rgba(5,150,105,0.02);
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s ease;
}

.steps-list li.completed::before {
  background: var(--success);
  color: white;
  content: '✓';
}

.steps-list li.completed::after {
  content: '';
}

.step-instruction {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.step-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== RATING ========== */
.rating-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.rating-box h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.star {
  font-size: 24px;
  cursor: pointer;
  opacity: 0.25;
  transition: all 0.1s ease;
  padding: 4px;
}

.star:hover, .star.active { opacity: 1; transform: scale(1.15); }
.rating-text { font-size: 14px; color: var(--text-muted); }

/* ========== RESOLUTION ========== */
.resolution-box {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.resolution-box h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.resolution-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== PROFESSIONAL BOX ========== */
.professional-box {
  margin-top: 32px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-50), var(--bg-card));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.professional-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.professional-box h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.professional-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

.professional-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== RESOLVED ========== */
.resolved-box {
  margin-top: 32px;
  padding: 40px;
  background: var(--success-light);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  text-align: center;
}

.resolved-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.resolved-box h3 { color: var(--success); font-size: 20px; margin-bottom: 8px; }
.resolved-box p { color: var(--text-secondary); margin-bottom: 20px; }

/* ========== WIZARD ========== */
.wizard-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.wizard-container h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wizard-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
}

.wizard-step h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wizard-option {
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wizard-option:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.wizard-progress {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.wizard-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 50%;
}

#wizard-progress-text { font-size: 13px; color: var(--text-muted); }

/* ========== GLOSSARY ========== */
.glossary-search {
  margin-bottom: 24px;
}

.glossary-search input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.glossary-search input:focus { border-color: var(--primary); }

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.glossary-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glossary-term {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 15px;
}

.glossary-def { color: var(--text-secondary); font-size: 14px; }

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}

.faq-question:hover { background: var(--primary-50); }

.faq-arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 24px;
}

.contact-form-container {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-form-container h2 {
  font-size: 18px;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.contact-success {
  text-align: center;
  padding: 48px 32px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info h2 { font-size: 18px; margin-bottom: 8px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; margin-bottom: 2px; font-size: 14px; }
.contact-info-item p { font-size: 14px; color: var(--text-secondary); }

/* ========== BLOG ========== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.15s ease;
}

.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.blog-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.blog-card h3 { font-size: 16px; margin-bottom: 8px; }
.blog-card p { color: var(--text-secondary); font-size: 14px; }

/* ========== CHATBOT ========== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.chatbot-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.chatbot-close:hover { background: rgba(255,255,255,0.2); }

.chatbot-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
}

.chatbot-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message { display: flex; }
.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.bot .chat-bubble {
  background: var(--gray-100);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble a { color: var(--primary); font-weight: 600; }
.chat-message.user .chat-bubble a { color: white; }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-suggestion {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text);
}

.chat-suggestion:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.chatbot-input {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.chatbot-input button {
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.chatbot-input button:hover { background: var(--primary-dark); }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.15s ease;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== MODALS ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.modal-close:hover { background: var(--gray-100); color: var(--text); }

.modal-body { padding: 20px; }

.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.share-btn {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.share-whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-email:hover { border-color: var(--primary); color: var(--primary); }
.share-twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-copy:hover { border-color: var(--success); color: var(--success); }

.share-link-container { display: flex; gap: 8px; }
.share-link-container input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

.shortcuts-list { display: flex; flex-direction: column; gap: 8px; }

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
}

kbd {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-family: 'SF Mono', Monaco, monospace;
  box-shadow: 0 1px 0 var(--border);
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.1s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom p { margin-bottom: 4px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }

  .hero h1 { font-size: 28px; }
  .hero > p { font-size: 16px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  .subcategories-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .glossary-list { grid-template-columns: 1fr; }
  .wizard-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .chatbot-container { width: calc(100% - 32px); right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .subcategories-grid { grid-template-columns: 1fr; }
  .share-options { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 32px 16px; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ========== PRINT ========== */
@media print {
  .header, .footer, .back-to-top, .chatbot-container, .issue-actions,
  .resolution-box, .professional-box, .resolved-box, .rating-box,
  .progress-bar-container, .breadcrumb, .btn-wizard { display: none !important; }
  .main { padding: 0; }
  .steps-list li { break-inside: avoid; }
  body { background: white; color: black; }
}

/* ========== IFIXIT SOURCE BADGES ========== */
.source-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.source-ifixit {
  background: #1a9c21;
  color: white;
}

.issue-source-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #1a9c21;
  text-decoration: none;
  margin-left: 12px;
  padding: 4px 12px;
  border: 1px solid #1a9c21;
  border-radius: 6px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.issue-source-link:hover {
  background: #1a9c21;
  color: white;
}

[data-theme="dark"] .issue-source-link {
  color: #4ade80;
  border-color: #4ade80;
}

[data-theme="dark"] .issue-source-link:hover {
  background: #4ade80;
  color: #0f172a;
}

/* ========== TOOLS NEEDED BOX ========== */
.tools-needed-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.tools-needed-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tools-list li::before {
  content: "•";
  color: var(--primary);
  margin-right: 6px;
  font-weight: bold;
}
