/* TheSlap Mobile-First Dark Pop-Art / Midnight PearPad Design System */
:root {
  color-scheme: dark;
  --bg-navy: #0e122b;
  --bg-deep: #090b1d;
  --surface: #1b2149;
  --surface-card: #222857;
  --surface-input: #121636;
  --surface-input-focus: #161b42;
  --ink: #eef2ff;
  --ink-muted: #a4b0dc;
  --border: #0a0d22;
  --border-soft: #313a73;
  --yellow: #ffe066;
  --orange: #ff9f1c;
  --pink: #ff4d8d;
  --cyan: #00d2ff;
  --green: #80ed99;
  --purple: #9b5de5;

  /* PearPad User Themes */
  --pear-frame: #1e88e5;
  --pear-frame-dark: #115293;

  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-pop: 0 4px 0 #070917;
  --shadow-card: 0 8px 24px rgba(5, 7, 22, 0.55);
  --nav-height: 68px;
}

[data-pear-theme="tori-blue"]   { --pear-frame: #1e88e5; --pear-frame-dark: #115293; }
[data-pear-theme="cat-pink"]    { --pear-frame: #e91e8c; --pear-frame-dark: #9c115c; }
[data-pear-theme="andre-green"] { --pear-frame: #38b000; --pear-frame-dark: #206800; }
[data-pear-theme="jade-purple"] { --pear-frame: #7b2cbf; --pear-frame-dark: #4a1578; }
[data-pear-theme="beck-teal"]   { --pear-frame: #00b4d8; --pear-frame-dark: #007791; }

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 77, 141, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(0, 210, 255, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 224, 102, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.45;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* App Shell (Mobile-First) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, #b45309 0%, #be185d 52%, #5b21b6 100%);
  border-bottom: 3px solid var(--border);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: none;
}

.main-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 12px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom, 0px));
}

/* Bottom Mobile Navigation (Thumb-Friendly) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #14183b;
  border-top: 3px solid var(--yellow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.55);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  color: #a4b0dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
}

.bottom-nav-item.active {
  color: var(--yellow);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 2.5px solid var(--border);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--border);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  background: var(--yellow);
  color: #14193b;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}

.btn-pink   { background: var(--pink); color: #fff; }
.btn-cyan   { background: #00b4d8; color: #0a1026; }
.btn-green  { background: #40c057; color: #09180d; }
.btn-white  { background: #2a326b; color: var(--ink); border-color: var(--border-soft); }
.btn-danger { background: #e03152; color: #fff; }
.btn-sm     { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block  { width: 100%; }

/* Section Headers */
.slap-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14183b;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 8px 8px 0 0;
  border: 2.5px solid var(--border-soft);
  border-bottom: none;
  margin-left: 10px;
}

/* Hot Pages (Horizontal Friends Strip) */
.hot-pages-box {
  background: linear-gradient(180deg, #9a4a0c 0%, #7c3510 100%);
  border: 3px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-pop);
}

.hot-pages-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hot-pages-scroll::-webkit-scrollbar { display: none; }

.hot-page-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 14px;
  background: #1c224d;
  color: var(--ink);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.hot-page-chip.active {
  background: var(--yellow);
  color: #14193b;
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--border);
}

.hot-page-chip img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--border);
  object-fit: cover;
  background: #14183b;
}

.hot-page-chip span {
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Daily Prompt Banner */
.prompt-banner {
  background: linear-gradient(135deg, #162d50 0%, #1c3d69 100%);
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prompt-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #72efdd;
  display: block;
}

.prompt-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* PearPad Card (Status Composer & Status Posts) */
.pear-card {
  background: linear-gradient(145deg, var(--pear-frame) 0%, var(--pear-frame-dark) 100%);
  border: 3px solid var(--border);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-card), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
  margin-bottom: 16px;
}

.pear-screen {
  background: #121533;
  border: 2.5px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pear-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pear-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2.5px solid var(--border-soft);
  object-fit: cover;
  background: #1c214b;
  flex-shrink: 0;
}

.pear-meta {
  flex: 1;
  min-width: 0;
}

.pear-name {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pear-time {
  color: #a9b8ff;
  font-size: 12px;
  font-weight: 600;
}

.pear-update-pill {
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
}

/* Dark Status Bubble inside PearPad */
.status-bubble {
  background: var(--surface-card);
  border: 2.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.status-body {
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  word-wrap: break-word;
  white-space: pre-line;
}

.status-photo {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-top: 2px solid var(--border-soft);
  background: #121636;
}

.feeling-bar {
  background: linear-gradient(90deg, #182958 0%, #1d3975 100%);
  border-top: 2px solid var(--border-soft);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feeling-text {
  font-size: 13px;
  font-weight: 900;
  color: #ff70a6;
  text-transform: uppercase;
}

.feeling-text span {
  color: #72efdd;
  text-transform: none;
  font-size: 15px;
  margin-left: 4px;
}

.feeling-sticker {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

/* Reactions & Card Actions */
.status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.reaction-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.react-btn.active {
  background: var(--yellow);
  color: #14193b;
  border-color: var(--border);
}

.post-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #dbe4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  padding: 0 8px;
}

.icon-action-btn:hover { background: rgba(255, 255, 255, 0.16); }

.corner-delete-btn {
  align-self: flex-start;
  flex-shrink: 0;
}

/* Comments Section */
.comments-section {
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.comments-list:empty {
  display: none;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px 9px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 12px;
  font-weight: 800;
  color: var(--yellow);
}

.comment-time {
  font-size: 11px;
  color: var(--ink-muted);
}

.comment-text {
  font-size: 14px;
  color: var(--ink);
  word-wrap: break-word;
}

.comment-del-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-del-btn:hover {
  background: rgba(255, 59, 92, 0.25);
  color: #ff8fa3;
}

.comment-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.comment-input {
  flex: 1;
}

/* Composer */
.composer-textarea {
  width: 100%;
  min-height: 86px;
  border: none;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  font-size: 16px;
  background: var(--surface-input);
  color: var(--ink);
}

.composer-textarea::placeholder {
  color: var(--ink-muted);
}

.mood-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 10px;
  background: #171c42;
  border-top: 2px solid var(--border-soft);
  scrollbar-width: none;
}

.mood-picker::-webkit-scrollbar { display: none; }

.mood-option {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 12px;
  border: 2px solid var(--border-soft);
  background: #252c62;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  min-width: 62px;
}

.mood-option.selected {
  border-color: var(--pink);
  background: #3b1f52;
  box-shadow: 0 2px 0 var(--border);
}

.mood-option img {
  width: 30px;
  height: 30px;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Dark Cards for Login, Friends, Profile, Admin */
.panel-card {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-pop);
}

.panel-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2.5px solid var(--border-soft);
  background: var(--surface-input);
  color: var(--ink);
  font-size: 16px;
}

.form-control::placeholder {
  color: var(--ink-muted);
}

.form-control:focus {
  outline: none;
  background: var(--surface-input-focus);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.25);
}

.alert {
  padding: 11px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-success { background: #133929; color: #80ed99; border-color: #2d6a4f; }
.alert-error   { background: #421422; color: #ff8fa3; border-color: #9b111e; }
.alert-info    { background: #14324d; color: #72efdd; border-color: #0077b6; }

/* Avatar & Theme Grids */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.avatar-choice {
  border: 2.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 3px;
  background: #14183b;
  cursor: pointer;
}

.avatar-choice.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.35);
}

.avatar-choice img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.theme-pill {
  min-height: 44px;
  border-radius: 12px;
  border: 2.5px solid var(--border);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.theme-pill[data-theme="tori-blue"]   { background: linear-gradient(145deg, #1e88e5, #115293); }
.theme-pill[data-theme="cat-pink"]    { background: linear-gradient(145deg, #e91e8c, #9c115c); }
.theme-pill[data-theme="andre-green"] { background: linear-gradient(145deg, #38b000, #206800); }
.theme-pill[data-theme="jade-purple"] { background: linear-gradient(145deg, #7b2cbf, #4a1578); }
.theme-pill[data-theme="beck-teal"]   { background: linear-gradient(145deg, #00b4d8, #007791); }

.theme-pill.selected {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 3px 0 var(--border);
}

/* Friend Code Box */
.code-box {
  background: linear-gradient(135deg, #27214a 0%, #332752 100%);
  border: 3px dashed var(--yellow);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin: 6px 0;
}

/* List Items */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--border-soft);
}

.list-row:last-child { border-bottom: none; }

.list-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.list-user img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--border-soft);
  object-fit: cover;
}

/* Toast Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: #14183b;
  color: var(--yellow);
  border: 2.5px solid var(--yellow);
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 14px;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  display: none;
}

.toast.show { display: block; }

/* Login Centered Layout */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.login-box {
  width: 100%;
  max-width: 410px;
}

.login-hero {
  text-align: center;
  margin-bottom: 18px;
}

.login-logo {
  height: 58px;
  width: auto;
  display: inline-block;
}

.login-card {
  border-radius: 30px;
  padding: 12px;
}

.login-card .pear-screen {
  border-radius: 22px;
  padding: 12px;
}

.login-bubble {
  padding: 20px 18px;
  border-radius: 18px;
}

.login-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.login-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Utility Classes (CSP-safe replacement for inline styles) */
.inline-form { display: inline; margin: 0; }
.m-0 { margin: 0; }
.mb-sm { margin-bottom: 10px; }
.mt-sm { margin-top: 8px; }
.text-center { text-align: center; }
.muted-text { margin: 0 0 10px; font-size: 14px; color: var(--ink-muted); }
.muted-sm { font-size: 12px; color: var(--ink-muted); }
.flex-row { display: flex; gap: 8px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flex-center-wrap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.col-stack { flex-direction: column; align-items: stretch; }
.form-control-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.uppercase-input { text-transform: uppercase; }
.pointer { cursor: pointer; }
.link-bold { text-decoration: underline; font-weight: 800; color: var(--cyan); }
.report-card { border-color: #ff3b5c; }
.report-reason { font-size: 13px; color: #ff8fa3; margin: 4px 0; }
.report-quote { background: var(--surface-input); padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--border-soft); font-size: 14px; color: var(--ink); }

/* Avatar Crop Editor Modal (Smartphone-First) */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 11, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.crop-box {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 3px solid var(--border-soft);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 10px auto 14px;
  border-radius: 22px;
  border: 3px solid var(--border-soft);
  overflow: hidden;
  background: #0d1026;
  touch-action: none;
  cursor: grab;
}

.crop-stage:active { cursor: grabbing; }

.crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.crop-zoom-slider {
  flex: 1;
  min-width: 0;
  width: 100%;
  accent-color: var(--pink);
  min-height: 36px;
}

.crop-actions {
  display: flex;
  gap: 8px;
}

/* Image Lightbox Modal */
.status-photo,
.pear-avatar,
.comment-avatar,
.list-user img {
  cursor: zoom-in;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 11, 29, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-box {
  position: relative;
  width: min(94vw, 580px);
  max-height: 88vh;
  background: var(--surface);
  border: 3px solid var(--yellow);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2.5px solid var(--border);
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 var(--border);
}

.lightbox-stage {
  width: 100%;
  height: min(62vh, 520px);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1026;
  touch-action: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage:active {
  cursor: grabbing;
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lightbox-zoom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.lightbox-zoom-row .btn {
  flex-shrink: 0;
  padding: 6px 10px;
}

.lightbox-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
}

.hidden { display: none !important; }

/* Desktop Enhancements (Keep Smartphone Bottom-Nav on iPad / Touch Tablets) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .bottom-nav { display: none; }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .desktop-nav a {
    padding: 8px 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: rgba(10, 13, 34, 0.35);
    border: 2px solid transparent;
  }
  .desktop-nav a.active {
    background: var(--yellow);
    color: #14193b;
    border-color: var(--border);
  }
  .main-wrap {
    padding: 20px 16px 40px;
  }
  .toast {
    bottom: 24px;
  }
}
