@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-2: #121212;
  --panel: #161616;
  --panel-2: #1c1c1c;
  --line: rgba(198, 161, 91, 0.18);
  --line-strong: rgba(230, 209, 153, 0.55);
  --text: #f4efe6;
  --muted: #9a9388;
  --gold: #c6a15b;
  --gold-2: #e6d199;
  --champagne: #d9c59a;
  --ink: #14110c;
  --glow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --glow-sm: 0 0 0 1px rgba(198, 161, 91, 0.22);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  --online: #3dcc8a;
  --offline: #6d6d6d;
  --danger: #c97b6a;
  --warn: #d4b56a;
  --radius: 18px;
  --radius-sm: 12px;
  --header: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(198, 161, 91, 0.07), transparent 52%),
    radial-gradient(800px 380px at 100% 100%, rgba(198, 161, 91, 0.04), transparent 48%),
    linear-gradient(180deg, #141414 0%, var(--bg) 38%, #080808 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-name, .card-body h3, .preview h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}
.site-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: 56px;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold-2); }
.site-header {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(145deg, var(--gold-2), var(--gold) 40%, #6e5420) border-box;
  border: 1px solid transparent;
  box-shadow: none;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 16px;
  height: 2px;
  background: var(--gold);
}
.brand-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.brand-kicker {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Outfit, sans-serif;
  font-weight: 600;
}
.brand-name {
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn, .link-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  color: var(--text);
}
.btn:hover, .link-btn:hover {
  border-color: var(--line-strong);
  background: rgba(198, 161, 91, 0.08);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-primary {
  background: linear-gradient(180deg, #d8bc74 0%, #c6a15b 48%, #9a7428 100%);
  border-color: #e6d199;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #e6d199 0%, #c6a15b 55%, #a57f32 100%);
}
.btn-ghost { background: transparent; }

.hero { padding: 36px 0 10px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
  color: var(--text);
}
.hero .muted { max-width: 40rem; font-size: 16px; }
.muted { color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 22px;
}
.stat, .card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  background: var(--panel-2);
}
.stat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.stat span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat b {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  color: var(--gold-2);
  font-weight: 600;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.search {
  flex: 1;
  min-width: 220px;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  color: var(--text);
}
.search:focus {
  border-color: var(--gold);
  box-shadow: var(--glow-sm);
}
select.search {
  flex: 0 0 180px;
  appearance: none;
  padding-right: 34px;
  background-color: var(--bg-2);
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.model-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
  background: var(--panel);
  border: 1px solid rgba(198, 161, 91, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 161, 91, 0.38);
  box-shadow: var(--shadow);
}
.model-card.featured { border-color: rgba(198, 161, 91, 0.42); }
.photo {
  flex: 7 1 0;
  min-height: 360px;
  background: #111;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.45) 48%, transparent 100%);
  pointer-events: none;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-portrait .photo::after,
.preview .photo::after { display: none; }
.status-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(12, 12, 12, 0.9);
  background: var(--offline);
  z-index: 2;
}
.status-dot.on { background: var(--online); box-shadow: 0 0 10px rgba(61, 204, 138, 0.55); }
.card-body {
  flex: 3 1 0;
  padding: 8px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: var(--text);
}
.club { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; }
.card-tags {
  min-height: 22px;
  margin: 2px 0 4px;
}
.card-tags .tag {
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--champagne);
  background: transparent;
  border-color: rgba(198, 161, 91, 0.22);
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.card-actions .btn { flex: 1; text-align: center; padding: 10px 10px; font-size: 13px; }
.card-actions .btn:not(.btn-primary) {
  background: #111;
  border-color: rgba(198, 161, 91, 0.28);
  color: var(--text);
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 28px 0 56px;
}
.empty, .flash {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.flash { margin: 16px 0; }
.flash.err { border-color: rgba(201, 123, 106, 0.45); color: #f0d2ca; }

.form {
  width: min(520px, 100%);
  margin: 36px auto 64px;
  padding: 28px;
}
.form h1, .form h2 { margin-top: 0; }
.page-login .form, .page-register .form { margin-top: 48px; }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--glow-sm);
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 14px; }
.check input { width: auto; margin-top: 3px; }

.profile-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr);
  gap: 28px;
  margin: 28px 0 64px;
  align-items: stretch;
}
.profile-portrait {
  padding: 10px;
  display: flex;
  background: var(--panel);
}
.profile-portrait .photo {
  width: 100%;
  min-height: 560px;
  flex: 1;
  border-radius: 12px;
}
.profile-details {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  background: var(--panel);
}
.profile-details h1 {
  margin: 8px 0 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.92;
}
.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  width: fit-content;
  color: var(--muted);
}
.presence-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--offline);
}
.presence-badge.on { color: var(--online); border-color: rgba(61, 204, 138, 0.4); }
.presence-badge.on::before { background: var(--online); box-shadow: 0 0 8px rgba(61, 204, 138, 0.5); }
.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 8px;
}
.profile-meta div {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.profile-meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.profile-meta dd { margin: 0; font-size: 16px; }
.profile-bio {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--champagne);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(198, 161, 91, 0.06);
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.profile-actions .btn { min-width: 160px; }
.own-profile-note { margin: 8px 0 0; color: var(--gold-2); }
.chat-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.chat-panel h2 { margin: 0 0 8px; font-size: 1.45rem; }
.chat-panel label { display: block; margin: 10px 0 6px; color: var(--gold-2); font-size: 0.86rem; }
.chat-panel input, .chat-panel textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.chat-panel textarea { min-height: 88px; resize: vertical; }
.chat-log {
  margin: 12px 0;
  max-height: 280px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.chat-row { margin: 0 0 12px; }
.chat-row.visitor .chat-body { color: var(--gold-2); }
.chat-meta { color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }
.chat-body { white-space: pre-wrap; word-break: break-word; }
.btn-small { min-width: auto; padding: 4px 10px; font-size: 0.78rem; margin-left: 8px; }

.dash {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  margin: 10px 0 56px;
  align-items: start;
}
.account-status {
  margin: 22px 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.preview {
  padding: 14px 14px 20px;
  position: sticky;
  top: 92px;
  background: var(--panel);
}
.preview .photo {
  border-radius: 12px;
  margin-bottom: 14px;
  min-height: 360px;
  flex: none;
  aspect-ratio: 3 / 4;
}
.preview h3 { margin: 0 0 4px; font-size: 30px; }
.preview .btn { width: 100%; margin-top: 12px; }
.dash-main { display: flex; flex-direction: column; gap: 16px; }
.dash-main .form {
  width: auto;
  margin: 0;
}
.online-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.online-toggle input {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #2a2a2a;
  border: 1px solid var(--line);
  position: relative;
  margin: 0;
  cursor: pointer;
  flex: 0 0 48px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.online-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-2);
  transition: transform 0.16s ease, background 0.16s ease;
}
.online-toggle input:checked {
  background: #1c4a34;
  border-color: rgba(61, 204, 138, 0.5);
}
.online-toggle input:checked::after {
  transform: translateX(20px);
  background: var(--online);
}
.upload-panel .search,
.upload-panel input[type="file"] {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-2);
}

.page-admin h1 {
  margin: 28px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
}
.admin-table-wrap {
  padding: 8px 8px 16px;
  overflow: auto;
  margin-bottom: 48px;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.1);
  text-align: left;
  vertical-align: middle;
}
.table tr:hover td { background: rgba(198, 161, 91, 0.05); }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}
.admin-actions .btn {
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 999px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.badge.pending { color: var(--warn); border-color: rgba(212, 181, 106, 0.35); background: rgba(212, 181, 106, 0.08); }
.badge.active { color: var(--online); border-color: rgba(61, 204, 138, 0.35); background: rgba(61, 204, 138, 0.08); }
.badge.disabled, .badge.rejected, .badge.revoked { color: var(--danger); border-color: rgba(201, 123, 106, 0.35); background: rgba(201, 123, 106, 0.08); }
.badge.inactive { color: var(--muted); border-color: var(--line); }

.pay-panel h2 { margin-top: 0; }
.pay-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.pay-panel .stat { padding: 14px 16px; }
.pay-panel .stat b { font-size: 26px; }
.admin-pay-title { margin: 32px 0 8px; }
.verify-panel h3 { margin-top: 8px; }
.verify-code-box {
  margin: 12px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.verify-code {
  font-size: 32px;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--gold, #d4b56a);
  margin: 8px 0;
}
.hidden { display: none !important; }
@media (max-width: 800px) {
  .pay-stats { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero, .dash { grid-template-columns: 1fr; }
  .profile-portrait .photo, .profile-details { min-height: 0; }
  .profile-details { padding: 24px; }
  .preview { position: static; }
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .nav { width: 100%; }
  .profile-meta { grid-template-columns: 1fr; }
}
.webcam-offer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.webcam-offer h3 { margin: 0 0 6px; font-size: 1.25rem; }
.webcam-offer p { margin: 0 0 10px; color: var(--muted); }
.webcam-payment {
  margin-top: 12px;
  padding: 14px 14px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.webcam-payment h3 { margin: 0 0 10px; font-size: 1.1rem; letter-spacing: 0.04em; }
.webcam-pay-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--gold-2);
  margin: 0 0 12px !important;
}
.webcam-pay-steps { margin: 0 0 12px; padding-left: 1.2em; color: var(--text); }
.webcam-pay-steps li { margin: 0 0 6px; }
.webcam-pay-status {
  font-weight: 700;
  color: var(--gold-2);
  margin: 0 0 10px !important;
}
.webcam-request-list { display: grid; gap: 12px; }
.webcam-request-card {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.webcam-request-card p { margin: 0 0 8px; }
.saved-location-current {
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.webcam-request-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.webcam-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.webcam-history-card {
  border-color: rgba(198, 161, 91, 0.28);
}
.webcam-history-pager { margin: 12px 0 0; }
.webcam-history-pager .btn { margin-left: 8px; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.modal-card h2 { margin: 0 0 12px; font-size: 1.7rem; }
.modal-card p, .modal-card li { color: var(--text); line-height: 1.55; }
.modal-card ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#webcamPanel select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
#webcamStatusLine { color: var(--gold-2); }
body.page-webcam-room { overflow-x: hidden; }
body.page-webcam-room .wrap.webcam-room-wrap {
  width: min(1560px, calc(100% - 24px));
}
.webcam-room-panel h1 { margin: 0 0 10px; }
.webcam-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0 18px;
}
.webcam-videos figure { margin: 0; min-width: 0; }
.webcam-videos figcaption { margin: 0 0 8px; color: var(--gold-2); letter-spacing: 0.04em; }
.webcam-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.webcam-videos video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #050505;
  border: 0;
}
.webcam-fs-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 12px;
}
.webcam-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.webcam-device-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--gold-2);
}
.webcam-device-row select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.webcam-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.webcam-room-actions .btn { min-height: 44px; }
.webcam-room-timer { color: var(--gold-2); font-weight: 600; }
@media (max-width: 900px) {
  .webcam-videos,
  .webcam-device-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .site-header { width: min(1280px, calc(100% - 24px)); }
  .grid { grid-template-columns: 1fr; }
  .model-card { min-height: 0; }
  .photo { min-height: 420px; }
  .hero { padding-top: 22px; }
  .card-actions, .profile-actions { flex-direction: column; }
  .toolbar { flex-direction: column; }
  select.search { flex: 1 1 auto; width: 100%; }
  body.page-webcam-room .wrap.webcam-room-wrap { width: min(1560px, calc(100% - 16px)); }
  .site-footer { margin-top: 40px; padding: 16px 16px 22px; font-size: 11px; }
}

.revenue-dash { padding: 18px 20px 24px; margin-bottom: 8px; }
.revenue-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}
.revenue-periods { display: flex; flex-wrap: wrap; gap: 8px; }
.revenue-period.is-active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.revenue-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.revenue-custom label { color: var(--gold-2); font-size: 0.82rem; }
.revenue-custom input[type="date"] {
  display: block;
  margin-top: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.revenue-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.revenue-cards .stat b { font-size: 1.55rem; }
.revenue-chart-wrap h3,
.revenue-dash .admin-table-wrap h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}
.revenue-chart {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 12px 8px 8px;
}
.revenue-chart svg { width: 100%; height: 220px; display: block; }
.revenue-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: var(--muted); }
.legend-gross::before,
.legend-fee::before,
.legend-net::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.legend-gross::before { background: var(--gold-2); }
.legend-fee::before { background: var(--gold); }
.legend-net::before { background: var(--online); }
.ad-stats-cards {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
  .ad-stats-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .revenue-cards { grid-template-columns: 1fr; }
  .ad-stats-cards { grid-template-columns: 1fr; }
}

.gallery-thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.gallery-thumb {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-2);
}
.gallery-thumb img { width: 100%; height: 120px; object-fit: cover; }
.gallery-thumb .thumb-actions {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.pack-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-2);
  margin-bottom: 12px;
}
.pack-card.locked { position: relative; }
.pack-preview-wrap { position: relative; overflow: hidden; border-radius: 12px; }
.pack-preview-wrap img { width: 100%; height: 180px; object-fit: cover; filter: none; }
.pack-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.45);
  font-size: 2rem;
}
.profile-gallery { margin-top: 22px; display: grid; gap: 18px; }
.profile-gallery h2 { margin: 0 0 10px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox img { max-width: min(96vw, 1200px); max-height: 86vh; object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.verify-box, .purchase-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel);
  margin-top: 12px;
}
.verify-code { font-size: 1.8rem; letter-spacing: 0.18em; color: var(--gold-2); }
.lovense-qr {
  max-width: 220px;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 8px;
}
