/* Reset and Variables */
:root {
  --bg-primary: #080c0a;
  --bg-secondary: #0f1613;
  --card-bg: rgba(18, 26, 22, 0.65);
  --card-bg-solid: #141f1a;
  --card-border: rgba(16, 185, 129, 0.08);
  --card-border-focus: rgba(16, 185, 129, 0.3);
  --primary: #10b981;
  --primary-rgb: 16, 185, 129;
  --primary-hover: #059669;
  --accent: #fbbf24;
  --accent-rgb: 251, 191, 36;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 15px rgba(16, 185, 129, 0.15);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-fa);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--card-border-focus);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* App Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 80px 24px 100px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.badge-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.badge {
  font-family: var(--font-fa);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-location {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-version {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent);
  border-color: rgba(251, 191, 36, 0.2);
  direction: ltr;
}

#main-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #f8fafc 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.search-container:focus-within {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
  transition: var(--transition);
}

.search-container:focus-within .search-icon {
  color: var(--primary);
}

#search-input {
  width: 100%;
  background: rgba(15, 22, 19, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.15);
  outline: none;
  color: var(--text-main);
  padding: 16px 52px 16px 45px;
  font-family: var(--font-fa);
  font-size: 1.05rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

#search-input:focus {
  border-color: var(--primary);
  background: rgba(15, 22, 19, 0.95);
}

.clear-btn {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.clear-btn:hover {
  color: var(--danger);
  background: rgba(244, 63, 94, 0.1);
}

/* Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
}

/* Guide Content Section */
.guide-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Filters */
.filters-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.filters-container {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-fa);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Search Status Bar */
.search-status {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

/* Guidebook Lists and Cards */
.category-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-block:hover {
  border-color: var(--card-border-focus);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.category-header i {
  color: var(--primary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.category-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Accordion Details/Summary styling */
.disclosure-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclosure {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.disclosure[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.disclosure:hover {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.disclosure summary {
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
  transition: var(--transition);
}

/* Custom indicator icon */
.disclosure summary::after {
  content: '\f107'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.disclosure[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.disclosure summary:focus-visible {
  background: rgba(16, 185, 129, 0.08);
}

.disclosure-content {
  padding: 0 20px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-size: 0.95rem;
  animation: slideDown 0.3s ease;
}

/* Markdown Styles inside content */
.disclosure-content p {
  margin-bottom: 12px;
}

.disclosure-content ul, .disclosure-content ol {
  margin-right: 20px;
  margin-bottom: 12px;
}

.disclosure-content li {
  margin-bottom: 6px;
}

.disclosure-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.disclosure-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
  transition: var(--transition);
}

.disclosure-content a:hover {
  color: var(--primary-hover);
  border-bottom-style: solid;
}

/* Tables inside Markdown */
.disclosure-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
  text-align: right;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.disclosure-content th, .disclosure-content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.disclosure-content th {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.disclosure-content tr:last-child td {
  border-bottom: none;
}

.disclosure-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

/* Highlights and Alerts */
.highlight-text {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.alert-box {
  background: rgba(244, 63, 94, 0.1);
  border-right: 4px solid var(--danger);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 12px 0;
}

/* Highlight search queries */
mark {
  background: rgba(251, 191, 36, 0.35);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
}

/* AI Assistant Section */
.assistant-section {
  position: relative;
}

.assistant-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 600px;
  position: sticky;
  top: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.assistant-card:hover {
  border-color: var(--card-border-focus);
}

/* Assistant Header */
.assistant-header {
  background: rgba(15, 22, 19, 0.85);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  animation: pulse 2s infinite;
}

.assistant-info h3 {
  font-size: 1rem;
  font-weight: 700;
}

.assistant-status-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  word-wrap: break-word;
  animation: messageFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message p {
  margin-bottom: 8px;
}
.message p:last-child {
  margin-bottom: 0;
}

.message-user {
  background: var(--primary);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.message-assistant {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.04);
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

.message-assistant strong {
  color: var(--accent);
}

.message-assistant a {
  color: var(--primary);
}

.system-message {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.1);
  color: var(--text-muted);
  max-width: 100%;
  text-align: center;
  border-radius: var(--border-radius-sm);
  align-self: center;
}

.error-message {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #fda4af;
  max-width: 100%;
  border-radius: var(--border-radius-sm);
  align-self: center;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Quick Suggestion Chips */
.quick-chips-wrapper {
  margin-top: 10px;
  animation: fadeIn 0.4s ease;
}

.chips-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-fa);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-chip:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Chat Input Area */
.chat-input-area {
  background: rgba(15, 22, 19, 0.85);
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  outline: none;
  color: var(--text-main);
  padding: 10px 16px;
  font-family: var(--font-fa);
  font-size: 0.9rem;
  resize: none;
  max-height: 120px;
  transition: var(--transition);
}

#chat-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.send-btn {
  background: var(--primary);
  border: none;
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

/* Mobile Toggle Button */
.mobile-chat-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px; /* Float left in RTL for natural alignment */
  background: var(--primary);
  color: var(--text-dark);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), var(--shadow-glow);
  cursor: pointer;
  z-index: 99;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-chat-toggle:hover {
  transform: scale(1.05);
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--text-main);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border-focus);
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  background: rgba(0,0,0,0.2);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  outline: none;
  color: var(--text-main);
  padding: 12px 16px;
  padding-left: 45px;
  font-family: var(--font-en); /* API Keys are English */
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.04);
}

.toggle-visibility-btn {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
}

.toggle-visibility-btn:hover {
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  font-family: var(--font-fa);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

/* Footer Section */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer .copyright {
  opacity: 0.7;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Media Queries (Responsive) */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 16px;
  }
  
  #main-title {
    font-size: 2.2rem;
  }
  
  .hero {
    min-height: 300px;
    padding: 60px 16px 80px 16px;
  }
  
  /* Desktop Assistant turns into Drawer/Popup on mobile */
  .assistant-section {
    display: none; /* Hide default sidebar placement */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  
  .assistant-section.active {
    display: flex;
  }
  
  .assistant-card {
    width: 100%;
    max-width: 500px;
    height: 85vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-chat-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  #main-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  
  #search-input {
    padding: 14px 44px 14px 40px;
    font-size: 0.95rem;
  }
  
  .search-icon {
    right: 15px;
  }
  
  .category-block {
    padding: 16px;
  }
  
  .category-header h2 {
    font-size: 1.2rem;
  }
}
