:root {
  --site-bg: #07131f;
  --site-card: rgba(12, 24, 39, 0.72);
  --site-line: rgba(170, 193, 255, 0.14);
  --site-text: #f5f8ff;
  --site-muted: #94a5c7;
  --site-accent: #86f0d8;
  --site-accent-2: #ffc876;
  --site-shadow: 0 22px 56px rgba(0, 0, 0, 0.3);
  --admin-bg: #f4f7fb;
  --admin-panel: #ffffff;
  --admin-line: #e3e8f0;
  --admin-text: #1a2433;
  --admin-muted: #6d7888;
  --admin-primary: #1677ff;
  --admin-danger: #d84c4c;
  --admin-shadow: 0 16px 32px rgba(22, 34, 61, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
body { color: var(--site-text); background: var(--site-bg); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; border: 0; }
button, input, textarea, select { font: inherit; }

.site-shell { position: relative; max-width: 100%; overflow-x: clip; }
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}
.site-bg-a {
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 200, 255, 0.2), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(255, 170, 94, 0.18), transparent 24%);
}
.site-bg-b {
  z-index: -1;
  background:
    linear-gradient(180deg, #06111d 0%, #0a192a 55%, #07131f 100%),
    linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,0.02) 49% 50%, transparent 50% 100%);
  background-size: auto, 72px 72px;
}

.site-topbar,
.site-footer,
.flash-stack,
.site-main,
.auth-main {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}
.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0 16px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
}
.site-brand-mobile-name {
  display: none;
}
.site-brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
}
.site-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--site-muted);
}
.site-nav-link:hover { color: var(--site-text); background: rgba(255,255,255,0.05); }

.site-action,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: .2s ease;
}
.site-action.primary {
  background: linear-gradient(135deg, var(--site-accent), #7eb7ff);
  color: #07131f;
  font-weight: 700;
}
.site-action.ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--site-line);
  color: var(--site-text);
}
.site-action:hover,
.admin-btn:hover { transform: translateY(-1px); }
.admin-btn-secondary {
  background: #ffffff;
  color: var(--admin-primary);
  border-color: rgba(79, 110, 255, 0.24);
}

.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.04);
}
.flash-success { color: var(--site-accent); }
.flash-error { color: #ff9a9a; }

.site-main { padding-bottom: 34px; }
.hero-shell,
.content-section,
.page-card,
.member-panel,
.auth-card,
.result-card,
.checkout-shell,
.dashboard-banner {
  border: 1px solid var(--site-line);
  background: var(--site-card);
  backdrop-filter: blur(14px);
  box-shadow: var(--site-shadow);
}
.hero-shell {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 26px;
  border-radius: 28px;
  padding: 26px;
  min-height: 520px;
}
.compact-hero { min-height: 420px; }
.hero-copy, .hero-media { display: flex; flex-direction: column; justify-content: center; }
.hero-media img,
.hero-media video,
.result-media img,
.result-media video {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--site-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1,
.dashboard-banner h1,
.auth-side h1,
.result-card h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}
.hero-copy p,
.section-heading p,
.feature-card p,
.auth-card p,
.dashboard-banner p,
.result-card p,
.site-footer p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.68;
}
.hero-actions,
.hero-tags,
.chip-wrap,
.link-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions { margin-top: 20px; }
.hero-tags { margin-top: 16px; }
.hero-tags span,
.feature-badge,
.package-badge,
.chip,
.chip-link,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--site-muted);
  font-size: 13px;
}
.content-section,
.member-panel,
.dashboard-banner,
.result-shell,
.checkout-shell { margin-top: 22px; border-radius: 24px; padding: 22px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading.narrow { margin-bottom: 10px; }
.section-heading h2,
.auth-card h2,
.feature-card h3,
.skill-card h3,
.package-card h3,
.template-card h3,
.admin-panel-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.feature-grid,
.skill-grid,
.package-grid,
.template-grid,
.channel-grid,
.metric-grid,
.admin-metric-grid,
.toggle-card-grid {
  display: grid;
  gap: 16px;
}
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.compact-grid { margin-top: 18px; }
.skill-grid,
.package-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-card,
.skill-card,
.package-card,
.channel-card,
.template-card,
.metric-card,
.empty-box {
  border-radius: 18px;
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.04);
  padding: 16px;
}
.skill-card,
.package-card {
  overflow: hidden;
  padding: 0;
}
.skill-card img { aspect-ratio: 1.25 / 1; object-fit: cover; }
.entity-card {
  display: grid;
  gap: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.entity-card .card-body {
  display: grid;
  gap: 8px;
  padding: 14px 0 0;
}
.entity-media-button { width: 100%; }
.entity-media-button,
.entity-media-frame,
.page-media-button,
.page-media-frame,
.page-media-card,
.media-card {
  line-height: 0;
}
.entity-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.entity-media-frame-wide {
  aspect-ratio: auto;
  min-height: 0;
}
.entity-card .page-media-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
}
.card-body { padding: 16px; }
.card-meta,
.channel-meta,
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.package-card strong,
.metric-card strong,
.order-summary strong { display: block; font-size: 24px; margin-top: 6px; }
.media-grid {
  display: grid;
  gap: 14px;
}
.media-grid-image { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.media-grid-video { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.compact-media-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.media-card {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  color: var(--site-text);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
}
.media-card audio {
  width: calc(100% - 24px);
  margin: 14px 12px 0;
}
.media-grid-video .media-card video { aspect-ratio: 16 / 9; }
.media-card span { display: none; }
.audio-card-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(53, 110, 255, 0.16), rgba(34, 197, 94, 0.12));
  color: #dce8ff;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.auth-main { padding-bottom: 28px; }
.auth-shell {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
}
.auth-side,
.auth-forms,
.result-card { display: grid; gap: 18px; }
.auth-forms { grid-template-columns: repeat(2, 1fr); }
.auth-card,
.result-card { padding: 22px; border-radius: 22px; }
.auth-card label,
.admin-form label,
.admin-login-form label {
  display: grid;
  gap: 7px;
  color: var(--site-muted);
  font-size: 14px;
}
.auth-card input,
.auth-card textarea,
.auth-card select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login-form input,
.admin-searchbar input,
.admin-searchbar select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(190, 207, 245, 0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: inherit;
}
.auth-card textarea,
.admin-form textarea { resize: vertical; }
body.site-shell input,
body.site-shell textarea,
body.site-shell select {
  font-size: 16px;
}
.dashboard-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}
.metric-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
.metric-card span,
.order-summary span { display: block; color: var(--site-muted); }
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.simple-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--site-muted);
  line-height: 1.6;
}
.table-shell {
  overflow: auto;
  border: 1px solid rgba(190, 207, 245, 0.16);
  border-radius: 16px;
}
.table-shell.compact { max-height: 320px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(190, 207, 245, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
th { color: var(--site-muted); font-weight: 600; white-space: nowrap; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 0 34px;
}

.media-modal[hidden] { display: none; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.media-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.media-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 32px auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(11, 20, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
}
.media-modal-close {
  margin-left: auto;
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.media-modal-body { margin-top: 12px; }
.media-modal-body img,
.media-modal-body video { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 14px; }
.media-modal-body audio,
.result-media audio {
  width: 100%;
  margin-top: 8px;
}
.media-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.customer-service-widget {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 2147482400;
  transform: translateY(-50%);
  touch-action: none;
  user-select: none;
}
.customer-service-widget.is-left {
  left: 0;
  right: auto;
}
.customer-service-widget.is-top {
  top: 0;
  right: auto;
}
.customer-service-widget.is-bottom {
  top: auto;
  bottom: 0;
  right: auto;
}
.customer-service-widget.is-dragging {
  transform: none;
}
.customer-service-float {
  position: relative;
  width: 46px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-right: 0;
  border-radius: 42px 0 0 42px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(21, 214, 110, 0.5), rgba(5, 155, 83, 0.5));
  color: #fff;
  box-shadow: 0 18px 42px rgba(3, 24, 14, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  cursor: grab;
  padding: 6px 4px 6px 7px;
  overflow: visible;
}
.customer-service-qq .customer-service-float {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(56, 169, 255, 0.5), rgba(71, 95, 244, 0.5));
  box-shadow: 0 18px 42px rgba(17, 48, 126, 0.3);
}
.customer-service-widget.is-left .customer-service-float {
  border-radius: 0 42px 42px 0;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  padding: 6px 7px 6px 4px;
}
.customer-service-widget.is-top .customer-service-float {
  width: 62px;
  height: 46px;
  border-radius: 0 0 42px 42px;
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  padding: 4px 6px 7px;
}
.customer-service-widget.is-bottom .customer-service-float {
  width: 62px;
  height: 46px;
  border-radius: 42px 42px 0 0;
  border-bottom: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 6px 4px;
}
.customer-service-widget.is-dragging .customer-service-float {
  cursor: grabbing;
  box-shadow: 0 24px 54px rgba(3, 24, 14, 0.38);
}
.customer-service-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #08a653;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.customer-service-qq .customer-service-icon {
  color: #3568f2;
  font-size: 11px;
  letter-spacing: -0.03em;
}
.customer-service-text {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}
.customer-service-widget.is-top .customer-service-text,
.customer-service-widget.is-bottom .customer-service-text {
  writing-mode: horizontal-tb;
  letter-spacing: 1px;
}
.customer-service-modal[hidden] { display: none; }
.customer-service-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
}
.customer-service-mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 25, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.customer-service-dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: min(18vh, 120px) auto 0;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(35, 217, 118, 0.2), transparent 36%),
    rgba(12, 20, 35, 0.94);
  color: #fff;
  box-shadow: 0 32px 82px rgba(0, 0, 0, 0.42);
}
.customer-service-dialog-qq {
  background:
    radial-gradient(circle at 12% 0%, rgba(64, 145, 255, 0.24), transparent 38%),
    rgba(12, 20, 35, 0.94);
}
.customer-service-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.customer-service-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.16);
  color: #9ff0c4;
  font-size: 13px;
  font-weight: 800;
}
.customer-service-dialog h3 {
  margin: 14px 0 10px;
  font-size: 28px;
}
.customer-service-dialog p {
  color: rgba(245, 248, 255, 0.82);
  line-height: 1.65;
}
.customer-service-dialog strong {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.customer-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.customer-service-embed {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.customer-service-embed iframe {
  width: 100%;
  height: min(520px, 58vh);
  border: 0;
  display: block;
  background: rgba(255, 255, 255, 0.96);
}
.customer-service-embed p {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(245, 248, 255, 0.72);
}
.customer-service-tip {
  margin: 14px 0 0;
  font-size: 13px;
}
.customer-service-system .customer-service-float {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(166, 79, 255, 0.5), rgba(255, 109, 196, 0.5));
  box-shadow: 0 18px 42px rgba(124, 55, 210, 0.34);
}
.customer-service-system .customer-service-icon {
  color: #8d45ff;
}
.customer-chat-messages {
  height: min(360px, 42vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  margin: 16px 0 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}
.customer-chat-empty,
.customer-chat-hint {
  color: rgba(245, 248, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}
.customer-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.customer-chat-message.is-user {
  align-items: flex-end;
}
.customer-chat-bubble {
  max-width: min(82%, 360px);
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  word-break: break-word;
}
.customer-chat-message.is-user .customer-chat-bubble {
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, #ff75d1, #875cff);
}
.customer-chat-message span {
  color: rgba(245, 248, 255, 0.62);
  font-size: 12px;
}
.customer-chat-image {
  display: block;
  margin-top: 6px;
}
.customer-chat-image img {
  display: block;
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}
.customer-chat-form {
  display: grid;
  gap: 9px;
}
.customer-chat-form textarea,
.customer-chat-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  outline: none;
}
.customer-chat-form textarea {
  resize: vertical;
}
.customer-chat-form textarea::placeholder,
.customer-chat-form input::placeholder {
  color: rgba(245, 248, 255, 0.55);
}
.customer-chat-emoji-row,
.customer-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-chat-emoji-row button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.customer-chat-actions {
  justify-content: space-between;
}
.customer-chat-actions span {
  color: rgba(245, 248, 255, 0.66);
  font-size: 12px;
}
.customer-chat-status {
  color: rgba(245, 248, 255, 0.66);
  font-size: 12px;
}
.chat-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.chat-file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.chat-file-button-light {
  border-color: #dbe3ef;
  background: #fff;
  color: #2563eb;
}
.chat-file-name {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .customer-service-dialog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: calc(100dvh - 18px);
    margin: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    overflow-y: auto;
  }
  .customer-chat-messages {
    height: min(350px, 38dvh);
  }
  .customer-chat-bubble {
    max-width: 88%;
  }
  .customer-chat-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }
  .chat-file-name {
    max-width: none;
  }
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 16px;
  min-height: 620px;
}
.support-thread-list,
.support-chat-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}
.support-thread-list {
  display: flex;
  flex-direction: column;
  max-height: 680px;
  overflow-y: auto;
}
.support-thread-item {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 13px 14px;
  background: transparent;
  color: #172033;
  text-align: left;
  cursor: pointer;
}
.support-thread-item:hover,
.support-thread-item.is-active {
  background: rgba(37, 99, 235, 0.08);
}
.support-thread-item span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.support-thread-item em,
.support-thread-item small,
.support-thread-item b {
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}
.support-thread-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-thread-item i {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-style: normal;
}
.support-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.support-chat-head,
.support-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.support-chat-head span,
.support-reply-actions span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}
.support-admin-messages {
  padding: 16px;
  overflow-y: auto;
  max-height: 510px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(241, 245, 249, 0.68));
}
.support-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.support-chat-message.is-admin {
  align-items: flex-end;
}
.support-chat-message > span {
  color: #64748b;
  font-size: 12px;
}
.support-chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: #172033;
  line-height: 1.55;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  word-break: break-word;
}
.support-chat-message.is-admin .support-chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.support-chat-image {
  display: block;
  margin-top: 6px;
}
.support-chat-image img {
  width: min(240px, 100%);
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}
.support-reply-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.support-reply-form textarea,
.support-reply-form input {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.support-auto-reply-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.support-auto-reply-head {
  margin: 8px 0 12px;
}
.support-recharge-reply-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.support-recharge-reply-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.support-recharge-image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.support-auto-reply-image {
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.support-auto-reply-image img {
  display: block;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  object-fit: cover !important;
}
.support-auto-reply-table input,
.support-auto-reply-table textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.support-auto-reply-table textarea {
  min-width: 320px;
  resize: vertical;
}
@media (max-width: 920px) {
  .support-admin-layout {
    grid-template-columns: 1fr;
  }
  .support-thread-list {
    max-height: 260px;
  }
  .support-admin-messages {
    max-height: 430px;
  }
}

.admin-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-text);
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 14px 12px;
  border-right: 1px solid var(--admin-line);
  background: #fff;
}
.admin-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-brand strong { display: block; font-size: 18px; }
.admin-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8b3e, #6b89ff);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(56, 72, 118, 0.16);
}
.admin-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-brand span,
.admin-userbox a,
.admin-userbox strong,
.admin-empty-tip,
.admin-hint { color: var(--admin-muted); font-size: 13px; line-height: 1.6; }
.admin-userbox span { display: block; margin: 2px 0 6px; color: var(--admin-primary); font-size: 12px; }
.admin-nav {
  display: grid;
  gap: 4px;
  align-content: start;
}
.admin-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--admin-muted);
  font-size: 14px;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: #eef5ff;
  color: var(--admin-primary);
}
.admin-main { padding: 14px 16px 24px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}
.admin-topbar h1 { margin: 0 0 6px; font-size: 24px; }
.admin-topbar p { margin: 0; color: var(--admin-muted); font-size: 13px; line-height: 1.6; }
.admin-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.admin-searchbar input,
.admin-searchbar select {
  min-width: 170px;
  background: #fff;
  color: var(--admin-text);
  border: 1px solid var(--admin-line);
}
.admin-searchbar .search-field-keyword {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
}
.admin-searchbar .search-field-page {
  flex: 0 0 110px;
  min-width: 110px;
}
.admin-searchbar .search-field-date {
  flex: 0 0 142px;
  min-width: 142px;
}
.admin-searchbar .search-field-status {
  flex: 0 0 126px;
  min-width: 126px;
}
.admin-searchbar .search-action {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 8px 16px;
}
.admin-searchbar .search-action-secondary {
  min-width: 96px;
  text-decoration: none;
}
.admin-flashes { display: grid; gap: 8px; margin-bottom: 12px; }
.admin-flash {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-line);
  background: #fff;
  font-size: 13px;
}
.admin-flash-success { color: #0a8b46; }
.admin-flash-error { color: #cb3030; }
.admin-panel {
  border-radius: 14px;
  background: var(--admin-panel);
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-line);
  padding: 14px;
  min-width: 0;
}
.admin-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.admin-grid > * {
  min-width: 0;
}
.admin-align-top { align-items: start; }
.two-col { grid-template-columns: minmax(360px, 480px) minmax(0, 1fr); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-panel-head h2 { font-size: 18px; margin: 0; }
.admin-status,
.table-link,
.chip,
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.admin-status.ok { background: #e8fff1; color: #0a8b46; }
.admin-status.bad { background: #fff0f0; color: #cb3030; }
.admin-kv-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.admin-kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed var(--admin-line);
  padding-bottom: 8px;
  font-size: 13px;
}
.admin-kv-list span { color: var(--admin-muted); }
.admin-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-metric-grid article,
.toggle-card,
.template-card {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.admin-metric-grid span { display: block; color: var(--admin-muted); font-size: 12px; }
.admin-metric-grid strong { display: block; margin-top: 8px; font-size: 28px; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.toggle-card-compact {
  padding: 12px;
  min-height: 96px;
}
.toggle-card-compact strong {
  display: block;
  margin-top: 8px;
}
.toggle-card-compact span {
  display: block;
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 12px;
}
.admin-form { display: grid; gap: 12px; }
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-form-grid > label,
.page-editor-toolbar,
.page-card-gallery-block {
  min-width: 0;
}
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login-form input {
  background: #fff;
  color: var(--admin-text);
  border: 1px solid var(--admin-line);
}
.admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--admin-muted);
}
.admin-btn {
  border-radius: 10px;
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-text);
}
.admin-btn-primary {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}
.admin-btn-danger {
  background: #fff1f1;
  border-color: #ffcaca;
  color: var(--admin-danger);
}
.admin-body .table-link {
  border: 1px solid var(--admin-line);
  background: #f7faff;
  color: var(--admin-primary);
  cursor: pointer;
}
.admin-body .table-shell {
  border: 1px solid var(--admin-line);
  background: #fff;
}
.admin-body th,
.admin-body td {
  border-bottom-color: var(--admin-line);
  color: var(--admin-text);
  font-size: 12px;
  line-height: 1.5;
}
.admin-body th { color: var(--admin-muted); }
.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--admin-muted);
}
.admin-pagination a {
  padding: 6px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  color: var(--admin-primary);
}
.template-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}
.template-card {
  display: grid;
  align-content: start;
}
.template-card-preview {
  height: 100px;
  border-radius: 10px;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.12)),
    linear-gradient(120deg, #183861, #4e7fd9 46%, #9eeadf);
}
.toggle-card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.toggle-card span { display: block; margin-top: 8px; color: var(--admin-muted); font-size: 12px; line-height: 1.6; }
.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(22, 119, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #f3f6fb 0%, #eef3fa 100%);
  color: var(--admin-text);
}
.admin-login-card {
  width: min(420px, calc(100% - 28px));
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--admin-line);
  box-shadow: var(--admin-shadow);
}
.admin-logo { color: var(--admin-primary); font-size: 13px; font-weight: 700; }
.admin-login-card h1 { margin: 10px 0 16px; font-size: 28px; }
.admin-login-form { display: grid; gap: 12px; }
.result-shell { padding: 0; background: transparent; border: 0; box-shadow: none; }
.result-card { margin-top: 0; }
.result-media { margin: 18px 0; }
.checkout-shell { padding: 0; background: transparent; border: 0; box-shadow: none; }
.channel-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.order-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

body[class*="theme-"] {
  color: #1f2430;
  --theme-glow-primary: rgba(255, 170, 91, 0.26);
  --theme-glow-secondary: rgba(255, 255, 255, 0.85);
  --theme-page-bg: linear-gradient(180deg, #fff4ea 0%, #ffd9b8 48%, #fff8f0 100%);
}
body[class*="theme-"] .site-bg-a {
  background:
    radial-gradient(circle at 12% 12%, var(--theme-glow-primary), transparent 28%),
    radial-gradient(circle at 86% 12%, var(--theme-glow-secondary), transparent 22%);
}
body[class*="theme-"] .site-bg-b {
  background: var(--theme-page-bg);
}
body[class*="theme-art-ribbon-"] .site-bg-a::before,
body[class*="theme-art-ribbon-"] .site-bg-a::after,
body[class*="theme-art-ribbon-"] .site-bg-b::before,
body[class*="theme-art-ribbon-"] .site-bg-b::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}
body.theme-art-ribbon-soft .site-bg-a::before {
  width: 130%;
  height: 150px;
  top: 14%;
  left: -14%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.3));
  transform: rotate(7deg);
  filter: blur(1px);
  opacity: 0.86;
}
body.theme-art-ribbon-soft .site-bg-a::after {
  width: 118%;
  height: 180px;
  top: 44%;
  right: -16%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.22));
  transform: rotate(-14deg);
  filter: blur(1px);
  opacity: 0.82;
}
body.theme-art-ribbon-soft .site-bg-b::before {
  width: 72%;
  height: 300px;
  bottom: -4%;
  left: -8%;
  border: 1px solid rgba(255, 154, 46, 0.34);
  background: linear-gradient(90deg, rgba(255, 167, 63, 0.22), rgba(255, 167, 63, 0.06) 46%, rgba(255, 255, 255, 0.08));
  transform: rotate(60deg);
  filter: blur(1.4px);
  opacity: 0.9;
}
body.theme-art-ribbon-soft .site-bg-b::after {
  width: 88%;
  height: 190px;
  top: 58%;
  right: -18%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 44%, rgba(255, 255, 255, 0.18));
  transform: rotate(-14deg);
  opacity: 0.72;
}
body.theme-art-ribbon-flow .site-bg-a::before {
  width: 134%;
  height: 138px;
  top: 10%;
  left: -20%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0.3));
  transform: rotate(11deg);
  opacity: 0.84;
}
body.theme-art-ribbon-flow .site-bg-a::after {
  width: 126%;
  height: 170px;
  top: 30%;
  right: -20%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.18));
  transform: rotate(-20deg);
  opacity: 0.82;
}
body.theme-art-ribbon-flow .site-bg-b::before {
  width: 126%;
  height: 168px;
  bottom: 22%;
  left: -12%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.2));
  transform: rotate(10deg);
  opacity: 0.72;
}
body.theme-art-ribbon-flow .site-bg-b::after {
  width: 74%;
  height: 320px;
  bottom: -12%;
  left: -2%;
  border: 1px solid rgba(255, 154, 46, 0.34);
  background: linear-gradient(90deg, rgba(255, 167, 63, 0.26), rgba(255, 167, 63, 0.08) 42%, rgba(255, 255, 255, 0.06));
  transform: rotate(64deg);
  filter: blur(1px);
  opacity: 0.9;
}
body.theme-art-ribbon-layer .site-bg-a::before {
  width: 136%;
  height: 152px;
  top: 8%;
  left: -18%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.3));
  transform: rotate(9deg);
  opacity: 0.86;
}
body.theme-art-ribbon-layer .site-bg-a::after {
  width: 120%;
  height: 190px;
  top: 36%;
  right: -14%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.22));
  transform: rotate(-18deg);
  opacity: 0.8;
}
body.theme-art-ribbon-layer .site-bg-b::before {
  width: 84%;
  height: 340px;
  bottom: -6%;
  left: -10%;
  border: 1px solid rgba(255, 149, 38, 0.38);
  background: linear-gradient(90deg, rgba(255, 166, 58, 0.28), rgba(255, 166, 58, 0.08) 44%, rgba(255, 255, 255, 0.06));
  transform: rotate(62deg);
  opacity: 0.92;
}
body.theme-art-ribbon-layer .site-bg-b::after {
  width: 112%;
  height: 150px;
  bottom: 24%;
  right: -16%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 44%, rgba(255, 255, 255, 0.18));
  transform: rotate(-8deg);
  opacity: 0.72;
}
body.theme-art-ribbon .site-bg-a {
  background:
    radial-gradient(circle at 10% 16%, var(--theme-glow-primary), transparent 28%),
    radial-gradient(circle at 88% 12%, var(--theme-glow-secondary), transparent 24%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(24deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
}
body.theme-art-ribbon .site-bg-b {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.16), transparent 32%),
    var(--theme-page-bg);
}
body.theme-art-lattice .site-bg-a {
  background:
    radial-gradient(circle at 14% 12%, var(--theme-glow-primary), transparent 26%),
    radial-gradient(circle at 84% 14%, var(--theme-glow-secondary), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}
body.theme-art-lattice .site-bg-b {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 100%),
    var(--theme-page-bg);
  background-size: 180px 180px, 220px 220px, auto;
}
body.theme-art-silk .site-bg-a {
  background:
    radial-gradient(circle at 14% 18%, var(--theme-glow-primary), transparent 28%),
    radial-gradient(circle at 82% 10%, var(--theme-glow-secondary), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(255, 255, 255, 0.06) 62%, transparent 82%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.08), transparent 48%);
}
body.theme-art-silk .site-bg-b {
  background:
    radial-gradient(circle at 18% 74%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.18), transparent 30%),
    var(--theme-page-bg);
}
body[class*="theme-"] .site-topbar,
body[class*="theme-"] .site-footer,
body[class*="theme-"] .flash-item {
  color: #2d3340;
}
body[class*="theme-"] .site-nav-link,
body[class*="theme-"] .section-heading p,
body[class*="theme-"] .feature-card p,
body[class*="theme-"] .site-footer p,
body[class*="theme-"] .flash-item {
  color: #697489;
}
body[class*="theme-"] .hero-shell,
body[class*="theme-"] .content-section,
body[class*="theme-"] .page-card,
body[class*="theme-"] .feature-card,
body[class*="theme-"] .skill-card,
body[class*="theme-"] .package-card,
body[class*="theme-"] .channel-card,
body[class*="theme-"] .media-card,
body[class*="theme-"] .empty-box,
body[class*="theme-"] .member-panel,
body[class*="theme-"] .auth-card,
body[class*="theme-"] .result-card,
body[class*="theme-"] .checkout-shell,
body[class*="theme-"] .dashboard-banner {
  color: #1f2430;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 42px rgba(70, 82, 103, 0.11);
  backdrop-filter: blur(18px);
}
body[class*="theme-"] .hero-kicker {
  background: rgba(255, 255, 255, 0.78);
}
body.theme-home-sunrise {
  --site-accent: #ff7a1a;
  --site-accent-2: #ff9d32;
  --theme-page-bg: linear-gradient(180deg, #fff4ea 0%, #ffd9b8 48%, #fff8f0 100%);
  --theme-glow-primary: rgba(255, 170, 91, 0.26);
  --theme-glow-secondary: rgba(255, 255, 255, 0.85);
}
body.theme-showcase-rose {
  --site-accent: #ff5f9e;
  --site-accent-2: #ff87bf;
  --theme-page-bg: linear-gradient(180deg, #fff2f8 0%, #ffcade 50%, #fff8fb 100%);
  --theme-glow-primary: rgba(255, 123, 171, 0.28);
  --theme-glow-secondary: rgba(255, 255, 255, 0.86);
}
body.theme-membership-sky,
body.theme-membership-gold {
  --site-accent: #ff7d2d;
  --site-accent-2: #5fa7ff;
  --theme-page-bg: linear-gradient(180deg, #f7f3ff 0%, #f1d0e6 18%, #dce1ff 60%, #fbfcff 100%);
  --theme-glow-primary: rgba(255, 139, 88, 0.22);
  --theme-glow-secondary: rgba(107, 156, 255, 0.22);
}
body.theme-member-center {
  --site-accent: #b057ff;
  --site-accent-2: #ff6bac;
  --theme-page-bg: linear-gradient(180deg, #fff5ff 0%, #efd8ff 48%, #fcf7ff 100%);
  --theme-glow-primary: rgba(187, 116, 255, 0.28);
  --theme-glow-secondary: rgba(255, 196, 224, 0.32);
}
body.theme-citrus-cream {
  --site-accent: #ff7f24;
  --site-accent-2: #ffb648;
  --theme-page-bg: linear-gradient(180deg, #fff7e8 0%, #ffe0b6 44%, #fffbf4 100%);
  --theme-glow-primary: rgba(255, 150, 58, 0.28);
  --theme-glow-secondary: rgba(255, 226, 182, 0.44);
}
body.theme-coral-sky {
  --site-accent: #ff6f77;
  --site-accent-2: #69b8ff;
  --theme-page-bg: linear-gradient(180deg, #fff4f3 0%, #ffd4d0 42%, #edf8ff 100%);
  --theme-glow-primary: rgba(255, 112, 126, 0.26);
  --theme-glow-secondary: rgba(111, 188, 255, 0.24);
}
body.theme-mint-lake {
  --site-accent: #13b589;
  --site-accent-2: #5ad4b6;
  --theme-page-bg: linear-gradient(180deg, #effff9 0%, #cdf3e5 44%, #f7fffb 100%);
  --theme-glow-primary: rgba(48, 195, 142, 0.24);
  --theme-glow-secondary: rgba(212, 255, 241, 0.58);
}
body.theme-blue-lagoon {
  --site-accent: #1f7aff;
  --site-accent-2: #49b7ff;
  --theme-page-bg: linear-gradient(180deg, #eef7ff 0%, #cfe4ff 42%, #f7fbff 100%);
  --theme-glow-primary: rgba(71, 139, 255, 0.26);
  --theme-glow-secondary: rgba(173, 227, 255, 0.34);
}
body.theme-lavender-mist {
  --site-accent: #9f67ff;
  --site-accent-2: #f484c0;
  --theme-page-bg: linear-gradient(180deg, #fbf5ff 0%, #e3d8ff 40%, #fff6fb 100%);
  --theme-glow-primary: rgba(159, 103, 255, 0.26);
  --theme-glow-secondary: rgba(248, 180, 217, 0.3);
}
body.theme-amber-forest {
  --site-accent: #c47a12;
  --site-accent-2: #3f9d73;
  --theme-page-bg: linear-gradient(180deg, #fff8ef 0%, #f0ddbf 38%, #eef8f2 100%);
  --theme-glow-primary: rgba(218, 155, 57, 0.26);
  --theme-glow-secondary: rgba(88, 166, 127, 0.24);
}
body.theme-midnight-stars {
  color: #edd8ff;
  --site-bg: #030207;
  --site-card: rgba(11, 8, 21, 0.82);
  --site-line: rgba(206, 182, 255, 0.14);
  --site-text: #edd8ff;
  --site-muted: #b89cd6;
  --site-accent: #c86dff;
  --site-accent-2: #8e63ff;
  --site-shadow: 0 24px 54px rgba(0, 0, 0, 0.56);
  --theme-page-bg: linear-gradient(180deg, #010105 0%, #05030a 52%, #09050d 100%);
  --theme-glow-primary: rgba(132, 78, 255, 0.2);
  --theme-glow-secondary: rgba(255, 255, 255, 0.12);
}
body.theme-midnight-stars .site-bg-a,
body.theme-midnight-stars .site-bg-b {
  background: var(--theme-page-bg);
}
body.theme-midnight-stars .site-bg-a::before,
body.theme-midnight-stars .site-bg-a::after,
body.theme-midnight-stars .site-bg-b::before,
body.theme-midnight-stars .site-bg-b::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
body.theme-midnight-stars .site-bg-a::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 1.2px, transparent 1.95px),
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 0.85px, transparent 1.55px);
  background-size: 150px 150px, 220px 220px, 310px 310px;
  background-position: 18px 14px, 92px 42px, 136px 96px;
  opacity: 0.92;
  animation: star-twinkle-soft 3.2s ease-in-out infinite;
}
body.theme-midnight-stars .site-bg-a::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.94) 0 1.25px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.64) 0 0.9px, transparent 1.6px);
  background-size: 190px 190px, 280px 280px;
  background-position: 44px 22px, 150px 88px;
  opacity: 0.68;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.28));
  animation: star-twinkle-drift 4.8s ease-in-out infinite;
}
body.theme-midnight-stars .site-bg-b::before {
  inset: -6% -4% auto -4%;
  height: 58%;
  background:
    radial-gradient(circle at 18% 0%, rgba(116, 66, 255, 0.14), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(206, 121, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
}
body.theme-midnight-stars .site-bg-b::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(144, 84, 255, 0.08), transparent 40%);
  opacity: 0.8;
}
body.theme-midnight-stars .site-topbar,
body.theme-midnight-stars .site-footer,
body.theme-midnight-stars .flash-item {
  color: #ead8ff;
}
body.theme-midnight-stars .site-nav-link,
body.theme-midnight-stars .section-heading p,
body.theme-midnight-stars .feature-card p,
body.theme-midnight-stars .site-footer p,
body.theme-midnight-stars .flash-item {
  color: #b89cd6;
}
body.theme-midnight-stars .hero-shell,
body.theme-midnight-stars .content-section,
body.theme-midnight-stars .page-card,
body.theme-midnight-stars .feature-card,
body.theme-midnight-stars .skill-card,
body.theme-midnight-stars .package-card,
body.theme-midnight-stars .channel-card,
body.theme-midnight-stars .media-card,
body.theme-midnight-stars .empty-box,
body.theme-midnight-stars .member-panel,
body.theme-midnight-stars .auth-card,
body.theme-midnight-stars .result-card,
body.theme-midnight-stars .checkout-shell,
body.theme-midnight-stars .dashboard-banner {
  color: #edd8ff;
  border-color: rgba(211, 187, 255, 0.12);
  background: rgba(10, 7, 20, 0.76);
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}
body.theme-midnight-stars .hero-kicker {
  background: rgba(193, 114, 255, 0.16);
  color: #d6b4ff;
}
body.theme-midnight-stars .site-brand,
body.theme-midnight-stars .hero-copy h1,
body.theme-midnight-stars .dashboard-banner h1,
body.theme-midnight-stars .auth-side h1,
body.theme-midnight-stars .result-card h1,
body.theme-midnight-stars .section-heading h2,
body.theme-midnight-stars .feature-card h3,
body.theme-midnight-stars .page-card h2,
body.theme-midnight-stars .page-card h3 {
  color: #d494ff;
}
body.theme-midnight-stars .site-brand-mark {
  background: linear-gradient(135deg, #7b2eff, #d064ff 56%, #ffffff);
  box-shadow: 0 12px 30px rgba(175, 91, 255, 0.32);
}
body.theme-midnight-stars .site-nav-link:hover {
  color: #f7efff;
  background: rgba(255, 255, 255, 0.06);
}
body.theme-midnight-stars .site-action.primary {
  background: linear-gradient(135deg, #d46eff, #865bff);
  color: #13081c;
}
body.theme-midnight-stars .site-action.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(211, 187, 255, 0.18);
  color: #edd8ff;
}
body.theme-midnight-stars .flash-success {
  color: #d99aff;
}
body.theme-midnight-stars .flash-error {
  color: #ff9fe2;
}
.skill-page-shell,
.task-stage {
  display: grid;
  gap: 18px;
}
.skill-detail-stack {
  gap: 16px;
}
.page-card-task-submit-panel,
.page-card-process-guide-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.page-card-task-submit-panel .task-stage,
.page-card-process-guide-panel .task-flow-card {
  height: 100%;
}
.page-card.page-card-payment-channels-panel,
.page-card.page-card-payment-order-panel,
.page-card.page-card-task-result-panel,
.page-card.page-card-member-summary-panel,
.page-card.page-card-member-assets-panel,
.page-card.page-card-member-tasks-panel,
.page-card.page-card-member-orders-panel,
.page-card.page-card-member-ledger-panel,
.page-card.page-card-member-profile-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.page-card-task-submit-panel .task-stage {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.page-card-task-submit-panel .auth-card,
.page-card-process-guide-panel .task-flow-card,
.page-card-payment-channels-panel .checkout-compact-card,
.page-card-payment-order-panel .checkout-compact-card,
.page-card-task-result-panel .result-card,
.page-card-member-summary-panel .member-summary-card,
.page-card-member-assets-panel .member-data-card,
.page-card-member-tasks-panel .member-data-card,
.page-card-member-orders-panel .member-data-card,
.page-card-member-ledger-panel .member-data-card,
.page-card-member-profile-panel .member-profile-panel {
  margin: 0;
}
.inline-task-panel-preview {
  display: grid;
  gap: 14px;
}
.inline-task-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(14, 9, 26, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.inline-task-panel[hidden] {
  display: none;
}
.inline-task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-task-head h2,
.inline-task-panel p,
#inline-task-no,
#inline-task-message,
#task-message {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.status-pill.status-idle {
  background: rgba(127, 137, 157, 0.12);
  color: #637086;
}
.status-pill.status-queued,
.status-pill.status-running {
  background: rgba(255, 155, 33, 0.16);
  color: #ad6200;
}
.status-pill.status-completed {
  background: rgba(44, 198, 121, 0.14);
  color: #0d8a4c;
}
.status-pill.status-failed {
  background: rgba(241, 92, 92, 0.14);
  color: #cf3a3a;
}
.inline-task-panel .result-media:empty {
  display: none;
}
.inline-task-panel .result-media {
  margin-top: 16px;
}
.inline-task-panel .status-row {
  flex-wrap: wrap;
  align-items: flex-start;
}
.inline-task-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.status-pill.status-running::before,
.status-pill.status-queued::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  border: 2px solid rgba(173, 98, 0, 0.24);
  border-top-color: currentColor;
  animation: spin-ring 0.8s linear infinite;
}
.member-dashboard {
  align-items: center;
}
.member-data-card,
.member-profile-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--site-line);
  background: var(--site-card);
  backdrop-filter: blur(14px);
  box-shadow: var(--site-shadow);
}
.member-dashboard-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.member-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(158, 63, 227, 0.95), rgba(235, 111, 180, 0.88));
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(155, 76, 194, 0.2);
}
.member-summary-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.member-summary-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
}
.member-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 18px;
}
.member-summary-topline {
  justify-content: space-between;
  gap: 8px 12px;
}
.member-summary-inline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.member-summary-inline:first-child {
  flex: 1 1 auto;
}
.member-summary-inline-token {
  flex: 0 0 auto;
}
.member-summary-label {
  font-size: 16px;
  line-height: 1.2;
  color: var(--site-muted);
  flex: 0 0 auto;
}
.member-summary-value {
  min-width: 0;
  font-size: 17px;
  line-height: 1.25;
  color: currentColor;
}
.member-summary-topline .member-summary-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-summary-meta,
.member-summary-row span {
  font-size: 16px;
  line-height: 1.3;
  color: currentColor;
}
.member-summary-inline-token strong {
  font-size: 20px;
  line-height: 1;
  color: var(--site-accent);
}
.member-summary-stats {
  gap: 6px 14px;
}
.member-summary-stats span {
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.25;
}
.member-summary-stats strong {
  font-size: 17px;
  color: currentColor;
}
.member-invite-row {
  gap: 6px 14px;
  align-items: center;
}
.member-invite-row strong {
  letter-spacing: 0.08em;
}
.member-invite-tip {
  color: #ff3156 !important;
  font-weight: 800;
}
.registration-bonus-popup {
  position: fixed;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  z-index: 35;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 36px rgba(18, 10, 42, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  display: grid;
  gap: 4px;
  text-align: center;
}
.registration-bonus-popup strong {
  font-size: 16px;
  line-height: 1.35;
}
.registration-bonus-popup span {
  font-size: 13px;
  opacity: 0.92;
}
.media-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.media-strip-card {
  min-width: 220px;
}
.media-strip-card img,
.media-strip-card video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.table-shell-wide {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}
.wide-table {
  min-width: 900px;
}
.wide-table th,
.wide-table td {
  white-space: nowrap;
}
.admin-table-panel {
  max-width: 100%;
  overflow: hidden;
}
.admin-task-table-shell {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.admin-task-table {
  table-layout: fixed;
  min-width: 1120px;
  width: max(1120px, 100%);
}
.admin-task-table th,
.admin-task-table td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-task-table .admin-cell-code {
  width: 190px;
  max-width: 190px;
}
.admin-task-table .admin-cell-user {
  width: 160px;
  max-width: 160px;
}
.admin-task-table .admin-cell-skill {
  width: 150px;
  max-width: 150px;
}
.admin-task-table .admin-cell-prompt {
  width: 320px;
  max-width: 320px;
}
.admin-body {
  max-width: 100vw;
  overflow-x: hidden;
}
.admin-main {
  min-width: 0;
  max-width: calc(100vw - 236px);
  overflow-x: hidden;
}
.admin-table-panel,
.admin-table-panel .table-shell,
.admin-task-table-shell {
  min-width: 0;
  max-width: 100%;
}
.admin-task-table-shell {
  display: block;
  width: 100%;
  overflow-x: auto !important;
}
.admin-task-table {
  width: 100%;
  min-width: 980px;
  max-width: none;
  table-layout: fixed;
}
.admin-task-table th:nth-child(1),
.admin-task-table td:nth-child(1) { width: 170px; }
.admin-task-table th:nth-child(2),
.admin-task-table td:nth-child(2) { width: 130px; }
.admin-task-table th:nth-child(3),
.admin-task-table td:nth-child(3) { width: 130px; }
.admin-task-table th:nth-child(4),
.admin-task-table td:nth-child(4) { width: 280px; }
.admin-task-table th:nth-child(5),
.admin-task-table td:nth-child(5) { width: 78px; }
.admin-task-table th:nth-child(6),
.admin-task-table td:nth-child(6),
.admin-task-table th:nth-child(7),
.admin-task-table td:nth-child(7) { width: 88px; }
.admin-task-table th:nth-child(8),
.admin-task-table td:nth-child(8),
.admin-task-table th:nth-child(9),
.admin-task-table td:nth-child(9) { width: 126px; }
.recording-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(190, 207, 245, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.recording-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.recording-head strong {
  font-size: 15px;
}
.recording-head span {
  color: var(--site-muted);
  font-size: 13px;
}
.recording-panel audio[hidden] {
  display: none;
}
.recording-panel audio {
  width: 100%;
}
.task-upload-field {
  display: grid;
  gap: 10px;
}
.task-file-label {
  min-width: 0;
}
.task-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.task-note-button {
  min-height: 36px;
}
.task-note-selected {
  min-width: 0;
  color: var(--site-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.task-note-selected.is-active {
  color: var(--site-accent);
}
.note-picker-modal[hidden] {
  display: none;
}
.note-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  isolation: isolate;
}
.note-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.72);
  z-index: 0;
}
.note-picker-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 26px));
  max-height: min(82vh, 760px);
  margin: 34px auto;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--site-line);
  background: rgba(12, 8, 24, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  overflow: auto;
}
.note-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.note-picker-head strong {
  display: block;
  font-size: 20px;
}
.note-picker-head span {
  display: block;
  margin-top: 4px;
  color: var(--site-muted);
  font-size: 13px;
}
.note-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.note-picker-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--site-text);
  text-align: left;
  cursor: pointer;
}
.note-picker-item:hover,
.note-picker-item.is-selected {
  border-color: rgba(134, 240, 216, 0.58);
  box-shadow: 0 12px 30px rgba(126, 183, 255, 0.18);
}
.note-picker-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.note-picker-thumb img,
.note-picker-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.note-picker-meta {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}
.note-picker-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.note-picker-meta small {
  color: var(--site-muted);
  font-size: 12px;
}

.admin-body {
  grid-template-columns: 236px 1fr;
}
.admin-sidebar {
  padding: 10px 10px 12px;
  gap: 12px;
}
.admin-brand strong {
  font-size: 17px;
  color: #ff6a00;
}
.admin-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.admin-nav a {
  font-size: 13px;
  border-radius: 8px;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: #fff4eb;
  color: #ff6a00;
}
.admin-main {
  padding: 10px 12px 20px;
}
.admin-topbar {
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(22, 34, 61, 0.04);
}
.admin-topbar h1 {
  font-size: 22px;
  margin-bottom: 4px;
}
.admin-topbar p,
.admin-brand span,
.admin-userbox a,
.admin-userbox strong,
.admin-empty-tip,
.admin-hint {
  font-size: 12px;
  line-height: 1.5;
}
.admin-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  color: var(--admin-text);
}
.admin-check-inline-card {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--admin-line);
  background: #fff;
}
.site-settings-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf6, #f8fbff);
}
.site-settings-icon,
.site-brand-mark-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8b3e, #6b89ff);
  box-shadow: 0 14px 28px rgba(56, 72, 118, 0.16);
  flex: 0 0 auto;
}
.site-settings-icon img,
.site-brand-mark-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-settings-copy strong {
  display: block;
  font-size: 18px;
  color: #243046;
  margin-bottom: 4px;
}
.site-settings-copy span {
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.6;
}
.site-icon-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.site-icon-option {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.site-icon-option.is-active {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.1);
}
.site-icon-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.site-icon-option-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8fc, #eef3ff);
}
.site-icon-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-icon-option strong {
  font-size: 12px;
  color: #2d3340;
  line-height: 1.4;
}
.site-brand-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff7f0);
}
.site-brand-preview-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-brand-preview-topbar strong {
  font-size: 18px;
  color: #243046;
}
.site-brand-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-brand-preview-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--admin-line);
  color: var(--admin-muted);
  font-size: 12px;
}
.admin-login-brand {
  margin-bottom: 14px;
}
.admin-panel {
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(22, 34, 61, 0.05);
}
.admin-panel-head {
  margin-bottom: 10px;
}
.admin-panel-head h2 {
  font-size: 16px;
}
.admin-grid {
  gap: 12px;
  margin-top: 12px;
}
.admin-form {
  gap: 10px;
}
.admin-form label,
.admin-login-form label {
  font-size: 13px;
}
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login-form input,
.admin-searchbar input,
.admin-searchbar select {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
}
.admin-metric-grid article,
.toggle-card,
.template-card {
  border-radius: 10px;
  padding: 12px;
}
.admin-metric-grid strong {
  font-size: 24px;
}
.admin-body th,
.admin-body td {
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
}
.template-card-preview {
  position: relative;
  overflow: hidden;
  height: 128px;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.template-card-preview > * {
  position: relative;
  z-index: 1;
}
.template-card-preview::before,
.template-card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.template-preview-top {
  width: 48%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}
.template-preview-hero {
  width: 72%;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}
.template-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.template-preview-row span {
  display: block;
  min-height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.theme-art-ribbon.template-card-preview::before {
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 52%);
  opacity: 0.7;
}
.theme-art-ribbon.template-card-preview::after {
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.2), transparent 24%);
}
.theme-art-ribbon-soft.template-card-preview::before {
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.3), transparent 34%, rgba(255, 255, 255, 0.18) 62%, transparent 82%);
  opacity: 0.86;
}
.theme-art-ribbon-soft.template-card-preview::after {
  inset: auto;
  width: 122%;
  height: 44px;
  left: -14%;
  top: 22%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.26));
  transform: rotate(9deg);
}
.theme-art-ribbon-flow.template-card-preview::before {
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.24), transparent 38%, rgba(255, 255, 255, 0.14) 68%, transparent 84%);
  opacity: 0.84;
}
.theme-art-ribbon-flow.template-card-preview::after {
  inset: auto;
  width: 128%;
  height: 40px;
  left: -18%;
  top: 14%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.24));
  transform: rotate(12deg);
  box-shadow: 0 44px 0 -8px rgba(255, 255, 255, 0.18);
}
.theme-art-ribbon-layer.template-card-preview::before {
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.26), transparent 34%, rgba(255, 255, 255, 0.12) 62%, transparent 86%);
  opacity: 0.82;
}
.theme-art-ribbon-layer.template-card-preview::after {
  inset: auto;
  width: 74%;
  height: 112px;
  left: -2%;
  bottom: -18%;
  border-radius: 999px;
  border: 1px solid rgba(255, 164, 55, 0.42);
  background: linear-gradient(90deg, rgba(255, 176, 74, 0.28), rgba(255, 176, 74, 0.08) 46%, rgba(255, 255, 255, 0.08));
  transform: rotate(58deg);
}
.theme-art-lattice.template-card-preview::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px;
  opacity: 0.72;
}
.theme-art-lattice.template-card-preview::after {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.34) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 80% 68%, rgba(255, 255, 255, 0.34) 0 2px, transparent 2px 100%);
  background-size: 64px 64px, 74px 74px;
}
.theme-art-silk.template-card-preview::before {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 36%, rgba(255, 255, 255, 0.12) 62%, transparent 82%),
    linear-gradient(28deg, rgba(255, 255, 255, 0.14), transparent 48%);
  opacity: 0.85;
}
.theme-art-silk.template-card-preview::after {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.3), transparent 24%),
    radial-gradient(circle at 76% 74%, rgba(255, 255, 255, 0.22), transparent 28%);
}
.theme-home-sunrise.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.18)),
    linear-gradient(135deg, #ff8a3d, #ffd08b 54%, #fff7ef);
}
.theme-showcase-rose.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #f579a9, #ffc9dd 54%, #fff8fb);
}
.theme-membership-sky.template-card-preview,
.theme-membership-gold.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.18)),
    linear-gradient(135deg, #5f76e9, #e66db2 54%, #f7f6ff);
}
.theme-member-center.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #9e43e6, #f07bbd 54%, #fffafe);
}
.theme-citrus-cream.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.18)),
    linear-gradient(135deg, #ff922b, #ffd56b 54%, #fffaf1);
}
.theme-coral-sky.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #ff7b84, #ffc2bd 48%, #e7f6ff);
}
.theme-mint-lake.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #25c293, #a8efd8 52%, #f6fffb);
}
.theme-blue-lagoon.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #3385ff, #8ecbff 52%, #f5fbff);
}
.theme-lavender-mist.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.16)),
    linear-gradient(135deg, #a476ff, #f2b4dc 52%, #fff8fd);
}
.theme-amber-forest.template-card-preview {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.18)),
    linear-gradient(135deg, #cc8b24, #e5d28d 48%, #d7f0e2);
}
.theme-midnight-stars.template-card-preview {
  background:
    linear-gradient(180deg, rgba(12, 8, 24, 0.98), rgba(6, 4, 12, 0.98)),
    linear-gradient(135deg, #07040f, #12071d 52%, #050408);
}
.theme-midnight-stars.template-card-preview::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 1.15px, transparent 1.95px),
    radial-gradient(circle, rgba(255, 255, 255, 0.74) 0 0.95px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 0.8px, transparent 1.45px);
  background-size: 34px 34px, 52px 52px, 68px 68px;
  background-position: 10px 12px, 22px 30px, 40px 6px;
  opacity: 0.9;
  animation: star-twinkle-soft 2.8s ease-in-out infinite;
}
.theme-midnight-stars.template-card-preview::after {
  background:
    radial-gradient(circle at 28% 8%, rgba(160, 92, 255, 0.18), transparent 26%),
    radial-gradient(circle at 74% 0%, rgba(255, 255, 255, 0.12), transparent 24%);
  animation: star-twinkle-drift 4.4s ease-in-out infinite;
}

@keyframes star-twinkle-soft {
  0%, 100% {
    opacity: 0.42;
  }
  35% {
    opacity: 0.98;
  }
  62% {
    opacity: 0.66;
  }
}

@keyframes star-twinkle-drift {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-8px);
  }
}

@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .hero-shell,
  .dashboard-banner,
  .auth-shell,
  .split-layout,
  .two-col,
  .three-col,
  .site-footer,
  .admin-body {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }
  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }
  .admin-searchbar {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-searchbar .search-field-keyword {
    flex: 1 1 220px;
    max-width: none;
  }
  .admin-searchbar .search-field-page,
  .admin-searchbar .search-field-date,
  .admin-searchbar .search-field-status {
    flex: 1 1 140px;
  }
  .auth-forms,
  .metric-grid,
  .admin-metric-grid,
  .admin-form-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }
  .member-dashboard,
  .member-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-topbar { padding-top: 16px; }
  .site-brand {
    gap: 12px;
    font-size: 24px;
  }
  .site-brand-mark {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  .site-nav { width: 100%; justify-content: flex-start; }
  .site-icon-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shell { padding: 18px; min-height: auto; }
  .content-section,
  .member-panel,
  .dashboard-banner,
  .auth-card,
  .result-card { padding: 18px; }
  .member-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .member-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    font-size: 28px;
  }
  .member-dashboard-compact {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
  .registration-bonus-popup {
    top: 84px;
    width: calc(100vw - 28px);
    padding: 12px 14px;
    border-radius: 16px;
  }
  .member-summary-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }
  .member-summary-copy {
    gap: 5px;
  }
  .member-summary-row {
    gap: 3px 8px;
    min-height: 18px;
  }
  .member-summary-topline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .member-summary-inline {
    gap: 4px;
  }
  .member-summary-label {
    font-size: 14px;
  }
  .member-summary-value {
    font-size: 14px;
    line-height: 1.2;
  }
  .member-summary-meta,
  .member-summary-row span {
    font-size: 14px;
    line-height: 1.2;
  }
  .member-summary-inline-token strong {
    font-size: 17px;
  }
  .member-summary-stats {
    gap: 4px 10px;
  }
  .member-summary-stats span {
    font-size: 13px;
    line-height: 1.2;
  }
  .member-summary-stats strong {
    font-size: 15px;
  }
  .media-strip {
    grid-auto-columns: minmax(180px, 200px);
  }
  .site-main,
  .auth-main,
  .site-topbar,
  .site-footer,
  .flash-stack { width: min(100%, calc(100% - 18px)); }
  .admin-searchbar .search-field-keyword,
  .admin-searchbar .search-field-page,
  .admin-searchbar .search-field-date,
  .admin-searchbar .search-field-status,
  .admin-searchbar .search-action,
  .admin-searchbar .search-action-secondary {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
}

.site-member-chip {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--site-text);
  flex: 0 0 auto;
}
.site-member-login-chip {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.site-member-chip img,
.member-avatar img,
.profile-avatar-large img,
.default-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  background: transparent;
}
.member-summary-avatar-stack {
  display: inline-grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  flex: 0 0 auto;
}
.member-summary-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--site-text);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.auth-shell-single { grid-template-columns: 1fr 1.06fr; }
.auth-forms-stack { grid-template-columns: 1fr; }
.auth-card-accent { border-color: rgba(255, 145, 31, 0.34); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--site-muted); margin: 14px 0 6px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.12); }
.auth-provider-note {
  margin: 0 0 6px;
  color: #5c6980;
  font-size: 13px;
  line-height: 1.65;
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 10px;
  align-items: center;
}
.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.email-code-send {
  min-width: 122px;
  border-color: rgba(255, 122, 26, 0.36);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 235, 0.98));
  color: #243046;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.12);
}
.email-code-send:hover {
  background: linear-gradient(135deg, rgba(255, 247, 241, 1), rgba(255, 237, 223, 1));
  color: #1c2533;
}
.email-code-send:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}
.email-code-feedback.is-error {
  color: #cf4b4b;
}
.email-code-feedback.is-success {
  color: #0a8b46;
}
.captcha-input {
  min-width: 0;
}
.captcha-image {
  width: 160px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.44);
  background: rgba(255,255,255,0.74);
  cursor: pointer;
}
.captcha-refresh {
  min-width: 88px;
  min-height: 56px;
}
.auth-provider-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 10px;
}
.auth-provider-entry {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 84px;
  color: #344055;
  text-align: center;
}
.auth-provider-entry:hover .auth-provider-badge {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(67, 84, 114, 0.16);
}
.auth-provider-entry.disabled {
  opacity: 0.56;
  cursor: default;
}
.auth-provider-badge {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 10px 24px rgba(71, 90, 122, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-provider-badge img {
  width: 28px;
  height: 28px;
}
.auth-provider-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.auth-provider-status {
  font-size: 11px;
  line-height: 1.35;
  color: #7b879a;
}
.checkout-caption {
  margin: 10px 0 18px;
  color: var(--site-muted);
}
.checkout-shell-compact {
  padding: 0;
}
.checkout-compact-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.checkout-compact-summary {
  display: grid;
  gap: 0;
}
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--site-line);
}
.checkout-summary-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.checkout-summary-line span {
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.5;
}
.checkout-summary-line strong {
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
}
.checkout-summary-line-quiet strong {
  font-size: 14px;
}
.checkout-channel-list {
  display: grid;
  gap: 12px;
}
.checkout-channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
}
.checkout-channel-item strong {
  font-size: 15px;
  line-height: 1.5;
}
.checkout-channel-item .site-action {
  margin-left: auto;
}
.checkout-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.checkout-order-actions form {
  margin: 0;
}
.checkout-payment-compact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}
.checkout-payment-qr {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}
.checkout-payment-lines {
  display: grid;
  gap: 0;
}
.order-number-inline {
  font-family: "Consolas", "Courier New", monospace;
  word-break: break-all;
}
.checkout-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.epusdt-pay-panel {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  margin: 18px 0 20px;
  align-items: stretch;
}
.epusdt-qr-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.1);
  justify-items: center;
  text-align: center;
}
.epusdt-qr-image {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}
.epusdt-pay-copy {
  display: grid;
  gap: 14px;
}
.epusdt-pay-detail {
  display: grid;
  gap: 10px;
}
.epusdt-pay-detail .site-action {
  justify-self: flex-start;
}
.checkout-summary-card {
  border: 1px solid var(--site-line);
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.checkout-summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}
.checkout-summary-card p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.6;
}
.checkout-summary-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--site-text);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.checkout-order-number-card {
  margin-bottom: 18px;
}
.order-number-text,
.order-number-cell {
  font-family: "Consolas", "Courier New", monospace;
}
.order-number-text {
  font-size: 18px;
  word-break: break-all;
}
.order-number-cell {
  max-width: 220px;
  white-space: normal;
  word-break: break-all;
}
.channel-card {
  border: 1px solid var(--site-line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  display: grid;
  gap: 14px;
}
.channel-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.channel-card p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.6;
}
.channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.channel-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--site-text);
}
.page-card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.page-headline {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
}
.page-headline h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}
.page-headline p {
  margin: 0;
  max-width: 760px;
  color: var(--site-muted);
  line-height: 1.72;
}
.page-content-stack {
  display: grid;
  gap: 16px;
}
.page-section-heading {
  margin-bottom: 0;
}
.page-card {
  grid-column: span 12;
  border: 1px solid var(--site-line);
  background: var(--site-card);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--site-shadow);
  min-width: 0;
}
.page-card.page-card-task-submit-panel,
.page-card.page-card-process-guide-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.page-card.page-card-task-submit-panel .task-stage,
.page-card.page-card-process-guide-panel .task-flow-card {
  height: 100%;
}
.page-card-size-wide { grid-column: span 7; }
.page-card-size-half { grid-column: span 6; }
.hero-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 24px;
  align-items: center;
}
.page-card-hero-banner {
  padding: 24px;
}
.page-card-copy,
.hero-card-shell .hero-copy {
  display: grid;
  gap: 12px;
}
.page-card-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--site-muted);
}
.page-card-media { margin-top: 14px; }
.page-card-media img, .page-card-media video, .audio-result-shell img { border-radius: 18px; width: 100%; object-fit: cover; }
.spotlight-media img, .spotlight-media video { min-height: 320px; }
.hero-card-shell .hero-media img,
.hero-card-shell .hero-media video {
  width: 100%;
  min-height: 320px;
  border-radius: 22px;
  object-fit: cover;
}
.page-media-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.page-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 20px;
  border: 0;
  background: transparent;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.hero-media-frame,
.spotlight-media-frame {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border-radius: 22px;
}
.page-media-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain !important;
  background: transparent;
  border-radius: 20px;
}
.page-media-card {
  display: block;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.page-media-card .page-media-thumb,
.media-grid .page-media-card .page-media-thumb,
.page-card-gallery-strip .page-media-card .page-media-thumb {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  padding: 0;
  box-sizing: border-box;
  border-radius: 20px;
  background: transparent !important;
}
.media-grid-video .page-media-card .page-media-thumb {
  aspect-ratio: auto !important;
}
.media-grid-video .page-media-card {
  aspect-ratio: auto;
}
.page-image-gallery {
  gap: 16px;
}
.page-image-layout-auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.page-image-layout-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-image-layout-stack {
  grid-template-columns: 1fr;
}
.page-image-gallery .page-image-card {
  display: block;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  background: transparent;
}
.page-card-gallery-strip .page-media-card {
  display: block;
  aspect-ratio: auto;
}
.site-main .media-card {
  display: block;
  align-self: start;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.site-main .media-grid > .media-card,
.site-main .media-strip > .media-card,
.site-main .page-media-button {
  align-self: start;
}
.site-main .media-card span {
  display: none;
}
.site-main .media-card img,
.site-main .media-card video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 20px;
}
.site-main .hero-media img,
.site-main .hero-media video,
.site-main .page-card-media img,
.site-main .page-card-media video,
.site-main .spotlight-media img,
.site-main .spotlight-media video,
.site-main .skill-card img,
.site-main .page-media-thumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 20px;
}
.site-main .hero-media img,
.site-main .hero-media video,
.site-main .page-card-media img,
.site-main .page-card-media video,
.site-main .spotlight-media img,
.site-main .spotlight-media video {
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.site-main .skill-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
body[class*="theme-"] .site-main .media-card,
body[class*="theme-"] .site-main .page-media-card,
body[class*="theme-"] .site-main .page-media-frame,
body[class*="theme-"] .site-main .page-media-button,
body[class*="theme-"] .site-main .hero-media,
body[class*="theme-"] .site-main .page-card-media,
body[class*="theme-"] .site-main .spotlight-media {
  background: transparent !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
}
.page-image-gallery .page-image-card .page-media-thumb,
.media-grid.page-image-gallery .page-image-card .page-media-thumb {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  padding: 0;
  border-radius: 20px;
  background: transparent;
}
.page-media-button:hover .page-media-frame,
.page-media-card:hover .page-media-thumb {
  filter: saturate(1.04);
}
.page-card-preview-title {
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.page-card-preview-stage {
  width: 100%;
  margin: 0;
  padding: 0;
}
.page-card-preview-stage .page-card {
  margin: 0;
}
.page-card-preview-stage .page-card-task-submit-panel,
.page-card-preview-stage .page-card-process-guide-panel {
  grid-column: span 12;
}
.page-card-preview-empty {
  padding: 14px 0 4px;
  color: #64748b;
  font-size: 13px;
}
.inline-member-panel { margin: 0; }
.page-card-editor { display: grid; gap: 16px; margin: 14px 0 18px; }
.page-card-editor-item { border: 1px solid var(--admin-line); border-radius: 16px; padding: 14px; background: #fff; min-width: 0; overflow: hidden; }
.page-card-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-card-gallery-block { display: grid; gap: 12px; margin-top: 14px; }
.page-card-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-card-gallery-head span { color: #64748b; font-size: 13px; }
.page-card-business-block { display: grid; gap: 12px; margin-top: 14px; }
.page-card-business-list { display: grid; gap: 12px; }
.page-card-business-item {
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}
.page-card-business-head { margin-bottom: 10px; }
.page-card-media-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 112px));
  justify-content: start;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dbe3f1;
  border-radius: 16px;
  background: #f8fbff;
  min-width: 0;
}
.page-card-media-option {
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  min-width: 0;
  width: 100%;
}
.page-card-media-option:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}
.page-card-media-option.is-active {
  border-color: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 1));
}
.page-card-media-option-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #e5eefc;
}
.page-card-media-option-thumb img,
.page-card-media-option-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-card-media-audio {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(236, 72, 153, 0.86));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.page-card-media-option-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.page-card-media-option-meta strong {
  font-size: 11px;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.page-card-media-option-meta em {
  font-style: normal;
  color: #64748b;
  font-size: 11px;
}
.page-card-preview-inline { margin-top: 12px; border-radius: 14px; padding: 14px; background: linear-gradient(135deg, rgba(255,126,35,0.12), rgba(96,165,250,0.12)); }
.page-card-selected-strip { margin-top: 12px; }
.page-card-gallery-strip { margin-top: 16px; }
.page-card-selected-strip .media-strip-card,
.page-card-gallery-strip .media-strip-card {
  min-width: 104px;
  max-width: 116px;
}
.page-card-selected-strip .media-card span,
.page-card-gallery-strip .media-card span {
  font-size: 11px;
  line-height: 1.35;
  padding: 0 8px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.profile-shell { padding: 24px; }
.profile-grid { display: grid; grid-template-columns: .82fr 1.08fr .92fr; gap: 18px; }
.profile-card { border: 1px solid var(--site-line); border-radius: 20px; background: rgba(255,255,255,0.05); padding: 18px; }
.member-profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}
.member-profile-fields {
  display: grid;
  gap: 12px;
}
.member-profile-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.member-profile-field span {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.5;
}
.member-profile-panel input,
.member-profile-panel textarea,
.member-profile-panel select,
.profile-card input,
.profile-card textarea,
.profile-card select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(190, 207, 245, 0.2);
  background: rgba(255,255,255,0.06);
  color: var(--site-text);
}
.member-profile-panel input[disabled],
.profile-card input[disabled] {
  opacity: 0.92;
}
.member-data-card .table-shell,
.member-profile-panel .table-shell {
  border-color: rgba(190, 207, 245, 0.16);
  background: rgba(255,255,255,0.04);
}
.member-data-card th,
.member-data-card td,
.member-profile-panel th,
.member-profile-panel td {
  color: var(--site-text);
}
.member-data-card th,
.member-profile-panel th {
  color: var(--site-muted);
}
.admin-text-table textarea,
.admin-text-table input {
  width: 100%;
}
.admin-text-table td:last-child {
  min-width: 260px;
}
.admin-text-table textarea {
  min-height: 72px;
  resize: vertical;
}
.profile-avatar-large, .default-avatar-btn { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; }
.profile-avatar-large { margin-bottom: 14px; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; color: var(--site-text); }
.profile-avatar-trigger { padding: 0; border: 0; background: transparent; cursor: pointer; }
.default-avatar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 112px)); gap: 14px; }
.default-avatar-btn { border: 1px solid rgba(255,255,255,0.14); background: transparent; padding: 0; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.default-avatar-btn.is-active { border-color: rgba(255,255,255,0.46); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16); transform: translateY(-2px); }
.profile-tip { color: var(--site-muted); margin: 0 0 12px; }
.avatar-picker-modal[hidden] { display: none; }
.avatar-picker-modal { position: fixed; inset: 0; z-index: 85; }
.avatar-picker-mask { position: absolute; inset: 0; background: rgba(8, 17, 31, 0.58); }
.avatar-picker-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 28px));
  margin: 36px auto;
  padding: 22px;
  border-radius: 24px;
  background: rgba(11, 18, 31, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 70px rgba(3, 8, 20, 0.45);
}
.audio-result-shell { display: grid; gap: 12px; }
.audio-result-shell audio { width: 100%; }
.admin-modal[hidden] { display: none; }
.admin-modal { position: fixed; inset: 0; z-index: 70; }
.admin-modal-mask { position: absolute; inset: 0; background: rgba(8, 17, 31, 0.55); }
.admin-modal-dialog { position: relative; z-index: 1; width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; margin: 20px auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 56px rgba(18, 26, 48, 0.18); padding: 20px; }
.admin-modal-wide { width: min(1080px, calc(100% - 32px)); }
.admin-modal-body h2 { margin-top: 0; }
.table-link { background: transparent; border: 0; color: #2563eb; cursor: pointer; padding: 0; }
.table-link-danger { color: #d84c4c; }
.inline-delete-form { display: inline-flex; margin-left: 10px; }
.admin-inline-tip { display: inline-flex; margin-left: 10px; color: #7d8aa0; font-size: 12px; }
.order-admin-actions {
  display: grid;
  gap: 8px;
  min-width: 260px;
}
.order-admin-confirm,
.order-adjust-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.order-adjust-form input {
  width: 92px;
  min-height: 30px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 5px 8px;
}
.order-adjust-form input[name="adjust_note"] { width: 136px; }
.admin-thumb-button {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f6f8fc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.admin-thumb-button-large {
  width: 180px;
  height: 180px;
  border-radius: 18px;
}
.admin-thumb-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.admin-modal-preview {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.table-shell-wide { overflow-x: auto; }
.wide-table { min-width: 980px; }
.checkout-shell .wide-table { min-width: 860px; }
@media (max-width: 860px) {
  .admin-main {
    max-width: 100vw;
  }
  .epusdt-pay-panel {
    grid-template-columns: 1fr;
  }
  .checkout-summary-line,
  .checkout-channel-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .checkout-summary-line strong {
    text-align: left;
  }
  .checkout-payment-compact {
    grid-template-columns: 1fr;
  }
  .checkout-payment-qr {
    width: min(220px, 100%);
    height: auto;
  }
}
.member-avatar-large { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; flex: 0 0 auto; }
.site-action.ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--site-text); }
body[class*="theme-"] .site-action.ghost {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.site-topbar .site-action.ghost,
body[class*="theme-"] .site-topbar .site-action.ghost {
  border-color: rgba(126, 142, 170, 0.28);
  background: rgba(255,255,255,0.82);
  color: #2d3340;
}
.site-topbar .site-action.ghost:hover,
body[class*="theme-"] .site-topbar .site-action.ghost:hover {
  background: rgba(255,255,255,0.94);
  color: #1f2430;
}
body[class*="theme-"] .auth-card .email-code-send.site-action.ghost,
.auth-card .email-code-send.site-action.ghost {
  border-color: rgba(255, 122, 26, 0.36) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 235, 0.98)) !important;
  color: #243046 !important;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.12);
}
body[class*="theme-"] .auth-card .email-code-send.site-action.ghost:hover,
.auth-card .email-code-send.site-action.ghost:hover {
  background: linear-gradient(135deg, rgba(255, 247, 241, 1), rgba(255, 237, 223, 1)) !important;
  color: #1c2533 !important;
}
body[class*="theme-"] .auth-card .email-code-send.site-action.ghost:disabled,
.auth-card .email-code-send.site-action.ghost:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}
.skill-preset-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 16px;
}
.skill-preset-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(120, 138, 168, 0.18);
  background: rgba(250, 252, 255, 0.8);
  box-shadow: 0 10px 24px rgba(33, 42, 62, 0.06);
}
.checkout-shell-inline,
.result-shell-inline {
  width: 100%;
}
.result-media-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px dashed rgba(126, 142, 170, 0.35);
  color: rgba(76, 88, 108, 0.8);
  background: rgba(245, 247, 251, 0.72);
}
.theme-social-feed {
  background: #05070d;
}
.theme-social-feed .site-footer {
  display: none;
}
.social-feed-page {
  width: 100%;
  margin: 0;
}
.social-feed-snap {
  height: calc(var(--social-feed-height, 100dvh) - 1px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  background: #05070d;
}
.social-feed-page.is-commenting .social-feed-snap {
  scroll-snap-type: none;
}
.social-feed-item {
  position: relative;
  min-height: var(--social-feed-height, 100dvh);
  height: var(--social-feed-height, 100dvh);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #05070d;
}
.social-feed-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070d;
}
.social-feed-media img,
.social-feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.social-feed-jiuchi .social-feed-media img {
  object-fit: contain;
}
.social-feed-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.5) 0%, transparent 24%, transparent 58%, rgba(5,7,13,0.72) 100%),
    radial-gradient(circle at 85% 80%, rgba(197, 96, 255, 0.18), transparent 34%);
}
.social-feed-copy {
  position: absolute;
  left: auto;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(58px + env(safe-area-inset-bottom));
  width: min(220px, 42vw);
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}
.social-feed-copy span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.social-feed-copy strong {
  font-size: 22px;
  line-height: 1.05;
  color: #f0c8ff;
}
.social-feed-copy p {
  margin: 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(240,200,255,0.78);
}
.social-feed-actions {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  gap: 10px;
}
.social-feed-icon {
  width: 46px;
  min-height: 46px;
  padding: 7px 5px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(8, 10, 18, 0.36);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
.social-feed-icon span {
  font-size: 18px;
  line-height: 1;
}
.social-feed-icon em {
  font-size: 10px;
  line-height: 1;
  font-style: normal;
}
.social-feed-icon.is-active {
  color: #ff73bd;
  border-color: rgba(255, 115, 189, 0.42);
  background: rgba(255, 115, 189, 0.15);
}
.social-feed-comments {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: 110px;
  bottom: calc(50px + env(safe-area-inset-bottom));
  z-index: 3;
  height: 86px;
  overflow: hidden;
  pointer-events: none;
}
.social-feed-page.is-commenting .social-feed-comments {
  display: none;
}
.social-feed-comment-track {
  display: grid;
  gap: 6px;
  animation: socialCommentScroll 18s linear infinite;
}
.social-feed-comment {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.34);
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  line-height: 1.25;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes socialCommentScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.social-feed-comment-form {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.social-feed-comment-form input {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 10, 18, 0.38);
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
  backdrop-filter: blur(12px);
}
.social-feed-comment-form input::placeholder {
  color: rgba(255,255,255,0.58);
}
.social-feed-comment-form button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #120817;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8fd7, #9c6cff);
}
.social-feed-empty > div,
.social-feed-gate > div {
  position: relative;
  z-index: 2;
  width: min(360px, calc(100% - 40px));
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(12, 16, 28, 0.62);
  backdrop-filter: blur(18px);
}
.social-feed-empty span,
.social-feed-gate span {
  color: rgba(255,255,255,0.7);
}
.social-feed-empty strong,
.social-feed-gate strong {
  font-size: 24px;
}
.feed-admin-table input,
.feed-admin-table textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 7px 9px;
}
.feed-admin-table textarea {
  min-width: 220px;
  resize: vertical;
}
.feed-admin-comments {
  min-width: 240px;
}
.feed-admin-comments span {
  display: block;
  max-width: 300px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 960px) {
  body:not(.admin-body) {
    padding-top: calc(82px + env(safe-area-inset-top));
  }
  .theme-social-feed {
    padding-top: 0 !important;
  }
  .site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    width: 100%;
    min-height: calc(64px + env(safe-area-inset-top));
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 8px;
    background: rgba(5, 9, 17, 0.78);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  }
  .site-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 0;
    min-width: 0;
    line-height: 1;
  }
  .site-brand-name-desktop {
    display: none;
  }
  .site-brand-mobile-name {
    display: block;
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 79;
    min-width: 0;
    min-height: 0;
    padding: 3px 10px 0;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: left;
    color: var(--site-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }
  .site-brand-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .site-nav {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: visible;
    overflow-y: hidden;
    scrollbar-width: none;
    justify-content: space-between;
    -webkit-overflow-scrolling: auto;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav-link {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 0;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.08em;
    text-align: center;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
  }
  .site-topbar .site-action.primary,
  .site-topbar .site-action.ghost {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
  }
  .site-member-chip {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
  }
  .site-member-login-chip {
    font-size: 13px;
    letter-spacing: -0.06em;
  }
  .member-summary-avatar-stack {
    gap: 4px;
  }
  .member-summary-logout {
    min-height: 21px;
    padding: 0 7px;
    font-size: 10px;
  }
  .social-feed-snap,
  .social-feed-item {
    height: var(--social-feed-height, 100dvh);
    min-height: var(--social-feed-height, 100dvh);
  }
  body.site-shell .site-topbar {
    color: #f0c8ff;
    background: rgba(5, 9, 17, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  }
  body.site-shell .site-brand,
  body.site-shell .site-brand-mobile-name {
    color: #f0c8ff;
    text-shadow: none;
  }
  body.site-shell .site-nav-link {
    color: #f0c8ff;
    background: rgba(255, 255, 255, 0.06);
  }
  body.site-shell .site-nav-link:hover {
    color: #ffe8ff;
    background: rgba(255, 255, 255, 0.05);
  }
  body.site-shell .site-member-chip {
    color: #f0c8ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(170, 193, 255, 0.14);
  }
  body.theme-social-feed.theme-midnight-stars .site-topbar {
    color: #ead8ff;
    background: rgba(5, 9, 17, 0.78);
    border-bottom-color: rgba(211, 187, 255, 0.12);
    box-shadow: 0 10px 28px rgba(9, 2, 20, 0.32);
  }
  body.theme-social-feed.theme-midnight-stars .site-brand,
  body.theme-social-feed.theme-midnight-stars .site-brand-mobile-name {
    color: #d494ff;
    text-shadow: none;
  }
  body.theme-social-feed.theme-midnight-stars .site-nav-link {
    color: #b89cd6;
    background: rgba(255, 255, 255, 0.06);
  }
  body.theme-social-feed.theme-midnight-stars .site-nav-link:hover {
    color: #f7efff;
    background: rgba(255, 255, 255, 0.06);
  }
  body.theme-social-feed.theme-midnight-stars .site-member-chip {
    color: #ead8ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(211, 187, 255, 0.18);
  }
  body.theme-midnight-stars .site-bg-a::before,
  body.theme-midnight-stars .site-bg-a::after,
  body.theme-midnight-stars .site-bg-b::before,
  body.theme-midnight-stars .site-bg-b::after,
  body[class*="theme-art-ribbon"] .site-bg-a::before,
  body[class*="theme-art-ribbon"] .site-bg-a::after,
  body[class*="theme-art-ribbon"] .site-bg-b::before,
  body[class*="theme-art-ribbon"] .site-bg-b::after {
    animation: none !important;
    filter: none !important;
  }
  body:not(.admin-body) .hero-shell,
  body:not(.admin-body) .content-section,
  body:not(.admin-body) .page-card,
  body:not(.admin-body) .feature-card,
  body:not(.admin-body) .skill-card,
  body:not(.admin-body) .package-card,
  body:not(.admin-body) .member-panel,
  body:not(.admin-body) .auth-card,
  body:not(.admin-body) .result-card,
  body:not(.admin-body) .checkout-shell {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body:not(.theme-social-feed):not(.admin-body) .page-card,
  body:not(.theme-social-feed):not(.admin-body) .content-section {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
  }
  .auth-shell-single, .profile-grid { grid-template-columns: 1fr; }
  .member-profile-grid {
    grid-template-columns: 1fr;
  }
  .member-profile-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .page-card-size-wide, .page-card-size-half { grid-column: span 12; }
  .hero-card-shell { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .default-avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-icon-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel-meta { flex-direction: column; align-items: stretch; }
  .captcha-row { grid-template-columns: 1fr; }
  .email-code-row { grid-template-columns: 1fr; }
  .page-image-layout-auto,
  .page-image-layout-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-image-layout-stack {
    grid-template-columns: 1fr;
  }
  .inline-task-head,
  .inline-task-actions,
  .inline-task-panel .status-row {
    width: 100%;
  }
  .inline-task-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
  .captcha-image,
  .captcha-refresh {
    width: 100%;
  }
}
