/* ============================================
   pfp.best — Dark Neon Theme
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --bg-input: #16162a;
  --neon-purple: #bf5af2;
  --neon-cyan: #00f5d4;
  --neon-pink: #ff006e;
  --neon-yellow: #fee440;
  --neon-blue: #4cc9f0;
  --gradient-main: linear-gradient(135deg, #bf5af2, #00f5d4);
  --gradient-hot: linear-gradient(135deg, #ff006e, #fee440);
  --gradient-cool: linear-gradient(135deg, #4cc9f0, #bf5af2);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border-color: #2a2a3e;
  --border-glow: rgba(191, 90, 242, 0.3);
  --shadow-neon: 0 0 24px rgba(191, 90, 242, 0.35), 0 0 48px rgba(0, 245, 212, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--neon-purple);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Background Effects
   ============================================ */
.bg-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(191, 90, 242, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 70% 70%, rgba(0, 245, 212, 0.09) 0%, transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(255, 0, 110, 0.06) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2%, 1%); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 0 12px rgba(191, 90, 242, 0.5));
}

.nav-logo span {
  -webkit-text-fill-color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-upload-btn {
  background: var(--gradient-main);
  color: #000 !important;
  font-weight: 700;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-upload-btn {
  box-shadow: 0 0 16px rgba(191, 90, 242, 0.4), 0 0 32px rgba(0, 245, 212, 0.15);
}
.nav-upload-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(191, 90, 242, 0.7), 0 0 48px rgba(0, 245, 212, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(191, 90, 242, 0.12);
  border: 1px solid rgba(191, 90, 242, 0.3);
  color: var(--neon-purple);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(191, 90, 242, 0.3), 0 0 24px rgba(191, 90, 242, 0.1); }
  50% { box-shadow: 0 0 28px rgba(191, 90, 242, 0.6), 0 0 56px rgba(191, 90, 242, 0.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(191, 90, 242, 0.6));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   Upload Zone
   ============================================ */
.upload-zone {
  max-width: 560px;
  margin: 0 auto 48px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-neon);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 0.03;
}

.upload-zone-content {
  position: relative;
  z-index: 1;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.upload-zone h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.upload-btn {
  display: inline-block;
  background: var(--gradient-main);
  color: #000;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 0 20px rgba(191, 90, 242, 0.5), 0 0 40px rgba(0, 245, 212, 0.2);
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 20px rgba(191,90,242,0.5), 0 0 40px rgba(0,245,212,0.2); }
  50% { box-shadow: 0 0 32px rgba(191,90,242,0.8), 0 0 60px rgba(0,245,212,0.35); }
}
.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(191, 90, 242, 0.9), 0 0 72px rgba(0, 245, 212, 0.4);
  animation: none;
}

.upload-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(191, 90, 242, 0.3);
}

.upload-preview .file-name {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#upload-input {
  display: none;
}

/* Upload Form (appears after image selected) */
.upload-form {
  display: none;
  max-width: 560px;
  margin: -24px auto 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.upload-form.active {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(191, 90, 242, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.tag-pill:hover,
.tag-pill.selected {
  background: rgba(191, 90, 242, 0.15);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

.submit-btn {
  width: 100%;
  background: var(--gradient-main);
  color: #000;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(191, 90, 242, 0.4);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 24px;
}

.section-header h2 {
  font-size: 1.5rem;
}

.section-header h2 .emoji {
  margin-right: 8px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-purple);
}

.section-link:hover {
  color: var(--neon-cyan);
}

/* ============================================
   Category Pills
   ============================================ */
.categories {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.categories h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.category-chip:hover {
  border-color: var(--neon-purple);
  background: rgba(191, 90, 242, 0.1);
  color: var(--neon-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(191, 90, 242, 0.15);
}

.category-chip .chip-icon {
  font-size: 1.1rem;
}

/* ============================================
   PFP Grid
   ============================================ */
.pfp-section {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.pfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 24px;
}

/* ============================================
   PFP Card
   ============================================ */
.pfp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.pfp-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

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

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

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

.pfp-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.pfp-card-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-main);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.pfp-card-info {
  padding: 14px;
}

.pfp-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pfp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 6px;
}

.pfp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.pfp-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}

.pfp-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rating-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neon-purple, #bf5af2);
}

.rating-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* PFP Rating Icons */
.pfp-rating {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.pfp-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: .3;
  transition: all .2s ease;
  position: relative;
}

.pfp-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #555;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: all .2s;
}

.pfp-icon.filled svg {
  stroke: #ffd60a;
  fill: rgba(255,214,10,.25);
}

.pfp-icon.filled {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(255,214,10,.4));
}

.pfp-icon.filled:nth-child(4) svg,
.pfp-icon.filled:nth-child(5) svg {
  stroke: #ff9500;
  fill: rgba(255,149,0,.25);
}

.pfp-icon.filled:nth-child(4),
.pfp-icon.filled:nth-child(5) {
  filter: drop-shadow(0 0 4px rgba(255,149,0,.5));
}

.pfp-icon:hover svg {
  stroke: #ffd60a;
  fill: rgba(255,214,10,.15);
}

.pfp-icon:hover {
  opacity: 1;
}

.pfp-card-votes {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vote-up {
  cursor: pointer;
  transition: color var(--transition);
}

.vote-up:hover { color: var(--neon-cyan); }

.vote-down {
  cursor: pointer;
  transition: color var(--transition);
}

.vote-down:hover { color: var(--neon-pink); }

/* ============================================
   PFP Detail Modal
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
}

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

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

.modal-close {
  background: var(--bg-card);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-pfp-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.modal-pfp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.rating-stars .star {
  width: 26px;
  height: 26px;
  cursor: pointer;
  opacity: .3;
  transition: all 0.2s ease;
  display: inline-block;
}

.rating-stars .star svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #555;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: all .2s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255,214,10,.6));
}

.rating-stars .star:hover svg,
.rating-stars .star.active svg {
  stroke: #ffd60a;
  fill: rgba(255,214,10,.3);
}

.rating-stars .star.active:nth-child(n+8) svg,
.rating-stars .star:hover:nth-child(n+8) svg {
  stroke: #ff6b00;
  fill: rgba(255,107,0,.3);
}

.rating-stars .star.active:nth-child(n+8),
.rating-stars .star:hover:nth-child(n+8) {
  filter: drop-shadow(0 0 6px rgba(255,107,0,.6));
}

.rating-avg {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.rating-avg strong {
  color: var(--neon-yellow);
  font-size: 1.1rem;
}

/* Vote Buttons */
.vote-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.vote-btn-up {
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: var(--neon-cyan);
}

.vote-btn-up:hover {
  background: rgba(0, 245, 212, 0.2);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

.vote-btn-down {
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.3);
  color: var(--neon-pink);
}

.vote-btn-down:hover {
  background: rgba(255, 0, 110, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.15);
}

/* Comments */
.comments-section {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.comments-section h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.comment-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.comment-input-wrap input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.comment-input-wrap input:focus {
  outline: none;
  border-color: var(--neon-purple);
}

.comment-input-wrap button {
  background: var(--neon-purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.comment-item {
  background: var(--bg-input);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.comment-item .comment-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.share-btn-x {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.share-btn-x:hover {
  background: #1a1a1a;
  border-color: #555;
}

.share-btn-discord {
  background: #5865F2;
  color: #fff;
}

.share-btn-discord:hover {
  background: #4752c4;
}

.share-btn-copy {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.share-btn-copy:hover {
  border-color: var(--neon-purple);
}

/* ============================================
   Leaderboard Tabs
   ============================================ */
.leaderboard-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-tab {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.leaderboard-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.leaderboard-tab.active {
  background: rgba(191, 90, 242, 0.15);
  color: var(--neon-purple);
  border-color: rgba(191, 90, 242, 0.3);
}

/* ============================================
   PFP of the Day
   ============================================ */
.pfp-of-day {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.pfp-of-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.pfp-of-day-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0.04;
}

.pfp-of-day-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 30px rgba(191, 90, 242, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pfp-of-day-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-of-day-info {
  position: relative;
  z-index: 1;
}

.pfp-of-day-label {
  display: inline-block;
  background: var(--gradient-hot);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.pfp-of-day-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pfp-of-day-info .rating-display {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-yellow);
  font-weight: 700;
  margin-bottom: 12px;
}

.pfp-of-day-info .top-comment {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

/* ============================================
   Affiliate Sidebar / Banners
   ============================================ */
.affiliate-banner {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
}

.affiliate-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.1);
}

.affiliate-card-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.affiliate-card-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.affiliate-cta {
  background: var(--gradient-cool);
  color: #000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.affiliate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(76, 201, 240, 0.3);
  color: #000;
}

/* ============================================
   Affiliate Grid
   ============================================ */
.affiliate-section {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.aff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}
.aff-card:hover {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,245,212,0.1);
  color: var(--text-primary);
}
.aff-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.aff-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aff-info strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aff-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aff-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}
.aff-featured {
  border-color: rgba(191,90,242,0.4);
  background: rgba(191,90,242,0.06);
}
.aff-featured:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 4px 20px rgba(191,90,242,0.2);
}
.aff-featured .aff-info strong {
  color: var(--neon-purple);
}
@media (max-width: 900px) {
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .affiliate-grid { grid-template-columns: 1fr; }
  .affiliate-section { padding: 0 16px; }
}

/* ============================================
   Empire Section
   ============================================ */
.empire-section {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.empire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.empire-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-decoration: none;
  text-align: center;
  color: var(--text-primary);
  transition: all var(--transition);
}
.empire-card:hover {
  border-color: var(--neon-purple);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(191,90,242,0.2);
  color: var(--text-primary);
}
.empire-icon {
  font-size: 1.8rem;
  margin-bottom: 2px;
}
.empire-card strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-purple);
}
.empire-card span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .empire-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .empire-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .empire-section { padding: 0 16px; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   SEO Page Header
   ============================================ */
.page-header {
  text-align: center;
  padding: 60px 24px 40px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   Filter Bar (leaderboard/category pages)
   ============================================ */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

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

/* ============================================
   Loading / Empty States
   ============================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 0.95rem;
  gap: 10px;
}

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

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

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  font-size: 1rem;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
  max-width: 360px;
}

.toast.success {
  border-color: rgba(0, 245, 212, 0.4);
}

.toast.error {
  border-color: rgba(255, 0, 110, 0.4);
}

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

/* ============================================
   Mobile Bottom Nav
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(18, 18, 26, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 10px;
  transition: all var(--transition);
  min-width: 56px;
  text-align: center;
}

.mobile-nav-item .nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--neon-purple);
}

.mobile-nav-upload {
  background: var(--gradient-main);
  color: #000 !important;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  /* Show bottom nav, hide top nav links */
  .mobile-bottom-nav {
    display: block;
  }

  /* Add padding so content doesn't hide behind bottom nav */
  body {
    padding-bottom: 72px;
  }

  .nav-links {
    display: none !important; /* always hidden on mobile — using bottom nav */
  }

  .mobile-menu-btn {
    display: none; /* no hamburger needed with bottom nav */
  }

  /* Compact hero */
  .hero {
    padding: 32px 16px 24px;
  }

  .hero-badge {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  /* Upload zone — compact and clean */
  .upload-zone {
    padding: 28px 20px;
    margin: 0 12px 24px;
    max-width: none;
  }

  .upload-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .upload-zone h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .upload-zone p {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .upload-form {
    max-width: none;
    margin: 0 12px 24px;
    padding: 20px 16px;
  }

  /* Category chips — horizontal scroll, no wrap */
  .category-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* PFP grid — 2 cols, tight */
  .pfp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
  }

  /* Simplified card on mobile — hide share row */
  .pfp-card-share {
    display: none;
  }

  .pfp-card-info {
    padding: 10px;
  }

  .pfp-card-title {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .pfp-card-meta {
    flex-direction: row;
    gap: 6px;
  }

  .pfp-card-votes {
    font-size: 0.78rem;
    gap: 6px;
  }

  /* PFP of the Day — stacked, centered */
  .pfp-of-day-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }

  .pfp-of-day-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  /* Leaderboard tabs — scrollable */
  .leaderboard-tabs {
    padding: 0 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .leaderboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .leaderboard-tab {
    padding: 9px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }

  /* Section headers */
  .section-header {
    padding: 0 12px;
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  /* Affiliate — stacked */
  .affiliate-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  .affiliate-cta {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Modal — bottom sheet on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-header {
    padding: 16px 20px;
  }

  /* Pull handle on modal */
  .modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 10px auto 0;
  }

  .modal-body {
    padding: 16px 20px;
  }

  /* Bigger tappable stars in modal */
  .rating-stars {
    gap: 2px;
    flex-wrap: wrap;
  }

  .rating-stars .star {
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  /* Vote buttons */
  .vote-buttons {
    gap: 8px;
  }

  .vote-btn {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* Share buttons */
  .share-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .share-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Comment input */
  .comment-input-wrap {
    flex-direction: column;
    gap: 8px;
  }

  .comment-input-wrap button {
    width: 100%;
    padding: 12px;
    min-height: 44px;
  }

  /* Forms */
  .filter-bar {
    padding: 0 12px;
  }

  .filter-select {
    width: 100%;
    min-height: 44px;
  }

  .page-header {
    padding: 32px 16px 24px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .tag-pills {
    gap: 6px;
  }

  .tag-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
    min-height: 38px;
  }

  .submit-btn {
    min-height: 52px;
    font-size: 1rem;
  }

  /* Footer — single col */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 32px 16px;
    margin-top: 32px;
  }

  /* Toast bottom position above bottom nav */
  .toast-container {
    bottom: 84px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .pfp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .pfp-card-info {
    padding: 8px;
  }

  .pfp-card-title {
    font-size: 0.78rem;
  }

  .rating-value {
    font-size: 0.8rem;
  }

  .pfp-card-votes {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   Chain Badges
   ============================================ */
.pfp-card-chain {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.chain-btc {
  background: rgba(247, 147, 26, 0.2);
  color: #f7931a;
  border: 1px solid rgba(247, 147, 26, 0.4);
}

.chain-eth {
  background: rgba(98, 126, 234, 0.2);
  color: #627eea;
  border: 1px solid rgba(98, 126, 234, 0.4);
}

.chain-sol {
  background: rgba(153, 69, 255, 0.2);
  color: #9945ff;
  border: 1px solid rgba(153, 69, 255, 0.4);
}

/* When rank badge and chain badge coexist */
.pfp-card-image .pfp-card-chain {
  right: auto;
  left: 10px;
  top: auto;
  bottom: 10px;
}

/* ============================================
   Card Share Buttons
   ============================================ */
.pfp-card-share {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.pfp-card-share button {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.pfp-card-share button:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--neon-purple);
}

/* ============================================
   Vote Button Improvements
   ============================================ */
.vote-up, .vote-down {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.vote-up {
  color: var(--text-muted);
}

.vote-up:hover {
  color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.1);
}

.vote-down {
  color: var(--text-muted);
}

.vote-down:hover {
  color: var(--neon-pink);
  background: rgba(255, 0, 110, 0.1);
}

/* ============================================
   Canvas (share card generation)
   ============================================ */
#share-canvas {
  display: none;
}

/* ============================================
   How It Works Infographic
   ============================================ */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.hiw-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 28px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(191,90,242,0.4));
}
.hiw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hiw-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  width: 200px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hiw-step:hover {
  border-color: var(--neon-purple);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(191,90,242,0.25);
}
.hiw-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(191,90,242,0.5);
}
.hiw-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hiw-step h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.hiw-step p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hiw-arrow {
  font-size: 1.6rem;
  color: var(--neon-purple);
  opacity: 0.6;
  flex-shrink: 0;
  font-weight: 800;
}
@media (max-width: 768px) {
  .how-it-works { padding: 0 16px; overflow: hidden; }
  .hiw-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 16px 4px 20px;
    gap: 12px;
  }
  .hiw-steps::-webkit-scrollbar { display: none; }
  .hiw-step { width: 160px; min-width: 160px; flex-shrink: 0; padding: 20px 14px 16px; }
  .hiw-arrow { display: none; }
}

/* ============================================
   AI Rater
   ============================================ */
.ai-rate-section { margin-top: 16px; text-align: center; }
.ai-rate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px; border: 1px solid rgba(191,90,242,0.5);
  border-radius: 999px; background: rgba(191,90,242,0.08);
  color: var(--neon-purple); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.ai-rate-btn:hover { background: rgba(191,90,242,0.18); border-color: var(--neon-purple); box-shadow: 0 0 14px rgba(191,90,242,0.3); }
.ai-rate-loading { padding: 16px 0; }
.ai-result { background: rgba(191,90,242,0.06); border: 1px solid rgba(191,90,242,0.25); border-radius: 12px; padding: 16px; margin-top: 4px; text-align: left; }
.ai-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; color: var(--text-muted); background: var(--bg-secondary); padding: 3px 10px; border-radius: 100px; }
.ai-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.ai-roast { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; }
.ai-verdict { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }
.ai-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; border: 1px solid rgba(0,0,0,0.3);
  border-radius: 8px; background: #000; color: #fff;
  font-weight: 700; font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.ai-share-btn:hover { background: #111; box-shadow: 0 0 10px rgba(0,0,0,0.3); }

/* ============================================
   Chain Selector (Upload Form)
   ============================================ */
.form-label-big {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.required-star { color: var(--neon-pink); font-size: 0.75rem; font-weight: 600; }
.field-error { color: var(--neon-pink); font-size: 0.78rem; margin-top: 8px; display: none; }
.pfp-title-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); padding: 10px 14px; border-radius: 10px;
  font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s;
}
.pfp-title-input:focus { outline: none; border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(191,90,242,0.1); }
.pfp-title-input::placeholder { color: var(--text-muted); }

.chain-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.chain-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.chain-btn:hover {
  border-color: var(--neon-purple);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.chain-btn.selected {
  border-color: var(--neon-purple);
  background: rgba(191,90,242,0.12);
  color: var(--neon-purple);
  box-shadow: 0 0 16px rgba(191,90,242,0.3);
}
.chain-icon { font-size: 1.4rem; line-height: 1; }
.chain-name { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 600px) {
  .chain-selector { grid-template-columns: repeat(2, 1fr); }
  .chain-btn { padding: 16px 8px; }
  .chain-icon { font-size: 1.8rem; }
  .chain-name { font-size: 0.8rem; }
}

/* ============================================
   Referral Section
   ============================================ */
.referral-section {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.referral-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.referral-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
}
.referral-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.referral-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.referral-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.referral-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  overflow: hidden;
}
#referral-url {
  flex: 1;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}
.referral-link-box button {
  background: var(--gradient-main);
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  transition: opacity 0.2s;
}
.referral-link-box button:hover { opacity: 0.85; }
.referral-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background 0.2s, border-color 0.2s;
}
.referral-share-btn:hover { background: #111; border-color: #555; }
.referral-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}
.referral-stats span { display: flex; align-items: center; gap: 4px; }
@media (max-width: 768px) {
  .referral-section { padding: 0 16px; }
  .referral-card { padding: 20px 16px; }
  .referral-stats { gap: 12px; font-size: 0.82rem; }
}
