:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --accent: #4338ca;
  --accent-light: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --muted: #64748b;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 16px;
  --container-w: 1000px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #1e293b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.body-no-scroll {
  overflow: hidden;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 1.25rem;
  width: 100%;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  z-index: 9999;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.site-header nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 20px;
}

.site-header nav .logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.site-header nav .logo-link:hover {
  transform: scale(1.02);
}

.site-header nav .logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-links a.active {
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.intro-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.25rem;
}

/* Cards */
.card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
  margin: 1rem 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.07);
}

.card-main {
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), #a78bfa);
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-secondary {
  margin-top: 1.25rem;
}

/* Forms */
.form .label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.2s ease;
  color: #1e293b;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}

.input::placeholder {
  color: #94a3b8;
}

.dual {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.column h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.grid-2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.form-item .input {
  flex: 1;
}

.form-item .weight {
  flex: 0 0 80px;
}

.form-item .btn-remove {
  background: transparent;
  color: #cbd5e1;
  padding: 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.form-item .btn-remove:hover {
  color: var(--danger);
  background: #fef2f2;
}

/* Buttons */
button,
a.btn-primary,
a.btn-outline,
a.btn-ghost,
a.btn-danger {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
}

button:focus-visible,
a.btn-primary:focus-visible,
a.btn-outline:focus-visible,
a.btn-ghost:focus-visible,
a.btn-danger:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: var(--muted);
  box-shadow: none;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3730a3 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 56, 202, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.12);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Results */
.result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 14px;
  font-size: 1rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

.result-yes {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
}

.result-no {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.result-balanced {
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  color: #854d0e;
  border: 1px solid #fde047;
}

.chart {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2rem 1rem;
  background: var(--card);
  margin-top: auto;
}

.site-footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .footer-content a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer .footer-content a:hover {
  color: var(--accent);
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1002;
  padding: 1rem;
}

.popup-content {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.popup-logo {
  display: block;
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

/* Utility Classes */
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Page-specific styles */
.page-about .grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.page-about .cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0ea5a4;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.page-about .cta:hover {
  background: #0d9493;
}

.page-legal .section {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.page-about summary {
  cursor: pointer;
  font-weight: 600;
}

/* Blog post styles */
.step-card,
.reason-card,
.bias-card,
.tip-card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

blockquote {
  border-left: 4px solid #cbd5e1;
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: var(--muted);
}

.post {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.post h2,
.post h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post .excerpt {
  color: var(--muted);
  margin: 0.75rem 0;
}

.read-more {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.list-styled {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.list-styled li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Ad slots */
.ad-slot-top,
.ad-slot-bottom {
  margin: 1.5rem 0;
  text-align: center;
}

/* ============================
   HERO / Landing Section
   ============================ */
.hero-section {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
  color: #0f172a;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Popular Decisions Section */
.popular-decisions {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e0e7ff;
}

.popular-decisions .section-title {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.decision-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.decision-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 56, 202, 0.12);
  border-color: var(--accent-light);
  background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
}

.decision-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
}

.decision-text {
  flex: 1;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}

.decision-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
}

.decision-card:hover .decision-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Template Cards - Special styling */
.template-card {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) border-box;
}

.template-card:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%) padding-box,
    linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) border-box;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.templates-section {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: 1px solid #e9d5ff;
}

.templates-section .section-title {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   SHARE SECTION (on results)
   ============================ */
.share-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.share-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-share svg {
  flex-shrink: 0;
}

.btn-share-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-share-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-share-twitter {
  background: #0f1419;
  color: #fff;
}

.btn-share-twitter:hover {
  background: #272c30;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 20, 25, 0.3);
}

.btn-share-copy {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.btn-share-copy:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-share-copied {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #86efac !important;
}

/* ============================
   SHARE OPINION PAGE
   ============================ */
.opinion-hero {
  text-align: center;
  padding: 2.25rem 1.5rem 1.75rem;
  position: relative;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 55%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.opinion-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  color: #0f172a;
}

.opinion-hero p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Opinion item rows */
.item-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  align-items: center;
  animation: fadeInUp 0.25s ease;
}

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

.item-row .input {
  flex: 1;
}

.item-row .weight {
  flex: 0 0 90px;
  text-align: center;
}

.item-row .btn-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: none;
  flex-shrink: 0;
}

.item-row .btn-remove:hover {
  background: #fef2f2;
  color: var(--danger);
}

/* Opinion Result Card - Modern & Share-friendly */
.opinion-result-card {
  background: radial-gradient(circle at top left, #eff6ff, #eef2ff 45%, #fef9c3 120%);
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 1.85rem 1.75rem 1.65rem;
  margin-top: 1.75rem;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.opinion-result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e7ff;
}

.opinion-result-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.opinion-result-icon.positive {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.opinion-result-icon.negative {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.opinion-result-icon.balanced {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.opinion-result-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0.1rem 0 0;
}

.opinion-result-topic {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.opinion-result-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.score-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  text-align: center;
}

.score-card.pro-score {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
}

.score-card.con-score {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
}

.score-card .score-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.score-card.pro-score .score-label {
  color: #166534;
}

.score-card.con-score .score-label {
  color: #991b1b;
}

.score-card .score-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.score-card.pro-score .score-value {
  color: #15803d;
}

.score-card.con-score .score-value {
  color: #dc2626;
}

.opinion-result-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.opinion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opinion-list-title {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.opinion-list-title.positives {
  color: #15803d;
}

.opinion-list-title.negatives {
  color: #dc2626;
}

.opinion-list li {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.opinion-list.pros li {
  background: rgba(16, 185, 129, 0.06);
}

.opinion-list.cons li {
  background: rgba(239, 68, 68, 0.06);
}

.opinion-list .item-weight {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.opinion-list.pros .item-weight {
  background: #dcfce7;
  color: #15803d;
}

.opinion-list.cons .item-weight {
  background: #fee2e2;
  color: #dc2626;
}

.opinion-result-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e7ff;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ============================
   SHARE OPINION SECTION ON INDEX
   ============================ */
.opinion-cta-section {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  text-align: center;
  padding: 2rem 1.5rem;
}

.opinion-cta-section .section-title {
  color: #92400e;
}

.opinion-cta-section .intro-text {
  color: #78350f;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ============================
   COMPARISON SECTION
   ============================ */
.compare-section {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
  border: 2px solid #bfdbfe;
  position: relative;
  overflow: hidden;
}

.compare-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.compare-section > * {
  position: relative;
  z-index: 1;
}

.compare-section .section-title {
  color: #1e40af;
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.compare-header .label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
}

.compare-header .input {
  max-width: 340px;
}

.compare-items-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

#compare-items-container {
  /* Responsive grid so 2 cards don't leave empty space, and 3+ cards fit naturally */
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  overflow-x: visible;
  padding-bottom: 0.75rem;
}

.compare-items-controls .label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
  white-space: nowrap;
}

.compare-count-input {
  width: 75px;
  padding: 0.65rem 0.85rem;
  border: 2px solid #bfdbfe;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #1e40af;
}

.compare-count-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: #fff;
  transform: scale(1.05);
}

.compare-grid {
  display: grid;
  gap: 1rem;
}

.compare-item-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 1.5rem 1.5rem;
  width: 100%;
  min-width: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compare-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compare-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #a5b4fc;
}

.compare-item-card:hover::before {
  opacity: 1;
}

.compare-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 1.75rem;
}

.compare-item-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.compare-item-card:hover .compare-item-number {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.compare-item-header .input {
  flex: 1;
  font-weight: 600;
  min-width: 0;
}

.compare-item-header .btn-remove-item {
  background: #fee2e2;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(248, 113, 113, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: absolute;
  top: 0.9rem;
  right: 1rem;
}

.compare-item-header .btn-remove-item:hover {
  background: #fecaca;
  color: #7f1d1d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.35);
}

.compare-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  width: fit-content;
}

.compare-col.pros-col h4 {
  color: #15803d;
  background: rgba(16, 185, 129, 0.08);
}

.compare-col.cons-col h4 {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.compare-entry {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  align-items: center;
  animation: slideIn 0.3s ease;
}

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

.compare-entry .input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border-width: 1.5px;
  transition: all 0.2s ease;
}

.compare-entry .input:focus {
  transform: translateY(-1px);
}

.compare-entry .compare-score {
  width: 65px;
  padding: 0.65rem 0.6rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  border-width: 1.5px;
}

.compare-entry .btn-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  transition: color 0.2s;
  box-shadow: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.compare-entry .btn-remove:hover {
  color: var(--danger);
  background: #fef2f2;
}

.compare-col .btn-outline {
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  margin-top: 0.35rem;
}

/* Comparison Result */
.compare-result-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.compare-result-grid {
  display: grid;
  gap: 0.85rem;
}

.compare-result-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: resultFadeIn 0.4s ease backwards;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.compare-result-item:nth-child(1) { animation-delay: 0.05s; }
.compare-result-item:nth-child(2) { animation-delay: 0.1s; }
.compare-result-item:nth-child(3) { animation-delay: 0.15s; }
.compare-result-item:nth-child(4) { animation-delay: 0.2s; }
.compare-result-item:nth-child(5) { animation-delay: 0.25s; }

.compare-result-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.compare-result-item.winner {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
  border: 2px solid #34d399;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25), 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
}

.compare-result-item.winner:hover {
  transform: scale(1.02) translateX(4px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.compare-result-rank {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.compare-result-item.winner .compare-result-rank {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.compare-result-item:not(.winner) .compare-result-rank {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #64748b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.compare-result-info {
  flex: 1;
}

.compare-result-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.compare-result-detail {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-result-score {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  min-width: 60px;
  text-align: center;
  transition: all 0.3s ease;
}

.compare-result-item:hover .compare-result-score {
  transform: scale(1.05);
}

.compare-result-item.winner .compare-result-score {
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
  font-size: 1.5rem;
}

/* Template Section */
.template-section {
  margin-top: 2rem;
}

.template-section h2 {
  margin-bottom: 0.5rem;
}

.template-section .grid-2cols {
  margin-top: 1rem;
}

/* How it works section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.how-step {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.how-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.how-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
}

.how-step h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.how-step p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
  }

  .site-header nav {
    padding: 0.75rem 1rem;
  }

  .site-header nav .logo-link img {
    width: 38px;
    height: 38px;
  }

  .brand {
    font-size: 1.2rem;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    padding: 4rem 1rem 1rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    gap: 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .grid-2cols {
    grid-template-columns: 1fr;
  }

  .dual {
    flex-direction: column;
  }

  .page-about .grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  h1,
  .hero-title {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .form-item {
    flex-wrap: wrap;
  }

  .form-item .weight {
    flex: 0 0 70px;
  }

  .item-row {
    flex-wrap: wrap;
  }

  .item-row .weight {
    flex: 0 0 70px;
  }

  .opinion-result-scores {
    grid-template-columns: 1fr 1fr;
  }

  .opinion-result-lists {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .compare-pros-cons {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 2rem 1rem 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1rem;
  }

  .card {
    padding: 1rem;
    border-radius: 14px;
  }

  .input {
    font-size: 14px;
    padding: 0.65rem 0.85rem;
  }

  button,
  a.btn-primary,
  a.btn-outline,
  a.btn-ghost,
  a.btn-danger {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .popup-content {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .opinion-result-scores {
    grid-template-columns: 1fr;
  }

  .compare-entry .input {
    font-size: 0.82rem;
  }
}

/* ============================
   COMPARISON SECTION - REWORKED
   ============================ */
.compare-section {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
  border: 2px solid #d8b4fe;
  position: relative;
  overflow: hidden;
}

.compare-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.compare-section > * {
  position: relative;
  z-index: 1;
}

.compare-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.compare-section .section-title {
  color: #6b21a8;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.compare-section .intro-text {
  color: #7c3aed;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.compare-main-input {
  margin-bottom: 1.5rem;
}

.compare-main-input .label {
  font-size: 1rem;
  color: #581c87;
  margin-bottom: 0.65rem;
}

.compare-main-input .input {
  font-size: 1.05rem;
  padding: 0.85rem 1.15rem;
  border: 2px solid #d8b4fe;
  background: #ffffff;
}

.compare-main-input .input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.compare-controls {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #e9d5ff;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.compare-controls-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.compare-controls .label {
  font-size: 1rem;
  color: #581c87;
  margin: 0;
  font-weight: 600;
}

.compare-count-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid #d8b4fe;
  border-radius: 12px;
  padding: 0.35rem;
}

.btn-count {
  width: 36px;
  height: 36px;
  border: none;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: #ffffff;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.btn-count:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.btn-count:active:not(:disabled) {
  transform: scale(0.95);
}

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

.compare-count-input {
  width: 60px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  font-family: inherit;
  text-align: center;
  font-weight: 700;
  color: #6b21a8;
  pointer-events: none;
}

.compare-items-grid {
  display: grid;
  /* Allow 3 columns on typical ~1000px containers while staying responsive */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.compare-item-card {
  background: #ffffff;
  border: 2px solid #e9d5ff;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08);
  position: relative;
}

.compare-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #f59e0b);
  border-radius: 16px 16px 0 0;
}

.compare-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
  border-color: #d8b4fe;
}

.compare-item-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3e8ff;
}

.compare-item-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.compare-item-name-input {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e9d5ff;
  background: #faf5ff;
}

.compare-item-name-input:focus {
  border-color: #a855f7;
  background: #ffffff;
}

.compare-section-group {
  margin-bottom: 1.25rem;
}

.compare-section-group:last-child {
  margin-bottom: 0;
}

.compare-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.compare-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  margin: 0;
}

.compare-section-title.pros {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

.compare-section-title.cons {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

.compare-add-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border: 1.5px solid #e9d5ff;
  background: #ffffff;
  color: #7c3aed;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.compare-add-btn:hover {
  background: #faf5ff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.compare-entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.compare-entry {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  animation: fadeSlideIn 0.3s ease;
}

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

.compare-entry-text {
  flex: 1;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  border: 1.5px solid #e9d5ff;
  border-radius: 10px;
  background: #faf5ff;
  transition: all 0.2s ease;
}

.compare-entry-text:focus {
  border-color: #a855f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.compare-entry-score {
  width: 70px;
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  border: 1.5px solid #e9d5ff;
  border-radius: 10px;
  background: #faf5ff;
  transition: all 0.2s ease;
}

.compare-entry-score:focus {
  border-color: #a855f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.compare-entry-remove {
  width: 36px;
  height: auto;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-entry-remove:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.1);
}

/* Comparison Results */
.compare-result-container {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 2px solid #e9d5ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.compare-result-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.compare-result-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.compare-result-header h3 {
  font-size: 1.5rem;
  color: #6b21a8;
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.compare-result-header p {
  color: #7c3aed;
  font-size: 1rem;
  margin: 0;
}

.compare-result-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-result-item {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 2px solid #e9d5ff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: resultSlideIn 0.5s ease backwards;
}

@keyframes resultSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.compare-result-item:nth-child(1) { animation-delay: 0.1s; }
.compare-result-item:nth-child(2) { animation-delay: 0.2s; }
.compare-result-item:nth-child(3) { animation-delay: 0.3s; }
.compare-result-item:nth-child(4) { animation-delay: 0.4s; }
.compare-result-item:nth-child(5) { animation-delay: 0.5s; }
.compare-result-item:nth-child(6) { animation-delay: 0.6s; }

.compare-result-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.compare-result-item.winner {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 3px solid #34d399;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25), 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
}

.compare-result-item.winner:hover {
  transform: scale(1.02) translateX(8px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.compare-result-rank {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.compare-result-item.winner .compare-result-rank {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  }
}

.compare-result-item:not(.winner) .compare-result-rank {
  background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
  color: #6b21a8;
  font-weight: 700;
}

.compare-result-info {
  flex: 1;
  min-width: 0;
}

.compare-result-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.compare-result-item.winner .compare-result-name {
  color: #065f46;
}

.compare-result-detail {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compare-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-result-badge.pros {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.compare-result-badge.cons {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.compare-result-score {
  font-weight: 800;
  font-size: 1.5rem;
  color: #6b21a8;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  min-width: 70px;
  text-align: center;
  transition: all 0.3s ease;
}

.compare-result-item:hover .compare-result-score {
  transform: scale(1.05);
}

.compare-result-item.winner .compare-result-score {
  color: #047857;
  background: rgba(16, 185, 129, 0.2);
  font-size: 1.65rem;
}

/* Responsive */
@media (max-width: 768px) {
  .compare-items-grid {
    grid-template-columns: 1fr;
  }
  
  .compare-result-item {
    flex-wrap: wrap;
  }
  
  .compare-result-score {
    margin-left: auto;
  }
}
