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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #222222;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #ff6154;
  --accent-hover: #ff4a3a;
  --green: #00c853;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Poppins', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
textarea, input { font-family: var(--font); }

/* ─────── BUTTONS ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: #444; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ─────── NAVBAR ─────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 60px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { background: linear-gradient(135deg, #ff6154, #ff9147); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}
.nav-search:focus-within { border-color: #444; }
.nav-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
}
.nav-search input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 8px 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.search-btn:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-icon-btn:hover { color: var(--text); background: var(--surface); }

.badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Avatar menu */
.avatar-menu { position: relative; }
.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.avatar-btn:hover { border-color: #444; background: var(--surface-hover); }
.avatar-img, .avatar-placeholder {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.username-display { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 200;
}
.dropdown-menu.open { display: block; animation: fadeIn 0.12s ease; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.12s;
}
.dropdown-item:hover { background: var(--surface-hover); }
.dropdown-item.danger { color: #ff6154; }

/* ─────── LAYOUT ─────── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─────── LANDING PAGE ─────── */
.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-blur-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  pointer-events: none;
  overflow: hidden;
}

.blurred-card {
  width: calc(50% - 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  filter: blur(2px);
  opacity: 0.3;
}
.blurred-thumb {
  width: 56px; height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}
.placeholder-thumb { background: linear-gradient(135deg, #222, #333); }
.blurred-info { flex: 1; }
.blurred-name { height: 12px; background: #333; border-radius: 4px; margin-bottom: 8px; width: 70%; }
.blurred-tagline { height: 10px; background: #2a2a2a; border-radius: 4px; width: 90%; }

.landing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,15,15,0.75) 0%, rgba(15,15,15,0.97) 70%);
}

.landing-hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
}
.landing-logo { font-size: 72px; margin-bottom: 16px; filter: drop-shadow(0 0 30px rgba(255,97,84,0.5)); }
.landing-title { font-size: clamp(36px, 6vw, 60px); font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; }
.landing-tagline { font-size: clamp(16px, 2.5vw, 22px); color: var(--text-muted); margin-bottom: 40px; font-weight: 300; }
.btn-hero { padding: 16px 36px; font-size: 16px; border-radius: var(--radius); box-shadow: 0 0 30px rgba(255,97,84,0.3); }
.btn-hero:hover { box-shadow: 0 0 40px rgba(255,97,84,0.5); transform: translateY(-2px); }
.landing-sub { margin-top: 20px; color: var(--text-muted); font-size: 14px; }

/* ─────── HOMEPAGE ─────── */
.page-header { margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.search-result-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.search-result-label a { color: var(--accent); }
.search-result-label strong { color: var(--text); }

/* ─────── PRODUCT CARDS ─────── */
.product-list { display: flex; flex-direction: column; gap: 2px; }

.product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 8px;
}
.product-card:hover {
  background: var(--surface-hover);
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.card-thumb-wrap { flex-shrink: 0; }
.card-thumb {
  width: 72px; height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--border);
}
.card-thumb.no-thumb {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  font-size: 24px;
}

.card-body { flex: 1; min-width: 0; }
.card-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.card-name { font-size: 15px; font-weight: 600; }
.replit-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-maker { display: flex; align-items: center; gap: 6px; }

.maker-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.maker-avatar-placeholder {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.maker-name {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.12s;
}
.maker-name:hover { color: var(--accent); }

.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,97,84,0.1);
  color: var(--accent);
  border: 1px solid rgba(255,97,84,0.2);
  white-space: nowrap;
}
.tag-sm { font-size: 10px; padding: 2px 6px; }

.card-stats { display: flex; gap: 8px; }
.comment-count {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-muted);
}

/* ─────── UPVOTE BUTTON ─────── */
.card-upvote { flex-shrink: 0; }

.upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
  background: none;
  cursor: pointer;
}
.upvote-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,97,84,0.08);
  transform: translateY(-1px);
}
.upvote-btn.upvoted {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,97,84,0.12);
}
.upvote-btn svg { transition: transform 0.15s; }
.upvote-btn:hover svg, .upvote-btn.upvoted svg { transform: translateY(-1px); }

.upvote-lg {
  flex-direction: column;
  padding: 12px 20px;
  gap: 4px;
  font-size: 22px;
}
.upvote-label { font-size: 12px; font-weight: 600; }

/* ─────── EMPTY STATE ─────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ─────── SUBMIT PAGE ─────── */
.form-page { max-width: 680px; margin: 0 auto; padding: 32px 20px 80px; }
.form-header { margin-bottom: 32px; }
.form-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.form-header p { color: var(--text-muted); font-size: 15px; }

.error-list {
  background: rgba(255,97,84,0.1);
  border: 1px solid rgba(255,97,84,0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.error-item { font-size: 14px; color: #ff8070; margin-bottom: 4px; }
.error-item:last-child { margin-bottom: 0; }

.product-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.required { color: var(--accent); }
.hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.char-counter { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

input[type="text"], input[type="url"], textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
  width: 100%;
  resize: vertical;
}
input[type="text"]:focus, input[type="url"]:focus, textarea:focus {
  outline: none;
  border-color: #555;
  background: #1e1e1e;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.tag-checkbox input { display: none; }
.tag-checkbox input:checked + .tag-label {
  background: rgba(255,97,84,0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.tag-label:hover { border-color: #555; color: var(--text); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.maker-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* ─────── PRODUCT DETAIL ─────── */
.product-detail { max-width: 780px; margin: 0 auto; padding: 32px 20px 80px; }
.product-screenshot-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.product-screenshot { width: 100%; height: auto; max-height: 420px; object-fit: cover; }

.product-detail-header { margin-bottom: 24px; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.product-detail-name { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.product-detail-tagline { font-size: 16px; color: var(--text-muted); }

.product-maker-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.maker-link { display: flex; align-items: center; gap: 12px; }
.maker-avatar-lg {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
}
.maker-avatar-placeholder-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}
.maker-name-lg { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.maker-username { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.maker-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,97,84,0.15);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(255,97,84,0.3);
}

.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.product-description {
  margin-bottom: 24px;
}
.product-description h3 { font-size: 16px; margin-bottom: 16px; color: var(--text-muted); }
.markdown-body { font-size: 15px; line-height: 1.7; color: #ccc; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { color: var(--text); margin: 20px 0 8px; }
.markdown-body p { margin-bottom: 12px; }
.markdown-body code { background: #222; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.markdown-body pre { background: #111; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin-bottom: 12px; }
.markdown-body a { color: var(--accent); }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin-bottom: 12px; }

/* ─────── COMMENTS ─────── */
.comments-section { margin-top: 24px; }
.comments-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.comment-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.comment-form .comment-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.comment-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-input-wrap textarea { resize: vertical; min-height: 80px; }

.login-prompt { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.login-prompt a { color: var(--accent); }

.comments-list { display: flex; flex-direction: column; gap: 16px; }

.comment {
  border-left: 2px solid var(--border);
  padding-left: 16px;
}
.comment.reply { margin-top: 12px; padding-left: 12px; border-left-width: 1px; }
.replies { margin-left: 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }

.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-avatar-placeholder {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.comment-author { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-author:hover { color: var(--accent); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-body { font-size: 14px; line-height: 1.6; color: #ccc; margin-bottom: 8px; }
.reply-btn {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.12s;
  padding: 2px 0;
}
.reply-btn:hover { color: var(--accent); }

.reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.reply-form textarea { min-height: 60px; }
.reply-form-actions { display: flex; gap: 8px; }

/* ─────── PROFILE PAGE ─────── */
.profile-page { max-width: 780px; margin: 0 auto; padding: 32px 20px 80px; }
.profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.profile-avatar-placeholder {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-username { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.profile-joined { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.profile-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 22px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-muted); }

.section-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); }

.profile-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.profile-product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.18s ease;
  display: block;
}
.profile-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #333; }
.profile-product-thumb {
  width: 100%; height: 130px;
  object-fit: cover;
}
.profile-product-thumb.no-thumb {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
}
.profile-product-info { padding: 14px; }
.profile-product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.profile-product-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-product-meta { display: flex; align-items: center; gap: 10px; }
.upvote-stat, .comment-stat {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-muted);
}

/* ─────── NOTIFICATIONS ─────── */
.notifications-page { max-width: 680px; margin: 0 auto; padding: 32px 20px 80px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header-row h1 { font-size: 22px; font-weight: 700; }

.notifications-list { display: flex; flex-direction: column; gap: 2px; }
.notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 6px;
  position: relative;
}
.notif-item:hover { background: var(--surface-hover); }
.notif-item.unread { border-color: rgba(255,97,84,0.2); background: rgba(255,97,84,0.04); }

.notif-avatar { position: relative; flex-shrink: 0; }
.notif-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.notif-avatar-placeholder {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.notif-icon {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  border: 2px solid var(--bg);
}
.upvote-icon { background: var(--accent); color: #fff; }
.comment-icon { background: #5b84ff; font-size: 7px; }

.notif-content { flex: 1; }
.notif-text { font-size: 14px; line-height: 1.4; margin-bottom: 3px; }
.notif-product { color: var(--accent); }
.notif-time { font-size: 12px; color: var(--text-muted); }

.unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─────── ANIMATIONS ─────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: var(--accent); }
  100% { transform: scale(1); }
}
.count-bump { animation: countBump 0.3s ease; }

/* ─────── RESPONSIVE ─────── */
@media (max-width: 640px) {
  .navbar { padding: 0 14px; gap: 10px; }
  .nav-search { display: none; }
  .username-display { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .product-card { flex-wrap: wrap; }
  .card-thumb { width: 56px; height: 42px; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { justify-content: center; }
  .product-title-row { flex-direction: column; }
  .blurred-card { width: 100%; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
