/* =============================================
   Baby Name App — Main Stylesheet
   Mobile-first, app-like, minimal, clean
   ============================================= */

:root {
  --bna-bg: #FAFAF8;
  --bna-surface: #FFFFFF;
  --bna-surface-2: #F5F3EF;
  --bna-border: #E8E4DE;
  --bna-border-light: #F0EDE8;
  --bna-text: #1A1714;
  --bna-text-secondary: #6B6560;
  --bna-text-muted: #A09A93;
  --bna-accent: #C9A96E;
  --bna-accent-light: #F5EDD8;
  --bna-accent-dark: #9E7B45;
  --bna-like: #E8635A;
  --bna-like-light: #FDECEA;
  --bna-skip: #9B9490;
  --bna-save: #6B8F71;
  --bna-save-light: #EAF2EB;
  --bna-radius: 20px;
  --bna-radius-sm: 12px;
  --bna-radius-xs: 8px;
  --bna-shadow: 0 2px 20px rgba(0,0,0,0.08);
  --bna-shadow-card: 0 8px 40px rgba(0,0,0,0.12);
  --bna-font-display: 'Playfair Display', Georgia, serif;
  --bna-font-body: 'Be Vietnam Pro', -apple-system, sans-serif;
  --bna-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --bna-nav-height: 68px;
}

/* ---- Reset & Base ---- */
.bna-app-container *,
.bna-app-container *::before,
.bna-app-container *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.bna-app-container {
  font-family: var(--bna-font-body);
  color: var(--bna-text);
  background: var(--bna-bg);
  line-height: 1.6;
}

/* ---- Root container ---- */
.bna-root {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bna-bg);
  min-height: 600px;
  position: relative;
  border-radius: var(--bna-radius);
  overflow: hidden;
  box-shadow: var(--bna-shadow);
}

/* ---- Navigation ---- */
.bna-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bna-surface);
  border-top: 1px solid var(--bna-border);
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 8px 0 12px;
  height: var(--bna-nav-height);
}

.bna-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--bna-radius-xs);
  color: var(--bna-text-muted);
  transition: color var(--bna-transition);
  font-family: var(--bna-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bna-nav-item:hover {
  color: var(--bna-text);
}

.bna-nav-item.active {
  color: var(--bna-accent-dark);
}

.bna-nav-item svg {
  transition: transform var(--bna-transition);
}

.bna-nav-item.active svg {
  transform: scale(1.1);
}

/* ---- Panels ---- */
.bna-panels {
  position: relative;
  overflow: hidden;
}

.bna-panel {
  display: none;
  padding: 20px 20px 90px;
  min-height: 500px;
  animation: bnaFadeIn 0.3s ease;
}

.bna-panel.active {
  display: block;
}

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

/* ---- Panel headers ---- */
.bna-panel-header {
  margin-bottom: 24px;
}

.bna-panel-title {
  font-family: var(--bna-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--bna-text);
  margin: 0 0 6px;
  line-height: 1.2;
}

.bna-panel-sub {
  font-size: 13px;
  color: var(--bna-text-secondary);
  margin: 0;
}

/* ============================================
   SWIPE PANEL
   ============================================ */

.bna-swipe-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 0;
}

/* Filters */
.bna-filters {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 16px 20px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bna-filters::-webkit-scrollbar { display: none; }

.bna-filter-select {
  appearance: none;
  background: var(--bna-surface);
  border: 1px solid var(--bna-border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  font-family: var(--bna-font-body);
  color: var(--bna-text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--bna-transition), background var(--bna-transition);
  font-weight: 500;
}

.bna-filter-select:focus {
  outline: none;
  border-color: var(--bna-accent);
}

/* Card stack */
.bna-card-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bna-card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bna-text-muted);
  font-size: 14px;
}

/* Name cards */
.bna-name-card {
  position: absolute;
  width: 100%;
  background: var(--bna-surface);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--bna-shadow-card);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
  border: 1px solid var(--bna-border-light);
}

.bna-name-card:active { cursor: grabbing; }

.bna-name-card.bna-card-back {
  transform: scale(0.94) translateY(16px);
  z-index: 1;
  pointer-events: none;
}

.bna-name-card.bna-card-back-2 {
  transform: scale(0.88) translateY(32px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.bna-name-card.bna-card-front {
  z-index: 3;
}

/* Card swipe states */
.bna-name-card.swiping-right .bna-card-like-overlay { opacity: 1; }
.bna-name-card.swiping-left .bna-card-skip-overlay  { opacity: 1; }

.bna-card-like-overlay,
.bna-card-skip-overlay {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.bna-card-like-overlay {
  left: 20px;
  background: var(--bna-like-light);
  color: var(--bna-like);
  border: 2px solid var(--bna-like);
  transform: rotate(-8deg);
}

.bna-card-skip-overlay {
  right: 20px;
  background: #F5F5F5;
  color: var(--bna-skip);
  border: 2px solid var(--bna-skip);
  transform: rotate(8deg);
}

/* Card content */
.bna-card-color-strip {
  height: 4px;
  border-radius: 100px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.bna-card-gender-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--bna-text-muted);
  margin-bottom: 8px;
}

.bna-card-name {
  font-family: var(--bna-font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--bna-text);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.bna-card-meaning-short {
  font-size: 14px;
  color: var(--bna-text-secondary);
  font-style: italic;
  margin: 0 0 16px;
}

.bna-card-meaning-deep {
  font-size: 13px;
  color: var(--bna-text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bna-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.bna-card-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bna-surface-2);
  color: var(--bna-text-secondary);
  font-weight: 500;
  border: 1px solid var(--bna-border);
}

.bna-card-mini-scores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bna-mini-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--bna-text-muted);
}

.bna-mini-score-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bna-accent);
  opacity: 0.8;
}

/* Swipe actions */
.bna-swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px;
  width: 100%;
}

.bna-action-btn {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--bna-transition), box-shadow var(--bna-transition);
  -webkit-tap-highlight-color: transparent;
}

.bna-action-btn:active {
  transform: scale(0.9) !important;
}

.bna-btn-skip {
  width: 56px;
  height: 56px;
  background: var(--bna-surface);
  color: var(--bna-skip);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid var(--bna-border);
}

.bna-btn-save {
  width: 52px;
  height: 52px;
  background: var(--bna-save-light);
  color: var(--bna-save);
  box-shadow: 0 4px 16px rgba(107,143,113,0.2);
  border: 1px solid transparent;
}

.bna-btn-like {
  width: 68px;
  height: 68px;
  background: var(--bna-like);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232,99,90,0.35);
  border: none;
}

.bna-btn-skip:hover  { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.bna-btn-save:hover  { transform: scale(1.06); }
.bna-btn-like:hover  { transform: scale(1.06); box-shadow: 0 8px 30px rgba(232,99,90,0.45); }

/* Profile toast */
.bna-profile-toast {
  margin: 0 20px 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--bna-accent-light), #fff);
  border: 1px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  font-size: 13px;
  color: var(--bna-text);
  line-height: 1.5;
  animation: bnaFadeIn 0.4s ease;
  width: calc(100% - 40px);
}

/* Trending strip */
.bna-trending-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bna-surface);
  border-top: 1px solid var(--bna-border-light);
  overflow: hidden;
  width: 100%;
}

.bna-trending-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bna-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.bna-trending-names {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bna-trending-names::-webkit-scrollbar { display: none; }

.bna-trending-name-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--bna-text);
  background: var(--bna-surface-2);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--bna-border);
  transition: background var(--bna-transition);
  text-decoration: none;
}

.bna-trending-name-chip:hover {
  background: var(--bna-accent-light);
  border-color: var(--bna-accent);
}

/* ============================================
   MATCH PANEL
   ============================================ */

.bna-match-panel { animation: bnaFadeIn 0.3s ease; }

.bna-match-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.bna-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bna-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bna-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bna-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bna-input {
  background: var(--bna-surface);
  border: 1.5px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--bna-font-body);
  color: var(--bna-text);
  transition: border-color var(--bna-transition), box-shadow var(--bna-transition);
  width: 100%;
  outline: none;
}

.bna-input:focus {
  border-color: var(--bna-accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.bna-input::placeholder { color: var(--bna-text-muted); }

.bna-select { cursor: pointer; }

/* Buttons */
.bna-btn-primary {
  background: var(--bna-text);
  color: #fff;
  border: none;
  border-radius: var(--bna-radius-sm);
  padding: 13px 24px;
  font-size: 14px;
  font-family: var(--bna-font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--bna-transition), transform var(--bna-transition);
  letter-spacing: 0.2px;
}

.bna-btn-primary:hover { background: #333; }
.bna-btn-primary:active { transform: scale(0.98); }

.bna-btn-full { width: 100%; }

.bna-btn-secondary {
  background: var(--bna-surface);
  color: var(--bna-text);
  border: 1.5px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-family: var(--bna-font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--bna-transition);
}

.bna-btn-secondary:hover {
  border-color: var(--bna-text);
  background: var(--bna-surface-2);
}

.bna-btn-ghost {
  background: none;
  color: var(--bna-text-muted);
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--bna-font-body);
  cursor: pointer;
  transition: color var(--bna-transition);
}

.bna-btn-ghost:hover { color: var(--bna-text); }

.bna-btn-share {
  background: var(--bna-accent-light);
  color: var(--bna-accent-dark);
  border: 1px solid var(--bna-accent);
  border-radius: var(--bna-radius-sm);
  padding: 11px 20px;
  font-size: 13px;
  font-family: var(--bna-font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bna-transition);
  width: 100%;
  margin-top: 16px;
}

.bna-btn-share:hover {
  background: var(--bna-accent);
  color: #fff;
}

/* Name grid (for match, quiz results) */
.bna-results-title {
  font-family: var(--bna-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--bna-text);
  margin: 0 0 16px;
}

.bna-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bna-name-grid-item {
  background: var(--bna-surface);
  border: 1.5px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all var(--bna-transition);
  position: relative;
  overflow: hidden;
}

.bna-name-grid-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bna-accent);
  opacity: 0;
  transition: opacity var(--bna-transition);
}

.bna-name-grid-item:hover {
  border-color: var(--bna-accent);
  transform: translateY(-2px);
  box-shadow: var(--bna-shadow);
}

.bna-name-grid-item:hover::before { opacity: 1; }

.bna-grid-item-name {
  font-family: var(--bna-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bna-text);
  margin: 0 0 5px;
  display: block;
}

.bna-grid-item-meaning {
  font-size: 12px;
  color: var(--bna-text-secondary);
  line-height: 1.4;
  display: block;
  margin-bottom: 8px;
}

.bna-grid-item-why {
  font-size: 11px;
  color: var(--bna-text-muted);
  font-style: italic;
  display: block;
}

.bna-grid-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.bna-grid-like-btn,
.bna-grid-save-btn {
  flex: 1;
  padding: 6px;
  border-radius: var(--bna-radius-xs);
  font-size: 11px;
  font-family: var(--bna-font-body);
  font-weight: 600;
  border: 1px solid var(--bna-border);
  cursor: pointer;
  transition: all var(--bna-transition);
  background: var(--bna-surface-2);
  color: var(--bna-text-secondary);
}

.bna-grid-like-btn:hover {
  background: var(--bna-like-light);
  color: var(--bna-like);
  border-color: var(--bna-like);
}

.bna-grid-save-btn:hover {
  background: var(--bna-save-light);
  color: var(--bna-save);
  border-color: var(--bna-save);
}

/* ============================================
   QUIZ PANEL
   ============================================ */

.bna-quiz-progress {
  height: 3px;
  background: var(--bna-border);
  border-radius: 100px;
  margin-bottom: 8px;
  overflow: hidden;
}

.bna-quiz-progress-bar {
  height: 100%;
  background: var(--bna-accent);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.bna-quiz-step-label {
  font-size: 11px;
  color: var(--bna-text-muted);
  text-align: right;
  margin-bottom: 24px;
  font-weight: 500;
}

.bna-quiz-question {
  display: none;
  animation: bnaFadeIn 0.3s ease;
}

.bna-quiz-question.active { display: block; }

.bna-quiz-q {
  font-family: var(--bna-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--bna-text);
  margin: 0 0 20px;
  line-height: 1.3;
}

.bna-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bna-quiz-option {
  background: var(--bna-surface);
  border: 1.5px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--bna-font-body);
  font-weight: 500;
  color: var(--bna-text);
  cursor: pointer;
  text-align: left;
  transition: all var(--bna-transition);
}

.bna-quiz-option:hover {
  border-color: var(--bna-accent);
  background: var(--bna-accent-light);
}

.bna-quiz-option.selected {
  border-color: var(--bna-accent);
  background: var(--bna-accent-light);
  color: var(--bna-accent-dark);
  font-weight: 600;
}

/* Quiz result */
.bna-quiz-result {
  animation: bnaFadeIn 0.4s ease;
}

.bna-quiz-result-profile {
  background: linear-gradient(135deg, var(--bna-accent-light), #fff);
  border: 1px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 16px;
  font-size: 14px;
  color: var(--bna-text);
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   SCORE PANEL
   ============================================ */

.bna-score-input-wrap {
  display: flex;
  gap: 10px;
}

.bna-score-input {
  flex: 1;
  font-size: 16px;
  font-family: var(--bna-font-display);
}

.bna-score-result {
  animation: bnaFadeIn 0.4s ease;
}

.bna-score-name-display {
  font-family: var(--bna-font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--bna-text);
  margin: 24px 0 20px;
  letter-spacing: -1px;
}

.bna-score-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.bna-score-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bna-score-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bna-text-secondary);
  width: 80px;
  flex-shrink: 0;
}

.bna-score-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bna-border);
  border-radius: 100px;
  overflow: hidden;
}

.bna-score-bar-fill {
  height: 100%;
  background: var(--bna-accent);
  border-radius: 100px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bna-score-bar-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--bna-text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.bna-score-analysis {
  font-size: 14px;
  color: var(--bna-text-secondary);
  line-height: 1.7;
  background: var(--bna-surface-2);
  border-radius: var(--bna-radius-sm);
  padding: 16px;
  font-style: italic;
}

/* ============================================
   FAVORITES PANEL
   ============================================ */

.bna-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bna-favorite-item {
  display: flex;
  align-items: center;
  background: var(--bna-surface);
  border: 1px solid var(--bna-border);
  border-radius: var(--bna-radius-sm);
  padding: 14px 16px;
  gap: 12px;
  animation: bnaFadeIn 0.3s ease;
}

.bna-fav-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bna-fav-info { flex: 1; }

.bna-fav-name {
  font-family: var(--bna-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bna-text);
  display: block;
  margin-bottom: 2px;
}

.bna-fav-meaning {
  font-size: 12px;
  color: var(--bna-text-muted);
}

.bna-fav-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bna-text-muted);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: color var(--bna-transition), background var(--bna-transition);
}

.bna-fav-remove:hover {
  color: var(--bna-like);
  background: var(--bna-like-light);
}

.bna-favorites-empty {
  text-align: center;
  color: var(--bna-text-muted);
  padding: 48px 20px;
  font-size: 14px;
  line-height: 2;
}

.bna-favorites-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bna-border);
}

.bna-favorites-footer .bna-btn-secondary { flex: 1; text-align: center; }

/* ============================================
   SEO CONTENT STYLES
   ============================================ */

.bna-faq-item {
  border-bottom: 1px solid var(--bna-border);
  padding: 16px 0;
}

.bna-faq-q {
  font-family: var(--bna-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--bna-text);
  margin: 0 0 8px;
}

.bna-faq-a {
  font-size: 14px;
  color: var(--bna-text-secondary);
  line-height: 1.7;
}

.bna-related-names { margin: 24px 0; }
.bna-related-names h2 {
  font-family: var(--bna-font-display);
  font-size: 20px;
  margin-bottom: 14px;
}

.bna-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bna-related-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bna-surface-2);
  border: 1px solid var(--bna-border);
  border-radius: var(--bna-radius-xs);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--bna-transition);
}

.bna-related-item:hover {
  background: var(--bna-accent-light);
  border-color: var(--bna-accent);
}

.bna-related-item strong {
  font-family: var(--bna-font-display);
  font-size: 15px;
  color: var(--bna-text);
}

.bna-related-item span {
  font-size: 11px;
  color: var(--bna-text-muted);
}

.bna-seo-cta {
  background: linear-gradient(135deg, var(--bna-accent-light), #fff8f0);
  border: 1px solid var(--bna-border);
  border-radius: var(--bna-radius);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.bna-seo-cta p {
  font-size: 15px;
  color: var(--bna-text-secondary);
  margin: 0 0 14px;
}

/* ============================================
   DETAIL modal (shown when clicking a card)
   ============================================ */

.bna-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: bnaFadeIn 0.2s ease;
  padding: 0;
}

.bna-detail-sheet {
  background: var(--bna-bg);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 24px 48px;
  animation: bnaSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bnaSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.bna-detail-handle {
  width: 36px;
  height: 4px;
  background: var(--bna-border);
  border-radius: 100px;
  margin: 14px auto 20px;
}

.bna-detail-name {
  font-family: var(--bna-font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--bna-text);
  margin: 0 0 6px;
  letter-spacing: -1px;
}

.bna-detail-meaning-short {
  font-size: 15px;
  color: var(--bna-text-secondary);
  font-style: italic;
  margin: 0 0 20px;
}

.bna-detail-meaning-deep {
  font-size: 14px;
  color: var(--bna-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.bna-detail-scores {
  margin-bottom: 20px;
}

.bna-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* ============================================
   STORY MODAL
   ============================================ */

.bna-story-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bna-border);
}

.bna-story-section h4 {
  font-family: var(--bna-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--bna-text-muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: normal;
}

.bna-story-text {
  font-size: 14px;
  color: var(--bna-text-secondary);
  line-height: 1.9;
  font-style: italic;
  background: linear-gradient(135deg, var(--bna-surface-2), #fff);
  border-radius: var(--bna-radius-sm);
  padding: 16px;
  border-left: 3px solid var(--bna-accent);
}

.bna-story-loading {
  font-size: 13px;
  color: var(--bna-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   SHARE CARD (Canvas-based)
   ============================================ */

.bna-share-modal {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bnaFadeIn 0.2s ease;
}

.bna-share-box {
  background: var(--bna-bg);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.bna-share-canvas {
  border-radius: 16px;
  box-shadow: var(--bna-shadow-card);
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
}

.bna-share-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SPINNER
   ============================================ */

.bna-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--bna-border);
  border-top-color: var(--bna-accent);
  border-radius: 50%;
  animation: bnaSpin 0.8s linear infinite;
}

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

/* ============================================
   ADMIN STYLES
   ============================================ */

.bna-admin-wrap h1 { font-size: 22px; margin-bottom: 20px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 520px) {
  .bna-root { border-radius: 0; box-shadow: none; }
  .bna-card-name { font-size: 30px; }
  .bna-detail-name { font-size: 36px; }
  .bna-name-grid { grid-template-columns: 1fr 1fr; }
  .bna-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bna-bg: #141210;
    --bna-surface: #1E1C19;
    --bna-surface-2: #252320;
    --bna-border: #333028;
    --bna-border-light: #2A2820;
    --bna-text: #F0ECE6;
    --bna-text-secondary: #9A9188;
    --bna-text-muted: #6B6358;
    --bna-accent-light: #2A2310;
    --bna-shadow: 0 2px 20px rgba(0,0,0,0.3);
    --bna-shadow-card: 0 8px 40px rgba(0,0,0,0.4);
  }
}
