/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0f0ff;
  --text-muted: rgba(240,240,255,0.5);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #10b981;
  --grad: linear-gradient(135deg, #8b5cf6, #ec4899);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 99px; }

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.logo-icon svg { width: 20px; height: 20px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #374151;
  box-shadow: 0 0 0 3px rgba(55,65,81,0.3);
  transition: all 0.3s;
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.3), 0 0 8px rgba(16,185,129,0.6);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.1), 0 0 12px rgba(16,185,129,0.4); }
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 0;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.orb1 { width: 500px; height: 500px; background: #8b5cf6; top: -100px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: #ec4899; bottom: 100px; right: -100px; animation: float2 10s ease-in-out infinite; }
.orb3 { width: 300px; height: 300px; background: #3b82f6; bottom: 200px; left: 30%; animation: float3 7s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, -30px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -50px); } }
.grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  max-width: 720px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInDown 0.7s 0.1s ease both;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.7; max-width: 540px;
  margin-bottom: 40px;
  animation: fadeInDown 0.7s 0.2s ease both;
}

/* ── SEARCH BOX ────────────────────────────────────────── */
.search-box {
  display: flex; gap: 10px;
  width: 100%; max-width: 580px;
  animation: fadeInDown 0.7s 0.3s ease both;
}
.search-input-wrap {
  flex: 1; position: relative;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 16px;
  color: var(--text-muted); pointer-events: none;
  transition: color 0.2s;
}
.search-input-wrap input {
  width: 100%; padding: 14px 48px 14px 48px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.search-input-wrap input:focus {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}
.search-input-wrap input:focus + .search-icon,
.search-input-wrap:focus-within .search-icon { color: var(--purple-light); }
.enter-key {
  position: absolute; right: 14px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem; color: var(--text-muted);
  pointer-events: none;
  font-family: inherit;
}
.btn-search {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  background: var(--grad);
  border: none; border-radius: var(--radius);
  color: white; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s; font-family: inherit;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(139,92,246,0.5);
}
.btn-search:active { transform: translateY(0); }
.btn-search:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Quick examples */
.quick-examples {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeInDown 0.7s 0.4s ease both;
}
.ex-label { font-size: 0.8rem; color: var(--text-muted); }
.ex-tag {
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 0.8rem; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.ex-tag:hover { background: var(--surface-hover); color: var(--text); border-color: var(--purple); }

/* ── FEATURE STRIP ─────────────────────────────────────── */
.feature-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  width: 100%; max-width: 1000px;
  margin-top: 60px;
  padding: 0 0 60px;
  animation: fadeInUp 0.8s 0.5s ease both;
}
.feature-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.fc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-icon.purple { background: rgba(139,92,246,0.2); color: var(--purple-light); }
.fc-icon.pink { background: rgba(236,72,153,0.2); color: #f472b6; }
.fc-icon.blue { background: rgba(59,130,246,0.2); color: #60a5fa; }
.fc-icon.green { background: rgba(16,185,129,0.2); color: #34d399; }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.feature-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ── PROFILE SECTION ───────────────────────────────────── */
.profile-section { padding: 90px 0 60px; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Profile Card */
.profile-card {
  display: flex; align-items: flex-start; gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeInDown 0.5s ease;
}
.profile-avatar-wrap {
  position: relative; flex-shrink: 0;
  width: 100px; height: 100px;
}
.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  position: relative; z-index: 1;
}
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: var(--grad);
  z-index: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.profile-name-row h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
}
.verified-badge {
  display: inline-flex;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); align-items: center; justify-content: center;
}
.profile-username {
  color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px;
}
.profile-bio {
  font-size: 0.88rem; line-height: 1.6; color: rgba(240,240,255,0.8);
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.profile-stats {
  display: flex; align-items: center; gap: 20px;
}
.stat-item { text-align: center; }
.stat-item.clickable { cursor: pointer; transition: transform 0.2s; }
.stat-item.clickable:hover { transform: scale(1.05); }
.stat-num { display: block; font-size: 1.1rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 30px; background: var(--border); }
.btn-back {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s; align-self: flex-start; flex-shrink: 0;
}
.btn-back:hover { color: var(--text); border-color: var(--border-hover); }

/* ── TABS ──────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all 0.2s; font-family: inherit; white-space: nowrap;
}
.tab:hover { background: var(--surface-hover); color: var(--text); }
.tab.active { background: var(--grad); color: white; }

/* ── TAB CONTENT ───────────────────────────────────────── */
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

/* Loading */
.loading-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 60px 20px; color: var(--text-muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty State */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 60px 20px; color: var(--text-muted); text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 6px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); }
.empty-state p { font-size: 0.85rem; }

/* ── STORIES GRID ──────────────────────────────────────── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.story-thumb {
  position: relative; aspect-ratio: 9/16;
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all 0.3s;
}
.story-thumb:hover {
  border-color: var(--purple);
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(139,92,246,0.3);
}
.story-thumb img, .story-thumb video {
  width: 100%; height: 100%; object-fit: cover;
}
.story-type-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 0.65rem; font-weight: 600;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
  color: white;
}
.story-thumb:hover .story-overlay { opacity: 1; }
.story-overlay {
  position: absolute; inset: 0;
  background: rgba(139,92,246,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.story-play-icon { font-size: 2rem; color: white; }

/* ── POSTS GRID ────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.post-thumb {
  position: relative; aspect-ratio: 1;
  overflow: hidden; cursor: pointer;
  background: var(--surface);
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.post-thumb:hover img { transform: scale(1.05); }
.post-thumb:hover .post-overlay { opacity: 1; }
.post-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity 0.2s; color: white;
  font-size: 0.85rem; font-weight: 600;
}
.post-stat { display: flex; align-items: center; gap: 5px; }

/* ── USERS LIST ────────────────────────────────────────── */
.users-list { display: flex; flex-direction: column; gap: 6px; }
.user-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: var(--text);
}
.user-row:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.user-meta { flex: 1; min-width: 0; }
.user-username {
  font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-fullname {
  font-size: 0.78rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-badges { display: flex; gap: 6px; align-items: center; }
.badge-verified {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.badge-private {
  padding: 2px 8px; border-radius: 99px;
  font-size: 0.65rem; font-weight: 600;
  background: rgba(239,68,68,0.2); color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ── STORY VIEWER ──────────────────────────────────────── */
.story-viewer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.sv-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.sv-close:hover { background: rgba(255,255,255,0.2); }
.sv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 1;
}
.sv-nav:hover { background: rgba(255,255,255,0.2); }
.sv-prev { left: 20px; }
.sv-next { right: 20px; }
.sv-content {
  max-width: 380px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
}
.sv-progress {
  display: flex; gap: 4px; padding: 12px 12px 8px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 380px; max-width: 100%;
}
.sv-prog-bar {
  flex: 1; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,0.3);
}
.sv-prog-bar.done { background: white; }
.sv-prog-bar.active { background: white; animation: progress 5s linear forwards; }
@keyframes progress { from { opacity: 0.5; } to { opacity: 1; } }
.sv-media {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  max-height: 80vh;
}
.sv-media img, .sv-media video {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: 16px;
}
.sv-info {
  padding: 10px; color: white; text-align: center;
  font-size: 0.8rem; opacity: 0.7;
}

/* ── LOGIN MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: #13131f;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  max-width: 420px; width: 100%;
  position: relative;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-header {
  text-align: center; margin-bottom: 24px;
}
.modal-logo {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: white;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal-header p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.warning-box {
  padding: 12px 16px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  font-size: 0.82rem; color: #fbbf24;
  margin-bottom: 20px; line-height: 1.5;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  outline: none; transition: all 0.2s;
}
.form-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
}
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--grad);
  border: none; border-radius: 12px;
  color: white; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.modal-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ── TOAST ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: #1e1e2e;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem; color: var(--text);
  box-shadow: var(--shadow);
  z-index: 300; transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(16,185,129,0.5); color: #34d399; }
.toast.error { border-color: rgba(239,68,68,0.5); color: #f87171; }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { justify-content: center; }
  .btn-back { position: absolute; top: 16px; right: 16px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { flex-direction: column; }
  .feature-strip { grid-template-columns: 1fr; }
}
