:root {
  --bg: #f4f6f0;
  --surface: #ffffff;
  --surface-2: #f7f9f3;
  --ink: #14180f;
  --ink-2: #39412d;
  --muted: #77806a;
  --line: #e2e6dc;
  --brand: #557c1f;
  --brand-strong: #3f5e14;
  --brand-soft: #edf3df;
  --accent: #f59e0b;
  --accent-soft: #fff4dd;
  --price: #d92d20;
  --price-soft: #fee4e2;
  --header: #151a11;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 15, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 24, 15, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 24, 15, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  letter-spacing: 0;
}

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

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  white-space: nowrap;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #78a62a, #557c1f);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #aab29c;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #cbd2c0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a.active {
  background: var(--brand);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.service-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Rate ticker */
.rate-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.rate-ticker .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 44px;
  overflow-x: auto;
}

.rate-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.rate-item b {
  color: var(--price);
  font-size: 15px;
}

.rate-item .icon {
  color: var(--brand);
}

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

/* Main */
.main {
  padding: 18px 0 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title .sub {
  color: var(--muted);
  font-size: 13px;
}

.section-title .more-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.section-title .more-link:hover {
  color: var(--brand-strong);
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.result-count b {
  color: var(--ink);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.select-wrap .select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  width: 15px;
  height: 15px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover {
  border-color: #bcc4b1;
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty .icon {
  width: 36px;
  height: 36px;
  color: #cbd3c0;
  margin-bottom: 8px;
}

/* Listing card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  gap: 12px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.card-type.recycle {
  color: #9a4b00;
  background: var(--accent-soft);
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-strong);
}

.secure-badge .icon {
  width: 14px;
  height: 14px;
}

.card-amount {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.card-amount small {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}

.card-rate {
  font-size: 13px;
  color: var(--ink-2);
}

.card-rate b {
  color: var(--price);
}

.card-total {
  font-size: 13px;
  color: var(--muted);
}

.card-total b {
  color: var(--price);
  font-size: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.contact-btn:hover {
  background: var(--brand-strong);
}

.time {
  font-size: 12px;
  color: var(--muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.tab {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Panels / forms */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.form-field textarea {
  height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(85, 124, 31, 0.12);
}

.estimate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 14px;
}

.estimate b {
  font-size: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Admin */
.admin-login {
  max-width: 420px;
  margin: 30px auto;
}

.admin-login .panel {
  padding: 26px;
}

.admin-login h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card .label {
  font-size: 12px;
  color: var(--muted);
}

.stat-card .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.stat-card.accent .value {
  color: var(--brand);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 600;
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status.pending {
  color: #9a4b00;
  background: var(--accent-soft);
}

.status.approved {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.status.rejected {
  color: #b42318;
  background: var(--price-soft);
}

.status.done {
  color: #475467;
  background: #eef1ea;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: #bcc4b1;
}

.mini-btn.approve {
  color: var(--brand-strong);
  border-color: #b9cf9a;
}

.mini-btn.reject {
  color: #b42318;
  border-color: #f3b4ae;
}

.mini-btn.delete {
  color: #b42318;
}

/* Chat widget */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.chat-fab:hover {
  background: var(--brand-strong);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 55;
  width: min(360px, calc(100% - 32px));
  height: 480px;
  max-height: calc(100vh - 110px);
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  color: #fff;
}

.chat-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-head .title {
  font-size: 14px;
  font-weight: 700;
}

.chat-head .sub {
  font-size: 12px;
  color: #aab29c;
}

.chat-head .close {
  margin-left: auto;
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-2);
}

.msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
}

.msg.admin {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.msg.system {
  align-self: center;
  background: #eef1ea;
  color: var(--muted);
  font-size: 12px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-input input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.chat-input input:focus {
  border-color: var(--brand);
}

.chat-input button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

/* Admin chat */
.chat-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  margin-top: 16px;
}

.conv-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.conv-item {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
}

.conv-item:hover,
.conv-item.active {
  background: var(--surface-2);
}

.conv-item .time {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.conv-chat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.conv-msgs {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 320px;
}

.conv-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.conv-input input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.conv-input button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Toast */
.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease;
}

.toast .icon {
  color: #86efac;
}

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

/* Footer */
.site-footer {
  background: var(--header);
  color: #9aa28d;
  padding: 24px 0;
  font-size: 12px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* Home hero */
.hero {
  padding: 22px 0 6px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0 6px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  flex: 0 0 auto;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
}

.hero-point .icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.hero-point b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.hero-point span {
  color: var(--muted);
  font-size: 12px;
}

/* Notice banner */
.notice-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #f2d9a8;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #7c4a00;
  font-size: 13px;
  line-height: 1.6;
}

.notice-banner .icon {
  color: var(--accent);
  margin-top: 2px;
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  letter-spacing: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  border-color: #bcc4b1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 28px;
  line-height: 1;
}

.service-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}

.service-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Account cards */
.acc-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.acc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.acc-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.acc-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.acc-badge.rent {
  color: #7c2d12;
  background: #ffedd5;
}

.acc-badge.sale {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.acc-badge.recycle {
  color: #1d4ed8;
  background: #e3edff;
}

.acc-secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--brand-strong);
}

.acc-secure .icon {
  width: 14px;
  height: 14px;
}

.acc-server {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.acc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.acc-coins {
  font-size: 14px;
  color: var(--ink-2);
}

.acc-coins b {
  color: var(--brand-strong);
}

.acc-coins span {
  color: var(--muted);
  font-size: 12px;
}

.acc-equip {
  font-size: 13px;
  color: var(--ink-2);
}

.acc-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acc-meta-grid span {
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.acc-images {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.acc-images .icon {
  width: 15px;
  height: 15px;
}

.acc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.acc-foot .contact-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.acc-price {
  color: var(--price);
  font-weight: 800;
  font-size: 14px;
}

.acc-price b {
  font-size: 18px;
}

.acc-price small {
  font-size: 13px;
  font-weight: 700;
}

.acc-ratio {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.acc-deposit {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-left: 6px;
}

.acc-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid var(--line);
}

.acc-ref {
  font-size: 12px;
  color: var(--muted);
}

/* Segmented control */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.seg-btn {
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--brand);
  color: #fff;
}

/* Form section titles */
.form-section-title {
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.check-label input {
  width: 16px;
  height: 16px;
}

.admin-entry {
  color: #9aa28d;
  text-decoration: underline;
}

.admin-entry:hover {
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.modal-wide {
  width: min(760px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--surface-2);
}

.modal-body {
  padding: 18px;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.detail-title h2 {
  margin: 0;
  font-size: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.info-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.info-item .label {
  font-size: 12px;
  color: var(--muted);
}

.info-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.detail-desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.detail-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.edit-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edit-img {
  position: relative;
  width: 110px;
}

.edit-img img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.edit-img button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

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

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.option-chip input {
  display: none;
}

.option-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-strong);
  font-weight: 600;
}

.field-note {
  font-size: 12px;
  color: var(--muted);
}

.field-note.green {
  color: var(--brand);
}

.deposit-box {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 700;
}

.conv-item .preview {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-item .unread {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--price);
  margin-left: 6px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner {
    gap: 10px;
  }

  .brand-sub {
    display: none;
  }

  .main-nav a {
    padding: 0 10px;
    font-size: 13px;
  }

  .service-btn span {
    display: none;
  }

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

  .card {
    padding: 13px;
  }

  .card-amount {
    font-size: 24px;
  }

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

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