:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #1a1a28;
  --bg-elevated: #14141e;
  --bg-input: #1a1a28;
  --border: rgba(255,255,255,0.12);
  --border-hover: rgba(255,105,180,0.5);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dim: rgba(139,92,246,0.15);
  --pink: #ff69b4;
  --pink-light: #ff8cc8;
  --pink-dim: rgba(255,105,180,0.15);
  --accent: linear-gradient(135deg, #8b5cf6, #ff69b4);
  --accent-glow: 0 0 30px rgba(255,105,180,0.25);
  --text: #f8f8ff;
  --text-muted: #9090b8;
  --text-faint: #505070;
  --legendary: #f59e0b;
  --epic: #8b5cf6;
  --rare: #3b82f6;
  --common: #6b7280;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --comic-shadow: 4px 4px 0 #000;
  --comic-shadow-pink: 4px 4px 0 rgba(255,105,180,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle, rgba(255,105,180,0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255,105,180,0.25);
  overflow: visible;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,105,180,0.4));
  transition: filter var(--transition);
}

.logo-img:hover {
  filter: drop-shadow(0 0 18px rgba(255,105,180,0.7));
}

.header-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--text-muted);
  padding: 7px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-btn:hover {
  color: var(--pink-light);
  border-color: rgba(255,105,180,0.35);
}

.nav-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.8);
  text-shadow: none;
}

.social-links {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: visible;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-dim);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

/* Fart button */
.fart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.1s;
  user-select: none;
  border-radius: 50%;
  overflow: hidden;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fart-btn-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.fart-btn:hover { transform: scale(1.15); }
.fart-btn:active { transform: scale(0.9); }
.fart-btn:focus, .fart-btn:focus-visible { outline: none; border: none; box-shadow: none; }

/* Views */
.view { display: none; }
.view.active { display: block; }

/* Controls Bar */
.controls-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  transition: var(--transition);
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.search-box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}

.search-icon { color: var(--text-faint); flex-shrink: 0; }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 10px 4px;
  outline: none;
  min-width: 0;
}

.search-box input::placeholder { color: var(--text-faint); }

.btn-pill {
  background: var(--pink);
  color: #000;
  border: 2px solid #000;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 3px 3px 0 #000;
  letter-spacing: 0.02em;
}

.btn-pill:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 #000;
}

.btn-pill:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 #000;
}

.btn-ghost {
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.btn-ghost:hover { color: var(--text); border-color: var(--pink); opacity: 1; background: var(--bg-card-hover); box-shadow: 3px 3px 0 rgba(0,0,0,0.6); }

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-btn {
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.filter-btn:hover, .filter-btn.active[data-rarity="all"] {
  background: var(--pink-dim);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.filter-btn.active[data-rarity="legendary"] { background: rgba(245, 158, 11, 0.15); border-color: rgba(245,158,11,0.4); color: var(--legendary); }
.filter-btn.active[data-rarity="epic"] { background: rgba(147, 51, 234, 0.15); border-color: rgba(147,51,234,0.4); color: var(--purple-light); }
.filter-btn.active[data-rarity="rare"] { background: rgba(59, 130, 246, 0.15); border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.filter-btn.active[data-rarity="common"] { background: rgba(107, 114, 128, 0.15); border-color: rgba(107,114,128,0.4); color: #9ca3af; }

.filter-btn.legendary:hover { background: rgba(245, 158, 11, 0.12); border-color: rgba(245,158,11,0.3); color: var(--legendary); }
.filter-btn.uncommon:hover { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #34d399; }
.filter-btn.rare:hover { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.filter-btn.common:hover { background: rgba(107,114,128,0.12); border-color: rgba(107,114,128,0.3); color: #9ca3af; }

/* Error Banner */
.error-banner {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 14px 24px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #f87171;
  font-size: 14px;
  line-height: 1.5;
  margin-left: 24px;
  margin-right: 24px;
}

/* NFT Grid */
.nft-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* NFT Card */
.nft-card {
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeIn 0.4s ease both;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.7);
}

.nft-card:hover {
  border-color: var(--pink);
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 5px 8px 0 rgba(0,0,0,0.8), 0 0 20px rgba(255,105,180,0.2);
}

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

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nft-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.rarity-legendary { background: rgba(245,158,11,0.85); color: #1a0a00; }
.rarity-uncommon { background: rgba(16,185,129,0.85); color: white; }
.rarity-rare { background: rgba(59,130,246,0.85); color: white; }
.rarity-common { background: rgba(107,114,128,0.7); color: white; }

.card-body {
  padding: 10px 12px 8px;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-token {
  font-size: 11px;
  color: var(--pink);
  font-weight: 700;
}

.card-rank {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
}

.card-buy-btn {
  display: block;
  margin: 8px 10px 10px;
  padding: 7px;
  background: linear-gradient(135deg, rgba(147,51,234,0.15), rgba(236,72,153,0.15));
  border: 1px solid rgba(147,51,234,0.3);
  color: var(--purple-light);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.card-buy-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.3), rgba(236,72,153,0.3));
  border-color: rgba(147,51,234,0.6);
  box-shadow: 0 0 12px rgba(147,51,234,0.2);
  transform: none;
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-faint);
  font-size: 40px;
}

/* Load More */
.load-more-container {
  text-align: center;
  padding: 32px 24px;
}

.btn-load-more {
  background: var(--bg-card);
  border: 1px solid rgba(147,51,234,0.4);
  color: var(--purple-light);
  padding: 12px 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-load-more:hover {
  background: var(--purple-dim);
  box-shadow: 0 0 20px rgba(147,51,234,0.3);
  transform: translateY(-2px);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-spinner p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Explore View */
#explore-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.explore-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.explore-controls-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.explore-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.explore-arrow:hover {
  background: var(--purple-dim);
  border-color: rgba(147,51,234,0.4);
  color: var(--purple-light);
  box-shadow: 0 0 12px rgba(147,51,234,0.2);
}

.explore-counter {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.explore-random-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, rgba(147,51,234,0.18), rgba(236,72,153,0.18));
  border: 1px solid rgba(147,51,234,0.35);
  color: var(--purple-light);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.explore-random-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.32), rgba(236,72,153,0.32));
  border-color: rgba(147,51,234,0.6);
  box-shadow: 0 0 18px rgba(147,51,234,0.3);
  transform: scale(1.04);
}

.explore-random-btn:active { transform: scale(0.97); }

.explore-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.explore-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.explore-card-body {
  padding: 24px;
}

.explore-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.explore-card-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.explore-card-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.explore-like-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.explore-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.explore-opensea-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(236,72,153,0.2));
  border: 1px solid rgba(147,51,234,0.4);
  color: var(--purple-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.explore-opensea-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(236,72,153,0.35));
  box-shadow: 0 0 20px rgba(147,51,234,0.3);
}

/* Like buttons */
.like-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.like-btn:hover, .like-btn.active {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
  color: #4ade80;
}

.like-btn.dislike-btn:hover, .like-btn.dislike-btn.active {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}

/* Trait chips */
.trait-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.trait-chip .trait-type {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.trait-chip .trait-val {
  color: var(--text);
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #f87171; }

.modal-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100%;
  overflow: hidden;
  flex: 1;
}

.modal-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.modal-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.modal-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.like-bar {
  display: flex;
  gap: 8px;
}

.btn-opensea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(236,72,153,0.2));
  border: 1px solid rgba(147,51,234,0.4);
  color: var(--purple-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-opensea:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(236,72,153,0.35));
  box-shadow: 0 0 16px rgba(147,51,234,0.25);
}

.modal-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header-info {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-rarity-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.modal-rarity-badge.rarity-legendary { background: rgba(245,158,11,0.2); color: var(--legendary); border: 1px solid rgba(245,158,11,0.4); }
.modal-rarity-badge.rarity-uncommon { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.4); }
.modal-rarity-badge.rarity-rare { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.modal-rarity-badge.rarity-common { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid rgba(107,114,128,0.4); }

.modal-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-token-id {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-traits {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-comments {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.comment-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.comment-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.no-comments {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
  padding: 8px 0;
}

.comment-error {
  font-size: 12px;
  color: #f87171;
  padding: 2px 0;
}

.comments-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 4px;
}

.cp-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.cp-btn:hover:not([disabled]) {
  border-color: var(--purple-light);
  color: var(--purple-light);
}

.cp-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

.cp-btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.comment-form input,
.comment-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  resize: none;
  transition: var(--transition);
  width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px var(--purple-dim);
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-faint);
}

/* Leaderboard */
.leaderboard-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

.leaderboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.leaderboard-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.leaderboard-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

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

.lb-row {
  display: grid;
  grid-template-columns: 52px 68px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeIn 0.35s ease both;
}

.lb-row:hover {
  border-color: rgba(147, 51, 234, 0.4);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), -3px 0 0 var(--purple);
}

.lb-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.lb-rank-1 { color: #f59e0b; }
.lb-rank-2 { color: #94a3b8; }
.lb-rank-3 { color: #cd7f32; }
.lb-rank-other { color: var(--text-faint); font-size: 17px; }

.lb-medal {
  font-size: 26px;
  text-align: center;
  line-height: 1;
}

.lb-img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
  display: block;
}

.lb-img-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.lb-info {
  min-width: 0;
}

.lb-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.lb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.lb-rarity {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 99px;
}

.lb-scores {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lb-score-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}

.lb-score-item.likes { color: #4ade80; }
.lb-score-item.dislikes { color: #f87171; }

.lb-net {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid rgba(147,51,234,0.25);
  white-space: nowrap;
}

.leaderboard-empty {
  text-align: center;
  padding: 80px 24px;
}

.leaderboard-empty-icon { font-size: 56px; margin-bottom: 16px; }

.leaderboard-empty h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.leaderboard-empty p {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .logo-text { font-size: 15px; }
  .header-nav { display: none; }
  .controls-bar { padding: 16px; gap: 12px; }
  .nft-grid { padding: 8px 16px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .modal-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .modal-left { border-right: none; border-bottom: 1px solid var(--border); }
  .modal-image { max-height: 260px; object-fit: cover; }
  .modal-name { font-size: 18px; }
  #explore-view { padding: 24px 16px; }
  .explore-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .filter-group { gap: 4px; }
  .filter-btn { padding: 5px 10px; font-size: 11px; }
  .nft-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ====== MON Price Ticker ====== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.mon-ticker {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ticker-up { color: #4ade80; }
.ticker-down { color: #f87171; }

/* ====== Squad Member of the Day ====== */
.squad-of-day {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.sod-inner {
  background: linear-gradient(135deg, #160800 0%, #2a1200 40%, #180820 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 50px rgba(245,158,11,0.2), 0 4px 24px rgba(0,0,0,0.5);
}

.sod-inner::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: 15px;
  pointer-events: none;
  z-index: 0;
}

.sod-crown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px 12px;
  background: linear-gradient(180deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.05) 100%);
  border-bottom: 1px solid rgba(245,158,11,0.2);
  position: relative;
  z-index: 1;
}

.sod-crown {
  font-size: 26px;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.7));
  animation: sod-float 3s ease-in-out infinite;
}

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

.sod-title-block { text-align: center; }

.sod-title-top {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245,158,11,0.6), 0 0 40px rgba(245,158,11,0.3);
}

.sod-cert-date {
  font-size: 12px;
  color: rgba(245,158,11,0.55);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.sod-body {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.sod-portrait {
  position: relative;
  flex-shrink: 0;
}

.sod-image {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.3), 0 0 30px rgba(245,158,11,0.4), 0 0 60px rgba(245,158,11,0.1);
  display: block;
}

.sod-img-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  border: 3px solid #f59e0b;
}

.sod-rarity {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sod-content { flex: 1; min-width: 200px; }

.sod-award-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
  box-shadow: 0 2px 14px rgba(245,158,11,0.5);
}

.sod-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #f0f0f8;
  margin-bottom: 3px;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.sod-token {
  font-size: 13px;
  color: rgba(245,158,11,0.65);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sod-achievement-banner {
  font-size: 14px;
  color: #fcd34d;
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(245,158,11,0.06);
  border-left: 3px solid rgba(245,158,11,0.45);
  border-radius: 0 6px 6px 0;
}

.sod-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sod-btn {
  font-size: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sod-share-btn {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.12)) !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
  color: #fcd34d !important;
}

.sod-share-btn:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.28), rgba(239,68,68,0.22)) !important;
  opacity: 1 !important;
}

.sod-cert-day-btn {
  background: #FFC72C !important;
  border: 2px solid #000 !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 3px 3px 0 #000 !important;
}

.sod-cert-day-btn:hover {
  background: #ffe066 !important;
  transform: translateY(-2px) !important;
  box-shadow: 4px 5px 0 #000 !important;
}

/* ====== Certificate Card Modal ====== */
.cert-modal-inner {
  max-width: 860px !important;
}

.cert-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
}

#cert-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(245,158,11,0.35);
  box-shadow: 0 0 30px rgba(245,158,11,0.15);
}

/* ====== Card Updates ====== */
.card-price {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.price-loading { color: var(--text-faint); }
.price-not-listed { color: var(--text-faint); font-style: italic; }
.price-mon { color: #a855f7; font-weight: 700; }
.price-usd { color: var(--text-faint); font-size: 11px; }

.card-footer {
  border-top: 1px solid var(--border);
  padding: 8px 10px;
  display: flex;
  gap: 6px;
}

.card-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-details-btn {
  background: var(--pink);
  border: 2px solid #000;
  color: #000;
  font-weight: 800;
  box-shadow: 2px 2px 0 #000;
}

.card-details-btn:hover {
  background: var(--pink-light);
  box-shadow: 3px 3px 0 #000;
  transform: translateY(-1px);
}

.card-opensea-btn {
  background: var(--bg-elevated);
  border: 2px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.card-opensea-btn:hover {
  color: var(--purple-light);
  border-color: var(--purple-light);
  background: var(--purple-dim);
}


/* ====== Tinder / Explore View ====== */
.tinder-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tinder-topbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tinder-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.tinder-hint {
  font-size: 12px;
  color: var(--text-faint);
}

.tinder-stage {
  width: 100%;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tinder-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 24px;
}

.tinder-loading p {
  color: var(--text-muted);
  font-size: 14px;
}

.tinder-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
  animation: cardIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  cursor: default;
  user-select: none;
}

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

@keyframes flyLeft {
  to { transform: translateX(-150%) rotate(-20deg); opacity: 0; }
}

@keyframes flyRight {
  to { transform: translateX(150%) rotate(20deg); opacity: 0; }
}

.tinder-card.fly-left { animation: flyLeft 0.32s ease forwards; }
.tinder-card.fly-right { animation: flyRight 0.32s ease forwards; }

.tinder-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.tinder-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tinder-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-faint);
  font-size: 60px;
}

.tinder-rarity {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.tinder-card-info {
  padding: 16px 20px;
}

.tinder-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tinder-card-token {
  font-size: 14px;
  color: var(--text-muted);
}

/* Stamp overlays */
.like-stamp, .nope-stamp {
  position: absolute;
  top: 30px;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-10deg);
  transition: opacity 0.1s ease;
  z-index: 5;
}

.like-stamp {
  right: 20px;
  border: 4px solid #4ade80;
  color: #4ade80;
  transform: rotate(10deg);
}

.nope-stamp {
  left: 20px;
  border: 4px solid #f87171;
  color: #f87171;
  transform: rotate(-10deg);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

/* Tinder action buttons */
.tinder-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.tinder-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.tinder-nope {
  background: rgba(239,68,68,0.12);
  border: 2px solid rgba(239,68,68,0.4);
  color: #f87171;
}

.tinder-nope:hover {
  background: rgba(239,68,68,0.25);
  border-color: #f87171;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(239,68,68,0.3);
}

.tinder-nope:active { transform: scale(0.95); }

.tinder-love {
  background: rgba(236,72,153,0.12);
  border: 2px solid rgba(236,72,153,0.4);
  color: #f472b6;
}

.tinder-love:hover {
  background: rgba(236,72,153,0.25);
  border-color: #f472b6;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(236,72,153,0.3);
}

.tinder-love:active { transform: scale(0.95); }

.tinder-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.tinder-detail-btn {
  font-size: 12px;
  padding: 6px 14px;
}

.tinder-done {
  text-align: center;
  padding: 60px 24px;
}

.tinder-done-icon { font-size: 56px; margin-bottom: 16px; }

.tinder-done h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tinder-done p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ====== Leaderboard Tabs ====== */
.lb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.lb-tab {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lb-tab:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.lb-tab.active {
  background: var(--purple-dim);
  border: 1px solid rgba(147,51,234,0.35);
  color: var(--purple-light);
  box-shadow: 0 2px 8px rgba(147,51,234,0.15);
}

/* ====== Modal Price Section ====== */
.modal-price-section {
  padding: 10px 16px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 28px;
}

.modal-price-loading {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

.modal-price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.modal-price-mon {
  font-size: 14px;
  font-weight: 700;
  color: #a855f7;
}

.modal-price-usd {
  font-size: 12px;
  color: var(--text-faint);
}

.modal-not-listed {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

.modal-btn-row {
  display: flex;
  gap: 8px;
}

.modal-btn-row .btn-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  padding: 8px 12px;
}

.modal-btn-row .btn-opensea {
  flex: 1;
  font-size: 12px;
}

/* ====== Share Card Modal ====== */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeOverlay 0.2s ease;
}

.share-modal-inner {
  background: var(--bg-elevated);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  max-width: 560px;
  width: 100%;
  animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1);
}

.share-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

#share-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(147,51,234,0.3);
}

.share-canvas-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,15,0.7);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
  backdrop-filter: blur(4px);
}

.share-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.share-btn-row .btn-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 9px 18px;
}

/* ====== Responsive updates ====== */
@media (max-width: 900px) {
  .header-nav { gap: 2px; }
  .nav-btn { padding: 6px 12px; font-size: 13px; }
}

@media (max-width: 768px) {
  .header-right { gap: 8px; }
  .mon-ticker { display: none; }
  .sod-cert-body { gap: 14px; }
  .sod-image, .sod-img-placeholder { width: 80px; height: 80px; }
  .tinder-wrap { padding: 16px 16px 32px; }
  .tinder-btn { width: 58px; height: 58px; font-size: 22px; }
  .lb-tabs { flex-direction: column; gap: 4px; }
  .share-modal-inner { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .tinder-actions { gap: 10px; }
  .tinder-secondary .btn-pill { font-size: 11px; padding: 5px 10px; }
}

/* ====== Auth ====== */
.auth-area {
  display: flex;
  align-items: center;
}

.auth-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: #000;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.auth-signin-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.07);
}

.auth-signin-btn--wide {
  width: 100%;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 10px;
}

.auth-user-wrap {
  position: relative;
}

.auth-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
}

.auth-user-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(147,51,234,0.4);
}

.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-avatar-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.auth-username {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 130px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
}

.auth-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.auth-dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

/* Like-bar vote button (when logged out) */
.vote-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  margin-left: 4px;
}

.vote-signin-btn:hover {
  background: #1a1a1a;
}

/* Comment form user row */
.comment-form-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-form-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-form-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Comment login prompt */
.comment-login-prompt {
  padding: 12px 0 4px;
}

/* Explore login toast */
.explore-login-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease;
  white-space: nowrap;
}

.toast-signin-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.toast-signin-btn:hover {
  background: #e5e5e5;
}

/* ====== Learn to Read ====== */
.ltr-page {
  min-height: calc(100vh - 72px);
  background: linear-gradient(160deg, #e0f4ff 0%, #c8eaff 40%, #d6f5e0 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 60px;
  box-sizing: border-box;
}

.ltr-notebook {
  position: relative;
  background: #f7faff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(80,140,220,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 4px solid #7ec8f7;
  max-width: 820px;
  width: 100%;
  overflow: hidden;
}

.ltr-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 39px,
    #b8dff7 39px,
    #b8dff7 40px
  );
  pointer-events: none;
  opacity: 0.5;
  top: 60px;
}

.ltr-content {
  position: relative;
  z-index: 1;
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.ltr-heading-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.ltr-parrot {
  font-size: 52px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
  animation: ltr-wobble 2.4s ease-in-out infinite;
}

.ltr-parrot-right {
  animation-delay: 1.2s;
  transform-origin: bottom center;
}

@keyframes ltr-wobble {
  0%, 100% { transform: rotate(-6deg); }
  50%       { transform: rotate(6deg); }
}

.ltr-heading {
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  color: #1a5fa8;
  text-align: center;
  line-height: 1.35;
  margin: 0;
  text-shadow: 2px 2px 0 rgba(126,200,247,0.4);
}

.ltr-subtext {
  font-family: 'Schoolbell', 'Comic Sans MS', cursive;
  font-size: 22px;
  color: #e07c2f;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.ltr-video-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ltr-video-frame {
  width: 100%;
  max-width: 680px;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid #7ec8f7;
  box-shadow: 0 6px 28px rgba(80,140,220,0.22), 6px 6px 0 #f7c948;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ltr-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.ltr-footer-deco {
  display: flex;
  gap: 16px;
  font-size: 26px;
  justify-content: center;
  animation: ltr-bounce-row 3s ease-in-out infinite;
}

@keyframes ltr-bounce-row {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@media (max-width: 600px) {
  .ltr-content { padding: 28px 20px 36px; }
  .ltr-parrot { font-size: 36px; }
  .ltr-heading-wrap { gap: 8px; }
}

@media (max-width: 768px) {
  .auth-username { display: none; }
  .auth-signin-btn { padding: 7px 10px; font-size: 12px; }
}
