/* ============================================================
   NEURONAUTICAL.COM — CSS STYLES
   MySpace-inspired social media with retro-futuristic design
   ============================================================ */

/* ---- Reset & Variables ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --accent: #ff00ff;
  --accent-secondary: #00ffff;
  --accent-tertiary: #ff6600;
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --border: rgba(255, 0, 255, 0.15);
  --glow: 0 0 20px rgba(255, 0, 255, 0.3);
  --glow-strong: 0 0 40px rgba(255, 0, 255, 0.5);
  --gradient: linear-gradient(135deg, #ff00ff, #00ffff);
  --gradient-2: linear-gradient(135deg, #6600ff, #ff0066);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Animated Background ---- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 70%);
}

#bg-canvas canvas {
  width: 100%;
  height: 100%;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  text-align: center;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  border-top-color: var(--accent-secondary);
  animation-duration: 0.8s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-top-color: var(--accent-tertiary);
  animation-duration: 0.6s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.loader-sub {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Navigation ---- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 14px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(255, 0, 255, 0.1);
}

.nav-auth {
  display: flex;
  gap: 8px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user.hidden, .nav-auth.hidden {
  display: none;
}

.nav-username {
  color: var(--accent-secondary);
  font-weight: 600;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: #ff4444;
  color: #ff4444;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s;
}

/* ---- Buttons ---- */
.btn {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 0, 255, 0.1);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

/* ---- Main Content ---- */
.main-content {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.section {
  display: none;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--gradient-2);
  opacity: 0.3;
}

.preview-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin: 20px auto 12px;
  position: relative;
  z-index: 1;
}

.preview-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 4px;
}

.preview-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.preview-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.preview-stats span {
  color: var(--text-muted);
  font-size: 13px;
}

.preview-stats strong {
  color: var(--text-primary);
}

/* ---- Features ---- */
.features {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 40px 0 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- CTA ---- */
.cta-section {
  text-align: center;
  padding: 60px 0 80px;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.search-bar {
  display: flex;
  gap: 0;
}

.search-bar input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  width: 250px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  cursor: pointer;
}

/* ---- Profiles Grid ---- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.profile-card-cover {
  height: 80px;
  background-size: cover;
  background-position: center;
}

.profile-card-body {
  padding: 16px;
  text-align: center;
  position: relative;
}

.profile-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  margin: -48px auto 12px;
  position: relative;
  z-index: 1;
}

.profile-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 4px;
}

.profile-card-username {
  color: var(--accent-secondary);
  font-size: 12px;
  margin-bottom: 8px;
}

.profile-card-about {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 12px;
}

.profile-card-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.profile-card-stats span {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-card-stats strong {
  color: var(--text-primary);
}

.online-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff00;
  margin-left: 8px;
  animation: blink 2s infinite;
}

.online-indicator.offline {
  background: #666;
  animation: none;
}

/* ---- Profile Page ---- */
.profile-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  position: relative;
}

.cover-controls {
  position: absolute;
  top: 12px;
  right: 12px;
}

.profile-main {
  padding: 0 24px 24px;
  position: relative;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: -60px;
  margin-bottom: 24px;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  background: var(--accent);
}

.online-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00ff00;
  border: 3px solid var(--bg-card);
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-family: var(--font-heading);
  font-size: 24px;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.profile-details {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.profile-details span {
  color: var(--text-muted);
  font-size: 13px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-box .stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.stat-box .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab.active, .tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content.hidden {
  display: none;
}

/* ---- Post Creator ---- */
.post-creator {
  margin-bottom: 24px;
}

.post-creator textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 8px;
}

.post-creator textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Posts ---- */
.post {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.post-meta h4 {
  font-size: 14px;
}

.post-meta span {
  color: var(--text-muted);
  font-size: 12px;
}

.post-content {
  margin-bottom: 12px;
  line-height: 1.5;
}

.post-actions {
  display: flex;
  gap: 16px;
}

.post-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.post-actions button:hover {
  color: var(--accent);
  background: rgba(255, 0, 255, 0.1);
}

/* ---- Media Grid ---- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.media-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.media-item img, .media-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-item audio {
  width: 100%;
  margin-top: 8px;
}

.media-caption {
  padding: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Friends Grid ---- */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.friend-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.friend-item:hover {
  border-color: var(--accent);
}

.friend-item img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.friend-item strong {
  display: block;
  font-size: 13px;
}

/* ---- Messages ---- */
.messages-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  height: calc(100vh - 200px);
}

.messages-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-y: auto;
}

.messages-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-item:hover {
  background: rgba(255, 0, 255, 0.1);
}

.contact-item.active {
  background: rgba(255, 0, 255, 0.15);
  border: 1px solid var(--accent);
}

.contact-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.contact-info h4 {
  font-size: 14px;
}

.contact-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 12px;
  display: flex;
}

.chat-message.sent {
  justify-content: flex-end;
}

.chat-message .bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.chat-message.received .bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.chat-message.sent .bubble {
  background: var(--accent);
  color: #fff;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Gallery ---- */
.gallery-filters {
  display: flex;
  gap: 8px;
}

.filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
}

.filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-card-meta {
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- Auth ---- */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
}

.auth-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-card > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Customizer Modal ---- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.customizer-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 24px;
}

.customizer-preview {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.preview-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 16px auto 0;
  display: block;
  border: 3px solid var(--accent);
}

.preview-cover-large {
  height: 150px;
  margin-top: 8px;
  background: var(--gradient);
}

.customizer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.customizer-group h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cover-options {
  display: flex;
  gap: 8px;
}

.cover-option {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
}

.cover-option.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}

.color-btn:hover,
.color-btn.active {
  transform: scale(1.2);
  border-color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ---- Audio Player ---- */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 50;
}

.player-info {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.player-title {
  font-size: 12px;
  color: var(--accent);
}

.player-artist {
  font-size: 13px;
  color: var(--text-secondary);
}

.player-controls {
  display: flex;
  gap: 8px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.player-btn:hover {
  background: rgba(255, 0, 255, 0.2);
}

.player-btn.playing {
  background: var(--accent);
}

.player-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 30%;
  background: var(--gradient);
  border-radius: 2px;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- Hidden utility ---- */
.hidden {
  display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .messages-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-details {
    justify-content: center;
  }

  .customizer-body {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  .audio-player {
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .player-progress {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .nav-auth {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}
