/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d0d12;
  color: #f4f4f8;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #7aabff; text-decoration: none; }
a:hover { color: #aac8ff; }
img, video { width: 100%; border-radius: 10px; display: block; }

/* ── Topbar ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111119;
  border-bottom: 1px solid #23233a;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.2;
}
.topbar-menu {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}
.topbar-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #9eb8ff;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topbar-links > a:hover {
  background: rgba(122, 171, 255, 0.08);
  color: #d4e2ff;
}
.topbar-links a.nav-admin-panel {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #6c63ff;
  background: rgba(108, 99, 255, 0.18);
  color: #d8d2ff !important;
  font-weight: 600;
  font-size: 13px;
}
.topbar-links a.nav-admin-panel:hover {
  background: rgba(108, 99, 255, 0.32);
  color: #fff !important;
}
.topbar-trail {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-shrink: 0;
}
.topbar-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #2e3358;
  border-radius: 10px;
  background: #16162a;
  color: #c8c8e8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.topbar-burger:hover {
  background: #1e1e3d;
  border-color: #4a5080;
}
.topbar-burger-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.topbar-burger-line {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.topbar-menu-open .topbar-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar-menu-open .topbar-burger-line:nth-child(2) { opacity: 0; }
.topbar-menu-open .topbar-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.topbar-role-badge {
  font-size: 11px;
  padding: 4px 9px;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-account {
  font-size: 14px;
  max-width: min(160px, 36vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 4px;
  border-radius: 8px;
}
.topbar-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: #2a3a78;
  color: #e8ecff !important;
  border: 1px solid #3f5088;
}
.topbar-login:hover {
  background: #354890;
  color: #fff !important;
}
.logout-form { display: inline-flex; align-items: center; }
.logout-form button {
  background: none;
  border: 0;
  color: #7aabff;
  cursor: pointer;
  padding: 8px 10px;
  margin: 0;
  font-size: 14px;
  text-decoration: underline;
  border-radius: 8px;
  min-height: 40px;
}
.logout-form button:hover { color: #fff; }

@media (max-width: 768px) {
  .topbar-inner {
    padding: 10px 14px;
    gap: 10px 12px;
    flex-wrap: wrap;
  }
  .topbar-menu {
    flex: 1 1 100%;
    order: 4;
    justify-content: stretch;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }
  .topbar-menu-open .topbar-menu {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    pointer-events: auto;
    padding-bottom: 6px;
  }
  .topbar-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px 0 4px;
    border-top: 1px solid #23233a;
    margin-top: 4px;
  }
  .topbar-links > a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .topbar-links a.nav-admin-panel {
    justify-content: center;
  }
  .topbar-trail {
    margin-left: auto;
    gap: 4px 8px;
  }
  .topbar-burger {
    display: inline-flex;
    flex-shrink: 0;
  }
  .topbar-actions .notif-bell {
    width: 44px;
    height: 44px;
  }
  .topbar-account {
    max-width: min(120px, 28vw);
    font-size: 13px;
    padding: 8px 6px;
  }
  body.topbar-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .topbar-burger {
    display: none !important;
  }
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
main.container {
  flex: 1 0 auto;
  width: 100%;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }

/* ── Site footer ──────────────────────────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 18px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #111119;
  border-top: 1px solid #23233a;
}
.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
}
.site-footer-legal a {
  color: #8aacff;
}
.site-footer-legal a:hover {
  color: #c8d8ff;
}
.site-footer-sep {
  color: #4a4a68;
  user-select: none;
}
.site-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #b8c4f0;
  background: #1a1a2e;
  border: 1px solid #2e3358;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social:hover {
  color: #fff;
  background: #252548;
  border-color: #6c63ff;
}
.footer-social-svg {
  width: 20px;
  height: 20px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 24px 0 20px; }
.hero h1 { margin: 0 0 8px; font-size: 1.8rem; }
.hero p, .hero-sub { color: #8888aa; margin: 0 0 14px; font-size: 15px; }

/* ── Panel / Card ─────────────────────────────────────────────────────── */
.panel, .card {
  background: #15151f;
  border: 1px solid #272738;
  border-radius: 14px;
  padding: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.panel h3 { margin: 0 0 14px; font-size: 1.05rem; }
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-thumb-link { display: block; text-decoration: none; color: inherit; }
.card-hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 2;
}
.card-thumb-img { transition: opacity .2s; }
.card-play-idle {
  transition: opacity .2s;
  z-index: 3;
}
.card-thumb-hoverable:hover .card-play-idle { opacity: 0; }

/* mobile hold-to-preview ring */
.card-thumb-previewing::after {
  content: "▶ 4×";
  position: absolute; top: 8px; right: 8px; z-index: 10;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 20px;
  pointer-events: none;
}
.card-thumb {
  position: relative; overflow: hidden;
  background: #08080f; flex-shrink: 0;
}
.card-thumb img {
  width: 100%; height: 220px; object-fit: cover;
  display: block; border-radius: 0;
  transition: transform .25s;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; pointer-events: none;
}
.card-badge {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  font-weight: 600; letter-spacing: .02em;
}
.card-badge-unlocked { background: rgba(26,61,44,.85); color: #9defc1; border: 1px solid #2a6040; }
.card-badge-locked   { background: rgba(30,10,10,.85); color: #ff9c9c; border: 1px solid #6b2a2a; }
.card-badge-staff    { background: rgba(42,26,64,.85); color: #c899ff; border: 1px solid #5a3880; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { margin: 0; font-size: 15px; font-weight: 700; }
.card-author { font-size: 12px; color: #6a6a88; margin: 0 0 4px; }
.card-author strong { color: #9898c0; }
.card-desc {
  font-size: 13px; color: #8888aa; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body .price { margin: 0; font-size: 14px; }
.card-body .link-btn,
.card-body button { width: 100%; margin-top: 4px; }

/* ── Flash ────────────────────────────────────────────────────────────── */
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.flash.ok    { background: #1a3d2c; border: 1px solid #2a6040; color: #9defc1; }
.flash.error { background: #3d1a1a; border: 1px solid #6b2a2a; color: #f99; }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid #2e3350; background: #111524; color: #b0c4ff;
  font-size: 13px; white-space: nowrap;
}
.tab.active { background: #3350cc; color: #fff; border-color: #3350cc; }
.tab:hover:not(.active) { background: #1c2040; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 10px; }
label { display: block; font-size: 13px; color: #b0b4cc; }
input, textarea, select {
  width: 100%; margin-top: 4px; padding: 9px 10px;
  border-radius: 8px; border: 1px solid #3a3a58;
  background: #0f0f1a; color: #f4f4f8;
  font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #4f7cff; box-shadow: 0 0 0 2px rgba(79,124,255,.2);
}
textarea { min-height: 80px; resize: vertical; }
small.muted { color: #6a6a88; font-weight: normal; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
button, .link-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 14px; border: 0; border-radius: 9px;
  background: #4060e0; color: #fff; font-size: 14px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background .15s;
}
button:hover, .link-btn:hover { background: #5070ee; }
.btn-primary  { background: #4060e0; }
.btn-primary:hover { background: #5272f0; }
.btn-danger   { background: #952828; }
.btn-danger:hover  { background: #b33030; }
.btn-ghost {
  background: transparent; border: 1px solid #3a3a58; color: #b0b4cc;
}
.btn-ghost:hover { background: #1c1c2c; color: #f4f4f8; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 7px; margin-top: 0; }
.btn-large { padding: 12px 24px; font-size: 1rem; }

/* ── Badge ────────────────────────────────────────────────────────────── */
.badge {
  background: #1e1e32; border: 1px solid #383858;
  border-radius: 999px; padding: 3px 10px; font-size: 12px;
  white-space: nowrap;
}
.badge-ok  { background: #1a3d2c; color: #9defc1; border-color: #2a6040; }
.badge-off { background: #3a2020; color: #f99;    border-color: #6b2a2a; }

/* ── Table ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 460px; }
th, td { border-bottom: 1px solid #252535; text-align: left; padding: 9px 8px; font-size: 13px; }
th { color: #8888aa; font-weight: 600; }
.row-warning td { background: #261b0e; }

/* ── Admin audit log ──────────────────────────────────────────────────── */
.audit-panel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.audit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #10101c;
  border: 1px solid #252535;
  border-radius: 12px;
}
.audit-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.audit-filter-field.audit-filter-grow {
  flex: 1 1 200px;
  min-width: 180px;
}
.audit-filter-label {
  font-size: 12px;
  color: #8888aa;
  font-weight: 500;
}
.audit-filters .audit-filter-field input,
.audit-filters .audit-filter-field select {
  margin-top: 0;
}
.audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.audit-th-sort {
  color: #a8b8e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.audit-th-sort:hover { color: #fff; }
.audit-sort-ind {
  font-size: 11px;
  opacity: 0.85;
}
.audit-table .audit-ts {
  white-space: nowrap;
  font-size: 12px;
  color: #b0b0d0;
}
.audit-action-pill {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1a1e36;
  border: 1px solid #2e3358;
  font-size: 12px;
  word-break: break-word;
}
.audit-actor-cell {
  word-break: break-word;
  max-width: 220px;
}
.audit-payload-cell code {
  display: block;
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .audit-filter-actions {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .audit-table-wrap {
    overflow-x: visible;
    margin: 0 -4px;
  }
  .audit-table {
    min-width: 0 !important;
    width: 100%;
  }
  .audit-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .audit-table tbody { display: block; }
  .audit-table tr {
    display: block;
    border: 1px solid #2a2a40;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #12121c;
  }
  .audit-table td {
    display: block;
    width: 100%;
    border: 0;
    padding: 8px 0;
    text-align: left !important;
  }
  .audit-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #7a7a9a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
  }
  .audit-table .audit-payload-cell code {
    max-width: none;
  }
}

/* ── Admin: comments moderation ───────────────────────────────────────── */
.mod-comments-panel h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.mod-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.mod-comment-card {
  background: #12121c;
  border: 1px solid #2a2a44;
  border-radius: 14px;
  padding: 14px 16px 16px;
  transition: border-color 0.15s;
}
.mod-comment-card:hover {
  border-color: #3a3a62;
}
.mod-comment-card-hidden {
  opacity: 0.88;
  border-color: #3a2828;
  background: #141016;
}
.mod-comment-card-reply {
  border-left: 3px solid #6c63ff;
  padding-left: 18px;
}
.mod-comment-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.mod-comment-video {
  font-weight: 600;
  color: #8aacff;
  font-size: 14px;
}
.mod-comment-video:hover {
  color: #c8d8ff;
}
.mod-comment-time {
  margin-left: auto;
  font-size: 12px;
  color: #6a6a88;
}
.mod-comment-creator-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #2a2048;
  border: 1px solid #4a4080;
  color: #c8b8ff;
}
.mod-comment-parent-hint {
  font-size: 11px;
  color: #7070a0;
  margin: -4px 0 8px;
}
.mod-comment-author-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-bottom: 8px;
}
.mod-comment-author-label {
  font-size: 11px;
  color: #6a6a88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mod-comment-author {
  font-size: 13px;
  color: #b8b8d8;
  word-break: break-all;
}
.mod-comment-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8f2;
  white-space: pre-wrap;
  word-break: break-word;
}
.mod-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #252535;
}
.mod-comment-form {
  display: inline;
  margin: 0;
}
.mod-comment-form button {
  margin-top: 0;
}
.mod-comment-reply {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}
.mod-comment-reply-summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #8aacff;
  list-style: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2e3358;
  background: #16162a;
  display: inline-block;
}
.mod-comment-reply-summary:hover {
  background: #1e1e38;
  color: #c8d8ff;
}
.mod-comment-reply summary::-webkit-details-marker {
  display: none;
}
.mod-comment-reply-form {
  margin-top: 12px;
  padding: 12px 14px;
  background: #0e0e18;
  border: 1px solid #2a2a40;
  border-radius: 12px;
}
.mod-comment-reply-form textarea {
  min-height: 72px;
}
@media (max-width: 520px) {
  .mod-comment-time {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Watch: threaded comments ─────────────────────────────────────────── */
.watch-panel .watch-comment.watch-comment-reply {
  margin-left: calc(4px + (var(--reply-depth, 0) * 14px));
  border-left: 3px solid #3a3a60;
  padding-left: 12px;
  background: #0e0e18;
}
.watch-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.watch-comment-head .comment-time {
  margin-left: 0;
}
.watch-comment-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a3080, #2a2060);
  border: 1px solid #6c63ff;
  color: #e8e0ff;
}
.watch-comment-text {
  margin-top: 4px;
  word-break: break-word;
}

/* ── Typography ───────────────────────────────────────────────────────── */
.meta  { font-size: 12px; opacity: .7; margin-bottom: 4px; }
.comment-time { color: #55556a; font-size: 11px; }
.price { color: #ffca83; }
.unlocked { color: #98f5b4; }
.locked   { color: #ff9c9c; }
code { color: #f2d9a6; font-size: 13px; }
.empty-state { color: #555570; font-style: italic; padding: 14px 0; }
.status-ok   { color: #9defc1; }
.status-warn { color: #f9c74f; }
hr { border: 0; border-top: 1px solid #252535; margin: 14px 0; }
.hidden { display: none !important; }

/* ── Media ────────────────────────────────────────────────────────────── */
.blur { filter: blur(12px); }

/* ── Chat (shared bubbles) ─────────────────────────────────────────────── */
.list { display: grid; gap: 8px; }
.message {
  background: #10101c; border: 1px solid #252535; border-radius: 10px; padding: 10px;
}
.chat-bubble-wrap {
  display: flex; align-items: flex-end; gap: 8px;
  margin: 4px 0;
}
.bubble-out { flex-direction: row-reverse; }
.bubble-in  { flex-direction: row; }
.chat-bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 18px;
  font-size: 14px; line-height: 1.5; word-break: break-word;
  position: relative;
}
.bubble-out .chat-bubble {
  background: #3a4ecc; color: #fff; border-bottom-right-radius: 4px;
}
.bubble-in .chat-bubble {
  background: #1c1c2e; color: #d0d0ee; border-bottom-left-radius: 4px;
  border: 1px solid #2a2a40;
}
.bubble-meta, .bubble-time {
  font-size: 10px; color: rgba(255,255,255,.45); margin-top: 4px;
  text-align: right;
}
.bubble-in .bubble-meta,
.bubble-in .bubble-time { text-align: left; }
.chat-bubble-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #2d3a88; color: #aab4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ── Inline form helper ───────────────────────────────────────────────── */
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; }
.inline-form button { margin-top: 0; }

/* ── Tab badge ────────────────────────────────────────────────────────── */
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #c0392b; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; padding: 0 4px;
  margin-left: 4px; vertical-align: middle;
}

/* ── Reports tab ──────────────────────────────────────────────────────── */
.reports-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.reports-header h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.reports-pending-badge { font-size: 12px; }
.report-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.report-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.report-detail { max-width: 180px; font-size: 12px; color: #8888aa; }
.report-vid-link { font-weight: 700; color: #7aabff; }
.report-status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.report-status-pending  { background: #3a2810; color: #f9c74f; }
.report-status-resolved { background: #1a3d2c; color: #9defc1; }
.report-status-dismissed{ background: #1e1e32; color: #8888aa; }
.report-status-takedown { background: #3d1a1a; color: #f99; }
.report-reason { font-size: 12px; }
.report-reason-minor_suspected { color: #f99; font-weight: 700; }
.report-reason-non_consensual  { color: #f9c74f; }
.report-reason-illegal_content { color: #f99; font-weight: 700; }

/* ── Admin feed ───────────────────────────────────────────────────────── */
.feed-catalog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.feed-reorder-status {
  font-size: 13px;
  font-weight: 500;
  min-height: 1.3em;
}
.feed-reorder-status.is-pending { color: #a0a8e0; }
.feed-reorder-status.is-ok { color: #9defc1; }
.feed-reorder-status.is-err { color: #f99; }
.feed-sort-hint { margin: 0 0 14px; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.feed-grid-sortable {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.feed-card[draggable="true"] {
  cursor: grab;
  position: relative;
}
.feed-card[draggable="true"]:active {
  cursor: grabbing;
}
.feed-card-dragging {
  opacity: 0.55;
  outline: 2px dashed #6c63ff;
  outline-offset: 2px;
}
.feed-drag-handle {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  color: #6a6a88;
  background: linear-gradient(180deg, #1a1a2e, #141420);
  border-bottom: 1px solid #252535;
  cursor: grab;
  user-select: none;
}
.feed-drag-handle:active {
  cursor: grabbing;
  color: #8aacff;
}
.feed-card {
  border: 1px solid #252535; border-radius: 12px;
  overflow: hidden; background: #0f0f1a;
  display: flex; flex-direction: column;
}
.feed-media { position: relative; background: #080810; flex-shrink: 0; }
.feed-media img,
.feed-media video {
  width: 100%; max-height: 200px; object-fit: contain;
  border-radius: 0; display: block;
}
.feed-info { padding: 8px 12px; flex: 1; display: flex; flex-direction: column; }
.feed-title-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.feed-id    { color: #5566aa; font-size: 11px; flex-shrink: 0; }
.feed-title { font-size: 13px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-desc  { font-size: 12px; color: #8888aa; margin: 2px 0 6px; line-height: 1.4;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Feed comments */
.feed-comments { margin-top: 8px; border-top: 1px solid #1e1e2e; padding-top: 8px; }
.feed-comments-label { font-size: 10px; color: #5a5a7a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.feed-comment {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.4; padding: 3px 0;
  border-bottom: 1px solid #16162a;
}
.feed-comment:last-child { border-bottom: none; }
.feed-comment-hidden { opacity: .45; }
.feed-comment-author { color: #7a9aee; font-weight: 600; flex-shrink: 0; }
.feed-comment-body   { color: #a0a0c8; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.badge-video { background: #1a1e3c; color: #99aaff; border-color: #303878; }
.badge-photo { background: #1a2e1a; color: #99f5b0; border-color: #2a6040; }
.feed-actions {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #1e1e30;
}
.preview-details summary {
  cursor: pointer; font-size: 13px; color: #7aabff;
  padding: 5px 10px; border: 1px solid #2e3350; border-radius: 7px;
  display: inline-block;
}
.preview-details summary:hover { background: #1c2040; }
.preview-controls {
  display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.preview-controls label { font-size: 12px; color: #8888aa; }
.preview-form { margin-top: 0; }

/* ── Feed edit drawer ─────────────────────────────────────────────────── */
.feed-edit-drawer {
  border-top: 1px solid #2a2a40;
  padding: 14px;
  background: #0b0b16;
  animation: slideDown .15s ease;
}
.feed-edit-form label { font-size: 13px; color: #9898c0; margin-bottom: 10px; }
.feed-edit-form input[type="text"],
.feed-edit-form input[type="number"],
.feed-edit-form textarea,
.feed-edit-form input[type="file"] {
  width: 100%; font-size: 14px;
}
.feed-edit-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: end; margin-bottom: 10px;
}
.feed-edit-grid label { margin-bottom: 0; }
.feed-edit-btns {
  display: flex; gap: 8px; margin-top: 12px;
}
.label-text { font-size: 12px; color: #8888aa; display: block; margin-bottom: 4px; }
.preview-capture-row { margin-top: 10px; }
.edit-preview-canvas {
  display: block; margin-top: 10px;
  max-width: 100%; max-height: 200px; object-fit: contain;
  border-radius: 8px; border: 1px solid #2a2a40;
}
.capture-status { font-size: 12px; color: #66dd88; margin-left: 6px; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Upload progress ──────────────────────────────────────────────────── */
.upload-progress { margin: 10px 0; }
.progress-track { background: #1a1a28; border-radius: 8px; height: 10px; overflow: hidden; margin-bottom: 6px; }
.progress-fill  {
  background: linear-gradient(90deg, #e91e8c, #f06292);
  height: 100%; width: 0%; transition: width .2s; border-radius: 8px;
}
#progress-text { font-size: 13px; color: #888; }

/* ── Users tab ────────────────────────────────────────────────────────── */
.users-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}
.user-list { display: grid; gap: 10px; }
.user-card {
  border: 1px solid #272738; border-radius: 12px;
  background: #0f0f1a; overflow: hidden;
}
.user-card-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #2a3480; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 12px; color: #7788aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.role-badge { font-size: 11px; padding: 3px 8px; }
.role-admin    { background: #2a1a40; color: #c899ff; border-color: #5a3880; }
.role-editor   { background: #1a2a40; color: #99c8ff; border-color: #285888; }
.role-support  { background: #1a3330; color: #99f5d8; border-color: #286050; }
.role-moderator{ background: #2e2a18; color: #f5d899; border-color: #605820; }
.role-customer { background: #1e1e32; color: #aaa8cc; border-color: #383858; }
.user-edit-drawer {
  border-top: 1px solid #272738;
  padding: 14px;
  background: #12121e;
}
.edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.edit-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.delete-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid #252535; }

/* ── Payment checkout ─────────────────────────────────────────────────── */
.pay-checkout { max-width: 520px; margin: 0 auto; }
.pay-header   { text-align: center; margin-bottom: 20px; }
.pay-header h2 { margin: 0 0 4px; font-size: 1.4rem; }
.pay-subtitle  { color: #8888aa; margin: 0; font-size: 14px; }
.pay-amount-box {
  text-align: center; padding: 20px 0 24px;
  border-bottom: 1px solid #252535; margin-bottom: 24px;
}
.pay-amount { font-size: 2.8rem; font-weight: 800; color: #fff; }
.pay-label  { font-size: 15px; color: #6a6a88; margin-left: 6px; }
.pay-methods { display: grid; gap: 14px; }
.pay-method-card {
  border: 1px solid #2e3350; border-radius: 14px; padding: 16px 18px;
  background: #0f0f1a; display: grid; gap: 10px;
}
.pay-method-header { display: flex; align-items: center; gap: 12px; }
.pay-method-icon {
  font-size: 1.8rem; width: 44px; height: 44px; border-radius: 10px;
  background: #1a1a2c; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pay-method-header strong { display: block; font-size: 15px; }
.pay-method-sub  { font-size: 12px; color: #7788aa; }
.pay-method-note { font-size: 13px; color: #6a6a88; margin: 0; }
.pay-btn { width: 100%; }
.pay-btn-card   { background: #2563eb; }
.pay-btn-card:hover { background: #3b76f6; }
.pay-btn-crypto { background: #c07800; }
.pay-btn-crypto:hover { background: #d98f00; }
.pay-back { text-align: center; margin-top: 18px; font-size: 13px; }

/* ── Payment success ──────────────────────────────────────────────────── */
.pay-success-panel { max-width: 460px; margin: 40px auto; text-align: center; }
.pay-success-icon {
  font-size: 3rem; width: 72px; height: 72px; border-radius: 50%;
  background: #1a3d2c; color: #4caf50; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 900;
}
.pay-success-note { font-size: 13px; color: #7788aa; margin: 16px 0; }
.pay-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ── Legal ────────────────────────────────────────────────────────────── */
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.legal-doc h3 { margin-top: 18px; margin-bottom: 8px; }
.legal-doc p, .legal-doc li { line-height: 1.6; color: #cdd2e8; }
.legal-doc ul { margin-top: 4px; }

/* ── Account ──────────────────────────────────────────────────────────── */
.account-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin: 0 auto; }

/* Profile card */
.account-profile-card {
  background: #0f0f1e; border: 1px solid #1e1e32; border-radius: 16px;
  padding: 24px; display: flex; gap: 20px; align-items: flex-start;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
.account-profile-info { flex: 1; min-width: 0; }
.account-name   { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.account-email  { font-size: 13px; color: #6a6a88; margin-bottom: 8px; }
.account-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.account-since, .account-location { font-size: 12px; color: #7a7a9a; }
.account-bio    { font-size: 13px; color: #9898b8; line-height: 1.5; margin: 0; }

/* Section boxes */
.account-section-box {
  background: #0f0f1e; border: 1px solid #1e1e32; border-radius: 14px; padding: 20px;
}
.account-section-title { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: #c0c0e0; }
.account-danger-box   { border-color: #3a1a1a; }

/* Collapsible edit section */
.account-section {
  background: #0f0f1e; border: 1px solid #1e1e32; border-radius: 14px; padding: 0;
  overflow: hidden;
}
.account-section > summary {
  padding: 16px 20px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: #a0a0cc; list-style: none; display: flex; align-items: center;
  gap: 8px; user-select: none;
}
.account-section > summary::before { content: "▸"; font-size: 12px; transition: transform .2s; }
.account-section[open] > summary::before { transform: rotate(90deg); }
.account-section > summary:hover { background: #14142a; }
.account-form   { padding: 0 20px 20px; margin: 0; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* Subscription */
.account-sub-active { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-no-sub { font-size: 13px; color: #8888aa; margin: 0; }
.link-inline { color: #7aabff; text-decoration: underline; }

/* Purchase history */
.purchase-list  { display: flex; flex-direction: column; gap: 8px; }
.purchase-item  {
  display: flex; align-items: center; gap: 14px;
  background: #14142a; border: 1px solid #2a2a40;
  border-radius: 10px; padding: 12px 14px;
}
.purchase-icon   { font-size: 22px; flex-shrink: 0; }
.purchase-details { flex: 1; min-width: 0; }
.purchase-desc   { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purchase-meta   { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.purchase-amount { font-size: 15px; color: #aaffc8; font-weight: 700; flex-shrink: 0; }
.badge-blue { background: #1a2a4a; color: #88aaff; border-color: #2a3a70; }

.account-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mfa-secret-box {
  background: #0e0e1c; border: 1px solid #3a3a58; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; word-break: break-all;
  font-family: monospace; font-size: 1.05rem; letter-spacing: .05em;
}
.mfa-panel { max-width: 440px; margin: 60px auto; }
.danger-zone-title { color: #f99; margin: 0 0 6px; }

@media (max-width: 600px) {
  .account-profile-card { flex-direction: column; align-items: center; text-align: center; }
  .account-meta-row { justify-content: center; }
  .account-form-grid { grid-template-columns: 1fr; }
}

/* ── MFA recovery codes ───────────────────────────────────────────────── */
.recovery-codes-reveal {
  background: #0d1f0d; border: 1px solid #2a5e2a; border-radius: 10px; padding: 18px; margin-bottom: 18px;
}
.recovery-codes-reveal h3 { color: #4caf50; margin-top: 0; }
.recovery-warning { color: #f9c74f; font-size: 14px; }
.recovery-code-list {
  list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0;
}
.recovery-code-list li code {
  background: #1a2e1a; padding: 6px 12px; border-radius: 6px;
  font-size: 13px; display: block; letter-spacing: .08em;
}

/* ── Age gate ─────────────────────────────────────────────────────────── */
.age-gate-panel { max-width: 540px; margin: 60px auto; text-align: center; }
.age-gate-logo { font-size: 3rem; font-weight: 900; color: #ff5a5a; margin-bottom: 8px; }
.age-gate-list { text-align: left; display: inline-block; margin: 12px auto; color: #c4c9e0; }
.age-gate-list li { margin: 6px 0; }
.age-gate-form { text-align: left; margin-top: 20px; }
.age-gate-legal { font-size: 12px; color: #606080; margin-top: 16px; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: auto; margin-top: 3px; flex-shrink: 0; }

/* ── Watch page ───────────────────────────────────────────────────────── */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}
.watch-main { display: grid; gap: 12px; }
.watch-player {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}
.watch-player-inner {
  position: relative;
  width: 100%;
  line-height: 0;
}
.watch-player-inner video,
.watch-player-inner img,
.watch-player video,
.watch-player img {
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 0;
  display: block;
}
.watch-overlay-watermark {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  text-align: right;
  font-size: clamp(0.65rem, 2.2vw, 0.8rem);
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  word-break: break-all;
  line-height: 1.3;
}
.watch-meta { padding: 14px 16px; }
.watch-title { margin: 0 0 6px; font-size: 1.15rem; }
.watch-desc  { font-size: 14px; color: #9898b8; margin: 0 0 10px; line-height: 1.5; }

.watch-sidebar { padding: 0; overflow: hidden; position: sticky; top: 16px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.watch-tabs {
  display: flex; border-bottom: 1px solid #252535; flex-shrink: 0;
}
.watch-tab {
  flex: 1; background: none; border: 0; border-radius: 0;
  padding: 12px 8px; font-size: 14px; color: #8888aa;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color .15s;
}
.watch-tab:hover { color: #ccc; background: none; }
.watch-tab.active { color: #fff; border-bottom-color: #4060e0; background: none; }
.watch-sidebar-title {
  padding: 12px 14px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid #252535; flex-shrink: 0;
}
.watch-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; flex: 1; }
.watch-scroll { display: grid; gap: 8px; overflow-y: auto; max-height: 300px; }

/* ── Customer chat page ────────────────────────────────────────────────── */
.chat-page-wrap {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column;
  height: calc(100vh - 120px); min-height: 400px;
  background: #0c0c18; border-radius: 18px;
  border: 1px solid #1e1e32; overflow: hidden;
}
.chat-page-split {
  flex-direction: row !important;
}
.chat-contacts-sidebar {
  width: 220px; flex-shrink: 0;
  border-right: 1px solid #1e1e32;
  display: flex; flex-direction: column;
  background: #0f0f1e;
}
.chat-contacts-header {
  padding: 16px 14px 10px; font-size: 13px; font-weight: 700;
  color: #8888aa; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid #1e1e32;
}
.chat-contacts-list { overflow-y: auto; flex: 1; }
.chat-contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #14142a; transition: background .15s;
}
.chat-contact-item:hover  { background: #12122a; }
.chat-contact-item.active { background: #161638; border-left: 3px solid #4a5acc; }
.chat-contact-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #2d3a88; color: #aab4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.chat-contact-meta { flex: 1; min-width: 0; }
.chat-contact-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-contact-sub  { font-size: 11px; color: #6a6a88; }
.chat-thread-side {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.chat-thread-tag {
  display: inline-block; background: #1e2438; color: #7a9aee;
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
  border: 1px solid #2a3a60; white-space: nowrap;
}
.chat-page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid #1e1e32;
  background: #0f0f1e;
}
.chat-page-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #3040b0; color: #aab4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.chat-page-title { font-weight: 600; font-size: 15px; }
.chat-page-sub   { font-size: 12px; color: #6a6a88; }
.chat-page-messages {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.chat-welcome-hint {
  margin: auto; text-align: center; color: #6a6a88; padding: 30px;
}
.chat-welcome-icon { font-size: 40px; margin-bottom: 12px; }
.chat-page-input {
  padding: 12px 16px; border-top: 1px solid #1e1e32;
  background: #0f0f1e;
}
.chat-input-row {
  display: flex; align-items: flex-end; gap: 10px;
}
.chat-textarea {
  flex: 1; background: #14142a; border: 1px solid #2a2a44;
  border-radius: 22px; padding: 10px 16px;
  color: #e0e0f0; font-size: 14px; resize: none;
  outline: none; line-height: 1.4; overflow-y: hidden;
  min-height: 42px; max-height: 120px;
}
.chat-textarea:focus { border-color: #4a5acc; }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: #3a4ecc; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-send-btn:hover { background: #4a60e0; }
.chat-hint { font-size: 11px; color: #44446a; margin: 6px 0 0 4px; }

/* ── Staff inbox page ─────────────────────────────────────────────────── */
.inbox-wrap {
  display: grid; grid-template-columns: 280px 1fr;
  border: 1px solid #1e1e32; border-radius: 14px; overflow: hidden;
  height: calc(100vh - 140px); min-height: 500px;
  background: #0c0c18;
}
/* Nav chat badge */
.nav-chat-link { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav-unread-badge {
  background: #e03838; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center;
  line-height: 1.4;
}

/* ── Admin chat layout ─────────────────────────────────────────────────── */
.chat-subtabs {
  display: flex; gap: 4px; padding: 0 0 16px;
}
.chat-subtab-btn {
  padding: 7px 18px; border-radius: 20px; font-size: 13px;
  text-decoration: none; color: #8888aa;
  border: 1px solid #252535; background: transparent;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.chat-subtab-btn.active { background: #1e2840; color: #aac0ff; border-color: #3050a0; }
.chat-subtab-btn:hover  { background: #14142a; color: #c0c0e8; }

.chat-admin-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  border: 1px solid #1e1e32; border-radius: 14px; overflow: hidden;
  height: calc(100vh - 200px); min-height: 500px;
  background: #0c0c18;
}
.chat-sidebar {
  border-right: 1px solid #1e1e32; display: flex; flex-direction: column;
  background: #0f0f1e;
}
.chat-sidebar-search { padding: 12px; border-bottom: 1px solid #1e1e32; }
.chat-search-form { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-search-input {
  flex: 1; min-width: 0; background: #14142a; border: 1px solid #2a2a44;
  border-radius: 8px; padding: 6px 10px; color: #e0e0f0; font-size: 13px;
}
.chat-filter-select {
  background: #14142a; border: 1px solid #2a2a44; border-radius: 8px;
  padding: 6px 8px; color: #e0e0f0; font-size: 13px;
}
.chat-conv-list { flex: 1; overflow-y: auto; }
.chat-conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #14142a;
  transition: background .15s;
}
.chat-conv-item:hover  { background: #12122a; }
.chat-conv-item.active { background: #161630; }
.chat-conv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #2d3a88; color: #aab4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.chat-conv-meta { flex: 1; min-width: 0; }
.chat-conv-name    { font-size: 13px; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.chat-conv-preview { font-size: 12px; color: #6a6a88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-unread-dot {
  background: #e05050; color: #fff; font-size: 11px;
  border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.chat-conv-time { font-size: 10px; color: #5a5a7a; }
.chat-empty { padding: 20px; color: #5a5a7a; font-size: 13px; }

.chat-thread-panel {
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-thread-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid #1e1e32;
  background: #0f0f1e; flex-shrink: 0;
}
.chat-thread-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #283680; color: #aab4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.chat-thread-name  { font-size: 14px; font-weight: 600; }
.chat-thread-email { font-size: 12px; color: #6a6a88; }
.chat-thread-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.chat-thread-reply {
  border-top: 1px solid #1e1e32; padding: 12px 16px;
  background: #0f0f1e; flex-shrink: 0;
}
.chat-reply-form { display: flex; flex-direction: column; gap: 8px; }
.chat-reply-top  { display: flex; gap: 8px; }
.chat-template-select {
  background: #14142a; border: 1px solid #2a2a44; border-radius: 8px;
  padding: 6px 10px; color: #e0e0f0; font-size: 13px; flex: 1;
}
.chat-reply-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-reply-input {
  flex: 1; background: #14142a; border: 1px solid #2a2a44;
  border-radius: 12px; padding: 10px 14px;
  color: #e0e0f0; font-size: 14px; resize: vertical; outline: none;
}
.chat-reply-input:focus { border-color: #4a5acc; }
.chat-no-selection {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #44446a; font-size: 14px;
}

/* ── Auto-messages admin ───────────────────────────────────────────────── */
.automsg-card {
  background: #0f0f1e; border: 1px solid #1e1e32; border-radius: 14px;
  overflow: hidden; margin-bottom: 16px;
}
.automsg-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px; border-bottom: 1px solid #1e1e32;
}
.automsg-card-header strong { font-size: 14px; }
.automsg-desc { font-size: 12px; color: #6a6a88; margin: 4px 0 0; }
.automsg-form { padding: 16px 18px; margin: 0; }
.automsg-toggle-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.toggle-label { font-size: 13px; color: #9898c0; }
.badge-green { background: #1a3a1a; color: #66dd88; border-color: #2a5a2a; }
.badge-off   { background: #2a2a2a; color: #666; border-color: #333; }
.template-list { padding: 0 18px 16px; display: grid; gap: 8px; }
.template-item {
  background: #14142a; border: 1px solid #2a2a44; border-radius: 10px;
  padding: 10px 14px;
}
.template-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.template-body  { font-size: 13px; color: #8888aa; margin-bottom: 8px; }
.help-text { font-size: 13px; color: #6a6a88; margin: -6px 0 16px; }

/* ── Report ───────────────────────────────────────────────────────────── */
.report-toggle summary { cursor: pointer; color: #ff9c9c; font-size: 13px; }
.report-form { margin-top: 10px; padding: 12px; background: #1a0f0f; border-radius: 10px; border: 1px solid #5c2929; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .users-layout { grid-template-columns: 1fr; }
  .edit-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { position: static; max-height: none; }
  .watch-player-inner video, .watch-player-inner img, .watch-player video, .watch-player img { max-height: 56vw; }
  .watch-scroll { max-height: 240px; }
}
@media (max-width: 700px) {
  .grid.two     { grid-template-columns: 1fr; }
  .container    { padding: 14px 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .age-gate-panel { margin: 24px auto; }
  .recovery-code-list { grid-template-columns: 1fr; }
  .tabs { gap: 4px; }
  .tab { padding: 6px 10px; font-size: 12px; }
  .feed-grid { grid-template-columns: 1fr; }
  .feed-media img, .feed-media video { max-height: 220px; }
  .inbox-wrap, .chat-admin-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .chat-sidebar { border-right: none; border-bottom: 1px solid #1e1e32; max-height: 260px; }
  .chat-thread-messages { max-height: 340px; }
  .chat-page-wrap { height: calc(100vh - 80px); border-radius: 0; border-left: none; border-right: none; }
  .chat-page-split { flex-direction: column !important; }
  .chat-contacts-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #1e1e32; max-height: 140px; }
  .chat-contacts-list { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .chat-contact-item { flex-direction: column; align-items: center; padding: 10px 12px; min-width: 80px; border-bottom: none; border-right: 1px solid #14142a; text-align: center; }
  .chat-contact-meta { display: none; }
  .chat-contact-name { display: none; }
}

/* ── Search & Tags ────────────────────────────────────────────── */
.search-section {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 0 12px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #2a2a42;
  border-radius: 8px;
  background: #0f0f1e;
  color: #e0e0f0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: #6c63ff; }
.search-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: #6c63ff;
  color: #fff;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: #5a52d5; }
.search-clear {
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #333;
  transition: color 0.2s;
}
.search-clear:hover { color: #e0e0f0; }
.search-results-info {
  font-size: 0.9rem;
  color: #aaa;
  margin: 8px 0 0;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #1a1a2e;
  border: 1px solid #2a2a42;
  color: #9d98e8;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tag-pill:hover { background: #252540; border-color: #6c63ff; color: #c0bcff; }
.tag-pill-active { background: #2e2b5a; border-color: #6c63ff; color: #c0bcff; }
.tag-count {
  font-size: 0.72rem;
  background: #2a2a45;
  border-radius: 10px;
  padding: 1px 5px;
  color: #7070a0;
}
.card-tags, .watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 6px;
}
.watch-tags { margin-bottom: 12px; }
.muted { color: #666; font-size: 0.8rem; font-weight: normal; }

/* ── Inbox: new conversation form ───────────────────────────────────────── */
.inbox-new-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  background: #1e1e3a;
  border: 1px dashed #3a3a5a;
  border-radius: 8px;
  color: #8888cc;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.inbox-new-btn:hover { background: #252545; color: #b0b0e8; border-color: #6c63ff; }
.inbox-new-form {
  background: #0f0f22;
  border: 1px solid #2a2a45;
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
}
.inbox-new-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #9090b8;
  margin-bottom: 8px;
}
.inbox-new-select {
  width: 100%;
  padding: 7px 10px;
  background: #161630;
  border: 1px solid #2a2a45;
  border-radius: 6px;
  color: #d0d0f0;
  font-size: 0.84rem;
}
.inbox-new-textarea {
  width: 100%;
  padding: 8px 10px;
  background: #161630;
  border: 1px solid #2a2a45;
  border-radius: 6px;
  color: #d0d0f0;
  font-size: 0.84rem;
  resize: vertical;
  min-height: 64px;
  box-sizing: border-box;
}
.inbox-new-textarea:focus,
.inbox-new-select:focus { outline: none; border-color: #6c63ff; }

/* ── Notification bell & dropdown ────────────────────────────────────────── */
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: #b0b0d0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  padding: 0;
}
.notif-bell:hover,
.notif-bell[aria-expanded="true"] {
  background: #1e1e38;
  border-color: #2e2e55;
  color: #e0e0f8;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e53e6a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #12122a;
  border: 1px solid #2a2a45;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
}
.notif-dropdown.open {
  display: flex;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1e1e38;
  flex-shrink: 0;
}
.notif-header-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c0c0e0;
  letter-spacing: 0.03em;
}
.notif-mark-all {
  font-size: 0.78rem;
  color: #6c63ff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background 0.15s;
}
.notif-mark-all:hover { background: #1e1e42; }
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-empty {
  padding: 28px 20px;
  text-align: center;
  color: #555577;
  font-size: 0.88rem;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  color: #d0d0e8;
  border-bottom: 1px solid #18182e;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #1a1a36; }
.notif-item.notif-read { opacity: 0.5; }
.notif-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title {
  font-size: 0.83rem;
  color: #d8d8f0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-time {
  font-size: 0.75rem;
  color: #5c5c88;
  margin-top: 2px;
}
/* Type accent strips */
.notif-type-chat    { border-left: 3px solid #6c63ff; }
.notif-type-comment { border-left: 3px solid #3bbfa4; }
.notif-type-report  { border-left: 3px solid #e5453e; }
.notif-type-new_user{ border-left: 3px solid #f0a840; }
.notif-type-purchase{ border-left: 3px solid #4aaf6a; }

@media (max-width: 500px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -8px; }
}

/* ── Booking CTA on index ─────────────────────────────────────────────────── */
.booking-cta {
  max-width: 860px;
  margin: 0 auto 8px;
  padding: 20px 16px 16px;
}
.booking-cta-label {
  font-size: 0.82rem;
  color: #7070a0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.booking-cta-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .booking-cta { padding: 16px 12px 14px; }
  .booking-cta-cards { flex-direction: column; }
  .booking-cta-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .hero h1 { font-size: 1.45rem; }
}
.booking-cta-card {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a1433 0%, #0f0f22 100%);
  border: 1px solid #2e2850;
  border-radius: 14px;
  text-decoration: none;
  color: #e0e0f0;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.booking-cta-card:hover {
  border-color: #b040ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(180, 60, 255, 0.18);
}
.booking-cta-emoji { font-size: 1.8rem; flex-shrink: 0; }
.booking-cta-info  { flex: 1; }
.booking-cta-name  { font-weight: 600; font-size: 0.95rem; }
.booking-cta-desc  { font-size: 0.75rem; color: #9a9ac4; margin-top: 4px; line-height: 1.35; }
.booking-cta-meta  { font-size: 0.8rem; color: #8888bb; margin-top: 4px; }
.booking-cta-arrow { color: #6c63ff; font-size: 1.2rem; flex-shrink: 0; }

/* ── Booking page ─────────────────────────────────────────────────────────── */
.book-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 12px 40px;
}

/* Service selector */
.book-services {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.book-svc-card {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #11112a;
  border: 2px solid #2a2a44;
  border-radius: 12px;
  text-decoration: none;
  color: #c0c0e0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.book-svc-card.active {
  border-color: #b040ff;
  background: #1a1040;
}
.book-svc-card:hover:not(.active) { border-color: #6c63ff; }
.book-svc-emoji   { font-size: 1.6rem; flex-shrink: 0; }
.book-svc-name    { font-weight: 600; font-size: 0.92rem; color: #e0e0f5; }
.book-svc-desc    { font-size: 0.72rem; color: #9a9ac4; margin-top: 4px; line-height: 1.35; }
.book-svc-meta    { font-size: 0.78rem; color: #8888bb; margin-top: 4px; }
.book-svc-check   { position: absolute; top: 8px; right: 10px; color: #b040ff; font-weight: 700; }

/* Layout: calendar + slots side by side */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 680px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-page { padding: 10px 10px 32px; }
  .book-services { flex-direction: column; }
  .book-svc-card { flex: 1 1 auto; min-width: 0; width: 100%; }
  .book-cal-wrap { padding: 12px; border-radius: 12px; }
  .book-slots-wrap { padding: 14px; border-radius: 12px; }
}

/* Calendar */
.book-cal-wrap {
  background: #0f0f22;
  border: 1px solid #2a2a44;
  border-radius: 16px;
  padding: 16px;
}
.book-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.book-cal-title {
  font-weight: 700;
  font-size: 1rem;
  color: #e0e0f5;
}
.book-nav-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #1a1a38;
  border: 1px solid #2e2e52;
  color: #c0c0e0;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.book-nav-btn:hover { background: #252545; border-color: #6c63ff; }

.book-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.book-cal-dow {
  text-align: center;
  font-size: 0.72rem;
  color: #5a5a88;
  font-weight: 600;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.book-cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a5a7a;
  position: relative;
  text-decoration: none;
}
.book-cal-empty   { background: transparent; }
.book-cal-past    { color: #2e2e44; cursor: default; }
.book-cal-nowork  { color: #2e2e44; cursor: default; }
.book-cal-full    { color: #3e3e5e; background: #0d0d20; cursor: default; }
.book-cal-available {
  color: #d0d0f5;
  background: #171730;
  border: 1px solid #3a3a6a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.book-cal-available:hover {
  background: #1f1f45;
  border-color: #b040ff;
  color: #fff;
}
.book-cal-selected {
  background: linear-gradient(135deg, #6c1fa8, #4a0e80);
  border: 1px solid #b040ff;
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.book-cal-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #b040ff;
  position: absolute;
  bottom: 4px;
}
.book-cal-selected .book-cal-dot { background: rgba(255,255,255,0.6); }
.book-cal-full .book-cal-dot,
.book-cal-past .book-cal-dot,
.book-cal-nowork .book-cal-dot { display: none; }

.book-cal-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.75rem;
  color: #6868a0;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; }
.dot-avail   { background: #4a3a8a; border: 1px solid #b040ff; }
.dot-full    { background: #1a1a30; border: 1px solid #3a3a60; }
.dot-past    { background: #1a1a28; border: 1px solid #2a2a40; }

/* Slots panel */
.book-slots-wrap {
  background: #0f0f22;
  border: 1px solid #2a2a44;
  border-radius: 16px;
  padding: 18px;
  min-height: 220px;
}
.book-slots-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e0e0f5;
  margin: 0 0 14px;
}
.book-slots-empty {
  color: #5a5a88;
  font-size: 0.9rem;
  padding: 20px 0;
}
.book-slots-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: #3a3a60;
  text-align: center;
  font-size: 0.9rem;
  gap: 10px;
}
.book-slots-placeholder-icon { font-size: 2.4rem; }

.book-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.book-slot-btn {
  padding: 10px 4px;
  border-radius: 10px;
  background: #17173a;
  border: 1px solid #333360;
  color: #c0c0f0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-align: center;
}
.book-slot-btn:hover { background: #252558; border-color: #9060ff; transform: scale(1.04); }
.book-slot-btn.book-slot-active {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-color: #b040ff;
  color: #fff;
  box-shadow: 0 0 14px rgba(176, 64, 255, 0.35);
}
.book-slot-taken {
  padding: 10px 4px;
  border-radius: 10px;
  background: #0d0d1e;
  border: 1px solid #1a1a30;
  color: #2e2e50;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: line-through;
}

/* Booking confirmation form */
.book-confirm-card {
  background: #0c0c20;
  border: 1px solid #2a2a44;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}
.book-confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.book-confirm-emoji  { font-size: 1.8rem; }
.book-confirm-svc    { font-weight: 700; color: #e0e0f5; font-size: 0.95rem; }
.book-confirm-desc   { font-size: 0.76rem; color: #9a9ac4; margin-top: 4px; line-height: 1.35; }
.book-confirm-meta   { font-size: 0.82rem; color: #8888bb; margin-top: 4px; }
.book-notes-label    { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; color: #9090b8; margin-bottom: 12px; }
.book-notes-input {
  padding: 8px 10px;
  background: #13132c;
  border: 1px solid #2a2a44;
  border-radius: 8px;
  color: #d0d0f0;
  font-size: 0.88rem;
  resize: vertical;
}
.book-notes-input:focus { outline: none; border-color: #6c63ff; }
.book-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #b040ff);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.book-submit-btn:hover { opacity: 0.9; transform: scale(1.01); }
.book-login-hint { font-size: 0.88rem; color: #6868a0; margin-top: 14px; }

/* Admin bookings settings */
.booking-svc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a30;
}
.working-hours-grid { display: flex; flex-direction: column; gap: 8px; }
.wh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.wh-day-toggle { display: flex; align-items: center; gap: 6px; min-width: 110px; cursor: pointer; }
.wh-day-name   { font-size: 0.88rem; color: #c0c0e0; }
.wh-time {
  padding: 5px 8px;
  background: #0f0f22;
  border: 1px solid #2a2a44;
  border-radius: 6px;
  color: #d0d0f0;
  font-size: 0.85rem;
}
.wh-time:focus { outline: none; border-color: #6c63ff; }

/* ── Auth pages (login / register) ──────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px 12px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #0f0f22;
  border: 1px solid #2a2a44;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
@media (max-width: 460px) {
  .auth-card { padding: 24px 18px 20px; border-radius: 16px; }
}
.auth-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b040ff;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.auth-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8e8ff;
  margin: 0 0 22px;
}

/* OAuth buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
}
.oauth-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.oauth-google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.oauth-apple {
  background: #000;
  color: #fff;
  border-color: #333;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  color: #3a3a60;
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2a44;
}

/* Form inside auth card */
.auth-form label {
  margin-bottom: 14px;
}
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #b040ff);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.12s;
}
.auth-submit-btn:hover { opacity: 0.9; transform: scale(1.01); }

.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: #7070a0;
  margin: 18px 0 0;
}
.auth-terms-text {
  text-align: center;
  font-size: 0.76rem;
  color: #4a4a70;
  margin: 10px 0 0;
  line-height: 1.5;
}
.password-strength { height: 3px; border-radius: 2px; margin-top: 4px; }
.pw-match-hint { font-size: 0.78rem; margin-top: 4px; }

/* ── Home: two-column landing + sticky sidebar ─────────────────────────── */
:root {
  --home-sidebar-width: minmax(240px, 280px);
  --home-sticky-top: calc(56px + 12px);
}
.home-layout {
  display: grid;
  grid-template-columns: 1fr var(--home-sidebar-width);
  gap: 20px 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.home-chunk-a { grid-column: 1; }
.home-sidebar {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: var(--home-sticky-top);
  align-self: start;
  max-height: calc(100vh - var(--home-sticky-top) - 16px);
  overflow-y: auto;
  padding: 16px 14px;
  border-radius: 14px;
  background: #0a0a10;
  border: 1px solid #1e1e2e;
}
.home-chunk-b { grid-column: 1; }
.home-sidebar-nav { display: flex; flex-direction: column; gap: 14px; }
.home-sidebar-all {
  display: block;
  font-weight: 700;
  color: #e8e8ff;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid #3a3560;
  text-align: center;
}
.home-sidebar-all:hover { background: rgba(108, 99, 255, 0.22); color: #fff; }
.home-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-disclaimer-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8ab8;
  margin-bottom: 8px;
}
.home-disclaimer-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #b0b0d0;
  line-height: 1.45;
}
.home-disclaimer-list li { margin-bottom: 4px; }
.home-landing-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.home-layout .home-block {
  padding: 16px 18px;
  border-radius: 14px;
  background: #0a0a10;
  border: 1px solid #1e1e2e;
}
.home-block-title { margin: 0 0 10px; font-size: 1.15rem; color: #f0f0ff; }
.home-block-hero { padding: 0; border: none; background: transparent; overflow: hidden; border-radius: 14px; }
.home-hero-img {
  width: 100%;
  border-radius: 14px;
  display: block;
  max-height: min(52vh, 420px);
  object-fit: cover;
}
.home-intro-details { border: 1px solid #2a2a44; border-radius: 12px; padding: 0 14px 12px; background: #12121c; }
.home-intro-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}
.home-intro-summary::-webkit-details-marker { display: none; }
.home-intro-body, .home-about-body {
  white-space: pre-wrap;
  color: #b8b8d8;
  font-size: 0.95rem;
  line-height: 1.55;
}
.home-block-cta { padding: 12px 0; background: transparent; border: none; }
.home-cta-btn { display: inline-flex; }
.home-portfolio-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.home-portfolio-item {
  flex: 0 0 calc(25% - 9px);
  min-width: calc(25% - 9px);
  scroll-snap-align: start;
  margin: 0;
}
.home-portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 900px) {
  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .home-sidebar {
    position: static;
    max-height: none;
    order: 0;
  }
  .home-chunk-a { order: 1; }
  .home-sidebar { order: 2; }
  .home-chunk-b { order: 3; }
  .home-portfolio-item {
    flex: 0 0 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }
}
@media (max-width: 600px) {
  .home-portfolio-item {
    flex: 0 0 65%;
    min-width: 65%;
  }
}

/* ── Admin: landing blocks reorder ─────────────────────────────────────── */
.landing-blocks-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
.landing-block-card {
  position: relative;
  border: 1px solid #2e2e48;
  border-radius: 12px;
  padding: 14px 14px 14px 40px;
  background: #12121c;
}
.landing-block-card.landing-block-dragging { opacity: 0.55; }
.landing-drag-handle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  color: #666;
  font-size: 1.1rem;
  user-select: none;
}
.landing-mini-form label { display: block; margin-top: 8px; font-size: 0.85rem; }
.landing-mini-form input[type="text"],
.landing-mini-form textarea { width: 100%; max-width: 520px; }
.landing-block-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8888b0;
  margin-bottom: 6px;
}
.landing-upload-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.landing-portfolio-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.landing-portfolio-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
