:root {
  --accent-primary: #f067eb;
  --accent-secondary: #679efe;
  --bg-gradient: radial-gradient(ellipse at top, #1a0a1f 0%, #0a0a0f 50%, #000000 100%);
  --text-primary: #ffffff;
  --text-muted: #b8b8c8;
  --surface-bg: rgba(30, 20, 40, 0.6);
  --surface-border-color: rgba(240, 103, 235, 0.2);
  --surface-border-width: 1px;
  --surface-shadow: 0 24px 60px rgba(240, 103, 235, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
  --surface-blur: 24px;
  --card-radius: 28px;
  --card-padding: 2rem 1.8rem;
  --controls-padding: 2.2rem;
  --panel-width: 380px;
  --animation-duration: 0.4s;
  --font-scale: 1;
  --focus-width: 3px;
  --focus-color: var(--accent-primary);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.6s ease, color 0.6s ease;
  font-size: calc(16px * var(--font-scale));
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(240, 103, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(103, 158, 254, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

body.light {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f5f5ff 100%) !important;
  color: #1a1a1a !important;
}

body.light::before {
  background: 
    radial-gradient(circle at 20% 30%, rgba(240, 103, 235, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(103, 158, 254, 0.03) 0%, transparent 50%);
}

body.light header,
body.light .controls-section,
body.light .source-card,
body.light .trust-feed-card,
body.light .welcome-message,
body.light .empty-state,
body.light .error-state {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(240, 103, 235, 0.15) !important;
  box-shadow: 0 12px 32px rgba(240, 103, 235, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) !important;
}

body.light .filter-btn {
  background: rgba(240, 103, 235, 0.08);
  color: #1a1a1a;
  border-color: rgba(240, 103, 235, 0.2);
}

body.light .filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
}

body.light .toolbar,
body.light .view-toggle {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(185, 142, 255, 0.25);
}

body.light .toolbar-btn,
body.light .lens-toggle,
body.light .checkbox-toggle {
  background: #f4f2f8;
  color: #1a1a1a;
  border-color: rgba(185, 142, 255, 0.25);
}

body.light .toolbar-btn:hover:not(:disabled),
body.light .lens-toggle:hover,
body.light .checkbox-toggle:hover {
  background: #eee8f9;
  border-color: rgba(185, 142, 255, 0.4);
  box-shadow: 0 6px 18px rgba(185, 142, 255, 0.2);
}

body.light #search-input {
  background: #f4f2f8;
  border-color: rgba(185, 142, 255, 0.25);
  color: #1a1a1a;
}

body.light #search-input::placeholder {
  color: #6c617a;
}

body.light .sort-btn,
body.light .category-pill {
  background: #f4f2f8;
  color: #1a1a1a;
  border-color: rgba(185, 142, 255, 0.25);
}

body.light .sort-btn:hover:not(.active),
body.light .category-pill:hover:not(.active) {
  background: #eee8f9;
}

body.light .details-btn {
  background: #f4f2f8;
  color: #1a1a1a;
  border-color: rgba(185, 142, 255, 0.35);
}

body.light .details-btn:hover {
  background: #eee8f9;
}

body.light .source-details {
  border-top-color: rgba(185, 142, 255, 0.2);
}

body.light .lens-toggle input[type='checkbox'],
body.light .checkbox-toggle input,
body.light .accessibility-option input[type='checkbox'],
body.light .checkbox-label input[type='checkbox'] {
  background: #fff;
  border-color: rgba(185, 142, 255, 0.6);
}

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast * {
  border-color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast header,
body.high-contrast .controls-section,
body.high-contrast .source-card,
body.high-contrast .trust-feed-card {
  background: #000 !important;
  border: 3px solid #fff !important;
}

body.dyslexia-font {
  font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}

body[data-surface='solid'] {
  --surface-bg: rgba(25, 15, 35, 0.95);
  --surface-border-color: rgba(240, 103, 235, 0.25);
  --surface-shadow: 0 20px 50px rgba(240, 103, 235, 0.12), 0 8px 20px rgba(0, 0, 0, 0.5);
}

body[data-surface='minimal'] {
  --surface-bg: rgba(30, 20, 40, 0.4);
  --surface-border-color: rgba(240, 103, 235, 0.3);
  --surface-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body[data-density='compact'] {
  --card-padding: 1.4rem 1.2rem;
  --controls-padding: 1.6rem;
  --card-radius: 20px;
}

body[data-density='cozy'] {
  --card-padding: 2.5rem 2.2rem;
  --controls-padding: 2.6rem;
  --card-radius: 32px;
}

body.reduced-density {
  --card-padding: 2.8rem 2.5rem;
  --controls-padding: 2.8rem;
}

body[data-feed='off'] #feed-tab {
  display: none !important;
}

body[data-feed='off'] #feed-view {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(240, 103, 235, 0.4);
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-width) solid var(--accent-secondary);
  outline-offset: 4px;
}

.boot-splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 5, 15, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1200;
  gap: 1rem;
  text-align: center;
  transition: opacity 0.6s ease;
}

.boot-splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.boot-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.boot-subtext {
  color: var(--text-muted);
  font-size: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  animation: spin 0.8s linear infinite;
  margin: 0.75rem auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(20, 10, 30, 0.8);
  border-bottom: 1px solid rgba(240, 103, 235, 0.15);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(240, 103, 235, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  filter: drop-shadow(0 2px 8px rgba(240, 103, 235, 0.4));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(5deg);
}

header h1 {
  font-size: calc(2rem * var(--font-scale));
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.view-toggle {
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 103, 235, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  min-width: 70px;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.view-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.view-btn.active::before {
  opacity: 1;
}

.view-btn > * {
  position: relative;
  z-index: 1;
}

.view-btn.active {
  color: #fff;
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.4);
}

.view-btn:not(.active):hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

#theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 103, 235, 0.15);
  padding: 0.7rem;
  border-radius: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  background: rgba(240, 103, 235, 0.15);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.3);
}

.account-button {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 24px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.4);
  min-height: 44px;
}

.account-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240, 103, 235, 0.5);
}

.container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 2.5rem 3.5rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-section h2 {
  font-size: calc(4rem * var(--font-scale));
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, #a067ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(240, 103, 235, 0.3);
}

.subtitle {
  font-size: calc(1.4rem * var(--font-scale));
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.version-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(240, 103, 235, 0.2), rgba(103, 158, 254, 0.15));
  color: var(--accent-primary);
  padding: 0.65rem 1.4rem;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.5rem;
  border: 1px solid rgba(240, 103, 235, 0.3);
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.2);
}

.trust-lens-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.lens-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem 1.8rem;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(240, 103, 235, 0.2);
  font-size: 1.05rem;
  font-weight: 600;
}

.lens-toggle:hover {
  background: rgba(240, 103, 235, 0.18);
  border-color: rgba(240, 103, 235, 0.4);
  box-shadow: 0 6px 20px rgba(240, 103, 235, 0.25);
  transform: translateY(-2px);
}

.lens-toggle input[type='checkbox'] {
  width: 20px;
  height: 20px;
  appearance: none;
  border-radius: 6px;
  border: 2px solid rgba(240, 103, 235, 0.6);
  background: rgba(10, 10, 15, 0.6);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.lens-toggle input[type='checkbox']::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.lens-toggle input[type='checkbox']:checked::after {
  opacity: 1;
  transform: scale(1);
}

.controls-section {
  background: var(--surface-bg);
  border-radius: var(--card-radius);
  padding: var(--controls-padding);
  border: var(--surface-border-width) solid var(--surface-border-color);
  backdrop-filter: blur(var(--surface-blur)) saturate(150%);
  box-shadow: var(--surface-shadow);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.controls-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.6;
}

#search-input {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border-radius: 28px;
  border: 2px solid rgba(240, 103, 235, 0.2);
  background: rgba(30, 20, 40, 0.5);
  color: inherit;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

#search-input:focus {
  border-color: var(--accent-primary);
  background: rgba(240, 103, 235, 0.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 103, 235, 0.15), 0 8px 24px rgba(240, 103, 235, 0.2);
  transform: translateY(-2px);
}

.filter-sort-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
  align-items: center;
}

#source-count {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.filter-btn {
  background: rgba(30, 20, 40, 0.6);
  padding: 0.75rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(240, 103, 235, 0.2);
  cursor: pointer;
  font-weight: 700;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 90px;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn.active::before {
  opacity: 1;
}

.filter-btn > * {
  position: relative;
  z-index: 1;
}

.filter-btn.active {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(240, 103, 235, 0.4);
  transform: translateY(-2px);
}

.filter-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240, 103, 235, 0.3);
  background: rgba(240, 103, 235, 0.15);
}

.filter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.source-card {
  background: var(--surface-bg);
  border-radius: var(--card-radius);
  border: var(--surface-border-width) solid var(--surface-border-color);
  padding: var(--card-padding);
  margin-bottom: 1.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(var(--surface-blur)) saturate(150%);
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), #a067ff);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.reduced-motion) .source-card:hover::before {
  left: 0;
}

body:not(.reduced-motion) .source-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(240, 103, 235, 0.25), 0 16px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(240, 103, 235, 0.4);
}

.source-card--new {
  border-color: rgba(103, 158, 254, 0.5);
  box-shadow: 0 0 0 1px rgba(103, 158, 254, 0.4), var(--surface-shadow);
  background: linear-gradient(135deg, rgba(30, 20, 40, 0.6), rgba(20, 30, 50, 0.5));
}

.source-card--new::before {
  background: linear-gradient(90deg, var(--accent-secondary), #a067ff, var(--accent-primary));
}

.source-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.logo-container {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(240, 103, 235, 0.1), rgba(103, 158, 254, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(240, 103, 235, 0.2);
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.15);
}

.source-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.source-summary {
  flex: 1;
  min-width: 220px;
}

.source-name {
  font-size: calc(1.6rem * var(--font-scale));
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff, #e0e0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.source-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.details-btn {
  border: 1px solid rgba(240, 103, 235, 0.25);
  background: rgba(240, 103, 235, 0.12);
  color: var(--text-primary);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.details-btn:hover {
  background: rgba(240, 103, 235, 0.2);
  border-color: rgba(240, 103, 235, 0.45);
  transform: translateY(-1px);
}

.source-description {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.source-details {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(240, 103, 235, 0.15);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.details-block h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.details-block p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.details-evidence {
  margin: 0.4rem 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.category-badge {
  background: linear-gradient(135deg, rgba(240, 103, 235, 0.15), rgba(103, 158, 254, 0.1));
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(240, 103, 235, 0.25);
}

.source-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.source-link::after {
  content: '→';
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.source-link:hover {
  color: var(--accent-primary);
}

.source-link:hover::after {
  transform: translateX(4px);
}

.trust-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(240, 103, 235, 0.12), rgba(103, 158, 254, 0.08));
  border-radius: 20px;
  min-width: 100px;
  position: relative;
  cursor: help;
  border: 1px solid rgba(240, 103, 235, 0.25);
  box-shadow: 0 4px 16px rgba(240, 103, 235, 0.2);
  transition: all 0.3s ease;
}

.trust-score-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(240, 103, 235, 0.35);
}

.trust-score {
  font-size: calc(2rem * var(--font-scale));
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #a067ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(240, 103, 235, 0.3);
}

.trust-level {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.trust-evidence {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(20, 10, 30, 0.98);
  border: 2px solid rgba(240, 103, 235, 0.5);
  border-radius: 20px;
  padding: 1.4rem;
  margin-top: 1rem;
  min-width: 340px;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(240, 103, 235, 0.3), 0 8px 24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}

.trust-evidence-title {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.evidence-icon {
  color: var(--accent-secondary);
  font-weight: 800;
}

.trust-score-badge:hover .trust-evidence,
.trust-score-badge:focus-visible .trust-evidence {
  display: block;
  animation: fadeInUp 0.3s ease;
}

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

.trust-feed {
  background: var(--surface-bg);
  border-radius: var(--card-radius);
  border: var(--surface-border-width) solid var(--surface-border-color);
  padding: var(--card-padding);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(var(--surface-blur)) saturate(150%);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(240, 103, 235, 0.15);
}

.feed-title {
  font-size: calc(1.8rem * var(--font-scale));
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feed-status {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  background: rgba(103, 158, 254, 0.15);
  border-radius: 12px;
}

.trust-feed-card {
  background: rgba(30, 20, 40, 0.5);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(240, 103, 235, 0.15);
margin-bottom: 1.2rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
.trust-feed-card:hover {
transform: translateX(8px);
background: rgba(240, 103, 235, 0.12);
border-color: rgba(240, 103, 235, 0.3);
box-shadow: 0 4px 20px rgba(240, 103, 235, 0.2);
}
.feed-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.6rem;
}
.feed-card-type {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: 800;
color: var(--accent-primary);
}
.feed-card-time {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 500;
}
.feed-card-content {
font-size: 1rem;
line-height: 1.6;
}
.welcome-message,
.empty-state,
.error-state {
text-align: center;
padding: 5rem 2.5rem;
border-radius: var(--card-radius);
background: var(--surface-bg);
border: var(--surface-border-width) solid var(--surface-border-color);
margin: 3rem 0;
box-shadow: var(--surface-shadow);
backdrop-filter: blur(var(--surface-blur));
}
.message-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
filter: drop-shadow(0 4px 12px rgba(240, 103, 235, 0.4));
}
.accessibility-toggle {
position: fixed;
right: 0;
top: 180px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
color: white;
border: none;
padding: 1.1rem 1rem;
border-radius: 24px 0 0 24px;
cursor: pointer;
z-index: 950;
font-size: 1.4rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-width: 48px;
min-height: 48px;
box-shadow: -8px 0 24px rgba(240, 103, 235, 0.5);
}
.accessibility-toggle:hover {
padding-right: 1.5rem;
box-shadow: -12px 0 32px rgba(240, 103, 235, 0.6);
transform: translateX(-2px);
}
.accessibility-panel {
position: fixed;
right: -420px;
top: 100px;
width: var(--panel-width);
max-width: calc(100vw - 32px);
background: rgba(20, 10, 30, 0.98);
border: 2px solid rgba(240, 103, 235, 0.2);
border-radius: 24px 0 0 24px;
padding: 2rem;
transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 940;
max-height: 85vh;
overflow-y: auto;
box-shadow: -16px 0 48px rgba(240, 103, 235, 0.2), -8px 0 24px rgba(0, 0, 0, 0.6);
backdrop-filter: blur(24px);
}
.accessibility-panel.open {
right: 0;
}
.panel-intro {
margin-bottom: 1.5rem;
}
.panel-title {
font-size: 1.3rem;
font-weight: 800;
color: var(--accent-primary);
margin-bottom: 0.4rem;
}
.panel-subtitle {
color: var(--text-muted);
font-size: 0.95rem;
}
.panel-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(240, 103, 235, 0.3), transparent);
margin: 2rem 0;
}
.panel-section {
display: grid;
gap: 1.2rem;
margin-bottom: 1.8rem;
}
.panel-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.panel-field {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.panel-field label,
.field-label {
font-size: 1rem;
font-weight: 700;
color: var(--text-primary);
}
.field-hint {
font-size: 0.85rem;
color: var(--text-muted);
}
.panel-field select,
.panel-field input[type='color'] {
border-radius: 14px;
border: 1px solid rgba(240, 103, 235, 0.25);
background: rgba(30, 20, 40, 0.5);
color: inherit;
padding: 0.8rem;
font-size: 1rem;
transition: all 0.3s ease;
}
.panel-field select:focus,
.panel-field input[type='color']:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(240, 103, 235, 0.2);
outline: none;
}
.panel-field--color input[type='color'] {
width: 100%;
height: 48px;
padding: 0;
border-radius: 14px;
border: 2px solid rgba(240, 103, 235, 0.3);
background: transparent;
cursor: pointer;
}
.accessibility-option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
padding: 0.5rem 0;
}
.accessibility-option label {
display: flex;
align-items: center;
gap: 0.8rem;
cursor: pointer;
color: var(--text-primary);
font-weight: 600;
font-size: 1rem;
}
.accessibility-option input[type='checkbox'] {
width: 20px;
height: 20px;
appearance: none;
border-radius: 6px;
border: 2px solid rgba(240, 103, 235, 0.6);
background: rgba(10, 10, 15, 0.6);
display: inline-grid;
place-items: center;
cursor: pointer;
}

.accessibility-option input[type='checkbox']::after {
content: '';
width: 11px;
height: 11px;
border-radius: 3px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
opacity: 0;
transform: scale(0.7);
transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.accessibility-option input[type='checkbox']:checked::after {
opacity: 1;
transform: scale(1);
}
.accessibility-option select {
width: 100%;
padding: 0.8rem;
border-radius: 14px;
border: 1px solid rgba(240, 103, 235, 0.25);
background: rgba(30, 20, 40, 0.5);
color: inherit;
font-size: 1rem;
}
.sync-status {
padding: 1.2rem;
background: rgba(103, 158, 254, 0.18);
border-radius: 14px;
border: 1px solid rgba(103, 158, 254, 0.4);
color: #d0e0ff;
font-size: 0.9rem;
font-weight: 700;
box-shadow: 0 4px 16px rgba(103, 158, 254, 0.2);
}
.page-footer {
text-align: center;
padding: 2.5rem;
color: rgba(255, 255, 255, 0.5);
font-size: 0.95rem;
margin-top: 4rem;
border-top: 1px solid rgba(240, 103, 235, 0.1);
}
.page-footer a {
color: var(--accent-secondary);
text-decoration: none;
transition: color 0.3s ease;
font-weight: 600;
}
.page-footer a:hover {
color: var(--accent-primary);
}
.page-footer-quote {
margin-top: 0.8rem;
font-style: italic;
font-size: 0.9rem;
color: var(--text-muted);
font-weight: 500;
}
.visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
button,
input,
select {
font-family: inherit;
}
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
outline: var(--focus-width) solid var(--focus-color);
outline-offset: 4px;
}
/* Toolbar */
.toolbar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1.2rem;
margin-bottom: 2.5rem;
padding: 1.8rem;
background: var(--surface-bg);
border-radius: var(--card-radius);
border: var(--surface-border-width) solid var(--surface-border-color);
box-shadow: var(--surface-shadow);
backdrop-filter: blur(var(--surface-blur)) saturate(150%);
}
.toolbar-section {
display: flex;
gap: 1.2rem;
align-items: center;
flex-wrap: wrap;
}
.toolbar-btn {
background: rgba(30, 20, 40, 0.6);
border: 1px solid rgba(240, 103, 235, 0.2);
padding: 0.75rem 1.4rem;
border-radius: 16px;
color: inherit;
cursor: pointer;
font-weight: 700;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 44px;
display: flex;
align-items: center;
gap: 0.6rem;
}
.toolbar-btn:hover:not(:disabled) {
background: rgba(240, 103, 235, 0.18);
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(240, 103, 235, 0.3);
border-color: rgba(240, 103, 235, 0.4);
}
.toolbar-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.checkbox-toggle {
display: flex;
align-items: center;
gap: 0.7rem;
cursor: pointer;
padding: 0.6rem 1.2rem;
border-radius: 16px;
transition: all 0.3s ease;
font-weight: 600;
}
.checkbox-toggle:hover {
background: rgba(240, 103, 235, 0.1);
}
.checkbox-toggle input {
width: 20px;
height: 20px;
appearance: none;
border-radius: 6px;
border: 2px solid rgba(240, 103, 235, 0.6);
background: rgba(10, 10, 15, 0.6);
display: inline-grid;
place-items: center;
cursor: pointer;
}

.checkbox-toggle input::after {
content: '';
width: 11px;
height: 11px;
border-radius: 3px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
opacity: 0;
transform: scale(0.7);
transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.checkbox-toggle input:checked::after {
opacity: 1;
transform: scale(1);
}
/* Stats Dashboard */
.stats-dashboard {
margin-bottom: 2.5rem;
padding: 2.2rem;
background: var(--surface-bg);
border-radius: var(--card-radius);
border: var(--surface-border-width) solid var(--surface-border-color);
box-shadow: var(--surface-shadow);
backdrop-filter: blur(var(--surface-blur)) saturate(150%);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1.8rem;
}
.stat-card {
text-align: center;
padding: 1.8rem;
background: linear-gradient(135deg, rgba(240, 103, 235, 0.08), rgba(103, 158, 254, 0.05));
border-radius: 20px;
border: 1px solid rgba(240, 103, 235, 0.15);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
transform: translateY(-6px) scale(1.02);
background: linear-gradient(135deg, rgba(240, 103, 235, 0.15), rgba(103, 158, 254, 0.1));
box-shadow: 0 8px 28px rgba(240, 103, 235, 0.25);
}
.stat-value {
font-size: calc(2.5rem * var(--font-scale));
font-weight: 900;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #a067ff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 0.6rem;
text-shadow: 0 2px 8px rgba(240, 103, 235, 0.2);
}
.stat-label {
font-size: 0.95rem;
color: var(--text-muted);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Aero Panel */
.aero-panel {
background: var(--surface-bg);
border: var(--surface-border-width) solid var(--surface-border-color);
border-radius: var(--card-radius);
box-shadow: var(--surface-shadow);
padding: 2rem;
margin-top: 2rem;
backdrop-filter: blur(var(--surface-blur)) saturate(150%);
}
.aero-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.8rem;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid rgba(240, 103, 235, 0.15);
}
.aero-panel-header h3 {
font-size: 1.6rem;
font-weight: 800;
margin-bottom: 0.4rem;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.aero-panel-header p {
color: var(--text-muted);
margin: 0;
font-weight: 500;
}
.aero-panel-link {
padding: 0.75rem 1.5rem;
border-radius: 24px;
border: 1px solid rgba(240, 103, 235, 0.4);
color: var(--text-primary);
text-decoration: none;
background: linear-gradient(135deg, rgba(240, 103, 235, 0.15), rgba(103, 158, 254, 0.1));
font-weight: 700;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.2);
}
.aero-panel-link:hover {
transform: translateY(-3px);
background: linear-gradient(135deg, rgba(240, 103, 235, 0.25), rgba(103, 158, 254, 0.18));
box-shadow: 0 6px 24px rgba(240, 103, 235, 0.35);
}
.aero-grid {
display: grid;
grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
gap: 2rem;
}
.aero-card {
background: rgba(30, 20, 40, 0.5);
border: 1px solid rgba(240, 103, 235, 0.15);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(240, 103, 235, 0.1);
backdrop-filter: blur(10px);
}
.aero-card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.2rem 1.5rem;
background: rgba(10, 5, 15, 0.4);
border-bottom: 1px solid rgba(240, 103, 235, 0.15);
}
.aero-card-header h4 {
margin: 0;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: 800;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.aero-status {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 600;
}
.aero-card-body {
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.1rem;
}
.aero-label {
font-size: 0.9rem;
color: var(--text-muted);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.aero-input,
.aero-select {
width: 100%;
padding: 0.9rem 1.2rem;
border-radius: 18px;
border: 1px solid rgba(240, 103, 235, 0.2);
background: rgba(30, 20, 40, 0.5);
color: inherit;
transition: all 0.3s ease;
font-size: 1rem;
}
.aero-input:focus,
.aero-select:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(240, 103, 235, 0.2);
outline: none;
}
.aero-search-fields {
display: flex;
flex-direction: column;
gap: 0.9rem;
}
.aero-checkbox {
display: flex;
align-items: center;
gap: 0.7rem;
font-size: 0.9rem;
color: var(--text-muted);
font-weight: 600;
}
.aero-checkbox input[type='checkbox'] {
width: 20px;
height: 20px;
accent-color: var(--accent-primary);
}
.aero-chips {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}
.aero-chip {
border: 1px solid rgba(240, 103, 235, 0.2);
background: rgba(30, 20, 40, 0.5);
color: inherit;
padding: 0.5rem 0.9rem;
border-radius: 20px;
font-size: 0.8rem;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.aero-chip:hover {
border-color: rgba(240, 103, 235, 0.5);
background: rgba(240, 103, 235, 0.15);
transform: translateY(-2px);
}
.aero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
margin-top: 0.5rem;
}
.aero-btn {
border: 1px solid rgba(240, 103, 235, 0.2);
background: rgba(30, 20, 40, 0.5);
color: inherit;
padding: 0.75rem 1.3rem;
border-radius: 20px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.aero-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.aero-btn:not(:disabled):hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.25);
}
.aero-primary {
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
border-color: transparent;
color: #fff;
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.4);
}
.aero-primary:hover {
box-shadow: 0 6px 24px rgba(240, 103, 235, 0.5);
}
.aero-ghost {
background: rgba(30, 20, 40, 0.3);
border-color: rgba(240, 103, 235, 0.1);
}
.aero-tip {
color: var(--text-muted);
font-size: 0.9rem;
margin: 0;
font-weight: 500;
line-height: 1.5;
}
.aero-score-view,
.aero-search-view {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.aero-score-box {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.2rem;
padding: 1.2rem 1.5rem;
border-radius: 20px;
border: 1px solid rgba(240, 103, 235, 0.2);
background: linear-gradient(135deg, rgba(240, 103, 235, 0.08), rgba(103, 158, 254, 0.05));
}
.aero-score {
font-size: 2.8rem;
font-weight: 900;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.aero-score-meta {
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 200px;
}
.aero-verdict {
font-weight: 800;
font-size: 1.1rem;
}
.aero-bar {
height: 12px;
width: 100%;
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
border: 1px solid rgba(240, 103, 235, 0.2);
}
.aero-bar > div {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.aero-small {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 500;
}
.aero-item {
padding: 1.1rem 1.3rem;
border-radius: 18px;
border: 1px solid rgba(240, 103, 235, 0.15);
background: rgba(30, 20, 40, 0.4);
}
.aero-item h5 {
margin: 0 0 0.8rem;
font-size: 1rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--accent-secondary);
}
.aero-item ul {
margin: 0 0 0 1.2rem;
color: var(--text-muted);
line-height: 1.7;
}
.aero-kvs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.8rem;
}
.aero-kvs .aero-kv {
padding: 0.8rem 1rem;
border-radius: 14px;
border: 1px solid rgba(240, 103, 235, 0.15);
background: rgba(30, 20, 40, 0.4);
display: flex;
justify-content: space-between;
font-size: 0.85rem;
font-weight: 600;
}
.aero-list {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.aero-answer-text {
color: var(--text-muted);
line-height: 1.7;
margin-bottom: 0.5rem;
font-weight: 500;
}
.aero-card pre {
margin: 0;
padding: 1.1rem;
border-radius: 14px;
background: rgba(10, 5, 15, 0.5);
border: 1px solid rgba(240, 103, 235, 0.15);
overflow: auto;
font-size: 0.85rem;
line-height: 1.5;
}
/* Sort Controls */
.sort-container {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 1.2rem;
}
.sort-label {
font-weight: 700;
color: var(--text-muted);
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.sort-btn {
background: rgba(30, 20, 40, 0.6);
border: 1px solid rgba(240, 103, 235, 0.2);
padding: 0.75rem 1.2rem;
border-radius: 16px;
color: inherit;
cursor: pointer;
font-weight: 700;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 44px;
display: flex;
align-items: center;
gap: 0.5rem;
}
.sort-btn.active {
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
border-color: transparent;
color: #fff;
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.4);
}
.sort-btn:hover:not(.active) {
background: rgba(240, 103, 235, 0.15);
border-color: rgba(240, 103, 235, 0.3);
transform: translateY(-2px);
}
.sort-icon {
opacity: 0.7;
font-size: 0.9em;
}
/* Category Filters */
.category-filters {
margin-top: 1.8rem;
display: flex;
align-items: flex-start;
gap: 1.2rem;
flex-wrap: wrap;
}
.filter-label {
font-weight: 700;
color: var(--text-muted);
font-size: 0.95rem;
padding-top: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
#category-pills {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
}
.category-pill {
background: rgba(30, 20, 40, 0.6);
border: 1px solid rgba(240, 103, 235, 0.2);
padding: 0.6rem 1.2rem;
border-radius: 24px;
color: inherit;
cursor: pointer;
font-weight: 700;
font-size: 0.9rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 40px;
}
.category-pill.active {
background: linear-gradient(135deg, var(--accent-secondary), #a067ff);
border-color: transparent;
color: #fff;
box-shadow: 0 4px 16px rgba(103, 158, 254, 0.4);
}
.category-pill:hover:not(.active) {
background: rgba(240, 103, 235, 0.15);
border-color: rgba(240, 103, 235, 0.3);
transform: translateY(-3px);
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.2);
}
/* Bulk Actions Bar */
.bulk-actions-bar {
position: sticky;
top: 90px;
z-index: 100;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #a067ff);
padding: 1.2rem 2.5rem;
border-radius: var(--card-radius);
margin-bottom: 2.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1.2rem;
box-shadow: 0 12px 32px rgba(240, 103, 235, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
from {
transform: translateY(-30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
#selection-count {
font-weight: 900;
color: #fff;
font-size: 1.2rem;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.bulk-action-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.bulk-btn {
background: rgba(255, 255, 255, 0.25);
border: 1px solid rgba(255, 255, 255, 0.4);
padding: 0.75rem 1.4rem;
border-radius: 16px;
color: #fff;
cursor: pointer;
font-weight: 700;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 44px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.bulk-btn:hover {
background: rgba(255, 255, 255, 0.4);
transform: translateY(-3px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.bulk-btn.secondary {
background: rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.3);
}
/* Source Action Buttons */
.source-actions {
display: flex;
gap: 0.6rem;
margin-bottom: 1.2rem;
padding-bottom: 1.2rem;
border-bottom: 1px solid rgba(240, 103, 235, 0.15);
}
.checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: 20px;
height: 20px;
appearance: none;
border-radius: 6px;
border: 2px solid rgba(240, 103, 235, 0.6);
background: rgba(10, 10, 15, 0.6);
display: inline-grid;
place-items: center;
cursor: pointer;
margin: 0;
}

.checkbox-label input[type="checkbox"]::after {
content: '';
width: 11px;
height: 11px;
border-radius: 3px;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
opacity: 0;
transform: scale(0.7);
transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.checkbox-label input[type="checkbox"]:checked::after {
opacity: 1;
transform: scale(1);
}
.action-btn {
background: transparent;
border: 1px solid rgba(240, 103, 235, 0.2);
padding: 0.5rem 1rem;
border-radius: 12px;
cursor: pointer;
font-size: 1.3rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-width: 44px;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
}
.action-btn:hover {
background: rgba(240, 103, 235, 0.15);
transform: scale(1.15);
border-color: rgba(240, 103, 235, 0.4);
}
.action-btn.active {
background: rgba(240, 103, 235, 0.25);
border-color: var(--accent-primary);
box-shadow: 0 4px 16px rgba(240, 103, 235, 0.3);
}
.favorite-btn.active {
animation: heartPulse 0.4s ease;
}
@keyframes heartPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.4); }
}
.source-card--selected {
border-color: var(--accent-primary) !important;
background: rgba(240, 103, 235, 0.08) !important;
box-shadow: 0 0 0 3px rgba(240, 103, 235, 0.4), var(--surface-shadow);
}
/* Dropdown Menu */
.dropdown {
position: relative;
}
.dropdown-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
margin-top: 0.6rem;
background: rgba(20, 10, 30, 0.98);
border: 2px solid rgba(240, 103, 235, 0.25);
border-radius: 16px;
padding: 0.6rem;
min-width: 220px;
box-shadow: 0 16px 48px rgba(240, 103, 235, 0.2), 0 8px 24px rgba(0, 0, 0, 0.7);
z-index: 1000;
backdrop-filter: blur(20px);
}
.dropdown-menu button {
width: 100%;
text-align: left;
background: transparent;
border: none;
padding: 1rem 1.2rem;
border-radius: 12px;
color: inherit;
cursor: pointer;
font-weight: 700;
transition: all 0.3s ease;
display: block;
}
.dropdown-menu button:hover {
background: rgba(240, 103, 235, 0.2);
transform: translateX(4px);
}
#export-btn:hover + .dropdown-menu,
.dropdown-menu:hover {
display: block;
}
.badge {
background: linear-gradient(135deg, var(--accent-secondary), #a067ff);
color: #fff;
padding: 0.25rem 0.7rem;
border-radius: 14px;
font-size: 0.75rem;
font-weight: 800;
margin-left: 0.4rem;
box-shadow: 0 2px 8px rgba(103, 158, 254, 0.4);
}
/* Modal Dialogs */
dialog {
border: 2px solid rgba(240, 103, 235, 0.25);
border-radius: 24px;
background: rgba(20, 10, 30, 0.98);
backdrop-filter: blur(24px);
padding: 0;
max-width: 90vw;
max-height: 85vh;
overflow: auto;
box-shadow: 0 24px 72px rgba(240, 103, 235, 0.3), 0 12px 36px rgba(0, 0, 0, 0.9);
}
dialog::backdrop {
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(12px);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 2.2rem;
border-bottom: 1px solid rgba(240, 103, 235, 0.2);
}
.modal-header h2 {
font-size: calc(2rem * var(--font-scale));
font-weight: 900;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #a067ff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-primary);
font-size: 2.2rem;
cursor: pointer;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 14px;
transition: all 0.3s ease;
}
.modal-close:hover {
background: rgba(240, 103, 235, 0.15);
transform: rotate(90deg);
}
/* Comparison Modal */
.comparison-modal {
min-width: 650px;
}
.comparison-grid {
padding: 2.2rem;
}
.comparison-row {
display: grid;
grid-template-columns: 160px repeat(auto-fit, minmax(130px, 1fr));
gap: 1.2rem;
padding: 1.2rem;
border-bottom: 1px solid rgba(240, 103, 235, 0.15);
}
.comparison-row.header-row {
font-weight: 800;
background: rgba(240, 103, 235, 0.12);
border-radius: 14px;
border-bottom: none;
}
.comparison-cell {
padding: 0.6rem;
text-align: center;
}
.comparison-cell a {
color: var(--accent-secondary);
text-decoration: none;
font-weight: 700;
}
.comparison-cell a:hover {
color: var(--accent-primary);
}
/* Keyboard Shortcuts Modal */
.keyboard-shortcuts-modal {
min-width: 550px;
}
.shortcuts-grid {
padding: 2.2rem;
display: grid;
gap: 1.8rem;
}
.shortcut-item {
display: flex;
align-items: center;
gap: 1.2rem;
padding: 1.2rem;
background: rgba(30, 20, 40, 0.5);
border-radius: 16px;
transition: all 0.3s ease;
border: 1px solid rgba(240, 103, 235, 0.1);
}
.shortcut-item:hover {
background: rgba(240, 103, 235, 0.12);
border-color: rgba(240, 103, 235, 0.3);
transform: translateX(6px);
}
.shortcut-item kbd {
background: linear-gradient(135deg, rgba(240, 103, 235, 0.15), rgba(103, 158, 254, 0.1));
border: 1px solid rgba(240, 103, 235, 0.3);
border-radius: 8px;
padding: 0.5rem 1rem;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
font-weight: 800;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.shortcut-item span {
flex: 1;
color: var(--text-muted);
font-weight: 500;
}
@media print {
.accessibility-toggle,
.accessibility-panel,
.nav-right,
.boot-splash,
.toolbar,
.bulk-actions-bar,
.source-actions,
dialog {
display: none !important;
}
}
@media (max-width: 1024px) {
header {
padding: 1rem 2rem;
}
.container {
padding: 2rem 1.8rem;
}
.accessibility-panel {
width: calc(100vw - 48px);
right: -100%;
}
.accessibility-panel.open {
right: 24px;
}
.toolbar {
flex-direction: column;
align-items: stretch;
}
.toolbar-section {
justify-content: center;
}
.stats-grid {
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.comparison-modal,
.keyboard-shortcuts-modal {
min-width: auto;
width: 95vw;
}
.comparison-row {
grid-template-columns: 110px repeat(auto-fit, minmax(110px, 1fr));
font-size: 0.9rem;
}
}
@media (max-width: 768px) {
header {
flex-wrap: wrap;
gap: 1.2rem;
}
.nav-right {
width: 100%;
justify-content: space-between;
}
.accessibility-toggle {
top: auto;
bottom: 2rem;
}
.controls-section {
padding: 1.8rem;
}
.source-card {
padding: 1.6rem;
}
.bulk-actions-bar {
flex-direction: column;
align-items: stretch;
top: 70px;
padding: 1rem 1.5rem;
}
.bulk-action-buttons {
flex-direction: column;
}
.category-filters {
flex-direction: column;
align-items: stretch;
}
#category-pills {
justify-content: center;
}
.sort-container {
flex-direction: column;
align-items: stretch;
}
.sort-container [role="group"] {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.aero-panel-header {
flex-direction: column;
align-items: flex-start;
}
.aero-panel-link {
width: 100%;
text-align: center;
}
.aero-grid {
grid-template-columns: 1fr;
}
}
