:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --card-bg: #ffffff;
  --border: #e5e5e5;
  --text: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --sidebar-bg: #060708ee;
  --sidebar-text: #9ca3af;
  --sidebar-active: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --sidebar-width: 250px;
  --header-height: 60px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  stroke: #ffffff;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.sidebar-nav {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-item svg {
  flex-shrink: 0;
}
.nav-text {
  display: flex;
  flex-direction: column;
}
.nav-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}
.nav-subtitle {
  font-size: 0.75rem;
  color: var(--sidebar-text);
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  background: var(--sidebar-active);
}
.nav-item.active .nav-title,
.nav-item.active .nav-subtitle,
.nav-item.active svg {
  color: #ffffff;
  stroke: #ffffff;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 0.9rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--sidebar-text);
  margin-top: 2px;
}
.footer-copyright {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--sidebar-text);
  margin-top: 12px;
}

/* Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 90;
}

.header-nav {
  display: flex;
  gap: 32px;
}
.header-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.header-nav a:hover {
  color: var(--text);
}
.header-nav a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.header-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.header-cta:hover {
  color: var(--accent-hover);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 40px;
}

.view {
  display: none;
}
.view.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Page Header */
.page-header {
  margin-bottom: 32px;
}
.page-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
}

/* Analyzer Layout */
.analyzer-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.analyzer-main,
.analyzer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards - shared styles */
.input-card,
.progress-card,
.results-card,
.sidebar-card,
.filters-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-card {
  padding: 20px;
}
.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.progress-card.hidden,
.results-card.hidden,
.input-container.hidden {
  display: none;
}

/* Input Card */
.input-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.input-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.input-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: 8px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn:hover {
  color: var(--text);
}
.toggle-btn.active {
  background: var(--text);
  color: #ffffff;
}

textarea,
#inputUrl {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s ease;
}
textarea {
  min-height: 160px;
  resize: none;
}
textarea::placeholder {
  color: var(--text-muted);
}
textarea:focus,
#inputUrl:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
#inputUrl {
  padding: 14px 16px;
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.analyze-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.analyze-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.analyze-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Progress Card */
.progress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.progress-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.progress-step-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.step.active {
  color: var(--accent);
}
.step.completed {
  color: var(--success);
}
.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.step.active .step-number {
  background: var(--accent);
  color: #ffffff;
}
.step-text {
  flex: 1;
  font-size: 0.9rem;
}
.step-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results Card */
.results-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.results-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.results-card-header h3 {
  margin-bottom: 0;
}
.pattern-count {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Intent Charts */
.intent-charts {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.intent-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
}
.circular-progress svg {
  transform: rotate(-90deg);
}
.circle-bg {
  fill: none;
  stroke: var(--surface);
  stroke-width: 8;
}
.circle-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.circle-progress.danger {
  stroke: var(--danger);
}
.circle-progress.warning {
  stroke: var(--warning);
}
.circle-progress.success {
  stroke: var(--success);
}
.progress-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.progress-text {
  font-size: 1.5rem;
  font-weight: 700;
}
.intent-label {
  font-size: 0.9rem;
  font-weight: 500;
}
.methodology-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
}
.methodology-note strong {
  color: var(--text);
}

/* Pattern List */
.pattern-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pattern-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pattern-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.pattern-name {
  font-size: 1.1rem;
  font-weight: 600;
}
.pattern-occurrences {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pattern-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.category-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  background: var(--surface);
  border-radius: 4px;
}

.severity-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.severity-tag.high {
  background: #fef2f2;
  color: var(--danger);
}
.severity-tag.critical {
  background: #fef2f2;
  color: #b91c1c;
}
.severity-tag.medium {
  background: #fffbeb;
  color: var(--warning);
}
.severity-tag.low {
  background: #f0fdf4;
  color: var(--success);
}
.severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pattern-explanation {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.pattern-example {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.pattern-example-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.pattern-example-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
}

/* Sidebar Tips & Export */
.tip-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.tip-item:last-of-type {
  margin-bottom: 0;
}
.tip-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.tip-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tip-item a {
  color: var(--accent);
}

.export-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.export-item:hover {
  background: var(--surface);
}
.export-item div {
  flex: 1;
}
.export-item strong {
  display: block;
  font-size: 0.9rem;
}
.export-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.export-arrow {
  color: var(--text-muted);
}
.export-note {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* History */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.history-header h4 {
  margin-bottom: 0;
}
#historyCount {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}
.history-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}
.history-item svg {
  flex-shrink: 0;
  color: var(--text-muted);
}
.history-content {
  flex: 1;
  min-width: 0;
}
.history-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.history-score {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}
.history-url {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.history-patterns {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  max-width: 700px;
  padding: 60px 0 80px;
}
.hero-section h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}
.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-btn {
  background: var(--text);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

/* Features */
.features-section {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.feature-item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.feature-item:hover {
  padding-left: 16px;
}
.feature-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
}
.feature-item:hover .feature-number {
  color: var(--accent);
}
.feature-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.feature-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About Page */
.about-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding-top: 40px;
}
.about-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 20px;
}
.about-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mission-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.mission-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 16px;
}
.mission-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.value-icon {
  width: 48px;
  height: 48px;
  background: var(--text);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-icon svg {
  stroke: #ffffff;
}
.value-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Library Stats */
.library-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-icon {
  margin-bottom: 12px;
}
.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.library-coming-soon {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

/* Pattern Library */
.library-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.filters-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: fit-content;
}
.filters-card {
  padding: 20px;
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.filters-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.reset-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.reset-btn:hover {
  text-decoration: underline;
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.filter-title svg {
  color: var(--text-secondary);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.filter-option:hover {
  color: var(--text);
}
.filter-option input[type="radio"] {
  display: none;
}
.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.filter-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--accent);
}
.filter-option input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.filter-option input[type="radio"]:checked ~ span:last-child {
  color: var(--accent);
  font-weight: 500;
}

/* Patterns Main */
.patterns-main {
  min-width: 0;
}
.patterns-count {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.patterns-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Library Pattern Card */
.library-pattern-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}
.library-pattern-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.library-pattern-card.hidden {
  display: none;
}
.pattern-image {
  position: relative;
  height: 200px;
  background: var(--surface);
  overflow: hidden;
}
.pattern-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}
.bookmark-btn:hover {
  background: #ffffff;
  color: var(--accent);
}

.pattern-content {
  padding: 24px;
}
.pattern-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.pattern-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.meta-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.meta-severity {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}
.meta-severity.low {
  background: #dcfce7;
  color: #166534;
}
.meta-severity.medium {
  background: #dbeafe;
  color: #1e40af;
}
.meta-severity.high {
  background: #fef3c7;
  color: #92400e;
}
.meta-severity.critical {
  background: #fee2e2;
  color: #b91c1c;
}

.pattern-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.pattern-example-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.example-label {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.example-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
}
.pattern-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pattern-industries span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--surface);
  border-radius: 4px;
}
.show-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.show-more-btn:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  text-align: center;
  max-width: 700px;
  margin: 80px auto 0;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}
.contact-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 12px;
}
.contact-section > p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  min-width: 260px;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon.linkedin {
  background: #0077b5;
  color: #ffffff;
}
.contact-icon.email {
  background: var(--text);
  color: #ffffff;
}
.contact-icon svg {
  width: 24px;
  height: 24px;
}
.contact-info {
  text-align: left;
  flex: 1;
}
.contact-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.contact-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.contact-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1200px) {
  .analyzer-layout {
    grid-template-columns: 1fr;
  }
  .analyzer-sidebar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .library-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
  }
  .filters-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .filters-header {
    grid-column: 1 / -1;
  }
  .filter-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding-right: 20px;
  }
  .filter-section:last-child {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  .nav-text,
  .sidebar-footer,
  .logo-text {
    display: none;
  }
  .top-header {
    left: 60px;
  }
  .main-content {
    margin-left: 60px;
    padding: 24px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .library-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  .contact-card {
    width: 100%;
    max-width: 320px;
  }
  .filters-card {
    grid-template-columns: 1fr;
  }
  .filter-section {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
}


::-webkit-scrollbar {
    display: none;
}
