/* OnlyAIFans — OnlyFans-like design system */

:root {
  --of-blue: #00aff0;
  --of-blue-hover: #0095d9;
  --of-blue-light: rgba(0, 175, 240, 0.12);
  --bg-page: #f6f7f8;
  --bg-card: #ffffff;
  --bg-muted: #eef0f2;
  --text-primary: #0f1419;
  --text-muted: #536471;
  --text-secondary: #0f1419;
  --border: #eff3f4;
  --border-strong: #cfd9de;
  --sidebar-width: 220px;
  --rail-width: 320px;
  --mobile-nav-h: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-bold: 700;
  --fw-heavy: 800;
  --fw-black: 900;
  --theme-toggle-bg: #eef0f2;
  --theme-toggle-fg: #0f1419;
}

html[data-theme="dark"] {
  --of-blue: #1d9bf0;
  --of-blue-hover: #1a8cd8;
  --of-blue-light: rgba(29, 155, 240, 0.16);
  --bg-page: #000000;
  --bg-card: #16181c;
  --bg-muted: #202327;
  --text-primary: #f1f3f5;
  --text-muted: #c8d0d8;
  --text-secondary: #f1f3f5;
  --border: #2f3336;
  --border-strong: #3e444a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --theme-toggle-bg: #202327;
  --theme-toggle-fg: #e7e9ea;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.app-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ——— App shell ——— */
.app-shell {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  gap: 8px;
  padding: 0 16px;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 16px 20px calc(var(--mobile-nav-h) + 24px);
}

@media (min-width: 901px) {
  .app-main {
    margin-left: 0;
    padding: 24px 12px 32px;
  }
}

.app-main--with-rail {
  display: grid;
  gap: 20px;
}

@media (min-width: 1100px) {
  .app-main--with-rail {
    grid-template-columns: minmax(0, 640px) var(--rail-width);
    justify-content: start;
    align-items: start;
    gap: 16px;
  }
}

.app-center {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.home-foot {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.home-foot p {
  margin: 0;
}

.home-foot a {
  color: var(--text-muted);
  font-weight: 600;
}

.home-foot a:hover {
  color: var(--of-blue);
}

.app-page-title {
  font-size: 1.35rem;
  font-weight: var(--fw-black);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ——— Sidebar ——— */
.app-sidebar {
  display: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  height: 100dvh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  flex-direction: column;
  z-index: 100;
  padding: 20px 12px 16px;
}

@media (min-width: 901px) {
  .app-sidebar {
    display: flex;
  }
}

.app-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 20px;
  font-weight: var(--fw-black);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.app-sidebar__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--of-blue), #0088cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.app-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: var(--fw-bold);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
}

.app-sidebar__link:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.app-sidebar__link.is-active {
  background: var(--of-blue-light);
  color: var(--text-primary);
  font-weight: var(--fw-black);
}

.app-sidebar__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 1;
  stroke-width: 2.25;
}

.app-sidebar__link.is-active .app-sidebar__icon {
  opacity: 1;
}

.app-sidebar__user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.app-sidebar__user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.app-sidebar__user-link:hover {
  background: var(--bg-muted);
}

.app-sidebar__username {
  font-size: 0.9rem;
  font-weight: var(--fw-heavy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-sidebar__logout-nav {
  margin: 0;
}

.app-sidebar__logout-nav button.app-sidebar__link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* ——— Mobile nav ——— */
.app-mobile-nav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 901px) {
  .app-mobile-nav {
    display: none;
  }
}

.app-mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  min-width: 0;
  flex: 1;
}

.app-mobile-nav__link.is-active {
  color: var(--text-primary);
  font-weight: var(--fw-black);
}

.app-mobile-nav__icon {
  width: 24px;
  height: 24px;
}

/* ——— Avatars ——— */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-muted);
  flex-shrink: 0;
}

.avatar--xs {
  width: 32px;
  height: 32px;
}

.avatar--sm {
  width: 40px;
  height: 40px;
}

.avatar--md {
  width: 48px;
  height: 48px;
}

.avatar--lg {
  width: 72px;
  height: 72px;
}

.avatar--xl {
  width: 96px;
  height: 96px;
}

.avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--text-muted);
  background: linear-gradient(145deg, #e8ecf0, #d8dde3);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--of-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--of-blue-hover);
}

.btn--secondary {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background: var(--border);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--bg-muted);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--ai {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
}

.badge--verified {
  color: var(--of-blue);
}

.badge--media {
  background: var(--bg-muted);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.badge--media-video {
  background: rgba(0, 175, 240, 0.16);
  color: #0284c7;
}

.badge--media-pic {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.badge--media-both {
  background: rgba(168, 85, 247, 0.14);
  color: #7c3aed;
}

html[data-theme="dark"] .badge--media-video {
  background: rgba(0, 175, 240, 0.2);
  color: #7dd3fc;
}

html[data-theme="dark"] .badge--media-pic {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html[data-theme="dark"] .badge--media-both {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

/* ——— Cards ——— */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card__header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.card__body {
  padding: 16px 18px;
}

/* ——— Post card ——— */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.post-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.post-card__meta {
  flex: 1;
  min-width: 0;
}

.post-card__name {
  font-weight: var(--fw-heavy);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card__name a:hover {
  text-decoration: underline;
}

.post-card__handle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card__time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card__body-text {
  padding: 0 16px 10px;
  white-space: normal;
  word-break: break-word;
}

.post-card__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: normal;
}

.post-card__desc {
  margin: 0;
  white-space: pre-line;
  color: var(--text-secondary);
  line-height: 1.45;
}

.post-card__media-wrap {
  position: relative;
  background: var(--bg-muted);
}

.post-card__media {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.post-card__media--blurred {
  filter: blur(22px) brightness(0.7);
  transform: scale(1.08);
}

.post-card__nsfw-oval {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  height: 1.35rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.45);
  pointer-events: none;
}

.post-card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.35rem;
  isolation: isolate;
}

.post-card__video.js-yt-facade:not(.is-playing),
.post-card__video.js-video-facade:not(.is-playing) {
  cursor: pointer;
}

.post-card__video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__video-poster--empty {
  background: linear-gradient(145deg, #1a2430 0%, #0b0f14 100%);
}

.post-card__video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
}

.post-card__video-play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.post-card__video-play-icon {
  position: relative;
  z-index: 1;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(0, 175, 240, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.post-card__video-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.js-yt-facade:hover .post-card__video-play-icon,
.js-yt-facade:focus-within .post-card__video-play-icon,
.js-video-facade:hover .post-card__video-play-icon,
.js-video-facade:focus-within .post-card__video-play-icon {
  transform: scale(1.06);
  background: #00aff0;
}

/* Clip top chrome for YouTube only once playing */
.post-card__video.is-playing.is-youtube iframe {
  position: absolute;
  top: -58px;
  left: 0;
  width: 100%;
  height: calc(100% + 58px);
  border: 0;
  pointer-events: auto;
}

.post-card__video.is-playing:not(.is-youtube) iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-card__media--video {
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: contain;
  background: #0b0f14;
}

.post-card__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  position: relative;
  z-index: 1;
}

.post-card__media-grid .post-card__zoom {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.post-card__media-grid .post-card__media {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  max-height: none;
  object-fit: cover;
  pointer-events: none;
}

.post-card__media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #c4d4e0 0%, #a8bcc9 40%, #8fa3b0 100%);
}

.post-card__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
  text-align: center;
}

.post-card__lock-icon {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  opacity: 0.9;
}

.post-card__lock-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.post-card__lock-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-card__footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: inherit;
}

.post-card__action.is-liked {
  color: #e0245e;
}

.post-card__action svg {
  width: 18px;
  height: 18px;
}

a.post-card__report {
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

a.post-card__report:hover {
  color: var(--of-blue);
}

.profile-report-btn {
  align-self: flex-start;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.report-form .form-input {
  width: 100%;
}

/* ——— Creator card ——— */
.creator-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.creator-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.creator-card__banner {
  height: 72px;
  background: linear-gradient(120deg, var(--of-blue-light), var(--bg-muted));
}

.creator-card__body {
  padding: 0 14px 14px;
  margin-top: -28px;
  position: relative;
}

.creator-card__avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.creator-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 8px;
}

.creator-card__username {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.creator-card__price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--of-blue);
  margin-top: 8px;
}

.creator-card__badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.creator-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.creator-card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--of-blue-light);
  color: var(--of-blue);
}

/* ——— Right rail (Twitter-style news + who to follow) ——— */
.app-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 0 4px;
  margin-bottom: 0;
  overflow: hidden;
}

.rail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 10px;
}

.rail-card__title {
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.rail-card__more,
.rail-card__footer {
  color: var(--of-blue);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.rail-card__more:hover,
.rail-card__footer:hover {
  text-decoration: underline;
}

.rail-card__footer {
  display: block;
  padding: 12px 16px 14px;
}

.rail-empty {
  margin: 0;
  padding: 4px 16px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.rail-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-news__item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.rail-news__item:hover {
  background: var(--bg-muted);
}

.rail-news__item .rail-news__headline {
  font-weight: 400 !important;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rail-follow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-follow__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.rail-follow__row:hover {
  background: var(--bg-muted);
}

.rail-follow__avatar {
  flex: 0 0 auto;
  text-decoration: none;
}

.rail-follow__info {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.rail-follow__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.rail-follow__name {
  font-weight: var(--fw-heavy);
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--text-primary);
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-follow__handle {
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-muted);
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-follow__form {
  margin: 0;
  flex: 0 0 auto;
}

.rail-follow__row > .btn--follow {
  flex: 0 0 auto;
}

.btn--follow {
  background: #0f1419;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  min-width: auto;
  width: auto;
  font-weight: var(--fw-heavy);
  font-size: 0.84rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn--follow:hover:not(:disabled):not(.is-following) {
  background: #272c30;
  color: #fff;
}

.btn--follow.is-following {
  background: #fff;
  color: #0f1419;
  border: 1px solid var(--border-strong);
}

.btn--follow.is-following:hover:not(:disabled) {
  background: #fee;
  color: #f4212e;
  border-color: #f4212e;
}

.btn--follow:disabled,
.btn--follow.is-cooling {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Legacy suggest styles (kept for any older markup) */
.rail-suggest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.rail-suggest:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rail-suggest__info {
  flex: 1;
  min-width: 0;
}

.rail-suggest__name {
  font-weight: 600;
  font-size: 0.88rem;
}

.rail-suggest__handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ——— Profile ——— */
.profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-header__banner {
  height: 140px;
  background: linear-gradient(135deg, #89cff0, var(--of-blue));
}

@media (min-width: 601px) {
  .profile-header__banner {
    height: 200px;
  }
}

.profile-header__body {
  padding: 0 20px 20px;
}

.profile-header__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -48px;
}

.profile-header__avatar-wrap {
  border: 4px solid var(--bg-card);
  border-radius: var(--radius-full);
}

.profile-header__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-header__title {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-header__username {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
}

.profile-header__bio {
  margin-top: 10px;
  color: var(--text-secondary);
  max-width: 560px;
  white-space: pre-wrap;
}

.profile-header__bio a,
.post-card__body-text a,
a.oaf-link {
  color: #1d9bf0 !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  word-break: break-word;
  cursor: pointer;
}

.profile-header__bio a:hover,
.post-card__body-text a:hover,
a.oaf-link:hover {
  color: #0a7fc0 !important;
  text-decoration-thickness: 2px;
}

html[data-theme="dark"] .profile-header__bio a,
html[data-theme="dark"] .post-card__body-text a,
html[data-theme="dark"] a.oaf-link,
html[data-theme="dark"] .public-main .post-card__body-text a,
html[data-theme="dark"] .public-main a.oaf-link {
  color: #60c8ff !important;
}

html[data-theme="dark"] .profile-header__bio a:hover,
html[data-theme="dark"] .post-card__body-text a:hover,
html[data-theme="dark"] a.oaf-link:hover {
  color: #93deff !important;
}

.profile-header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--of-blue);
  text-decoration: none;
}

.profile-header__link:hover {
  border-color: var(--of-blue);
  background: color-mix(in srgb, var(--of-blue) 8%, transparent);
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.profile-tabs__tab {
  padding: 12px 20px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.profile-tabs__tab.is-active {
  color: var(--of-blue);
  border-bottom-color: var(--of-blue);
}

.profile-hide-sfw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #3a4652);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.profile-hide-sfw:hover {
  border-color: var(--of-blue);
  color: var(--of-blue);
}

.profile-hide-sfw.is-active {
  color: #fff;
  background: #334155;
  border-color: #334155;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.profile-grid__item {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #dde4ea, #c5ced6);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.profile-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Discover / Find Creators ——— */
.discover-page {
  max-width: 1040px;
  margin: 0 auto;
}

.discover-hero {
  margin: 0 0 1.35rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(0, 175, 240, 0.18), transparent 55%),
    radial-gradient(900px 240px at 95% 0%, rgba(0, 119, 182, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.discover-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-blue);
}

.discover-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: var(--fw-black, 800);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
}

.discover-hero__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38rem;
}

.discover-guest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.discover-guest p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.discover-guest__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.discover-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.discover-search__row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.discover-search__wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.discover-search__input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  color-scheme: inherit;
}

.discover-search__input:focus {
  border-color: var(--of-blue);
  box-shadow: 0 0 0 3px var(--of-blue-light);
}

.discover-search__input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.discover-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.discover-search__btn {
  flex-shrink: 0;
  border-radius: var(--radius-full);
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  font-weight: 700;
}

.discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.discover-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.discover-filter select {
  min-width: 9.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color-scheme: inherit;
}

.discover-filter select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.discover-filter--rating {
  gap: 0.4rem;
}

.discover-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.discover-rating .rating-toggle {
  text-decoration: none;
  min-width: 3.4rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
  opacity: 0.42;
  box-shadow: none;
}

.discover-rating .rating-toggle.is-active,
.discover-rating .rating-toggle:hover {
  opacity: 1;
}

.discover-rating .rating-toggle.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.discover-filter--check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.discover-filter--check input {
  accent-color: var(--of-blue);
}

.discover-filters__apply {
  margin-left: auto;
}

.discover-cat-section {
  margin-bottom: 1.35rem;
}

.discover-cat-section__head {
  margin: 0 0 0.85rem;
}

.discover-cat-section__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.discover-cat-section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.discover-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0.85rem;
}

.discover-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 92px;
}

.discover-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 175, 240, 0.45);
  box-shadow: 0 10px 24px rgba(0, 175, 240, 0.1);
}

.discover-cat-card.is-active {
  border-color: var(--of-blue);
  background: var(--of-blue-light);
  box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.25);
}

.discover-cat-card__icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.discover-cat-card__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.discover-cat-card__desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.discover-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.discover-categories--more {
  margin-bottom: 0;
}

.discover-cat-suggest {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.discover-categories::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.chip:hover {
  border-color: var(--of-blue);
  color: var(--of-blue);
}

.chip.is-active {
  background: var(--of-blue);
  border-color: var(--of-blue);
  color: #fff;
}

.chip.is-active:hover {
  color: #fff;
  background: var(--of-blue-hover);
  border-color: var(--of-blue-hover);
}

.discover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.discover-meta p {
  margin: 0;
}

.discover-meta strong {
  color: var(--text-primary);
  font-weight: 700;
}

.discover-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.discover-pager--bottom {
  justify-content: center;
  width: 100%;
  margin: 1.15rem 0 0;
}

.discover-pager__status {
  min-width: 6.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.discover-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
}

.discover-pager__arrow:hover {
  border-color: var(--of-blue);
  color: var(--of-blue);
}

.discover-pager__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 601px) {
  .discover-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .creator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 901px) {
  .discover-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .creator-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .discover-filters__apply {
    margin-left: 0;
  }
}

html[data-theme="dark"] .discover-panel {
  box-shadow: none;
}

html[data-theme="dark"] .discover-hero {
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(29, 155, 240, 0.22), transparent 55%),
    radial-gradient(900px 240px at 95% 0%, rgba(29, 155, 240, 0.08), transparent 50%),
    linear-gradient(180deg, #16181c 0%, #000 100%);
}

@media (max-width: 520px) {
  .discover-hero {
    padding: 1.1rem 1rem 1.2rem;
  }

  .discover-search__row {
    flex-direction: column;
  }

  .discover-search__btn {
    width: 100%;
  }
}

/* ——— Messages ——— */
.messages-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: calc(100dvh - var(--mobile-nav-h) - 80px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .messages-layout {
    grid-template-columns: 340px 1fr;
    min-height: 560px;
  }
}

.messages-list {
  border-right: 1px solid var(--border);
  max-height: 70vh;
  overflow-y: auto;
}

.messages-list__head {
  padding: 16px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.messages-thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.messages-thread:hover {
  background: var(--bg-muted);
}

.messages-thread__preview {
  flex: 1;
  min-width: 0;
}

.messages-thread__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.messages-thread__snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  min-height: 320px;
}

.messages-empty__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.messages-empty__title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.messages-thread.is-active {
  background: var(--bg-muted);
}

.messages-thread.is-unread .messages-thread__name {
  color: var(--accent, #5b9dff);
}

.messages-thread__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.messages-pane {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 70vh;
}

.messages-pane__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.messages-pane__peer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.messages-back {
  display: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
}

.messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-body, transparent);
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: min(85%, 420px);
}

.msg--mine {
  align-self: flex-end;
  align-items: flex-end;
}

.msg--theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.msg__bubble {
  position: relative;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
}

.msg--mine .msg__bubble {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg--theirs .msg__bubble {
  background: var(--bg-muted, #1c2330);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}

.msg__ai-label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.75;
  text-transform: uppercase;
}

.messages-compose {
  display: flex;
  gap: 0.5rem;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}

.messages-compose__input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  margin: 0;
}

.messages-compose__hint {
  padding: 0 14px 10px;
  margin: 0;
}

@media (max-width: 767px) {
  .messages-layout--thread .messages-list--hidden-mobile {
    display: none;
  }

  .messages-back {
    display: inline-flex;
  }

  .messages-pane {
    max-height: none;
    min-height: calc(100dvh - var(--mobile-nav-h) - 120px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Notifications ——— */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.notif-item.is-unread {
  background: var(--of-blue-light);
  border-color: rgba(0, 175, 240, 0.25);
}

.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__text {
  font-size: 0.9rem;
}

.notif-item__time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ——— Lists (subscriptions, collections) ——— */
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.list-row__main {
  flex: 1;
  min-width: 0;
}

.list-row__title {
  font-weight: 600;
}

.list-row__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ——— Wallet ——— */
.wallet-balance {
  background: linear-gradient(135deg, var(--of-blue), #0088cc);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.wallet-balance__label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.wallet-balance__amount {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 4px;
}

.wallet-balance--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.wallet-balance__hint {
  font-size: 0.78rem;
  opacity: 0.88;
  margin-top: 0.4rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .wallet-balance--split {
    grid-template-columns: 1fr;
  }
}

.wallet-how__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.wallet-how__list strong {
  color: var(--text-primary);
}

.wallet-autoload__on {
  color: #059669;
  font-weight: 700;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.tx-row__amount--credit {
  color: #059669;
  font-weight: 600;
}

.tx-row__amount--debit {
  color: var(--text-primary);
  font-weight: 600;
}

/* ——— Settings / Forms ——— */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--of-blue);
  box-shadow: 0 0 0 3px var(--of-blue-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state__title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ——— Studio ——— */
.studio-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 601px) {
  .studio-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.studio-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.studio-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--of-blue);
}

.studio-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.studio-payouts__history,
.wallet-payouts__history {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.studio-compose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.studio-compose__title {
  font-weight: 700;
  margin: 0 0 16px;
}

.studio-ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .studio-ai-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.studio-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.studio-upload-preview__item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #0b0f14;
}

.money-input {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.money-input__prefix {
  padding: 0 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-right: 1px solid var(--border);
  align-self: stretch;
  display: grid;
  place-items: center;
}

.money-input .form-input {
  border: 0;
  border-radius: 0;
  flex: 1;
}

.studio-access {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.studio-access legend {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.studio-access__option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}

.studio-access__option:has(input:checked) {
  border-color: var(--of-blue);
  background: var(--of-blue-light);
}

.studio-access__option input {
  margin-top: 0.2rem;
}

.studio-access__option strong {
  display: block;
  font-size: 0.92rem;
}

.studio-access__option small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.studio-access--compact .studio-access__option {
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.35rem;
}

.studio-access--compact .studio-access__option small {
  display: none;
}

.studio-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 1rem;
}

.studio-post.is-hidden {
  opacity: 0.72;
  border-style: dashed;
}

.studio-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
}

.studio-post__body {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.studio-post__controls {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.studio-post__price {
  margin: 0.5rem 0 0.75rem;
}

.studio-post__price.is-hidden,
.studio-ppv-price[hidden] {
  display: none !important;
}

.studio-post__price label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.studio-post__price .form-input {
  max-width: 110px;
}

.studio-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.studio-tag {
  display: inline-block;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.studio-tag--ok {
  color: #2f9e44;
  border-color: rgba(47, 158, 68, 0.35);
}

.studio-tag--warn {
  color: #e8590c;
  border-color: rgba(232, 89, 12, 0.35);
}

/* ——— Auth (OF-style) ——— */
.auth-of-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg-page);
}

.auth-of-theme {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 12px;
}

.auth-of-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.auth-of-brand {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.auth-of-brand span {
  color: var(--of-blue);
}

.auth-of-card h1 {
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 8px;
}

.auth-of-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.auth-of-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-of-footer a {
  color: var(--of-blue);
  font-weight: 600;
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted {
  color: var(--text-muted);
}

.blog-article__title--flash {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  background: linear-gradient(105deg, #0a0a0a 0%, #0a0a0a 28%, var(--of-blue) 55%, #0077b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: blog-title-in 0.55s ease-out both;
}

@keyframes blog-title-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.blog-article__tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 1.15rem 0 1.35rem;
  color: var(--text-primary);
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  font-size: 0.85rem;
  margin: -0.35rem 0 1rem;
}

.blog-byline {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.blog-byline__user {
  color: var(--accent, #00AFF0);
  font-weight: 700;
  text-decoration: none;
}

.blog-byline__user:hover {
  text-decoration: underline;
}

.blog-article__body {
  color: var(--text-primary);
}

.blog-article__body h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.15rem;
}

.blog-article__body h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.02rem;
}

.blog-article__body p,
.blog-article__body li {
  margin: 0 0 0.75rem;
}

.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.blog-article__body a {
  color: var(--accent, #00AFF0);
}

.blog-article a.btn--primary,
.blog-article__body a.btn--primary {
  color: #fff !important;
}

.blog-article a.btn--outline,
.blog-article__body a.btn--outline {
  color: var(--text-primary);
}

.blog-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0 1rem;
  font-size: 0.92rem;
}

.blog-article__body th,
.blog-article__body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.blog-article__body th {
  background: var(--bg-muted);
}

.mt-0 {
  margin-top: 0;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 901px) {
  .hidden-mobile {
    display: block;
  }

  .hidden-desktop {
    display: none;
  }
}

body.public-body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Guests: never inherit logged-in sidebar spacing / mobile nav padding */
body.public-body .app-main {
  margin-left: 0 !important;
  padding: 16px 20px 32px;
}

@media (min-width: 901px) {
  body.public-body .app-main {
    padding: 24px 24px 32px;
  }
}

.public-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.public-top__brand {
  font-weight: var(--fw-heavy);
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.public-top__brand span {
  color: var(--of-blue);
}

.public-top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  flex: 1;
  font-size: 0.9rem;
}

.public-top__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.public-top__nav a:hover {
  color: var(--of-blue);
}

.public-top__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.public-wrap {
  flex: 1;
  width: 100%;
}

.public-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.public-foot {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.public-foot a {
  color: var(--text-muted);
}

.public-foot a:hover {
  color: var(--of-blue);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--theme-toggle-bg);
  color: var(--theme-toggle-fg);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--of-blue);
  color: var(--of-blue);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun,
html:not([data-theme]) .theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

html[data-theme="light"] .theme-toggle__icon--moon,
html:not([data-theme]) .theme-toggle__icon--moon {
  display: block;
}

.app-sidebar__user {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.app-sidebar__user .theme-toggle {
  align-self: flex-start;
}

.theme-toggle--nav {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  border-radius: 0;
  color: var(--text-muted);
  font: inherit;
}

.theme-toggle--nav:hover {
  color: var(--of-blue);
  border-color: transparent;
}

.coupon-box {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
}

.coupon-box__label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.4rem;
}

.coupon-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.coupon-box__row .form-input {
  flex: 1;
  min-width: 140px;
}

.coupon-box__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .public-top__nav {
    order: 3;
    flex-basis: 100%;
    padding-top: 0.25rem;
  }
}

/* Legal / policy pages — theme-aware body text (replaces hardcoded #444/#666) */
.legal-doc {
  color: var(--text-primary);
}

.legal-body,
.legal-list,
.legal-list li {
  color: var(--text-primary);
  line-height: 1.65;
}

.legal-list {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.legal-doc h2 {
  color: var(--text-primary);
}

.legal-doc a,
.public-main .post-card a {
  color: var(--of-blue);
}

html[data-theme="dark"] .legal-body,
html[data-theme="dark"] .legal-list,
html[data-theme="dark"] .legal-list li,
html[data-theme="dark"] .legal-doc,
html[data-theme="dark"] .legal-doc p,
html[data-theme="dark"] .legal-doc li,
html[data-theme="dark"] .public-main .post-card p,
html[data-theme="dark"] .public-main .post-card li {
  color: #f5f7f9;
}

html[data-theme="dark"] .legal-meta {
  color: #d0d8e0;
}

html[data-theme="dark"] .legal-doc h2,
html[data-theme="dark"] .public-main .app-page-title {
  color: #ffffff;
}

html[data-theme="dark"] .legal-doc a,
html[data-theme="dark"] .public-main .post-card a {
  color: #7dd3fc;
}

html[data-theme="dark"] .legal-nav a {
  color: #d0d7de;
}

html[data-theme="dark"] .legal-nav a[aria-current="page"] {
  color: #ffffff;
}

@media (max-width: 768px) {
  html[data-theme="dark"] .legal-body,
  html[data-theme="dark"] .legal-list,
  html[data-theme="dark"] .legal-list li,
  html[data-theme="dark"] .legal-doc p,
  html[data-theme="dark"] .legal-doc li,
  html[data-theme="dark"] .public-main .post-card p,
  html[data-theme="dark"] .public-main .post-card li {
    color: #f7f9fb;
  }
}

/* ── SFW / NSFW oval toggle ─────────────────────────────── */
.rating-toggle-form {
  display: inline-flex;
  margin: 0;
}

.rating-toggle {
  appearance: none;
  border: none;
  cursor: pointer;
  min-width: 4.25rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rating-toggle:active {
  transform: scale(0.97);
}

.rating-toggle--sfw {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.rating-toggle--nsfw {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.app-sidebar__user {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-sidebar__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.app-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.app-page-title-row .app-page-title {
  margin-bottom: 0;
}

.app-page-title-row__filters {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.app-home-rating {
  display: inline-flex;
  align-items: center;
}

.app-page-title-row__filters .rating-toggle {
  min-width: 3.4rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
}

.media-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.media-filter__btn:hover {
  border-color: var(--of-blue);
  color: var(--of-blue);
}

.media-filter__btn:active {
  transform: scale(0.97);
}

.media-filter__btn--pic.is-active {
  background: rgba(100, 116, 139, 0.2);
  border-color: #64748b;
  color: #334155;
}

.media-filter__btn--video.is-active {
  background: rgba(0, 175, 240, 0.18);
  border-color: #00aff0;
  color: #0369a1;
}

html[data-theme="dark"] .media-filter__btn--pic.is-active {
  color: #e2e8f0;
  border-color: #94a3b8;
}

html[data-theme="dark"] .media-filter__btn--video.is-active {
  color: #7dd3fc;
}

a.badge--media {
  text-decoration: none;
  cursor: pointer;
}

a.badge--media:hover {
  filter: brightness(1.08);
}

a.badge--media.is-active {
  box-shadow: 0 0 0 2px currentColor;
}

.badge--sfw {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.badge--nsfw {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

button.badge--click {
  cursor: pointer;
  border: 0;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: inherit;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: baseline;
}
button.badge--click:hover {
  filter: brightness(1.12);
  outline: 1px solid currentColor;
}

html[data-theme="dark"] .badge--sfw {
  color: #86efac;
}
html[data-theme="dark"] .badge--nsfw {
  color: #fca5a5;
}

.rating-empty-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.rating-empty-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.55);
}

.rating-empty-modal__card {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-elevated, var(--bg));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.rating-empty-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.rating-empty-modal__text {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.rating-empty-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wallet-confirm[hidden] {
  display: none;
}

.wallet-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wallet-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.55);
}

.wallet-confirm__card {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-elevated, var(--bg));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.wallet-confirm__title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.wallet-confirm__text {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.wallet-confirm__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-mobile-nav__cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 6px 0 2px;
}

.app-mobile-nav__cluster .theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.app-mobile-nav .rating-toggle {
  min-width: 3.6rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
}

/* —— The Pulse (human check) —— */
.human-pulse {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(0, 175, 240, 0.1), transparent 55%),
    var(--bg-card, #111);
}
.human-pulse.is-fail {
  border-color: #e11d48;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.35);
}
.human-pulse.is-ok {
  border-color: #00aff0;
  box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.35);
}
.human-pulse__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00aff0;
  margin: 0 0 0.2rem;
}
.human-pulse__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}
.human-pulse__hint {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.human-pulse__canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 88px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  cursor: default;
  touch-action: none;
}
.human-pulse__detect {
  --hold-pct: 0%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0.85rem auto 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.human-pulse__detect-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#22c55e var(--hold-pct), rgba(255, 255, 255, 0.14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.human-pulse__detect-pad {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #ff6b7a, #e11d48 58%, #be123c);
  box-shadow:
    0 0 0 3px rgba(225, 29, 72, 0.4),
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 2px 4px rgba(255, 255, 255, 0.28);
  animation: human-pulse-hold-idle 1.7s ease-in-out infinite;
}
.human-pulse__detect-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}
.human-pulse__detect-sub {
  margin-top: 0.22rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.88;
}
.human-pulse__detect:hover .human-pulse__detect-pad {
  filter: brightness(1.06);
}
.human-pulse__detect.is-holding .human-pulse__detect-pad,
.human-pulse__detect:active:not(:disabled) .human-pulse__detect-pad {
  animation: none;
  transform: scale(0.92);
  background: radial-gradient(circle at 50% 32%, #4ade80, #16a34a 58%, #15803d);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.28),
    inset 0 2px 4px rgba(255, 255, 255, 0.22);
}
.human-pulse__detect:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.human-pulse__detect:disabled .human-pulse__detect-pad {
  animation: none;
  background: radial-gradient(circle at 50% 32%, #4ade80, #16a34a);
}
.human-pulse.is-ok .human-pulse__detect-label {
  letter-spacing: 0.06em;
}
@keyframes human-pulse-hold-idle {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(225, 29, 72, 0.35),
      0 8px 18px rgba(0, 0, 0, 0.28),
      inset 0 2px 4px rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(225, 29, 72, 0.14),
      0 8px 18px rgba(0, 0, 0, 0.28),
      inset 0 2px 4px rgba(255, 255, 255, 0.28);
  }
}
.human-pulse__meter {
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.human-pulse__meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #00aff0;
  transition: width 0.08s linear;
}
.human-pulse__status {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.human-pulse__status:empty {
  margin: 0;
}
.human-pulse__status.is-ok {
  color: #00aff0;
}
.human-pulse__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
a.is-pulse-locked,
button.is-pulse-locked {
  opacity: 0.45;
  pointer-events: auto;
  cursor: not-allowed;
}
html[data-theme="light"] .human-pulse {
  background: radial-gradient(120% 80% at 50% 0%, rgba(0, 175, 240, 0.12), transparent 55%), #fff;
}
html[data-theme="light"] .human-pulse__canvas {
  background: #0f172a;
}

.req {
  color: #b42318;
  font-weight: 650;
  font-size: 0.78em;
  margin-left: 0.28rem;
}

.form-error {
  color: #b42318;
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.form-input.is-invalid,
.form-textarea.is-invalid,
select.form-input.is-invalid {
  border-color: #b42318;
}

.form-missing {
  margin-bottom: 1rem;
}

.post-card__zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.post-card__zoom:focus-visible {
  outline: 2px solid var(--accent, #00aff0);
  outline-offset: 2px;
}

body.oaf-lightbox-open {
  overflow: hidden;
}

.oaf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(4, 6, 8, 0.96);
  touch-action: none;
}

.oaf-lightbox[hidden] {
  display: none;
}

.oaf-lightbox__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.oaf-lightbox__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

.oaf-lightbox__img {
  max-width: min(calc(100vw - 7.5rem), 100%);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.oaf-lightbox__img.is-zoomed {
  cursor: grab;
}

.oaf-lightbox__bar {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.78);
}

.oaf-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 28, 0.78);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.oaf-lightbox__close:hover {
  background: rgba(0, 175, 240, 0.92);
}

.oaf-lightbox__pct {
  min-width: 3.2rem;
  text-align: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.oaf-lightbox__tool,
.oaf-lightbox__nav {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.oaf-lightbox__tool {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 1.45rem;
}

.oaf-lightbox__tool:hover,
.oaf-lightbox__nav:hover {
  background: rgba(0, 175, 240, 0.92);
}

.oaf-lightbox__tool:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}

.oaf-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.8rem;
  background: rgba(20, 24, 28, 0.78);
}

.oaf-lightbox__nav--prev { left: 0.5rem; }
.oaf-lightbox__nav--next { right: 0.5rem; }

.oaf-lightbox__nav[hidden] {
  display: none;
}

.oaf-lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.72);
  color: #d7dde3;
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .oaf-lightbox__hint { display: none; }
  .oaf-lightbox__nav,
  .oaf-lightbox__close {
    width: 2.35rem;
    height: 2.35rem;
  }
}




