:root {
  --accent-a: #3B82F6;
  --accent-a-light: #93C5FD;
  --accent-a-dark: #1D4ED8;
  --accent-b: #8B5CF6;
  --accent-b-light: #C4B5FD;
  --accent-b-dark: #6D28D9;
  --pink: #EC4899;
  --pink-light: #F9A8D4;
  --pink-dark: #BE185D;
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #6B7280;
  --border: #E8E8E4;
  --border-light: #F0F0EC;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 40px rgba(0,0,0,0.12);
  --shadow-soft: 0 12px 30px rgba(59,130,246,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --font-display: "Fraunces", serif;
  --font-body: "DM Sans", sans-serif;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: radial-gradient(circle at top, rgba(236,72,153,0.08), transparent 45%),
              radial-gradient(circle at 20% 0%, rgba(59,130,246,0.08), transparent 50%),
              var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

.page-home {
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  --text-muted: #737373;
  --text-secondary: #6B6B6B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
  --accent-a-soft: #EFF6FF;
  --accent-b-soft: #F5F3FF;
  --accent-a-glow: rgba(59,130,246,0.15);
  --accent-b-glow: rgba(139,92,246,0.15);
  --pink-soft: #FDF2F8;
  --radius: 20px;
  --radius-sm: 12px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 2px;
}

#main-content {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logo-pair { color: var(--accent-a); }
.logo-tago { color: var(--accent-b); }
.logo-heart {
  color: var(--pink);
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake,
.shake .card-arena,
.shake .hero,
.shake .pair-card {
  animation: shake 0.5s ease-in-out !important;
}

.nav-links {
  display: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.nav-emoji {
  font-size: 16px;
}

.nav-label {
  font-size: 13px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-loves {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(236,72,153,0.12);
  color: var(--pink);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}

.lang-switcher-btn:hover {
  border-color: var(--accent-b);
  color: var(--text-primary);
}

.lang-switcher-btn svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 4px 0;
}

.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.lang-switcher.is-open .lang-dropdown {
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .lang-switcher:hover .lang-dropdown {
    display: flex;
    flex-direction: column;
  }
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 150ms, color 150ms;
}

.lang-option:hover {
  background: var(--accent-b-light);
  color: var(--text-primary);
}

.lang-option.is-active {
  color: var(--accent-b-dark);
  font-weight: 600;
}

.page-home .site-header {
  background: rgba(255,255,255,0.92);
}

.page-home .site-nav {
  padding: 16px 40px;
}

.page-home .nav-links {
  gap: 10px;
}

.page-home .nav-link {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.page-home .nav-link:hover {
  background: transparent;
  color: var(--text-primary);
}

.page-home .nav-loves {
  background: var(--pink-soft);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: var(--text-secondary);
  max-width: 520px;
}

.page-home .hero {
  max-width: none;
  padding: 0;
  gap: 0;
}

.page-home .hero-intro {
  text-align: center;
  padding: 44px 20px 8px;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease-out;
}

.page-home .hero-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-home .hero-title .gradient-text {
  background: linear-gradient(120deg, var(--accent-a), var(--pink), var(--accent-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
}

.page-home .hero-nest-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  background: rgba(236, 72, 153, 0.08);
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-home .hero-nest-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.14);
}

.page-home .hero-guest-bubble {
  margin: 16px auto 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
}

.page-home .hero-guest-bubble .bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #ffe4ef, #f5d7ff);
  border: 1px solid rgba(236, 72, 153, 0.22);
  box-shadow: var(--shadow-sm);
}

.page-home .hero-guest-bubble .bubble-content {
  position: relative;
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.page-home .hero-guest-bubble .bubble-content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(236, 72, 153, 0.2);
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
  transform: rotate(45deg);
}

.page-home .hero-guest-bubble .bubble-text {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
}

.page-home .hero-guest-bubble .bubble-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--pink-dark);
  text-decoration: none;
}

.page-home .hero-guest-bubble .bubble-link:hover {
  text-decoration: underline;
}

.page-home.auth-logged-in .hero-guest-bubble {
  display: none !important;
}

.page-home.auth-guest .hero-guest-bubble {
  display: grid;
}

@media (max-width: 640px) {
  .page-home .hero-guest-bubble {
    max-width: 92%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-home .hero-guest-bubble .bubble-avatar {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .page-home .hero-guest-bubble .bubble-content::before {
    left: 14px;
    top: -8px;
    border-left: 1px solid rgba(236, 72, 153, 0.2);
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    border-bottom: none;
    transform: rotate(45deg);
  }
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.stat-mult {
  font-size: 12px;
  color: var(--pink);
  font-weight: 700;
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-mult.visible { opacity: 1; }

.hero-arena {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-xl);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-card-header {
  text-align: center;
}

.hero-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-product {
  width: 150px;
  height: 180px;
  background: linear-gradient(135deg, #f6f6f4, #efefea);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.hero-product img {
  max-height: 150px;
}

.hero-brand {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.hero-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
}

.hero-vs {
  font-family: var(--font-display);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: #fff;
}

.hero-card-empty {
  padding: var(--space-xl);
  text-align: center;
}

.hero-card-placeholder {
  color: var(--text-secondary);
}

.hero-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* === Homepage Arena (mockup alignment) === */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px 20px;
  margin: 12px auto 4px;
  max-width: 440px;
  animation: fadeUp 0.6s ease-out 0.15s both;
}

.stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-bar .stat-item .num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stats-bar .stat-item .num.bump { transform: scale(1.3); }

.stat-mult {
  font-size: 12px;
  color: #F59E0B;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s;
}

.stat-mult.visible { opacity: 1; transform: translateY(0); }

.stats-bar .stat-chain .num { color: #F59E0B; }
.stats-bar .stat-loves .num { color: var(--pink); }

.card-arena {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 8px auto 40px;
  height: 580px;
  animation: fadeUp 0.6s ease-out 0.25s both;
}

.card-arena::before,
.card-arena::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.card-arena::before {
  width: calc(100% - 32px);
  height: 100%;
  transform: translateX(-50%) scale(0.94) translateY(16px);
  opacity: 0.4;
  z-index: 1;
}

.card-arena::after {
  width: calc(100% - 16px);
  height: 100%;
  transform: translateX(-50%) scale(0.97) translateY(8px);
  opacity: 0.7;
  z-index: 2;
}

.card-arena .pair-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

.card-arena .pair-card.swap-out {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.card-arena .pair-card.swipe-left {
  transform: translateX(-140%) rotate(-12deg);
  opacity: 0;
  transition: transform 0.45s ease-in, opacity 0.35s;
}

.card-arena .pair-card.swipe-right {
  transform: translateX(140%) rotate(12deg);
  opacity: 0;
  transition: transform 0.45s ease-in, opacity 0.35s;
}

.card-arena .pair-card.swipe-down {
  transform: translateY(60px) scale(0.9);
  opacity: 0;
  transition: transform 0.35s ease-in, opacity 0.3s;
}

.card-arena .pair-card.enter {
  transform: scale(0.92) translateY(30px);
  opacity: 0;
}

.card-arena .pair-card.enter-active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* All-done empty state (no more pairs to vote on) */
.card-arena.arena-empty::before,
.card-arena.arena-empty::after {
  display: none;
}

.card-all-done {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

.card-all-done.enter {
  transform: scale(0.92) translateY(30px);
  opacity: 0;
}

.card-all-done.enter-active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.all-done-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.all-done-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.all-done-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.all-done-link {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.all-done-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-top {
  text-align: center;
  padding: 16px 0 0;
}

.card-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.tap-zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  position: relative;
}

.tap-zone::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: var(--border-light);
  z-index: 1;
}

.tap-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.tap-half {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  user-select: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.tap-half:hover { background: rgba(0,0,0,0.015); }
.tap-half:active { transform: scale(0.97); }

.tap-product-img {
  width: 110px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8f8f6, #f0f0ec);
  border-radius: 16px;
  position: relative;
}

.tap-product-img img {
  max-height: 110px;
}

.tap-brand {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.tap-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.tap-hint {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 2px;
  transition: all 0.3s;
  opacity: 0.6;
}

.tap-half:hover .tap-hint { opacity: 1; transform: scale(1.05); }

.tap-half.side-a .tap-hint {
  background: var(--accent-a-soft);
  color: var(--accent-a);
}

.tap-half.side-b .tap-hint {
  background: var(--accent-b-soft);
  color: var(--accent-b);
}

.tap-half.chosen { z-index: 10; }
.tap-half.side-a.chosen { background: var(--accent-a-soft); }
.tap-half.side-b.chosen { background: var(--accent-b-soft); }
.tap-half.dimmed {
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.3s;
}

.tap-half.chosen .tap-hint {
  opacity: 1;
  transform: scale(1.1);
}

.love-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.love-overlay.pop { animation: overlayPop 700ms ease-out forwards; }

@keyframes overlayPop {
  0% { opacity: 0; transform: scale(0.3); }
  30% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4) translateY(-20px); }
}

.kiss-particle {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  z-index: 200;
  animation: kissFloat 1.4s ease-out forwards;
}

@keyframes kissFloat {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  20% { opacity: 1; transform: translate(var(--tx1), -30px) scale(1.3) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(var(--tx2), -160px) scale(0.2) rotate(var(--rot2)); }
}

.card-bottom {
  padding: 0 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-lovebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.card-lovebar-bar {
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  overflow: hidden;
  display: flex;
}

.card-lovebar-a {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-a), #60A5FA);
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lovebar-b {
  height: 100%;
  background: linear-gradient(90deg, #A78BFA, var(--accent-b));
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lovebar-count {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-verdict-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pink);
  font-weight: 600;
}

.card-verdict-text {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 20px 16px;
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.card-action-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}

.card-action-btn.btn-detail:hover {
  border-color: var(--accent-b);
  color: var(--accent-b);
  background: var(--accent-b-soft);
}

.card-action-btn.btn-skip:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}

.tap-instruction {
  text-align: center;
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.tap-instruction span {
  background: var(--pink-soft);
  color: var(--pink);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}

.streak-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1A1A1A;
  color: #fff;
  padding: 10px 24px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 700;
  z-index: 150;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.streak-toast.broken {
  background: #EF4444;
}

.streak-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chain-break-particle {
  position: fixed;
  pointer-events: none;
  font-size: 28px;
  z-index: 200;
  animation: chainBreakFly 1s ease-out forwards;
}

@keyframes chainBreakFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.3);
  }
}

/* Chain boost animations (power-up) */
.streak-toast.boosted {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.5), 0 0 48px rgba(59, 130, 246, 0.3);
}

.chain-boost-particle {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  animation: boostFly 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes boostFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(0.4);
  }
  40% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.5)) rotate(calc(var(--rot) * 0.4)) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
  }
}

@keyframes boostPulse {
  0% { transform: scale(1); box-shadow: var(--shadow-lg); }
  30% { transform: scale(1.03); box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2); }
  100% { transform: scale(1); box-shadow: var(--shadow-lg); }
}

.boost-pulse .pair-card {
  animation: boostPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes boostGlow {
  0% { box-shadow: none; }
  30% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.5), 0 0 32px rgba(59, 130, 246, 0.3); }
  100% { box-shadow: none; }
}

.boost-glow {
  animation: boostGlow 1.2s ease-out !important;
}

.vote-btn {
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  color: #fff;
}

.vote-btn-a { background: var(--accent-a); }
.vote-btn-b { background: var(--accent-b); }

.vote-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.vote-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vote-btn.is-voted { opacity: 0.7; box-shadow: none; }
.vote-btn.is-chosen { box-shadow: 0 0 0 2px rgba(236,72,153,0.4); }

.pair-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.page-home .section.trending-section,
.page-home .section.hot-section,
.page-home .section.lovebrand-section {
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 20px;
  animation: fadeUp 0.6s ease-out 0.35s both;
}

.page-home .section-header {
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.page-home .section-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.page-home .section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.page-home .pair-list {
  gap: 10px;
}

.page-home .pair-row {
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.2s;
  cursor: pointer;
}

.page-home .pair-row:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.page-home .pair-row:nth-child(1) .pair-rank { color: #F59E0B; }
.page-home .pair-row:nth-child(2) .pair-rank { color: #94A3B8; }
.page-home .pair-row:nth-child(3) .pair-rank { color: #CD7F32; }

.page-home .pair-rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  width: 30px;
  text-align: center;
}

.page-home .pair-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.page-home .pair-meta { font-size: 12px; color: var(--pink); font-weight: 500; }

.page-home .pair-mini-bar {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: var(--border);
}

.page-home .pair-mini-a { border-radius: 3px 0 0 3px; }
.page-home .pair-mini-b { border-radius: 0 3px 3px 0; }

.pair-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.pair-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.pair-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pair-row.is-empty {
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.pair-rank {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-muted);
  width: 30px;
}

.pair-info { flex: 1; }
.pair-name { font-weight: 600; }
.pair-meta { font-size: 12px; color: var(--text-secondary); }

.pair-mini-bar {
  width: 90px;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  background: var(--border);
}

.pair-mini-a { background: var(--accent-a); }
.pair-mini-b { background: var(--accent-b); }

.lovebrand-table {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.lovebrand-row {
  display: grid;
  grid-template-columns: 44px 1fr 90px 100px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.lovebrand-row:last-child { border-bottom: none; }

.lovebrand-row:not(.lovebrand-header):hover {
  background: var(--bg);
  cursor: pointer;
}

.lovebrand-row.is-empty {
  grid-template-columns: 1fr;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
}

.lovebrand-header {
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.lb-rank.gold { color: #F59E0B; }
.lb-rank.silver { color: #94A3B8; }
.lb-rank.bronze { color: #CD7F32; }

.lb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.lb-logo { font-size: 20px; }

.lb-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: auto;
}

.lb-trend.up { color: #22C55E; background: #F0FDF4; }
.lb-trend.down { color: #EF4444; background: #FEF2F2; }
.lb-trend.same { color: var(--text-muted); background: var(--bg); }

.lb-score {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.lb-score.positive { color: var(--pink); }
.lb-score.negative { color: #94A3B8; }

.lb-stats {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.lb-stats .love { color: var(--pink); font-weight: 600; }
.lb-stats .hb { color: #94A3B8; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: var(--transition-fast);
}

.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-emoji { font-size: 24px; }
.category-name { font-weight: 600; }
.category-count { font-size: 12px; color: var(--text-secondary); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-lg);
  background: #fdfdfb;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Pair Detail (pd-) ===== */

.pd-breadcrumb {
  padding: 16px 40px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.pd-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--accent-a); }

.pd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* Hero */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px 0 24px;
  animation: pdFadeUp 0.6s ease-out;
}

.pd-product { text-align: center; position: relative; }

.pd-product-img-wrap {
  width: 220px;
  height: 260px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8f8f6, #f0f0ec);
  border-radius: 24px;
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pd-product-img-wrap:hover { transform: scale(1.03); }
.pd-product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  pointer-events: none;
}
.pd-product-img-wrap img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.pd-phone-placeholder {
  width: 80px;
  height: 160px;
  border-radius: 16px;
  border: 3px solid #ccc;
  position: relative;
  background: #e8e8e8;
}
.pd-phone-placeholder::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  background: linear-gradient(135deg, #ddd, #c8c8c8);
  border-radius: 10px;
}

/* Love ring */
.pd-love-ring {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 3px solid transparent;
  pointer-events: none;
  transition: border-color 0.5s;
}
.pd-love-ring.active {
  border-color: var(--pink);
  animation: pdRingPulse 1s ease-out;
}

/* Love button — inside img-wrap, bottom-right corner */
.pd-love-btn {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  user-select: none;
  padding: 0;
  line-height: 1;
}
.pd-love-btn:hover {
  transform: scale(1.15);
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(236,72,153,0.2);
}
.pd-love-btn.loved,
.pd-love-btn.is-voted {
  background: var(--pink);
  border-color: var(--pink);
  animation: pdLoveExplode 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pd-product-brand {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.pd-product-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

/* VS center */
.pd-vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pd-vs-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* Community vote bar */
.pd-community-vote {
  background: var(--bg-card);
  border-radius: 40px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: 0 auto 48px;
  max-width: 500px;
}
.pd-vote-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.pd-vote-bar-outer {
  flex: 1;
  height: 28px;
  border-radius: 14px;
  background: var(--border);
  overflow: hidden;
  display: flex;
  position: relative;
}
.pd-vote-bar-a {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-a), #60A5FA);
  border-radius: 14px 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 60px;
}
.pd-vote-bar-b {
  height: 100%;
  background: linear-gradient(90deg, #A78BFA, var(--accent-b));
  border-radius: 0 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 60px;
}
.pd-vote-total {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Verdict card */
.pd-verdict-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  animation: pdFadeUp 0.6s ease-out 0.1s both;
}
.pd-verdict-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--pink), var(--accent-b));
}
.pd-verdict-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-verdict-text {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 400;
}

/* Section titles */
.pd-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.pd-section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Compare grid */
.pd-compare-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }

.pd-compare-row {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  border: 1px solid var(--border-light);
  transition: all 0.25s;
  cursor: default;
  opacity: 0;
  animation: pdFadeUp 0.5s ease-out both;
}
.pd-compare-row:nth-child(1) { animation-delay: 0.15s; }
.pd-compare-row:nth-child(2) { animation-delay: 0.2s; }
.pd-compare-row:nth-child(3) { animation-delay: 0.25s; }
.pd-compare-row:nth-child(4) { animation-delay: 0.3s; }
.pd-compare-row:nth-child(5) { animation-delay: 0.35s; }
.pd-compare-row:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.pd-compare-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.pd-compare-label {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-compare-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--border-light);
}

.pd-winner-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.pd-winner-a { background: rgba(59,130,246,0.1); color: var(--accent-a); }
.pd-winner-b { background: rgba(139,92,246,0.1); color: var(--accent-b); }
.pd-winner-tie { background: #F5F5F0; color: var(--text-muted); }

.pd-compare-bar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.pd-compare-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.pd-compare-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}
.pd-bar-a .pd-compare-bar-fill { background: linear-gradient(90deg, var(--accent-a), #60A5FA); }
.pd-bar-b .pd-compare-bar-fill { background: linear-gradient(270deg, var(--accent-b), #A78BFA); }
.pd-bar-b { direction: rtl; }

.pd-compare-insight {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Pick your side */
.pd-pick-side {
  margin-bottom: 48px;
  text-align: center;
}
.pd-pick-buttons {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.pd-pick-btn {
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}
.pd-pick-btn:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.pd-pick-btn.pd-pick-a:hover,
.pd-pick-btn.pd-pick-a.picked,
.pd-pick-btn.pd-pick-a.is-voted {
  border-color: var(--accent-a);
  color: var(--accent-a);
  background: rgba(59,130,246,0.06);
}
.pd-pick-btn.pd-pick-b:hover,
.pd-pick-btn.pd-pick-b.picked,
.pd-pick-btn.pd-pick-b.is-voted {
  border-color: var(--accent-b);
  color: var(--accent-b);
  background: rgba(139,92,246,0.06);
}
.pd-pick-btn.picked,
.pd-pick-btn.is-voted {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.pd-pick-or {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.pd-pick-emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.pd-pick-result {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
}
.pd-pick-result.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Personas */
.pd-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.pd-persona-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pd-persona-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pd-persona-a { border-top: 3px solid var(--accent-a); }
.pd-persona-b { border-top: 3px solid var(--accent-b); }

.pd-persona-emoji { font-size: 32px; margin-bottom: 12px; }
.pd-persona-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pd-persona-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pd-persona-reasons { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; }
.pd-persona-reasons li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
.pd-persona-reasons li::before {
  content: '\2661';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.pd-persona-a .pd-persona-reasons li::before { color: var(--accent-a); }
.pd-persona-b .pd-persona-reasons li::before { color: var(--accent-b); }

/* Story card */
.pd-story-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.pd-story-card p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.pd-story-card p:last-child { margin-bottom: 0; }

/* Related grid */
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.pd-related-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pd-related-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pd-related-vs {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pd-related-text { font-size: 13px; font-weight: 500; line-height: 1.3; }

/* Share bar (sticky bottom mobile) */
.pd-share-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: none;
  justify-content: center;
  gap: 12px;
  z-index: 100;
}
.pd-share-btn {
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}
.pd-share-btn:hover { transform: scale(1.05); }
.pd-share-love { background: var(--pink); color: white; }
.pd-share-send { background: var(--bg); color: var(--text-primary); border: 1px solid var(--border); }

/* Kiss particles */
.pd-kiss-particle {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  z-index: 200;
  animation: pdKissFloat 1.5s ease-out forwards;
}

/* Confetti */
.pd-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  font-size: 20px;
  animation: pdConfettiFall 1.5s ease-out forwards;
}

/* Pair detail animations */
@keyframes pdFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pdLoveExplode {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes pdRingPulse {
  0% { transform: scale(1); opacity: 0; border-color: transparent; }
  30% { transform: scale(1.05); opacity: 1; border-color: var(--pink); }
  100% { transform: scale(1); opacity: 1; border-color: rgba(236,72,153,0.3); }
}
@keyframes pdKissFloat {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  20% { opacity: 1; transform: translate(var(--tx1), -30px) scale(1.2) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(var(--tx2), -120px) scale(0.3) rotate(var(--rot2)); }
}
@keyframes pdConfettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(100px) rotate(720deg) scale(0.3); }
}

/* Pair detail responsive */
@media (max-width: 900px) {
  .pd-hero {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 0;
  }
  .pd-product { display: flex; align-items: center; gap: 16px; text-align: left; }
  .pd-product-img-wrap { width: 100px; height: 120px; margin: 0; flex-shrink: 0; }
  .pd-phone-placeholder { width: 40px; height: 80px; border-width: 2px; }
  .pd-love-btn { width: 36px; height: 36px; font-size: 16px; bottom: -8px; right: -8px; }
  .pd-vs-center { flex-direction: row; }
  .pd-vs-badge { width: 40px; height: 40px; font-size: 13px; }
  .pd-personas { grid-template-columns: 1fr; }
  .pd-pick-buttons { grid-template-columns: 1fr; gap: 12px; }
  .pd-related-grid { grid-template-columns: 1fr; }
  .pd-section-title { font-size: 22px; }
  .pd-compare-bar-wrap { grid-template-columns: 1fr; gap: 4px; }
  .pd-bar-b { direction: ltr; }
  .pd-community-vote { margin-left: 0; margin-right: 0; }
}

@media (max-width: 768px) {
  .pd-breadcrumb { padding: 12px 20px; }
  .pd-container { padding: 0 20px 100px; }
  .pd-verdict-card { padding: 24px; }
  .pd-verdict-text { font-size: 17px; }
  .pd-story-card { padding: 24px; }
  .pd-share-bar { display: flex; }
}

/* ===== Category Listing ===== */

.cat-breadcrumb {
  padding: 12px 40px 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.cat-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.cat-breadcrumb a:hover { color: var(--accent-a); }

.cat-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  animation: fadeUp 0.5s ease-out;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-emoji { font-size: 32px; }

.cat-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.cat-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cat-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cat-stat strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Filter bar */
.filter-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.filter-section { margin-bottom: 16px; }
.filter-section:last-child { margin-bottom: 0; }

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-pill {
  padding: 8px 16px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.brand-pill:hover {
  border-color: var(--accent-b);
  color: var(--text-primary);
}
.brand-pill.active {
  background: var(--accent-b);
  border-color: var(--accent-b);
  color: white;
}
.brand-pill .brand-logo { font-size: 16px; }
.brand-pill .brand-count {
  font-size: 11px;
  opacity: 0.7;
}
.brand-pill.active .brand-count { opacity: 0.9; }

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-pills {
  display: flex;
  gap: 6px;
}

.sort-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.sort-pill:hover {
  background: var(--border);
  color: var(--text-primary);
}
.sort-pill.active {
  background: var(--pink);
  color: white;
}
.sort-pill span { margin-right: 4px; }

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}
.results-count strong { color: var(--text-primary); }

/* Pairs grid */
.pairs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  animation: fadeUp 0.5s ease-out 0.2s both;
}

/* Pair card */
.pair-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pair-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pair-card.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  min-height: 140px;
}

.pair-card-inner { position: relative; }

.pair-products {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 16px 12px;
  gap: 8px;
}

.pair-product { text-align: center; }

.pair-product-img {
  width: 84px;
  height: 102px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8f8f6, #f0f0ec);
  border-radius: 12px;
  overflow: hidden;
}
.pair-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-placeholder {
  width: 32px;
  height: 64px;
  border-radius: 6px;
  border: 2px solid #ccc;
  background: #e8e8e8;
  position: relative;
}
.product-placeholder::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: linear-gradient(135deg, #ddd, #c8c8c8);
  border-radius: 4px;
}

.pair-product-brand {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.pair-product-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

.pair-vs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mini LoveBar in card */
.pair-lovebar { padding: 0 16px; }

.pair-lovebar-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  display: flex;
}
.pair-lovebar-a {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-a), #60A5FA);
  border-radius: 4px 0 0 4px;
  transition: width 0.5s;
}
.pair-lovebar-b {
  height: 100%;
  background: linear-gradient(90deg, #A78BFA, var(--accent-b));
  border-radius: 0 4px 4px 0;
  transition: width 0.5s;
}

.pair-lovebar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  padding: 0 2px;
}
.pair-lovebar-labels .pct-a { color: var(--accent-a); }
.pair-lovebar-labels .pct-b { color: var(--accent-b); }

/* Badges */
.love-score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  background: rgba(236,72,153,0.08);
  padding: 4px 10px;
  border-radius: 12px;
}

.battle-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card footer */
.pair-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 12px;
}

.pair-votes {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pair-votes strong {
  color: var(--pink);
  font-weight: 600;
}

.pair-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-b);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.pair-card:hover .pair-cta { gap: 8px; }

/* Load more */
.load-more {
  text-align: center;
  padding: 40px 0;
}

.load-more-btn {
  padding: 14px 36px;
  border-radius: 28px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: scale(1.02);
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.toast {
  background: var(--bg-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  transition: var(--transition-fast);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: #10B981; }
.toast-warn { background: #F59E0B; }
.toast-error { background: #EF4444; }
.toast-info { background: #3B82F6; }

/* ===== Mobile Menu ===== */

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 150ms ease;
  transform-origin: center;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.mobile-menu.is-open {
  max-height: 600px;
}

.mobile-menu-categories {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-lg);
  gap: 2px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 150ms ease, color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: var(--border-light);
  color: var(--text-primary);
}

.mobile-menu-emoji {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.mobile-menu-lang {
  display: flex;
  gap: 6px;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  flex-wrap: wrap;
}

.mobile-menu-lang .lang-option {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
}

.mobile-menu-lang .lang-option.is-active {
  background: var(--accent-b-light);
  border-color: transparent;
}

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  transition: opacity 250ms ease;
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
}

/* ===== Responsive ===== */

@media (min-width: 768px) {
  .hero-title { font-size: 48px; }
  .hero-card-body { grid-template-columns: 1fr auto 1fr; }
  .category-controls { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .site-nav { padding: var(--space-md) var(--space-2xl); }
  .section { padding: var(--space-3xl) var(--space-2xl); }
  .hero { padding: var(--space-3xl) var(--space-2xl); }
}

@media (max-width: 1023px) {
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: block; }
  .lang-switcher { display: none; }
  .page-home .nav-links { display: none; }
}

@media (max-width: 900px) {
  .hero-card-body { grid-template-columns: 1fr; }
  .pairs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cat-breadcrumb { padding: 12px 20px 0; }
  .cat-container { padding: 0 20px 60px; }
  .cat-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 16px;
  }
  .cat-title { font-size: 26px; }
  .cat-emoji { font-size: 26px; }
  .cat-stats { gap: 12px; flex-wrap: wrap; }
  .cat-stat { font-size: 12px; }
  .filter-bar { padding: 16px; }
  .sort-row { flex-direction: column; align-items: flex-start; }
  .brand-pills { gap: 6px; }
  .brand-pill { padding: 6px 12px; font-size: 12px; }
  .pair-products { padding: 16px 12px 10px; }
  .pair-product-img { width: 60px; height: 72px; }
  .pair-product-name { font-size: 11px; }
}

/* Auth nav */
.nav-auth {
  display: inline-flex;
  align-items: center;
}

.nav-auth-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pink);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.nav-auth-btn[hidden] {
  display: none;
}

.nav-auth-btn:hover {
  background: var(--pink-dark);
}

.nav-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-user[hidden] {
  display: none;
}

.nav-auth-nest {
  font-size: 16px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.nav-auth-nest:hover {
  transform: scale(1.15);
}

.nav-auth-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-auth-name:hover {
  color: var(--pink);
}

.nav-auth-logout {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nav-auth-logout:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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