/* ============================================================
   NameSmith — AI Name Generator
   MythNames-inspired dark fantasy theme with gold accent
   Cinzel headings + Inter body + charcoal backgrounds
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds — charcoal dark */
  --bg:            #0d0d0f;
  --bg-subtle:     #111115;
  --surface:       #16161c;
  --surface-hover: #1c1c24;
  --surface-active:#22222e;

  /* Gold borders */
  --border:        rgba(201, 168, 76, 0.12);
  --border-hover:  rgba(201, 168, 76, 0.30);
  --border-accent: rgba(201, 168, 76, 0.20);

  /* Gold accent */
  --gold:      #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.10);
  --gold-glow: rgba(201, 168, 76, 0.22);
  --gold-bright: #d4b96a;

  /* Status colors */
  --green: #4ade80;
  --red:   #f87171;

  /* Text — cream hierarchy */
  --text:           #f5f0e8;
  --text-secondary: #c4b8a0;
  --text-muted:     #8a7c68;

  /* Layout */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img { max-width: 100%; }

/* Cinzel headings */
h1, h2, h3, .font-cinzel {
  font-family: 'Cinzel', 'Georgia', serif;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.logo span {
  color: var(--gold);
}

.logo .logo-icon {
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 68px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--border-accent);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, #e8d5a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-search {
  max-width: 480px;
  margin: 0 auto 24px;
}

.hero-search input {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search input:focus {
  border-color: rgba(201, 168, 76, 0.50);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

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

.hero-popular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.hero-popular span {
  color: var(--text-muted);
}

.hero-popular a {
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.hero-popular a:hover {
  border-color: var(--border-hover);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ============================================================
   GENERATORS SECTION
   ============================================================ */
.generators-section {
  padding: 24px 0 80px;
}

.generators-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.category-section {
  margin-bottom: 64px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.category-header h2 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}

.category-count {
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  letter-spacing: 0.3px;
}

/* ============================================================
   GENERATOR CARDS
   ============================================================ */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.gen-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
}

.gen-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.gen-card-cat {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.gen-card h3 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--transition);
}

.gen-card:hover h3 {
  color: var(--gold);
}

.gen-card p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gen-card-cta {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gold);
  margin-top: 4px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.gen-card:hover .gen-card-cta {
  opacity: 1;
}

.gen-card-sm {
  padding: 18px;
}

.gen-card-sm h3 {
  font-size: 14px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-inner h2 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.cta-inner p {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: #1a1408;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-generate {
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #b8943a 100%);
  color: #1a1408;
  border-radius: var(--radius);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--gold-glow);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
}

.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-generate:active:not(:disabled) {
  transform: translateY(0);
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(26, 20, 8, 0.2);
  border-top-color: #1a1408;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

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

/* ============================================================
   GENERATOR HERO (individual generator page)
   ============================================================ */
.gen-hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}

.gen-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.gen-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px 52px;
  position: relative;
}

.breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--text-secondary);
}

.gen-hero h1 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.gen-intro {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
}

/* ============================================================
   GENERATOR TOOL
   ============================================================ */
.gen-tool {
  padding: 44px 0;
}

.gen-tool-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.gen-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.control-group select {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a7c68' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.control-group select:focus {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.08);
}

/* Gender toggle buttons */
.gender-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gender-btn {
  flex: 1;
  min-width: 60px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.gender-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.gender-btn.active {
  background: var(--gold-soft);
  border-color: rgba(201, 168, 76, 0.45);
  color: var(--gold);
  font-weight: 600;
}

/* Character description input */
.char-description-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.char-description-group label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.optional-tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--surface-active);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 100px;
  opacity: 0.7;
}

.char-description-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 62px;
  max-height: 140px;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

.char-description-input:focus {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.08);
}

.char-description-input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-area {
  margin-top: 24px;
  min-height: 200px;
}

.results-placeholder {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-lg);
}

.placeholder-icon {
  font-size: 44px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.results-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

.name-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  animation: fadeSlideIn 0.3s ease both;
}

.name-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.name-card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-soft);
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.name-card-content {
  flex: 1;
  min-width: 0;
}

.name-card-name {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.name-card-meaning {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.name-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: rgba(201, 168, 76, 0.40);
  color: var(--gold);
  background: var(--gold-soft);
}

.copy-btn.copied {
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

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

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

.results-header h2 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.results-header .count {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-weight: 500;
}

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

.results-actions button {
  flex: 1;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

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

/* ============================================================
   RELATED SECTION
   ============================================================ */
.related-section {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.related-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.related-inner h2 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

/* ============================================================
   SEO SECTION
   ============================================================ */
.seo-section {
  padding: 52px 0 80px;
  border-top: 1px solid var(--border);
}

.seo-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.seo-inner h2 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.seo-content {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.seo-content h3 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  margin: 28px 0 12px;
}

.seo-content p {
  margin-bottom: 16px;
}

.seo-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.seo-content li {
  padding: 8px 0 8px 22px;
  position: relative;
}

.seo-content li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 8px;
  color: var(--gold);
  top: 12px;
}

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

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
  padding: 120px 0;
}

.error-inner {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.error-inner h1 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-inner p {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.error-message {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-number {
  width: 26px;
  height: 26px;
  background: var(--surface-hover);
  border-radius: 6px;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 14px;
  background: var(--surface-hover);
  border-radius: 4px;
}

.skeleton-line:first-child {
  width: 40%;
  height: 16px;
}

.skeleton-line:last-child {
  width: 80%;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner {
    padding: 52px 20px 44px;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: 0.3px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .gen-grid {
    grid-template-columns: 1fr;
  }

  .gen-grid-sm {
    grid-template-columns: 1fr 1fr;
  }

  .control-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gen-hero-inner {
    padding: 32px 20px 40px;
  }

  .gen-hero h1 {
    font-size: 28px;
  }

  .name-card {
    padding: 16px 18px;
    flex-direction: column;
    gap: 10px;
  }

  .name-card-actions {
    align-self: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .gen-grid-sm {
    grid-template-columns: 1fr;
  }

  .hero-popular {
    gap: 6px;
  }

  .gen-controls {
    padding: 20px;
  }

  .name-card-name {
    font-size: 15px;
  }

  .gender-toggle {
    flex-wrap: nowrap;
  }
}
