:root {
  --ink: #12100d;
  --ink-soft: #2a241d;
  --muted: #70685e;
  --soft: #9a8260;
  --gold: #b88a4a;
  --gold-deep: #7b552a;
  --gold-pale: #f2dfbf;
  --paper: #fbf7ef;
  --paper-2: #f4ecdf;
  --white: #ffffff;
  --line: #e4d8c7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --black: #0d0d0e;
  --black-2: #171717;
  --danger: #b84a42;
  --success: #2e7856;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(21, 17, 12, 0.16);
  --shadow-soft: 0 14px 34px rgba(21, 17, 12, 0.09);
  --admin-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(13, 13, 14, 0.04), rgba(251, 247, 239, 0) 340px),
    radial-gradient(circle at 86% -12%, rgba(184, 138, 74, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, var(--paper) 44%, #f8f1e6 100%);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body:has(#adminView:not([style*="display:none"])) {
  background: #f5efe5;
}

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

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

button {
  cursor: pointer;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 216, 199, 0.72);
  background: rgba(13, 13, 14, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.header-inner,
.main,
.footer-inner {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-box {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 223, 191, 0.48);
  color: var(--black);
  background: linear-gradient(135deg, #fff5dd, #c59a5b 62%, #8d632f);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link.active,
.nav-link:hover {
  color: #ffe7bd;
  background: rgba(255, 255, 255, 0.08);
}

.main {
  position: relative;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 58px 0 42px;
}

.hero-copy {
  padding: 18px 0;
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 900;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-copy::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 24px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.hero-metrics span {
  min-height: 88px;
  padding: 18px;
  color: var(--muted);
  border-right: 1px solid rgba(228, 216, 199, 0.86);
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1;
}

.hero-media {
  position: relative;
  min-height: 548px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(13, 13, 14, 0.28), rgba(13, 13, 14, 0.02) 54%),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: background-image 0.45s ease;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 246, 230, 0.06), rgba(13, 13, 14, 0.2)),
    radial-gradient(circle at 8% 14%, rgba(255, 245, 221, 0.42), transparent 24%);
}

.hero-media::after {
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.48);
}

.hero-media-badge {
  position: absolute;
  left: 24px;
  bottom: 38px;
  z-index: 1;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff2d6;
  background: rgba(13, 13, 14, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.carousel-dots {
  position: absolute;
  right: 24px;
  bottom: 35px;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.carousel-dots button.active {
  width: 26px;
  background: #fff2d6;
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 22px;
}

.section-bar.compact {
  margin-top: 0;
}

.section-bar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 34px;
  line-height: 1.15;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn,
.btn,
.icon-btn,
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.filter-btn:hover,
.btn:hover,
.tab-btn:hover {
  border-color: rgba(184, 138, 74, 0.58);
  transform: translateY(-1px);
}

.filter-btn.active,
.btn.primary,
.tab-btn.active {
  border-color: rgba(242, 223, 191, 0.38);
  color: #fff3dc;
  background: linear-gradient(135deg, #17120d, #2a1f15 55%, #8b632f);
  box-shadow: 0 16px 30px rgba(74, 47, 18, 0.22);
}

.btn.danger {
  border-color: rgba(184, 74, 66, 0.38);
  color: var(--danger);
  background: #fff8f6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
  border-color: rgba(184, 138, 74, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.model-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.model-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}

.model-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 14, 0.08));
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-title strong {
  font-size: 20px;
}

.meta,
.tags,
.small {
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: 999px;
  color: var(--gold-deep);
  background: #fbf3e6;
  font-size: 12px;
  white-space: nowrap;
}

.card-body .btn {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  gap: 36px;
  padding: 48px 0 76px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.thumbs img.active {
  border-color: var(--gold);
}

.video-section {
  padding: 0 0 72px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow-soft);
}

.detail-panel,
.admin-panel,
.modal-box {
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 30px;
}

.detail-panel h1 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 42px;
  line-height: 1.1;
}

.detail-panel h3 {
  margin: 26px 0 11px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.stat {
  padding: 15px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: var(--radius);
  background: #fbf4e8;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.packages {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.package-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
  text-align: left;
}

.package-option.active {
  border-color: rgba(184, 138, 74, 0.76);
  background: linear-gradient(135deg, #fff8ea, #f5e1bd);
  box-shadow: 0 13px 28px rgba(184, 138, 74, 0.16);
}

.price {
  color: var(--gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 14, 0.66);
  backdrop-filter: blur(10px);
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(420px, 100%);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-box h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.modal-box img {
  width: min(286px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.chat-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  gap: 16px;
  overflow: auto;
  text-align: left;
}

.chat-header,
.chat-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.icon-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.customer-chat,
.conversation-chat {
  display: grid;
  min-height: 0;
  gap: 12px;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
}

.chat-bubble {
  display: grid;
  justify-items: start;
  gap: 7px;
  max-width: min(82%, 520px);
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.88);
  border-radius: var(--radius);
  background: #fff;
}

.chat-bubble.customer {
  justify-self: end;
  border-color: rgba(184, 138, 74, 0.34);
  background: #fff6e7;
}

.chat-bubble.service {
  justify-self: start;
  border-color: rgba(46, 120, 86, 0.26);
}

.chat-bubble p {
  margin: 0;
  line-height: 1.7;
}

.chat-bubble span {
  color: var(--muted);
  font-size: 12px;
}

.chat-image {
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.chat-video {
  width: min(280px, 100%);
  max-height: 260px;
  border-radius: var(--radius);
  background: #111;
}

.chat-file {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: var(--radius);
  background: #fffaf1;
  font-weight: 800;
}

.chat-compose {
  display: grid;
  gap: 10px;
}

.chat-compose input[type="file"] {
  padding: 10px;
  border: 1px dashed rgba(184, 138, 74, 0.36);
  border-radius: var(--radius);
  background: #fffaf1;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attach-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(184, 138, 74, 0.3);
  border-radius: 999px;
  background: #fff6e7;
  font-size: 12px;
  font-weight: 800;
}

.attach-pill button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
}

.site-footer {
  border-top: 1px solid rgba(228, 216, 199, 0.9);
  color: rgba(255, 255, 255, 0.68);
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding: 27px 0;
  text-align: center;
}

.footer-inner a {
  color: #f2dfbf;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--admin-width) minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}

.admin-side {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 230px),
    linear-gradient(180deg, #101011, #17130f);
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.admin-main {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 239, 229, 0.96)),
    #f5efe5;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 221, 0.94)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.admin-hero h1 {
  margin: 0 0 8px;
  font-size: 29px;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.admin-panel h2,
.admin-panel h3 {
  margin: 0 0 16px;
}

.admin-tabs {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 9px;
}

.admin-tabs .tab-btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.admin-tabs .tab-btn.active {
  justify-content: flex-start;
}

.admin-tabs .tab-btn:hover {
  color: #fff2d6;
  background: rgba(255, 255, 255, 0.08);
}

.admin-tabs .tab-btn.active {
  border-color: rgba(242, 223, 191, 0.35);
  color: #fff2d6;
  background: linear-gradient(135deg, rgba(184, 138, 74, 0.34), rgba(255, 255, 255, 0.06));
  box-shadow: none;
}

.admin-tabs .side-link {
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(228, 216, 199, 0.96);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(184, 138, 74, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 138, 74, 0.12);
}

input[type="file"] {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  color: var(--muted);
  background: #fbf4e8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.message {
  min-height: 20px;
  font-size: 14px;
}

.upload-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.preview-row img,
.preview-row video,
.preview-row > div {
  width: 96px;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.95);
  border-radius: var(--radius);
  background: #fbf4e8;
  box-shadow: var(--shadow-soft);
}

.preview-row img {
  height: 116px;
  object-fit: cover;
}

.preview-row video {
  height: 116px;
  object-fit: cover;
}

.square-preview img {
  height: 96px;
}

.preview-row > div img {
  width: 100%;
  height: 100px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.asset-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-bottom: 10px;
  text-align: center;
}

.asset-card video {
  width: 100%;
  height: 100px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--black);
}

.asset-card .btn {
  min-height: 32px;
  margin: 0 8px;
  padding: 0 10px;
  font-size: 12px;
}

.asset-pager {
  justify-content: center;
}

.large-preview img {
  width: 154px;
  height: 104px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  top: 96px;
  z-index: 70;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(46, 120, 86, 0.32);
}

.toast.error {
  border-color: rgba(184, 74, 66, 0.36);
  color: var(--danger);
}

.crop-box {
  width: min(780px, 100%);
  text-align: left;
}

.crop-stage {
  position: relative;
  width: 100%;
  max-height: 56vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
}

.crop-stage img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  user-select: none;
}

.crop-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.crop-controls label {
  display: grid;
  gap: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.table th,
.table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(228, 216, 199, 0.78);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  background: #fbf4e8;
  font-size: 12px;
  font-weight: 900;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.empty {
  padding: 28px;
  border: 1px dashed rgba(184, 138, 74, 0.42);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(13, 13, 14, 0.76), rgba(13, 13, 14, 0.3)),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
}

.login-box {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(242, 223, 191, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(13, 13, 14, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-box label {
  color: rgba(255, 255, 255, 0.84);
}

.login-box input {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.login-box .btn:not(.primary) {
  color: #fff2d6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.anchor-main {
  padding: 32px 0 70px;
}

.anchor-hero {
  margin-top: 22px;
}

.anchor-form {
  max-width: 980px;
  margin: 0 auto 30px;
}

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

.task-metrics span,
.message-card,
.task-card {
  display: block;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
}

.task-metrics strong {
  display: block;
  color: var(--gold-deep);
  font-size: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(184, 138, 74, 0.34);
  border-radius: 999px;
  color: var(--gold-deep);
  background: #fff6e7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.warning {
  border-color: rgba(184, 74, 66, 0.32);
  color: var(--danger);
  background: #fff0ed;
}

.conversation-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
}

.conversation-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.conversation-item {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: #fbf4e8;
  text-align: left;
}

.conversation-item.active {
  border-color: rgba(184, 138, 74, 0.58);
  background: #fff6e7;
}

.conversation-item span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-item em {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 12px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
}

.task-table .field {
  margin-bottom: 6px;
}

.model-desk {
  padding: 28px 0 70px;
}

.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(184, 138, 74, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 244, 232, 0.94)),
    url("assets/studio-hero-woman.jpg");
  background-position: center;
  background-size: cover;
}

.model-hero-card {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 13, 14, 0.86);
  color: var(--white);
}

.model-hero-card span,
.model-hero-card p {
  color: rgba(255, 255, 255, 0.68);
}

.model-hero-card strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.model-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.model-overview div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.model-overview span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.model-overview strong {
  color: var(--gold-deep);
  font-size: 24px;
}

.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: start;
}

.model-main-column,
.model-side-column {
  display: grid;
  gap: 16px;
}

.model-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(228, 216, 199, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.76);
}

.model-status-panel h2,
.model-status-panel h3 {
  margin-bottom: 6px;
}

.model-profile-card {
  max-width: none;
  margin: 0;
}

.compact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-title-row h2 {
  margin-bottom: 6px;
}

.upload-box {
  padding: 14px;
  border: 1px dashed rgba(184, 138, 74, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.74);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 20px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(228, 216, 199, 0.84);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(14px);
}

.tutorial-panel {
  position: relative;
}

.my-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 244, 232, 0.96)),
    url("assets/studio-card-woman.jpg");
  background-position: center;
  background-size: cover;
}

.my-identity-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(13, 13, 14, 0.86);
}

.my-identity-card span,
.my-identity-card p {
  color: rgba(255, 255, 255, 0.68);
}

.my-identity-card strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.tutorial-grid {
  display: grid;
  gap: 12px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(228, 216, 199, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tutorial-card:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 138, 74, 0.46);
  box-shadow: var(--shadow-soft);
}

.tutorial-thumb {
  display: grid;
  place-items: center;
  min-height: 76px;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  isolation: isolate;
  position: relative;
}

.tutorial-thumb::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(13, 13, 14, 0.48);
}

.tutorial-time {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 13, 14, 0.62);
}

.video-modal-card {
  width: min(760px, 100%);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-modal-card video {
  width: 100%;
  max-height: 62vh;
  margin: 12px 0;
  border-radius: var(--radius);
  background: #111;
}

.video-close {
  float: right;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.model-bottom-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: none;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(228, 216, 199, 0.92);
  border-radius: 999px;
  background: rgba(13, 13, 14, 0.9);
  box-shadow: var(--shadow-soft);
}

.model-bottom-switch button {
  min-width: 86px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.model-bottom-switch button.active {
  color: var(--black);
  background: #f2dfbf;
}

.task-card {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-card h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.task-card p {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 520px;
  }

  .detail-panel {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-main {
    padding: 22px;
  }

  .task-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .main,
  .footer-inner {
    width: min(100% - 28px, 1220px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .logo-box {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  nav {
    gap: 6px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 0 30px;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    padding: 0;
  }

  .hero-media {
    order: 1;
    width: 100%;
    min-height: 460px;
    background-position: center 18%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
  }

  .admin-shell {
    grid-template-columns: 168px minmax(560px, 1fr);
    overflow-x: auto;
  }

  .admin-side {
    padding: 12px;
  }

  .admin-tabs {
    position: sticky;
    top: 84px;
    display: grid;
    max-width: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .admin-tabs .tab-btn {
    flex: none;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-main {
    min-width: 560px;
    padding: 16px;
  }

  .model-desk {
    padding: 18px 0 54px;
  }

  .model-hero,
  .model-layout {
    grid-template-columns: 1fr;
  }

  .model-main-column,
  .model-side-column {
    display: none;
  }

  .model-main-column.active,
  .model-side-column.active {
    display: grid;
  }

  .model-bottom-switch {
    display: flex;
  }

  .model-overview,
  .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .model-status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-metrics span {
    min-height: 74px;
    padding: 12px 10px;
    font-size: 12px;
  }

  .hero-metrics strong {
    font-size: 22px;
  }

  .section-bar {
    display: grid;
    margin: 16px 0 18px;
  }

  .section-bar h2 {
    font-size: 28px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 42px;
  }

  .model-card > a {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .model-card img {
    height: 100%;
    min-height: 210px;
    aspect-ratio: auto;
  }

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

  .detail-layout {
    gap: 18px;
    padding: 24px 0 48px;
  }

  .gallery-main {
    aspect-ratio: 4 / 5;
  }

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

  .detail-panel {
    padding: 22px;
  }

  .detail-panel h1 {
    font-size: 34px;
  }

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

  .package-option {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 22px;
  }

  .chat-modal {
    max-height: 92vh;
    padding: 18px;
  }

  .chat-bubble {
    max-width: 94%;
  }

  .admin-main {
    padding: 16px;
    min-width: 0;
  }

  .admin-hero {
    display: grid;
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .conversation-layout {
    grid-template-columns: 1fr;
  }

  .conversation-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .login-page {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .site-header nav .btn {
    display: none;
  }

  .hero-media {
    min-height: 410px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-metrics span {
    font-size: 11px;
  }

  .model-card > a {
    grid-template-columns: 40% 1fr;
  }

  .model-card img {
    min-height: 200px;
  }

  .tag {
    min-height: 24px;
    padding: 0 8px;
  }
}
