:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #f9fafc;
  --text: #1d2433;
  --muted: #687386;
  --line: #dfe5ef;
  --brand: #ff6b35;
  --brand-dark: #e55522;
  --blue: #315fdc;
  --green: #1b9a72;
  --yellow: #d89518;
  --red: #d74b4b;
  --shadow: 0 12px 32px rgba(38, 49, 72, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
}

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

button,
.btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

button:hover,
.btn:hover {
  background: var(--brand-dark);
}

button:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.btn.secondary,
button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.btn.secondary:hover,
button.secondary:hover {
  border-color: #c7d0df;
  background: #f6f8fb;
}

.btn.blue,
button.blue {
  background: var(--blue);
}

.btn.green,
button.green {
  background: var(--green);
}

.btn.red,
button.red {
  background: var(--red);
}

.btn.ghost,
button.ghost {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.btn.ghost:hover,
button.ghost:hover {
  color: var(--text);
  background: #edf1f7;
}

.link-button {
  display: inline-flex;
  margin-top: 12px;
  padding: 0;
  height: auto;
  color: var(--brand);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.link-button:hover {
  color: var(--brand-dark);
  background: transparent;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-dark);
}

.mini {
  margin-top: 6px;
  font-size: 12px;
}

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

.page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.user-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 8px;
}

.nav-bar {
  display: block;
  padding: 0 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #2f67d8);
  font-size: 17px;
}

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

.business-nav {
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf1f7;
}

.branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.branch-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.branch-tabs a.active,
.branch-tabs a:hover {
  color: var(--brand-dark);
  border-color: rgba(255, 107, 53, 0.45);
  background: #fff5ef;
}

.nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: #f0f3f8;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
  font-weight: 700;
}

.user-name,
.wallet-pill {
  white-space: nowrap;
}

.wallet-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: #f9fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.vip-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d7a53d;
  border-radius: 999px;
  color: #6c4308;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #fffdf7 0%, #fff3c8 48%, #f4d177 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 2px 7px rgba(191, 124, 22, 0.14),
    0 0 9px rgba(245, 199, 86, 0.2);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.vip-core {
  position: relative;
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

.vip-wing {
  display: none;
}

.vip-wing::before,
.vip-wing::after {
  content: "";
}

.vip-badge:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78) inset,
    0 4px 10px rgba(191, 124, 22, 0.2),
    0 0 12px rgba(245, 199, 86, 0.28);
}

.vip-badge.compact {
  min-width: 64px;
  height: 24px;
  padding: 0 9px;
}

.vip-badge.compact .vip-core {
  font-size: 10px;
  line-height: 22px;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #315fdc, #ff6b35);
  box-shadow: 0 3px 10px rgba(40, 57, 86, 0.12);
  font-weight: 900;
  line-height: 1;
}

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

.avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.avatar-xl {
  width: 88px;
  height: 88px;
  font-size: 34px;
}

.avatar-settings {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.avatar-settings.compact {
  align-items: center;
}

.avatar-upload-zone {
  max-width: 420px;
  margin: 10px 0;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: 1.42fr 0.58fr;
  gap: 18px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  min-height: 296px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 296px;
  object-fit: cover;
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-banner-link {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.hero-banner-link:hover {
  border-color: #fff;
  background: rgba(17, 24, 39, 0.66);
}

.hero-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 24, 39, 0.38);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.hero-carousel-control:hover {
  border-color: #fff;
  background: rgba(17, 24, 39, 0.62);
}

.hero-carousel-control.prev {
  left: 14px;
}

.hero-carousel-control.next {
  right: 14px;
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-carousel-dots button.active {
  width: 24px;
  background: #fff;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 58%;
  padding: 34px 42px;
  color: #fff;
  background: linear-gradient(90deg, rgba(18, 25, 38, 0.9), rgba(18, 25, 38, 0.56), rgba(18, 25, 38, 0));
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.notice-box,
.quick-box,
.panel,
.card,
.stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice-box,
.quick-box {
  padding: 18px;
}

.notice-box h3,
.quick-box h3,
.panel-title h2,
.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.notice-box p,
.quick-box p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice-item {
  padding-top: 12px;
}

.notice-item + .notice-item {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.notice-item strong {
  display: block;
  font-size: 14px;
}

.notice-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-grid {
  display: grid;
  gap: 10px;
}

.compact-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.compact-stat-grid .stat {
  padding: 12px;
}

.compact-stat-grid .stat strong {
  font-size: 18px;
}

.stat {
  padding: 18px;
}

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

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.section {
  margin-top: 24px;
}

.section-title,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title p,
.panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.category-card,
.account-card,
.sale-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.category-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 108px;
  align-items: center;
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-left: 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #315fdc, #1b9a72);
  font-weight: 800;
}

.category-card h3,
.account-card h3,
.sale-card h3 {
  margin: 0;
  font-size: 16px;
}

.account-title {
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.category-card p,
.account-card p,
.sale-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe5ef;
}

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

.account-body,
.sale-body,
.card-body,
.rental-card-body {
  padding: 14px;
}

.rental-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rental-card-body {
  display: flex;
  min-height: 210px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.rental-card .account-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  word-break: break-word;
}

.rental-card-info {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rental-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.rental-card-meta strong,
.rental-card-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #edf1f7;
  color: #4c596d;
  font-size: 12px;
  white-space: nowrap;
}

.rental-card-meta strong {
  background: #fff0e9;
  color: var(--brand-dark);
  font-weight: 800;
}

.rental-card-action {
  width: 100%;
  margin-top: 2px;
}

.display-account-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.display-card-body {
  display: flex;
  min-height: 218px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.display-card-body .account-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.32;
  word-break: break-word;
}

.display-card-desc {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.display-card-info {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 5px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.display-card-info strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.display-card-action {
  width: 100%;
}

.home-feedback-footer {
  margin: 32px 0 4px;
  text-align: center;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-dark);
}

.police-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-beian-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #9aa6b2;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
}

.audit-panel {
  max-width: 900px;
  margin: 28px auto;
}

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

.audit-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-2);
}

.audit-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.audit-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.rule-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.rule-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.38);
}

.rule-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 52px);
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 29, 45, 0.2);
}

.rule-content {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  color: #344054;
  line-height: 1.75;
}

.rule-content p {
  margin: 0;
}

.rule-actions {
  justify-content: flex-end;
}

.feedback-link {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 16px;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.feedback-link:hover {
  color: var(--brand-dark);
  border-color: rgba(255, 107, 53, 0.48);
  background: #fff8f4;
}

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

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
}

.feedback-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(20, 29, 45, 0.18);
}

.feedback-dialog textarea {
  min-height: 132px;
}

.feedback-content-cell,
.feedback-note-cell {
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag,
.status,
.price-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

.tag {
  color: #4c596d;
  background: #edf1f7;
}

.status {
  color: var(--green);
  background: #e8f7f1;
}

.status.rented,
.status.pending {
  color: var(--yellow);
  background: #fff6df;
}

.status.off,
.status.sold,
.status.danger {
  color: var(--red);
  background: #fdeeee;
}

.price-pill {
  color: var(--brand-dark);
  background: #fff0e9;
  font-weight: 700;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rental-filter-bar {
  grid-template-columns: minmax(260px, 1.4fr) repeat(5, minmax(120px, 1fr)) auto auto;
  align-items: center;
}

.grid > .empty {
  grid-column: 1 / -1;
}

.input,
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  outline: none;
}

textarea {
  min-height: 88px;
  max-width: 100%;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #9db3ee;
  box-shadow: 0 0 0 3px rgba(49, 95, 220, 0.12);
}

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

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

.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-panel,
.panel {
  padding: 18px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.info-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.info-list strong {
  color: var(--text);
  font-weight: 600;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.pay-options,
.duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  min-width: 82px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.choice input:checked + span {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #fff3ed;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.plan-choice {
  position: relative;
  display: block;
}

.plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-choice span {
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}

.plan-choice strong {
  font-size: 18px;
}

.plan-choice em {
  color: var(--green);
  font-style: normal;
}

.plan-choice b {
  color: var(--brand-dark);
  font-size: 20px;
}

.plan-choice input:checked + span {
  border-color: var(--brand);
  background: #fff3ed;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.upload-zone {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}

.upload-zone.dragover {
  border-color: var(--brand);
  background: #fff3ed;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

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

.upload-zone span {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.upload-zone small {
  display: block;
  margin-top: 6px;
}

.upload-progress {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.upload-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 160px) minmax(72px, 92px);
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.upload-progress-row span,
.upload-progress-row b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-progress-row b {
  color: var(--text);
  font-weight: 600;
}

.upload-progress-row.error b {
  color: var(--red);
}

.upload-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf2;
}

.upload-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.16s ease;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 10px;
  margin-top: 10px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-item-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
}

.image-item-actions button,
.image-replace {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.image-replace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.main-image-label {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.summary-box {
  position: sticky;
  top: 90px;
}

.amount {
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 800;
}

.amount-breakdown {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.amount-breakdown span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.amount-breakdown strong {
  color: var(--text);
}

.amount-breakdown .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.amount-breakdown .total strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #4a5568;
  background: #f7f9fc;
  font-weight: 700;
  white-space: nowrap;
}

td {
  color: #273244;
}

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

.empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed #c7d0df;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.credential-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.credential-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border: 1px solid #d8e7dc;
  border-radius: 6px;
  padding: 12px;
  background: #f3fbf7;
}

.credential-row span {
  color: var(--muted);
}

.credential-row strong {
  font-family: Consolas, "Courier New", monospace;
}

.payment-screen {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 14px 14px;
}

.fake-qr {
  display: grid;
  width: 210px;
  height: 210px;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 16px;
  border: 8px solid #fff;
  background: #111827;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.fake-qr i {
  background: #fff;
}

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

.form-grid .span-2 {
  grid-column: span 2;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-wrap {
  display: grid;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  grid-template-columns: 1fr 430px;
  overflow: hidden;
  background: #f4f6f9;
}

.auth-art {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #07142f;
}

.auth-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1;
}

.auth-copy {
  position: absolute;
  left: 58px;
  bottom: 58px;
  width: 520px;
  color: #fff;
}

.auth-copy h1 {
  margin: 0 0 12px;
  font-size: 38px;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.auth-card {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: 44px;
  background: #fff;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.admin-page {
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow-x: hidden;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  width: 224px;
  min-width: 224px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid #20293a;
  background: #111827;
  color: #d7deea;
}

.admin-sidebar .brand {
  height: 68px;
  padding: 0 18px;
  color: #fff;
}

.admin-menu {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.admin-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #aeb8c8;
  font-size: 14px;
}

.admin-menu a.active,
.admin-menu a:hover {
  color: #fff;
  background: #243149;
}

.admin-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-width: 0;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.admin-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding: 22px 24px 44px;
}

.admin-content > *,
.admin-content .section,
.admin-content .panel,
.admin-content form,
.admin-content .field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-content .panel-title,
.admin-content .section-title,
.admin-topbar {
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-content .panel-title > *,
.admin-content .section-title > *,
.admin-topbar > * {
  min-width: 0;
}

.admin-tools {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 7px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.admin-split {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.log-diff {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.muted {
  color: var(--muted);
}

.danger-text {
  color: var(--red);
}

.success-text {
  color: var(--green);
}

.compact {
  font-size: 12px;
}

#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.btn.disabled,
a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.spec-editor {
  display: grid;
  gap: 8px;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 8px;
}

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

.chat-panel {
  display: grid;
  gap: 12px;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.chat-message {
  width: fit-content;
  max-width: min(76%, 680px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.chat-message.mine {
  justify-self: end;
  background: #eef6ff;
  border-color: #b9d9ff;
}

.chat-message-meta {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.chat-message-content {
  white-space: normal;
  word-break: break-word;
  line-height: 1.7;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
}

.chat-form textarea {
  resize: vertical;
}

.unread-dot {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

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

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .site-header-inner,
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header-inner,
  .hero,
  .detail-layout,
  .checkout-layout,
  .payment-screen,
  .auth-wrap,
  .admin-page,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .auth-wrap {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .auth-art {
    height: min(100vw, 520px);
  }

  .auth-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .site-header-inner {
    height: auto;
    padding: 0;
  }

  .user-bar {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 8px;
  }

  .nav-bar {
    padding-bottom: 10px;
  }

  .business-nav {
    gap: 5px;
    padding-top: 8px;
  }

  .nav,
  .header-actions {
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .user-chip {
    width: 100%;
  }

  .grid.cols-3,
  .grid.cols-4,
  .stats-grid,
  .form-grid,
  .spec-row,
  .chat-layout,
  .plan-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .auth-art,
  .admin-sidebar {
    position: static;
  }

  .admin-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .admin-main {
    min-width: 0;
  }
}
