:root {
  --page: #fff6f9;
  --white: #ffffff;
  --ink: #242226;
  --muted: #837983;
  --line: #f1dbe3;
  --pink: #ff5f8f;
  --pink-deep: #e83f6f;
  --rose: #ffedf3;
  --blue: #7fb7dc;
  --green: #91c8bb;
  --dark: #171318;
  --shadow: 0 8px 24px rgba(119, 76, 94, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(247, 243, 245, .95), rgba(247, 243, 245, .98)),
    url("https://images.unsplash.com/photo-1496062031456-07b8f162a322?auto=format&fit=crop&w=1500&q=80") center / cover fixed;
}

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

button {
  border: 0;
  cursor: pointer;
}

.mobile-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(119, 76, 94, .08);
}

.view {
  display: none;
  min-height: 100vh;
  padding-bottom: 76px;
}

.view.is-active {
  display: block;
}

.white-page,
.detail-page {
  background: var(--white);
}

.home-top,
.live-top {
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff75b2 0%, #ff6e8b 56%, #ff8ab4 100%);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255, 255, 255, .92);
  font-size: 15px;
}

.banner-carousel {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 7;
  background: linear-gradient(90deg, #f6c6d6, #bfe0f2);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  display: flex;
  align-items: flex-end;
  text-align: left;
  color: #fff;
  background-size: cover;
  background-position: center;
  font: inherit;
  cursor: pointer;
}

.banner-slide strong {
  display: block;
  font-size: 18px;
}

.banner-slide span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: .88;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  transition: width .18s ease, background .18s ease;
}

.banner-dot.is-active {
  width: 18px;
  background: #fff;
}

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

.archive-search {
  padding: 12px 14px 4px;
  background: #fff6f9;
}

.archive-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 900;
}

.archive-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.archive-search-box input {
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #f3c9d5;
  border-radius: 999px;
  outline: none;
  color: #252228;
  background: #fff;
  font-size: 14px;
}

.archive-search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, .14);
}

.archive-search-box button {
  min-width: 64px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff668e, #ff4f72);
  font-size: 12px;
  font-weight: 900;
}

.archive-search p {
  margin: 7px 2px 0;
  color: #9b8d96;
  font-size: 12px;
}

.user-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 10px;
}

.user-quick-actions button {
  min-height: 42px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff668e, #ff4f72);
  font-size: 13px;
  font-weight: 900;
}

.anchor-card {
  overflow: hidden;
  border-radius: 8px;
  text-align: left;
  color: inherit;
  background: #fff;
  box-shadow: var(--shadow);
}

.anchor-photo {
  aspect-ratio: 4 / 5;
  position: relative;
  background-size: cover;
  background-position: center;
}

.anchor-photo::after,
.video-thumb::after,
.live-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .58));
}

.anchor-photo span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lock-badge,
.member-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 95, 143, .92);
  font-size: 11px;
  font-weight: 800;
}

.code-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 34, 38, .86);
  font-size: 11px;
  font-weight: 900;
}

.member-badge {
  left: 8px;
  right: auto;
  top: 34px;
  background: rgba(36, 34, 38, .86);
}

.anchor-body {
  padding: 8px 9px 10px;
}

.anchor-name,
.profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anchor-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anchor-name em,
.profile-name em {
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff;
  background: #ff7da2;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.anchor-meta {
  margin-top: 5px;
  color: #867984;
  font-size: 12px;
}

.anchor-meta mark,
.province-alert {
  color: #fff;
  background: linear-gradient(90deg, #ff668e, #ff8ab4);
}

.anchor-meta mark {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.empty,
.infinite-status {
  padding: 6px 14px 28px;
  color: #9a8d96;
  font-size: 12px;
  text-align: center;
}

.back-to-top,
.detail-floating-back {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 88px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 91, 139, .94);
  box-shadow: 0 8px 22px rgba(255, 91, 139, .32);
}

.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top::before,
.detail-floating-back::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
}

.detail-floating-back::before {
  margin: 0 0 0 5px;
  border-top: 0;
  border-bottom: 3px solid #fff;
}

.live-page {
  background: #fff;
}

.live-top {
  min-height: 158px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.live-top p,
.live-top h1 {
  margin: 0;
}

.live-top h1 {
  margin-top: 4px;
  font-size: 34px;
}

.live-top span {
  display: block;
  margin-top: 8px;
  max-width: 260px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.5;
}

.live-top strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff;
  font-size: 12px;
}

.live-player,
.member-unlock-panel,
.live-list,
.live-room-grid {
  margin: 12px;
}

.live-player {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.live-video-mount {
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #111018;
}

.live-video-player {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #111018;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.live-cover {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 95, 143, .2), rgba(23, 19, 24, .58)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=900&q=80") center / cover;
}

.live-cover strong,
.live-cover p,
.live-dot {
  position: relative;
  z-index: 1;
}

.live-cover strong {
  font-size: 22px;
}

.live-cover p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
}

.live-video-status {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.live-dot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 95, 143, .94);
}

.live-dot::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
}

.live-room-card .primary-btn {
  margin-top: 12px;
}

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

.live-room-card {
  overflow: hidden;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.live-room-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.live-room-thumb span {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 95, 143, .92);
  font-size: 11px;
  font-weight: 900;
}

.live-room-thumb strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.live-room-copy {
  min-width: 0;
  padding: 9px 10px 10px;
}

.live-room-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.live-room-copy p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #7d737b;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-room-copy small {
  display: block;
  margin-top: 5px;
  color: #a0929c;
  font-size: 11px;
}

.live-room-card button {
  width: calc(100% - 20px);
  min-height: 34px;
  margin: 0 10px 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.member-unlock-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8fb;
}

.member-unlock-panel.compact {
  margin: 14px 0 16px;
}

.member-unlock-panel.is-member {
  background: #f4fbf8;
  border-color: #cde8df;
}

.member-unlock-panel h2 {
  margin: 0 0 6px;
  border: 0;
  padding: 0;
  font-size: 16px;
}

.member-unlock-panel p {
  margin: 0;
  color: #7d737b;
  font-size: 13px;
  line-height: 1.55;
}

.member-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.member-form input,
.member-form button {
  min-height: 42px;
  border-radius: 22px;
}

.member-form input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #f2cad6;
  outline: none;
}

.member-form button {
  padding: 0 14px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  white-space: nowrap;
}

.form-message {
  min-height: 18px;
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 800;
}

.form-message.success {
  color: #218361;
}

.form-message.error {
  color: #d93053;
}

.live-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.live-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #f3e2e8;
  border-radius: 10px;
  background: #fff;
}

.live-item time {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff668e, #ff8ab4);
  font-weight: 900;
}

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

.live-item h3 {
  font-size: 15px;
}

.live-item p {
  margin-top: 4px;
  color: #7d737b;
  font-size: 12px;
}

.live-item span {
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 900;
}

.password-panel {
  padding: 112px 26px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff6fa 0, #fff 60%);
}

.password-avatar,
.profile-avatar {
  background-size: cover;
  background-position: center;
}

.password-avatar {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(255, 88, 137, .2);
}

.password-panel h1 {
  margin: 0;
  font-size: 21px;
}

.password-panel p,
.admin-panel p {
  color: #7d737b;
  font-size: 14px;
  line-height: 1.6;
}

.pin-input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #f2cad6;
  outline: none;
  background: #fff;
}

.pin-input {
  height: 46px;
  margin: 14px 0 8px;
  padding: 0 16px;
  border-radius: 23px;
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
}

.pin-input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.member-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, .12);
}

.primary-btn,
.danger-btn,
.ghost-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 23px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #ff668e, #ff4f72);
}

.danger-btn {
  margin-top: 14px;
  background: #242226;
}

.ghost-btn {
  margin-top: 10px;
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid #f2cad6;
}

.text-btn {
  margin-top: 16px;
  color: var(--pink-deep);
  background: transparent;
  font-weight: 800;
}

.error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #d93053;
  font-size: 13px;
}

.detail-head {
  height: 44px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #efefef;
  text-align: center;
}

.back-link {
  color: var(--ink);
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.detail-title {
  min-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-panel {
  padding: 14px;
  border-bottom: 1px solid #f2f2f2;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(37, 20, 29, .16);
}

.profile-copy {
  min-width: 0;
}

.profile-desc {
  margin-top: 7px;
  color: #8a8088;
  font-size: 12px;
  line-height: 1.45;
}

.province-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 95, 143, .18);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 12px 8px 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, rgba(245, 74, 126, .88), rgba(255, 118, 162, .82)), linear-gradient(135deg, #cce7d6, #f3d2df 55%, #f6a8c5);
}

.profile-stats div {
  text-align: center;
  line-height: 1.2;
}

.profile-stats strong {
  display: block;
  font-size: 15px;
}

.profile-stats span {
  font-size: 11px;
  font-weight: 700;
}

.detail-body {
  padding: 12px 16px 28px;
}

.detail-body > h2 {
  padding-left: 8px;
  margin: 0 0 10px;
  border-left: 3px solid #ff527d;
  font-size: 15px;
}

.detail-text {
  color: #625a61;
  font-size: 13px;
  line-height: 1.85;
}

.detail-video-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 5px;
  background: var(--dark);
}

.detail-image-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 5px;
  background: var(--dark);
}

.detail-video-frame.is-locked .video-thumb,
.detail-image-frame.is-locked .video-thumb {
  filter: grayscale(.2);
}

.video-thumb {
  min-height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.detail-video-frame.is-playing .detail-video-backdrop {
  opacity: 0;
  pointer-events: none;
}

.detail-video-backdrop,
.locked-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(22, 14, 19, .2);
  transition: opacity .18s ease;
}

.locked-video-backdrop {
  padding: 18px;
  text-align: center;
  background: rgba(22, 14, 19, .58);
}

.locked-video-backdrop strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.locked-video-backdrop span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
}

.detail-video-play {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 91, 139, .94);
  box-shadow: 0 10px 26px rgba(255, 91, 139, .32);
}

.detail-video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
}

.image-open-badge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 91, 139, .94);
  box-shadow: 0 10px 26px rgba(255, 91, 139, .32);
  font-size: 13px;
  font-weight: 900;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
}

.video-caption small {
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
}

.admin-panel {
  padding: 18px;
}

.admin-panel h1,
.creator-panel h1,
.account-panel h1 {
  margin: 0 0 6px;
}

.account-panel {
  padding: 18px;
}

.account-panel > p {
  margin: 0 0 14px;
  color: #7d737b;
  font-size: 14px;
  line-height: 1.6;
}

.account-card {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8fb;
}

.account-card strong {
  font-size: 18px;
}

.account-card span,
.account-card small {
  color: #7d737b;
  font-size: 13px;
}

.account-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-links a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #f2cad6;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.creator-panel {
  padding: 18px;
}

.creator-panel p {
  margin: 0 0 14px;
  color: #7d737b;
  font-size: 14px;
  line-height: 1.6;
}

.creator-list {
  display: grid;
  gap: 12px;
}

.creator-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.creator-cover {
  min-height: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 14px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.creator-cover span,
.creator-cover strong {
  position: relative;
  z-index: 1;
}

.creator-cover span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 95, 143, .92);
  font-size: 11px;
  font-weight: 900;
}

.creator-cover strong {
  font-size: 21px;
}

.creator-info {
  padding: 12px;
}

.creator-info strong {
  display: block;
  font-size: 16px;
}

.creator-info p,
.creator-info small {
  display: block;
  margin-top: 5px;
  color: #7d737b;
  font-size: 12px;
}

.creator-info small {
  color: var(--pink-deep);
  font-weight: 900;
}

.creator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.creator-actions button {
  min-height: 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.creator-actions button:first-child {
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid #f2cad6;
}

.creator-standalone .white-page {
  min-height: 100vh;
  padding-bottom: 24px;
}

.link-back {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.creator-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.creator-dashboard-head p {
  margin: 4px 0 0;
}

.compact-btn {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.creator-live-control {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8fb;
}

.creator-live-control strong {
  color: var(--pink-deep);
  font-size: 18px;
}

.creator-live-control span {
  color: #7d737b;
  font-size: 13px;
}

.creator-work-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.creator-work-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.creator-work-row > span {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8ab4, #7fb7dc);
  background-size: cover;
  background-position: center;
}

.creator-work-row strong,
.creator-work-row small {
  display: block;
}

.creator-work-row small {
  margin-top: 4px;
  color: #8a8088;
}

.admin-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(119, 76, 94, .08);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 17px;
}

.admin-section-head small {
  flex: 0 0 auto;
  color: #a08f9a;
  font-size: 11px;
}

.admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
}

.admin-form textarea {
  padding-top: 12px;
  resize: vertical;
}

.admin-form select {
  color: var(--ink);
}

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

.two-col-form .toggle-field,
.two-col-form button,
.two-col-form .form-message {
  grid-column: 1 / -1;
}

.toggle-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #f2cad6;
  border-radius: 8px;
  color: #6f666e;
  background: #fff8fb;
  font-size: 13px;
  font-weight: 800;
}

.toggle-field input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  accent-color: var(--pink);
}

.upload-field {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #f2a9c0;
  border-radius: 10px;
  color: #7d737b;
  background: #fff8fb;
  font-size: 13px;
}

.upload-field span {
  font-weight: 800;
  color: var(--pink-deep);
}

.upload-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.code-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8fb;
  font-size: 13px;
}

.code-row strong {
  color: var(--pink-deep);
}

.code-row span {
  min-width: 0;
  flex: 1;
}

.code-row small {
  color: #8a8088;
  font-size: 11px;
  white-space: nowrap;
}

.profile-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.profile-admin-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8fb;
}

.profile-admin-cover {
  width: 58px;
  height: 70px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.profile-admin-copy {
  min-width: 0;
}

.profile-admin-copy strong,
.profile-admin-copy span,
.profile-admin-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-admin-copy strong {
  font-size: 15px;
}

.profile-admin-copy span {
  margin-top: 4px;
  color: #736872;
  font-size: 12px;
}

.profile-admin-copy small {
  margin-top: 6px;
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 900;
}

.profile-admin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-admin-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-admin-edit input,
.banner-editor-card input,
.banner-editor-card select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #f2cad6;
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 12px;
}

.banner-editor-list {
  display: grid;
  gap: 10px;
}

.banner-editor-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8fb;
}

.banner-editor-card strong {
  color: #252228;
  font-size: 14px;
}

.small-btn {
  min-height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.small-btn.light {
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid #f2cad6;
}

.small-btn.danger {
  background: #242226;
}

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

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 24, .46);
}

.upgrade-dialog {
  width: min(100%, 360px);
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  box-shadow: 0 20px 60px rgba(23, 19, 24, .28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #8a8088;
  background: #fff3f7;
  font-size: 24px;
  line-height: 1;
}

.modal-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border: 4px solid #fff;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(255, 88, 137, .20);
}

.modal-kicker {
  margin: 0;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 900;
}

.upgrade-dialog h2 {
  margin: 5px 0 8px;
  font-size: 22px;
}

.upgrade-dialog > p:not(.modal-kicker):not(.form-message) {
  margin: 0;
  color: #6f666e;
  font-size: 14px;
  line-height: 1.65;
}

.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, rgba(245, 74, 126, .92), rgba(255, 118, 162, .86));
}

.pay-summary span {
  font-size: 13px;
  font-weight: 800;
}

.pay-summary strong {
  font-size: 22px;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.pay-methods button {
  min-height: 42px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff5f8;
  border: 1px solid #f2cad6;
  font-size: 13px;
  font-weight: 900;
}

.pay-methods button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #ff668e, #ff4f72);
}

.device-note,
.device-code {
  margin: 8px 0 14px;
  color: #8a8088;
  font-size: 12px;
  line-height: 1.5;
}

.device-code {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8fb;
}

.device-code strong {
  color: var(--pink-deep);
}

.upgrade-inline-btn {
  margin-top: 12px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 430px);
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid #f0dce4;
  backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #958992;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.nav-item.is-active {
  color: var(--pink-deep);
}

.nav-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: block;
}

.home-icon {
  border: 3px solid currentColor;
  border-radius: 6px;
}

.home-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 12px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}

.live-icon {
  border: 3px solid currentColor;
  border-radius: 7px;
}

.live-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 5px;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.unlock-icon {
  border: 3px solid currentColor;
  border-radius: 4px;
}

.unlock-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -11px;
  width: 9px;
  height: 10px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.admin-icon {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.admin-icon::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -8px;
  height: 11px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.admin-standalone.mobile-page {
  max-width: none;
  min-height: 100vh;
  background: #f3f5f8;
  box-shadow: none;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  background: #f3f5f8;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  color: #fff;
  background: #4168d9;
}

.admin-brand {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.admin-brand span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #4168d9;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.admin-brand strong {
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
}

.admin-nav {
  display: grid;
  gap: 4px;
  padding: 14px 0 28px;
}

.admin-nav a,
.admin-nav-title {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
}

.admin-nav-item.is-active,
.admin-nav a:hover,
.admin-nav-title:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.admin-nav-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid currentColor;
}

.admin-nav-group {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.admin-nav-title {
  font-weight: 800;
}

.admin-nav-title::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .78;
}

.admin-nav-sub {
  min-height: 34px !important;
  padding-left: 46px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, .74) !important;
}

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

.admin-topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -16px 12px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid #e6e9f0;
}

.admin-topbar h1 {
  margin: 2px 0 0;
  font-size: 18px;
}

.admin-breadcrumb {
  color: #8b94a7;
  font-size: 12px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-top-actions a {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #d8def0;
  border-radius: 6px;
  color: #4168d9;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.admin-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e7eaf1;
}

.admin-toolbar strong {
  font-size: 15px;
}

.admin-date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-date-filter input {
  width: 148px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe1ef;
  border-radius: 5px;
  color: #536070;
  background: #fff;
  font-size: 12px;
}

.admin-date-filter span {
  color: #9ca5b5;
}

.admin-date-filter button {
  height: 34px;
  padding: 0 16px;
  border-radius: 5px;
  color: #fff;
  background: #4168d9;
  font-size: 12px;
  font-weight: 800;
}

.admin-panel {
  padding: 0;
}

.admin-main .admin-section {
  margin-top: 0;
  padding: 16px;
  border: 1px solid #e7eaf1;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.admin-section-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
}

.admin-section-head h2 {
  font-size: 15px;
}

.admin-section-head small {
  color: #8792a5;
}

.admin-overview {
  margin-bottom: 12px !important;
}

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

.metric-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #fff;
}

.metric-card span {
  color: #4f5868;
  font-size: 13px;
}

.metric-card strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.metric-card small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 4px;
  color: #4168d9;
  background: #eef3ff;
  font-size: 12px;
}

.admin-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-mini-stats .code-row {
  margin: 0;
  border-color: #edf0f6;
  background: #f8faff;
}

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

.admin-content-grid .admin-section {
  min-width: 0;
}

.admin-table-section,
.admin-system-info {
  margin-top: 12px !important;
}

.admin-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-form label span {
  color: #596579;
  font-size: 12px;
  font-weight: 800;
}

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

.form-wide {
  grid-column: 1 / -1;
}

.admin-main .admin-form input,
.admin-main .admin-form textarea,
.admin-main .admin-form select {
  border-color: #dfe4ee;
  border-radius: 6px;
}

.admin-main .primary-btn {
  min-height: 40px;
  border-radius: 6px;
  background: #4168d9;
}

.admin-inline-form {
  grid-template-columns: minmax(180px, 320px) 120px minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #f8faff;
}

.admin-inline-form .form-message {
  margin: 0;
}

.admin-action-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e3e9fb;
  border-radius: 6px;
  color: #536070;
  background: #f7f9ff;
  font-size: 12px;
}

.admin-action-note strong {
  color: #4168d9;
  white-space: nowrap;
}

.banner-editor-list {
  gap: 8px;
}

.banner-editor-card {
  border-color: #edf0f6;
  border-radius: 6px;
  background: #f8faff;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #667085;
  background: #f8f9fc;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-table .profile-admin-row {
  display: table-row;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-table-anchor {
  min-width: 190px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-table .profile-admin-cover {
  width: 58px;
  height: 64px;
  border-radius: 6px;
}

.admin-table .profile-admin-copy strong,
.admin-table .profile-admin-copy span {
  display: block;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.table-code,
.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.table-code {
  color: #fff;
  background: #333947;
}

.status-pill.is-on {
  color: #147a4b;
  background: #e7f7ef;
}

.status-pill.is-off {
  color: #c24848;
  background: #fff0f0;
}

.admin-table .profile-admin-edit {
  grid-column: auto;
  min-width: 260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-table .profile-admin-actions {
  grid-column: auto;
  min-width: 330px;
  grid-template-columns: repeat(5, minmax(0, auto));
  justify-content: start;
}

.admin-table .small-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 12px;
}

.admin-table .small-btn:not(.light):not(.danger) {
  background: #4168d9;
}

.admin-table .small-btn.light {
  color: #4168d9;
  border-color: #d8def0;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 12px;
  color: #5b6576;
  font-size: 13px;
}

.admin-system-grid strong {
  min-width: 0;
  color: #202938;
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .admin-nav-group {
    margin-top: 0;
  }

  .admin-content-grid,
  .admin-metrics,
  .admin-mini-stats {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-date-filter {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .anchor-grid {
    gap: 10px;
    padding: 10px;
  }

  .profile-stats strong {
    font-size: 13px;
  }

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

  .live-room-card {
    border-radius: 8px;
  }
}

/* Admin desktop console */
body:has(.admin-shell) {
  background: #eef1f6;
}

.admin-standalone {
  min-height: 100vh;
  background: #eef1f6;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #eef1f6;
}

.admin-shell .admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #4165d7;
}

.admin-shell .admin-brand {
  min-height: 58px;
  padding: 15px 18px;
}

.admin-shell .admin-brand span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.admin-shell .admin-nav {
  display: grid;
  gap: 2px;
  padding: 12px 0 28px;
}

.admin-shell .admin-nav button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.admin-shell .admin-nav-item,
.admin-shell .admin-nav-title,
.admin-shell .admin-nav-sub {
  width: 100%;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  text-align: left;
}

.admin-shell .admin-nav-item {
  min-height: 43px;
  gap: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.admin-shell .admin-nav-title {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
}

.admin-shell .admin-nav-sub {
  min-height: 36px;
  padding: 0 18px 0 48px;
  font-size: 12px;
}

.admin-shell .admin-nav-item.is-active,
.admin-shell .admin-nav-sub.is-active,
.admin-shell .admin-nav-item:hover,
.admin-shell .admin-nav-sub:hover,
.admin-shell .admin-nav-title:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.admin-shell .admin-main {
  min-width: 0;
  padding: 0 18px 46px;
}

.admin-shell .admin-topbar {
  min-height: 58px;
  margin: 0 -18px 14px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e6ef;
}

.admin-top-left {
  min-width: 0;
}

.admin-shell .admin-topbar h1 {
  margin: 3px 0 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
}

.admin-shell .admin-toolbar {
  margin-bottom: 12px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: grid;
  gap: 12px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 12px;
}

.admin-shell .admin-section {
  margin-top: 0;
  padding: 16px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.admin-shell .admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f6;
}

.admin-shell .admin-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.admin-shell .admin-section-head small {
  color: #8590a3;
  font-size: 12px;
}

.admin-shell .admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-shell .metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #fff;
}

.admin-shell .metric-card strong {
  font-size: 30px;
}

.admin-shell .admin-mini-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.admin-shell .admin-mini-stats .code-row {
  margin: 0;
  border-color: #edf0f6;
  border-radius: 6px;
  background: #f8faff;
}

.admin-shell .admin-mini-stats .code-row span {
  flex: 0 0 72px;
  white-space: nowrap;
}

.admin-shell .admin-mini-stats .code-row strong {
  white-space: nowrap;
}

.admin-shell .admin-mini-stats .code-row small {
  white-space: normal;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #eef3f8;
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(42, 71, 109, .18);
}

.admin-login-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  background: #4169e1;
}

.admin-login-card h1 {
  margin: 6px 0 0;
  font-size: 24px;
}

.admin-login-card p {
  margin: 0;
  color: #718096;
  line-height: 1.6;
}

.admin-login-card input,
.account-login-form input,
.mini-input {
  width: 100%;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  color: #222;
}

.admin-login-card input {
  min-height: 46px;
  padding: 0 14px;
}

.admin-login-reset {
  justify-self: center;
  color: #718096;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.admin-login-reset:hover {
  color: #4169e1;
}

.account-login-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.account-login-form input {
  min-height: 48px;
  padding: 0 16px;
  font-size: 16px;
}

.mini-input {
  max-width: 78px;
  min-height: 34px;
  padding: 0 8px;
}

.admin-table .mini-input {
  font-weight: 800;
  text-align: center;
}

.creator-work-row small {
  display: block;
  margin-top: 4px;
}

.admin-compact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-compact-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #fff;
}

.admin-compact-item strong,
.admin-compact-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-compact-item strong {
  color: #172033;
  font-size: 14px;
}

.admin-compact-item span {
  margin-top: 4px;
  color: #737d8f;
  font-size: 12px;
}

.admin-table-tools {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.admin-table-tools input {
  width: min(360px, 100%);
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  color: #1f2937;
  background: #fff;
  font-size: 13px;
}

.admin-shell .admin-form {
  margin-top: 14px;
}

.admin-shell .admin-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-shell .admin-form label span,
.banner-editor-title span {
  color: #5d6678;
  font-size: 12px;
  font-weight: 800;
}

.admin-shell .admin-form input,
.admin-shell .admin-form textarea,
.admin-shell .admin-form select {
  border-color: #dfe4ee;
  border-radius: 6px;
}

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

.admin-shell .form-wide {
  grid-column: 1 / -1;
}

.admin-shell .primary-btn,
.admin-shell .small-btn:not(.light):not(.danger) {
  background: #4165d7;
}

.admin-shell .banner-editor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-shell .banner-editor-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #f8faff;
}

.banner-editor-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.banner-editor-title strong {
  color: #172033;
  font-size: 14px;
}

.admin-shell .admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
}

.admin-shell .admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #344054;
  font-size: 13px;
}

.admin-shell .admin-table.compact {
  min-width: 760px;
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: middle;
}

.admin-shell .admin-table th {
  color: #667085;
  background: #f8f9fc;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-shell .admin-table .profile-admin-row {
  display: table-row;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-shell .profile-table-anchor {
  min-width: 190px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-shell .profile-admin-cover {
  width: 58px;
  height: 64px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.admin-shell .profile-admin-copy strong,
.admin-shell .profile-admin-copy span {
  display: block;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-shell .profile-admin-copy strong {
  color: #172033;
}

.admin-shell .profile-admin-copy span {
  margin-top: 4px;
  color: #737d8f;
}

.admin-shell .profile-admin-edit {
  min-width: 270px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-shell .profile-admin-edit input {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe4ee;
  border-radius: 5px;
}

.admin-shell .profile-admin-actions {
  min-width: 350px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #dfe5f1;
  border-radius: 6px;
  background: #fff;
  color: #5d6678;
}

.admin-empty-state strong {
  color: #172033;
  font-size: 16px;
}

.admin-empty-state p {
  margin: 0;
  max-width: 620px;
  color: #7a8495;
  line-height: 1.6;
}

.admin-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-live-card {
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #fff;
}

.admin-live-cover {
  position: relative;
  min-height: 190px;
  background-position: center;
  background-size: cover;
}

.admin-live-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0) 30%, rgba(16, 24, 40, .72));
}

.admin-live-cover span {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #f65486;
  font-size: 12px;
  font-weight: 900;
}

.admin-live-copy {
  padding: 12px;
}

.admin-live-copy strong {
  color: #172033;
  font-size: 15px;
}

.admin-live-copy p {
  margin: 6px 0 12px;
  color: #737d8f;
  font-size: 13px;
}

.admin-live-material {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid #edf0f6;
  border-radius: 6px;
  background: #f8faff;
}

.admin-live-material span {
  min-width: 0;
  overflow: hidden;
  color: #5d6678;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-live-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  color: #fff;
  background: #4169df;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-live-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-live-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-shell .admin-system-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 16px;
  margin-top: 14px;
  color: #5b6576;
  font-size: 13px;
}

.admin-shell .admin-system-grid strong {
  min-width: 0;
  color: #202938;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .admin-shell .admin-metrics,
  .admin-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .banner-editor-list,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

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

  .admin-shell .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-shell .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .admin-shell .admin-nav-group {
    margin-top: 0;
  }

  .admin-shell .admin-main {
    padding: 0 10px 30px;
  }

  .admin-shell .admin-topbar {
    margin: 0 -10px 10px;
  }

  .admin-shell .admin-metrics,
  .admin-live-grid,
  .admin-shell .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .admin-toolbar,
  .admin-shell .admin-topbar,
  .admin-table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell .admin-date-filter {
    flex-wrap: wrap;
  }
}
