/* NOIRLY – app.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Backgrounds */
  --bg:           #09090b;
  --bg-card:      #111113;
  --bg-card2:     #18181b;
  --bg-input:     #27272a;
  --bg-hover:     #18181b;

  /* Borders */
  --border:       #27272a;
  --border-light: #3f3f46;

  /* Text */
  --text:         #e4e4e7;
  --text-muted:   #52525b;
  --text-sub:     #71717a;

  /* Accent */
  --accent:         #e8195b;
  --accent-hover:   #be1250;
  --accent-dim:     rgba(232, 25, 91, .12);
  --accent2:        #f43f75;
  --accent-glow:    0 0 24px rgba(232, 25, 91, .35);

  /* Status */
  --purple:       #a855f7;
  --blue:         #3b82f6;
  --gold:         #f59e0b;
  --gold-dim:     rgba(245,158,11,.12);
  --danger:       #ef4444;
  --success:      #22c55e;
  --info:         #3b82f6;
  --warning:      #f59e0b;

  /* Shape */
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --radius-pill:  999px;
  --nav-h:        56px;

  /* Shadows */
  --shadow:       0 4px 24px rgba(0,0,0,.5);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.4);

  /* Gradients */
  --grad-accent:  linear-gradient(135deg, #e8195b, #f43f75);
  --grad-gold:    linear-gradient(135deg, #f59e0b, #ef4444);
  --grad-purple:  linear-gradient(135deg, #a855f7, #e8195b);
  --grad-dark:    linear-gradient(180deg, #18181b, #09090b);
}

/* ── Reset ─────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 .75rem; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Flash messages ────────────────────────────────────── */
.flash {
  position: fixed;
  top: max(.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 260px;
  max-width: min(480px, calc(100vw - 2rem));
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.4;
  opacity: 1;
  transition: opacity .5s ease, transform .5s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  pointer-events: none;
}
.flash.fade-out { opacity: 0; }
.flash p { margin: 0 0 .25rem; }
.flash p:last-child { margin: 0; }
.flash-success { background: #052e16; border: 1px solid #166534; color: #86efac; }
.flash-error   { background: #2d1515; border: 1px solid #7f1d1d; color: #fca5a5; }
.flash-info    { background: #0c1a2e; border: 1px solid #1e3a5f; color: #93c5fd; }
.flash-warning { background: #2d1f08; border: 1px solid #78350f; color: #fde68a; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
label {
  display: block;
  font-size: .78rem;
  color: #71717a;
  margin-bottom: .3rem;
  font-weight: 500;
  letter-spacing: .01em;
}
input[type=text], input[type=email], input[type=password],
input[type=url], input[type=number], input[type=search],
textarea, select {
  width: 100%;
  padding: .6rem .85rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: var(--radius-sm);
  color: #e4e4e7;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #e8195b;
  box-shadow: 0 0 0 2px rgba(232,25,91,.15);
}
textarea { resize: vertical; min-height: 80px; }
input[type=file] {
  padding: .5rem;
  border: 1px dashed #3f3f46;
  background: #18181b;
  border-radius: var(--radius-sm);
  color: #71717a;
  font-size: .82rem;
  cursor: pointer;
  width: 100%;
}
.radio-label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, color .12s, opacity .12s;
  letter-spacing: -.01em;
}
.btn:hover { text-decoration: none; }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary {
  background: #e8195b;
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #be1250; }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover:not(:disabled)  { background: #dc2626; }
.btn-ghost    { background: transparent; border: 1px solid #3f3f46; color: #71717a; }
.btn-ghost:hover:not(:disabled)   { border-color: #71717a; color: #a1a1aa; }
.btn-sm       { padding: .3rem .7rem; font-size: .78rem; }
.btn-full     { width: 100%; }

/* „Alle als gelesen markieren“ – einheitlich, gut klickbar */
.btn-mark-all-read {
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 2.5rem;
}
.btn-mark-all-read:hover:not(:disabled) {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-action {
  background: none;
  border: none;
  color: #e4e4e7;
  font-size: .85rem;
  cursor: pointer;
  padding: .3rem .4rem;
  border-radius: var(--radius-xs);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .12s, transform .1s;
  font-weight: 500;
}
.btn-action svg { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.75; }
.btn-action:hover { color: #fff; }
.btn-action:active { transform: scale(.9); }
.btn-action.liked { color: #e8195b; }
.btn-action.liked svg { fill: #e8195b; stroke: #e8195b; }
.btn-action.liked:hover { color: #f43f75; }
.btn-action--heart:hover { color: #e8195b; }
.btn-action--heart:active svg { animation: heart-pop .25s ease; }
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.btn-action--comment:hover { color: #e4e4e7; }
.btn-action--muted { font-size: .72rem; color: #3f3f46; }
.btn-action--muted:hover { color: #52525b; }

/* ── Auth pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(233,30,140,.08) 0%, transparent 70%);
}
.auth-container {
  width: 100%;
  max-width: 400px;
}
.auth-brand {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: .2rem;
}
.auth-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  margin-bottom: 1.75rem;
}
.auth-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.auth-switch {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}
.auth-note {
  text-align: center;
  font-size: .72rem;
  color: #2a2a2a;
  margin-top: .5rem;
}

/* ── Stories bar ────────────────────────────────────────── */
.stories-bar {
  display: flex;
  gap: .85rem;
  padding: .85rem .75rem .9rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: var(--bg);
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  cursor: pointer;
}
/* IG-style story ring: gradient border via padding trick */
.story-ring {
  width: 62px; height: 62px;
  border-radius: 50%;
  padding: 2.5px;
  background: #2a2a2a;
  position: relative;
}
.story-ring--active {
  /* IG gradient: yellow → pink → purple */
  background: conic-gradient(
    from 0deg,
    #feda77, #f58529, #dd2a7b, #8134af, #515bd4, #feda77
  );
  animation: story-pulse 2.5s ease-in-out infinite;
}
@keyframes story-pulse {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.15); }
}
.story-ring--seen,
.story-ring--viewed {
  background: #3f3f46;
  opacity: .5;
}
.story-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #09090b;
  display: block;
}
.story-avatar--placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #1c1c1e;
  border: 2.5px solid #09090b;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #71717a;
}
.story-name {
  font-size: .66rem;
  color: #a1a1aa;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
}

/* Bottom-Nav / Top-Header / Sidebar → layout.css */

/* ── Feed ───────────────────────────────────────────────── */
/* max-width wird von l-content (layout.css) übernommen */
.feed {
  padding: 0 0 2rem;
  border-left: 1px solid rgba(255,255,255,.05);
  border-right: 1px solid rgba(255,255,255,.05);
  min-height: 100vh;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 1.25rem; font-size: .95rem; }

/* ── Feed Empty State (Entdecken / kein Content) ───────────── */
.feed-empty-state {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  max-width: 340px;
  margin: 0 auto;
}
.feed-empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  opacity: .85;
}
.feed-empty-state-icon svg {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feed-empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.feed-empty-state-hint {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.45;
}
.btn-feed-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.75rem;
  font-size: .9rem;
  font-weight: 600;
  background: var(--grad-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(232, 25, 91, .25);
  transition: box-shadow .2s, transform .08s;
}
.btn-feed-cta:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(232, 25, 91, .4);
}
.btn-feed-cta:active { transform: scale(.98); }
html.light .btn-feed-cta { box-shadow: 0 4px 16px rgba(232, 25, 91, .3); }
html.light .btn-feed-cta:hover { box-shadow: 0 6px 24px rgba(232, 25, 91, .4); }

/* ── Explore Empty State ───────────────────────────────────── */
.explore-empty-state {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  max-width: 340px;
  margin: 0 auto;
}
.explore-empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .5rem;
}
.explore-empty-state-hint {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.45;
}

/* ── Discover-Banner (Hinweis unter Tabs) ──────────────────── */
.discover-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.discover-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}
.discover-banner-text { flex: 1; min-width: 0; }
.discover-banner-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .15rem;
}
.discover-banner-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}
.discover-banner-cta { flex-shrink: 0; }

/* IG-style post cards: borderless, full-bleed, separated by thin rule */
.post-card {
  background: var(--bg);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 0;
  overflow: hidden;
  transition: none;
}
.post-card:hover { background: var(--bg); }

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .75rem .5rem;
}
.post-author {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.post-author:hover { text-decoration: none; }

.post-header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.post-card-menu {
  position: relative;
}
.post-card-menu-btn {
  min-width: 2rem;
  min-height: 2rem;
}
.post-card-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .25rem;
  min-width: 10rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 20;
  overflow: hidden;
}
.post-card-dropdown-item {
  display: block;
  width: 100%;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.post-card-dropdown-item:hover {
  background: var(--bg-hover);
}
.post-card-dropdown-item + .post-card-dropdown-item {
  border-top: 1px solid var(--border);
}

/* Copy-toast („Link kopiert“) */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  padding: .5rem 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.copy-toast.copy-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* PWA: Install button, iOS overlay, push denied hint */
.pwa-install-btn {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: .6rem 1.25rem;
  background: var(--grad-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 25, 91, .4);
}
.pwa-install-btn:hover { opacity: .95; }
.pwa-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 0) + 1rem);
}
.pwa-ios-overlay-inner {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 320px;
  text-align: center;
}
.pwa-ios-overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--text);
}
.pwa-ios-overlay-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.pwa-ios-overlay-close {
  padding: .5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}
.pwa-push-denied-hint {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  padding: .5rem 1rem;
  margin: 0;
}

/* Avatar with gradient story ring if creator has active story */
.post-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  /* subtle ring always present, overridden for story */
  border: 2px solid transparent;
  box-shadow: 0 0 0 1.5px #2a2a2a;
  padding: 1px;
  background-clip: padding-box;
}
.post-avatar--placeholder {
  background: var(--grad-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.post-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-author-name {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e4e4e7;
}
.post-author-handle {
  font-size: .72rem;
  color: #52525b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-time {
  font-size: .68rem;
  color: #52525b;
  white-space: nowrap;
  margin-left: .35rem;
  flex-shrink: 0;
}

/* ── NSFW blur ──────────────────────────────────────────── */
.nsfw-wrap { position: relative; }
.nsfw-blur { filter: blur(20px); transition: filter .3s; }
.nsfw-wrap.revealed .nsfw-blur { filter: none; }
.nsfw-reveal-btn {
  position: absolute;
  bottom: .85rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  border-radius: 20px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  cursor: pointer;
  z-index: 5;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.nsfw-reveal-btn:hover { background: rgba(0,0,0,.95); }
.nsfw-wrap.revealed .nsfw-reveal-btn { display: none; }

/* ── Media locked overlay ───────────────────────────────── */
.media-locked {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  background: #0a0a0a;
  color: #fff;
  font-size: .9rem;
  text-align: center;
  padding: 2rem;
}
/* Blurred preview background */
.media-locked-blur-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.4) saturate(1.3);
  transform: scale(1.15);
  z-index: 0;
}
.media-locked > * { position: relative; z-index: 1; }
.media-locked-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 20px rgba(233,30,140,.5));
}
.media-locked p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.75); font-weight: 500; }
.media-locked .btn { font-size: .88rem; padding: .6rem 1.6rem; }

/* ── Watermark on unlocked media ────────────────────────── */
.media-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
}
.media-wrap img,
.media-wrap video {
  display: block;
  width: 100%;
}
.media-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px 14px;
}
.media-watermark span {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  text-transform: lowercase;
  user-select: none;
  pointer-events: none;
  /* diagonal repeat watermark via CSS gradient trick */
  /* For the corner badge only, repeated pattern is done via ::before */
}
/* Repeated diagonal watermark pattern */
.media-watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,.04) 60px,
    rgba(255,255,255,.04) 61px
  );
  pointer-events: none;
}

.post-media { overflow: hidden; background: #050505; }
.post-media-item {
  width: 100%; display: block;
  max-height: 80vh; object-fit: contain;
  background: #000;
}

/* ── Media gallery (multi-image carousel) ───────────────── */
.media-gallery {
  position: relative;
  overflow: hidden;
  background: #000;
  user-select: none;
}
.media-gallery-track {
  display: flex;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.media-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.media-gallery-slide img,
.media-gallery-slide video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
  display: block;
}
/* Arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s, opacity .15s;
}
.gallery-arrow:hover { background: rgba(0,0,0,.8); }
.gallery-arrow--prev { left: 10px; }
.gallery-arrow--next { right: 10px; }
/* Counter */
.gallery-counter {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: .04em;
}
/* Dot indicators */
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}
.gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.post-caption {
  padding: .55rem 1rem .4rem;
  font-size: .9rem;
  line-height: 1.6;
  color: #d4d4d8;
}
.post-actions {
  padding: .4rem .8rem .6rem;
  display: flex;
  gap: .1rem;
  align-items: center;
  border-top: 1px solid #18181b;
}
.feed-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

/* ── Profile ────────────────────────────────────────────── */
.profile-page { overflow: hidden; }
.profile-header-img {
  height: 200px;
  background: linear-gradient(135deg, #1c0014 0%, #0e000a 60%, #09090b 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-header-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}
.profile-info { padding: 0 1rem 1.25rem; background: var(--bg-card); }
.profile-avatar-wrap { margin-top: -52px; margin-bottom: .85rem; position: relative; z-index: 1; }
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.profile-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}
.profile-name-row {
  display: flex; align-items: center; gap: .6rem;
  flex-wrap: wrap; margin-bottom: .15rem;
}
.profile-display-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.profile-username { color: var(--text-muted); font-size: .88rem; margin-bottom: .6rem; }
.profile-bio { font-size: .9rem; line-height: 1.6; margin-bottom: .6rem; color: var(--text-sub); }
.profile-website a { color: var(--accent); font-size: .85rem; }
.profile-dating-info {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.profile-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 1rem 0;
  padding: .75rem 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 0;
  overflow-x: auto;
}
.profile-stat {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: 0 1rem;
  border: none;
  background: none;
  min-width: 0;
  flex: 0 0 auto;
  font: inherit;
  color: inherit;
  cursor: default;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; padding-right: 0; }
.profile-stat:first-child { padding-left: 0; }
button.profile-stat { cursor: pointer; }
button.profile-stat:hover { opacity: .9; }
.profile-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  width: 2.75rem;
  min-width: 2.75rem;
  text-align: right;
  display: inline-block;
}
.profile-stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  white-space: nowrap;
}

/* Aktivität 30 Tage – Zahl + Label auf einer Zeile */
.profile-activity-30 {
  margin-top: 1rem;
  padding: .75rem 0;
}
.profile-activity-30-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.profile-activity-30-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: baseline;
}
.profile-activity-30-item {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid var(--border);
}
.profile-activity-30-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.profile-activity-30-value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2.25rem;
  text-align: right;
  display: inline-block;
}
.profile-activity-30-value--accent { color: var(--accent); }
.profile-activity-30-value--green { color: #34d399; }
.profile-activity-30-value--gold { color: var(--gold); }
.profile-activity-30-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  white-space: nowrap;
}

.profile-actions { margin-top: .85rem; }

/* ── Post grid ──────────────────────────────────────────── */
/* IG-style: always 3 columns, 1px gap */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}
.post-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d0d;
  display: block;
}
.post-grid-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.post-grid-item:hover .post-grid-thumb { transform: scale(1.04); }
.post-grid-locked {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0d;
  overflow: hidden;
}
/* Blurred thumbnail inside locked grid cell */
.post-grid-locked-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(.38) saturate(1.2);
  transform: scale(1.15);
  pointer-events: none;
}
.post-grid-locked svg { position: relative; z-index: 1; }
.post-grid-text {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 2.5rem;
  background: var(--bg-card2);
}
.post-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: .5rem .4rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
}
.post-grid-item:hover .post-grid-overlay { opacity: 1; }

/* ── Post detail ────────────────────────────────────────── */
.post-detail { }
.comments-section { padding: 0 1rem 1rem; }
.comment {
  padding: .65rem 0;
  border-top: 1px solid var(--border);
}
.comment-author { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.comment-body { font-size: .88rem; line-height: 1.45; color: var(--text-sub); }
.comment-form { display: flex; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.comment-form textarea { flex: 1; min-height: 50px; }

/* ── Search ─────────────────────────────────────────────── */
.search-page { padding: 1rem; }
.search-bar { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-bar input { flex: 1; }
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .75rem;
}
.user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.1rem .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color .2s, transform .15s;
}
.user-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}
.user-card-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.user-card-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1.3rem; font-weight: 700;
}
.user-card-name { font-weight: 700; font-size: .88rem; }
.user-card-username { font-size: .75rem; color: var(--text-muted); }
.user-card-followers { font-size: .7rem; color: var(--text-muted); }
.creator-label {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent); border-radius: 20px; padding: 2px 8px;
  letter-spacing: .04em;
}

/* ── Messages ───────────────────────────────────────────── */
.messages-page { padding: 1rem; }
.conversation-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.conversation-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.conversation-item:last-child { border-bottom: none; }
.conversation-item:hover { background: var(--bg-card2); }
.conversation-item.unread { background: rgba(233,30,140,.05); }
.conversation-avatar {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.conversation-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1rem; font-weight: 700;
}
.conversation-body { flex: 1; min-width: 0; }
.conversation-name { display: block; font-weight: 700; font-size: .9rem; }
.conversation-preview {
  display: block; font-size: .8rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.unread-badge {
  background: var(--accent); color: #fff;
  border-radius: 10px; padding: 0 7px;
  font-size: .68rem; font-weight: 700; min-width: 18px; text-align: center;
}

/* ── Chat ────────────────────────────────────────────────── */
.chat-page {
  display: flex; flex-direction: column;
  /* Mobile: volle Höhe (l-main hat schon top/bottom padding) */
  min-height: calc(100dvh - var(--tb-h, 52px) - var(--nav-h, 58px));
}
@media (min-width: 680px) {
  .chat-page { min-height: 100dvh; height: 100dvh; }
}
.chat-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.chat-partner { display: flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .85rem; font-weight: 700;
}
.btn-back { color: var(--text-muted); font-size: .85rem; white-space: nowrap; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem; display: flex;
  flex-direction: column; gap: .6rem;
}
.chat-bubble { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.chat-bubble p {
  margin: 0;
  padding: .6rem .9rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble time { font-size: .63rem; color: var(--text-muted); }
.chat-bubble-left  { align-self: flex-start; }
.chat-bubble-left p {
  background: var(--bg-card2);
  border-radius: 4px 14px 14px 14px;
}
.chat-bubble-right { align-self: flex-end; align-items: flex-end; }
.chat-bubble-right p {
  background: linear-gradient(135deg, #6b0038, #a0004e);
  border-radius: 14px 4px 14px 14px;
}
.chat-input-area {
  display: flex; flex-direction: column; gap: .5rem; align-items: stretch;
  padding: .75rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input-area > div { display: flex; gap: .5rem; align-items: flex-end; }
.chat-input-area textarea { flex: 1; min-height: 44px; max-height: 120px; }
/* Touch targets: min 44px for buttons (mobile) */
@media (max-width: 679px) {
  .chat-input-area .btn-primary { min-width: 44px; min-height: 44px; }
  .chat-page .chat-messages { padding-bottom: .5rem; }
}

/* ── Settings ───────────────────────────────────────────── */
.settings-page {
  padding: 1rem;
  max-width: 720px;
}
.settings-page .page-title { margin-bottom: .25rem; }
.settings-intro {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.settings-section {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.settings-section:last-child { margin-bottom: 0; }
.settings-section-head {
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.settings-section-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.settings-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.settings-section-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .35rem;
  line-height: 1.4;
}
.settings-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}
.settings-legal a { color: var(--text-muted); }
.settings-legal a:hover { color: var(--text); }
.danger-zone { border-color: rgba(239,68,68,.25); }

/* ── Create post ────────────────────────────────────────── */
.create-page { padding: 1rem; }
#media-preview img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

/* ── Creator dashboard ──────────────────────────────────── */
.dashboard-page { padding: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; font-weight: 500; }
.stat-sub   { font-size: .68rem; color: #2a2a2a; margin-top: .2rem; }

/* ── Page title ─────────────────────────────────────────── */
.page-title {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1rem .5rem;
  letter-spacing: -.02em;
  color: #e4e4e7;
  border-bottom: 1px solid #18181b;
}

/* ── Admin table ────────────────────────────────────────── */
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: .8rem; min-width: 700px;
}
.admin-table th, .admin-table td {
  padding: .55rem .75rem;
  border: 1px solid #1a1a1a;
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  background: #0d0d0d; color: #666;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.admin-table tr:hover td { background: #0d0d0d; }
.admin-section h2 { margin-bottom: .75rem; font-size: 1.1rem; }
.status-badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border);
}
.status-verified   { background: #051a0a; color: #86efac; border-color: #1a4d22; }
.status-pending    { background: #1a1005; color: #fde68a; border-color: #5c3d0a; }
.status-rejected   { background: #1a0505; color: #fca5a5; border-color: #5c1a1a; }
.status-unverified { background: #111;    color: #444;    border-color: #1e1e1e; }

/* ── [REMOVED] old sidebar/nav styles → see layout.css ──── */
/* keeping only for any legacy references */
.side-nav-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background .15s;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.side-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.side-nav-item:hover { background: var(--bg-input); color: var(--text); text-decoration: none; }
.side-nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.side-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.side-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .63rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Responsive post/stat grid ──────────────────────────── */
@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Settings avatar upload ─────────────────────────────── */
.avatar-upload-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.settings-avatar-preview {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.settings-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1.5rem; font-weight: 700;
}
.settings-header-preview {
  height: 88px;
  border-radius: var(--radius-sm);
  background: var(--bg-input); background-size: cover; background-position: center;
  margin-bottom: .4rem;
  border: 1px solid var(--border);
}
.media-preview-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.create-card { padding: 1.5rem; }

/* ── Verification pages ─────────────────────────────────── */
.verify-page { max-width: 520px; margin: 0 auto; padding: 2rem 1rem; }
.verify-steps { counter-reset: step; list-style: none; padding: 0; margin: 1.25rem 0; }
.verify-steps li {
  counter-increment: step;
  display: flex; gap: .75rem; margin-bottom: .85rem;
  font-size: .88rem; color: var(--text-sub);
}
.verify-steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: .72rem; font-weight: 700;
}

/* ── Discover / Explore page ────────────────────────────── */
.explore-page { padding: 1rem; }
.explore-section { margin-bottom: 2rem; }
.explore-section h2 {
  font-size: .75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .85rem; padding: 0 .25rem;
  font-weight: 700;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: .75rem;
}
.category-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; font-size: .8rem; color: var(--text-sub);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  font-weight: 500;
}
.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}
.category-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

/* ── Notifications dot ──────────────────────────────────── */
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  border: 1.5px solid var(--bg);
}
.nav-item { position: relative; }

/* ── Subscription banner ────────────────────────────────── */
.sub-banner {
  background: linear-gradient(135deg, #1a0010 0%, #0f000a 100%);
  border: 1px solid rgba(233,30,140,.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  display: flex; flex-direction: column; gap: .65rem;
  position: relative;
  overflow: hidden;
}
.sub-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.sub-banner-title {
  font-size: 1rem; font-weight: 700; color: var(--accent);
}
.sub-banner-features {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .3rem;
}
.sub-banner-features li {
  font-size: .82rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .45rem;
}
.sub-banner-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.sub-banner-price { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; }
.sub-banner-price small { font-size: .8rem; font-weight: 400; color: var(--text-muted); }

/* ── Tip button ─────────────────────────────────────────── */
.btn-tip {
  background: linear-gradient(135deg, #1a1000, #2a1a00);
  border: 1px solid #5c4200;
  color: var(--gold);
  font-weight: 600;
}
.btn-tip:hover { background: linear-gradient(135deg, #2a1a00, #3a2800); }

/* ── Gradient text utility ──────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ── Keyframe Animations ────────────────────────────────── */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes heartFloat {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-200%) scale(1.8); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(.95); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
  0%   { transform: scale(.95); box-shadow: 0 0 0 0 rgba(233,30,140,.5); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 10px rgba(233,30,140,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(233,30,140,0); }
}

/* ── Animation utilities ────────────────────────────────── */
.anim-fade-in  { animation: fadeIn .3s ease both; }
.anim-scale-in { animation: scaleIn .2s ease both; }
.anim-slide-up { animation: slideUp .35s ease both; }

/* ── Skeleton loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}
.skeleton-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.skeleton-line {
  height: 12px; margin-bottom: 6px;
}
.skeleton-media {
  width: 100%; aspect-ratio: 4/3;
}

/* ── Like heart float ───────────────────────────────────── */
.heart-float {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 4rem;
  line-height: 1;
  animation: heartFloat .9s ease forwards;
  color: var(--accent);
}
.btn-action.liked svg,
.btn-action.heart-anim svg {
  animation: heartPop .35s ease;
}

/* ── Toast notifications ────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #1e1e1e;
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: 20px;
  padding: .5rem 1.2rem;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  animation: toastIn .25s ease both;
  pointer-events: auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.toast.out { animation: toastOut .2s ease forwards; }
.toast-success { border-color: rgba(34,197,94,.3); color: #86efac; }
.toast-error   { border-color: rgba(239,68,68,.3);  color: #fca5a5; }

/* ── Story viewer modal ─────────────────────────────────── */
#story-modal {
  position: fixed; inset: 0;
  z-index: 500;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#story-modal.open { display: flex; }
#story-modal .story-modal-img {
  max-width: 100%; max-height: 100vh;
  object-fit: contain;
  display: block;
}
#story-modal .story-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(0,0,0,.6);
  border: none; color: #fff;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; z-index: 10;
}
#story-modal .story-modal-meta {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; align-items: center; gap: .6rem;
  color: #fff; z-index: 10;
}
#story-modal .story-modal-meta img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
#story-modal .story-tap-left,
#story-modal .story-tap-right {
  position: absolute; top: 0; bottom: 0;
  width: 45%;
  cursor: pointer;
  z-index: 5;
}
#story-modal .story-tap-left  { left: 0; }
#story-modal .story-tap-right { right: 0; }
#story-modal .story-progress {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; gap: 3px; padding: .5rem;
  z-index: 10;
}
#story-modal .story-progress-seg {
  flex: 1; height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 1px;
  overflow: hidden;
}
#story-modal .story-progress-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width .1s linear;
}

/* ── Post card hover: subtle bg tint only (no border on IG-style cards) */
.post-card:hover {
  background: var(--bg);
}

/* ── Profile tabs ─── IG style: icon-only, white underline ── */
.profile-tabs {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.profile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .9rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  border: none;
  background: none;
  border-top: 1.5px solid transparent;
  margin-top: -1px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.profile-tab svg { width: 17px; height: 17px; }
.profile-tab.active {
  color: #fff;
  border-top-color: #fff;
}
.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; }

/* ── Save button ────────────────────────────────────────── */
.btn-action--save.saved svg {
  fill: var(--text);
}

/* ── Online indicator ───────────────────────────────────── */
.online-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg);
  flex-shrink: 0;
  animation: pulseRing 2s infinite;
}

/* ── Typing indicator ───────────────────────────────────── */
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: .5rem .9rem;
  background: var(--bg-card2);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

/* ── Infinite scroll loader ─────────────────────────────── */
#feed-loader {
  display: flex; justify-content: center; padding: 1.5rem;
}
#feed-loader .spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Drop zone upload ───────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--text-muted);
  position: relative;
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.drop-zone input[type=file] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.drop-zone-icon { display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.empty-state-icon { display: flex; align-items: center; justify-content: center; }
.empty-state-icon svg { flex-shrink: 0; }
.drop-zone-text { font-size: .88rem; font-weight: 500; }
.drop-zone-sub  { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Media carousel (create preview) ───────────────────── */
.media-carousel {
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
  padding: .25rem 0;
}
.media-carousel::-webkit-scrollbar { display: none; }
.media-thumb {
  position: relative; flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: grab;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.7);
  border: none; color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .6rem; line-height: 18px; text-align: center;
  cursor: pointer; padding: 0;
}

/* ── Settings tabs ──────────────────────────────────────── */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
}
.settings-tab-btn {
  padding: .55rem .95rem;
  font-size: .8rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.settings-tab-btn:hover { color: var(--text); border-color: var(--border-light); }
.settings-tab-btn.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(232,25,91,.08);
}
.settings-tab-panel { display: none; }
.settings-tab-panel.active { display: block; animation: fadeIn .2s ease; }
.settings-tab-panel .card + .card { margin-top: 1.25rem; }

/* ── Auth split screen ──────────────────────────────────── */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
@media (min-width: 768px) {
  .auth-split {
    grid-template-columns: 1fr 1fr;
  }
  .auth-split-visual {
    display: flex !important;
  }
}
.auth-split-visual {
  display: none;
  background: linear-gradient(160deg, #1a0010 0%, #2d0018 40%, #0d0008 100%);
  align-items: center; justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-split-visual::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,30,140,.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: pulseRing 4s infinite;
}
.auth-split-form {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-brand-lg {
  font-size: 4rem; font-weight: 900; letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent2), #ffb3e0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
  line-height: 1;
}
.auth-brand-sub {
  font-size: .88rem; color: rgba(255,255,255,.35);
  margin-top: .75rem; position: relative; z-index: 1;
  text-align: center;
}

/* ── Landing Page (Root für Gäste) ───────────────────────── */
.landing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.landing-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(165deg, #0d0509 0%, #1a0a12 35%, #0f0710 70%, #09090b 100%);
  z-index: 0;
}
.landing-orb {
  position: fixed;
  width: min(90vmin, 520px);
  height: min(90vmin, 520px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 25, 91, .18) 0%, rgba(164, 50, 120, .08) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: landingOrbPulse 8s ease-in-out infinite;
}
@keyframes landingOrbPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .7; transform: translate(-50%, -50%) scale(1.08); }
}
.landing-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}
.landing-header {
  margin-bottom: 2.25rem;
}
.landing-logo {
  font-size: clamp(2.75rem, 10vw, 4rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  margin: 0 0 .75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-tagline {
  font-size: .95rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.45;
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.landing-ctas {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
}
.landing-btn:active { transform: scale(.98); }
.landing-btn-primary {
  background: var(--grad-accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(232, 25, 91, .4);
}
.landing-btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 32px rgba(232, 25, 91, .5);
}
.landing-btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
}
.landing-btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  border-color: rgba(255, 255, 255, .18);
}
.landing-btn-install {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer;
  font: inherit;
}
.landing-btn-install:hover {
  background: var(--accent-dim);
  color: var(--accent2);
}
.landing-features {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.landing-feature {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
}
.landing-feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.landing-feature-icon svg { width: 100%; height: 100%; }
.landing-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.landing-18 {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0 0 .5rem;
}
.landing-legal {
  font-size: .75rem;
  margin: 0;
}
.landing-legal a { color: var(--text-muted); }
.landing-legal a:hover { color: var(--text-sub); }
.landing-legal-sep {
  margin: 0 .35rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM ADDITIONS — Glassmorphism, Glow, Neon, eronity-style
   ═══════════════════════════════════════════════════════════ */

/* ── Glass card ─────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* ── Neon glow button ───────────────────────────────────── */
.btn-glow {
  background: var(--grad-accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-glow);
  transition: box-shadow .2s, transform .1s;
}
.btn-glow:hover { box-shadow: 0 6px 40px rgba(232,25,91,.55); }
.btn-glow:active { transform: scale(.97); }

/* ── Verify checkmark badge ─────────────────────────────── */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.verified-badge svg { width: 10px; height: 10px; }

/* ── Loading bar (top of page) ──────────────────────────── */
#page-loader {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9999;
  background: var(--grad-accent);
  width: 0%;
  transition: width .3s ease;
  pointer-events: none;
}
#page-loader.done { width: 100%; opacity: 0; transition: opacity .4s ease; }

/* ── Relative timestamp ─────────────────────────────────── */
.rel-time { font-size: .7rem; color: var(--text-muted); }

/* ── Suggested creators card (feed inline) ──────────────── */
.suggested-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.suggested-strip-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: .75rem;
}
.suggested-row {
  display: flex; gap: .65rem;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: .25rem;
}
.suggested-row::-webkit-scrollbar { display: none; }
.suggested-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem; flex-shrink: 0; width: 74px;
  text-decoration: none; color: inherit;
}
.suggested-avatar {
  width: 54px; height: 54px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color .15s;
}
.suggested-item:hover .suggested-avatar { border-color: var(--accent); }
.suggested-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff; font-weight: 700; font-size: .9rem;
  border: none;
}
.suggested-name {
  font-size: .65rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%; text-align: center; color: var(--text);
}
.suggested-follow {
  font-size: .6rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .04em;
}

/* ── Post like count animation ──────────────────────────── */
.like-count-bump {
  animation: bumpUp .22s ease;
}
@keyframes bumpUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); color: var(--accent); }
  100% { transform: translateY(0); }
}

/* ── Tip modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%; max-width: 380px;
  animation: scaleIn .2s ease;
  position: relative;
}
.modal-close {
  position: absolute; top: .85rem; right: .85rem;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  padding: .2rem;
}
.tip-amounts {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem;
  margin: 1rem 0;
}
.tip-amount-btn {
  padding: .6rem .5rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 700; font-size: .88rem;
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.tip-amount-btn.selected,
.tip-amount-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── Progress bar upload ────────────────────────────────── */
.upload-progress-wrap {
  display: none; margin-top: .75rem;
  border-radius: var(--radius-pill); overflow: hidden;
  background: var(--border); height: 4px;
}
.upload-progress-bar {
  height: 100%; width: 0%;
  background: var(--grad-accent);
  border-radius: var(--radius-pill);
  transition: width .2s ease;
}

/* ── Emoji picker trigger ───────────────────────────────── */
.emoji-trigger {
  background: none; border: none;
  cursor: pointer; padding: .3rem;
  font-size: 1.1rem; line-height: 1;
  color: var(--text-muted);
  transition: transform .15s;
}
.emoji-trigger:hover { transform: scale(1.2); }

/* ── Live search results ────────────────────────────────── */
#live-results {
  position: absolute; top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  z-index: 100;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.live-result-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .1s;
}
.live-result-item:last-child { border-bottom: none; }
.live-result-item:hover { background: var(--bg-card2); }
.live-result-avatar {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* ── Hot badge ──────────────────────────────────────────── */
.badge-hot {
  display: inline-flex; align-items: center; gap: .25rem;
  background: linear-gradient(135deg,#ff4500,#ff9f43);
  color: #fff; border-radius: var(--radius-pill);
  font-size: .6rem; font-weight: 800;
  padding: 2px 7px; text-transform: uppercase; letter-spacing: .06em;
}

/* ── Swipe carousel (post detail) ──────────────────────── */
.swipe-carousel {
  position: relative; overflow: hidden;
  touch-action: pan-y;
}
.swipe-track {
  display: flex;
  transition: transform .3s ease;
  will-change: transform;
}
.swipe-track > * { flex: 0 0 100%; max-width: 100%; }
.swipe-dots {
  display: flex; justify-content: center;
  gap: 5px; padding: .5rem;
}
.swipe-dot {
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--border-light);
  transition: background .15s, width .15s;
}
.swipe-dot.active { background: var(--accent); width: 14px; border-radius: 3px; }

/* ── Pull-to-refresh indicator ──────────────────────────── */
.ptr-indicator {
  display: flex; justify-content: center; align-items: center;
  height: 0; overflow: hidden;
  transition: height .2s;
  color: var(--text-muted); font-size: .8rem; gap: .4rem;
}
.ptr-indicator.active { height: 48px; }
.ptr-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Page transitions ───────────────────────────────────── */
.page-out {
  animation: fadeOut .15s ease forwards;
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-4px); }
}

/* ── Trending tag chip ──────────────────────────────────── */
.tag-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .8rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}
.tag-chip--hot { border-color: rgba(255,69,0,.3); color: #ff6b35; }

/* ── Fan/Subscriber row ─────────────────────────────────── */
.fan-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.fan-row:last-child { border-bottom: none; }
.fan-avatar {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.fan-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff; font-weight: 700; font-size: .85rem;
}

/* ── Stat highlight card ─────────────────────────────────── */
.stat-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.stat-highlight::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}

/* ── Chart placeholder ───────────────────────────────────── */
.chart-placeholder {
  height: 120px;
  background: linear-gradient(180deg,
    rgba(232,25,91,.15) 0%,
    rgba(232,25,91,.03) 100%
  );
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-end;
  padding: .5rem;
  gap: 4px;
  overflow: hidden;
}
.chart-bar {
  flex: 1;
  background: var(--grad-accent);
  border-radius: 3px 3px 0 0;
  opacity: .7;
  min-height: 4px;
  transition: opacity .2s;
}
.chart-bar:hover { opacity: 1; }

/* Right rail + content max-widths → layout.css (.l-rail, .l-widget) */

/* ── Conversations redesign (poppen.de style) ───────────── */
.conv-search {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  background: var(--bg-card);
}
.conv-search input {
  border-radius: var(--radius-pill);
  padding: .5rem 1rem;
  font-size: .85rem;
  background: var(--bg-input);
}
.conversation-item { position: relative; }
.conversation-item .online-dot {
  position: absolute;
  bottom: 14px; left: 54px;
  width: 9px; height: 9px;
  border: 2px solid var(--bg-card);
  animation: none;
  background: var(--success);
  border-radius: 50%;
}

/* ── Notification group header ───────────────────────────── */
.notif-group-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  padding: .6rem 1rem .3rem;
  background: var(--bg);
}

/* ── Mobile search form wrapper (position relative for live results) */
.search-wrap { position: relative; }

/* Safe area → layout.css (.l-tabbar) */

/* ── Post card — warmer OF-style ────────────────────────── */
.post-card {
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 679px) {
  .post-card {
    border-left: none; border-right: none;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 6px solid var(--bg);
  }
  .feed { padding: 0; }
}

/* ── Profile header ──────────────────────────────────────── */
.profile-header-img {
  height: 200px;
}

/* ── Creator dashboard chart bars random heights ─────────── */
.chart-bar:nth-child(1)  { height: 40%; }
.chart-bar:nth-child(2)  { height: 65%; }
.chart-bar:nth-child(3)  { height: 50%; }
.chart-bar:nth-child(4)  { height: 80%; }
.chart-bar:nth-child(5)  { height: 55%; }
.chart-bar:nth-child(6)  { height: 90%; }
.chart-bar:nth-child(7)  { height: 70%; }
.chart-bar:nth-child(8)  { height: 95%; }
.chart-bar:nth-child(9)  { height: 75%; }
.chart-bar:nth-child(10) { height: 60%; }
.chart-bar:nth-child(11) { height: 85%; }
.chart-bar:nth-child(12) { height: 100%; }
.chart-bar:nth-child(13) { height: 78%; }
.chart-bar:nth-child(14) { height: 68%; }

/* ── Pull-to-Refresh indicator (F13) ───────────────────── */
#ptr-indicator {
  position: fixed; top: 0; left: 0; right: 0;
  height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: height .15s, opacity .15s;
  z-index: 2000;
}
.ptr-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  transition: transform .1s linear;
}

/* ── Online status dot (F19) ───────────────────────────── */
.online-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
  transition: background .3s;
}
.online-dot.is-online  { background: var(--success); }
.online-dot.is-offline { background: var(--text-muted); }

/* ── Feed tabs — Für dich / Entdecken / Trending ── */
.feed-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.feed-tab {
  flex: 1;
  padding: .85rem .5rem;
  min-height: 2.75rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
  letter-spacing: .02em;
}
.feed-tab:hover { color: var(--text-sub); }
.feed-tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Bookmarks / Liked / Hashtag grid ───────────────────── */
.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── G17: Light Mode ─────────────────────────────────────── */
body.light, html.light body {
  --bg:           #fafafa;
  --bg-card:      #ffffff;
  --bg-card2:     #f4f4f5;
  --bg-input:     #f4f4f5;
  --bg-hover:     #f4f4f5;
  --border:       #e4e4e7;
  --border-light: #d4d4d8;
  --text:         #09090b;
  --text-muted:   #a1a1aa;
  --text-sub:     #71717a;
  --shadow:       0 4px 20px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.04);
}
html.light .card { background: #fff; }
html.light .btn-ghost { border-color: #d4d4d8; color: #71717a; }
html.light .btn-ghost:hover { background: #f4f4f5; color: #09090b; }
html.light .btn-mark-all-read { background: #f4f4f5; border-color: #e4e4e7; color: #71717a; }
html.light .btn-mark-all-read:hover:not(:disabled) { background: #e4e4e7; color: #09090b; border-color: #d4d4d8; }
html.light input, html.light textarea, html.light select { background: #f4f4f5; color: #09090b; border-color: #e4e4e7; }
html.light .chat-bubble-right { background: #e8195b; }
html.light .chat-bubble-left { background: #f4f4f5; color: #09090b; }
html.light .post-card { background: #fff; }
html.light .post-card:hover { background: #fafafa; }
html.light .post-author-name { color: #09090b; }
html.light .post-caption { color: #3f3f46; }
html.light .post-actions { border-top-color: #f4f4f5; }

/* ── G1: Toggle switch ───────────────────────────────────── */
.toggle-switch { display:inline-flex; align-items:center; cursor:pointer; }
.toggle-switch input[type="checkbox"] { position:absolute; opacity:0; width:0; height:0; }
.toggle-track {
  display: inline-block;
  width: 40px; height: 22px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform .2s, background .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); background: #fff; }

/* ── F19: Feed card size variants ─────────────────────────── */
.feed--compact .post-card { margin-bottom:.25rem; }
.feed--compact .post-media { max-height:280px; overflow:hidden; }
.feed--compact .post-media-item { max-height:280px; object-fit:cover; width:100%; }
.feed--large .post-media { max-height:none; }
.feed--large .post-media-item { max-height:80dvh; }

/* ── F12: Lightbox ────────────────────────────────────────── */
#noirly-lightbox { display:none; }
#noirly-lightbox.open { display:flex !important; }

/* ── F16: Online indicator ─────────────────────────────────── */
.online-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  border: 1.5px solid var(--bg);
  margin-left: .3rem;
  vertical-align: middle;
}
.online-dot--away { background: var(--gold); }
.online-dot--offline { background: var(--text-muted); }


/* ════════════════════════════════════════════════════════════
   INSTAGRAM-INSPIRED STYLE OVERRIDES
   Clean, minimal, full-bleed, no borders on content cards
   ════════════════════════════════════════════════════════════ */

/* ── Variables tweak ─────────────────────────────────────── */
:root {
  --post-actions-h: 44px;
  --ig-sep: rgba(255,255,255,.07);
}

/* ── Post action bar: larger icons, more breathing room ──── */
.post-actions {
  display: flex;
  align-items: center;
  padding: .45rem .75rem !important;
  gap: .25rem;
}
.post-actions .btn-action {
  padding: .45rem .4rem;
}
.post-actions .btn-action svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}
/* Like count: bold, closer to icon */
.post-actions [data-like-count] {
  font-size: .88rem;
  font-weight: 600;
  color: #e4e4e7;
}

/* ── Media: full-bleed, no side gaps on mobile ─────────── */
@media (max-width: 679px) {
  .media-wrap {
    margin: 0;
    border-radius: 0;
  }
  .media-wrap img,
  .media-wrap video {
    border-radius: 0;
  }
}

/* ── Caption area: tighter, inline username ─────────────── */
.post-caption {
  padding: .3rem .75rem .6rem;
  font-size: .9rem;
  line-height: 1.5;
}

/* ── Post header: no bottom padding gap ─────────────────── */
.post-header {
  padding-bottom: .3rem;
}

/* ── Three-dot menu button: lighter ─────────────────────── */
#post-menu-btn {
  color: #71717a;
}
#post-menu-btn:hover {
  color: #e4e4e7;
}

/* ── Profile header ─────────────────────────────────────── */
.profile-header-img {
  height: 180px;
}
@media (max-width: 679px) {
  .profile-header-img {
    height: 140px;
  }
}

/* ── Profile avatar: larger on mobile ─────────────────────  */
@media (max-width: 679px) {
  .profile-avatar {
    width: 86px !important;
    height: 86px !important;
    border-width: 3px !important;
  }
}

/* ── Story modal: IG style progress bar ─────────────────── */
#story-modal .story-progress-seg {
  border-radius: 2px;
}

/* ── IG-style follow button: white pill on dark ──────────── */
.btn-follow-ig {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem 1.1rem;
  cursor: pointer;
  transition: opacity .12s;
}
.btn-follow-ig:hover { opacity: .9; }
.btn-follow-ig.following {
  background: transparent;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
}

/* ── Feed toolbar (Alle / Bilder / Videos / Text) ─────────── */
.feed-toolbar {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 2.75rem;
  gap: .25rem;
}

.feed-type-btn {
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .12s, background .12s;
}
.feed-type-btn:hover { color: var(--text-sub); }
.feed-type-btn.active {
  color: var(--text) !important;
  font-weight: 600 !important;
  background: var(--bg-hover) !important;
}

.feed-toolbar > div:last-child {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .2rem;
}

.feed-toolbar-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .4rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .12s, background .12s;
  font-family: inherit;
}
.feed-toolbar-btn:hover { color: var(--text); background: var(--bg-hover); }

/* Light mode */
html.light .feed-toolbar {
  background: var(--bg-card);
  border-color: var(--border);
}
html.light .feed-type-btn.active {
  color: var(--text) !important;
  background: var(--bg-hover) !important;
}

/* ── Feed separator: thin line between posts ─────────────── */
.post-card + .post-card {
  border-top: none;
}

/* ── Notification dot on avatar (for stories) ───────────── */
.post-avatar.has-story {
  box-shadow:
    0 0 0 2px #09090b,
    0 0 0 3.5px #e8195b;
}

/* ── Light mode overrides ───────────────────────────────── */
html.light .feed {
  border-color: rgba(0,0,0,.08);
}
html.light .post-card {
  background: #fff;
  border-bottom-color: rgba(0,0,0,.08);
}
html.light .post-card:hover {
  background: #fff;
}
html.light .stories-bar {
  background: #fff;
  border-color: rgba(0,0,0,.08);
}
html.light .story-avatar {
  border-color: #fff;
}
html.light .story-avatar--placeholder {
  border-color: #fff;
  background: #f4f4f5;
}
html.light .story-name { color: #52525b; }
html.light .feed-tabs {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.08);
}
html.light .feed-tab { color: #a1a1aa; }
html.light .feed-tab.active { color: #09090b; border-bottom-color: #09090b; }
html.light .profile-tabs {
  background: #fff;
  border-color: rgba(0,0,0,.08);
}
html.light .profile-tab { color: #a1a1aa; }
html.light .profile-tab.active { color: #09090b; border-top-color: #09090b; }
html.light .btn-action { color: #09090b; }
html.light .btn-action:hover { color: #000; }
html.light .post-actions [data-like-count] { color: #09090b; }
html.light .post-author-name { color: #09090b !important; }
html.light .post-grid {
  background: rgba(0,0,0,.08);
}
html.light .profile-stat-value { color: #09090b; }
html.light .profile-activity-30-value--accent { color: #be1250; }
html.light .profile-activity-30-value--green { color: #059669; }
html.light .profile-activity-30-value--gold { color: #b45309; }

/* F2: Screenshot/Save protection – Bilder, Videos, Profile, Chats */
.post-media img,
.post-media video,
.media-wrap img,
.media-wrap video,
.media-gallery img,
.media-gallery video,
.profile-header-img,
.profile-avatar,
.profile-avatar-wrap img,
#story-img,
#story-vid,
.chat-bubble img,
.chat-bubble video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
