:root {
  --bg: #DCD8CE;
  --surface: #EAE6DC;
  --surface-alt: #D4CFC4;
  --text: #1A1A20;
  --text-muted: #5A5A66;
  --border: rgba(26, 26, 32, 0.14);
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.12);
  --pink: #ec4899;
  --pink-soft: rgba(236, 72, 153, 0.12);
  --kakao: #fee500;
  --kakao-text: #191919;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --amber: #B86E00;
  --amber-soft: rgba(255, 199, 0, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 20px rgba(24, 22, 16, 0.08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 360px at 50% 0%, rgba(255, 199, 0, 0.1), transparent 70%),
    radial-gradient(rgba(26, 26, 32, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  background-repeat: no-repeat, repeat;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: 48px;
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.brand-link {
  text-decoration: none;
}

.brand-badge {
  background: var(--text);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.brand-divider {
  color: var(--border);
}

.brand-tool {
  color: var(--primary);
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-pill-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 999px;
  width: 32px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  font-size: 20px;
  animation: confettiFall 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(90vh) rotate(360deg) scale(1.1); opacity: 0; }
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: inherit;
}

.text-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* Main Content */
.main-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero */
.hero-intro {
  text-align: center;
  padding: 2px 4px 0;
}

.hero-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* 2-in-1 Tabs */
.tab-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #e9e5f5;
  padding: 5px;
  border-radius: 14px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 11px 8px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.14);
}

/* Card */
.stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.85);
}

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

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.chip-action-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s;
}

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

/* Versus Bar */
.versus-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.versus-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.versus-slot.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.slot-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.versus-slot.active .slot-role {
  color: var(--primary);
}

.slot-emoji {
  font-size: 26px;
  margin: 4px 0 2px;
}

.slot-code {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}

.slot-alias {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.versus-mid {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.step-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

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

.nick-toggle-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

.nick-toggle-btn:hover {
  color: var(--primary);
}

.picker-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.picker-label strong {
  color: var(--primary);
}

/* MBTI 4x4 Grid */
.mbti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mbti-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}

.mbti-chip:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.mbti-chip.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.mbti-chip-emoji {
  font-size: 16px;
  line-height: 1.1;
}

.mbti-chip-code {
  font-size: 12.5px;
  font-weight: 800;
  margin-top: 2px;
}

.mbti-grid.compact .mbti-chip {
  padding: 7px 3px;
}

/* Nickname Row */
.nick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.nick-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nick-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.nick-field input {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  background: var(--surface-alt);
  color: var(--text);
}

.nick-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Compact 3-Mode Pill Selector */
.mode-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.mode-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mode-pill {
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.mode-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.14);
}

.mode-hint {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

.quick-link-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 4px 0;
  cursor: pointer;
  text-align: center;
}

.quick-link-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

.live-thermo-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.stamp-slam {
  animation: stampSlam 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stampSlam {
  0% { transform: scale(2.4) rotate(-18deg); opacity: 0; }
  70% { transform: scale(0.92) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-10deg); opacity: 0.9; }
}

/* Buttons */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.primary-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
  transition: transform 0.12s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

.secondary-btn {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn:hover {
  background: var(--surface-alt);
}

/* Simulation & Quiz Cards */
.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sim-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.sim-badge.some {
  color: var(--pink);
  background: var(--pink-soft);
}

.sim-step {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 7px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #a855f7);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-fill.some {
  background: linear-gradient(90deg, var(--pink), var(--primary));
}

.sim-question {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.some-mbti-hint {
  margin: -6px 0 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.sim-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sim-opt-btn {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sim-opt-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sim-opt-btn:active {
  transform: scale(0.985);
}

.sim-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

/* Loading Stage */
.loading-card {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  font-size: 42px;
  animation: pulseBounce 0.7s infinite alternate ease-in-out;
}

@keyframes pulseBounce {
  from { transform: scale(0.92); }
  to { transform: scale(1.12); }
}

.loading-title {
  margin: 14px 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.loading-bar-track {
  width: 100%;
  height: 10px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  transition: width 0.25s linear;
}

.loading-bar-fill.some {
  background: linear-gradient(90deg, var(--pink), #f43f5e);
}

.loading-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Thermal Receipt Card */
.receipt-card {
  position: relative;
  background: #fff;
  filter: drop-shadow(0 8px 24px rgba(17, 24, 39, 0.1));
}

.receipt-top-edge,
.receipt-bottom-edge {
  height: 10px;
  width: 100%;
  background-size: 16px 10px;
  background-repeat: repeat-x;
}

.receipt-top-edge {
  background-image: linear-gradient(135deg, transparent 50%, #fff 50%),
    linear-gradient(225deg, transparent 50%, #fff 50%);
}

.receipt-bottom-edge {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(315deg, transparent 50%, #fff 50%);
}

.receipt-inner {
  padding: 16px 18px 18px;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.receipt-pair-head {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-pair-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pair-pill {
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
}

.pair-x {
  font-weight: 900;
  color: var(--primary);
}

.receipt-mode-tag {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.receipt-score-box {
  text-align: center;
  padding: 12px 8px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px dashed #d1d5db;
}

.score-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-big {
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.score-big.some {
  color: var(--pink);
}

.score-big small {
  font-size: 20px;
  font-weight: 800;
  margin-left: 2px;
}

.score-stamp {
  position: absolute;
  right: -64px;
  top: -4px;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(-10deg);
  opacity: 0.88;
}

.thermo-track {
  width: 82%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 10px auto 6px;
  overflow: hidden;
}

.thermo-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ec4899, #ef4444);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.grade-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary);
}

.grade-badge.emerald { background: var(--success-soft); color: var(--success); }
.grade-badge.amber { background: var(--amber-soft); color: var(--amber); }
.grade-badge.danger { background: var(--danger-soft); color: var(--danger); }

.grade-title {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.receipt-divider {
  border-top: 1.5px dashed #d1d5db;
  margin: 14px 0;
}

/* 4-axis breakdown */
.axes-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axis-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.axis-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.axis-top strong {
  font-weight: 800;
}

.axis-top span {
  color: var(--text-muted);
  font-size: 11.5px;
}

.axis-bar-bg {
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.axis-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

.axis-bar-fill.low {
  background: #f59e0b;
}

/* Packpok 3 lines */
.packpok-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.packpok-item {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.packpok-item.good { background: var(--success-soft); }
.packpok-item.crisis { background: var(--danger-soft); }
.packpok-item.tip { background: var(--primary-soft); }

.packpok-head {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.packpok-item p {
  margin: 0;
  line-height: 1.45;
  color: #1f2937;
}

/* Mission Box (Some) */
.mission-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-head {
  font-size: 13px;
  font-weight: 800;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mission-item:hover {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.mission-copy-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
  flex-shrink: 0;
}

/* Barcode */
.receipt-barcode {
  margin-top: 14px;
  text-align: center;
}

.barcode-lines {
  height: 26px;
  width: 72%;
  margin: 0 auto 4px;
  background: repeating-linear-gradient(
    90deg,
    #111827 0 2px,
    transparent 2px 5px,
    #111827 5px 6px,
    transparent 6px 9px,
    #111827 9px 12px,
    transparent 12px 14px
  );
  opacity: 0.78;
}

.barcode-num {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 700;
}

/* Viral Share Buttons */
.viral-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kakao-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--kakao);
  color: var(--kakao-text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
}

.viral-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.outline-btn {
  padding: 11px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-wide-btn {
  padding: 11px;
  border-radius: var(--radius-md);
  border: none;
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Next Stage Banner */
.next-stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.25);
}

.next-badge {
  position: relative;
  font-size: 10px;
  font-weight: 900;
  background: #fde047;
  color: #111827;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.next-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.next-body strong {
  font-size: 13.5px;
  font-weight: 800;
}

.next-body span {
  font-size: 12px;
  color: #ddd6fe;
}

.next-arrow {
  font-size: 18px;
  font-weight: 900;
}

/* SEO Pairs & FAQ & Promo */
.seo-pairs-section,
.faq-section,
.promo-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
}

.section-heading,
.faq-heading {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
}

.section-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.pair-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pair-seo-chip {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
}

.pair-seo-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.all-pairs-details {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.all-pairs-summary {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.all-pairs-directory {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.dir-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.dir-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dir-link {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 6px;
}

.dir-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface-alt);
}

.faq-q {
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  margin-top: 8px;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.55;
}

.promo-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--text);
}

.promo-emoji {
  font-size: 24px;
}

.promo-info {
  flex: 1;
}

.promo-name {
  font-size: 14px;
  font-weight: 800;
}

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

.promo-arrow {
  font-weight: 900;
  color: var(--primary);
}

/* Footer */
.tool-footer {
  text-align: center;
  padding: 20px 16px 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
