/* CardPulse Discover — Styles
   Brand: DM Sans body, Barlow Condensed display, DM Mono data
   Palette: white bg, #1a1a18 text, #1a3fc7 royal blue accent
   Mobile-first. 100dvh for iOS Safari.
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
  --white: #ffffff;
  --bg: #f8f8f7;
  --text-primary: #1a1a18;
  --text-secondary: #555555;
  --text-tertiary: #999999;
  --accent: #1a3fc7;
  --accent-light: rgba(26, 63, 199, 0.08);
  --accent-glow: rgba(26, 63, 199, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.1);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.1);
  --border: rgba(26, 26, 24, 0.08);
  --border-strong: rgba(26, 26, 24, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== APP SHELL ===== */
.app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
}

.filter-bar__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.filter-bar__row::-webkit-scrollbar {
  display: none;
}

.filter-bar__row + .filter-bar__row {
  margin-top: 8px;
}

.filter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 4px;
}

.filter-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill--active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.filter-pill__count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.7;
}

.filter-pill--signal.filter-pill--active[data-signal="early_mover"] {
  background: var(--green);
  border-color: var(--green);
}
.filter-pill--signal.filter-pill--active[data-signal="trending"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--text-primary);
}
.filter-pill--signal.filter-pill--active[data-signal="buy_window"] {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-pill--signal.filter-pill--active[data-signal="cooling_off"] {
  background: var(--red);
  border-color: var(--red);
}
.filter-pill--signal.filter-pill--active[data-signal="catalyst"] {
  background: var(--purple);
  border-color: var(--purple);
}

/* ===== CARD STACK (Discover Area) ===== */
.card-stack {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-container {
  position: absolute;
  width: calc(100% - 32px);
  max-width: 380px;
  will-change: transform, opacity;
  transition: none;
}

.card-container--exiting {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease;
  pointer-events: none;
}

.card-container--entering {
  animation: cardEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEnter {
  from {
    transform: scale(0.92) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__image {
  width: 75%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.card__image--loading {
  opacity: 0;
}

.card__image-placeholder {
  width: 60%;
  height: 60%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--border) 0%, var(--bg) 100%);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Signal tag on image */
.card__signal-tags {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.signal-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.signal-tag--early_mover { background: rgba(34, 197, 94, 0.9); }
.signal-tag--trending { background: rgba(245, 158, 11, 0.9); color: var(--text-primary); }
.signal-tag--buy_window { background: rgba(26, 63, 199, 0.9); }
.signal-tag--cooling_off { background: rgba(239, 68, 68, 0.9); }
.signal-tag--catalyst { background: rgba(139, 92, 246, 0.9); }

.signal-tag__icon {
  font-size: 12px;
}

/* Card info section */
.card__info {
  padding: 16px 18px 14px;
}

.card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
}

.card__meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.card__set-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

.card__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.card__price {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
}

.card__delta {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card__delta--up {
  color: var(--green);
}

.card__delta--down {
  color: var(--red);
}

.card__delta--flat {
  color: var(--text-tertiary);
}

/* ===== SWIPE INDICATORS ===== */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 10;
}

.swipe-indicator--left {
  right: 20px;
  background: var(--red-bg);
  color: var(--red);
  border: 2px solid var(--red);
}

.swipe-indicator--right {
  left: 20px;
  background: var(--green-bg);
  color: var(--green);
  border: 2px solid var(--green);
}

.swipe-indicator--up {
  top: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-light);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.swipe-indicator--visible {
  opacity: 1;
}

/* ===== INSIGHTS PANEL ===== */
.insights-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.insights-panel--open {
  transform: translateY(0);
}

.insights-panel__handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto 0;
}

.insights-panel__header {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.insights-panel__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insights-panel__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.insights-panel__body {
  padding: 16px 20px 40px;
}

.insight-section {
  margin-bottom: 20px;
}

.insight-section__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.insight-section__value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Price chart area */
.price-chart {
  width: 100%;
  height: 120px;
  background: var(--bg);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.price-chart canvas {
  width: 100%;
  height: 100%;
}

/* Stat blocks */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-block {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.stat-block__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-block__value {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.stat-block__context {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Catalyst rows in insights */
.catalyst-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.catalyst-row__countdown {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
}

.catalyst-row__info {
  flex: 1;
}

.catalyst-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.catalyst-row__type {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== BOTTOM BAR ===== */
.bottom-bar {
  padding: 10px 16px calc(var(--safe-bottom) + 10px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
}

.logo-button {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.logo-button:active {
  opacity: 1;
}

.logo-button svg {
  width: 28px;
  height: 28px;
}

/* ===== GESTURE HINT OVERLAY ===== */
.gesture-hint {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.gesture-hint__item {
  text-align: center;
  color: var(--white);
}

.gesture-hint__arrow {
  font-size: 28px;
  margin-bottom: 6px;
  display: block;
}

.gesture-hint__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

.gesture-hint__dismiss {
  margin-top: 12px;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* ===== ADD TO COLLECTION MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px calc(var(--safe-bottom) + 20px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay--visible .modal {
  transform: translateY(0);
}

.modal__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.modal__options {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.modal__option {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-strong);
  background: var(--white);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.modal__option--selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.modal__option-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal__option-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.modal__input-group {
  margin-bottom: 12px;
}

.modal__input-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.modal__input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.modal__input:focus {
  border-color: var(--accent);
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal__btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.modal__btn--primary {
  background: var(--accent);
  color: var(--white);
}

.modal__btn--secondary {
  background: var(--bg);
  color: var(--text-secondary);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 70px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast__undo {
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 2px 4px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 32px;
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ===== LOADING ===== */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== UPWARD PULL HINT (chevron) ===== */
.pull-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.35;
  animation: pulseHint 2.5s ease-in-out infinite;
}

.pull-hint__chevron {
  width: 18px;
  height: 8px;
}

.pull-hint__text {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(-3px); }
}

/* ===== CARD STACK DEPTH EFFECT ===== */
.card-container--next {
  transform: scale(0.94) translateY(8px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.card-container--current {
  z-index: 2;
}

/* Rotation during horizontal swipe */
.card-container--dragging {
  transition: none !important;
}

/* ===== ONBOARDING ===== */
.onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease forwards;
}

.onboarding--final {
  gap: 8px;
}

.onboarding__logo {
  margin-bottom: 24px;
  opacity: 0.8;
}

.onboarding__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.onboarding__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.onboarding__sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 280px;
}

.onboarding__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.onboarding__card {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-strong);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.onboarding__card:active:not(:disabled) {
  transform: scale(0.97);
}

.onboarding__card--selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.onboarding__card-icon {
  font-size: 28px;
}

.onboarding__card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.onboarding__card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.onboarding__search-wrap {
  width: 100%;
  margin-bottom: 16px;
}

.onboarding__search {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.onboarding__search:focus {
  border-color: var(--accent);
}

.onboarding__char-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.onboarding__chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.onboarding__chip:active:not(:disabled) {
  transform: scale(0.95);
}

.onboarding__chip--selected {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.onboarding__chip:disabled:not(.onboarding__chip--selected) {
  opacity: 0.35;
  cursor: not-allowed;
}

.onboarding__chip-icon {
  font-size: 14px;
}

.onboarding__count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.onboarding__next {
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--text-primary);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.onboarding__next:active {
  transform: scale(0.98);
}

.onboarding__next--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.onboarding__next--accent {
  background: var(--accent);
}

.onboarding__dots {
  display: flex;
  gap: 8px;
}

.onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.3s ease;
}

.onboarding__dot--active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}
