/* ── APP LAYOUT ─────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 56px; /* nav height */
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────────── */
.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--chrome-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.sidebar-link:hover { background: var(--surface); color: var(--text); }
.sidebar-link.active { background: var(--amber-glow); color: var(--amber); }
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 0; }
.sidebar-bottom { margin-top: auto; }

/* ── MAIN CONTENT ───────────────────────────────────────────────────────────── */
.app-main {
  flex: 1;
  margin-left: 220px;
  min-height: calc(100vh - 56px);
}

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

/* ── CONTAINER ──────────────────────────────────────────────────────────────── */
.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── NAV (in-app) ───────────────────────────────────────────────────────────── */
.app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.app-nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.app-nav-logo .amber { color: var(--amber); }
.app-nav-spacer { flex: 1; }
.app-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

/* ── FEED ────────────────────────────────────────────────────────────────────── */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.feed-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

/* Post card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}
.post-meta { flex: 1; min-width: 0; }
.post-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.post-info {
  font-size: 12px;
  color: var(--chrome-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.post-body { padding: 0 16px 14px; }
.post-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-image {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}
.post-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}
.post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--chrome-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
}
.post-action:hover { background: var(--surface-2); color: var(--text); }
.post-action.liked { color: var(--amber); }
.post-action svg { width: 18px; height: 18px; }

/* ── COMMENTS ────────────────────────────────────────────────────────────────── */
.comment-section {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: var(--bg-2);
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.comment-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-body);
  resize: none;
  outline: none;
  transition: border-color 0.15s;
}
.comment-input:focus { border-color: var(--amber-dim); }
.comment-btn {
  background: var(--amber);
  color: var(--bg);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.comment-btn:hover { opacity: 0.85; }
.comments-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.comment {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.comment .post-avatar { width: 28px; height: 28px; font-size: 11px; }
.comment-name { font-weight: 600; color: var(--text); }
.comment-text { color: var(--text-dim); line-height: 1.5; }

/* ── PROFILE ────────────────────────────────────────────────────────────────── */
.profile-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-meta {
  font-size: 13px;
  color: var(--chrome-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-meta span { display: flex; align-items: center; gap: 4px; }
.profile-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-badge {
  font-size: 11px;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.profile-badge.verified {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}

/* ── NEW POST ────────────────────────────────────────────────────────────────── */
.new-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}
.new-post-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  resize: none;
  outline: none;
  min-height: 44px;
  transition: border-color 0.15s;
}
.new-post-input:focus { border-color: var(--amber-dim); }
.new-post-input::placeholder { color: var(--chrome-dim); }

/* ── FORM ELEMENTS ──────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary.btn-full { width: 100%; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--amber-dim); color: var(--amber); }
.btn-ghost {
  background: none;
  border: none;
  color: var(--chrome-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── AUTH / ONBOARDING ───────────────────────────────────────────────────────── */
.auth-card, .onboarding-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}
.auth-logo, .onboarding-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 28px;
}
.auth-title, .onboarding-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-sub, .onboarding-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.auth-form, .onboarding-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--chrome); }
.form-optional { font-weight: 400; color: var(--chrome-dim); }
.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--amber-dim); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--chrome-dim);
  margin-top: 20px;
}
.auth-switch a { color: var(--amber); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }
.onboarding-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow);
  border: 1px solid var(--amber-dim);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.onboarding-card { max-width: 480px; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--chrome-dim);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--chrome); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── MOBILE BOTTOM NAV ──────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 env(safe-area-inset-bottom);
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
}
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  color: var(--chrome-dim);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav-link.active { color: var(--amber); }
.mobile-nav-link svg { width: 22px; height: 22px; }

/* ── SNAPS ──────────────────────────────────────────────────────────────────── */
.snaps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.snap-card { border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: all 0.15s; position: relative; }
.snap-card:hover { border-color: var(--amber-dim); transform: translateY(-1px); }
.snap-card.snap-viewed { opacity: 0.5; }
.snap-thumbnail { aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--chrome-dim); position: relative; }
.snap-preview-icon { opacity: 0.6; }
.snap-unread-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; background: var(--amber); border-radius: 50%; border: 2px solid var(--surface); }
.snap-view-once-badge { position: absolute; bottom: 6px; left: 6px; width: 20px; height: 20px; background: rgba(245,158,11,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--amber); }
.snap-info { padding: 8px 10px 10px; }
.snap-sender { font-size: 13px; font-weight: 600; color: var(--text); }
.snap-time { font-size: 11px; color: var(--chrome-dim); margin-top: 2px; }
.sent-snaps-list { display: flex; flex-direction: column; gap: 12px; }
.sent-snap-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sent-snap-info { flex: 1; min-width: 0; }
.sent-snap-status { flex-shrink: 0; color: var(--chrome-dim); }

/* ── CAMERA ──────────────────────────────────────────────────────────────────── */
.camera-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; text-align: center; }
.camera-placeholder { padding: 32px 0; }
.camera-trigger-btn { background: var(--amber); color: #000; border: none; border-radius: 50%; width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; }
.camera-trigger-btn:hover { opacity: 0.85; transform: scale(1.05); }
.capture-btn { background: none; border: none; cursor: pointer; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.capture-ring { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--amber); transition: all 0.15s; }
.capture-btn:hover .capture-ring { background: rgba(245,158,11,0.15); }
.send-form { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.friend-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.friend-pick-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: all 0.15s; }
.friend-pick-item:hover { border-color: var(--amber-dim); }
.friend-pick-item input { margin: 0; accent-color: var(--amber); }
.friend-pick-name { font-size: 14px; font-weight: 600; color: var(--text); }
.view-once-toggle { margin: 16px 0; }
.toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle-info { flex: 1; }
.toggle-title { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-desc { font-size: 12px; color: var(--chrome-dim); margin-top: 2px; }
.toggle-checkbox { display: none; }
.toggle-switch { width: 44px; height: 24px; background: var(--surface-2); border-radius: 12px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle-switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--chrome-dim); top: 3px; left: 3px; transition: all 0.2s; }
.toggle-checkbox:checked + .toggle-switch { background: var(--amber); }
.toggle-checkbox:checked + .toggle-switch::after { left: 23px; background: #000; }

/* ── FRIENDS ─────────────────────────────────────────────────────────────────── */
.friend-search-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.friend-search-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; width: 100%; max-width: 400px; }
.friend-search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; font-size: 16px; color: var(--text); }
.friend-results-list { margin-top: 12px; }
.friend-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.friend-result-item:last-child { border-bottom: none; }
.friends-section { margin-bottom: 24px; }
.friends-section-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--chrome-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.friend-request-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.friend-request-info { flex: 1; }
.friend-request-actions { display: flex; gap: 8px; }
.friend-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.friend-info { flex: 1; min-width: 0; }
.btn-sm { padding: 6px 14px !important; font-size: 12px !important; }

/* ── SNAP VIEWER ─────────────────────────────────────────────────────────────── */
.snap-viewer { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; position: relative; }
.snap-close-btn { position: absolute; top: 16px; right: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: background 0.15s; }
.snap-close-btn:hover { background: rgba(255,255,255,0.2); }
.snap-media { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.snap-viewer-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.snap-from { display: flex; align-items: center; gap: 6px; }
.snap-view-once-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: rgba(245,158,11,0.2); color: var(--amber); padding: 4px 10px; border-radius: 100px; }
.snap-replay-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 100px; }
.snap-expired-state { text-align: center; padding: 40px; color: #fff; }
.snap-expired-state h2 { font-size: 20px; margin: 16px 0 8px; color: #fff; }
.snap-expired-state p { color: rgba(255,255,255,0.5); font-size: 14px; }

/* ── CAMERA FAB ───────────────────────────────────────────────────────────────── */
.camera-fab {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  transition: all 0.15s;
  z-index: 50;
}
.camera-fab:hover { transform: translateX(-50%) scale(1.1); box-shadow: 0 6px 28px rgba(245,158,11,0.6); }

/* ── DRAWING TOOL ─────────────────────────────────────────────────────────────── */
.drawing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.draw-canvas-wrap {
  position: relative;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
}
.draw-canvas-wrap img { display: block; max-width: 100%; max-height: 70vh; }
#draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.draw-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(20,20,20,0.95);
  border-radius: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.draw-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.draw-color-btn.active { border-color: #fff; transform: scale(1.2); }
.draw-size-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.draw-size-btn.active { background: var(--amber-dim); color: var(--amber); border-color: var(--amber-dim); }
.draw-action-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.draw-action-btn:hover { border-color: var(--amber-dim); color: var(--amber); }
.draw-send-btn {
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.draw-send-btn:hover { opacity: 0.85; }

/* ── PHOTO FILTERS ─────────────────────────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  transition: all 0.15s;
  font-size: 10px;
  color: var(--chrome-dim);
}
.filter-thumb img { width: 100%; height: 100%; object-fit: cover; }
.filter-thumb:hover { border-color: var(--amber-dim); }
.filter-thumb.active { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-dim); }
.filter-preview { max-width: 100%; border-radius: 8px; max-height: 400px; object-fit: cover; }

/* Filter CSS */
.filter-night-haul { filter: brightness(0.7) contrast(1.3) saturate(0.8) hue-rotate(180deg); }
.filter-sunrise-load { filter: sepia(0.4) saturate(1.4) brightness(1.1) hue-rotate(-20deg); }
.filter-highway { filter: contrast(1.2) saturate(1.3) brightness(1.05); }
.filter-classic { filter: none; }

/* ── GROUP SNAPS ───────────────────────────────────────────────────────────────── */
.group-send-btn {
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
  margin-top: 16px;
}
.group-send-btn:hover { opacity: 0.85; }
.group-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.group-count {
  display: inline-block;
  background: var(--amber);
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── STREAKS PAGE ──────────────────────────────────────────────────────────────── */
.streaks-list { display: flex; flex-direction: column; gap: 12px; }
.streak-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.streak-card.flame { border-color: var(--amber-dim); background: var(--amber-glow); }
.streak-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--amber-dim); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--bg); flex-shrink: 0; }
.streak-info { flex: 1; }
.streak-name { font-size: 15px; font-weight: 600; color: var(--text); }
.streak-count { font-size: 13px; color: var(--chrome-dim); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.streak-badge { font-size: 11px; background: var(--amber); color: #000; padding: 2px 8px; border-radius: 100px; font-weight: 700; }

/* ── LEADERBOARD PAGE ─────────────────────────────────────────────────────────── */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.leaderboard-item.gold { border-color: rgba(234,179,8,0.5); background: rgba(234,179,8,0.08); }
.leaderboard-item.silver { border-color: rgba(156,163,175,0.5); background: rgba(156,163,175,0.08); }
.leaderboard-item.bronze { border-color: rgba(180,120,60,0.5); background: rgba(180,120,60,0.08); }
.leaderboard-rank { font-family: var(--font-display); font-size: 18px; font-weight: 900; width: 28px; text-align: center; color: var(--chrome-dim); }
.leaderboard-rank.gold { color: #eab308; }
.leaderboard-rank.silver { color: #9ca3af; }
.leaderboard-rank.bronze { color: #b4743c; }
.leaderboard-info { flex: 1; }
.leaderboard-name { font-size: 14px; font-weight: 600; color: var(--text); }
.leaderboard-score { font-size: 12px; color: var(--chrome-dim); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.my-score-card { background: var(--amber-glow); border: 1px solid var(--amber-dim); border-radius: 12px; padding: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.my-score-label { font-size: 12px; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.my-score-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--amber); }

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  .app-main { padding-bottom: 70px; }
  .onboarding-card, .auth-card { margin: 40px 16px; padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .snaps-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}