/* ═══════════════════════════════════════════
   InstaGivePicker — Dual-Theme Design
   ═══════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════
   DARK MODE (default)
   ═══════════════════════════════════════════ */

:root {
  --bg: #0d1114;
  --bg-orb-1: rgba(193, 53, 132, 0.05);
  --bg-orb-2: rgba(131, 58, 180, 0.03);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-raised: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --text: #ede8df;
  --text-secondary: #8f8b84;
  --text-tertiary: #5c5852;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(224, 67, 127, 0.25);
  --accent: #e0437f;
  --accent-hover: #f0629e;
  --accent-soft: #c13584;
  --accent-light: rgba(224, 67, 127, 0.1);
  --accent-light-hover: rgba(224, 67, 127, 0.18);
  --accent-gradient: linear-gradient(135deg, #c13584 0%, #e0437f 100%);
  --accent-warm: linear-gradient(135deg, #833AB4 0%, #c13584 50%, #e0437f 100%);
  --accent-glow: 0 0 30px rgba(224, 67, 127, 0.2), 0 0 60px rgba(224, 67, 127, 0.08);
  --success: #34d399;
  --error: #fb7185;
  --warning: #e0437f;
  --warning-bg: rgba(224, 67, 127, 0.1);
  --warning-border: rgba(224, 67, 127, 0.2);
  --warning-text: #fbc3d4;
  --warning-text-secondary: #f0629e;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 44px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 64px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --avatar-bg: #1a1d20;
  --avatar-text: #5c5852;
  --toggle-bg: rgba(255, 255, 255, 0.1);
  --theme-icon: '☀';
}

/* ═══════════════════════════════════════════
   LIGHT MODE
   ═══════════════════════════════════════════ */

[data-theme="light"] {
  --bg: #fafaf8;
  --bg-orb-1: rgba(193, 53, 132, 0.03);
  --bg-orb-2: rgba(131, 58, 180, 0.02);
  --surface: #ffffff;
  --surface-raised: #fafaf8;
  --surface-hover: #f5f4f0;
  --text: #1c1917;
  --text-secondary: #78716c;
  --text-tertiary: #a8a29e;
  --border: #e7e5e0;
  --border-light: #f0efe9;
  --border-glow: rgba(193, 53, 132, 0.18);
  --accent: #c13584;
  --accent-hover: #9b2a6a;
  --accent-soft: #e0437f;
  --accent-light: rgba(193, 53, 132, 0.08);
  --accent-light-hover: rgba(193, 53, 132, 0.15);
  --accent-gradient: linear-gradient(135deg, #c13584 0%, #e0437f 100%);
  --accent-warm: linear-gradient(135deg, #833AB4 0%, #c13584 50%, #e0437f 100%);
  --accent-glow: 0 0 24px rgba(193, 53, 132, 0.15);
  --warning-bg: #fef2f4;
  --warning-border: #fbc3d4;
  --warning-text: #9b2a6a;
  --warning-text-secondary: #c13584;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.05);
  --avatar-bg: #f0e8ee;
  --avatar-text: #a08a98;
  --toggle-bg: #e7e5e0;
  --theme-icon: '☽';
}

/* ═══════════════════════════════════════════
   SHARED TOKENS
   ═══════════════════════════════════════════ */

:root {
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Consolas", monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 3rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Ambient gradient orbs ── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite;
  transition: background 0.5s ease;
}
body::before {
  width: 640px;
  height: 640px;
  background: var(--bg-orb-1);
  top: -18%;
  left: -12%;
  animation-delay: 0s;
}
body::after {
  width: 520px;
  height: 520px;
  background: var(--bg-orb-2);
  bottom: -14%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -35px) scale(1.07); }
  50% { transform: translate(-25px, 25px) scale(0.93); }
  75% { transform: translate(-40px, -20px) scale(1.04); }
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.navbar {
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-brand {
  font-size: 1.38rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--accent-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.8; }

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

.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-hover);
  background: var(--accent-light);
  outline: none;
}

/* ── Theme toggle ── */

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-secondary);
  line-height: 1;
  padding: 0;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle:active {
  transform: scale(0.93);
}

@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
  }
  .nav-right {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
  }
  .nav-links a {
    font-size: 0.78rem;
    padding: 0.28rem 0.48rem;
  }
}

/* ── Disable transitions during theme toggle ── */
body.no-transition *,
body.no-transition *::before,
body.no-transition *::after {
  transition: none !important;
  animation: none !important;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.page-wrapper {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════ */

.breadcrumbs {
  display: flex;
  gap: 0.42rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  padding: 0 0.25rem;
  letter-spacing: 0.01em;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════
   HERO (Redesigned)
   ═══════════════════════════════════════════ */

.seo-hero {
  text-align: center;
  padding: 1rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-glow);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--accent-light);
  animation: floatBadge 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.seo-hero .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.1em;
}

.seo-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 450;
  text-wrap: balance;
}

.seo-hero .hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.seo-hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.88rem 2.4rem;
  background: var(--accent-warm);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 620;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(193, 53, 132, 0.3), 0 0 40px rgba(193, 53, 132, 0.08);
}

.seo-hero .hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(193, 53, 132, 0.42), 0 0 60px rgba(193, 53, 132, 0.12);
}

.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

/* ═══════════════════════════════════════════
   APP CARD
   ═══════════════════════════════════════════ */

.card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border);
  border: 1px solid var(--border-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 10;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-glow);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-align: center;
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ── Form ── */

.url-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--surface-raised);
  padding: 0.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.url-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light), 0 8px 24px rgba(193, 53, 132, 0.1);
}

.url-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
}

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

.url-form input:focus {
  border: none;
  box-shadow: none;
}

.url-form button:not(.unlock-pro-btn) {
  padding: 0.75rem 1.4rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 650;
  font-family: var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(193, 53, 132, 0.25);
}

.url-form button:hover:not(:disabled):not(.unlock-pro-btn) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(193, 53, 132, 0.36);
}

.url-form button:active:not(:disabled):not(.unlock-pro-btn) {
  transform: scale(0.97);
}

.url-form button:disabled:not(.unlock-pro-btn) {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Unlock Pro above form ── */
.unlock-pro-top {
  display: block;
  margin-bottom: 0.75rem;
  margin-left: auto;
  animation: unlockGlow 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(224, 67, 127, 0.3), 0 0 30px rgba(224, 67, 127, 0.1);
}

@keyframes unlockGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(224, 67, 127, 0.25), 0 0 20px rgba(224, 67, 127, 0.08); }
  50% { box-shadow: 0 0 20px rgba(224, 67, 127, 0.5), 0 0 44px rgba(224, 67, 127, 0.22), 0 0 60px rgba(193, 53, 132, 0.1); }
}

/* ── Comment limit dropdown ── */
.comment-limits {
  position: relative;
  flex-shrink: 0;
}

.limit-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  height: 38px;
  background: var(--surface-raised);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}

.limit-dropdown-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.limit-dropdown-chevron {
  color: var(--text-tertiary);
  transition: transform 0.22s ease;
}

.limit-dropdown-btn.open .limit-dropdown-chevron {
  transform: rotate(180deg);
}

.limit-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  animation: fadeIn 0.18s ease;
}

.limit-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 530;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.limit-option:last-child { border-bottom: none; }

.limit-option:hover {
  background: var(--surface-hover);
}

.limit-option.active {
  color: var(--accent);
  font-weight: 650;
  background: var(--accent-light);
}

.limit-option.locked {
  color: var(--text-secondary);
}

.limit-option.locked:hover {
  color: var(--accent-soft);
  background: var(--accent-light);
}

.limit-option-desc {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c13584, #e0437f);
  color: #fff;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
}

.limit-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c13584, #e0437f);
  color: #fff;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
}

.limit-option.locked:hover .limit-badge {
  box-shadow: 0 0 8px rgba(224, 67, 127, 0.4);
}

/* ── Link button (inline text button) ── */
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Pricing modal compact ── */
.pricing-modal-box {
  max-width: 440px;
}

/* ── Status ── */

.status {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.89rem;
  color: var(--text-secondary);
  min-height: 1.45em;
  font-weight: 450;
  transition: color 0.2s;
}

.status.error { color: var(--error); font-weight: 520; }
.status.success { color: var(--success); font-weight: 520; }

/* ── Progress bar ── */

.progress-bar {
  margin-top: 1rem;
  height: 3px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.hidden { display: none !important; }

.progress-fill {
  height: 100%;
  background: var(--accent-warm);
  border-radius: 3px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Results ── */

.results { margin-top: 1.75rem; }


.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.count {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.pick-btn {
  padding: 0.72rem 1.5rem;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 620;
  font-family: var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 14px rgba(193, 53, 132, 0.22);
}

.pick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(193, 53, 132, 0.38);
}

.pick-btn:active { transform: scale(0.96); }


/* ── Winner display ── */

.winner {
  background: var(--accent-light);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: winnerIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.winner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}



.winner-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.winner-username {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--text);
  word-break: break-word;
  letter-spacing: -0.025em;
}

.winner-comment {
  font-size: 0.91rem;
  color: var(--text-secondary);
  margin-top: 0.45rem;
  font-style: italic;
  line-height: 1.55;
}

@keyframes winnerIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(16px); }
  50%  { transform: scale(1.05) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Comment list ── */

.comment-list-wrapper {
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  scroll-behavior: smooth;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.comment-list-wrapper::-webkit-scrollbar { width: 5px; }
.comment-list-wrapper::-webkit-scrollbar-track { background: transparent; border-radius: 9999px; }
.comment-list-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }
.comment-list-wrapper::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

.load-more-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  font-family: var(--font);
}
.load-more-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.comment-list { list-style: none; padding: 0.4rem 0; }

.comment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  animation: fadeIn 0.25s ease;
  transition: background 0.18s ease, border-color 0.3s ease;
}
.comment-list li:hover { background: var(--surface-hover); }
.comment-list li:last-child { border-bottom: none; }

.comment-list li .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--avatar-bg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.comment-list li .body { flex: 1; min-width: 0; }
.comment-list li .username {
  font-weight: 620;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.comment-list li .text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
  margin-top: 0.12rem;
}

/* ═══════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════ */

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.55rem;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.section-title p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  font-weight: 420;
}

/* ═══════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: var(--surface-hover);
}

.feature-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.feature-card .icon svg {
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 0.98rem;
  font-weight: 660;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* ═══════════════════════════════════════════
   STEPS LIST
   ═══════════════════════════════════════════ */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.step:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
  background: var(--surface-hover);
}

.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(193, 53, 132, 0.25);
}
.step-body h3 {
  font-size: 0.98rem;
  font-weight: 660;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.018em;
}
.step-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}
.service-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: var(--surface-hover);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
  letter-spacing: -0.022em;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.85rem;
}
.service-card .link-label {
  font-size: 0.86rem;
  font-weight: 620;
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.service-card:hover .link-label { color: var(--accent-hover); }

/* ═══════════════════════════════════════════
   CREDIT PACKS
   ═══════════════════════════════════════════ */

.credit-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.credit-pack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
  position: relative;
}
.credit-pack:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: var(--surface-hover);
}

.credit-pack.popular {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(193, 53, 132, 0.12);
}
[data-theme="light"] .credit-pack.popular {
  box-shadow: 0 0 20px rgba(155, 42, 106, 0.1);
}
.credit-pack.popular:hover {
  box-shadow: 0 0 28px rgba(193, 53, 132, 0.2);
}

.credit-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.credit-count {
  font-size: 1.5rem;
  font-weight: 730;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.credit-price {
  font-size: 2.2rem;
  font-weight: 780;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}

.credit-per {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.credit-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
}
.credit-features li {
  padding: 0.25rem 0;
}

.credit-buy {
  display: inline-block;
  background: var(--accent-warm);
  color: #fff;
  font-weight: 660;
  font-size: 0.88rem;
  padding: 0.55rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.credit-buy:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(193, 53, 132, 0.3);
}

/* ═══════════════════════════════════════════
   UNLOCK PRO BUTTON & MODAL
   ═══════════════════════════════════════════ */

.unlock-pro-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 620;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  height: 44px;
  flex-shrink: 0;
}
.unlock-pro-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(224, 67, 127, 0.14);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.modal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 67, 127, 0.15);
}

.modal-btn {
  width: 100%;
  padding: 0.6rem;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 660;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s;
}
.modal-btn:hover { opacity: 0.92; transform: scale(1.02); }
.modal-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.modal-btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-block;
  width: auto;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  margin-top: 0.6rem;
}

.modal-error {
  color: var(--error);
  font-size: 0.83rem;
  margin-top: 0.6rem;
}

.modal-success { margin-top: 1rem; }
.modal-success-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.3rem; }
.modal-success .modal-success-msg { font-size: 1rem; font-weight: 660; color: var(--text); margin-bottom: 0.2rem; }

/* ── Modal sections ── */
.modal-section {
  text-align: left;
}
.modal-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.modal-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.4rem 0;
}

/* ── Modal pricing packs ── */
.modal-pricing {
  display: flex;
  gap: 0.5rem;
}
.modal-pack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.modal-pack:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(224, 67, 127, 0.12);
  transform: translateY(-1px);
}
.modal-pack.popular {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(224, 67, 127, 0.15);
}
.modal-pack-count {
  font-size: 0.78rem;
  font-weight: 620;
  color: var(--text-secondary);
}
.modal-pack-price {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--text);
}
.modal-pack-buy {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}
.modal-pack-features {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.66rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}
.modal-pack-features li::before {
  content: '\2713 ';
  color: var(--accent);
  font-weight: 700;
}
.modal-pack-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--accent-warm);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .modal-pricing {
    flex-direction: column;
    gap: 0.4rem;
  }
  .modal-pack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
  }
  .modal-pack-badge {
    position: static;
  }
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.faq-item.open {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
  background: var(--surface-raised);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.08rem 1.2rem;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.faq-item.open .faq-q { color: var(--accent); }

.faq-q::after {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: var(--text-tertiary);
  transition: transform 0.3s ease, background-color 0.2s;
}
.faq-item.open .faq-q::after {
  transform: rotate(180deg);
  background-color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 0 1.2rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-a-inner a { color: var(--accent); text-decoration: none; font-weight: 520; }
.faq-a-inner a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */

.cta-banner {
  background: var(--accent-light);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.cta-banner h2 {
  font-size: 1.4rem;
  font-weight: 720;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
}
.cta-banner p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 2.2rem;
  background: var(--accent-warm);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 620;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(193, 53, 132, 0.28);
}
.cta-banner a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(193, 53, 132, 0.42);
}

/* ═══════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════ */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.87rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.compare-table th,
.compare-table td {
  padding: 0.88rem 1.2rem;
  text-align: left;
}

.compare-table thead th {
  font-weight: 660;
  font-size: 0.83rem;
  color: var(--text);
  background: var(--surface-raised);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:first-child { text-align: left; min-width: 180px; }
.compare-table tbody td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--surface-hover); }
.compare-table .check { color: var(--success); font-weight: 560; }
.compare-table .cross { color: var(--text-tertiary); }

/* ═══════════════════════════════════════════
   SEO TEXT BLOCK
   ═══════════════════════════════════════════ */

.seo-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.76;
  max-width: 700px;
}

.seo-text h2 {
  font-size: 1.3rem;
  font-weight: 710;
  color: var(--text);
  margin: 1.85rem 0 0.65rem;
  letter-spacing: -0.025em;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text p { margin-bottom: 0.95rem; }
.seo-text ul, .seo-text ol { margin: 0.55rem 0 0.95rem 1.5rem; }
.seo-text li { margin-bottom: 0.45rem; }
.seo-text strong { color: var(--accent); font-weight: 600; }
.seo-text a { color: var(--accent); text-decoration: none; font-weight: 520; }
.seo-text a:hover { text-decoration: underline; }
.seo-text code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.18em 0.48em;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.015em;
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  transition: border-color 0.3s ease;
}

/* ═══════════════════════════════════════════
   COMPLETION INFO BANNER
   ═══════════════════════════════════════════ */

.completion-info {
  margin-top: 1.35rem;
  padding: 1rem 1.2rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: fadeIn 0.35s ease;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.completion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warning-border);
  color: var(--warning-text);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: var(--font);
}
.completion-body { display: flex; flex-direction: column; gap: 0.15rem; }
.completion-title {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--warning-text);
  letter-spacing: -0.01em;
}
.completion-text {
  font-size: 0.83rem;
  color: var(--warning-text-secondary);
  line-height: 1.58;
}

/* ═══════════════════════════════════════════
   FILTERS PANEL
   ═══════════════════════════════════════════ */

.filters-panel {
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.88rem 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 580;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: background 0.2s;
}
.filters-toggle:hover { background: var(--surface-hover); }
.filters-toggle svg { color: var(--text-secondary); }

.filters-badge {
  font-size: 0.76rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-weight: 550;
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.filters-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
}

.filters-body { display: none; padding: 0 1.2rem 1.3rem; }
.filters-body.open { display: block; animation: fadeIn 0.25s ease; }

.filter-group {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}
.filter-group:first-child { border-top: none; }

.filter-group-title {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
}

/* Filter row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
}
.filter-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-label { font-size: 0.9rem; font-weight: 520; color: var(--text); flex-shrink: 0; }
.filter-hint { font-size: 0.78rem; color: var(--text-tertiary); flex: 1; min-width: 0; }
.filter-row .filter-hint { margin-left: auto; margin-right: 0.5rem; text-align: right; }

/* Toggle slider */
.toggle-slider {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--toggle-bg);
  position: relative;
  transition: background 0.22s ease;
  margin-left: auto;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease;
}
.filter-row input:checked + .toggle-slider { background: var(--accent); }
.filter-row input:checked + .toggle-slider::after { transform: translateX(18px); }

/* Filter field */
.filter-field { margin: 0.65rem 0; }
.filter-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 0.32rem;
  letter-spacing: -0.01em;
}
.filter-field-hint { display: block; font-size: 0.76rem; color: var(--text-tertiary); margin-top: 0.28rem; }

.filter-input {
  width: 100%;
  padding: 0.6rem 0.78rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.87rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-raised);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.filter-input::placeholder { color: var(--text-tertiary); }
.filter-textarea { resize: vertical; min-height: 44px; }

/* Number row (stepper) */
.filter-number-row { display: flex; align-items: center; gap: 0.55rem; }

.num-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  transition: all 0.18s ease;
}
.num-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.num-value {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════
   MULTI-WINNER DISPLAY
   ═══════════════════════════════════════════ */

.multi-winner-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.68rem 0.9rem;
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.multi-winner-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.multi-winner-name { font-weight: 650; font-size: 0.93rem; color: var(--text); display: block; }
.multi-winner-text { font-size: 0.83rem; color: var(--text-secondary); display: block; margin-top: 0.1rem; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════ */

.admin-dash {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.admin-dash-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-dash-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.admin-dash-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.admin-stat-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.admin-stat-card:hover {
  border-color: var(--border-glow);
  background: var(--surface-hover);
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.admin-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1rem;
}

.admin-tab {
  padding: 0.6rem 1.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 650;
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  font-weight: 650;
  font-size: 0.76rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.6rem 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.admin-table tbody tr:hover td {
  background: var(--surface-hover);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  .page-wrapper { gap: 2.8rem; }
  .card { padding: 1.5rem 1.15rem; }
  .url-form { flex-direction: column; }
  .comment-limits { position: relative; width: 100%; }
  .limit-dropdown-btn { width: 100%; justify-content: space-between; }
  .limit-dropdown-menu { left: 0; right: 0; min-width: auto; }
  .url-form button:not(.unlock-pro-btn) { width: 100%; }
  .seo-hero h1 { font-size: 1.55rem; }
  .features-grid, .service-cards { grid-template-columns: 1fr; }
  .feature-card { text-align: center; }
  .feature-card .icon { margin: 0 auto 0.7rem; }
  .compare-table { font-size: 0.76rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.6rem; }
  .compare-table thead th:first-child { min-width: 120px; }
  .step { flex-direction: column; gap: 0.55rem; }
  .cta-banner { padding: 1.8rem 1.25rem; }
  .seo-text { font-size: 0.89rem; }
  body::before, body::after { filter: blur(90px); }
}
