@font-face {
  font-family: 'SYN';
  src: url('https://cdn.synthenis.com/fonts/syn.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(18, 18, 18, 0.6);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --accent-primary: #3e91ff;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-normal: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --margin-safe: 24px;
}

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

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'SYN', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#home-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 var(--margin-safe);
  position: relative;
}

#results-view {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.home-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px var(--margin-safe);
  gap: 10px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  user-select: none;
  -webkit-user-select: none;
}

.home-logo img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.home-logo-text {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.home-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  user-select: none;
  -webkit-user-select: none;
}

.home-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px var(--margin-safe);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-footer a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.home-footer a:hover { color: var(--text-secondary); }

.home-footer-right {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  user-select: none;
  -webkit-user-select: none;
}

.results-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 11px var(--margin-safe);
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

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

.tabs-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 var(--margin-safe);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.6);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar { display: none; }

.results-main {
  display: flex;
  gap: 32px;
  padding: 24px var(--margin-safe);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.results-col { flex: 1; min-width: 0; }

.results-sidebar { width: 280px; flex-shrink: 0; }

.results-footer {
  text-align: center;
  padding: 28px var(--margin-safe) 44px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
}

.results-footer p {
  font-size: 12px;
  color: var(--text-tertiary);
  user-select: none;
  -webkit-user-select: none;
}

.results-footer a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.results-footer a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .results-sidebar { display: none; }
  .results-main { padding: 16px var(--margin-safe); }
  .results-header-right .btn-primary { display: none; }
}

@media (max-width: 480px) {
  .home-logo-text { font-size: 1.9rem; }
  .home-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .home-actions button { text-align: center; }
}
