/* ══════════════════════════════════════════════════════════════
   Homepage — Game / Cyberpunk UI
   Reusable design tokens + components for all pages
   ══════════════════════════════════════════════════════════════ */

:root {
  --hp-bg-0: #050511;
  --hp-bg-1: #0a0a1f;
  --hp-bg-2: #11132e;
  --hp-neon-purple: #b47bff;
  --hp-neon-cyan: #00e5ff;
  --hp-neon-pink: #ff3ec9;
  --hp-neon-amber: #ffb547;
  --hp-neon-green: #4ade80;
  --hp-text: #e8eaff;
  --hp-text-dim: #9ca3c2;
  --hp-card: rgba(18, 20, 44, 0.55);
  --hp-card-border: rgba(180, 123, 255, 0.18);
  --hp-card-glow: 0 0 32px rgba(139, 92, 246, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   Generic page background (used by ALL pages)
   ══════════════════════════════════════════════════════════════ */
.hp-page {
  position: relative;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(0, 229, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 60%, rgba(255, 62, 201, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, var(--hp-bg-0) 0%, var(--hp-bg-1) 100%);
  color: var(--hp-text);
  overflow-x: hidden;
}

/* Legacy alias: keep .home-page, .hp-page working */
.home-page, .hp-page { /* fallback for first page */
  position: relative; min-height: calc(100vh - 64px);
  background: linear-gradient(180deg, var(--hp-bg-0) 0%, var(--hp-bg-1) 100%);
  color: var(--hp-text); overflow-x: hidden;
}

/* ── Star Field (CSS-only twinkling background, OPT-IN) ─────── */
.hp-stars,
.home-page::before,
.hp-page::before,
.home-page::after,
.hp-page::after {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat;
}
.home-page::before,
.hp-page::before {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent 50%),
    radial-gradient(1px 1px at 80% 10%, #fff, transparent 50%),
    radial-gradient(1.5px 1.5px at 35% 80%, #c4b5fd, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 50%, #67e8f9, transparent 50%),
    radial-gradient(1px 1px at 5% 60%, #f9a8d4, transparent 50%),
    radial-gradient(1px 1px at 45% 15%, #fff, transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 90%, #fff, transparent 50%),
    radial-gradient(1px 1px at 15% 90%, #fff, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 50%, #fff, transparent 50%);
  background-size: 350px 350px;
  animation: hp-stars-drift 90s linear infinite;
  opacity: 0.7;
}
.home-page::after,
.hp-page::after {
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent 50%),
    radial-gradient(1.5px 1.5px at 82% 12%, #fff, transparent 50%),
    radial-gradient(1px 1px at 65% 88%, #c4b5fd, transparent 50%),
    radial-gradient(1px 1px at 92% 65%, #67e8f9, transparent 50%),
    radial-gradient(1.5px 1.5px at 25% 55%, #fff, transparent 50%);
  background-size: 250px 250px;
  animation: hp-stars-drift 140s linear infinite reverse;
  opacity: 0.55;
}
@keyframes hp-stars-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-350px, 250px); }
}

/* Opt-in star field for any hp-page */
.hp-stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent 50%),
    radial-gradient(1px 1px at 80% 10%, #fff, transparent 50%),
    radial-gradient(1.5px 1.5px at 35% 80%, #c4b5fd, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 50%, #67e8f9, transparent 50%),
    radial-gradient(1px 1px at 5% 60%, #f9a8d4, transparent 50%);
  background-size: 350px 350px;
  animation: hp-stars-drift 90s linear infinite;
  opacity: 0.5;
}

/* ── Grid overlay ────────────────────────────────────────────── */
.hp-grid-bg,
.home-grid-bg, .hp-grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
}

/* ── Container ───────────────────────────────────────────────── */
.hp-container,
.home-container, .hp-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION (reusable)
   ══════════════════════════════════════════════════════════════ */
.hp-hero,
.home-hero, .hp-hero {
  position: relative;
  text-align: center;
  padding: 3rem 0 4rem;
}

.hp-hero-badge,
.home-hero-badge, .hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(180, 123, 255, 0.1);
  border: 1px solid rgba(180, 123, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hp-neon-purple);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: hp-badge-glow 3s ease-in-out infinite;
}
.home-hero-badge::before,
.hp-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--hp-neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--hp-neon-purple);
  animation: hp-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes hp-badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(180, 123, 255, 0.2); }
  50% { box-shadow: 0 0 30px rgba(180, 123, 255, 0.4); }
}
@keyframes hp-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hp-hero-title,
.home-hero-title, .hp-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.hp-hero-title .gradient-text,
.home-hero-title, .hp-hero-title .gradient-text {
  background: linear-gradient(135deg, #b47bff 0%, #00e5ff 50%, #ff3ec9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: hp-gradient-shift 6s ease-in-out infinite;
}
@keyframes hp-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hp-hero-sub,
.home-hero-sub, .hp-hero-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--hp-text-dim);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hp-hero-cta,
.home-hero-cta, .hp-hero-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-btn, .hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.home-btn-primary, .hp-btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.home-btn-primary::before,
.hp-btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.home-btn-primary:hover,
.hp-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}
.home-btn-primary:hover::before,
.hp-btn-primary:hover::before {
  transform: translateX(100%);
}
.home-btn-ghost, .hp-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--hp-text);
  border: 1px solid rgba(180, 123, 255, 0.3);
  backdrop-filter: blur(8px);
}
.home-btn-ghost:hover,
.hp-btn-ghost:hover {
  background: rgba(180, 123, 255, 0.08);
  border-color: rgba(180, 123, 255, 0.5);
  transform: translateY(-2px);
  color: var(--hp-text);
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */
.home-stats, .hp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0 4rem;
}
.home-stat, .hp-stat {
  position: relative;
  background: var(--hp-card);
  border: 1px solid var(--hp-card-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
  overflow: hidden;
}
.home-stat::before,
.hp-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hp-neon-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.home-stat:hover,
.hp-stat:hover {
  border-color: rgba(180, 123, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--hp-card-glow);
}
.home-stat:hover::before,
.hp-stat:hover::before { opacity: 1; }
.home-stat-icon, .hp-stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 8px currentColor);
}
.home-stat-value, .hp-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-stat-label, .hp-stat-label {
  font-size: 0.8125rem;
  color: var(--hp-text-dim);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   SECTION TITLE
   ══════════════════════════════════════════════════════════════ */
.home-section, .hp-section {
  margin-bottom: 4rem;
}
.home-section-header, .hp-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.home-section-title, .hp-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.home-section-title-emoji, .hp-section-title-emoji {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px currentColor);
}
.home-section-line, .hp-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(180, 123, 255, 0.4), transparent);
  position: relative;
}
.home-section-line::after,
.hp-section-line::after {
  content: '';
  position: absolute;
  top: -1px; right: 0;
  width: 8px; height: 3px;
  background: var(--hp-neon-cyan);
  box-shadow: 0 0 8px var(--hp-neon-cyan);
  animation: hp-line-slide 3s linear infinite;
}
@keyframes hp-line-slide {
  0% { right: 100%; }
  100% { right: 0%; }
}

/* ══════════════════════════════════════════════════════════════
   CHANNEL GRID (the main game-like cards)
   ══════════════════════════════════════════════════════════════ */
.home-grid, .hp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Bento variations for visual rhythm */
.home-card, .hp-card {
  position: relative;
  background: var(--hp-card);
  border: 1px solid var(--hp-card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.4s;
}
.home-card::before,
.hp-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent, rgba(180, 123, 255, 0.2)) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.home-card::after,
.hp-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--hp-neon-purple)), transparent);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.home-card:hover,
.hp-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--accent, rgba(180, 123, 255, 0.4));
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.5),
    0 0 32px -4px var(--accent, rgba(180, 123, 255, 0.4));
}
.home-card:hover::before,
.hp-card:hover::before { opacity: 1; }
.home-card:hover::after,
.hp-card:hover::after { opacity: 1; }

/* Card icon - rotating ring on hover */
.home-card-icon, .hp-card-icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent-from, #8b5cf6) 0%, var(--accent-to, #6366f1) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px var(--accent, rgba(139, 92, 246, 0.4));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-card-icon::after,
.hp-card-icon::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 1.25rem;
  background: conic-gradient(from 0deg, transparent, var(--accent, rgba(180, 123, 255, 0.6)), transparent);
  z-index: -1;
  opacity: 0;
  animation: hp-icon-spin 4s linear infinite;
  transition: opacity 0.3s;
}
.home-card:hover .home-card-icon,
.hp-card:hover .hp-card-icon { transform: rotate(-8deg) scale(1.1); }
.home-card:hover .home-card-icon::after,
.hp-card:hover .hp-card-icon::after { opacity: 1; }
@keyframes hp-icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.home-card-title, .hp-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}
.home-card-desc, .hp-card-desc {
  font-size: 0.875rem;
  color: var(--hp-text-dim);
  line-height: 1.5;
  margin: 0;
}
.home-card-tag, .hp-card-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(180, 123, 255, 0.1);
  border: 1px solid rgba(180, 123, 255, 0.2);
  color: var(--hp-neon-purple);
  text-transform: uppercase;
}

/* Color themes per channel */
.home-card, .hp-card.theme-purple { --accent: #b47bff; --accent-from: #8b5cf6; --accent-to: #6d28d9; }
.home-card, .hp-card.theme-cyan   { --accent: #00e5ff; --accent-from: #06b6d4; --accent-to: #0e7490; }
.home-card, .hp-card.theme-green  { --accent: #4ade80; --accent-from: #10b981; --accent-to: #047857; }
.home-card, .hp-card.theme-amber  { --accent: #ffb547; --accent-from: #f59e0b; --accent-to: #d97706; }
.home-card, .hp-card.theme-pink   { --accent: #ff3ec9; --accent-from: #ec4899; --accent-to: #be185d; }
.home-card, .hp-card.theme-red    { --accent: #ff5b5b; --accent-from: #ef4444; --accent-to: #b91c1c; }
.home-card, .hp-card.theme-teal   { --accent: #2dd4bf; --accent-from: #14b8a6; --accent-to: #0f766e; }

/* ── Big "feature" card spanning 2 columns ─────────────────── */
.home-card.hp-feature,
.hp-card.hp-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}
.home-card.hp-feature .home-card-icon,
.hp-card.hp-feature .hp-card-icon {
  width: 96px; height: 96px;
  font-size: 2.5rem;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .home-card.hp-feature, .hp-card.hp-feature { grid-column: span 1; grid-template-columns: 1fr; }
}

/* ── Mini stat inside card ──────────────────────────────────── */
.home-card-stat, .hp-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--accent, var(--hp-neon-purple));
  font-weight: 600;
}
.home-card-stat-dot, .hp-card-stat-dot {
  width: 6px; height: 6px;
  background: var(--accent, var(--hp-neon-purple));
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent, var(--hp-neon-purple));
  animation: hp-pulse-dot 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   PET STRIP (special CTA bar)
   ══════════════════════════════════════════════════════════════ */
.home-pet-strip, .hp-pet-strip {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 62, 201, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(0, 229, 255, 0.1) 100%);
  border: 1px solid rgba(180, 123, 255, 0.25);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  flex-wrap: wrap;
}
.home-pet-strip::before,
.hp-pet-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: hp-shine 4s ease-in-out infinite;
}
@keyframes hp-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.home-pet-emoji, .hp-pet-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 12px rgba(180, 123, 255, 0.6));
  animation: hp-pet-bounce 2.5s ease-in-out infinite;
}
@keyframes hp-pet-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-4deg); }
  75% { transform: translateY(-6px) rotate(4deg); }
}
.home-pet-text, .hp-pet-text { flex: 1; min-width: 200px; }
.home-pet-title, .hp-pet-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; }
.home-pet-desc, .hp-pet-desc { font-size: 0.875rem; color: var(--hp-text-dim); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   COUNT-UP number animation
   ══════════════════════════════════════════════════════════════ */
.home-stat-value, .hp-stat-value.counting {
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════════
   FADE-IN entry animation
   ══════════════════════════════════════════════════════════════ */
.home-card, .hp-card,
.home-stat, .hp-stat,
.home-pet-strip, .hp-pet-strip,
.home-section-header, .hp-section-header {
  opacity: 0;
  transform: translateY(20px);
  animation: hp-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.home-stat:nth-child(1),
.hp-stat:nth-child(1)  { animation-delay: 0.05s; }
.home-stat:nth-child(2),
.hp-stat:nth-child(2)  { animation-delay: 0.15s; }
.home-stat:nth-child(3),
.hp-stat:nth-child(3)  { animation-delay: 0.25s; }
.home-stat:nth-child(4),
.hp-stat:nth-child(4)  { animation-delay: 0.35s; }
.home-section:nth-of-type(1) .home-card:nth-child(1),
.hp-section:nth-of-type(1) .hp-card:nth-child(1) { animation-delay: 0.1s; }
.home-section:nth-of-type(1) .home-card:nth-child(2),
.hp-section:nth-of-type(1) .hp-card:nth-child(2) { animation-delay: 0.2s; }
.home-section:nth-of-type(1) .home-card:nth-child(3),
.hp-section:nth-of-type(1) .hp-card:nth-child(3) { animation-delay: 0.3s; }
.home-section:nth-of-type(1) .home-card:nth-child(4),
.hp-section:nth-of-type(1) .hp-card:nth-child(4) { animation-delay: 0.4s; }
.home-section:nth-of-type(2) .home-card:nth-child(1),
.hp-section:nth-of-type(2) .hp-card:nth-child(1) { animation-delay: 0.15s; }
.home-section:nth-of-type(2) .home-card:nth-child(2),
.hp-section:nth-of-type(2) .hp-card:nth-child(2) { animation-delay: 0.25s; }
.home-section:nth-of-type(3) .home-card:nth-child(1),
.hp-section:nth-of-type(3) .hp-card:nth-child(1) { animation-delay: 0.2s; }
.home-section:nth-of-type(3) .home-card:nth-child(2),
.hp-section:nth-of-type(3) .hp-card:nth-child(2) { animation-delay: 0.3s; }
.home-section:nth-of-type(3) .home-card:nth-child(3),
.hp-section:nth-of-type(3) .hp-card:nth-child(3) { animation-delay: 0.4s; }
.home-pet-strip, .hp-pet-strip { animation-delay: 0.3s; }
.home-section-header, .hp-section-header { animation-delay: 0.05s; }

@keyframes hp-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   FLOATING SHAPES
   ══════════════════════════════════════════════════════════════ */
.home-floating-shape, .hp-floating-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
}
.home-floating-shape.shape-1, .hp-floating-shape.shape-1 {
  width: 200px; height: 200px;
  background: var(--hp-neon-purple);
  top: 5%; left: -5%;
  animation: hp-float 18s ease-in-out infinite;
}
.home-floating-shape.shape-2, .hp-floating-shape.shape-2 {
  width: 160px; height: 160px;
  background: var(--hp-neon-cyan);
  top: 30%; right: -3%;
  animation: hp-float 22s ease-in-out infinite reverse;
}
.home-floating-shape.shape-3, .hp-floating-shape.shape-3 {
  width: 180px; height: 180px;
  background: var(--hp-neon-pink);
  bottom: 10%; left: 10%;
  animation: hp-float 25s ease-in-out infinite;
}
@keyframes hp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .home-container, .hp-container { padding: 2rem 1rem 3rem; }
  .home-hero, .hp-hero { padding: 1.5rem 0 2.5rem; }
  .home-hero-title, .hp-hero-title { font-size: 2.25rem; }
  .home-stats, .hp-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .home-stat, .hp-stat { padding: 1rem; }
  .home-stat-value, .hp-stat-value { font-size: 1.5rem; }
  .home-pet-strip, .hp-pet-strip { padding: 1.25rem; }
  .home-pet-emoji, .hp-pet-emoji { font-size: 2.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home-page::before, .hp-page::before,
  .home-page::after, .hp-page::after,
  .home-floating-shape, .hp-floating-shape,
  .home-card-icon::after, .hp-card-icon::after,
  .home-card-stat-dot, .hp-card-stat-dot,
  .home-hero-badge::before, .hp-hero-badge::before,
  .home-section-line::after, .hp-section-line::after,
  .home-pet-emoji, .hp-pet-emoji,
  .home-pet-strip::before, .hp-pet-strip::before,
  .home-card, .hp-card, .home-stat, .hp-stat, .home-pet-strip, .hp-pet-strip, .home-section-header, .hp-section-header {
    animation: none !important;
  }
  .home-card, .hp-card, .home-stat, .hp-stat, .home-pet-strip, .hp-pet-strip, .home-section-header, .hp-section-header {
    opacity: 1; transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   GENERIC COMPONENTS — used by all pages
   ══════════════════════════════════════════════════════════════ */

/* ── Page max-width container (non-home pages) ─────────────── */
.hp-page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Compact page header (non-hero pages) ─────────────────── */
.hp-page-header {
  position: relative;
  background: linear-gradient(135deg, rgba(180, 123, 255, 0.08) 0%, rgba(0, 229, 255, 0.05) 100%);
  border: 1px solid var(--hp-card-border);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hp-page-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hp-neon-purple), var(--hp-neon-cyan), transparent);
  opacity: 0.5;
}
.hp-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hp-page-sub {
  color: var(--hp-text-dim);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.hp-page-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }

/* ── Panel / card surface (for content blocks) ────────────── */
.hp-panel {
  position: relative;
  background: var(--hp-card);
  border: 1px solid var(--hp-card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hp-panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--hp-text);
}

/* ── Buttons (all variants) ───────────────────────────────── */
.hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}
.hp-btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.hp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
}
.hp-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--hp-text);
  border: 1px solid rgba(180, 123, 255, 0.25);
}
.hp-btn-secondary:hover {
  background: rgba(180, 123, 255, 0.08);
  border-color: rgba(180, 123, 255, 0.45);
  color: var(--hp-text);
}
.hp-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.hp-btn-success:hover { transform: translateY(-1px); color: #fff; }
.hp-btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.hp-btn-warning:hover { transform: translateY(-1px); color: #fff; }
.hp-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.hp-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
}
.hp-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.hp-btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.hp-btn:disabled { cursor: not-allowed; opacity: 0.5; transform: none !important; }

/* ── Form inputs ──────────────────────────────────────────── */
.hp-input,
.hp-textarea,
.hp-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(10, 12, 30, 0.6);
  border: 1px solid rgba(180, 123, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--hp-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}
.hp-input:focus,
.hp-textarea:focus,
.hp-select:focus {
  border-color: var(--hp-neon-purple);
  background: rgba(10, 12, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.hp-input::placeholder,
.hp-textarea::placeholder { color: rgba(156, 163, 194, 0.5); }
.hp-textarea { resize: vertical; min-height: 100px; }
.hp-select { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b47bff' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.25rem; }
.hp-select option { background: #0a0a1f; color: var(--hp-text); }
.hp-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-text-dim);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}
.hp-label .required { color: #ff5b5b; margin-left: 0.125rem; }

/* ── Table ────────────────────────────────────────────────── */
.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.hp-table thead {
  background: linear-gradient(135deg, rgba(180, 123, 255, 0.1) 0%, rgba(0, 229, 255, 0.05) 100%);
}
.hp-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hp-neon-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(180, 123, 255, 0.2);
}
.hp-table td {
  padding: 0.875rem 1rem;
  color: var(--hp-text);
  border-bottom: 1px solid rgba(180, 123, 255, 0.06);
}
.hp-table tbody tr {
  transition: background 0.2s;
}
.hp-table tbody tr:hover {
  background: rgba(180, 123, 255, 0.04);
}

/* ── Badge / Tag ──────────────────────────────────────────── */
.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.hp-badge-primary { background: rgba(139, 92, 246, 0.15); color: var(--hp-neon-purple); border-color: rgba(139, 92, 246, 0.3); }
.hp-badge-cyan    { background: rgba(0, 229, 255, 0.1); color: var(--hp-neon-cyan); border-color: rgba(0, 229, 255, 0.3); }
.hp-badge-pink    { background: rgba(255, 62, 201, 0.1); color: var(--hp-neon-pink); border-color: rgba(255, 62, 201, 0.3); }
.hp-badge-amber   { background: rgba(255, 181, 71, 0.1); color: var(--hp-neon-amber); border-color: rgba(255, 181, 71, 0.3); }
.hp-badge-green   { background: rgba(74, 222, 128, 0.1); color: var(--hp-neon-green); border-color: rgba(74, 222, 128, 0.3); }
.hp-badge-red     { background: rgba(239, 68, 68, 0.1); color: #ff5b5b; border-color: rgba(239, 68, 68, 0.3); }
.hp-badge-gray    { background: rgba(156, 163, 194, 0.1); color: var(--hp-text-dim); border-color: rgba(156, 163, 194, 0.2); }

/* ── Empty state ─────────────────────────────────────────── */
.hp-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--hp-card);
  border: 1px dashed rgba(180, 123, 255, 0.2);
  border-radius: 1rem;
}
.hp-empty-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(180, 123, 255, 0.4));
}
.hp-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-text);
  margin: 0 0 0.5rem;
}
.hp-empty-desc {
  color: var(--hp-text-dim);
  font-size: 0.875rem;
  margin: 0;
}

/* ── Alert ───────────────────────────────────────────────── */
.hp-alert {
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.hp-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.hp-alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.hp-alert-info {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
  color: #67e8f9;
}

/* ── Tag chip (filter) ──────────────────────────────────── */
.hp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 123, 255, 0.2);
  color: var(--hp-text-dim);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.hp-chip:hover { background: rgba(180, 123, 255, 0.08); color: var(--hp-text); }
.hp-chip.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

/* ── Modal ───────────────────────────────────────────────── */
.hp-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hp-modal-overlay.show { display: flex; }
.hp-modal {
  background: linear-gradient(160deg, #161836 0%, #0f0e2a 100%);
  border: 1px solid rgba(180, 123, 255, 0.3);
  border-radius: 1.25rem;
  padding: 1.75rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
  animation: hp-modal-in 0.25s ease-out;
}
@keyframes hp-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.hp-modal-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--hp-text); }
.hp-modal-close {
  background: none; border: none; color: var(--hp-text-dim);
  cursor: pointer; padding: 0.25rem; border-radius: 0.375rem;
  transition: all 0.2s;
}
.hp-modal-close:hover { background: rgba(255, 255, 255, 0.05); color: var(--hp-text); }

/* ── Code / inline code ─────────────────────────────────── */
.hp-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(180, 123, 255, 0.15);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.85em;
  color: var(--hp-neon-cyan);
}

/* ── Link ───────────────────────────────────────────────── */
.hp-link {
  color: var(--hp-neon-cyan);
  text-decoration: none;
  transition: color 0.2s;
}
.hp-link:hover { color: var(--hp-neon-purple); }

/* ── Section spacing helper ─────────────────────────────── */
.hp-section { margin-bottom: 2.5rem; }
.hp-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(180, 123, 255, 0.1);
}
.hp-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--hp-text);
}

/* ── Pill (horizontal filter row) ───────────────────────── */
.hp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── Card grid (for list pages) ─────────────────────────── */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.hp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) {
  .hp-grid-2 { grid-template-columns: 1fr; }
}

/* ── Spinner ────────────────────────────────────────────── */
.hp-spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid rgba(180, 123, 255, 0.2);
  border-top-color: var(--hp-neon-purple);
  border-radius: 50%;
  animation: hp-spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

/* ── Tab bar (segmented control) ────────────────────────── */
.hp-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 123, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.25rem;
  gap: 0.25rem;
}
.hp-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-text-dim);
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.hp-tab:hover { color: var(--hp-text); }
.hp-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* ── Image / avatar (with glow) ─────────────────────────── */
.hp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(180, 123, 255, 0.3);
}

/* ── Override Tailwind utility colors that don't fit dark theme ── */
body {
  background: var(--hp-bg-0) !important;
  color: var(--hp-text);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 60%, rgba(255, 62, 201, 0.05) 0%, transparent 65%);
  background-attachment: fixed;
  min-height: 100vh;
}
.hp-page .text-gray-900, .hp-page .text-gray-800, .hp-page .text-gray-700 { color: var(--hp-text) !important; }
.hp-page .text-gray-600, .hp-page .text-gray-500 { color: var(--hp-text-dim) !important; }
.hp-page .bg-white { background: var(--hp-card) !important; color: var(--hp-text); }
.hp-page .bg-gray-50, .hp-page .bg-gray-100 { background: rgba(180, 123, 255, 0.04) !important; }
.hp-page .border-gray-200, .hp-page .border-gray-300 { border-color: rgba(180, 123, 255, 0.15) !important; }
.hp-page .divide-gray-100 > * + * { border-color: rgba(180, 123, 255, 0.06) !important; }

/* ── Global Navbar (dark theme) ─────────────────────────────── */
.hp-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 31, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(180, 123, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  color: var(--hp-text);
}
.hp-navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #b47bff 0%, #00e5ff 50%, #ff3ec9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: hp-gradient-shift 6s ease-in-out infinite;
  text-decoration: none;
}
.hp-navbar a { color: inherit; text-decoration: none; }
.hp-navbar .nav-dropdown-btn {
  color: var(--hp-text-dim) !important;
}
.hp-navbar .nav-dropdown-btn:hover,
.hp-navbar .nav-dropdown:hover .nav-dropdown-btn {
  color: var(--hp-text) !important;
}
.hp-navbar .nav-menu-card {
  background: rgba(16, 18, 42, 0.96) !important;
  border: 1px solid rgba(180, 123, 255, 0.2);
  box-shadow: 0 14px 48px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hp-navbar .nav-menu-item {
  color: var(--hp-text) !important;
}
.hp-navbar .nav-menu-item:hover {
  background-color: rgba(180, 123, 255, 0.08) !important;
}
.hp-navbar .nav-menu-item .font-medium { color: var(--hp-text) !important; }
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-indigo-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-emerald-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-sky-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-violet-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-amber-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-rose-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-red-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-teal-50 svg,
.hp-navbar .nav-menu-item:hover .nav-icon-wrap.bg-pink-50 svg { color: #fff; }

/* Navbar user info / cta / ghost */
.hp-navbar-user {
  color: var(--hp-text-dim);
  font-size: 0.875rem;
  white-space: nowrap;
}
.hp-navbar-logout {
  background: transparent;
  border: 0;
  color: var(--hp-text-dim);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.hp-navbar-logout:hover { color: #fca5a5; }
.hp-navbar-ghost {
  color: var(--hp-text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hp-navbar-ghost:hover { background: rgba(180, 123, 255, 0.08); color: var(--hp-text); }
.hp-navbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ── Global Footer (dark theme) ─────────────────────────────── */
.hp-footer {
  background: rgba(10, 10, 31, 0.6);
  border-top: 1px solid rgba(180, 123, 255, 0.18);
  margin-top: auto;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hp-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 123, 255, 0.5), rgba(0, 229, 255, 0.4), transparent);
  opacity: 0.6;
}
.hp-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--hp-text-dim);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Navbar mobile menu + burger ────────────────────────────── */
.hp-navbar-burger {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  color: var(--hp-text);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.hp-navbar-burger:hover { background: rgba(180, 123, 255, 0.08); }
.hp-mobile-menu {
  background: rgba(10, 10, 31, 0.95);
  border-top: 1px solid rgba(180, 123, 255, 0.12);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.hp-mobile-section {
  padding: 0.75rem 0.75rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-neon-purple);
  opacity: 0.85;
}
.hp-mobile-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--hp-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hp-mobile-item:hover {
  background: rgba(180, 123, 255, 0.08);
  color: var(--hp-text);
}
.hp-mobile-divider {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(180, 123, 255, 0.12);
}
.hp-mobile-logout {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--hp-text-dim);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hp-mobile-logout:hover { background: rgba(252, 165, 165, 0.08); color: #fca5a5; }


