:root {
  --bg: #07040d;
  --sidebar: rgba(12, 10, 22, 0.92);
  --card: rgba(18, 14, 33, 0.88);
  --card-soft: rgba(22, 18, 42, 0.82);
  --ink: #f7f2ff;
  --muted: #b2a8cc;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff1493;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --accent-soft: rgba(255, 20, 147, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 20, 147, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 20%),
    radial-gradient(circle at center, rgba(107, 33, 168, 0.24), transparent 32%),
    linear-gradient(180deg, #12071f 0%, #07040d 55%, #05020a 100%);
}

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

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

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

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 8px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(10, 8, 22, 0.95), rgba(12, 8, 20, 0.9)),
    radial-gradient(circle at top, rgba(255, 20, 147, 0.08), transparent 26%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 20, 147, 0.35);
}

.sidebar-brand p,
.sidebar-copy,
.section-copy,
.hero-copy,
.field span,
.profile-copy,
.photo-copy,
.admin-item p {
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.nav-link {
  padding: 13px 16px;
  border-radius: 16px;
  color: #c8c0e7;
  background: transparent;
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.24), rgba(107, 33, 168, 0.24));
  box-shadow: 0 0 24px rgba(255, 20, 147, 0.14);
}

.sidebar-box {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.content-shell {
  width: min(1240px, calc(100vw - 330px));
  padding: 24px 24px 56px;
}

.card {
  background:
    linear-gradient(180deg, rgba(22, 16, 40, 0.94), rgba(12, 10, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 20, 147, 0.35);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
}

.hero-subtitle {
  margin-top: 8px;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  color: #e2d7ff;
}

.hero-copy {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 1.03rem;
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  gap: 14px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.14) 0%, rgba(107, 33, 168, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 20, 147, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
}

.toolbar {
  margin-top: 24px;
  padding: 20px;
}

.toolbar-row,
.profile-hero,
.photo-layout,
.admin-grid,
.action-row {
  display: grid;
  gap: 18px;
}

.toolbar-row {
  grid-template-columns: 2fr 1fr 1fr;
}

.field,
.stack-form {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.section-head {
  margin: 26px 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.coser-grid,
.gallery-grid,
.admin-list {
  display: grid;
  gap: 18px;
}

.coser-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.coser-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.coser-preview {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(71, 80, 120, 0.18);
}

.handle-line,
.social-row,
.tag-stack,
.meta-row,
.profile-metrics,
.form-actions,
.photo-actions,
.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.handle-pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.handle-pill {
  background: #f2f4ff;
  color: #56607a;
}

.page-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.admin-entry-button {
  border: 1px solid rgba(125, 105, 255, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #4b5570;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(125, 105, 255, 0.08);
}

.admin-quick-strip {
  margin-bottom: 22px;
}

.admin-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.home-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 31, 0.52);
}

.home-admin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  margin: min(12vh, 96px) auto 0;
  padding: 24px;
}

.meta-chip {
  background: var(--accent-soft);
  color: #9a2d5b;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f7f8fc;
  color: #465067;
}

.social-link svg {
  width: 14px;
  height: 14px;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.gallery-preview .thumb-lock-overlay {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(7px) saturate(0.9);
}

.gallery-preview .lock-badge {
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.primary-link,
.ghost-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.primary-link,
button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  color: #4a5470;
  border: 1px solid #dbe0f1;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-hero {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  padding: 22px;
}

.profile-avatar-lg {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 18px 38px rgba(71, 80, 120, 0.18);
}

.profile-name {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: none;
}

.profile-copy {
  font-size: 1rem;
  max-width: 65ch;
}

.profile-metrics {
  margin-top: 16px;
}

.profile-admin-actions {
  margin-top: 16px;
}

.metric-box {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card-soft);
}

.metric-box strong {
  display: block;
  font-size: 1.15rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.media-switcher {
  margin: 26px 0 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.media-switch {
  background: #eef1fb;
  color: #4d5772;
}

.media-switch span {
  margin-left: 8px;
  opacity: 0.7;
}

.media-switch.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}

.media-panel {
  display: none;
}

.media-panel.is-active {
  display: block;
}

.photo-card {
  overflow: hidden;
  position: relative;
}

.photo-thumb {
  position: relative;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 0.84 / 1;
  object-fit: cover;
}

.photo-card video {
  width: 100%;
  aspect-ratio: 0.84 / 1;
  object-fit: cover;
  background: #111;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.2);
}

.video-thumb::before {
  content: "";
  position: absolute;
  right: 38px;
  bottom: 34px;
  z-index: 2;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ff4d8d;
}

.thumb-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px) saturate(0.92);
  pointer-events: none;
  z-index: 1;
}

.photo-card-body,
.photo-info,
.admin-panel {
  padding: 16px;
}

.lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d8d 0%, #ff7a59 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.3);
  z-index: 2;
}

.play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 2;
}

.media-delete-button {
  padding: 7px 12px;
  background: rgba(20, 23, 33, 0.82);
  color: #fff;
  font-size: 0.82rem;
}

.media-state-button {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #25304a;
  font-size: 0.82rem;
}

.media-admin-actions {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-bulk-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.media-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.media-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(125, 105, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #485471;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.media-filter-chip span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #7f4dcf;
  font-size: 0.78rem;
}

.media-filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ea4c89, #6d70f6);
  color: #fff;
  box-shadow: 0 16px 36px rgba(109, 112, 246, 0.22);
}

.media-filter-chip.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.media-pick-checkbox {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #25304a;
  font-size: 0.78rem;
  font-weight: 600;
}

.media-pick-checkbox input {
  margin: 0;
}

.photo-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
}

.photo-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.photo-stage img,
.photo-stage video {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  background: #111;
}

.video-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 820px);
  background: #0d1018;
}

.video-stage video {
  width: 100%;
  min-height: auto;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: #0d1018;
}

.gallery-grid .photo-card.is-hidden,
.empty-state.is-hidden {
  display: none;
}

.profile-studio {
  margin-top: 26px;
  padding: 20px;
}

.profile-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

body.modal-open {
  overflow: hidden;
}

.profile-media-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 14, 22, 0.76);
  backdrop-filter: blur(10px);
}

.profile-media-modal[hidden] {
  display: none !important;
}

.profile-nsfw-banner {
  margin: 0 0 20px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 255, 0.96));
}

.profile-nsfw-banner .photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.profile-nsfw-banner .primary-link,
.profile-nsfw-banner .ghost-button {
  min-width: 150px;
}

.profile-nsfw-banner h2,
.profile-nsfw-banner .section-copy {
  margin: 0;
}

.profile-nsfw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.profile-nsfw-actions .primary-link,
.profile-nsfw-actions .ghost-button {
  min-width: 160px;
}


.profile-modal-shell {
  width: min(1280px, 100%);
  min-height: min(88vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  position: relative;
}

.profile-modal-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1118;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-modal-stage img,
.profile-modal-stage video {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #0f1118;
}

.profile-modal-info {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(10, 14, 24, 0.18);
}

.profile-modal-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 14, 22, 0.48);
  backdrop-filter: blur(8px);
}

.profile-modal-lock-panel {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.modal-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.72);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-stage-nav {
  display: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(27, 31, 45, 0.34)),
    rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px) saturate(0.9);
}

.locked-panel {
  width: 100%;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.video-locked-overlay {
  background: transparent;
  backdrop-filter: none;
}

.video-locked-overlay .locked-panel {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.28);
}

.photo-stage.is-unlocked .locked-overlay {
  display: none;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-page {
  padding-top: 28px;
}

.global-admin-bar {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.global-admin-bar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.gate-card,
.admin-actions {
  padding: 22px;
}

.gate-card {
  max-width: 560px;
}

.gate-card h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.action-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.admin-grid {
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 18px;
}

.admin-home-card {
  text-align: left;
  border: 1px solid rgba(104, 111, 129, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-home-card:hover,
.admin-home-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.08);
  border-color: rgba(224, 72, 149, 0.28);
}

.admin-home-card h2,
.admin-home-card p {
  margin-top: 0;
}

.admin-section-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-item {
  padding: 14px;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px solid var(--line);
}

.admin-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-checkbox {
  gap: 8px;
  font-size: 0.92rem;
}

.admin-item-select {
  margin-bottom: 10px;
}

.danger-button {
  color: #b1245b;
  border-color: rgba(177, 36, 91, 0.22);
}

.admin-item h3,
.admin-item p {
  margin: 0;
}

.empty-state {
  padding: 26px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed #d5dbef;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(104, 111, 129, 0.12);
  }

  .content-shell {
    width: min(1240px, calc(100vw - 32px));
    padding: 20px 16px 48px;
  }
}

@media (max-width: 820px) {
  .hero,
  .toolbar-row,
  .profile-hero,
  .photo-layout,
  .global-admin-bar__row {
    grid-template-columns: 1fr;
  }

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

  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-avatar-lg,
  .avatar {
    margin-inline: auto;
  }

  .profile-hero {
    text-align: center;
  }

  .social-row,
  .handle-line,
  .profile-metrics {
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-card {
    min-width: 0;
  }

  .photo-thumb img,
  .photo-thumb video {
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

@media (max-width: 520px) {
  .content-shell {
    width: min(1240px, calc(100vw - 20px));
    padding-inline: 10px;
  }

  .sidebar {
    padding: 18px 14px;
  }

  .sidebar-brand {
    padding-bottom: 16px;
  }

  .sidebar-nav {
    margin: 18px 0;
    gap: 8px;
  }

  .hero,
  .toolbar,
  .profile-hero,
  .gate-card {
    padding: 18px;
  }

  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-strip img {
    height: 96px;
  }

  .coser-grid,
  .admin-grid,
  .admin-home-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-card,
  .photo-thumb {
    border-radius: 16px;
  }

  .photo-thumb img,
  .photo-thumb video {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .profile-avatar-lg {
    width: 108px;
    height: 108px;
  }

  .profile-copy {
    max-width: none;
  }

  .profile-modal-shell {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    display: block;
  }

  .profile-media-modal {
    padding: 0;
  }

  .profile-modal-stage {
    height: 100vh;
    border-radius: 0;
  }

  .profile-modal-stage img,
  .profile-modal-stage video {
    width: 100vw;
    height: 100vh;
    max-height: none;
    object-fit: contain;
  }

  .profile-modal-info {
    display: none;
  }

  .modal-close-button {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    z-index: 5;
  }

  .modal-stage-nav {
    position: absolute;
    inset: auto 0 calc(env(safe-area-inset-bottom, 0px) + 18px) 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
  }

  .modal-stage-nav .ghost-button,
  .modal-stage-nav .primary-link,
  .modal-stage-nav button {
    pointer-events: auto;
    min-width: 92px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(10, 14, 24, 0.32);
  }

  .profile-modal-lock {
    padding: 18px;
  }
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
}

.form-status[data-state="info"] {
  color: #5a6787;
}

.form-status[data-state="success"] {
  color: #18794e;
}

.form-status[data-state="error"] {
  color: #d12f6a;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}
