@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: #070407;
  --bg-2: #11070c;
  --panel: rgba(18, 8, 14, 0.72);
  --panel-2: rgba(28, 10, 20, 0.78);
  --panel-solid: #140910;
  --line: rgba(255, 92, 163, 0.18);
  --line-strong: rgba(255, 140, 198, 0.5);
  --text: #fbeaf3;
  --muted: #c7a0b3;
  --pink: #ff4fa3;
  --pink-2: #ff86c8;
  --burgundy: #7a163f;
  --glow: 0 0 34px rgba(255, 79, 163, 0.22);
  --glow-sm: 0 0 18px rgba(255, 79, 163, 0.18);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.48);
  --online: #5dffb2;
  --offline: #8a7380;
  --danger: #ff6b8a;
  --warn: #ffd37a;
  --radius: 24px;
  --radius-sm: 16px;
  --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(1100px 520px at 8% -12%, rgba(255, 79, 163, 0.2), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(122, 22, 63, 0.35), transparent 48%),
    radial-gradient(700px 400px at 50% 110%, rgba(255, 79, 163, 0.08), transparent 50%),
    linear-gradient(180deg, #160910 0%, var(--bg) 42%, #050305 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  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.01em;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px) saturate(1.2);
  background: linear-gradient(180deg, rgba(10, 5, 8, 0.88), rgba(10, 5, 8, 0.62));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.wrap {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.site-header {
  width: min(1360px, 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: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--pink) 0%, #ff2d86 42%, var(--burgundy) 100%);
  box-shadow: var(--glow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink-2);
  font-family: Outfit, sans-serif;
  font-weight: 600;
}
.brand-name {
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn, .link-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}
.btn:hover, .link-btn:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-sm);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c41263);
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { box-shadow: var(--glow); }
.btn-ghost { background: transparent; }

.hero { padding: 34px 0 8px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
}
.hero .muted { max-width: 46rem; 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);
  backdrop-filter: blur(18px);
}
.stat {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 163, 0.22), transparent 70%);
}
.stat span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat b {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  color: var(--pink-2);
  font-weight: 600;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 6, 10, 0.55);
  backdrop-filter: blur(16px);
}
.search {
  flex: 1;
  min-width: 220px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
}
select.search {
  flex: 0 0 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--pink-2) 50%), linear-gradient(135deg, var(--pink-2) 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(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.model-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.model-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--glow), var(--shadow);
}
.model-card.featured { box-shadow: 0 0 0 1px rgba(255, 211, 122, 0.35), var(--shadow); }
.photo {
  aspect-ratio: 3 / 4;
  background: #1a0b13;
  overflow: hidden;
  position: relative;
  border-radius: 20px 20px 8px 8px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.status-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(12, 6, 10, 0.85);
  background: var(--offline);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.status-dot.on { background: var(--online); box-shadow: 0 0 14px var(--online); }
.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-body h3 { margin: 0; font-size: 26px; line-height: 1.05; }
.club { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.card-tags {
  min-height: 28px;
  margin: 4px 0 2px;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.card-actions .btn { flex: 1; text-align: center; padding: 10px 10px; font-size: 13px; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 28px 0 56px;
}
.empty, .flash {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.flash { margin: 16px 0; }
.flash.err { border-color: rgba(255, 107, 138, 0.45); color: #ffd0da; }

.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: rgba(8, 4, 7, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--line-strong);
  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: 14px;
  display: flex;
}
.profile-portrait .photo {
  width: 100%;
  min-height: 560px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  flex: 1;
}
.profile-details {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}
.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(93, 255, 178, 0.35); }
.presence-badge.on::before { background: var(--online); box-shadow: 0 0 10px var(--online); }
.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 8px;
}
.profile-meta div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.profile-meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.profile-meta dd { margin: 0; font-size: 16px; }
.profile-bio {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.65;
  color: #f6dcea;
}
.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(--pink-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(255, 79, 163, 0.08);
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.profile-actions .btn { min-width: 160px; }

.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;
}
.preview .photo {
  border-radius: 18px;
  margin-bottom: 14px;
}
.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: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.online-toggle input {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #2a1620;
  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: #f7d5e6;
  transition: transform 0.16s ease, background 0.16s ease;
}
.online-toggle input:checked {
  background: linear-gradient(135deg, #1e6a48, #5dffb2);
  border-color: rgba(93, 255, 178, 0.5);
}
.online-toggle input:checked::after {
  transform: translateX(20px);
  background: #072214;
}
.upload-panel .search,
.upload-panel input[type="file"] {
  padding: 14px;
  border-radius: 16px;
  background: rgba(8, 4, 7, 0.55);
}

.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(255, 79, 163, 0.1);
  text-align: left;
  vertical-align: middle;
}
.table tr:hover td { background: rgba(255, 79, 163, 0.04); }
.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.04);
}
.badge.pending { color: var(--warn); border-color: rgba(255, 211, 122, 0.35); background: rgba(255, 211, 122, 0.08); }
.badge.active { color: var(--online); border-color: rgba(93, 255, 178, 0.35); background: rgba(93, 255, 178, 0.08); }
.badge.disabled, .badge.rejected { color: var(--danger); border-color: rgba(255, 107, 138, 0.35); background: rgba(255, 107, 138, 0.08); }

.hidden { display: none !important; }

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(4, 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; }
  .toolbar { border-radius: 22px; }
}
@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; }
}
@media (max-width: 640px) {
  .wrap, .site-header { width: min(1360px, calc(100% - 24px)); }
  .grid { grid-template-columns: 1fr; }
  .model-card { min-height: 0; }
  .hero { padding-top: 22px; }
  .card-actions, .profile-actions { flex-direction: column; }
  .toolbar { flex-direction: column; }
  select.search { flex: 1 1 auto; width: 100%; }
}
