:root {
  --primary: #1d5bd7;
  --primary-dark: #1645ae;
  --ink: #18263f;
  --muted: #748198;
  --line: #e6ebf3;
  --page: #f5f7fb;
  --card: #ffffff;
  --success: #168a69;
  --shadow: 0 12px 32px rgba(27, 52, 97, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 1024px;
  color: var(--ink);
  background: var(--page);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(226, 233, 244, .9);
  backdrop-filter: blur(18px);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 218px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #164bb8, #3385e4);
  border-radius: 13px; font-weight: 850; font-size: 20px;
  box-shadow: 0 7px 16px rgba(29, 91, 215, .22);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 17px; line-height: 23px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 11px; line-height: 17px; }
.main-nav { display: flex; align-items: center; gap: 27px; flex: 1; }
.main-nav a { position: relative; padding: 27px 0 25px; color: #66758d; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after { content: ""; position: absolute; bottom: 16px; left: 50%; width: 19px; height: 3px; transform: translateX(-50%); background: var(--primary); border-radius: 99px; }
.header-actions { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.site-select-wrap { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #50617b; background: #f4f7fc; border: 1px solid var(--line); border-radius: 10px; }
.site-pin { color: var(--primary); font-size: 17px; }
.site-select-wrap select { max-width: 105px; color: #4d5d76; background: transparent; border: 0; outline: 0; cursor: pointer; }
.login-link { color: #53627a; font-weight: 600; }
.login-link:hover { color: var(--primary); }
.publish-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; color: #fff; background: var(--primary); border: 0; border-radius: 10px; font-weight: 700; box-shadow: 0 8px 18px rgba(29, 91, 215, .18); }
.publish-button:hover, .primary-button:hover { background: var(--primary-dark); }

.main-content { min-height: calc(100vh - 152px); padding: 30px 0 64px; }
/* All PC views render directly inside main. Constrain the view roots so the
   desktop canvas keeps the same breathing room as the H5 card system. */
.main-content > * { width: min(1240px, calc(100% - 64px)); margin-left: auto; margin-right: auto; }
.main-content > .hero { width: min(1240px, calc(100% - 64px)); }
.hero {
  position: relative; overflow: hidden; padding: 50px 58px 44px; color: #fff;
  background: linear-gradient(120deg, #123b99 0%, #1e5fd5 54%, #42a0e8 100%);
  border-radius: 24px; box-shadow: 0 20px 40px rgba(29, 91, 215, .18);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 460px; height: 460px; top: -325px; right: 30px; background: rgba(130, 221, 255, .18); }
.hero::after { width: 340px; height: 340px; bottom: -280px; left: 280px; background: rgba(107, 243, 205, .13); }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.eyebrow { margin: 0 0 9px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 800; letter-spacing: .28em; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.25; letter-spacing: -.02em; }
.hero p { max-width: 600px; margin: 10px 0 25px; color: rgba(255,255,255,.76); font-size: 15px; }
.smart-search { display: flex; align-items: center; max-width: 760px; height: 56px; padding: 5px 6px 5px 17px; background: #fff; border-radius: 13px; box-shadow: 0 9px 24px rgba(11, 35, 87, .19); }
.smart-search .ai-badge { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--primary); border-radius: 8px; font-size: 11px; font-weight: 850; }
.smart-search input { min-width: 0; flex: 1; height: 100%; padding: 0 13px; color: var(--ink); border: 0; outline: 0; }
.smart-search input::placeholder { color: #9aa6b8; }
.smart-search button { height: 44px; padding: 0 23px; color: #fff; background: var(--primary); border: 0; border-radius: 9px; font-weight: 700; }
.smart-search button:disabled { opacity: .65; cursor: wait; }
.hero-note { margin-top: 13px; color: rgba(255,255,255,.65); font-size: 12px; }

.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.text-link { color: var(--primary); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category-card { display: flex; align-items: center; gap: 15px; padding: 21px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; transition: .2s ease; }
.category-card:hover { transform: translateY(-2px); border-color: #baccf8; box-shadow: var(--shadow); }
.category-icon { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 14px; font-size: 24px; font-weight: 800; }
.category-card.sale .category-icon { background: linear-gradient(135deg,#ee675e,#f19a70); }
.category-card.rent .category-icon { background: linear-gradient(135deg,#1cae93,#56cf9c); }
.category-card.shop_transfer .category-icon { background: linear-gradient(135deg,#f0922e,#ffc452); }
.category-card.demand .category-icon { background: linear-gradient(135deg,#3795df,#69c8f1); }
.category-card strong { display: block; font-size: 16px; }
.category-card small { display: block; margin-top: 3px; color: var(--muted); }

.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.feed-card, .side-card, .detail-card, .form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 17px rgba(27, 52, 97, .035); }
.feed-card { overflow: hidden; }
.feed-tabs { display: flex; align-items: center; gap: 5px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.feed-tab { padding: 7px 14px; color: var(--muted); border-radius: 8px; cursor: pointer; }
.feed-tab:hover, .feed-tab.active { color: var(--primary); background: #edf2ff; font-weight: 700; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0 18px; }
.listing-card { display: flex; gap: 14px; min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.listing-card:hover .listing-title { color: var(--primary); }
.cover { width: 156px; height: 112px; flex: 0 0 auto; overflow: hidden; background: #e8eef8; border-radius: 11px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#c5d5ee,#6988ba); font-size: 26px; }
.listing-body { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0 2px; }
.listing-title { overflow: hidden; color: #202f49; font-size: 16px; font-weight: 750; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta, .listing-location { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta { margin-top: 7px; }
.listing-location { margin-top: 3px; }
.listing-bottom { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.listing-price { color: #ed5b53; font-size: 17px; font-weight: 800; white-space: nowrap; }
.listing-price em { margin-left: 2px; color: #9b6870; font-size: 11px; font-style: normal; font-weight: 500; }
.top-tag { display: inline-flex; padding: 2px 5px; color: #de8c17; background: #fff5dc; border: 1px solid #ffe0a0; border-radius: 4px; font-size: 11px; }
.loading-state, .empty-state { padding: 65px 20px; color: var(--muted); text-align: center; }
.loading-state::before { content: ""; display: inline-block; width: 25px; height: 25px; margin-bottom: 12px; border: 3px solid #d9e3fb; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { display: flex; justify-content: center; padding: 18px; color: var(--primary); border: 0; background: #fff; width: 100%; font-weight: 650; }
.load-more:disabled { color: #a0aabd; cursor: default; }
.side-card { padding: 20px; }
.side-card + .side-card { margin-top: 15px; }
.side-card h3 { margin: 0 0 14px; font-size: 16px; }
.side-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.side-stat { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.side-stat strong { color: var(--primary); font-size: 18px; }
.side-stat span { color: var(--muted); }
.publish-card { padding: 22px; color: #fff; background: linear-gradient(135deg,#173f98,#2969db); border: 0; }
.publish-card h3 { margin: 0 0 5px; color: #fff; }
.publish-card p { margin-bottom: 16px; color: rgba(255,255,255,.7); }
.publish-card a { display: inline-flex; padding: 8px 14px; color: #2457ba; background: #fff; border-radius: 8px; font-weight: 700; }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 28px; }
.page-title p { margin: 5px 0 0; color: var(--muted); }
.filter-bar { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.filter-bar input, .filter-bar select { height: 38px; padding: 0 11px; color: var(--ink); background: #f8faff; border: 1px solid #dfe6f1; border-radius: 8px; outline: none; }
.filter-bar input { width: 320px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #9db7ef; box-shadow: 0 0 0 3px rgba(29,91,215,.08); }
.filter-bar button { height: 38px; padding: 0 17px; color: #fff; background: var(--primary); border: 0; border-radius: 8px; font-weight: 700; }
.filter-reset { color: var(--muted) !important; background: #fff !important; border: 1px solid var(--line) !important; }
.list-page-grid { grid-template-columns: minmax(0, 1fr) 265px; }
.list-page-grid .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-count { color: var(--muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.detail-card { padding: 27px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; height: 265px; margin-bottom: 25px; overflow: hidden; border-radius: 13px; }
.detail-gallery .gallery-main { grid-row: span 2; grid-column: span 2; }
.detail-gallery > div { overflow: hidden; background: #e8eef8; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.detail-heading h1 { margin: 0; font-size: 28px; line-height: 1.35; }
.detail-heading .detail-price { color: #ee5c54; font-size: 23px; font-weight: 850; white-space: nowrap; }
.detail-location { margin: 8px 0 20px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 25px; border: 1px solid var(--line); border-radius: 11px; }
.fact { padding: 14px 16px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact small { display: block; color: var(--muted); }
.fact strong { display: block; margin-top: 3px; font-size: 16px; }
.detail-section { margin-top: 23px; }
.detail-section h2 { margin: 0 0 11px; font-size: 18px; }
.detail-section p { margin: 0; color: #52627c; white-space: pre-line; line-height: 1.85; }
.detail-actions { display: grid; gap: 10px; padding: 22px; }
.detail-actions button { min-height: 44px; color: var(--primary); background: #edf2ff; border: 1px solid #dce6ff; border-radius: 9px; font-weight: 700; }
.detail-actions button.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.safe-tip { margin-top: 16px; padding: 15px; color: #687890; background: #f6f8fc; border-radius: 10px; font-size: 12px; line-height: 1.7; }

.auth-wrap { display: grid; place-items: center; min-height: 560px; }
.auth-card { width: 410px; padding: 37px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; font-size: 25px; }
.auth-card p { margin: 7px 0 25px; color: var(--muted); }
.field { margin-top: 15px; }
.field label { display: block; margin-bottom: 6px; color: #52627b; font-weight: 650; }
.field input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dbe3ef; border-radius: 8px; outline: none; }
.field input:focus { border-color: #98b2ec; box-shadow: 0 0 0 3px rgba(29,91,215,.08); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { width: 110px; color: var(--primary); background: #edf2ff; border: 1px solid #dbe5ff; border-radius: 8px; }
.auth-card .primary-button { width: 100%; margin-top: 23px; }
.auth-tip { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.service-qr { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 20px 0 2px; color: var(--muted); }
.service-qr img { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.form-card { padding: 26px; }
.form-card h1 { margin: 0 0 6px; font-size: 26px; }
.form-card .intro { margin: 0 0 22px; color: var(--muted); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 21px; }
.type-choice { padding: 13px; color: #53627a; text-align: center; background: #f8faff; border: 1px solid #dfe7f2; border-radius: 9px; cursor: pointer; }
.type-choice:hover, .type-choice.selected { color: var(--primary); background: #edf2ff; border-color: #a8bdf3; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: 6px; color: #53627a; font-weight: 650; }
.form-grid input, .form-grid textarea { width: 100%; padding: 10px 11px; border: 1px solid #dfe6f0; border-radius: 8px; outline: none; resize: vertical; }
.form-grid textarea { min-height: 120px; }
.form-grid input:focus, .form-grid textarea:focus { border-color: #98b2ec; box-shadow: 0 0 0 3px rgba(29,91,215,.08); }
.form-side { align-self: start; padding: 22px; }
.form-side h3 { margin: 0 0 11px; }
.form-side p, .form-side li { color: var(--muted); font-size: 13px; line-height: 1.8; }
.form-side ul { margin: 0; padding-left: 20px; }

.site-footer { background: #16233b; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.footer-inner strong { margin-right: 12px; font-size: 15px; }
.footer-inner span, .footer-links { color: rgba(255,255,255,.58); font-size: 12px; }
.footer-links { display: flex; gap: 19px; }
.footer-links a:hover { color: #fff; }
.toast { position: fixed; z-index: 50; right: 28px; bottom: 28px; max-width: 340px; padding: 12px 17px; color: #fff; background: rgba(24,38,63,.92); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.muted-inline { color: var(--muted); }

/* PC feature parity: account, messages, publishing and payment */
.utility-link { position: relative; color: #53627a; font-weight: 650; }
.utility-link:hover { color: var(--primary); }
.message-badge { position: absolute; top: -11px; right: -14px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #ec625c; border: 2px solid #fff; border-radius: 99px; font-size: 10px; line-height: 14px; }
.quick-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 15px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.quick-item span { color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.quick-item strong { grid-column: 1 / 2; color: var(--ink); font-size: 14px; }
.quick-item a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--primary); font-size: 12px; font-weight: 700; white-space: nowrap; }
.advanced-filter { flex-wrap: wrap; }
.advanced-filter input.compact-input { width: 105px; }
.advanced-filter select { min-width: 115px; }
.single-form { grid-template-columns: minmax(0, 760px); justify-content: center; }
.form-title { margin-bottom: 14px; }
.type-switch { display: flex; gap: 7px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.type-switch a { padding: 7px 13px; color: var(--muted); background: #f5f7fc; border-radius: 7px; font-weight: 650; }
.type-switch a.active, .type-switch a:hover { color: var(--primary); background: #eaf0ff; }
.form-grid select { width: 100%; height: 40px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #dfe6f0; border-radius: 8px; outline: none; }
.form-grid select:focus { border-color: #98b2ec; box-shadow: 0 0 0 3px rgba(29,91,215,.08); }
.form-grid .short-textarea { min-height: 78px; }
.field-help { margin: 0; padding: 10px 12px; color: var(--muted); background: #f7f9fd; border-radius: 8px; font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.ai-small-button { margin-top: 7px; padding: 6px 11px; color: var(--primary); background: #edf2ff; border: 1px solid #d5e1ff; border-radius: 7px; font-size: 12px; }
.publish-select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.publish-choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: .2s ease; }
.publish-choice:hover { transform: translateY(-3px); border-color: #b5cafa; box-shadow: var(--shadow); }
.publish-choice .category-icon { margin-bottom: 3px; }
.publish-choice strong { font-size: 17px; }
.publish-choice small { color: var(--muted); }
.choice-arrow { position: absolute; right: 20px; bottom: 22px; color: var(--primary); font-size: 18px; font-weight: 700; }
.profile-card { display: flex; align-items: center; gap: 16px; margin-bottom: 17px; padding: 22px 25px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.profile-card .avatar { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#2461dc,#70a4ee); border-radius: 50%; font-size: 22px; font-weight: 800; overflow: hidden; }
.profile-card h2 { margin: 0; font-size: 19px; }
.profile-card p { margin: 3px 0 0; color: var(--muted); }
.profile-card .text-link { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.account-card { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; gap: 2px 11px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: .2s ease; }
.account-card:hover { border-color: #b5cafa; box-shadow: var(--shadow); transform: translateY(-2px); }
.account-icon { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; color: var(--primary); background: #edf2ff; border-radius: 12px; font-size: 21px; }
.account-card strong { align-self: end; font-size: 15px; }
.account-card small { color: var(--muted); font-size: 12px; }
.account-notice { display: flex; gap: 12px; margin-top: 18px; padding: 13px 16px; color: #5d6c83; background: #f4f7fc; border-radius: 10px; font-size: 12px; }
.account-notice strong { color: var(--primary); white-space: nowrap; }
.logout-button { margin-top: 19px; padding: 9px 18px; color: #dd5d59; background: #fff; border: 1px solid #f0c7c5; border-radius: 8px; }
.message-list { display: grid; gap: 10px; }
.message-card { display: flex; gap: 14px; padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .2s ease; }
.message-card:hover { border-color: #b5cafa; box-shadow: var(--shadow); }
.message-card.unread { border-left: 3px solid var(--primary); background: #fbfcff; }
.message-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: #eaf0ff; border-radius: 11px; font-weight: 800; }
.message-card.unread .message-icon { color: #fff; background: var(--primary); }
.message-main { min-width: 0; flex: 1; }
.message-top { display: flex; justify-content: space-between; gap: 20px; }
.message-top strong { font-size: 15px; }
.message-top time, .message-main small { color: var(--muted); font-size: 12px; }
.message-main p { margin: 7px 0; color: #5d6c83; white-space: pre-line; }
.my-listing-list { display: grid; gap: 13px; }
.my-listing-card { display: flex; gap: 17px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.my-listing-cover { width: 170px; height: 126px; flex: 0 0 auto; overflow: hidden; background: #e8eef8; border-radius: 10px; }
.my-listing-cover img, .activity-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-listing-main { min-width: 0; flex: 1; }
.my-listing-head { display: flex; align-items: center; gap: 7px; }
.category-pill, .status-pill { padding: 2px 7px; color: var(--primary); background: #edf2ff; border-radius: 5px; font-size: 11px; }
.status-pill.success { color: #168a69; background: #e7f7f0; }
.status-pill.danger { color: #c84c4a; background: #ffeded; }
.my-listing-main h2 { margin: 8px 0 4px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.my-listing-main p { margin: 0; color: var(--muted); }
.listing-dates { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 10px; color: #7a879b; font-size: 11px; }
.my-listing-actions { display: flex; gap: 8px; margin-top: 12px; }
.my-listing-actions a, .my-listing-actions button { padding: 5px 10px; color: var(--primary); background: #fff; border: 1px solid #d5e1ff; border-radius: 6px; font-size: 12px; }
.my-listing-actions .pay-link { color: #bd7411; border-color: #f0d29b; }
.my-listing-actions .danger-text, .danger-text { color: #d15855; border-color: #f0c7c5; }
.activity-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; width: fit-content; background: #eaf0f8; border-radius: 8px; }
.activity-tabs a { padding: 6px 16px; color: var(--muted); border-radius: 6px; }
.activity-tabs a.active { color: var(--primary); background: #fff; font-weight: 700; box-shadow: 0 2px 5px rgba(25,54,104,.08); }
.activity-list { display: grid; gap: 10px; }
.activity-card { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.activity-card > div:nth-child(2) { min-width: 0; flex: 1; }
.activity-cover { width: 106px; height: 77px; flex: 0 0 auto; overflow: hidden; background: #e8eef8; border-radius: 8px; }
.activity-card h2 { margin: 0 0 3px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.activity-card p { margin: 0; color: var(--muted); font-size: 12px; }
.activity-card strong { display: block; margin-top: 4px; color: #ed5b53; font-size: 14px; }
.activity-card small { display: block; margin-top: 4px; color: #8995a7; font-size: 11px; }
.modal-mask { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(17,29,52,.45); backdrop-filter: blur(3px); }
.modal { width: min(510px, 100%); padding: 22px; background: #fff; border-radius: 15px; box-shadow: 0 25px 65px rgba(16,35,78,.28); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head button { color: #7d899d; background: transparent; border: 0; font-size: 25px; line-height: 1; }
.modal-form { display: grid; gap: 13px; }
.modal-form label { color: #52627b; font-weight: 650; }
.modal-form input, .modal-form textarea, .modal-form select { display: block; width: 100%; margin-top: 6px; padding: 10px; color: var(--ink); background: #fbfcff; border: 1px solid #dfe6f0; border-radius: 8px; outline: 0; }
.modal-form textarea { min-height: 95px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.detail-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-actions button.is-favorite { color: #bd7411; background: #fff6e3; border-color: #f1d197; }
.plan-list, .channel-list { display: grid; gap: 10px; }
.plan-card, .channel-card { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #fbfcff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.plan-card.selected, .channel-card.selected { background: #f0f4ff; border-color: #9db7ef; }
.plan-card input, .channel-card input { accent-color: var(--primary); }
.plan-card span, .channel-card span { min-width: 0; flex: 1; }
.plan-card strong, .channel-card strong { display: block; }
.plan-card small, .channel-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.plan-card b { color: #e45d54; font-size: 17px; }
.pay-heading { margin: 25px 0 11px; font-size: 16px; }
.pay-submit { margin-top: 23px; min-width: 140px; }
.compact-empty { padding: 25px 10px; }
.site-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.site-card { display: flex; align-items: center; gap: 11px; padding: 16px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.site-card:hover, .site-card.active { border-color: #9db7ef; box-shadow: var(--shadow); }
.site-card .site-pin { width: 34px; height: 34px; display: grid; place-items: center; background: #edf2ff; border-radius: 9px; }
.site-card span:nth-child(2) { min-width: 0; flex: 1; }
.site-card strong, .site-card small { display: block; }
.site-card small { margin-top: 2px; color: var(--muted); overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.site-card b { color: var(--primary); font-size: 11px; white-space: nowrap; }
.map-filter { width: min(1240px, calc(100% - 64px)); }
.map-filter select { min-width: 130px; }
.map-view { width: min(1240px, calc(100% - 64px)); padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 17px rgba(27, 52, 97, .035); }
.map-summary { display: flex; align-items: center; gap: 8px; padding: 2px 2px 15px; color: var(--muted); }
.map-summary strong { color: var(--primary); font-size: 20px; }
.map-summary em { margin-left: auto; padding: 4px 9px; color: #8b6a32; background: #fff6df; border-radius: 6px; font-size: 11px; font-style: normal; }
.map-summary em.available { color: #168a69; background: #e8f7f0; }
.map-stage { position: relative; min-height: 330px; overflow: hidden; background: linear-gradient(145deg,#edf3fb 0%,#dfeaf8 48%,#e7f3ee 100%); border: 1px solid #d8e3f2; border-radius: 13px; }
.map-stage::before, .map-stage::after { content: ""; position: absolute; pointer-events: none; opacity: .42; }
.map-stage::before { inset: 18% -10% 18%; border-top: 1px dashed #a9c0db; border-bottom: 1px dashed #b5c9dc; transform: rotate(-11deg); }
.map-stage::after { width: 62%; height: 80%; left: 18%; top: 10%; border: 1px solid rgba(125,161,195,.45); border-radius: 50%; transform: rotate(24deg); }
.map-marker { position: absolute; z-index: 2; display: flex; align-items: center; gap: 4px; transform: translate(-50%, -50%); padding: 5px 8px; color: #fff; background: var(--primary); border: 2px solid #fff; border-radius: 99px; box-shadow: 0 5px 12px rgba(22,73,164,.28); cursor: pointer; }
.map-marker:hover { background: var(--primary-dark); transform: translate(-50%, -50%) scale(1.04); }
.map-marker span { font-size: 14px; }
.map-marker b { max-width: 110px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.map-estate-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 14px; }
.map-estate-card { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.map-estate-card:hover { border-color: #b5cafa; background: #fbfcff; }
.map-estate-cover { width: 84px; height: 62px; flex: 0 0 auto; overflow: hidden; background: #e8eef8; border-radius: 7px; }
.map-estate-cover img { width: 100%; height: 100%; object-fit: cover; }
.map-estate-card > div:nth-child(2) { min-width: 0; flex: 1; }
.map-estate-card h2 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.map-estate-card p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.map-estate-card strong { color: #e15d55; font-size: 12px; }
.map-estate-card > span { color: var(--primary); font-size: 11px; white-space: nowrap; }
.phone-change-card { max-width: 700px; }
.phone-change-hero { display: flex; align-items: center; gap: 12px; margin: -26px -26px 20px; padding: 22px 26px; color: #fff; background: linear-gradient(135deg,#182d68,#315df5 65%,#7287ff); border-radius: 16px 16px 0 0; }
.phone-change-hero .account-icon { color: var(--primary); background: #fff; }
.phone-change-hero h1 { margin: 0; color: #fff; font-size: 21px; }
.phone-change-hero p { margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.current-phone { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 15px; color: var(--muted); background: #f6f8fc; border-radius: 10px; }
.current-phone strong { color: var(--ink); }
.current-phone small { grid-column: 1 / -1; color: #8a97aa; font-size: 11px; }
.result-wrap { display: grid; place-items: start center; min-height: 560px; }
.result-card { width: min(590px, 100%); padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.result-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; border-radius: 50%; font-size: 30px; font-weight: 800; }
.success-result .result-icon { background: #17a673; }.failed-result .result-icon { background: #e34d59; }.pending-result .result-icon { background: #f59e0b; }
.result-card h1 { margin: 0; font-size: 23px; }.result-card > p { margin: 7px 0 22px; color: var(--muted); }
.result-info { display: grid; gap: 0; margin-bottom: 23px; padding: 9px 14px; text-align: left; background: #f7f9fc; border-radius: 10px; }
.result-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #e9edf3; font-size: 12px; }.result-info > div:last-child { border-bottom: 0; }.result-info span { color: var(--muted); }.result-info strong { color: var(--ink); }.result-info .amount { color: #e45d54; }

@media (max-width: 1120px) {
  .container { width: min(1060px, calc(100% - 40px)); }
  .header-inner { gap: 20px; }
  .main-nav { gap: 17px; }
  .header-actions { gap: 10px; }
  .site-select-wrap select { max-width: 82px; }
  .listing-grid, .list-page-grid .listing-grid { grid-template-columns: 1fr; }
  .header-actions .utility-link { display: none; }
  .publish-select-grid, .site-list { grid-template-columns: repeat(2, 1fr); }
  .quick-panel { grid-template-columns: 1fr; }
  .map-estate-list { grid-template-columns: 1fr; }
}
