/* ═══════════════════════════════════════════════
   ACTOPICS — Mobile Gallery App CSS
   Theme: Red / Off-white / Blue / Grey
═══════════════════════════════════════════════ */

:root {
  --red:       #C62828;
  --red-dark:  #8E1A1A;
  --red-light: #FFEBEE;
  --blue:      #1565C0;
  --blue-dark: #0D47A1;
  --blue-light:#E3F2FD;
  --offwhite:  #F5F5EE;
  --grey:      #757575;
  --grey-lt:   #EEEEEE;
  --grey-bd:   #BDBDBD;
  --white:     #FFFFFF;
  --dark:      #1A1A1A;
  --card-bg:   #FFFFFF;
  --text:      #212121;
  --text-sec:  #616161;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-md: 0 4px 24px rgba(0,0,0,.15);
  --hdr-h:     56px;
  --nav-h:     60px;
  --transition: .2s ease;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; width: 100%; overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--offwhite); color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
/* Prevent long-press / right-click on media */
img, video {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.media-actionable img,
.media-actionable video { pointer-events: auto; }

/* ── LOADING ────────────────────────────────── */
#loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .4s, visibility .4s;
}
#loading.fade-out { opacity: 0; visibility: hidden; }
.load-inner { text-align: center; color: #fff; }
.load-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.load-logo img {
  height: 56px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
/* Fallback when logo.png is absent */
.load-logo-text {
  font-size: 36px; font-weight: 700; letter-spacing: -1px; color: #fff;
}
.load-tag { font-size: 14px; opacity: .75; margin-bottom: 32px; }
.spinner {
  width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ──────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: #fff;
  padding: 10px 20px; border-radius: 24px;
  font-size: 13px; font-weight: 500; z-index: 8000;
  transition: transform .3s ease, opacity .3s ease; opacity: 0;
  white-space: nowrap; max-width: 90vw;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.success { background: #2E7D32; }
#toast.error   { background: #C62828; }
#toast.info    { background: var(--blue); }

/* ── PANELS ─────────────────────────────────── */
.panel {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--offwhite);
  transition: opacity .2s;
}
.panel.hidden { display: none; }
.panel.active { display: flex; }

/* ── HEADER ─────────────────────────────────── */
.hdr {
  height: var(--hdr-h); min-height: var(--hdr-h);
  background: var(--red);
  display: flex; align-items: center; padding: 0 12px;
  gap: 10px; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hdr-red  { background: var(--red); }
.hdr-blue { background: var(--blue); }
.hdr-menu {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-menu:active { background: rgba(255,255,255,.15); }
.hdr-brand {
  flex: 1; font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: -.5px;
}
/* Logo image in header */
.hdr-logo {
  flex: 1; height: 28px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hdr-btn {
  background: rgba(255,255,255,.2); color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.4);
  white-space: nowrap;
}
.hdr-btn:active { background: rgba(255,255,255,.35); }

/* ── PANEL BODY / TABS ──────────────────────── */
.panel-body {
  flex: 1; overflow: hidden; position: relative;
}
.tab {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 12px calc(var(--nav-h) + 8px);
  display: none;
}
.tab.active { display: block; }

/* ── BOTTOM NAV ─────────────────────────────── */
.btm-nav {
  height: var(--nav-h); display: flex;
  background: var(--white);
  border-top: 1px solid var(--grey-lt);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  z-index: 100; flex-shrink: 0;
}
.nav-red  { background: var(--white); }
.nav-blue { background: var(--white); }
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; color: var(--grey); transition: color var(--transition);
  position: relative;
}
.nav-btn.active { color: var(--red); }
.nav-red .nav-btn.active  { color: var(--red); }
.nav-blue .nav-btn.active { color: var(--blue); }
.nav-btn::after {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform var(--transition);
  border-radius: 0 0 2px 2px;
}
.nav-red .nav-btn::after   { background: var(--red); }
.nav-blue .nav-btn::after  { background: var(--blue); }
.nav-btn.active::after { transform: scaleX(1); }
.nv-ic { font-size: 20px; line-height: 1; }
.nv-lb { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
/* 5-button nav — slightly smaller icon to keep everything comfortable */
.btm-nav:has(.nav-btn:nth-child(5)) .nv-ic { font-size: 18px; }
.btm-nav:has(.nav-btn:nth-child(5)) .nv-lb { font-size: 9px; }

/* ── HOME MEDIA GRID (Pinterest / masonry) ────────────────────── */
.home-media-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 8px; flex-shrink: 0;
}
.home-media-title { font-size: 16px; font-weight: 700; color: var(--text); }
.home-refresh-btn {
  background: var(--offwhite); border: 1.5px solid var(--grey-lt);
  border-radius: 50%; width: 34px; height: 34px; font-size: 16px;
  cursor: pointer; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease; color: var(--text);
}
.home-refresh-btn:active { transform: rotate(180deg); opacity: .7; }

.home-masonry {
  columns: 2; column-gap: 7px;
}
.mm-loader { display: block; text-align: center; padding: 40px 0; }
.mm-empty  { column-span: all; }

.mm-card {
  break-inside: avoid; display: inline-block; width: 100%;
  margin-bottom: 7px; border-radius: 10px; overflow: hidden;
  background: var(--card-bg); box-shadow: var(--shadow);
  cursor: pointer;
}
.mm-thumb {
  position: relative; overflow: hidden;
  display: block; width: 100%;
}
.mm-thumb img,
.mm-thumb video {
  width: 100%; height: auto; display: block;
  pointer-events: none; user-select: none;
  border-radius: 0;
}
.mm-vid-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 9px; pointer-events: none;
}
.mm-like-badge {
  position: absolute; bottom: 5px; right: 6px;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: 9px; padding: 2px 7px; border-radius: 8px;
  pointer-events: none;
}
.mm-info {
  padding: 6px 8px 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.mm-alb-link {
  font-size: 11px; font-weight: 700;
  color: var(--blue); pointer-events: auto; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4;
}
.mm-cr-link {
  font-size: 10px; color: var(--grey);
  pointer-events: auto; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4;
}
.mm-alb-link:active { opacity: .65; }
.mm-cr-link:active  { opacity: .65; }

/* ── PANEL SWITCHER SHEET ───────────────────── */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sheet-wrap.hidden { display: none; }
.sheet-bg {
  flex: 1; background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.sheet-body {
  background: var(--white); border-radius: 20px 20px 0 0;
  padding: 16px 20px 32px;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } }
.drag-handle {
  width: 40px; height: 4px; background: var(--grey-lt);
  border-radius: 2px; margin: 0 auto 20px;
}
.sheet-lbl { font-size: 11px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.sheet-opt {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 14px 12px; border-radius: var(--radius);
  margin-bottom: 6px; transition: background var(--transition);
  text-align: left;
}
.sheet-opt:active { background: var(--grey-lt); }
.sopt-ic { font-size: 28px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--offwhite); border-radius: 12px; flex-shrink: 0; }
.sopt-text b { display: block; font-size: 15px; font-weight: 600; }
.sopt-text small { font-size: 12px; color: var(--grey); }

/* ── ENTRY SCREEN (Creator / Admin) ─────────── */
.entry-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; gap: 12px;
  overflow-y: auto;
}
.entry-icon { font-size: 64px; margin-bottom: 8px; }
.entry-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.entry-sub { font-size: 14px; color: var(--grey); text-align: center; margin-bottom: 16px; }

/* Creator entry screen (panel body needs to flex) */
#panel-creator,
#panel-admin { display: flex; flex-direction: column; }
#creator-entry,
#admin-entry {
  display: flex; flex-direction: column; flex: 1;
}
#creator-entry .entry-wrap {
  max-height: calc(100vh - var(--hdr-h));
  overflow-y: auto;
}

/* Creator dashboard needs explicit flex layout so tabs are visible */
#creator-dash {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── CARDS / ALBUM GRID ─────────────────────── */
.albums-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding-bottom: 8px;
}
.alb-card {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
  pointer-events: auto;
}
.alb-card:active { transform: scale(.97); box-shadow: var(--shadow-md); }
.alb-cover {
  width: 100%; aspect-ratio: 1; background: var(--grey-lt);
  object-fit: cover; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.alb-cover img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.alb-cover.locked img { filter: blur(14px); transform: scale(1.1); }
.lock-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.6); color: #fff;
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.alb-cover-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--red-light), var(--grey-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.alb-info { padding: 10px; }
.alb-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alb-meta { font-size: 11px; color: var(--grey); display: flex; gap: 6px; align-items: center; }
.alb-creator { font-size: 11px; color: var(--red); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alb-badge {
  display: inline-block; background: var(--red-light); color: var(--red);
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}

/* ── MEDIA GRID ─────────────────────────────── */
.media-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 4px 0;
}
.med-thumb {
  aspect-ratio: 1; background: var(--grey-lt);
  overflow: hidden; cursor: pointer; position: relative;
  pointer-events: auto;
}
.med-thumb img, .med-thumb video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.med-thumb .vid-badge {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0,0,0,.7); color: #fff;
  border-radius: 4px; font-size: 10px; padding: 1px 5px;
}
.med-thumb:active { opacity: .8; }

/* ── MEDIA VIEWER ───────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--offwhite);
  display: flex; flex-direction: column;
  animation: ovIn .2s ease;
}
.overlay.hidden { display: none; }
.ov-dark { background: #000; }
@keyframes ovIn { from { opacity: 0; transform: translateX(20px); } }
.ov-hdr {
  height: var(--hdr-h); background: var(--red);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.back-btn {
  color: #fff; font-size: 22px; font-weight: 600;
  padding: 8px; margin: -8px;
}
.ov-title { flex: 1; font-size: 15px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-hdr-action { background: rgba(255,255,255,.2); color: #fff; padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.35); }
.ov-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.close-ov {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  color: #fff; font-size: 22px; width: 40px; height: 40px;
  background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.media-view-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; padding: 56px 0 80px;
}
.media-view-wrap img,
.media-view-wrap video {
  max-width: 100%; max-height: 100%;
  object-fit: contain; pointer-events: none;
}
.media-view-wrap video { pointer-events: auto; }
.media-info-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); padding: 12px 16px 24px;
  color: #fff;
}
.media-info-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.media-actions-row {
  display: flex; gap: 8px; align-items: center;
}
.like-btn, .dislike-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.15); color: #fff;
  border-radius: 20px; padding: 6px 14px; font-size: 13px;
  font-weight: 600; border: 1px solid rgba(255,255,255,.25);
  pointer-events: auto; cursor: pointer;
}
.like-btn.active  { background: var(--red); border-color: var(--red); }
.dislike-btn.active { background: var(--grey); border-color: var(--grey); }

/* Context links shown in media viewer when opened from home grid */
.media-ctx-links {
  display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px;
}
.media-ctx-alb,
.media-ctx-cr {
  font-size: 11px; font-weight: 700;
  padding: 4px 11px; border-radius: 12px;
  pointer-events: auto; cursor: pointer;
}
.media-ctx-alb { background: rgba(21,101,192,.25); color: #90caf9; }
.media-ctx-cr  { background: rgba(198,40,40,.2);   color: #ef9a9a; }
.media-ctx-alb:active, .media-ctx-cr:active { opacity: .7; }

/* ── SEARCH ─────────────────────────────────── */
.search-wrap { padding: 4px 0 12px; }
.search-bar {
  display: flex; gap: 8px; align-items: center;
  background: var(--white); border-radius: 24px;
  border: 1px solid var(--grey-lt); padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1; font-size: 14px; background: none; border: none;
}
.search-bar button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 5px 14px; border-radius: 16px;
  border: 1.5px solid var(--grey-bd); font-size: 12px;
  font-weight: 600; color: var(--grey); background: var(--white);
  transition: all var(--transition);
}
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.search-section-title {
  font-size: 12px; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: 1px;
  margin: 16px 0 8px;
}

/* ── CREATOR CARD ───────────────────────────── */
.creator-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); margin-bottom: 8px;
  cursor: pointer; pointer-events: auto;
}
.creator-card:active { background: var(--offwhite); }
.cr-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--grey-lt);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cr-avatar img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cr-info { flex: 1; overflow: hidden; }
.cr-name { font-size: 14px; font-weight: 600; }
.cr-username { font-size: 12px; color: var(--grey); }
.cr-tagline { font-size: 12px; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── USER PROFILE ───────────────────────────── */
.profile-header {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 12px; background: var(--grey-lt);
  overflow: hidden; border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.profile-username { font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.profile-stats { display: flex; gap: 20px; justify-content: center; }
.stat-item { text-align: center; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--red); }
.stat-lbl { font-size: 11px; color: var(--grey); }

/* ── CREATOR PROFILE (in creator panel) ──────── */
.creator-pub-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 32px 20px 24px; text-align: center; color: #fff;
}
.pub-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 12px; background: rgba(255,255,255,.2);
  overflow: hidden; border: 3px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.pub-avatar img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pub-name { font-size: 20px; font-weight: 700; }
.pub-username { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.pub-tagline { font-size: 13px; opacity: .9; }
.pub-stats { display: flex; justify-content: center; gap: 32px; margin-top: 16px; }
.pub-stat { text-align: center; }
.pub-stat strong { display: block; font-size: 18px; font-weight: 700; }
.pub-stat span { font-size: 11px; opacity: .8; }
.follow-btn {
  margin-top: 16px; background: #fff; color: var(--red);
  padding: 8px 28px; border-radius: 20px; font-size: 14px;
  font-weight: 700; pointer-events: auto; cursor: pointer;
}
.follow-btn.following { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ── SECTION TITLES ─────────────────────────── */
.section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  color: var(--text);
}
.section-sub { font-size: 12px; color: var(--grey); margin-bottom: 10px; }

/* ── BUTTONS ────────────────────────────────── */
.btn-primary {
  background: var(--red); color: #fff; border-radius: 24px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; transition: background var(--transition);
  pointer-events: auto; cursor: pointer;
}
.btn-primary:active { background: var(--red-dark); }
.btn-primary.blue { background: var(--blue); }
.btn-primary.blue:active { background: var(--blue-dark); }
.btn-ghost {
  background: none; color: var(--grey); border-radius: 24px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--grey-bd);
  transition: background var(--transition);
  pointer-events: auto; cursor: pointer;
}
.btn-ghost:active { background: var(--grey-lt); }
.btn-sm {
  padding: 6px 14px; font-size: 12px; border-radius: 16px;
}
.btn-icon-round {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grey-lt); font-size: 18px; cursor: pointer;
  pointer-events: auto;
}
.w100 { width: 100%; }
.mt12 { margin-top: 12px; }
.mt8  { margin-top: 8px; }

/* FAB (Floating Action Button) */
.fab {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 28px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(198,40,40,.4);
  z-index: 200; pointer-events: auto; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fab:active { transform: scale(.92); box-shadow: 0 2px 8px rgba(198,40,40,.5); }

/* ── FORMS ──────────────────────────────────── */
.form-input {
  width: 100%; background: var(--offwhite);
  border: 1.5px solid var(--grey-lt); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; color: var(--text);
  transition: border-color var(--transition);
  display: block; margin-bottom: 10px;
}
.form-input:focus { border-color: var(--red); background: var(--white); }
.form-input.blue:focus { border-color: var(--blue); }
select.form-input { -webkit-appearance: none; appearance: none; }
.form-note { font-size: 12px; color: var(--grey); text-align: center; line-height: 1.5; }
.form-group { margin-bottom: 12px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--grey); margin-bottom: 4px; display: block; text-transform: uppercase; letter-spacing: .5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ── TOGGLE SWITCH ──────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--grey-lt);
  margin-bottom: 10px;
}
.toggle-lbl { font-size: 14px; font-weight: 500; }
.toggle-sw { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.sw-track {
  position: absolute; inset: 0; background: var(--grey-lt);
  border-radius: 12px; cursor: pointer;
  transition: background var(--transition);
}
.sw-track::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle-sw input:checked + .sw-track { background: var(--red); }
.toggle-sw input:checked + .sw-track::before { transform: translateX(20px); }

/* ── MODALS ─────────────────────────────────── */
.modal-wrap {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-wrap.hidden { display: none; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--white); border-radius: 20px 20px 0 0;
  width: 100%; max-height: 92vh;
  padding: 8px 20px 32px;
  animation: sheetIn .25s ease;
}
.modal-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes sheetIn { from { transform: translateY(100%); } }
.modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px; border-bottom: 1px solid var(--grey-lt);
  margin-bottom: 14px;
}
.modal-hdr h3 { font-size: 16px; font-weight: 700; }
.close-x {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grey-lt); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; cursor: pointer;
}
.modal-tabs {
  display: flex; border-bottom: 2px solid var(--grey-lt);
  margin-bottom: 16px;
}
.mtab {
  flex: 1; padding: 12px; font-size: 14px; font-weight: 600;
  color: var(--grey); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
}
.mtab.active { color: var(--red); border-bottom-color: var(--red); }
.modal-icon { font-size: 40px; text-align: center; margin-bottom: 8px; }
.modal-ttl { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--grey); text-align: center; margin-bottom: 16px; }
.modal-row {
  display: flex; gap: 10px; justify-content: flex-end;
}
.modal-row .btn-primary, .modal-row .btn-ghost {
  flex: 1;
}

/* ── COVER / AVATAR UPLOAD ──────────────────── */
.cover-upload {
  width: 100%; aspect-ratio: 16/7; background: var(--offwhite);
  border-radius: var(--radius-sm); border: 2px dashed var(--grey-bd);
  overflow: hidden; cursor: pointer; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; position: relative;
}
.cover-upload img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#alb-cover-placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--grey); }
#alb-cover-placeholder span { font-size: 28px; }
#alb-cover-placeholder small { font-size: 12px; }
.avatar-upload {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--grey-lt); border: 2px dashed var(--grey-bd);
  margin: 0 auto 16px; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; pointer-events: auto; position: relative;
}
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.av-placeholder { font-size: 28px; }

/* ── FILE UPLOAD AREA ───────────────────────── */
.file-drop {
  border: 2px dashed var(--grey-bd); border-radius: var(--radius);
  padding: 24px; text-align: center; background: var(--offwhite);
  cursor: pointer; margin-bottom: 12px; pointer-events: auto;
}
.file-drop:active { background: var(--grey-lt); }
.drop-icon { font-size: 36px; margin-bottom: 8px; }
.file-drop p { font-size: 14px; font-weight: 500; color: var(--text-sec); }
.file-drop small { font-size: 12px; color: var(--grey); }
.media-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-bottom: 12px;
}
.media-preview-item {
  aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  background: var(--grey-lt); position: relative;
}
.media-preview-item img,
.media-preview-item video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.media-preview-item .vid-tag {
  position: absolute; bottom: 2px; left: 2px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 9px; padding: 1px 4px; border-radius: 3px;
}

/* ── ALBUM EDIT PANEL ───────────────────────── */
.edit-section {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.edit-section-title {
  font-size: 13px; font-weight: 700; color: var(--grey);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.media-edit-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--grey-lt);
}
.media-edit-item:last-child { border-bottom: none; }
.med-edit-thumb {
  width: 52px; height: 52px; border-radius: 6px;
  overflow: hidden; background: var(--grey-lt); flex-shrink: 0;
}
.med-edit-thumb img, .med-edit-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.med-edit-info { flex: 1; overflow: hidden; }
.med-edit-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-edit-type { font-size: 11px; color: var(--grey); }
.med-edit-actions { display: flex; gap: 4px; }
.btn-danger { background: var(--red-light); color: var(--red); padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; pointer-events: auto; cursor: pointer; }
.btn-neutral { background: var(--grey-lt); color: var(--grey); padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; pointer-events: auto; cursor: pointer; }

/* ── ADMIN CARDS ────────────────────────────── */
.admin-creator-card {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.admin-card-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-card-info { flex: 1; overflow: hidden; }
.admin-card-name { font-size: 14px; font-weight: 600; }
.admin-card-sub { font-size: 12px; color: var(--grey); }
.status-badge {
  padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.status-pending  { background: #FFF3E0; color: #E65100; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-rejected { background: var(--red-light); color: var(--red); }
.status-blocked  { background: #F3E5F5; color: #6A1B9A; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-approve { background: #E8F5E9; color: #2E7D32; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; pointer-events: auto; cursor: pointer; }
.btn-reject  { background: var(--red-light); color: var(--red); padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; pointer-events: auto; cursor: pointer; }
.btn-block   { background: #F3E5F5; color: #6A1B9A; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; pointer-events: auto; cursor: pointer; }
.btn-view    { background: var(--blue-light); color: var(--blue); padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; pointer-events: auto; cursor: pointer; }

/* ── ANALYTICS ──────────────────────────────── */
.analytics-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.analytics-tabs::-webkit-scrollbar { display: none; }
.analytics-tab {
  flex-shrink: 0; padding: 6px 16px; border-radius: 16px;
  font-size: 12px; font-weight: 600; border: 1.5px solid var(--grey-bd);
  color: var(--grey); background: var(--white); pointer-events: auto; cursor: pointer;
  transition: all var(--transition);
}
.analytics-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.analytics-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.analytics-num { font-size: 28px; font-weight: 700; color: var(--red); }
.analytics-label { font-size: 12px; color: var(--grey); margin-top: 2px; }
.analytics-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--grey-lt); }
.analytics-row:last-child { border-bottom: none; }
.analytics-row-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.analytics-row-val { font-size: 13px; font-weight: 700; color: var(--red); flex-shrink: 0; margin-left: 8px; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }

/* ── EMPTY STATE ────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--grey);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-sec); }
.empty-sub { font-size: 13px; }

/* ── LOADING INLINE ─────────────────────────── */
.inline-loader {
  display: flex; justify-content: center; align-items: center;
  padding: 40px; color: var(--grey);
}

/* ── UPLOAD PROGRESS ────────────────────────── */
.upload-progress {
  height: 4px; background: var(--grey-lt); border-radius: 2px;
  overflow: hidden; margin-top: 8px;
}
.upload-progress-bar {
  height: 100%; background: var(--red); border-radius: 2px;
  transition: width .3s ease; width: 0%;
}

/* Upload overlay on image/video containers */
.upload-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; z-index: 5; border-radius: inherit;
  pointer-events: none;
}
.upload-overlay-label {
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.upload-overlay-track {
  width: 78%; height: 5px; background: rgba(255,255,255,.25);
  border-radius: 3px; overflow: hidden;
}
.upload-overlay-bar {
  height: 100%; background: #fff; border-radius: 3px;
  transition: width .2s ease; width: 0%;
}
.upload-overlay-pct {
  color: rgba(255,255,255,.85); font-size: 10px; font-weight: 600;
}

/* Media upload status row (shown during multi-file upload) */
.upload-status-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--grey-lt);
  font-size: 13px;
}
.upload-status-row:last-child { border-bottom: none; }
.upload-status-row .upl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status-row .upl-state { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.upload-status-row .upl-bar-wrap { width: 60px; height: 4px; background: var(--grey-lt); border-radius: 2px; overflow: hidden; }
.upload-status-row .upl-bar { height: 100%; background: var(--red); border-radius: 2px; transition: width .2s; width: 0%; }

/* ── CHIPS / TAGS ───────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
  background: var(--red-light); color: var(--red);
  padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.tag.blue { background: var(--blue-light); color: var(--blue); }

/* ── INFO ROWS ──────────────────────────────── */
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grey-lt); }
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.info-content { flex: 1; }
.info-label { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.info-value { font-size: 14px; color: var(--text); margin-top: 2px; }

/* ── ALBUM DETAIL HEADER ────────────────────── */
.album-detail-header {
  margin-bottom: 12px;
}
.album-detail-cover {
  width: 100%; aspect-ratio: 16/9; background: var(--grey-lt);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.album-detail-cover img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.album-detail-cover.locked img { filter: blur(20px); transform: scale(1.1); }
.album-detail-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.album-detail-meta { font-size: 13px; color: var(--grey); margin-bottom: 8px; }

/* ── UTILITY ────────────────────────────────── */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-grey { color: var(--grey); }
.bold { font-weight: 700; }
.divider { height: 1px; background: var(--grey-lt); margin: 12px 0; }

/* ── SWIPE NAV INDICATOR ────────────────────── */
.media-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 5; pointer-events: auto; cursor: pointer;
}
.media-nav-prev { left: 8px; }
.media-nav-next { right: 8px; }

/* ── SCROLLBAR HIDE ─────────────────────────── */
.panel-body, .tab, .ov-body, .modal-scroll { scrollbar-width: none; }
.panel-body::-webkit-scrollbar,
.tab::-webkit-scrollbar,
.ov-body::-webkit-scrollbar,
.modal-scroll::-webkit-scrollbar { display: none; }

/* ── CREATORS TAB ────────────────────────────── */
.creators-search-wrap { padding: 4px 0 10px; }

/* Filter / sort button inside search bar */
.cr-filter-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--grey-lt); color: var(--text);
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  pointer-events: auto; cursor: pointer;
  transition: background var(--transition);
}
.cr-filter-btn:active { background: var(--grey-bd); }

/* Sort badge below the search bar */
.cr-sort-badge {
  font-size: 11px; color: var(--grey); font-weight: 600;
  padding: 4px 4px 2px; letter-spacing: .2px;
}

/* Stats row (followers + albums) inside creator card */
.cr-stats {
  display: flex; gap: 12px; font-size: 11px;
  color: var(--grey); margin-top: 5px; font-weight: 500;
}

/* Arrow indicator on right of creator card */
.cr-arrow {
  font-size: 20px; color: var(--grey-bd); flex-shrink: 0;
  display: flex; align-items: center;
}

/* Active sort option in sort sheet */
.sort-sheet-opt.active { background: var(--red-light); }
.sort-sheet-opt.active b { color: var(--red); }

/* ── FEATURE TOGGLE BUTTON (creator album cards) ── */
/* Card needs relative positioning for the abs button */
.alb-card { position: relative; }

.feat-toggle-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  cursor: pointer; pointer-events: auto; z-index: 5;
  transition: transform .15s, background .15s;
}
.feat-toggle-btn:active { transform: scale(.86); }
.feat-toggle-btn.feat-on { background: #FFF9C4; }

/* ── ADMIN AD FORM CHIPS ─────────────────────────────────────────── */
.adm-chips {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none; margin-bottom: 4px;
}
.adm-chips::-webkit-scrollbar { display: none; }
.adm-chips-wrap { flex-wrap: wrap; overflow-x: visible; }
.adm-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--grey-bd); font-size: 12px; font-weight: 600;
  color: var(--grey); background: var(--white); pointer-events: auto;
  transition: all var(--transition); white-space: nowrap;
}
.adm-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.adm-chip:active { opacity: .8; }

/* ── IN-APP AD STYLES ────────────────────────────────────────────── */
/* Injected inline ads (top / bottom / between-cards / sticky) */
.ad-injected {
  position: relative; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px;
}
.ad-lbl-badge {
  position: absolute; top: 5px; left: 7px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase;
  background: rgba(0,0,0,.32); color: rgba(255,255,255,.95);
  padding: 1px 6px; border-radius: 5px; pointer-events: none;
}
.ad-lbl-dark { background: rgba(0,0,0,.55); }

.ad-inner {
  display: flex; align-items: stretch; min-height: 72px;
  border-radius: var(--radius); overflow: hidden;
  pointer-events: auto; cursor: pointer;
  box-shadow: var(--shadow);
}
.ad-img {
  width: 96px; flex-shrink: 0; object-fit: cover; pointer-events: none;
}
.ad-text-wrap {
  flex: 1; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.ad-headline  { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ad-body-txt  { font-size: 12px; opacity: .88; line-height: 1.4; }
.ad-cta-btn {
  align-self: flex-start; margin-top: 8px;
  padding: 5px 14px; border-radius: 14px; border: none;
  font-size: 12px; font-weight: 700; cursor: pointer; pointer-events: auto;
}

/* Aggressive style — bolder, bigger */
.ad-style-aggressive .ad-inner {
  box-shadow: 0 3px 18px rgba(0,0,0,.22); min-height: 100px;
}
.ad-style-aggressive .ad-headline { font-size: 16px; }
.ad-style-aggressive .ad-img      { width: 120px; }

/* Bottom-injected ad */
.ad-pos-bottom, .ad-pos-sticky-bottom { margin-top: 12px; margin-bottom: 0; }

/* ── POPUP / INTERSTITIAL AD ─────────────────────────────────────── */
.ad-popup-ov {
  position: fixed; inset: 0; z-index: 6000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ad-popup-ov.hidden { display: none; }
.ad-popup-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.62); backdrop-filter: blur(4px);
}
.ad-popup-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 16px;
  overflow: hidden; max-width: 360px; width: 100%;
  box-shadow: 0 10px 48px rgba(0,0,0,.35);
}
.ad-popup-box .ad-inner { min-height: 160px; border-radius: 0; flex-direction: column; }
.ad-popup-box .ad-img    { width: 100%; height: 140px; }
.ad-popup-close {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.38); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; cursor: pointer; border: none;
}

/* ── FLOATING AD ─────────────────────────────────────────────────── */
.ad-floating {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px); right: 12px;
  z-index: 4500; width: 210px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,.28);
}
.ad-floating .ad-inner { min-height: 80px; border-radius: 0; flex-direction: column; }
.ad-floating .ad-img   { width: 100%; height: 80px; }
.ad-float-close {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.38); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto; cursor: pointer;
}

/* ── LOCK SCREEN ─────────────────────────────────────────────────── */
.lock-cover-wrap {
  position: relative; width: 100%; height: 180px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.lock-cover-wrap img { position: absolute; inset: 0; }
.lock-cv-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: rgba(0,0,0,.35);
}
.lock-screen {
  padding: 20px 16px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
}
.lock-s-title {
  font-size: 20px; font-weight: 700; color: var(--dark);
}
.lock-s-by {
  font-size: 13px; color: var(--grey);
}
.lock-s-msg {
  font-size: 13px; color: var(--grey); margin: 0;
}
.lock-pw-hint {
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  background: #e8f5e9; color: #2e7d32;
  font-size: 13px; text-align: left;
  border: 1.5px solid #a5d6a7;
}
.lock-or {
  font-size: 12px; color: var(--grey); margin: 2px 0;
}
.lock-screen .form-input { width: 100%; }
.lock-screen .btn-primary,
.lock-screen .btn-ghost { width: 100%; }

/* Shake animation for wrong password */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.shake { animation: shake .4s ease; }

/* Creator link tap in lock screen */
.cr-link-tap { cursor: pointer; font-weight: 600; }
.cr-link-tap:hover { text-decoration: underline; }

/* ── CREATOR REQUESTS TAB ────────────────────────────────────────── */
.req-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--grey-bd);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.req-user-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.req-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.req-user-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.req-name  { font-size: 14px; font-weight: 700; color: var(--dark); }
.req-email { font-size: 12px; color: var(--grey); }
.req-album-lbl { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 2px; }
.req-actions { display: flex; flex-direction: column; gap: 8px; }
.req-pw-row {
  display: flex; gap: 8px; align-items: center;
}
.req-pw-row .form-input { flex: 1; margin-bottom: 0; }
.req-done-label {
  font-size: 13px; color: var(--green, #388e3c); font-weight: 600;
  padding: 6px 0; text-align: center;
}

/* approve / small buttons */
.btn-approve {
  padding: 8px 16px; border-radius: var(--radius);
  background: #e8f5e9; color: #2e7d32;
  border: 1.5px solid #a5d6a7; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.btn-approve:hover { background: #c8e6c9; }
.btn-sm {
  padding: 7px 14px; font-size: 12px; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; border: none;
  white-space: nowrap;
}

/* ── USER PROFILE — MY ALBUM REQUESTS ───────────────────────────── */
.my-req-item {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--grey-bd);
  padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.my-req-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.my-req-album {
  font-size: 14px; font-weight: 600; color: var(--dark);
}
.my-req-pw {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 12px; border-radius: var(--radius);
  background: #e8f5e9; border: 1.5px solid #a5d6a7; font-size: 13px; color: #2e7d32;
}
.req-sent-pw {
  font-size: 15px; letter-spacing: .8px; color: #1b5e20;
}
.access-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #e8f5e9; color: #2e7d32;
  border: 1.5px solid #a5d6a7;
  padding: 1px 7px; border-radius: 10px; margin-left: 4px;
}

/* ── REGULATIONS PANEL (profile tabs) ───────────────────────────── */
.regs-panel {
  margin: 0 0 14px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  border-radius: 16px;
  padding: 16px 14px 18px;
}
.regs-panel-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.regs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reg-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 10px 12px;
  cursor: pointer; text-align: left;
  transition: background .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.reg-btn:active { background: rgba(255,255,255,.2); transform: scale(.97); }
.reg-btn-ic  { font-size: 18px; flex-shrink: 0; }
.reg-btn-lbl { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3; }
/* Full-width last button when odd */
.reg-btn-wide { grid-column: 1 / -1; }

/* ── CREATOR REG — TERMS ACCEPTANCE ─────────────────────────────── */
.reg-accept-wrap {
  margin: 12px 0 4px;
  background: #f5f5f5; border-radius: 10px;
  padding: 12px 14px; border: 1.5px solid var(--grey-bd);
}
.reg-accept-row {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
}
.reg-accept-row input[type="checkbox"] {
  flex-shrink: 0; margin-top: 3px; width: 17px; height: 17px;
  accent-color: var(--red);
}
.reg-accept-txt {
  font-size: 12px; color: var(--dark); line-height: 1.5;
}
.reg-link {
  background: none; border: none; padding: 0;
  font-size: 12px; font-weight: 700; color: var(--red);
  cursor: pointer; text-decoration: underline;
  display: inline;
}
.reg-link:hover { color: #c62828; }

/* ── REGULATION DOCUMENT POPUP ──────────────────────────────────── */
.reg-ov {
  position: fixed; inset: 0; z-index: 7000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0;
}
.reg-ov.hidden { display: none; }
.reg-ov-box {
  width: 100%; max-height: 92dvh;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
}
.reg-ov-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--grey-bd);
  background: #fff;
  position: sticky; top: 0; z-index: 1;
}
.reg-ov-ttl {
  font-size: 16px; font-weight: 700; color: var(--dark);
}
.reg-ov-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--grey-lt); color: var(--dark);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.reg-ov-body {
  flex: 1; overflow-y: auto; padding: 16px 18px 32px;
  -webkit-overflow-scrolling: touch;
}
.reg-doc-wrap {
  font-size: 14px; line-height: 1.7; color: var(--dark);
}
.reg-doc-wrap h1 { font-size: 20px; margin-bottom: 12px; }
.reg-doc-wrap h2 { font-size: 16px; margin: 18px 0 6px; }
.reg-doc-wrap h3 { font-size: 14px; margin: 14px 0 4px; }
.reg-doc-wrap p  { margin-bottom: 10px; }
.reg-doc-wrap ul, .reg-doc-wrap ol { padding-left: 20px; margin-bottom: 10px; }
.reg-loading {
  text-align: center; padding: 40px; color: var(--grey);
  font-size: 14px;
}
.reg-empty {
  text-align: center; padding: 40px 20px; color: var(--grey);
}

/* ══════════════════════════════════════════════════════════════
   MODE DROPDOWN
══════════════════════════════════════════════════════════════ */
.mode-drop-wrap {
  position: relative;
  margin-right: 6px;
  z-index: 10;
}
.mode-drop-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 5px 11px;
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .18s;
  -webkit-tap-highlight-color: transparent;
}
.mode-drop-btn:active { background: rgba(255,255,255,.3); }
.mode-arrow { font-size: 10px; opacity: .85; }

.mode-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  overflow: hidden; min-width: 140px;
  animation: dropIn .2s cubic-bezier(.34,1.56,.64,1) both;
  z-index: 200;
}
.mode-dropdown.hidden { display: none; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mode-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 16px;
  background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--dark);
  cursor: pointer; text-align: left;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mode-opt:not(:last-child) { border-bottom: 1px solid var(--grey-lt); }
.mode-opt:active { background: var(--grey-lt); }
.mode-opt-ic  { font-size: 18px; }
.mode-opt-lbl { flex: 1; }

/* Active badge per option */
.mode-opt-home:hover  { background: #fff3f3; }
.mode-opt-gay:hover   { background: linear-gradient(90deg,#fff3 0%,#f3e5ff 100%); }
.mode-opt-adult:hover { background: #1a001210; }

/* ══════════════════════════════════════════════════════════════
   CATEGORY CHIPS (album + media forms)
══════════════════════════════════════════════════════════════ */
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--grey);
  margin: 10px 0 6px;
}
.cat-chips {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.cat-chip {
  flex: 1; padding: 8px 6px; border-radius: 10px;
  border: 2px solid var(--grey-lt);
  background: var(--white); color: var(--grey);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .18s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.cat-chip:active { opacity: .8; }
.cat-chip[data-cat="home"].active  { border-color: var(--red); color: var(--red); background: var(--red-light); }
.cat-chip[data-cat="gay"].active   { border-color: #9c27b0; color: #7b1fa2; background: #f3e5f5; }
.cat-chip[data-cat="adult"].active { border-color: #e91e8c; color: #c2185b; background: #fce4ec; }

/* ══════════════════════════════════════════════════════════════
   🌈  GAY / LGBTQ PRIDE MODE
══════════════════════════════════════════════════════════════ */
body.mode-gay {
  --red:       #7B1FA2;
  --red-dark:  #4A0072;
  --red-light: #F3E5F5;
}

body.mode-gay .hdr,
body.mode-gay .hdr-red {
  background: linear-gradient(90deg,
    #FF0018 0%, #FF7A00 18%, #FFD600 36%,
    #00C853 54%, #2196F3 72%, #AA00FF 100%);
}

body.mode-gay .btm-nav { border-top-color: #e1bee7; }
body.mode-gay .nav-btn.active { color: #7b1fa2; }
body.mode-gay .nav-btn.active::after {
  background: linear-gradient(90deg,
    #FF0018, #FF7A00, #FFD600, #00C853, #2196F3, #AA00FF);
}

body.mode-gay .btn-primary {
  background: linear-gradient(135deg, #FF0018, #FF7A00, #00C853, #2196F3, #AA00FF);
  background-size: 300% 300%;
  animation: prideShift 4s linear infinite;
  border: none;
}
@keyframes prideShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.mode-gay .mode-drop-btn {
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.5);
}

body.mode-gay .hdr-btn { color: #fff; }

/* Soft rainbow card accents */
body.mode-gay .alb-card { border-top: 3px solid transparent;
  border-image: linear-gradient(90deg,#FF0018,#FFD600,#00C853,#2196F3,#AA00FF) 1; }

/* ══════════════════════════════════════════════════════════════
   🔞  18+ / ADULT MODE  (dark background + pink neon)
══════════════════════════════════════════════════════════════ */
body.mode-adult {
  --red:       #E91E8C;
  --red-dark:  #AD1457;
  --red-light: #220011;
  --offwhite:  #0A0A0F;
  --white:     #14141E;
  --card-bg:   #1C1C2A;
  --text:      #F0E0F4;
  --text-sec:  #C4B0CC;
  --grey:      #9980A8;
  --grey-lt:   #2A1F38;
  --grey-bd:   #3D2D50;
  --dark:      #F0E0F4;
  --shadow:    0 2px 14px rgba(233,30,140,.14);
  --shadow-md: 0 4px 28px rgba(233,30,140,.22);
  background: #0A0A0F;
}

body.mode-adult .hdr,
body.mode-adult .hdr-red {
  background: linear-gradient(135deg, #1a0020 0%, #2d0035 50%, #1a0020 100%);
  border-bottom: 1px solid #E91E8C44;
  box-shadow: 0 2px 20px rgba(233,30,140,.30);
}

body.mode-adult .btm-nav {
  background: #14141E;
  border-top-color: #3D2D50;
}
body.mode-adult .nav-btn.active { color: #E91E8C; }
body.mode-adult .nav-btn.active::after { background: #E91E8C; }

body.mode-adult .panel-body { background: #0A0A0F; }

body.mode-adult .modal-box {
  background: #14141E;
  border: 1px solid #3D2D50;
}
body.mode-adult .modal-bg { background: rgba(0,0,0,.75); backdrop-filter: blur(8px); }

body.mode-adult .overlay    { background: #0A0A0F; }
body.mode-adult .ov-hdr     { background: #14141E; border-bottom-color: #3D2D50; }
body.mode-adult .ov-dark    { background: #000; }

body.mode-adult .sheet-content { background: #14141E; border-color: #3D2D50; }
body.mode-adult .sheet-grip    { background: #3D2D50; }

body.mode-adult .form-input {
  background: #0A0A0F; border-color: #3D2D50;
  color: #F0E0F4;
}
body.mode-adult .form-input::placeholder { color: #9980A8; }

body.mode-adult .edit-section { background: #1C1C2A; border-color: #3D2D50; }
body.mode-adult .alb-card     { background: #1C1C2A; box-shadow: 0 2px 14px rgba(233,30,140,.10); }
body.mode-adult .mm-card      { background: #1C1C2A; }

body.mode-adult .alb-info, body.mode-adult .alb-title { color: #F0E0F4; }
body.mode-adult .alb-creator, body.mode-adult .alb-meta { color: #9980A8; }

body.mode-adult .btn-ghost {
  background: #1C1C2A; border-color: #3D2D50; color: #F0E0F4;
}
body.mode-adult .btn-primary {
  background: linear-gradient(135deg, #E91E8C, #AD1457);
  box-shadow: 0 4px 16px rgba(233,30,140,.40);
}

body.mode-adult .mode-drop-btn {
  background: rgba(233,30,140,.2);
  border-color: rgba(233,30,140,.5);
}

body.mode-adult .section-title { color: #E91E8C; border-color: #3D2D50; }
body.mode-adult .home-media-title { color: #F0E0F4; }
body.mode-adult .home-refresh-btn { background: #1C1C2A; border-color: #3D2D50; color: #F0E0F4; }

/* Neon glow for active elements in adult mode */
body.mode-adult .nav-btn.active::after {
  background: linear-gradient(90deg, #E91E8C, #FF4081);
  box-shadow: 0 0 8px rgba(233,30,140,.6);
}
body.mode-adult .hdr-btn { color: #ff80ab; }
body.mode-adult .back-btn { color: #ff80ab; }
body.mode-adult .ov-hdr-action { color: #ff80ab; }

/* Adult mode mode-dropdown dark styling */
body.mode-adult .mode-dropdown {
  background: #1C1C2A;
  border: 1px solid #3D2D50;
}
body.mode-adult .mode-opt {
  color: #F0E0F4;
  border-bottom-color: #3D2D50;
}
body.mode-adult .mode-opt:active { background: #3D2D50; }

/* Cat chips adult override */
body.mode-adult .cat-chip {
  background: #0A0A0F; border-color: #3D2D50; color: #9980A8;
}
body.mode-adult .cat-chip[data-cat="adult"].active {
  border-color: #E91E8C; color: #E91E8C; background: #220011;
}

/* Reg panel dark */
body.mode-adult .regs-panel {
  background: linear-gradient(135deg, #1a0020, #0a0012, #1a0020);
  border: 1px solid #3D2D50;
}
body.mode-adult .reg-btn { background: rgba(233,30,140,.12); border-color: rgba(233,30,140,.25); }
body.mode-adult .reg-btn:active { background: rgba(233,30,140,.25); }

/* Lock screen dark */
body.mode-adult .lock-screen { background: #14141E; }
body.mode-adult .reg-ov-box  { background: #14141E; border: 1px solid #3D2D50; }
body.mode-adult .reg-ov-hdr  { background: #14141E; border-bottom-color: #3D2D50; }
body.mode-adult .reg-ov-body { color: #F0E0F4; }
