﻿/* Reset & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-hover: #21262d;
  --bg-active: #2d333b;
  --border: #30363d;
  --border-light: #21262d;
  --border-accent: #373e47;

  --orange: #f60;
  --orange-dim: rgba(255, 102, 0, 0.15);
  --orange-mid: rgba(255, 102, 0, 0.3);
  --orange-bright: #ff8800;

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #767c85;
  --text-accent: #ff9933;

  --green: #3fb950;
  --green-bg: rgba(63, 185, 80, 0.15);
  --green-border: rgba(63, 185, 80, 0.4);
  --yellow: #d29922;
  --yellow-bg: rgba(210, 153, 34, 0.15);
  --yellow-border: rgba(210, 153, 34, 0.4);
  --red: #f85149;
  --red-bg: rgba(248, 81, 73, 0.15);
  --red-border: rgba(248, 81, 73, 0.4);
  --gray: #6b7280;
  --gray-bg: rgba(107, 114, 128, 0.15);
  --gray-border: rgba(107, 114, 128, 0.4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(255, 102, 0, 0.3);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

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

/* Accessibility: skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

/* Accessibility: focus-visible indicator */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}

.search-wrapper {
  flex: 1;
  position: relative;
  max-width: 520px;
}

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

#searchInput {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 42px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

#searchInput::placeholder {
  color: var(--text-muted);
}

#searchInput:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
  background: var(--bg-card);
}

.kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
  transition: var(--transition);
}

#searchInput:focus+.kbd-hint {
  opacity: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-btn.active {
  color: var(--orange);
  background: var(--orange-dim);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 24px 32px;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

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

.result-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.legend-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.legend-item:hover .legend-dot {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.legend-dot.supported {
  background: linear-gradient(135deg, var(--green) 0%, #4ade80 100%);
}

.legend-dot.partial {
  background: linear-gradient(135deg, var(--yellow) 0%, #fbbf24 100%);
}

.legend-dot.unsupported {
  background: linear-gradient(135deg, var(--red) 0%, #f87171 100%);
}

.legend-dot.unknown {
  background: linear-gradient(135deg, var(--gray) 0%, #6b7280 100%);
}

/* Table Wrapper */
.table-wrapper {
  overflow: auto;
  max-height: calc(100vh - 200px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-top: 12px;
  position: relative;
  backdrop-filter: blur(10px);
  scroll-behavior: smooth;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

/* Table Header */
.compat-table thead tr {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.compat-table thead tr:first-child {
  background: var(--bg-card);
}

.compat-table thead tr:last-child {
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.th-plugin {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  width: 280px;
  position: sticky;
  left: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 30;
}

.th-spacer {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 10px 20px;
}

/* Version Group Header Row */
#versionGroupRow {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.th-spacer {
  vertical-align: middle;
  z-index: 30;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px 20px 12px;
}

.th-group {
  padding: 16px 4px 12px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 3px solid var(--orange);
  border-left: 1px solid var(--border);
  position: relative;
  vertical-align: middle;
}

.group-label {
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: block;
}

/* Individual Build Column */
.th-version {
  padding: 8px 4px 12px;
  text-align: center;
  width: 72px;
  min-width: 64px;
  border-left: 1px solid var(--border-light);
  background: var(--bg-card);
  border-top: none;
}

.th-version.th-daily {
  background: rgba(255, 102, 0, 0.04);
  border-left: 1px solid var(--orange-mid);
}

.version-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.version-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.version-number.daily-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid var(--orange-mid);
  border-radius: 4px;
  padding: 2px 4px;
  letter-spacing: 0.05em;
}

.version-year {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 400;
}

.td-daily {
  background: rgba(255, 102, 0, 0.03);
  border-left: 1px solid rgba(255, 102, 0, 0.15) !important;
}

.status-cell.daily-cell {
  opacity: 0.85;
}

/* Category Header Rows */
.category-row td {
  background: var(--bg-primary);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Plugin Rows */
.plugin-row {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.plugin-row:first-child {
  position: relative;
  z-index: 8;
  border-top: 8px solid transparent;
}

.plugin-row:first-child .td-plugin {
  padding-top: 20px;
}

.plugin-row:first-child .td-status {
  padding-top: 16px;
}

.plugin-row:last-child {
  border-bottom: none;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.plugin-row:hover {
  background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-active) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.plugin-row:hover .td-plugin {
  background: var(--bg-hover);
  border-right-color: var(--border-accent);
}

.plugin-row:hover .status-cell {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Plugin Cell */
.td-plugin {
  padding: 16px 24px;
  position: sticky;
  left: 0;
  background: var(--bg-secondary);
  border-right: 2px solid var(--border);
  z-index: 10;
  transition: var(--transition);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.plugin-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plugin-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.plugin-row:hover .plugin-name {
  color: var(--text-accent);
}

.plugin-vendor {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plugin-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  max-width: 260px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition-fast);
}

.plugin-row:hover .plugin-desc {
  color: var(--text-primary);
}

/* Status Cells */
.td-status {
  text-align: center;
  padding: 12px 6px;
  cursor: pointer;
  position: relative;
}

.status-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: var(--radius-md);
  padding: 8px;
  transition: var(--transition);
  position: relative;
  min-height: 36px;
  min-width: 36px;
  overflow: hidden;
}

.status-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  pointer-events: none;
}

.status-cell:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.status-cell:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.status-cell.supported {
  background: linear-gradient(135deg, var(--green-bg) 0%, rgba(63, 185, 80, 0.25) 100%);
  border: 2px solid var(--green-border);
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4);
}

.status-cell.supported:hover {
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.2), 0 4px 16px rgba(63, 185, 80, 0.3);
}

.status-cell.partial {
  background: linear-gradient(135deg, var(--yellow-bg) 0%, rgba(210, 153, 34, 0.25) 100%);
  border: 2px solid var(--yellow-border);
  box-shadow: 0 0 0 0 rgba(210, 153, 34, 0.4);
}

.status-cell.partial:hover {
  box-shadow: 0 0 0 4px rgba(210, 153, 34, 0.2), 0 4px 16px rgba(210, 153, 34, 0.3);
}

.status-cell.unsupported {
  background: linear-gradient(135deg, var(--red-bg) 0%, rgba(248, 81, 73, 0.25) 100%);
  border: 2px solid var(--red-border);
  box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.4);
}

.status-cell.unsupported:hover {
  box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.2), 0 4px 16px rgba(248, 81, 73, 0.3);
}

.status-cell.unknown {
  background: linear-gradient(135deg, var(--gray-bg) 0%, rgba(72, 79, 88, 0.25) 100%);
  border: 2px solid var(--gray-border);
  box-shadow: 0 0 0 0 rgba(72, 79, 88, 0.4);
}

.status-cell.unknown:hover {
  box-shadow: 0 0 0 4px rgba(72, 79, 88, 0.2), 0 4px 16px rgba(72, 79, 88, 0.3);
}

.status-icon {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: var(--transition-fast);
}

.status-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: var(--transition-fast);
}

.status-cell:hover .status-icon,
.status-cell:hover .status-svg {
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Modal / Tooltip */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform 0.2s ease;
  position: relative;
}

.modal-backdrop.visible .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title-group {
  flex: 1;
}

.modal-plugin-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-vendor {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--red-bg);
  color: var(--red);
  border-color: rgba(248, 81, 73, 0.4);
}

.modal-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-status-badge.supported {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.modal-status-badge.partial {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.modal-status-badge.unsupported {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.modal-status-badge.unknown {
  background: var(--gray-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(72, 79, 88, 0.3);
}

.modal-version-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.modal-notes {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-primary);
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--orange-mid);
  border-radius: var(--radius-sm);
  background: var(--orange-dim);
  transition: var(--transition);
}

.modal-link:hover {
  background: rgba(255, 102, 0, 0.25);
}

.modal-report-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 2px;
  transition: var(--transition);
  opacity: 0.65;
}

.modal-report-link:hover {
  opacity: 1;
  color: var(--text-secondary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 48px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

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

.footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

/* No results */
.no-results-row td {
  text-align: center;
  padding: 60px 24px;
}

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.no-results-icon {
  font-size: 36px;
}

.no-results-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.no-results-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plugin-row {
  animation: fadeIn 0.2s ease both;
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 28px 20px 24px;
  }

  .hero-sub {
    margin-bottom: 16px;
  }

  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legend {
    flex-wrap: wrap;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .header-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .logo-sub {
    display: none;
  }

  .search-wrapper {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }

  .header-nav {
    display: flex;
    width: 100%;
    order: 2;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-nav .nav-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 20px 16px 16px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-sub {
    font-size: 13px;
    margin-bottom: 12px;
  }

  main {
    padding: 12px;
  }

  .stats-bar {
    gap: 10px;
  }

  .table-controls {
    flex-wrap: wrap;
  }

  .version-search-wrap {
    flex-basis: 100%;
  }

  .td-plugin {
    width: 160px;
    min-width: 140px;
    padding: 10px 12px;
  }

  .td-plugin .plugin-name {
    font-size: 13px;
  }

  .td-plugin .plugin-desc {
    display: none;
  }

  .th-plugin {
    width: 160px;
    min-width: 140px;
    padding: 10px 12px;
  }

  .table-wrapper {
    max-height: calc(100vh - 160px);
    border-radius: var(--radius-md);
  }

  .kbd-hint {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .compat-tooltip {
    display: none !important;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* Responsive: Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 18px;
  }

  .td-plugin {
    width: 130px;
    min-width: 120px;
    padding: 8px 10px;
  }

  .th-plugin {
    width: 130px;
    min-width: 120px;
  }

  .td-plugin .plugin-vendor {
    display: none;
  }

  .legend-item {
    font-size: 11px;
  }
}

.highlight {
  background: rgba(255, 102, 0, 0.25);
  border-radius: 2px;
  color: var(--orange);
  font-weight: 600;
}

.th-spacer {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid var(--border);
}

/* Table controls (view toggle + daily toggle) */

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

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.ctrl-btn:hover {
  border-color: var(--orange);
  color: var(--text-primary);
  background: var(--orange-dim);
}

.ctrl-btn.active {
  border-color: var(--orange);
  background: var(--orange-dim);
  color: var(--orange);
}

/* Hover tooltip */

.compat-tooltip {
  position: absolute;
  display: none;
  z-index: 500;
  max-width: 340px;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 102, 0, 0.08);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(16px);
  transform: translateY(4px);
}

.compat-tooltip[style*="opacity: 1"] {
  transform: translateY(0);
}

.tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tt-badge.supported {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.tt-badge.partial {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.tt-badge.unsupported {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.tt-badge.unknown {
  background: var(--gray-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(72, 79, 88, 0.3);
}

.tt-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tt-notes {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
}

/* Collapsible categories */

.category-row {
  cursor: pointer;
  user-select: none;
}

.category-row:hover td {
  background: rgba(255, 102, 0, 0.06);
}

.category-row:focus-visible td {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.cat-chevron {
  font-size: 10px;
  margin-right: 6px;
  color: var(--orange);
  transition: transform 0.2s ease;
  display: inline-block;
}

.cat-count {
  margin-left: 8px;
  font-size: 10px;
  background: var(--bg-hover);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 500;
}

.plugin-row.row-hidden {
  display: none;
}

/* Legend click-to-filter */

.legend-item[data-status] {
  cursor: pointer;
  border-radius: 12px;
  padding: 3px 8px 3px 4px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.legend-item[data-status]:hover {
  border-color: var(--border);
  background: var(--bg-hover);
}

.legend-item.legend-active {
  border-color: var(--orange);
  background: var(--orange-dim);
  color: var(--text-primary);
}

.plugin-row.filtered-out {
  opacity: 0.18;
  transition: opacity 0.2s ease;
}

/* Per-plugin sparkline dots */

.sparkline {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 4px 0 2px;
}

.spark-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.15s ease;
}

.spark-dot:hover {
  transform: scale(1.4);
}

.spark-dot.supported {
  background: var(--green);
}

.spark-dot.partial {
  background: var(--yellow);
}

.spark-dot.unsupported {
  background: var(--red);
}

.spark-dot.unknown {
  background: var(--gray);
}

/* Per-build plugin version pill in status cells */

.status-cell.has-version {
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 3px;
}

.version-pill {
  font-size: 8.5px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  cursor: default;
  transition: background 0.12s ease, color 0.12s ease;
}

.status-cell.supported .version-pill {
  border-color: rgba(63, 185, 80, 0.35);
  color: var(--green);
}

.status-cell.partial .version-pill {
  border-color: rgba(210, 153, 34, 0.35);
  color: var(--yellow);
}

.status-cell.unsupported .version-pill {
  border-color: rgba(248, 81, 73, 0.35);
  color: var(--red);
}

.tt-plugin-ver {
  font-size: 11.5px;
  color: var(--text-primary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

.tt-plugin-ver strong {
  color: var(--orange);
}

.modal-plugin-version {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0 10px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

.modal-plugin-version strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* VERSION PICKER — search wrap in controls bar */

.version-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 4px 2px 10px;
  background: var(--bg-secondary);
  transition: border-color 0.15s ease;
}

.version-search-wrap:focus-within {
  border-color: var(--orange);
}

.version-search-icon {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.version-picker {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  min-width: 200px;
  max-width: 260px;
  padding: 3px 0;
  appearance: none;
  -webkit-appearance: none;
}

.version-picker:focus {
  color: var(--text-primary);
}

.version-picker option,
.version-picker optgroup {
  background: var(--bg-card);
  color: var(--text-primary);
}

.vr-btn {
  border-radius: 16px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  flex-shrink: 0;
}

.vr-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* VERSION REPORT PANEL — full-screen overlay */

.vr-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overflow-y: auto;
}

.vr-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.vr-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.22s ease;
}

.vr-backdrop.visible .vr-panel {
  transform: translateY(0);
}

.vr-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.vr-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.vr-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vr-close {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.vr-close:hover {
  border-color: var(--orange);
  color: var(--text-primary);
  background: var(--orange-dim);
}

.vr-stats {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.vr-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-right: 1px solid var(--border);
  transition: background 0.15s ease;
}

.vr-stat:last-child {
  border-right: none;
}

.vr-stat-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

.vr-stat.supported .vr-stat-num {
  color: var(--green);
}

.vr-stat.partial .vr-stat-num {
  color: var(--yellow);
}

.vr-stat.unsupported .vr-stat-num {
  color: var(--red);
}

.vr-stat.unknown .vr-stat-num {
  color: var(--text-muted);
}

.vr-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.vr-body {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.vr-category {
  display: flex;
  flex-direction: column;
}

.vr-cat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.vr-plugin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.12s ease;
}

.vr-plugin-row:hover {
  background: var(--bg-hover);
}

.vr-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vr-row-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.vr-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vr-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-row-vendor {
  font-size: 11px;
  color: var(--text-muted);
}

.vr-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vr-version-pill {
  font-size: 10px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  white-space: nowrap;
}

.vr-version-pill.supported {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.35);
}

.vr-version-pill.partial {
  color: var(--yellow);
  border-color: rgba(210, 153, 34, 0.35);
}

.vr-version-pill.unsupported {
  color: var(--red);
  border-color: rgba(248, 81, 73, 0.35);
}

.vr-status-label {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.vr-status-label.supported {
  background: var(--green-bg);
  color: var(--green);
}

.vr-status-label.partial {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.vr-status-label.unsupported {
  background: var(--red-bg);
  color: var(--red);
}

.vr-status-label.unknown {
  background: var(--gray-bg);
  color: var(--text-muted);
}

.vr-row-notes {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 30px 0;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* PLUGIN NAME — clickable link style */

.plugin-name-link {
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
}

.plugin-name-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.plugin-name-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.vr-plugin-row {
  cursor: pointer;
}

/* INSTALL GUIDE PANEL */

.ig-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ig-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.ig-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.65);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.2s ease;
}

.ig-backdrop.visible .ig-panel {
  transform: scale(1) translateY(0);
}

.ig-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.ig-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ig-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

.ig-vendor {
  font-size: 11px;
  color: var(--text-muted);
  margin: 3px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ig-close {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ig-close:hover {
  border-color: var(--orange);
  color: var(--text-primary);
  background: var(--orange-dim);
}

.ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.ig-type-native {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.35);
}

.ig-type-free {
  background: rgba(88, 166, 255, 0.12);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.ig-type-paid {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid var(--orange-mid);
}

.ig-type-subscription {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.ig-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.ig-requirements {
  padding: 18px 24px 0;
}

.ig-req-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.ig-req-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 10px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

.ig-steps-wrap {
  padding: 18px 24px;
}

.ig-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.ig-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  margin-top: 1px;
}

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

.ig-step-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.ig-step-text em {
  color: var(--text-secondary);
  font-style: italic;
}

.ig-step-text code {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11.5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--orange);
}

.ig-footer-btns {
  display: flex;
  gap: 10px;
  padding: 0 24px 22px;
  flex-wrap: wrap;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.ig-btn-primary {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

.ig-btn-primary:hover {
  background: var(--orange-bright);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}

.ig-btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border);
}

.ig-btn-secondary:hover {
  border-color: var(--orange);
  color: var(--text-primary);
  background: var(--orange-dim);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  box-shadow: var(--shadow-glow);
}

/* LOADING SKELETON */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.skeleton-cell {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-active) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-name {
  width: 200px;
  height: 16px;
}

.skeleton-status {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Safe Upgrade Calculator */
.calc-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 24px;
}
@media (max-width: 600px) {
  .calc-content {
    flex-direction: column;
  }
}
.calc-sidebar {
  flex: 1;
  min-width: 220px;
  max-height: 50vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}
@media (max-width: 600px) {
  .calc-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
  }
}
.calc-sidebar h3 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.calc-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.calc-plugin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-checkbox-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.calc-checkbox-lbl:hover {
  background: var(--bg-hover);
}
.calc-main {
  flex: 2;
}
.calc-result-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-result-box.empty {
  color: var(--text-muted);
  font-style: italic;
}
.calc-safe-ver {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin: 12px 0;
}
.calc-blocker {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  text-align: left;
}
.calc-blocker h4 {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 8px;
}
.calc-blocker ul {
  list-style: none;
  font-size: 13px;
  color: var(--text-primary);
}
.calc-blocker li {
  margin-bottom: 4px;
}

/* Shared additions for multi-page navigation */
.desktop-only {
  display: inline;
}

.nav-btn-back {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.nav-btn-back:hover {
  border-color: var(--orange);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 48px;
  color: var(--text-muted);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 520px;
}

.hero-dcc .hero-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-dcc-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-dim);
  border: 1px solid var(--orange-mid);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

/* Software hub page */
.hub-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 102, 0, 0.25), transparent 45%),
    radial-gradient(circle at 90% 120%, rgba(88, 166, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 70%);
}

.hub-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 62px;
}

.hub-hero-title {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 16px;
}

.hub-accent {
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 102, 0, 0.4);
}

.hub-hero-sub {
  max-width: 760px;
  font-size: 17px;
  color: var(--text-secondary);
}

.hub-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 10px;
}

.hub-section-title {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg-secondary);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.software-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.software-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--orange));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.card-logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--card-color, var(--orange));
  background: var(--card-dim, var(--orange-dim));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo-text span {
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--card-color, var(--orange));
  font-size: 16px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-name {
  font-size: 22px;
  color: var(--card-color, var(--orange));
  margin: 0;
}

.card-vendor {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-desc {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.card-stats {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-stat {
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.card-stat strong {
  color: var(--text-primary);
}

.card-cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.software-card-disabled {
  cursor: default;
}

.software-card-disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.software-card-disabled .card-cta {
  color: var(--text-secondary);
  font-size: 12px;
}

.hub-coming-soon {
  margin-top: 26px;
  border: 1px dashed var(--border-accent);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.hub-soon-title {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.soon-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.soon-name {
  font-weight: 600;
}

.soon-vendor {
  color: var(--text-muted);
  font-size: 12px;
}

.hub-soon-hint {
  margin-top: 14px;
  color: var(--text-secondary);
}

.hub-soon-hint a {
  color: var(--orange);
  text-decoration: none;
}

.hub-soon-hint a:hover {
  text-decoration: underline;
}

/* About page */
.about-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.about-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-secondary);
}

.about-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--orange-mid);
  background: var(--orange-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.about-section h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.about-section p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-section a {
  color: var(--orange);
}

.about-list {
  margin-left: 18px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-list li {
  margin-bottom: 6px;
}

.about-tip {
  border-left: 3px solid var(--orange);
  padding-left: 10px;
}

.status-legend {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.status-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.status-legend-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-legend-item strong {
  color: var(--text-primary);
}

.status-legend-item span {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--orange-mid);
  color: var(--orange);
  background: var(--orange-dim);
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
}

.about-cta-btn:hover {
  background: rgba(255, 102, 0, 0.22);
}

/* Contact page */
.contact-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.contact-info,
.contact-form-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-secondary);
}

.contact-info h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contact-reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-reason-icon {
  font-size: 18px;
}

.contact-reasons strong {
  display: block;
}

.contact-reasons span {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.contact-alt {
  margin-top: 12px;
  color: var(--text-secondary);
}

.contact-alt a {
  color: var(--orange);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
}

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

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
  outline: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: var(--orange);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--orange-bright);
  box-shadow: var(--shadow-glow);
}

.form-success {
  border-radius: var(--radius-md);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  padding: 16px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

.form-success-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--green);
}

.form-success-inner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success-inner h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.form-success-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

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

/* New responsive rules */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .hub-hero-inner {
    padding: 44px 16px 38px;
  }

  .hub-hero-sub {
    font-size: 14px;
  }

  .hub-main,
  .about-main,
  .contact-main {
    padding: 14px;
  }

  .software-card {
    min-height: 220px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-links {
    gap: 8px 10px;
  }
}
