/* ── Auth pages ───────────────────────────────────────────── */
.auth-card {
  max-width: 400px; margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex; flex-direction: column; align-items: center;
}
.auth-avatar-wrap { position: relative; margin-bottom: 16px; }
.auth-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #f5c0cb; }
.auth-dot { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; background: #4cd964; border-radius: 50%; border: 2px solid #fff; }
.auth-title { font-family: "Fredoka", sans-serif; font-size: 24px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; text-align: center; }
.auth-sub { font-size: 13px; color: #999; margin: 0 0 24px; font-family: Poppins,sans-serif; text-align: center; }
.auth-error { width: 100%; background: #fff0f0; border: 1.5px solid #ffb3b3; border-radius: 12px; padding: 10px 14px; color: #c0392b; font-size: 13px; font-family: Poppins,sans-serif; margin-bottom: 16px; box-sizing: border-box; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.auth-input { width: 100%; padding: 14px 16px; border: 1.5px solid #e8e8e8; border-radius: 14px; font-size: 15px; font-family: Poppins,sans-serif; color: #222; background: #fafafa; box-sizing: border-box; outline: none; transition: border-color .15s; }
.auth-input:focus { border-color: #ef8b9b; background: #fff; }
.auth-input::placeholder { color: #bbb; }
.auth-btn { width: 100%; background: linear-gradient(135deg, #29a9e6, #1c9edf); color: #fff; border: none; border-radius: 999px; padding: 18px; font-size: 16px; font-weight: 600; font-family: Poppins,sans-serif; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(28,158,223,.4); transition: transform .1s; }
.auth-btn:active { transform: scale(.98); }
.auth-legal { font-size: 11px; color: #ccc; text-align: center; font-family: Poppins,sans-serif; margin: 12px 0 0; }
.auth-switch { margin-top: 20px; font-size: 14px; color: #3897f0; font-family: Poppins,sans-serif; text-decoration: none; }
.auth-back { margin-top: 16px; font-size: 13px; color: #bbb; font-family: Poppins,sans-serif; text-decoration: none; }

/* ── Platform nav ─────────────────────────────────────────── */
.pf-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #f0f0f0; }
.pf-nav-logo { font-family: "Fredoka",sans-serif; font-size: 18px; font-weight: 700; color: #e96f85; flex: 1; }
.pf-nav-right { display: flex; align-items: center; gap: 12px; }
.pf-nav-link { font-family: Poppins,sans-serif; font-size: 13px; font-weight: 500; color: #555; text-decoration: none; position: relative; }
.pf-nav-logout { color: #bbb; }
.pf-unread { color: #e96f85; }
.pf-badge { background: #e96f85; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; margin-left: 3px; }

/* ── Profile header ───────────────────────────────────────── */
.pf-main { max-width: 600px; margin: 0 auto; padding-bottom: 60px; }
.pf-header { background: #fff; margin-bottom: 2px; }
.pf-cover-wrap { width: 100%; height: 160px; overflow: hidden; }
.pf-cover { width: 100%; height: 100%; object-fit: cover; }
.pf-profile-row { display: flex; align-items: flex-end; gap: 12px; padding: 0 16px; margin-top: -40px; margin-bottom: 12px; }
.pf-avatar-wrap { position: relative; flex-shrink: 0; }
.pf-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.pf-online-dot { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; background: #4cd964; border-radius: 50%; border: 2px solid #fff; }
.pf-profile-info { padding-bottom: 4px; }
.pf-name { font-family: "Fredoka",sans-serif; font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0; }
.pf-handle { font-family: Poppins,sans-serif; font-size: 12px; color: #999; margin: 2px 0 0; }
.pf-bio { font-family: Poppins,sans-serif; font-size: 13.5px; color: #444; padding: 0 16px 12px; margin: 0; line-height: 1.5; }
.pf-msg-btn { display: block; margin: 0 16px 16px; background: linear-gradient(135deg, #e96f85, #ef8b9b); color: #fff; text-align: center; text-decoration: none; border-radius: 999px; padding: 12px; font-size: 14px; font-weight: 600; font-family: Poppins,sans-serif; box-shadow: 0 4px 14px rgba(233,111,133,.4); }

/* ── Content grid ─────────────────────────────────────────── */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.pf-item { position: relative; aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.pf-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-caption { font-family: Poppins,sans-serif; font-size: 12px; color: #666; padding: 6px 10px; margin: 0; background: #fff; }
.pf-item-locked { filter: blur(12px) brightness(.7); pointer-events: none; }
.pf-item-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f5c0cb, #f0e0f0); }
.pf-lock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 2; filter: none; }

/* ── Subscribe wall ───────────────────────────────────────── */
.pf-wall { position: relative; }
.pf-wall-inner { background: #fff; padding: 32px 24px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.pf-wall-lock { font-size: 40px; margin-bottom: 12px; }
.pf-wall-title { font-family: "Fredoka",sans-serif; font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px; }
.pf-wall-sub { font-family: Poppins,sans-serif; font-size: 13px; color: #999; margin: 0 0 20px; }
.pf-wall-btn { display: inline-block; background: linear-gradient(135deg, #29a9e6, #1c9edf); color: #fff; text-decoration: none; border-radius: 999px; padding: 14px 40px; font-size: 16px; font-weight: 600; font-family: Poppins,sans-serif; box-shadow: 0 8px 24px rgba(28,158,223,.4); position: relative; overflow: hidden; }
.pf-wall-legal { font-size: 11px; color: #ccc; font-family: Poppins,sans-serif; margin-top: 12px; }
.pf-grid-blurred { opacity: .5; }
.pf-empty { font-family: Poppins,sans-serif; font-size: 14px; color: #bbb; text-align: center; padding: 40px 24px; background: #fff; }

/* ── Voice note in members ────────────────────────────────── */
.pf-voice-note { display: inline-flex; align-items: center; gap: 10px; background: #f0f0f0; border-radius: 18px 18px 18px 4px; padding: 10px 14px; margin: 8px 12px; }
.pf-voice-play { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* ── DM chat ──────────────────────────────────────────────── */
.dm-wrap { display: flex; flex-direction: column; height: 100dvh; max-width: 600px; margin: 0 auto; background: #fff; }
.dm-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; background: #fff; flex-shrink: 0; }
.dm-back { font-size: 20px; color: #3897f0; text-decoration: none; line-height: 1; }
.dm-header-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #f5c0cb; }
.dm-header-name { font-family: Poppins,sans-serif; font-size: 14px; font-weight: 600; color: #111; }
.dm-header-status { font-family: Poppins,sans-serif; font-size: 11px; color: #4cd964; }
.dm-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dm-intro { text-align: center; padding: 20px 0 10px; }
.dm-intro-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #f5c0cb; margin-bottom: 8px; }
.dm-intro-text { font-family: Poppins,sans-serif; font-size: 14px; font-weight: 600; color: #111; margin: 0 0 4px; }
.dm-intro-sub { font-family: Poppins,sans-serif; font-size: 12px; color: #aaa; margin: 0; }
.dm-msg { display: flex; align-items: flex-end; gap: 8px; }
.dm-msg-fan { flex-direction: row-reverse; }
.dm-msg-sarah { flex-direction: row; }
.dm-msg-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dm-bubble { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-family: Poppins,sans-serif; font-size: 14px; line-height: 1.4; word-break: break-word; }
.dm-msg-fan .dm-bubble { background: #1c9edf; color: #fff; border-bottom-right-radius: 4px; }
.dm-msg-sarah .dm-bubble { background: #f0f0f0; color: #222; border-bottom-left-radius: 4px; }
.dm-footer { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #f0f0f0; background: #fff; flex-shrink: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.dm-input { flex: 1; padding: 12px 16px; border: 1.5px solid #e8e8e8; border-radius: 999px; font-size: 15px; font-family: Poppins,sans-serif; outline: none; background: #fafafa; }
.dm-input:focus { border-color: #ef8b9b; }
.dm-send { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #29a9e6, #1c9edf); border: none; color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-nav { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; z-index: 10; }
.admin-nav-title { font-family: Poppins,sans-serif; font-size: 16px; font-weight: 600; color: #111; flex: 1; }
.admin-nav-link { font-family: Poppins,sans-serif; font-size: 13px; color: #3897f0; text-decoration: none; }
.admin-wrap { max-width: 700px; margin: 0 auto; padding: 24px 16px 60px; display: flex; flex-direction: column; gap: 20px; }
.admin-section { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.admin-section-title { font-family: Poppins,sans-serif; font-size: 15px; font-weight: 600; color: #111; margin: 0 0 16px; }
.admin-input { width: 100%; padding: 12px 14px; border: 1.5px solid #e8e8e8; border-radius: 12px; font-size: 14px; font-family: Poppins,sans-serif; background: #fafafa; outline: none; box-sizing: border-box; margin-bottom: 10px; }
.admin-input:focus { border-color: #ef8b9b; }
.admin-btn { background: #e96f85; color: #fff; border: none; border-radius: 999px; padding: 12px 28px; font-size: 14px; font-weight: 600; font-family: Poppins,sans-serif; cursor: pointer; }
.upload-form { display: flex; flex-direction: column; gap: 10px; }
.upload-drop { border: 2px dashed #e8e8e8; border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; transition: border-color .15s; }
.upload-drop:hover { border-color: #ef8b9b; }
.upload-label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.upload-icon { font-size: 32px; }
.upload-text { font-family: Poppins,sans-serif; font-size: 13px; color: #888; }
.upload-filename { font-family: Poppins,sans-serif; font-size: 12px; color: #e96f85; font-weight: 500; }
.upload-locked-row { display: flex; align-items: center; }
.upload-locked-label { font-family: Poppins,sans-serif; font-size: 13px; color: #555; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-content-list { display: flex; flex-direction: column; gap: 10px; }
.admin-content-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fafafa; border-radius: 12px; }
.admin-content-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f0f0f0; }
.admin-content-thumb img, .admin-content-thumb video { width: 100%; height: 100%; object-fit: cover; }
.admin-voice-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.admin-content-meta { display: flex; flex-direction: column; gap: 2px; }
.admin-content-type { font-family: Poppins,sans-serif; font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; }
.admin-content-lock { font-family: Poppins,sans-serif; font-size: 11px; color: #888; }
.admin-content-caption { font-family: Poppins,sans-serif; font-size: 12px; color: #555; }
.admin-delete-btn { background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; }
.admin-fan-list { display: flex; flex-direction: column; gap: 8px; }
.admin-fan-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fafafa; border-radius: 12px; text-decoration: none; transition: background .15s; }
.admin-fan-row:hover { background: #f0f0f0; }
.admin-fan-unread { background: #fff0f4; }
.admin-fan-avatar { width: 38px; height: 38px; border-radius: 50%; background: #f5c0cb; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #c0546a; font-family: Poppins,sans-serif; font-size: 15px; flex-shrink: 0; }
.admin-fan-email { font-family: Poppins,sans-serif; font-size: 14px; font-weight: 500; color: #111; }
.admin-fan-meta { font-family: Poppins,sans-serif; font-size: 11px; color: #999; margin-top: 2px; }
.admin-unread-badge { background: #e96f85; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: auto; font-family: Poppins,sans-serif; }
.admin-empty { font-family: Poppins,sans-serif; font-size: 13px; color: #bbb; text-align: center; padding: 20px 0 0; }
