:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2f7df6;
  --cyan: #29b9d8;
  --red: #ef4444;
  --green: #10b981;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(24, 36, 66, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.auth-required {
  overflow: hidden;
  background: #dfeefd;
}

body.auth-required .app-shell {
  display: none;
}

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

button {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 32, 51, .12);
}

button:not(:disabled):active,
button.pressed {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, .18);
}

button:disabled {
  cursor: default;
  opacity: .38;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 125, 246, .22);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px;
  background: #111827;
  color: white;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
}

.brand-sub {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 4px;
}

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

.nav-item {
  font: inherit;
  text-decoration: none;
  border: 0;
  color: #d1d5db;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  border-radius: 8px;
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
}

.side-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.side-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.side-text {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 14px;
}

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

.topbar, .section-head, .between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 24px;
}

.page-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}

.page-history {
  display: flex;
  grid-row: span 2;
  gap: 8px;
}

.history-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-size: 27px;
  line-height: 1;
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 13px;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 30px;
  margin-top: 4px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-chip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  background-position: center;
  background-size: cover;
  border: 3px solid #dbeafe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .16);
  text-shadow: 0 2px 10px rgba(15, 23, 42, .34);
}

.avatar-badge.small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 14px;
}

.avatar-badge.large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 22px;
}

.avatar-badge.xlarge {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  font-size: 26px;
}

.view { display: none; }
.view.active {
  display: block;
  animation: view-in .22s ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  align-items: center;
  gap: 22px;
  min-height: 210px;
  padding: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eaf6ff 54%, #fff7ed);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.hero-band h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 10px 0;
}

.hero-band p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

.hero-kicker {
  color: #075985;
  font-weight: 700;
}

.announcement-board {
  min-height: 210px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.announcement-main {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border: 0;
  border-radius: 8px;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .14);
}

.announcement-main.notice-announcement {
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .28), transparent 34%),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 48%, #eef2ff 100%);
  border: 1px solid rgba(147, 197, 253, .72);
}

.announcement-main.info-announcement {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.45), transparent 34%),
    linear-gradient(135deg, #e0f2fe 0%, #dbeafe 52%, #ede9fe 100%);
  border: 1px solid rgba(186, 230, 253, .86);
}

.announcement-main::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .72)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .25), transparent 38%);
}

.announcement-main.notice-announcement::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(15,23,42,.26)),
    linear-gradient(135deg, rgba(37,99,235,.16), transparent 52%);
}

.announcement-main.info-announcement::after {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(37,99,235,.16));
}

.announcement-main span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: #ffffff;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 10px rgba(15, 23, 42, .5);
}

.announcement-main em {
  position: absolute;
  left: 14px;
  bottom: 44px;
  z-index: 1;
  font-style: normal;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(15, 23, 42, .42);
}

.announcement-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.announcement-thumb {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background-color: #e5eefb;
  background-position: center;
  background-size: cover;
}

.notice-thumb {
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  background:
    linear-gradient(135deg, #eff6ff, #dbeafe);
}

.info-thumb {
  display: grid;
  place-items: center;
  color: #0f4c81;
  font-size: 12px;
  font-weight: 900;
  background:
    linear-gradient(135deg, #e0f2fe, #ede9fe);
}

.announcement-empty {
  min-height: 210px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 8px;
  color: #64748b;
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(239,248,255,.86)),
    repeating-linear-gradient(135deg, rgba(37,99,235,.06) 0 10px, transparent 10px 20px);
  border: 1px dashed #bfdbfe;
}

.announcement-empty strong {
  color: #1e3a8a;
}

.section-head {
  margin: 24px 0 16px;
}

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

.segment button, .ghost-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 9px 15px;
  border-radius: 8px;
}

.segment button.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.game-filter {
  padding: 5px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .08);
}

.game-filter button {
  min-width: 132px;
  border-color: transparent;
  font-weight: 800;
}

.game-filter button.active {
  background: linear-gradient(135deg, #2f7df6, #4f46e5);
  box-shadow: 0 8px 18px rgba(47, 125, 246, .22);
}

.service-empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow);
}

.service-grid {
  display: grid;
  gap: 26px;
}

.service-category {
  min-width: 0;
}

.service-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.service-category-head h3 {
  margin: 0;
  font-size: 20px;
}

.service-category-head span {
  color: var(--muted);
  font-size: 13px;
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card, .player-card, .order-card, .admin-card, .notice-card, .account-panel, .auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover,
.player-card:hover,
.order-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 20px 48px rgba(24, 36, 66, .14);
}

.service-card:hover {
  transform: translateY(-2px);
}

.service-cover {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
}

.service-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.service-body {
  padding: 16px;
}

.service-name {
  font-size: 18px;
  line-height: 1.45;
  min-height: 52px;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0;
}

.price {
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
}

.origin {
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.plus-btn {
  margin-left: auto;
  border: 0;
  color: white;
  background: var(--blue);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
}

.player-list, .order-list {
  display: grid;
  gap: 14px;
}

.player-card, .order-card, .admin-card, .notice-card, .account-panel, .auth-card {
  padding: 18px;
}

.player-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dbeafe;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  margin: 4px 6px 0 0;
}

.tag.green { background: #ecfdf5; color: #047857; }
.tag.amber { background: #fffbeb; color: #b45309; }
.tag.red { background: #fef2f2; color: #b91c1c; }

.primary-btn, .secondary-btn {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.secondary-btn {
  background: #eef2ff;
  color: #3730a3;
}

.btn-danger {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #b91c1c;
  background: #fef2f2;
  font-weight: 900;
}

.full { width: 100%; }

.search-input {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.order-card {
  display: grid;
  gap: 14px;
}

.order-main {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
}

.order-price {
  font-size: 30px;
  font-weight: 900;
}

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

.timeline span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 13px;
}

.timeline span.done {
  background: #dbeafe;
  color: #1d4ed8;
}

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

.admin-sub-nav {
  padding-left: 28px;
  font-size: 14px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wheel-admin-home-entry { margin-top: 20px; }
.service-wheel-info { background: #fffaf2; padding: 18px; border: 1px solid #f0e1cf; border-radius: 12px; }
.service-wheel-info p { color: #756966; line-height: 1.7; }
.service-wheel-info .wheel-rule-text { white-space: pre-wrap; }
.service-wheel-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  color: #94632c;
  background: #fff3df;
  font-size: 12px;
  font-weight: 700;
}
.service-wheel-preview {
  padding: 14px;
  background: #fff9f2;
  border: 1px solid #f1e3d7;
  border-radius: 12px;
}
.service-wheel-preview p { font-size: 13px; line-height: 1.7; color: #756966; }
.service-wheel-preview > div { display: flex; gap: 6px; flex-wrap: wrap; }
.service-wheel-preview > div span { font-size: 12px; padding: 4px 7px; background: white; border-radius: 5px; }
.service-wheel-preview a { display: inline-block; margin-top: 12px; color: #a35467; font-size: 13px; }
.order-wheel-benefit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #f0ddcc;
  border-radius: 12px;
  background: #fff9f0;
}
.order-wheel-benefit strong { color: #875632; font-size: 15px; }
.order-wheel-benefit p { margin: 6px 0; color: #76625a; font-size: 14px; }
.order-wheel-benefit small { color: #887b76; }
.order-wheel-benefit a { flex-shrink: 0; text-decoration: none; white-space: nowrap; }
.order-system-notes { display: grid; gap: 10px; }
.order-system-notes article { border-left: 3px solid #e6bc9b; padding: 12px 16px; background: #fdfaf6; border-radius: 0 8px 8px 0; }
.order-system-notes article strong { font-size: 14px; color: #6f5344; }
.order-system-notes article p { margin: 8px 0; line-height: 1.7; white-space: pre-wrap; font-size: 13px; overflow-wrap: anywhere; }
.order-system-notes article small { color: #95887f; font-size: 12px; }
.order-original-remark { font-size: 13px; color: #6e6065; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .order-wheel-benefit { align-items: flex-start; flex-direction: column; }
}

.admin-module-grid button {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  min-height: 180px;
  padding: 34px 24px 24px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(76, 46, 60, .06);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-module-grid button[data-admin-module="orders"] {
  background: linear-gradient(90deg, #fffefd 0%, #fffcf4 42%, #fff5d9 100%);
}

.admin-module-grid button[data-admin-module="services"] {
  background: linear-gradient(90deg, #fffefe 0%, #fff9fa 42%, #fff0f4 100%);
}

.admin-module-grid button[data-admin-module="staff"] {
  background: linear-gradient(90deg, #fffefe 0%, #f9fcff 42%, #edf7ff 100%);
}

.admin-module-grid button[data-admin-module="customers"] {
  background: linear-gradient(90deg, #fffefe 0%, #fcfaff 42%, #f4efff 100%);
}

.admin-module-grid button[data-admin-module="content"] {
  background: linear-gradient(90deg, #fffefe 0%, #f9fdfb 42%, #edf9f2 100%);
}

.admin-module-grid button:hover {
  border-color: #ff9ca9;
  box-shadow: 0 16px 34px rgba(226, 86, 110, .11);
  transform: translateY(-3px);
}

.admin-module-grid button > span {
  color: #ad405c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
}

.admin-module-grid button > strong {
  align-self: start;
  margin-top: 14px;
  color: #211b1e;
  font-size: 21px;
  line-height: 1.3;
}

.admin-module-grid button > small {
  margin-top: 7px;
  color: #595158;
  font-size: 15px;
  line-height: 1.55;
}

.admin-module-grid button > em {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #211b1e;
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
}

.admin-page-head {
  align-items: flex-start;
}

.admin-page-head h2 {
  margin: 3px 0 5px;
}

.admin-order-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr) minmax(220px, .5fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefd;
  box-shadow: 0 8px 24px rgba(76, 46, 60, .05);
}

.admin-order-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-order-toolbar input,
.admin-order-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #eadfe2;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
}

.admin-order-toolbar input:focus,
.admin-order-toolbar select:focus {
  outline: 0;
  border-color: rgba(255, 127, 143, .78);
  box-shadow: 0 0 0 3px rgba(255, 127, 143, .11);
}

.admin-order-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-order-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #69515a;
  font-size: 13px;
  background: #fff1f3;
}

.admin-order-panel {
  padding: 0;
  overflow: hidden;
}

.admin-order-item {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-order-item:last-child {
  border-bottom: 0;
}

.admin-order-head,
.admin-order-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-order-head > div {
  display: grid;
  gap: 3px;
}

.admin-order-head > div > strong {
  font-size: 16px;
}

.admin-order-head > div > span,
.admin-order-details small,
.admin-order-details span {
  color: var(--muted);
  font-size: 13px;
}

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

.admin-order-details > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #faf7f8;
}

.admin-order-details strong {
  overflow-wrap: anywhere;
}

.admin-order-subline {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.admin-order-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.admin-order-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.admin-order-empty strong {
  color: var(--text);
  font-size: 19px;
}

.customer-query-page {
  min-height: 420px;
}

.service-editor-card {
  grid-column: span 2;
}

.service-admin-workspace {
  display: grid;
  gap: 14px;
}

.service-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, auto)) auto auto;
  gap: 10px;
  align-items: center;
}

.service-admin-toolbar select,
.service-search {
  min-height: 44px;
  border: 1px solid #eadde1;
  border-radius: 11px;
  background: #fffefd;
}

.service-admin-toolbar select {
  padding: 0 34px 0 12px;
  color: var(--text);
}

.service-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.service-search > span {
  color: #aa7180;
  font-size: 22px;
  line-height: 1;
}

.service-search input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.service-add-btn { white-space: nowrap; }

.service-price-mode-btn {
  min-height: 44px;
  padding-inline: 13px;
  white-space: nowrap;
}

.service-price-mode-btn.active {
  border-color: #e98b9b;
  color: #cf4f67;
  background: #fff0f2;
}

.service-bulk-bar {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border: 1px solid #eadff8;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf7ff, #fff7f8);
  box-shadow: 0 8px 24px rgba(83, 62, 113, .06);
}

.service-bulk-bar > strong {
  margin-right: 6px;
  color: #6f60c8;
}

.service-bulk-bar .ghost-btn {
  min-height: 34px;
  padding: 0 11px;
}

.service-bulk-clear {
  margin-left: auto;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.service-table-card {
  padding: 0;
  overflow: hidden;
}

.service-table-scroll {
  max-height: calc(100vh - 275px);
  min-height: 360px;
  overflow: auto;
}

.service-admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.service-admin-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.service-admin-table th {
  height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid #eadde1;
  color: #75646b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  background: #fff9fa;
}

.service-admin-table td {
  height: 62px;
  padding: 7px 12px;
  border-bottom: 1px solid #f3e9ec;
  vertical-align: middle;
}

.service-admin-table tbody tr {
  background: #fffefd;
  transition: background-color .15s ease;
}

.service-admin-table tbody tr:hover { background: #fffbfc; }
.service-admin-table tbody tr:last-child td { border-bottom: 0; }

.service-check-col {
  width: 44px;
  text-align: center;
}

.service-check-col input {
  width: 16px;
  height: 16px;
  accent-color: #e85f74;
}

.service-table-product {
  display: grid;
  min-width: 170px;
  gap: 3px;
}

.service-table-product strong {
  color: #3d3035;
  font-size: 14px;
}

.service-table-product small,
.service-original-price {
  color: var(--muted);
  font-size: 12px;
}

.service-table-tags {
  display: flex;
  max-width: 260px;
  gap: 5px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.service-table-tags .tag,
.service-zone-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.service-zone-tag {
  color: #bc5a70;
  background: #fff0f2;
}

.service-quick-value {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #3d3035;
  font-weight: 850;
  background: transparent;
  cursor: pointer;
}

.service-quick-value i {
  opacity: 0;
  color: #b47a86;
  font-size: 11px;
  font-style: normal;
  transition: opacity .15s ease;
}

.service-quick-value:hover {
  border-color: #f0d9df;
  background: #fff7f8;
}

.service-quick-value:hover i { opacity: 1; }

.service-quick-editor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-quick-editor input {
  width: 76px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #df9ba9;
  border-radius: 7px;
  outline: 0;
}

.service-quick-editor button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #e85f74;
  cursor: pointer;
}

.service-quick-editor button:last-child {
  color: #866f77;
  background: #f3edef;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.service-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.service-status.active { color: #28936b; }
.service-status.inactive { color: #9a8b90; }

.service-row-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}

.service-edit-button,
.service-more-button,
.service-delete-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #eadde1;
  border-radius: 8px;
  color: #6f5260;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.service-edit-button {
  color: #d8566d;
  border-color: #f0cbd2;
  background: #fff7f8;
}

.service-more-button span {
  margin-left: 5px;
  color: #8e737d;
  font-size: 11px;
}

.service-delete-button {
  color: #c52d43;
  border-color: #f1c7cf;
  background: #fff8f9;
}

.service-delete-button:hover {
  color: #fff;
  border-color: #c52d43;
  background: #c52d43;
}

.service-table-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--muted);
}

.service-table-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #f3e9ec;
  color: var(--muted);
  font-size: 12px;
  background: #fff9fa;
}

.service-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.service-pagination button {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #eadde1;
  border-radius: 8px;
  color: #745f67;
  background: #fff;
  cursor: pointer;
}

.service-pagination button.active {
  border-color: #e85f74;
  color: #fff;
  background: #e85f74;
}

.service-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.service-page-gap { padding: 0 3px; }

.service-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.service-page-size select {
  height: 30px;
  padding: 0 26px 0 8px;
  border: 1px solid #eadde1;
  border-radius: 8px;
  color: #745f67;
  background: #fff;
}

.service-admin-table.price-mode { min-width: 720px; }

.sidebar .nav { gap: 5px; }
.sidebar .nav-item { padding-block: 9px; }
.sidebar .side-card { padding-block: 12px; }
.sidebar .side-title { margin-bottom: 8px; }

.service-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(35, 25, 29, .28);
  backdrop-filter: blur(2px);
}

.service-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  width: min(500px, 94vw);
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid #eadde1;
  background: #fffefd;
  box-shadow: -24px 0 60px rgba(57, 38, 47, .18);
  transform: translateX(102%);
  transition: transform .2s ease;
}

.service-drawer.open { transform: translateX(0); }

.service-drawer-head {
  display: flex;
  min-height: 104px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f0e3e7;
  background: linear-gradient(135deg, #fff8f8, #faf7ff);
}

.service-drawer-head h2 { margin: 3px 0 2px; }
.service-drawer-head p { margin: 0; color: var(--muted); font-size: 13px; }
.service-drawer-head .close-btn { position: static; flex: 0 0 auto; }

.service-drawer-body {
  overflow-y: auto;
  padding: 20px 24px 28px;
}

.service-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-drawer-section {
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid #f0e3e7;
  border-radius: 11px;
  background: #fffbfc;
}

.service-drawer-section summary {
  padding: 12px 0;
  color: #5d4851;
  font-weight: 850;
  cursor: pointer;
}

.service-drawer-section[open] { padding-bottom: 12px; }
.service-drawer-section .field { margin-bottom: 0; }
.service-drawer-section textarea { min-height: 84px; resize: vertical; }

.service-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #eadde1;
  background: rgba(255, 254, 253, .97);
  box-shadow: 0 -10px 30px rgba(67, 44, 54, .06);
}

.service-drawer-footer button { min-width: 116px; }

.service-batch-panel { max-width: 460px; }
.service-batch-options { display: grid; gap: 8px; margin: 18px 0; }
.service-batch-options label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #f0e3e7;
  border-radius: 9px;
  background: #fffafb;
}

.service-delete-panel { max-width: 480px; }

.service-delete-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #c52d43;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.service-delete-panel h2 { margin: 0 36px 18px 0; }

.service-delete-warning {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #f0c6ce;
  border-radius: 12px;
  color: #74313d;
  background: #fff6f7;
}

.service-delete-warning strong {
  color: #a81f36;
  font-size: 17px;
}

.service-delete-warning span {
  color: #7f5961;
  font-size: 13px;
  line-height: 1.7;
}

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

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

.admin-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.admin-row:first-child { border-top: 0; }

.mini-input {
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.notice-editor {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.7;
}

.announcement-manager-card {
  grid-column: span 2;
}

.announcement-upload {
  width: 100%;
  margin: 8px 0 12px;
}

.announcement-upload-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.announcement-upload-preview img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

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

.announcement-admin-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.announcement-admin-row:first-child {
  border-top: 0;
}

.announcement-admin-img {
  width: 92px;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background-color: #e5eefb;
  background-position: center;
  background-size: cover;
}

.image-viewer-panel {
  width: min(920px, 96vw);
  padding: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.image-viewer-panel img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
}

.image-viewer-title {
  margin-top: 12px;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.account-panel {
  display: grid;
  gap: 16px;
  max-width: 980px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.account-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.quick-grid, .feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.quick-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.quick-grid button,
.feature-grid button,
.menu-list button {
  color: #182033;
  border-radius: 8px;
}

.quick-grid button,
.feature-grid button {
  position: relative;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 60, 104, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.quick-grid button:hover:not(:disabled),
.feature-grid button:hover:not(:disabled) {
  border-color: #4361ee;
  background: #fbfcff;
  box-shadow: 0 9px 22px rgba(67, 97, 238, .11);
  transform: translateY(-2px);
}

.quick-grid button:active:not(:disabled),
.quick-grid button.pressed,
.feature-grid button:active:not(:disabled),
.feature-grid button.pressed {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(67, 97, 238, .09);
}

.quick-grid button {
  min-height: 126px;
  display: grid;
  grid-template-rows: 44px auto 24px;
  gap: 8px;
  justify-items: center;
  align-content: center;
  padding: 16px 10px 13px;
  text-align: center;
}

.account-entry-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  color: #4361ee;
  background: #eef2ff;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.account-entry-icon--solid {
  color: #fff;
  background: #4361ee;
  box-shadow: 0 7px 16px rgba(67, 97, 238, .2);
}

.account-entry-icon--violet {
  color: #625bf6;
  background: #f0efff;
}

.account-entry-svg {
  display: block;
  width: 23px;
  height: 23px;
}

.quick-grid button:hover:not(:disabled) .account-entry-icon,
.feature-grid button:hover:not(:disabled) .account-entry-icon {
  color: #fff;
  background: #4361ee;
  box-shadow: 0 7px 16px rgba(67, 97, 238, .2);
}

.quick-grid strong,
.feature-grid strong {
  min-width: 0;
  color: #182033;
  font-size: 14px;
  line-height: 1.35;
}

.quick-grid em {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 11px;
  color: #7b8497;
  background: #f2f4f8;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
}

.quick-grid em.has-count {
  color: #fff;
  background: #4361ee;
}

.feature-grid button {
  min-height: 78px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  text-align: left;
}

.feature-grid button[data-tone="attention"]::after {
  content: '';
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8a34;
  box-shadow: 0 0 0 3px #fff4ec;
}

.menu-list {
  display: grid;
}

.menu-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 17px;
}

.menu-list button:first-child {
  border-top: 0;
}

.menu-list span {
  color: #9ca3af;
  font-size: 15px;
}

.search-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-order-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(112, 153, 199, .24);
  border-radius: 8px;
  background: rgba(239, 248, 255, .72);
}

.auth-mode-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-mode-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(47, 125, 246, .12);
}

.sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.sms-send-btn {
  min-width: 118px;
  white-space: nowrap;
}

.bound-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
}

.verified-mark {
  color: #059669;
  font-size: 13px;
  font-weight: 800;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  padding: 4px;
}

.locked-card {
  opacity: .72;
}

.password-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-editor-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(219, 234, 254, .9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 248, 255, .94), rgba(255, 255, 255, .72));
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #1d4ed8;
  font-weight: 900;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
}

.upload-btn input {
  display: none;
}

.service-image-upload { margin-bottom: 12px; }

.service-image-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.service-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}

.level-list {
  display: grid;
  gap: 14px;
}

.level-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.25fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.level-person {
  display: flex;
  gap: 14px;
  align-items: center;
}

.level-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.level-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.stepper strong {
  text-align: center;
}

.compact-switch {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .45);
  padding: 24px;
  z-index: 10;
  animation: veil-in .18s ease both;
}

.hidden { display: none !important; }

.modal-panel {
  position: relative;
  min-height: 0;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .2);
  animation: panel-in .22s ease both;
}

#detailModal .modal-panel {
  height: calc(100dvh - 48px);
}

.modal-panel.narrow {
  width: min(560px, 100%);
}

.modal-panel.medium {
  width: min(720px, 100%);
}

.order-chat-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(240px, 1fr) auto auto;
  gap: 14px;
  height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
}

.order-chat-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 34px;
}

.order-chat-heading h2,
.order-chat-heading p { margin: 3px 0 0; }

.order-chat-privacy {
  align-self: center;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.order-chat-lifecycle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
}

.order-chat-lifecycle.closed {
  border-color: #cbd5e1;
  color: #475569;
  background: #f1f5f9;
}

.order-chat-lifecycle:empty { display: none; }
.order-chat-lifecycle button { flex: 0 0 auto; }

.order-chat-members { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.order-chat-member { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #334155; background: #f1f5f9; font-size: 13px; font-weight: 800; }
.order-chat-member small { color: #64748b; font-weight: 600; }
.order-chat-member.customer { color: #1d4ed8; background: #dbeafe; }
.order-chat-member.employee { color: #047857; background: #d1fae5; }
.order-chat-member.invited { color: #9a3412; background: #ffedd5; }

.order-chat-messages { min-height: 0; overflow-y: auto; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.order-chat-empty { padding: 64px 16px; color: #94a3b8; text-align: center; }
.order-chat-message { display: grid; justify-items: start; margin: 0 0 14px; }
.order-chat-message > div { display: flex; gap: 8px; margin: 0 8px 4px; color: #64748b; font-size: 12px; }
.order-chat-message p { max-width: min(78%, 520px); margin: 0; padding: 10px 13px; border-radius: 4px 14px 14px; color: #1e293b; background: white; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); line-height: 1.6; overflow-wrap: anywhere; }
.order-chat-message.own { justify-items: end; }
.order-chat-message.own > div { flex-direction: row-reverse; }
.order-chat-message.own p { border-radius: 14px 4px 14px 14px; color: white; background: #2563eb; }
.order-chat-invite { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.order-chat-invite input,
.order-chat-composer textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; background: white; }
.order-chat-invite small { grid-column: 1 / -1; color: #64748b; }
.order-chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.order-chat-composer textarea { resize: none; }
.order-chat-entry { justify-self: start; }
.order-chat-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.order-chat-state-note { margin: 8px 0 0; color: #64748b; font-size: 13px; }

@media (max-width: 640px) {
  .order-chat-panel { height: calc(100dvh - 24px); padding: 18px; }
  .order-chat-heading { display: block; }
  .order-chat-privacy { margin-top: 8px; }
  .order-chat-invite { grid-template-columns: 1fr; }
  .order-chat-invite small { grid-column: auto; }
  .order-chat-lifecycle { align-items: flex-start; flex-direction: column; }
}

.auth-gate-brand {
  display: none;
}

body.auth-required #authModal {
  overflow: auto;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(239, 248, 255, .9), rgba(224, 240, 255, .42) 44%, rgba(255, 246, 239, .58)),
    url("./assets/auth-tech-background.png") center / cover no-repeat;
}

body.auth-required #authModal::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, .72), transparent 58%, rgba(224, 243, 255, .28));
}

body.auth-required #authModal .modal-panel {
  width: min(500px, 100%);
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 30px 90px rgba(19, 58, 108, .22);
  backdrop-filter: blur(18px);
}

body.auth-required #authModal .close-btn {
  display: none;
}

body.auth-required #authModal h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: 0;
}

body.auth-required #authModal .auth-card {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.auth-required #authModal .field input {
  border-color: rgba(112, 153, 199, .32);
  background: rgba(255, 255, 255, .88);
  min-height: 50px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.auth-required #authModal .field input:focus {
  border-color: rgba(47, 125, 246, .62);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 125, 246, .12);
}

body.auth-required #authModal .primary-btn.full {
  margin-top: 4px;
  min-height: 52px;
  border-radius: 8px;
}

body.auth-required .auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: rgba(239, 248, 255, .56);
}

body.auth-required .auth-gate-brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 25px rgba(37, 99, 235, .16);
}

body.auth-required .auth-gate-brand strong,
body.auth-required .auth-gate-brand span {
  display: block;
}

body.auth-required .auth-gate-brand strong {
  font-size: 24px;
}

body.auth-required .auth-gate-brand span {
  margin-top: 3px;
  color: #52708f;
  line-height: 1.5;
}

@keyframes veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
}

.detail-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.notice-text {
  margin-top: 14px;
  padding: 14px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.notice-link {
  display: block;
  margin: -4px 0 14px;
  padding: 0;
  border: 0;
  color: #2563eb;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  box-shadow: none !important;
}

.notice-link:hover {
  transform: none;
  text-decoration: underline;
}

.notice-panel,
.payment-panel {
  animation: soft-pop .28s cubic-bezier(.2, .92, .28, 1.12) both;
}

.notice-modal-content {
  max-height: min(62vh, 620px);
  overflow: auto;
  margin-top: 16px;
  padding: 18px;
  white-space: pre-wrap;
  line-height: 1.9;
  color: #263244;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .92)),
    radial-gradient(circle at 90% 0%, rgba(56, 189, 248, .1), transparent 30%);
}

.cancel-fee-warning {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #ef4444;
  border-radius: 10px;
  background: #fff1f2;
  color: #c81e1e;
  font-weight: 800;
  line-height: 1.65;
}

.notice-fee-warning {
  margin-bottom: 16px;
}

.cancel-order-panel h2 {
  margin: 8px 0 16px;
}

.cancel-fee-prominent {
  text-align: center;
  font-size: 18px;
}

.cancel-refund-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.cancel-refund-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cancel-refund-summary .fee strong {
  color: #dc2626;
}

.cancel-refund-summary .refund {
  padding-top: 10px;
  border-top: 1px solid #dbe3ee;
}

.cancel-refund-summary .refund strong {
  color: #047857;
  font-size: 20px;
}

.cancel-order-help {
  color: #64748b;
  line-height: 1.65;
}

.danger-btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.danger-btn:disabled {
  cursor: wait;
  opacity: .6;
}

.payment-panel {
  text-align: center;
}

.payment-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #2563eb 58%, #4f46e5);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .25);
}

.payment-summary {
  margin: 18px 0;
  padding: 16px;
  display: grid;
  gap: 8px;
  text-align: left;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 8px;
  background: #f8fbff;
}

.payment-method-picker {
  margin: 14px 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f4f7fb;
}

.payment-method-picker button {
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.payment-method-picker button:hover:not(:disabled) {
  transform: none;
  color: #0f172a;
  background: rgba(255, 255, 255, .72);
}

.payment-method-picker button.active {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.payment-method-picker button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.payment-method-picker button small {
  grid-column: 2;
  margin-top: -7px;
  color: #94a3b8;
  font-size: 11px;
}

.wechat-pay-icon,
.alipay-pay-icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.wechat-pay-icon { background: #07c160; }
.alipay-pay-icon { background: #1677ff; }

.payment-qr-stage {
  width: min(100%, 280px);
  margin: 16px auto;
  padding: 14px;
  display: grid;
  gap: 7px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.payment-qr-stage img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.payment-qr-stage strong {
  color: #0f172a;
  font-size: 15px;
}

.payment-qr-stage span {
  color: #94a3b8;
  font-size: 12px;
}

.payment-qr-shell {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(244, 114, 182, .28);
  border-radius: 8px;
  color: #64748b;
  background: #fffafd;
  box-shadow: 0 14px 34px rgba(244, 114, 182, .12);
}

.payment-qr-shell:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, .45);
}

.payment-qr {
  width: 100%;
  height: min(38vh, 320px);
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.payment-qr-shell span {
  font-size: 13px;
  font-weight: 800;
}

.payment-help {
  margin: 14px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.payment-status-text {
  min-height: 44px;
  margin: 14px 0;
  padding: 11px 13px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.payment-status-text.is-working {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.payment-status-text.is-success {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}

.payment-status-text.is-error {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.payment-reference {
  margin-bottom: 16px;
  text-align: left;
}

.payment-review-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  line-height: 1.65;
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #b45309;
  font-weight: 800;
}

.rating-summary span {
  color: var(--muted);
  font-weight: 500;
}

.rating-stars {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
}

.rating-stars button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #cbd5e1;
  font-size: 28px;
  line-height: 1;
}

.rating-stars button.active {
  color: #f59e0b;
  border-color: #fde68a;
  background: #fffbeb;
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-weight: 700;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.summary-card {
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.agree-row, .switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  color: white;
  background: #111827;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 20;
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nav-item { text-align: center; }
  .service-category-grid, .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-module-grid,
  .admin-order-toolbar,
  .admin-order-details {
    grid-template-columns: 1fr 1fr;
  }
  .service-editor-card {
    grid-column: span 2;
  }
  .announcement-manager-card {
    grid-column: span 2;
  }
  .service-admin-toolbar {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, auto));
  }
  .service-admin-toolbar #adminServiceSort {
    grid-column: 1 / 3;
  }
  .service-add-btn {
    width: 100%;
  }
  .form-grid, .auth-grid, .quick-grid, .feature-grid, .level-controls {
    grid-template-columns: 1fr 1fr;
  }
  .hero-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main, .sidebar { padding: 18px; }
  .topbar, .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    grid-template-columns: 1fr 1fr;
  }
  .service-category-grid, .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-module-grid,
  .admin-order-toolbar,
  .admin-order-details {
    grid-template-columns: 1fr;
  }
  .admin-order-toolbar .ghost-btn {
    width: 100%;
  }
  .admin-order-head,
  .admin-order-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-editor-card {
    grid-column: span 1;
  }
  .announcement-manager-card {
    grid-column: span 1;
  }
  .service-admin-toolbar {
    grid-template-columns: 1fr;
  }
  .service-admin-toolbar #adminServiceSort {
    grid-column: auto;
  }
  .service-bulk-bar {
    align-items: stretch;
  }
  .service-bulk-bar > strong {
    width: 100%;
  }
  .service-bulk-clear {
    margin-left: 0;
  }
  .service-table-scroll {
    max-height: calc(100dvh - 270px);
    min-height: 320px;
  }
  .service-table-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-drawer {
    width: 100vw;
  }
  .service-drawer-head,
  .service-drawer-body,
  .service-drawer-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .service-drawer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid, .auth-grid, .account-row, .quick-grid, .feature-grid, .level-card, .level-controls {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-identity,
  .profile-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .announcement-admin-row,
  .announcement-upload-preview {
    grid-template-columns: 1fr;
  }
  .announcement-admin-img,
  .announcement-upload-preview img {
    width: 100%;
    height: 120px;
  }
  .player-card, .order-main, .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero-band h2 {
    font-size: 26px;
  }
  .game-filter {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .game-filter button {
    min-width: 0;
    padding-inline: 8px;
  }
}
.force-join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.force-join-row select {
  min-width: 0;
}

.compact-field {
  margin-top: 12px;
}

@media (max-width: 680px) {
  .force-join-row {
    grid-template-columns: 1fr;
  }
}

/* Polished account entry experience */
.auth-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #20334d;
  background: #f4f8fc;
}

body.auth-booting {
  overflow: hidden;
}

body.auth-booting .auth-boot-screen {
  display: grid;
}

body.auth-booting .app-shell,
body.auth-booting #authModal {
  visibility: hidden;
}

.auth-boot-screen img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(47, 125, 246, .16);
}

.auth-boot-screen strong {
  font-size: 20px;
  letter-spacing: 0;
}

.auth-boot-spinner,
.button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(47, 125, 246, .2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-modal {
  overflow: auto;
  background: rgba(225, 235, 246, .7);
  backdrop-filter: blur(8px);
}

body.auth-required #authModal {
  align-items: center;
  background:
    linear-gradient(118deg, rgba(245, 250, 255, .94), rgba(235, 244, 252, .84) 56%, rgba(255, 239, 244, .68)),
    url("./assets/auth-tech-background.png") center / cover no-repeat;
}

body.auth-required #authModal::before {
  background: rgba(255, 255, 255, .22);
}

.auth-modal .auth-panel,
body.auth-required #authModal .auth-panel {
  width: min(480px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(174, 197, 222, .46);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px rgba(31, 60, 96, .16);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

.auth-modal .auth-gate-brand,
body.auth-required .auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #e8eef5;
  border-radius: 0;
  background: transparent;
}

.auth-modal .auth-gate-brand img,
body.auth-required .auth-gate-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(47, 125, 246, .14);
}

.auth-modal .auth-gate-brand strong,
.auth-modal .auth-gate-brand span {
  display: block;
}

.auth-modal .auth-gate-brand strong,
body.auth-required .auth-gate-brand strong {
  font-size: 20px;
  line-height: 1.25;
}

.auth-modal .auth-gate-brand span,
body.auth-required .auth-gate-brand span {
  margin-top: 3px;
  color: #6b7d91;
  font-size: 13px;
  line-height: 1.45;
}

.auth-panel-view {
  animation: auth-view-in .2s ease both;
}

.auth-heading {
  margin-bottom: 18px;
}

.auth-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.auth-modal .auth-heading h2,
body.auth-required #authModal .auth-heading h2 {
  margin: 0;
  color: #18263a;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
}

.auth-modal .auth-card,
body.auth-required #authModal .auth-card,
#bindPhoneForm {
  display: grid;
  gap: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-mode-tabs {
  gap: 5px;
  margin-bottom: 18px;
  padding: 4px;
  border-color: #dce6f1;
  background: #f3f7fb;
}

.auth-mode-tabs button {
  min-height: 42px;
  color: #6a7b8f;
  font-weight: 700;
}

.auth-mode-tabs button.active {
  color: #1e67d8;
  box-shadow: 0 5px 14px rgba(34, 91, 164, .1);
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-label {
  color: #34445a;
  font-size: 14px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  min-width: 24px;
  color: #7e91a7;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

.auth-modal .auth-input-wrap input,
body.auth-required #authModal .auth-input-wrap input,
#bindPhoneForm .auth-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px 12px 50px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  color: #172033;
  background: #fbfdff;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-modal .auth-input-wrap.has-action input {
  padding-right: 66px;
}

.auth-modal .auth-input-wrap:hover input {
  border-color: #b8c8d9;
  background: #fff;
}

#bindPhoneForm .auth-input-wrap:hover input {
  border-color: #b8c8d9;
  background: #fff;
}

.auth-modal .auth-input-wrap:focus-within input,
body.auth-required #authModal .auth-input-wrap:focus-within input,
#bindPhoneForm .auth-input-wrap:focus-within input {
  border-color: rgba(47, 125, 246, .72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 125, 246, .1);
}

.auth-modal .auth-input-wrap:focus-within .auth-input-icon {
  color: #2f7df6;
}

.password-toggle {
  position: absolute;
  right: 8px;
  min-width: 50px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #52708f;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.password-toggle:hover {
  color: #1e67d8;
  background: #eff6ff;
  box-shadow: none !important;
  transform: none !important;
}

.auth-field.has-error .auth-input-wrap input {
  border-color: #dc6b74;
  box-shadow: 0 0 0 3px rgba(220, 74, 87, .08);
  animation: auth-error-nudge .2s ease;
}

.auth-field-error {
  min-height: 0;
  color: #c83b49;
  font-size: 12px;
  line-height: 1.45;
}

.auth-field-error:not(:empty) {
  min-height: 18px;
}

.auth-options,
.remember-row {
  display: flex;
  align-items: center;
}

.auth-options {
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.remember-row {
  gap: 8px;
  color: #63758a;
  font-size: 13px;
  cursor: pointer;
}

.remember-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.auth-modal .link-btn {
  color: #216bd7;
  font-size: 13px;
  font-weight: 700;
}

.auth-modal .link-btn:hover {
  color: #184fa1;
  box-shadow: none;
  transform: none;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border-radius: 8px;
  background: #2f7df6;
  box-shadow: 0 10px 24px rgba(47, 125, 246, .18);
  font-weight: 800;
}

.auth-submit:not(:disabled):hover {
  background: #286fdf;
  box-shadow: 0 12px 26px rgba(47, 125, 246, .24);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-submit .button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, .38);
  border-top-color: #fff;
}

.auth-submit.is-loading .button-spinner {
  display: block;
}

.auth-form-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #f2c5c9;
  border-radius: 8px;
  color: #9f2935;
  background: #fff7f8;
  font-size: 13px;
  line-height: 1.5;
}

.auth-form-status .link-btn {
  flex: 0 0 auto;
  padding: 0;
}

.auth-form-status:not(.is-network-error) .link-btn {
  display: none;
}

.auth-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: -2px 0 20px;
  color: #8998a9;
  font-size: 11px;
}

.auth-progress span.active {
  color: #216bd7;
  font-weight: 800;
}

.auth-progress i {
  height: 1px;
  background: #dce5ee;
}

.auth-inline-note {
  margin: -2px 0 0;
  color: #6b7d91;
  font-size: 12px;
  line-height: 1.6;
}

.phone-bind-reminder {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 9px;
  padding: 18px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(35, 68, 108, .18);
  animation: auth-view-in .22s ease both;
}

.phone-bind-reminder.hidden {
  display: none;
}

.phone-bind-reminder strong {
  color: #18263a;
  font-size: 16px;
}

.phone-bind-reminder > span {
  padding-right: 16px;
  color: #63758a;
  font-size: 13px;
  line-height: 1.6;
}

.phone-bind-reminder > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-bind-reminder .primary-btn {
  min-height: 40px;
  padding: 8px 18px;
}

.phone-bind-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #748397;
  background: transparent;
  font-size: 22px;
}

.phone-bind-dismiss:hover {
  color: #34445a;
  background: #f0f5fa;
  box-shadow: none;
  transform: none;
}

.sms-code-row {
  align-items: stretch;
}

.sms-code-row .auth-input-wrap {
  min-width: 0;
}

.sms-send-btn {
  min-width: 116px;
  border: 1px solid #c8d8eb;
  color: #216bd7;
  background: #f2f7fd;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.sms-send-btn:not(:disabled):hover {
  border-color: #9fbee4;
  background: #eaf3fd;
  box-shadow: none;
}

.auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
  font-size: 13px;
}

.auth-wheel-entry {
  margin: 18px 0 0;
  text-align: center;
}

.auth-wheel-entry a {
  display: inline-block;
  text-underline-offset: 3px;
}

.auth-success {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  animation: auth-view-in .2s ease both;
}

.auth-success-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #14a673;
  box-shadow: 0 12px 28px rgba(20, 166, 115, .22);
  font-size: 26px;
  animation: auth-success-in .26s ease both;
}

.auth-success strong {
  color: #172033;
  font-size: 20px;
}

.auth-success small {
  color: #748397;
}

.auth-form-status.is-success {
  border-color: #b7dfcd;
  background: #f1faf6;
  color: #267053;
}

.auth-form-status.is-success .link-btn {
  display: none;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-view-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-error-nudge {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(2px); }
}

@keyframes auth-success-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .auth-modal {
    padding: 12px;
    align-items: start;
  }

  .auth-modal .auth-panel,
  body.auth-required #authModal .auth-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .auth-modal .auth-heading h2,
  body.auth-required #authModal .auth-heading h2 {
    font-size: 21px;
  }

  .auth-modal .auth-input-wrap input,
  body.auth-required #authModal .auth-input-wrap input,
  #bindPhoneForm .auth-input-wrap input,
  .auth-submit {
    min-height: 50px;
  }

  .sms-code-row {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 8px;
  }

  .sms-send-btn {
    min-width: 0;
    padding-inline: 8px;
  }

  .auth-progress {
    font-size: 10px;
  }

  .phone-bind-reminder {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel-view,
  .auth-success,
  .auth-success-mark,
  .auth-field.has-error .auth-input-wrap input,
  .auth-boot-spinner,
  .button-spinner {
    animation: none;
  }
}

/* Unified customer journey */
.primary-btn {
  min-height: 44px;
  background: #3678e5;
  box-shadow: 0 8px 18px rgba(54, 120, 229, .18);
}

.secondary-btn {
  min-height: 42px;
  border: 1px solid #ccdaf1;
  color: #245da9;
  background: #f4f8fe;
}

.ghost-btn {
  min-height: 42px;
}

.customer-hero {
  min-height: 330px;
  padding: 38px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  border: 1px solid #dfe7f2;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(29, 50, 84, .08);
}

.hero-copy {
  max-width: 720px;
}

.customer-hero h2 {
  max-width: 680px;
  margin: 12px 0 16px;
  font-size: 44px;
  line-height: 1.14;
}

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

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

.hero-actions .primary-btn,
.hero-actions .ghost-btn {
  min-width: 132px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #526278;
  font-size: 14px;
}

.hero-points span::before {
  content: "✓";
  margin-right: 6px;
  color: #17805c;
  font-weight: 900;
}

.customer-hero .announcement-board {
  min-height: 250px;
}

.customer-hero .announcement-main {
  min-height: 210px;
}

.home-section {
  padding: 28px 0;
  scroll-margin-top: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: #3678e5;
  font-size: 13px;
  font-weight: 800;
}

.section-note {
  color: var(--muted);
  font-size: 14px;
}

.service-category-grid {
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  box-shadow: 0 9px 24px rgba(29, 50, 84, .07);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #b9ccec;
  box-shadow: 0 16px 34px rgba(29, 50, 84, .12);
}

.service-cover {
  height: 180px;
  background: #edf2f8;
}

.service-cover img {
  opacity: 1;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.service-name {
  min-height: 0;
  font-size: 18px;
}

.service-description {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 0;
  overflow: hidden;
  color: #647286;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-suffix {
  color: #7b8797;
  font-size: 13px;
}

.service-eta {
  margin-bottom: 16px;
  color: #5c6b7e;
  font-size: 13px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}

.availability {
  color: #8a94a4;
  font-size: 13px;
}

.availability.available {
  color: #17785a;
}

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

.trust-grid article {
  padding: 20px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
}

.trust-grid article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #285f9f;
  background: #edf5ff;
  font-weight: 900;
}

.trust-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.trust-grid p {
  color: #68778a;
  font-size: 14px;
  line-height: 1.7;
}

.process-section {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 12px 24px 12px 0;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  right: 8px;
  width: 26px;
  height: 1px;
  content: "";
  background: #cbd5e1;
}

.process-list b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #3678e5;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 5px;
  color: #6a788a;
  font-size: 13px;
  line-height: 1.5;
}

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

.faq-list details {
  border-bottom: 1px solid #e1e7ef;
  background: #fff;
}

.faq-list summary {
  padding: 17px 4px;
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  padding: 0 4px 18px;
  color: #667488;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 26px 0 8px;
  border-top: 1px solid #dfe5ed;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
  align-items: start;
  gap: 28px;
}

.detail-content {
  min-width: 0;
}

.detail-img {
  aspect-ratio: 16 / 7;
  margin-bottom: 20px;
}

.detail-intro {
  margin-top: 10px;
  color: #627186;
  line-height: 1.75;
}

.fixed-tier-picker {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #f7faff;
}

.fixed-tier-picker > span {
  color: #26364c;
  font-size: 14px;
  font-weight: 800;
}

.fixed-tier-picker select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd8eb;
  border-radius: 8px;
  color: #182033;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.fixed-tier-picker select:focus {
  border-color: #5f8fdf;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, .11);
  outline: 0;
}

.fixed-tier-picker small {
  color: #7b8497;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.field-hint {
  color: #7b8497;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.detail-info-grid div {
  padding: 13px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fafbfd;
}

.detail-info-grid span,
.detail-info-grid strong {
  display: block;
}

.detail-info-grid span {
  margin-bottom: 5px;
  color: #7a8798;
  font-size: 12px;
}

.detail-info-grid strong {
  font-size: 14px;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin-bottom: 10px;
}

.detail-section p {
  color: #637186;
  line-height: 1.75;
}

.detail-order-card {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 46, 78, .09);
}

.detail-order-card > span,
.detail-order-card > p {
  color: #718095;
  font-size: 13px;
  line-height: 1.6;
}

.detail-price-line,
.detail-total,
.payment-order-line,
.payment-method,
.payment-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.detail-price-line {
  color: #627084;
  font-size: 14px;
}

.detail-total {
  padding-top: 12px;
  border-top: 1px solid #e4e9ef;
}

.detail-total strong {
  color: #d64a4a;
  font-size: 22px;
}

.checkout-panel {
  width: min(820px, 100%);
  padding: 28px;
}

.checkout-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 38px 26px 0;
  color: #96a0ad;
  font-size: 12px;
}

.checkout-progress i {
  height: 1px;
  background: #d7dee8;
}

.checkout-progress span.done,
.checkout-progress span.active {
  color: #2e6fcc;
  font-weight: 800;
}

.checkout-progress span.done + i {
  background: #79a5e8;
}

.checkout-progress.compact {
  margin-right: 22px;
  font-size: 10px;
}

.checkout-heading {
  margin-bottom: 18px;
}

.checkout-heading h2 {
  margin-bottom: 8px;
}

.checkout-heading p {
  color: #6d7a8b;
  line-height: 1.6;
}

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

.checkout-panel .field em {
  color: #8a96a6;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.checkout-panel .field input,
.checkout-panel .field select,
.checkout-panel .field textarea {
  min-height: 48px;
  background: #fff;
}

.checkout-panel .field input:focus,
.checkout-panel .field select:focus,
.checkout-panel .field textarea:focus {
  border-color: #6c9ee9;
  box-shadow: 0 0 0 3px rgba(54, 120, 229, .12);
  outline: none;
}

.checkout-panel .summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e0e6ef;
  background: #f8fafc;
}

.checkout-panel .summary-card span,
.checkout-panel .summary-card strong {
  display: block;
}

.checkout-panel .summary-card span {
  margin-top: 4px;
  color: #778497;
  font-size: 12px;
}

.field-error {
  min-height: 18px;
  color: #b43b49;
  font-size: 12px;
  font-weight: 500;
}

.checkout-submit {
  margin-top: 8px;
}

.order-confirm-summary {
  display: grid;
  gap: 14px;
}

.order-confirm-summary section {
  padding: 16px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.order-confirm-summary h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.order-confirm-summary section > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  color: #657388;
  font-size: 14px;
}

.order-confirm-summary section > div strong {
  max-width: 60%;
  color: #243247;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-confirm-summary .confirm-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e1e6ed;
}

.order-confirm-summary .confirm-total strong {
  color: #d64a4a;
  font-size: 24px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: 20px;
}

.payment-summary {
  gap: 12px;
  border-color: #dfe6ef;
  background: #fafbfd;
}

.payment-order-line,
.payment-method {
  color: #657388;
  font-size: 14px;
}

.payment-order-line strong,
.payment-method strong {
  max-width: 64%;
  color: #243247;
  text-align: right;
}

.payment-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #dfe5ed;
}

.payment-total strong {
  color: #d64a4a;
  font-size: 28px;
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.success-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #29966c;
  font-size: 30px;
  font-weight: 900;
}

.success-panel > p {
  color: #667589;
  line-height: 1.6;
}

.payment-success-summary {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #f8fafc;
}

.payment-success-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  color: #6b788a;
  font-size: 14px;
}

.payment-success-summary strong {
  color: #253348;
}

.order-list {
  max-width: 980px;
}

.order-card {
  padding: 20px;
  border-color: #dfe5ed;
  box-shadow: 0 8px 22px rgba(29, 50, 84, .06);
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-service-label,
.order-card-head small {
  display: block;
}

.order-service-label {
  font-size: 17px;
  font-weight: 800;
}

.order-card-head small {
  margin-top: 5px;
  color: #7d8998;
}

.order-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: #935d13;
  background: #fff7e8;
  font-size: 12px;
  font-weight: 800;
}

.order-status.status-running {
  color: #235fae;
  background: #edf5ff;
}

.order-status.status-completed {
  color: #197554;
  background: #edf9f3;
}

.order-main {
  grid-template-columns: 1fr auto;
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

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

.order-facts span,
.order-facts strong {
  display: block;
}

.order-facts span {
  margin-bottom: 3px;
  color: #8993a1;
  font-size: 12px;
}

.order-facts strong {
  font-size: 14px;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 4px 0;
}

.order-timeline > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9aa3af;
  text-align: center;
  font-size: 12px;
}

.order-timeline > div:not(:last-child)::after {
  position: absolute;
  top: 13px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 1px;
  content: "";
  background: #dce2e9;
}

.order-timeline i {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1f5;
  font-style: normal;
}

.order-timeline .done,
.order-timeline .current {
  color: #2e6fcc;
}

.order-timeline .done i,
.order-timeline .current i {
  color: #fff;
  background: #4380da;
}

.order-timeline small {
  min-height: 16px;
  font-size: 10px;
}

.order-team {
  color: #7b8796;
  font-size: 13px;
}

.order-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 260px;
  padding: 42px 20px;
  border: 1px dashed #cfd8e5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.order-empty-state > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #3678e5;
  background: #eef5ff;
  font-weight: 900;
}

.order-empty-state p {
  margin-bottom: 8px;
  color: #768396;
}

.support-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
}

body.auth-required .support-dock,
body.auth-booting .support-dock {
  display: none;
}

body:has(.modal:not(.hidden)) .support-dock {
  display: none;
}

.support-dock-button {
  min-width: 104px;
  min-height: 44px;
  border: 1px solid #c9d7eb;
  border-radius: 8px;
  color: #245da9;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(30, 53, 89, .14);
}

.support-dock-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  display: grid;
  width: 238px;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(25, 45, 77, .18);
}

.support-dock-panel span {
  color: #718095;
  font-size: 13px;
}

.support-dock-panel a,
.support-dock-panel button {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  color: #2a5f9f;
  background: #f8fafc;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
}

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

  .trust-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 12px 14px;
  }

  .brand-block {
    gap: 10px;
    margin-bottom: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub,
  .side-card {
    display: none;
  }

  .nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .page-heading {
    width: 100%;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .profile-chip {
    width: 100%;
  }

  .customer-hero {
    min-height: 0;
    padding: 24px 20px;
  }

  .customer-hero h2 {
    font-size: 30px;
  }

  .customer-hero p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    min-width: 0;
  }

  .hero-points {
    gap: 10px 14px;
  }

  .home-section {
    padding: 22px 0;
  }

  .trust-grid,
  .process-list,
  .checkout-form-grid,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .process-list li::after {
    display: none;
  }

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

  .detail-img {
    aspect-ratio: 16 / 9;
  }

  .detail-order-card {
    position: static;
    margin-top: 18px;
    padding: 16px;
    box-shadow: none;
  }

  .checkout-panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
  }

  #detailModal .modal-panel {
    height: calc(100dvh - 20px);
  }

  .checkout-progress {
    margin-right: 34px;
    gap: 4px;
    font-size: 9px;
  }

  .checkout-progress.compact {
    margin-right: 30px;
  }

  .checkout-panel .field input,
  .checkout-panel .field select,
  .checkout-panel .field textarea {
    font-size: 16px;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .order-card-head,
  .site-footer {
    align-items: flex-start;
  }

  .order-main {
    grid-template-columns: 1fr;
  }

  .order-facts {
    grid-template-columns: 1fr 1fr;
  }

  .order-price {
    font-size: 25px;
  }

  .order-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-timeline > div {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    min-height: 54px;
    text-align: left;
  }

  .order-timeline > div:not(:last-child)::after {
    top: 28px;
    left: 13px;
    width: 1px;
    height: 28px;
  }

  .order-timeline small {
    grid-column: 2;
    margin-top: -12px;
  }

  .support-dock {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .support-dock-panel {
    width: min(260px, calc(100vw - 28px));
  }
}

/* Limi Esports strawberry-milk theme preview (2026-10-02) */
:root {
  --bg: #fff9f8;
  --panel: #fffefd;
  --ink: #282331;
  --muted: #786f7b;
  --line: #f1e6e8;
  --blue: #ff7f8f;
  --cyan: #9a8cff;
  --red: #ed6074;
  --green: #3a9c78;
  --amber: #d9a83f;
  --brand-coral: #ff7f8f;
  --brand-coral-hover: #f36f82;
  --brand-violet: #9a8cff;
  --brand-yellow: #ffd76a;
  --warm-sidebar: #191725;
  --shadow: 0 8px 30px rgba(76, 46, 60, .06);
}

body {
  background:
    radial-gradient(circle at 96% 6%, rgba(255, 141, 154, .09) 0 9%, transparent 25%),
    radial-gradient(circle at 8% 94%, rgba(154, 140, 255, .07) 0 8%, transparent 24%),
    #fff9f8;
}

body.auth-required {
  background: #fff9f8;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: rgba(255, 127, 143, .24);
}

.sidebar {
  background: #191725;
  box-shadow: 12px 0 36px rgba(40, 28, 45, .08);
}

.brand-logo {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.brand-name {
  color: #fffafb;
}

.brand-sub,
.side-text {
  color: #c9bfce;
}

.nav-item {
  color: #d6ceda;
  border-radius: 12px;
}

.nav-item:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.nav-item.active {
  color: #fff;
  background: #ff7f8f;
  box-shadow: 0 9px 24px rgba(255, 127, 143, .24);
}

.side-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}

.main {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.main::before,
.main::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.main::before {
  top: 0;
  right: 0;
  width: min(430px, 42vw);
  height: min(390px, 44vh);
  opacity: .48;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 215, 106, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 44%, rgba(255, 127, 143, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 30%, rgba(154, 140, 255, .18) 0 3px, transparent 4px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(236, 184, 198, .14) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(236, 184, 198, .14) 30px 31px);
  mask-image: linear-gradient(135deg, transparent 10%, #000 54%, #000 100%);
}

.main::after {
  left: 280px;
  bottom: 0;
  width: 340px;
  height: 300px;
  opacity: .62;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 141, 154, .14) 0 52px, transparent 53px),
    radial-gradient(circle at 42% 98%, rgba(255, 215, 106, .12) 0 78px, transparent 79px),
    radial-gradient(circle at 74% 90%, rgba(154, 140, 255, .1) 0 44px, transparent 45px);
}

.eyebrow,
.section-kicker,
.hero-kicker {
  color: #e85f74;
}

.history-btn,
.profile-chip {
  border-color: #f0e3e6;
  border-radius: 12px;
  background: rgba(255, 254, 253, .94);
  box-shadow: 0 6px 20px rgba(76, 46, 60, .045);
}

.avatar-badge {
  border-color: #ffe1e5;
  box-shadow: 0 10px 26px rgba(216, 89, 111, .12);
}

.primary-btn,
.auth-submit,
.plus-btn {
  color: #fff;
  border-color: transparent;
  background: #ff7f8f;
  box-shadow: 0 8px 20px rgba(226, 86, 110, .18);
}

.primary-btn:not(:disabled):hover,
.auth-submit:not(:disabled):hover,
.plus-btn:not(:disabled):hover {
  background: #f36f82;
  box-shadow: 0 11px 24px rgba(226, 86, 110, .23);
}

.secondary-btn {
  color: #6f60c8;
  border-color: #ded8fa;
  background: #f6f3ff;
}

.ghost-btn,
.segment button {
  color: #736a78;
  border-color: #eddee2;
  background: #fffefd;
}

.ghost-btn:hover:not(:disabled),
.segment button:hover:not(:disabled) {
  color: #dd5b70;
  border-color: #f2a5b1;
  background: #fff8f8;
}

.segment button.active,
.game-filter button.active {
  color: #fff;
  border-color: #ff7f8f;
  background: #ff7f8f;
  box-shadow: 0 7px 18px rgba(226, 86, 110, .18);
}

.game-filter {
  border-color: #f0e2e5;
  background: rgba(255, 254, 253, .92);
  box-shadow: 0 8px 22px rgba(76, 46, 60, .05);
}

.customer-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(237, 215, 220, .8);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(255, 254, 253, .98) 0 58%, rgba(255, 241, 243, .72) 58% 100%);
  box-shadow: 0 12px 38px rgba(76, 46, 60, .065);
}

.customer-hero::before {
  position: absolute;
  top: -84px;
  right: -48px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 127, 143, .16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 34px rgba(255, 215, 106, .045),
    0 0 0 76px rgba(154, 140, 255, .035);
  pointer-events: none;
}

.customer-hero::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 150px;
  height: 104px;
  content: "";
  opacity: .6;
  background:
    radial-gradient(circle, rgba(255, 127, 143, .22) 0 2px, transparent 3px) 0 0 / 24px 24px;
  mask-image: linear-gradient(135deg, transparent, #000);
  pointer-events: none;
}

.hero-copy,
.customer-hero .announcement-board {
  position: relative;
  z-index: 1;
}

.hero-points span::before {
  color: #e85f74;
}

.announcement-main,
.announcement-thumb,
.announcement-empty {
  border-radius: 14px;
}

.announcement-main,
.customer-hero .announcement-main {
  box-shadow: 0 12px 30px rgba(76, 46, 60, .11);
}

.announcement-main.notice-announcement,
.announcement-main.info-announcement {
  border-color: #eadce3;
  background:
    radial-gradient(circle at 86% 15%, rgba(255, 215, 106, .22), transparent 28%),
    linear-gradient(135deg, #fff8f7, #f7f2ff);
}

.notice-thumb,
.info-thumb {
  color: #d8566d;
  background: #fff3f4;
}

.service-card,
.player-card,
.order-card,
.admin-card,
.notice-card,
.account-section,
.trust-grid article,
.modal-panel,
.summary-card,
.payment-success-summary,
.order-empty-state {
  border-color: #f1e6e8;
  border-radius: 16px;
  background-color: #fffefd;
  box-shadow: 0 8px 30px rgba(76, 46, 60, .06);
}

.service-card {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(76, 46, 60, .06);
}

.service-card:hover,
.player-card:hover,
.order-card:hover {
  border-color: #f2b8c1;
  box-shadow: 0 14px 34px rgba(76, 46, 60, .1);
  transform: translateY(-3px);
}

.service-cover,
.service-empty-state {
  background: #fff2f1;
}

.price {
  color: #ed6074;
}

.service-card-footer,
.order-main,
.site-footer,
.process-section,
.faq-list details,
.menu-list button,
.payment-success-summary,
.order-card {
  border-color: #f1e6e8;
}

.tag,
.timeline span.done {
  color: #6f60c8;
  background: #f2efff;
}

.trust-grid article > span,
.account-entry-icon,
.order-empty-state > span {
  color: #e85f74;
  background: #fff0f2;
}

.process-list b,
.order-timeline .done i,
.order-timeline .current i {
  background: #ff7f8f;
}

.order-timeline .done,
.order-timeline .current {
  color: #dc5a70;
}

.quick-grid button,
.feature-grid button {
  border-color: #f1e6e8;
  background: #fffefd;
  box-shadow: 0 4px 16px rgba(76, 46, 60, .04);
}

.quick-grid button:hover:not(:disabled),
.feature-grid button:hover:not(:disabled) {
  border-color: #ff9ca9;
  background: #fffafa;
  box-shadow: 0 10px 26px rgba(226, 86, 110, .1);
}

.account-entry-icon--solid,
.quick-grid button:hover:not(:disabled) .account-entry-icon,
.feature-grid button:hover:not(:disabled) .account-entry-icon,
.quick-grid em.has-count {
  color: #fff;
  background: #ff7f8f;
  box-shadow: 0 7px 16px rgba(226, 86, 110, .18);
}

.account-entry-icon--violet {
  color: #7768d9;
  background: #f2efff;
}

.feature-grid button[data-tone="attention"]::after {
  background: #ffd76a;
  box-shadow: 0 0 0 3px #fff7dc;
}

.field input,
.field textarea,
.field select,
.search-input,
.auth-modal .auth-input-wrap input,
body.auth-required #authModal .auth-input-wrap input,
#bindPhoneForm .auth-input-wrap input {
  border-color: #eadfe2;
  color: #282331;
  background: #fffefd;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus,
.auth-modal .auth-input-wrap:focus-within input,
body.auth-required #authModal .auth-input-wrap:focus-within input,
#bindPhoneForm .auth-input-wrap:focus-within input {
  border-color: rgba(255, 127, 143, .78);
  box-shadow: 0 0 0 3px rgba(255, 127, 143, .11);
}

.modal {
  background: rgba(33, 27, 40, .44);
}

.modal-panel {
  border: 1px solid #f0e2e5;
  box-shadow: 0 30px 72px rgba(48, 29, 40, .18);
}

.close-btn {
  color: #695f6c;
  border-radius: 10px;
  background: #fff3f4;
}

.notice-modal-content,
.payment-summary,
.payment-status-text,
.notice-text,
.compact-switch {
  border-color: #eee1e5;
  background: #fffafa;
}

.payment-mark {
  background: #ff7f8f;
  box-shadow: 0 16px 34px rgba(226, 86, 110, .22);
}

.payment-method-picker {
  border-color: #eadfe2;
  background: #faf5f7;
}

.payment-method-picker button.active {
  border-color: #f1c3ca;
  background: #fffefd;
  box-shadow: 0 4px 12px rgba(76, 46, 60, .06);
}

.payment-qr-stage,
.payment-qr-shell {
  border-color: #eedde2;
  border-radius: 14px;
  background: #fffefd;
  box-shadow: 0 12px 30px rgba(76, 46, 60, .075);
}

.support-dock-button {
  color: #fff;
  border-color: #ff7f8f;
  border-radius: 14px;
  background: #ff7f8f;
  box-shadow: 0 12px 28px rgba(226, 86, 110, .2);
}

.support-dock-panel {
  border-color: #f0e2e5;
  border-radius: 14px;
  background: #fffefd;
  box-shadow: 0 18px 44px rgba(76, 46, 60, .14);
}

.support-dock-panel a,
.support-dock-panel button {
  color: #d6556c;
  border-color: #f1e2e5;
  border-radius: 10px;
  background: #fff8f8;
}

.auth-boot-screen {
  color: #342d3a;
  background: #fff9f8;
}

.auth-boot-screen img,
.auth-modal .auth-gate-brand img,
body.auth-required .auth-gate-brand img {
  box-shadow: 0 12px 28px rgba(226, 86, 110, .15);
}

.auth-boot-spinner,
.button-spinner {
  border-color: rgba(255, 127, 143, .2);
  border-top-color: #ff7f8f;
}

.auth-modal,
body.auth-required #authModal {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 127, 143, .11) 0 10%, transparent 28%),
    radial-gradient(circle at 7% 94%, rgba(154, 140, 255, .08) 0 9%, transparent 27%),
    #fff9f8;
  backdrop-filter: none;
}

body.auth-required #authModal::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(236, 184, 198, .1) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(236, 184, 198, .1) 38px 39px);
  mask-image: linear-gradient(135deg, transparent 32%, rgba(0, 0, 0, .55));
}

.auth-modal .auth-panel,
body.auth-required #authModal .auth-panel {
  border-color: #f0e1e5;
  border-radius: 18px;
  background: #fffefd;
  box-shadow: 0 26px 66px rgba(76, 46, 60, .13);
  backdrop-filter: none;
}

.auth-kicker,
.auth-modal .link-btn,
.auth-modal .auth-input-wrap:focus-within .auth-input-icon {
  color: #df5d72;
}

.auth-mode-tabs {
  border-color: #efe1e4;
  background: #faf5f6;
}

.auth-mode-tabs button.active {
  color: #db5970;
  background: #fffefd;
  box-shadow: 0 5px 14px rgba(76, 46, 60, .07);
}

.password-toggle:hover {
  color: #dc5a70;
  background: #fff0f2;
}

.remember-row input {
  accent-color: #ff7f8f;
}

@media (max-width: 980px) {
  .main::after {
    left: 0;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 100% 0, rgba(255, 141, 154, .08), transparent 26%),
      #fff9f8;
  }

  .sidebar {
    box-shadow: 0 10px 28px rgba(40, 28, 45, .12);
  }

  .nav-item {
    border-radius: 10px;
  }

  .main::before {
    width: 72vw;
    height: 250px;
    opacity: .35;
  }

  .main::after {
    display: none;
  }

  .customer-hero {
    border-radius: 16px;
    background: #fffefd;
  }

  .customer-hero::before,
  .customer-hero::after {
    opacity: .45;
  }
}
