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

:root {
  --black: #06060a;
  --deep: #0e0e16;
  --card: #13131f;
  --card-hover: #1a1a2e;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-glow: rgba(139, 92, 246, 0.15);
  --violet-dim: rgba(139, 92, 246, 0.08);
  --rose: #f472b6;
  --rose-glow: rgba(244, 114, 182, 0.1);
  --gold: #fbbf24;
  --green: #22c55e;
  --red: #ef4444;
  --text: #e2e2ee;
  --muted: #8888a4;
  --white: #fafaff;
  --border: rgba(136, 136, 164, 0.1);
  --border-hover: rgba(139, 92, 246, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 100px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { color: var(--violet-light); text-decoration: none; }
a:hover { color: var(--violet); }

/* ==================== NAV ==================== */

.app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(6, 6, 10, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 1.5rem; }

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
  cursor: pointer;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--violet), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-search {
  position: relative;
}

.nav-search input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  color: var(--text);
  font-size: 0.85rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.nav-search input:focus { border-color: var(--violet); }

.nav-search::before {
  content: '\1F50D';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.5;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-avatar:hover { border-color: var(--violet); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== LAYOUT ==================== */

.app-layout {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 240px;
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.sidebar-link:hover { background: var(--card); color: var(--text); }

.sidebar-link.active {
  background: var(--violet-dim);
  color: var(--violet-light);
  font-weight: 600;
}

.sidebar-link .icon { font-size: 1.15rem; width: 24px; text-align: center; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.sidebar-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.5rem 1rem 0.25rem;
  opacity: 0.6;
}

.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 1.5rem;
  max-width: 680px;
}

.right-sidebar {
  width: 300px;
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

/* ==================== AUTH PAGES ==================== */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--violet);
}

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

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group { flex: 1; }

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  user-select: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.btn-outline {
  background: transparent;
  color: var(--violet-light);
  border: 1px solid var(--violet);
}

.btn-outline:hover:not(:disabled) {
  background: var(--violet-dim);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
}

.btn-rose {
  background: linear-gradient(135deg, var(--rose), #e11d48);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
}

.btn-rose:hover:not(:disabled) {
  box-shadow: 0 4px 30px rgba(244, 114, 182, 0.5);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-switch a { color: var(--violet-light); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ==================== POST CARD ==================== */

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(136, 136, 164, 0.18); }

.post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-user-info { flex: 1; min-width: 0; }

.post-display-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.92rem;
  cursor: pointer;
}

.post-display-name:hover { color: var(--violet-light); }

.post-username {
  color: var(--muted);
  font-size: 0.8rem;
}

.post-time {
  color: var(--muted);
  font-size: 0.75rem;
}

.post-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-image-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
  max-height: 500px;
}

.post-image {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.post-image-locked {
  filter: blur(30px) brightness(0.6);
  pointer-events: none;
}

.post-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 10, 0.5);
  backdrop-filter: blur(4px);
  gap: 0.75rem;
}

.post-lock-icon {
  font-size: 2rem;
}

.post-lock-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.post-lock-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.post-action-btn:hover {
  background: var(--card-hover);
  color: var(--text);
}

.post-action-btn.liked { color: var(--rose); }
.post-action-btn .icon { font-size: 1.05rem; }

/* ==================== CREATE POST ==================== */

.create-post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.create-post-top {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.create-post-input {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  resize: none;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}

.create-post-input:focus { border-color: var(--violet); }

.create-post-input::placeholder { color: var(--muted); }

.create-post-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.create-post-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.create-post-tool {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.create-post-tool:hover { border-color: var(--violet); color: var(--violet-light); }
.create-post-tool.active { border-color: var(--violet); color: var(--violet-light); background: var(--violet-dim); }

.premium-price-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.premium-price-input label {
  font-size: 0.8rem;
  color: var(--muted);
}

.premium-price-input input {
  width: 100px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.image-preview-wrap {
  position: relative;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: inline-block;
}

.image-preview-wrap img {
  max-height: 200px;
  border-radius: var(--radius-sm);
  display: block;
}

.image-preview-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 6, 10, 0.8);
  border: none;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== PROFILE PAGE ==================== */

.profile-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--violet-dim);
}

.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profile-display-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.profile-username {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.profile-bio {
  color: var(--text);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.profile-stat {
  text-align: center;
  cursor: pointer;
}

.profile-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* ==================== RIGHT SIDEBAR ==================== */

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.suggested-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
}

.suggested-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}

.suggested-avatar img { width: 100%; height: 100%; object-fit: cover; }

.suggested-info { flex: 1; min-width: 0; }

.suggested-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-name:hover { color: var(--violet-light); }

.suggested-handle {
  font-size: 0.75rem;
  color: var(--muted);
}

.suggested-follow-btn {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  border: 1px solid var(--violet);
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.suggested-follow-btn:hover {
  background: var(--violet);
  color: var(--white);
}

/* ==================== COMMENTS MODAL ==================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover { border-color: var(--violet); color: var(--text); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.comment-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body { flex: 1; }

.comment-author {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--white);
  cursor: pointer;
}

.comment-author:hover { color: var(--violet-light); }

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

.comment-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.comment-input-row {
  display: flex;
  gap: 0.5rem;
}

.comment-input-row input {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.comment-input-row input:focus { border-color: var(--violet); }

/* ==================== EMPTY STATES ==================== */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

/* ==================== SETTINGS PAGE ==================== */

.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.settings-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.settings-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.settings-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--white);
  overflow: hidden;
}

.settings-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.toggle-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.toggle-info p {
  font-size: 0.8rem;
  color: var(--muted);
}

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--deep);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.toggle-switch.active {
  background: var(--violet);
  border-color: var(--violet);
}

.toggle-switch::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.toggle-switch.active::after { transform: translateX(22px); }

/* ==================== LOADING ==================== */

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

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

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

/* ==================== PAGE HEADER ==================== */

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.page-header p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==================== TABS ==================== */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--violet-light); border-bottom-color: var(--violet); font-weight: 600; }

/* ==================== USER LIST (followers/following) ==================== */

.user-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.user-list-item:last-child { border-bottom: none; }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
  .right-sidebar { display: none; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; max-width: 100%; }

  .app-nav { padding: 0 1rem; }

  .nav-search { display: none; }

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 0.4rem;
  }

  .mobile-nav-item .icon { font-size: 1.3rem; }
  .mobile-nav-item.active { color: var(--violet-light); }

  .app-layout { padding-bottom: 56px; }

  .profile-stats { gap: 1.5rem; }
  .auth-card { padding: 2rem 1.5rem; }
}

/* ==================== UTILITIES ==================== */

.text-muted { color: var(--muted); }
.text-violet { color: var(--violet-light); }
.text-rose { color: var(--rose); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ==================== SEARCH RESULTS ==================== */

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 300px;
  overflow-y: auto;
  z-index: 101;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover { background: var(--card-hover); }
