:root {
  --page: #fff7fa;
  --panel: #ffffff;
  --ink: #24232a;
  --muted: #817985;
  --line: #f0dbe3;
  --soft: #f6edf2;
  --primary: #ff5a8b;
  --primary-dark: #e94173;
  --blue: #4168d8;
  --blue-soft: #eef3ff;
  --green: #18a058;
  --red: #e44d61;
  --shadow: 0 12px 32px rgba(119, 76, 94, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(249, 245, 247, .92), rgba(249, 245, 247, .98)),
    url("https://images.unsplash.com/photo-1496062031456-07b8f162a322?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.mobile-page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(119, 76, 94, .08);
  position: relative;
  overflow-x: hidden;
}
.view { display: none; min-height: 100vh; padding-bottom: 86px; }
.view.is-active { display: block; }
.home-top, .live-top {
  padding: 18px 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff72a8 0%, #ff5782 65%, #ff8db3 100%);
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.home-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.complaint-entry { min-width: 58px; padding: 9px 12px; color: var(--primary-dark); background: #fff; border-radius: 999px; font-weight: 900; }
.brand-logo span {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: var(--primary); background: #fff; font-weight: 900;
}
.banner-carousel {
  margin-top: 16px; border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 16 / 7; background: rgba(255,255,255,.25);
}
.banner-track { height: 100%; display: flex; transition: transform .25s ease; }
.banner-slide {
  flex: 0 0 100%; width: 100%; padding: 16px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; text-align: left; color: #fff;
  background-size: cover; background-position: center;
}
.banner-slide strong { font-size: 18px; }
.banner-slide span { margin-top: 4px; opacity: .9; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.65); padding: 0; }
.banner-dot.is-active { width: 22px; background: #fff; }

.archive-search, .member-unlock-panel, .account-panel, .profile-panel, .detail-body, .creator-panel {
  margin: 14px;
  padding: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.archive-search label, .select-field span, .admin-form span { display: block; margin-bottom: 7px; color: var(--primary-dark); font-weight: 800; }
.archive-search-box { display: flex; gap: 8px; align-items: stretch; }
.archive-search-box input { flex: 1 1 auto; min-width: 0; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  background: #fff; color: var(--ink); outline: none;
}
textarea { resize: vertical; }
.archive-search-box button, .primary-btn {
  border-radius: 999px; padding: 11px 18px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); font-weight: 900;
}
#clearArchiveSearch {
  flex: 0 0 68px;
  width: 68px;
  min-width: 68px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
.archive-search p, .empty-note, .form-message { color: var(--muted); font-size: 13px; }
.form-message.error, .error-note { color: var(--red); }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 14px 18px; }
.profile-grid.single-column { grid-template-columns: 1fr; padding: 0; }
.profile-card {
  background: #fff; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.75);
}
.profile-thumb {
  aspect-ratio: 4 / 5; background-size: cover; background-position: center;
  position: relative; padding: 10px; display: flex; align-items: flex-end; color: #fff;
}
.profile-thumb strong { font-size: 15px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.code-pill {
  position: absolute; top: 9px; left: 9px; padding: 4px 9px; border-radius: 999px;
  background: rgba(25,23,28,.78); color: #fff; font-weight: 900; font-size: 12px;
}
.profile-card-body {
  min-height: 78px;
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.profile-card-body h3 span {
  flex: 0 0 auto;
  color: #fff;
  background: #ff77a0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 7px;
}
.profile-card-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.profile-card-body b {
  color: #fff;
  background: #ff77a0;
  border-radius: 999px;
  line-height: 1.2;
  padding: 2px 7px;
  white-space: nowrap;
}

.password-gate-page {
  min-height: 100vh;
  padding: 72px 24px 86px;
  background: linear-gradient(180deg, #fff8fb 0%, #fff 45%, #fff 100%);
  position: relative;
}
.gate-back {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.password-gate-card {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.password-gate-avatar {
  width: 86px;
  height: 86px;
  margin-top: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(255,90,139,.18);
}
.password-gate-card h1 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}
.password-gate-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}
.password-gate-card input {
  height: 54px;
  border-radius: 999px;
  border: 2px solid #ef9900;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
}
.password-gate-card .primary-btn {
  width: 100%;
  height: 56px;
  margin-top: 18px;
  font-size: 17px;
}
.password-gate-card .form-message {
  min-height: 20px;
  margin-top: 12px;
}

.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px;
  height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); z-index: 20;
}
.nav-item { background: transparent; color: #918792; font-weight: 800; }
.nav-item.is-active { color: var(--primary-dark); }

.detail-head {
  height: 56px; padding: 0 14px; display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10;
}
.detail-head strong { text-align: center; font-size: 18px; }
.back-link { background: transparent; font-size: 30px; color: var(--ink); text-align: left; }
.profile-main { display: flex; gap: 14px; align-items: center; }
.profile-main img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); }
.profile-main h1 { margin: 0; font-size: 22px; }
.profile-main h1 span { font-size: 13px; color: #fff; background: #ff77a0; border-radius: 999px; padding: 3px 8px; }
.profile-main p { margin: 6px 0; color: var(--muted); }
.province-alert { display: inline-block; padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--primary); font-weight: 800; }
.profile-stats {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #f25482, #ff82ad); color: #fff;
}
.profile-stats div { text-align: center; }
.profile-stats strong, .profile-stats span { display: block; }
.detail-body h2, .member-unlock-panel h2, .account-panel h1, .creator-panel h1 { margin: 0 0 10px; }
.media-list { display: grid; gap: 12px; margin-top: 14px; }
.media-list .member-unlock-panel { margin: 0; }
.member-service-card {
  background: #fff;
  color: var(--ink);
}
.member-service-card p {
  margin: 0;
  color: #4c4650;
  line-height: 1.65;
}
.member-service-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.member-service-actions [data-upgrade-profile] {
  grid-column: 1 / -1;
}
.member-service-actions .primary-btn {
  min-height: 44px;
  padding: 10px 12px;
}
.member-service-actions .service-btn {
  color: var(--primary-dark);
  background: #fff4f7;
  border: 1px solid #ffd0df;
}
.service-rule-note { display: block; margin-top: 10px; color: var(--muted); }
.modal-eyebrow { color: var(--primary); font-weight: 800; font-size: 13px; }
.service-result-card { text-align: center; }
.wechat-account {
  display: block;
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  font-size: 24px;
  color: var(--primary-dark);
  background: #fff7fa;
  overflow-wrap: anywhere;
}
.custom-order-card { max-height: min(88vh, 760px); overflow-y: auto; }
.custom-order-card fieldset { margin: 16px 0; padding: 0; border: 0; }
.custom-order-card legend { margin-bottom: 10px; font-weight: 800; font-size: 16px; }
.custom-note { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.custom-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.custom-option-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-option { min-width: 0; }
.custom-option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-option span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}
.custom-option input:checked + span { color: #fff; border-color: var(--primary); background: var(--primary); }
@media (max-width: 420px) {
  .custom-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.media-card { background: #151116; color: #fff; border-radius: 8px; overflow: hidden; }
.media-card img, .media-card video { width: 100%; display: block; max-height: 520px; object-fit: cover; background: #111; }
.media-card h3 { margin: 0; padding: 12px; font-size: 15px; }
.media-card small { display: block; padding: 0 12px 12px; color: #d8cfd5; }
.locked-box {
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(135deg, rgba(255,90,139,.86), rgba(31,28,34,.88));
}
.locked-box strong, .locked-box span { display: block; }
.locked .primary-btn { margin: 12px; width: calc(100% - 24px); }

.live-top p { margin: 0 0 5px; font-size: 13px; letter-spacing: 1px; }
.live-top h1 { margin: 0 0 8px; font-size: 36px; }
.live-player { margin: 14px; padding: 14px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.video-shell video { width: 100%; border-radius: 8px; background: #111; }
.live-grid .profile-thumb { aspect-ratio: 4 / 4.6; }
.live-empty {
  grid-column: 1 / -1;
  margin: 18px 0;
  padding: 30px 16px;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.live-grid.is-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}
.live-grid.is-compact .live-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  box-shadow: 0 6px 18px rgba(119, 76, 94, .08);
}
.live-grid.is-compact .live-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255,90,139,.16);
}
.live-grid.is-compact .profile-thumb {
  aspect-ratio: auto;
  min-height: 96px;
  height: 100%;
}
.live-grid.is-compact .profile-thumb strong {
  font-size: 12px;
}
.live-grid.is-compact .code-pill {
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  font-size: 11px;
}
.live-grid.is-compact .profile-card-body {
  min-height: 96px;
  padding: 9px 10px;
}
.live-grid.is-compact .profile-card-body h3 {
  font-size: 15px;
}
.live-grid.is-compact .profile-card-body p {
  margin-top: 4px;
  font-size: 12px;
}
.live-grid.is-compact .primary-btn {
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(31,28,34,.54); padding: 20px;
}
.modal-card {
  width: min(380px, 100%); background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 18px 70px rgba(0,0,0,.24); position: relative; text-align: center;
}
.modal-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 24px; }
.complaint-form { text-align: left; }
.complaint-form h2 { margin-bottom: 6px; }
.complaint-form > p { color: var(--muted); }
.complaint-form label { display: block; margin-top: 12px; }
.complaint-form label span { display: block; margin-bottom: 6px; color: var(--primary-dark); font-weight: 800; }
.complaint-form .primary-btn { width: 100%; margin-top: 14px; }
.price-row { margin: 14px 0; padding: 13px 15px; border-radius: 10px; display: flex; justify-content: space-between; color: #fff; background: linear-gradient(135deg, var(--primary), #ff7bad); }
.price-row strong { font-size: 24px; }
.pay-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pay-type-tabs.is-single { grid-template-columns: 1fr; }
.pay-type-tabs button { padding: 11px; border-radius: 999px; background: #fff4f7; color: var(--primary-dark); border: 1px solid var(--line); font-weight: 900; }
.pay-type-tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pay-type-tabs button.is-disabled,
.pay-type-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.pay-profile img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.pay-profile span { display: block; font-weight: 900; margin-top: 6px; }
.member-card-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
}
.member-profile-card {
  cursor: pointer;
}
.membership-summary {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff86af);
}
.membership-summary strong { font-size: 17px; }
.membership-summary span { opacity: .92; }
.account-info-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-info-block h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.account-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row span { color: var(--muted); }
.account-row strong { text-align: right; overflow-wrap: anywhere; }

.creator-page { background: #fff; }
.creator-panel { background: #fff; }
.creator-dashboard-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.creator-live-control { margin: 14px 0; padding: 14px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #dbe4ff; }
.creator-live-control strong, .creator-live-control span { display: block; margin-bottom: 8px; }
.admin-form { display: grid; gap: 12px; }
.admin-subsection {
  padding: 16px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #f8fafc;
}
.admin-subsection h3 { margin: 0 0 6px; font-size: 16px; }
.admin-subsection p { margin: 0 0 14px; color: #8b95a7; }
.admin-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.upload-field { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; }
.work-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.work-row span { display: block; color: var(--muted); font-size: 13px; }

.admin-standalone { min-height: 100vh; background: #eef2f7; }
.admin-login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(380px, 100%); padding: 28px; background: #fff; border-radius: 12px; box-shadow: 0 20px 70px rgba(31,45,61,.12); display: grid; gap: 12px; }
.admin-login-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 12px; font-weight: 900; }
.admin-login-card h1 { margin: 6px 0 0; }
.admin-login-card p { margin: 0; color: var(--muted); }
.admin-captcha-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: stretch; }
.admin-captcha-row button { height: 52px; padding: 0; overflow: hidden; border: 1px solid #dce4f0; border-radius: 8px; background: #f2f6ff; }
.admin-captcha-row img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: #4168d8; color: #fff; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.admin-brand { height: 72px; padding: 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.16); }
.admin-brand span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 10px; font-weight: 900; }
.admin-nav { padding-bottom: 20px; }
.admin-nav button, .admin-nav-item {
  display: block; width: 100%; padding: 12px 20px; text-align: left; background: transparent; color: rgba(255,255,255,.78); font-weight: 700;
}
.admin-nav button.is-active, .admin-nav-item.is-active { background: rgba(255,255,255,.14); color: #fff; }
.admin-nav-group strong { display: block; padding: 18px 18px 8px; font-size: 15px; }
.admin-nav-group button { padding-left: 34px; font-weight: 600; }
.admin-main { min-width: 0; }
.admin-topbar {
  height: 76px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #e7edf5; position: sticky; top: 0; z-index: 20;
}
.admin-breadcrumb { color: #8b95a7; font-size: 13px; }
.admin-topbar h1 { margin: 3px 0 0; font-size: 22px; }
.admin-top-actions { display: flex; gap: 8px; align-items: center; }
.admin-account-badge { padding: 7px 10px; color: #5f6d82; background: #f3f6fb; border-radius: 6px; font-size: 13px; font-weight: 800; }
.admin-top-actions a, .small-btn, .ghost-btn {
  padding: 8px 13px; border-radius: 8px; border: 1px solid #dce4f0; background: #fff; color: var(--blue); font-weight: 800;
}
.small-btn.light, .ghost-btn { color: #6d7584; }
.small-btn.danger, .danger { color: var(--red); }
.admin-global-message { min-height: 34px; padding: 9px 24px; color: #6d7584; }
.admin-global-message.success { color: var(--green); }
.admin-global-message.error { color: var(--red); }
.admin-view { display: none; padding: 0 24px 36px; }
.admin-view.is-active { display: block; }
.admin-section {
  margin-bottom: 18px; padding: 20px; background: #fff; border-radius: 10px;
  border: 1px solid #e8edf5; box-shadow: 0 8px 24px rgba(31,45,61,.04);
}
.admin-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid #edf1f6; padding-bottom: 12px; }
.admin-section-head h2 { margin: 0; font-size: 18px; }
.admin-section-head small { color: #8b95a7; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: #fff; border: 1px solid #e8edf5; border-radius: 10px; padding: 18px; }
.metric-card span, .metric-card small { color: #8b95a7; }
.metric-card strong { display: block; margin: 10px 0 6px; font-size: 30px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.admin-mini-stats { display: grid; gap: 10px; }
.mini-stat { display: flex; justify-content: space-between; padding: 12px; border-radius: 8px; background: #f7f9fc; }
.mini-stat strong { color: var(--primary-dark); }
.compact-profile { display: flex; gap: 12px; padding: 10px; border: 1px solid #edf1f6; border-radius: 8px; margin-bottom: 10px; }
.compact-profile img, .table-avatar { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.compact-profile span, .admin-table small { display: block; color: #8b95a7; margin-top: 4px; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form .form-wide { grid-column: 1 / -1; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid #edf1f6; vertical-align: middle; text-align: left; }
.admin-table th { background: #f7f9fc; color: #6d7584; white-space: nowrap; }
.admin-table td code { white-space: nowrap; }
.admin-search { max-width: 360px; margin-bottom: 14px; }
.banner-admin-row { border: 1px solid #edf1f6; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.admin-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-live-card { border: 1px solid #edf1f6; border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.admin-live-preview { position: relative; background: #111; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 8; }
.admin-live-preview img, .admin-live-preview video, .admin-preview-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.admin-live-preview span { position: absolute; right: 10px; top: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--primary); font-weight: 900; font-size: 12px; }
.admin-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bigdata-screen { padding: 18px; color: #eaf4ff; background: #071b3c; border: 1px solid #194d8c; border-radius: 8px; min-height: calc(100vh - 130px); }
.bigdata-loading { min-height: 280px; display: grid; place-items: center; color: #8ba9d8; }
.bigdata-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; margin-bottom: 14px; background: #0a2c65; border: 1px solid #1d5fa7; }
.bigdata-header span { color: #49dcba; font-size: 12px; font-weight: 800; }
.bigdata-header h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: 0; }
.bigdata-header > strong { color: #8fb4eb; font-size: 13px; }
.bigdata-metrics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.bigdata-metric { min-height: 104px; padding: 14px; background: #0b326d; border: 1px solid #1e5ba1; }
.bigdata-metric span, .bigdata-metric small { display: block; color: #92b5e7; }
.bigdata-metric strong { display: block; margin: 8px 0 2px; color: #fff; font-size: 25px; overflow-wrap: anywhere; }
.bigdata-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 12px; margin-bottom: 12px; }
.bigdata-panel { padding: 14px; background: #09295e; border: 1px solid #1c579d; min-width: 0; }
.bigdata-panel h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
.bigdata-chart-panel { overflow: hidden; }
.bigdata-chart { width: 100%; height: 250px; display: block; }
.bigdata-interactive-chart { position: relative; }
.bigdata-chart-hit { fill: transparent; cursor: crosshair; pointer-events: all; }
.bigdata-chart-tooltip {
  position: absolute; top: 14px; z-index: 4; min-width: 172px; padding: 10px 12px;
  transform: translateX(-50%); color: #fff; background: rgba(3, 14, 38, .96);
  border: 1px solid #3a78c5; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.28);
  pointer-events: none;
}
.bigdata-chart-tooltip strong, .bigdata-chart-tooltip span { display: block; }
.bigdata-chart-tooltip strong { margin-bottom: 5px; color: #8fdcff; }
.bigdata-chart-tooltip span { margin-top: 3px; color: #eef7ff; font-size: 13px; }
.bigdata-ip-panel { max-height: 310px; overflow-y: auto; }
.bigdata-ip-panel > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid #1b4b87; }
.bigdata-ip-panel code { color: #50e4b1; }
.bigdata-ip-panel small { grid-column: 1 / -1; color: #799bd0; }
.bigdata-ranks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bigdata-rank-head, .bigdata-rank-row { display: grid; grid-template-columns: 44px minmax(100px, 1fr) 54px 90px; gap: 8px; align-items: center; padding: 9px 5px; }
.bigdata-rank-head { color: #7fa4db; border-bottom: 1px solid #1f5795; font-size: 12px; }
.bigdata-rank-row { border-bottom: 1px solid #143f78; }
.bigdata-rank-row b { width: 27px; height: 27px; display: grid; place-items: center; color: #071b3c; background: #ffcc66; border-radius: 50%; }
.bigdata-rank-row strong { color: #4ee2a4; text-align: right; }
.bigdata-empty { color: #7e9dc9; }
.complaint-content { display: block; min-width: 220px; max-width: 360px; white-space: normal; }
.permission-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; background: #f5f8fc; border: 1px solid #e3e9f2; border-radius: 8px; }
.permission-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; min-height: 38px; padding: 8px; background: #fff; border: 1px solid #e3e9f2; border-radius: 6px; }
.permission-option input { width: 18px; height: 18px; }
.subadmin-list { display: grid; gap: 14px; margin-top: 18px; }
.subadmin-card { padding: 16px; border: 1px solid #e3e9f2; border-radius: 8px; }
.subadmin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.subadmin-card-head strong, .subadmin-card-head span { display: block; }
.subadmin-card-head span { margin-top: 3px; color: #7d8796; }
.subadmin-card-head em { color: #138568; font-style: normal; font-weight: 800; }
.subadmin-card-head em.is-locked { color: #e04462; }
.subadmin-fields { display: grid; margin-bottom: 12px; }
.subadmin-actions { display: flex; gap: 8px; margin-top: 12px; }
.cleanup-warning { margin-bottom: 18px; padding: 14px 16px; color: #8a2538; background: #fff3f5; border: 1px solid #efb9c4; border-radius: 8px; }
.cleanup-warning strong { display: block; margin-bottom: 5px; font-size: 17px; }
.cleanup-warning p { margin: 0; line-height: 1.65; }
.cleanup-submit { background: #c9304f; }
.cleanup-submit:hover { background: #a91f3c; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; max-height: none; }
  .admin-main { min-width: 720px; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-live-grid, .admin-dashboard-grid { grid-template-columns: 1fr; }
  .bigdata-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .bigdata-main-grid, .bigdata-ranks-grid { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .profile-grid { gap: 10px; padding-left: 10px; padding-right: 10px; }
  .profile-card-body h3 { font-size: 16px; }
  .profile-card-body { min-height: 74px; padding: 9px; }
  .profile-card-body p { font-size: 13px; }
  #clearArchiveSearch { flex-basis: 64px; width: 64px; min-width: 64px; }
  .password-gate-page { padding-left: 20px; padding-right: 20px; }
  .password-gate-avatar { margin-top: 60px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-channel-grid { grid-template-columns: 1fr; }
}
