/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: transparent; color: #333; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #0f0c29, #1a1a2e, #16213e);
  color: #fff;
  border-bottom: 1px solid rgba(233, 69, 96, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 10%;
}
.nav-brand {
  font-size: 1.7em;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
  transition: transform .2s;
}
.nav-brand:hover {
  transform: scale(1.06);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  transition: color .2s, transform .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #faad14;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links .btn:hover {
  transform: scale(1.06);
}

/* Nav right (bell + user) */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  min-width: 140px;
}
.nav-right .btn {
  font-size: 1.05em;
  font-weight: 700;
  padding: 8px 24px;
}

/* Bell icon */
.nav-bell {
  position: relative;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color .2s, transform .2s;
}
.nav-bell:hover {
  color: #faad14;
  transform: scale(1.1);
}
.bell-icon {
  display: block;
}

/* Bell red badge */
.bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  pointer-events: none;
}

/* Nav badge (商城订单红点) */
.nav-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
}

/* User dropdown */
/* Nav dropdown (商城) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 199;
}
.nav-dropdown-trigger {
  color: #aaa;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, transform .2s, background .2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: #faad14;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.06);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 130px;
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.88em;
  padding: 10px 18px;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #faad14;
}

.nav-user-dropdown {
  position: relative;
}
.nav-user-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 199;
}
.nav-user-trigger {
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-user-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 130px;
  overflow: hidden;
  z-index: 200;
}
.nav-user-dropdown:hover .nav-user-menu {
  display: block;
}
.nav-user-menu a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85em;
  padding: 10px 16px;
  transition: background .15s, color .15s;
}
.nav-user-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-user-menu a.nav-logout {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #888;
}
.nav-user-menu a.nav-logout:hover {
  color: #ff4d4f;
}

/* Announce bar */
.announce-bar {
  background: #1a1a2e;
  border-bottom: 1px solid rgba(250, 173, 20, 0.3);
}
.announce-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
}
.announce-icon {
  flex-shrink: 0;
  font-size: 1em;
}
.announce-text {
  flex: 1;
  color: #fff;
  font-size: 0.88em;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4em;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity .15s;
}
.announce-close:hover {
  opacity: 1;
}

/* Section notice (板块常驻通知) */
.section-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-left: 4px solid #faad14;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.92em;
  color: #614700;
}
.section-notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.section-notice-text {
  flex: 1;
  line-height: 1.6;
}

/* Side ads */
.ad-stack {
  position: fixed;
  top: 56px; /* overridden in mobile @media below */
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 200px;
}
.ad-stack-left { left: 0; align-items: flex-start; }
.ad-stack-right { right: 0; align-items: flex-end; }
.ad-stack-left img { border-radius: 0 6px 6px 0; }
.ad-stack-right img { border-radius: 6px 0 0 6px; }

.side-ad {
  position: relative;
  width: 160px;
}
.side-ad a { display: block; }
.side-ad img {
  width: 100%;
  display: block;
}
.side-ad.has-custom-width {
  width: auto;
}
.side-ad.has-custom-width img {
  border-radius: 6px;
}
@media (max-width: 1400px) {
  .side-ad { display: none !important; }
}

/* Ad close button */
.ad-close-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  padding: 0;
  z-index: 55;
}
.ad-close-btn:hover {
  background: #ff4d4f;
}

/* Ad edit mode (staff only) */
.side-ad.ad-editable {
  cursor: grab;
  border: 1px dashed transparent;
  transition: border-color .2s;
}
.side-ad.ad-editable:hover {
  border-color: rgba(255,255,255,0.5);
}
.ad-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: nwse-resize;
  border-radius: 8px 0 0 0;
  display: none;
}
.side-ad.ad-editable:hover .ad-resize-handle {
  display: block;
}
.ad-save-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  padding: 3px 8px;
  font-size: 0.7em;
  background: rgba(0,0,0,0.7);
  color: #faad14;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  display: none;
  z-index: 60;
}
.side-ad.ad-editable:hover .ad-save-btn {
  display: block;
}
.ad-save-btn:hover {
  background: rgba(0,0,0,0.9);
  color: #ffc53d;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; flex: 1; width: 100%; background: rgba(255,253,240,0.94); border-radius: 8px; margin-top: 16px; margin-bottom: 16px; }

/* Footer */
.footer { text-align: center; padding: 20px; color: #999; font-size: 0.85em; border-top: 1px solid #e8e0d0; margin-top: auto; background: rgba(255,253,240,0.94); }

/* Alert */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.95em; }
.alert-error, .alert-danger { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-warning { background: #fffbe6; border: 1px solid #ffe58f; color: #d48806; }
.alert-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }

/* Buttons */
.btn { display: inline-block; padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9em; text-decoration: none; color: #333; background: #e8e8e8; transition: opacity .2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: #1a1a2e; color: #fff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-edit { background: #1a1a2e; color: #fff; }
.btn-edit:hover { background: #faad14; color: #1a1a2e; opacity: 1; }
.btn-warning { background: #faad14; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 4px 12px; font-size: 0.85em; }
.btn-xs { padding: 2px 8px; font-size: 0.8em; }
.btn-lg { padding: 12px 32px; font-size: 1.05em; }

/* Combo box */
.combo-box { position: relative; }
.combo-input { width: 100%; }
.combo-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  max-height: 200px; overflow-y: auto;
  background: #fff; border: 1px solid #d9d9d9; border-top: none;
  border-radius: 0 0 6px 6px;
  list-style: none; margin: 0; padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.combo-dropdown li {
  padding: 8px 12px; cursor: pointer; font-size: 0.9em;
  transition: background .1s;
}
.combo-dropdown li:hover,
.combo-dropdown li.active { background: #e6f7ff; color: #1890ff; }
.combo-dropdown li mark { background: #fff3b0; color: #1a1a2e; }
.combo-empty { color: #bbb; cursor: default !important; }

/* Order layout */
.order-layout { display: flex; gap: 20px; align-items: flex-start; }
.order-sidebar {
  width: 200px; flex-shrink: 0;
  background: #1a1a2e; border-radius: 8px; overflow: hidden;
}
.order-tab {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: 0.88em; color: #888;
  text-decoration: none; transition: all .15s;
  border-left: 3px solid transparent;
}
.order-tab:hover { color: #ccc; background: rgba(255,255,255,0.05); }
.order-tab.active {
  color: #1a1a2e; background: #fff;
  border-left-color: #faad14; font-weight: 600;
}
.order-tab-count {
  background: rgba(255,255,255,0.12); color: #aaa;
  padding: 2px 8px; border-radius: 10px; font-size: 0.8em; font-weight: 600;
  min-width: 22px; text-align: center;
}
.order-tab.active .order-tab-count { background: #f0f0f0; color: #333; }
.order-content { flex: 1; min-width: 0; }
.order-content .card h2 { display: flex; align-items: center; gap: 8px; }
.order-content .card h2 .order-tab-count {
  background: #f0f0f0; color: #666;
  padding: 2px 8px; border-radius: 10px; font-size: 0.75em; font-weight: 600;
}
@media (max-width: 768px) {
  .order-layout { flex-direction: column; }
  .order-sidebar { width: 100%; display: flex; overflow-x: auto; }
  .order-tab { flex-shrink: 0; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .order-tab.active { border-left: none; border-bottom-color: #faad14; }
}

/* Buy overlay */
.buy-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.45); justify-content: center; align-items: center;
}
.buy-overlay.open { display: flex; }
.buy-dialog {
  background: #fff; border-radius: 14px; padding: 28px 32px;
  width: 380px; max-width: 90vw; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  text-align: center;
}
.buy-dialog-title { font-size: 1.1em; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; }
.buy-dialog-info {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-bottom: 8px; font-size: 0.95em;
}
.buy-captcha-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* Cards */
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; min-height: 32px; }
.card-header h2 { margin: 0; font-size: 1.05em; line-height: 32px; }
.card-header .btn { flex-shrink: 0; }

/* Home */
.home-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 20px; align-items: start; }
.home-main { min-height: 360px; }
.home-sidebar { display: flex; flex-direction: column; gap: 20px; }
.home-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.home-card h2 { font-size: 1.1em; margin-bottom: 12px; }
.home-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.home-card-header h2 { margin-bottom: 0; }
.home-card-more { color: #aaa; text-decoration: none; font-size: 0.85em; font-weight: 600; padding: 4px 12px; border-radius: 6px; transition: color .2s; }
.home-card-more:hover { color: #faad14; }

.hot-posts-placeholder {
  border: 2px dashed #e8e8e8; border-radius: 8px;
  text-align: center; color: #999; padding: 48px 0; margin-top: 8px;
}

/* Success scroll */
.success-scroll-wrap {
  max-height: 200px; overflow: hidden;
}
.success-scroll-inner {
  animation: successScroll 30s linear infinite;
}
.success-scroll-wrap:hover .success-scroll-inner { animation-play-state: paused; }
.success-item {
  padding: 6px 0; font-size: 0.85em;
  border-bottom: 1px solid #f0f0f0;
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.success-name { color: #999; }
.success-conn { color: #333; }
.success-action { font-weight: 600; }
.success-action.order { color: #52c41a; }
.success-action.match { color: #e94560; }

@keyframes successScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


/* Forms */
.form-page { max-width: 460px; margin: 40px auto; }
.form-page h1 { text-align: center; margin-bottom: 20px; }
.form-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.9em; }
.form-input { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 0.95em; transition: border-color .2s; }
.form-input:focus { outline: none; border-color: #1a1a2e; box-shadow: 0 0 0 2px rgba(26,26,46,0.1); }
.form-footer { text-align: center; margin-top: 16px; font-size: 0.9em; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-label { font-size: 0.85em; color: #666; white-space: nowrap; }
.help-text { color: #999; font-size: 0.85em; }
.text-danger { color: #ff4d4f; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  align-items: center;
}
.filter-bar select {
  height: 34px;
  padding: 0 28px 0 14px;
  border: 1px dashed #bbb;
  border-radius: 17px;
  font-size: 0.82em;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23bbb'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  white-space: nowrap;
}
.filter-bar select:hover {
  border-color: #999;
  background: #fafafa;
}
.filter-bar select:focus {
  outline: none;
  border-style: solid;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 2px rgba(26,26,46,0.08);
}

/* ── Custom filter dropdown (pill button + scrollable panel) ── */
.filter-pill-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 14px;
  border: 1px dashed #bbb; border-radius: 17px;
  font-size: 0.82em; background: #fff; color: #666;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  max-width: 100%; box-sizing: border-box;
}
.filter-pill-btn:hover { border-color: #999; background: #fafafa; }
.filter-pill-btn:focus, .filter-pill-btn.open {
  outline: none; border-style: solid; border-color: #1a1a2e;
  box-shadow: 0 0 0 2px rgba(26,26,46,0.08);
}
.filter-pill-btn img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.filter-pill-btn .pill-arrow { font-size: 0.7em; color: #bbb; margin-left: 2px; transition: transform .2s; }
.filter-pill-btn.open .pill-arrow { transform: rotate(180deg); }

.filter-dropdown {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 9999;
  min-width: 160px; max-height: 220px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-dropdown.show { display: block; }

.filter-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 0.85em; color: #444;
  transition: background .12s; white-space: nowrap;
}
.filter-dropdown-item:hover, .filter-dropdown-item.hover { background: #f5f5f5; }
.filter-dropdown-item.selected { background: #f0f0f0; font-weight: 600; color: #1a1a2e; }
.filter-dropdown-item img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

.filter-pill-wrap {
  position: relative; flex-shrink: 0;
}

.filter-bar .btn {
  flex-shrink: 0;
}

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.table th { background: #fafafa; font-weight: 600; }
.table tr:hover { background: #fafafa; }

/* Status */
.status { padding: 2px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 500; }
.status-published, .status-active { background: #e6f7ff; color: #1890ff; }
.status-accepted, .status-in_progress { background: #fff7e6; color: #fa8c16; }
.status-completed, .status-approved, .status-success { background: #f6ffed; color: #52c41a; }
.status-cancelled, .status-closed, .status-removed, .status-rejected { background: #f5f5f5; color: #999; }
.status-dispute, .status-processing { background: #fff2f0; color: #ff4d4f; }
.status-pending_pay { background: #f6ffed; color: #52c41a; }
.status-publisher_done { background: #e6fffb; color: #13c2c2; }
.status-paid { background: #e6f7ff; color: #1890ff; }
.status-refund, .status-split { background: #fff2f0; color: #ff4d4f; }
.status-pay_to_receiver { background: #f6ffed; color: #52c41a; }
.status-reject { background: #f5f5f5; color: #999; }
.status-settled { background: #f6ffed; color: #52c41a; }
.status-unpaid { background: #fff1f0; color: #ff4d4f; }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8em; background: #f0f0f0; color: #666; }
.badge-type { background: #7a5e00; color: #fff; }
.badge-type-catch_shiny { background: #d4a017; color: #fff; }
.badge-type-char_level { background: #2b6cb0; color: #fff; }
.badge-type-pet_level { background: #2f855a; color: #fff; }
.badge-type-other { background: #7b5ea7; color: #fff; }
.badge-type-need_help { background: #8cc08c; color: #fff; }
.badge-type-offer_help { background: #7c5ce0; color: #fff; }
.badge-gender-male { background: #b3d9ff; color: #2b6cb0; }
.badge-gender-female { background: #ffd6e0; color: #c44569; }

/* Item lists */
.item-list { list-style: none; }
.item-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-list li:last-child { border-bottom: none; }
.item-list li a { text-decoration: none; color: #333; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-list li small { color: #999; }

/* Card list */
.card-list > .card-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; gap: 8px; }
.card-item:last-child { border-bottom: none; }
.card-item-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card-item-right { display: flex; gap: 8px; align-items: center; }
.price { font-size: 1.1em; font-weight: bold; color: #e94560; }
.text-muted { color: #999; font-size: 0.85em; }

/* ====== Requirement Card Grid ====== */
.requirement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.requirement-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.requirement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Colored accent bar at top */
.req-card-accent {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.req-accent-catch_shiny { background: linear-gradient(90deg, #d4a017, #f0c040); }
.req-accent-char_level  { background: linear-gradient(90deg, #2b6cb0, #5b9bd5); }
.req-accent-pet_level   { background: linear-gradient(90deg, #2f855a, #52c98a); }
.req-accent-other       { background: linear-gradient(90deg, #7b5ea7, #a78bdb); }

.req-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header: type badge + price */
.req-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.req-price {
  font-size: 1.3em;
  font-weight: 800;
  color: #e94560;
  font-variant-numeric: tabular-nums;
}

/* Publisher row */
.req-card-publisher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.req-publisher-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.req-pay-speed {
  margin-left: auto;
  flex-shrink: 0;
}

/* Detail line */
.req-card-detail {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.9em;
  padding: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Meta info */
.req-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.req-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: #666;
}
.req-meta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #aaa;
}
.req-meta-text {
  flex: 1;
}

/* Payment speed labels */
.pay-speed-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.92em;
  font-weight: 500;
}
.pay-speed-fast {
  background: #f6ffed;
  color: #389e0d;
}
.pay-speed-normal {
  background: #e6f7ff;
  color: #096dd9;
}
.pay-speed-slow {
  background: #fff7e6;
  color: #d48806;
}
.pay-speed-very-slow {
  background: #fff2f0;
  color: #cf1322;
}
.pay-speed-new {
  background: #f5f5f5;
  color: #999;
}

/* Footer: time + accept button */
.req-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}
.req-card-time {
  font-size: 0.8em;
  color: #bbb;
}
.req-accept-btn {
  padding: 6px 20px;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 6px;
}

/* ====== Match Card Grid ====== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.match-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.match-card-accent {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.match-accent-male   { background: linear-gradient(90deg, #3b82c4, #6db3f2); }
.match-accent-female { background: linear-gradient(90deg, #e4717a, #f4a0a8); }

.match-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-card-days {
  font-size: 0.78em;
  color: #bbb;
  margin-left: auto;
}

.match-card-intro {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* Bottom section pinned */
.match-card-bottom {
  margin-top: auto;
}

/* Meta row */
.match-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.match-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84em;
  color: #666;
}
.match-meta-item svg {
  flex-shrink: 0;
  color: #bbb;
}

/* Apply form */
.match-card-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.match-apply-input {
  flex: 1;
  font-size: 0.85em;
  padding: 7px 10px;
}
.match-apply-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

/* Keep old match-card-header for card display section */
.match-card-header { display: flex; gap: 6px; margin-bottom: 8px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-grid div { padding: 4px 0; }
.detail-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.action-card { background: #fafafa; border: 1px dashed #d9d9d9; }
.action-card h3 { margin-bottom: 10px; }

/* Page header */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.page-header h1 { margin: 0; }

/* Inline form */
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Invite */
.invite-box { text-align: center; }
.invite-code { font-size: 2em; font-weight: bold; color: #e94560; letter-spacing: 4px; padding: 10px 0; }
.invite-box code { background: #f5f5f5; padding: 4px 8px; border-radius: 4px; font-size: 0.85em; word-break: break-all; }

/* Profile */
.profile-section { margin-bottom: 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Empty */
.empty { color: #999; padding: 24px 0; text-align: center; }

/* Info bar */
.info-bar { background: #e6f7ff; padding: 8px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9em; }

/* Notification items */
.notif-item {
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread {
  background: #f0f7ff;
}
.notif-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  user-select: none;
}
.notif-head:hover {
  background: rgba(0,0,0,0.02);
}
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1890ff;
  flex-shrink: 0;
}
.notif-dot.read {
  background: transparent;
}
.notif-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}
.notif-title {
  flex: 1;
  font-size: 0.95em;
  font-weight: 500;
}
.notif-item.unread .notif-title {
  font-weight: 700;
  color: #1a1a2e;
}
.notif-time {
  font-size: 0.8em;
  color: #aaa;
  flex-shrink: 0;
}
.notif-arrow {
  font-size: 0.7em;
  color: #bbb;
  flex-shrink: 0;
  transition: transform .2s;
}
.notif-item.open .notif-arrow {
  transform: rotate(180deg);
}
.notif-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px 0 42px;
}
.notif-item.open .notif-body {
  max-height: 200px;
  padding: 0 20px 14px 42px;
}
.notif-content {
  color: #666;
  font-size: 0.9em;
  line-height: 1.65;
  margin: 0;
}
.notif-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.notif-link {
  color: #1890ff;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
}
.notif-link:hover {
  text-decoration: underline;
}
.notif-dismiss {
  margin-left: auto;
  padding: 4px 14px;
  border: none;
  border-radius: 4px;
  background: #e8e8e8;
  color: #666;
  font-size: 0.82em;
  cursor: pointer;
  transition: background .15s;
}
.notif-dismiss:hover {
  background: #d9d9d9;
  color: #333;
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section-header h2 {
  margin: 0;
}
.section-count {
  font-size: 0.85em;
  color: #999;
}

hr { border: none; border-top: 1px solid #e8e8e8; margin: 20px 0; }

/* Admin */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-num { font-size: 2em; font-weight: bold; color: #1a1a2e; }
.stat-label { color: #999; margin-top: 4px; }
.stat-warn .stat-num { color: #fa8c16; }
.stat-danger .stat-num { color: #ff4d4f; }
.admin-menu { display: flex; gap: 16px; }

/* Credit score */
.credit { font-weight: bold; padding: 2px 8px; border-radius: 4px; }
.credit-risk { color: #820014; background: #fff1f0; }
.credit-beginner { color: #873800; background: #fff7e6; }
.credit-reliable { color: #7a5e00; background: #fffbe6; }
.credit-senior { color: #135200; background: #f6ffed; }
.credit-legend { color: #004d20; background: #e6fff2; }
.badge-risk { background: #fff1f0; color: #820014; }
.badge-beginner { background: #fff7e6; color: #873800; }
.badge-reliable { background: #fffbe6; color: #7a5e00; }
.badge-senior { background: #f6ffed; color: #135200; }
.badge-legend { background: #e6fff2; color: #004d20; }

/* Credit trigger & hover tooltip */
.credit-trigger {
  position: relative;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.credit-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 300;
  white-space: normal;
}
.credit-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
}
.credit-trigger:hover .credit-tooltip {
  display: block;
}
/* Tip trigger & hover popup */
.tip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #888;
  font-size: 0.7em;
  font-weight: 700;
  cursor: default;
  vertical-align: middle;
  margin-left: 6px;
  user-select: none;
}
.tip-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 360px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 300;
  white-space: normal;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  text-align: left;
}
.tip-popup strong {
  display: block;
  margin-bottom: 4px;
  color: #1a1a2e;
  font-size: 0.95em;
}
.tip-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
}
.tip-trigger:hover .tip-popup {
  display: block;
}
.credit-tiers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.credit-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78em;
}
.credit-tier > span:first-child {
  font-weight: 700;
  color: #555;
}
.ct-badge {
  font-size: 0.9em;
  white-space: nowrap;
  color: #555;
}
.tier-legend { background: #e6fff2; }
.tier-senior { background: #f6ffed; }
.tier-reliable { background: #fffbe6; }
.tier-beginner { background: #fff7e6; }
.tier-risk { background: #fff2f0; }
.credit-score-line {
  font-size: 0.78em;
  color: #555;
  padding: 2px 0;
  text-align: center;
}
.credit-score-line strong {
  color: #1a1a2e;
}
.credit-tooltip-divider {
  border-top: 1px solid #f0f0f0;
  margin: 6px 0;
}
.credit-rule-compact {
  font-size: 0.8em;
  color: #888;
  padding: 2px 0;
  line-height: 1.6;
}
.credit-rule-compact span {
  display: inline-block;
  min-width: 40px;
  font-weight: 600;
  color: #666;
}

/* Profile hero */
.profile-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 28px 24px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.profile-hero-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #e94560; display: flex; align-items: center; justify-content: center;
  font-size: 1.3em; font-weight: bold; flex-shrink: 0;
}
.profile-hero-info { flex: 1; }
.profile-hero-info h2 { margin: 0 0 4px 0; font-size: 1.3em; }
.profile-hero-meta { display: flex; gap: 16px; font-size: 0.85em; color: #aaa; flex-wrap: wrap; }
.profile-hero-meta strong { font-weight: 600; }

.profile-hero-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
}
.ph-item {
  display: flex;
  align-items: center;
  padding: 6px 4px;
  gap: 8px;
}
.ph-label {
  font-size: 0.82em;
  color: #888;
  flex-shrink: 0;
}
.ph-value {
  font-size: 0.9em;
  font-weight: 500;
  color: #ddd;
}

.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin-top: 4px;
}
.phs-card {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 8px;
}
.phs-num {
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
}
.phs-label {
  font-size: 0.75em;
  color: #888;
  margin-top: 4px;
}


/* Menu grid */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.menu-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 10px; padding: 20px;
  text-decoration: none; color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow .2s;
}
.menu-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.menu-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.menu-icon { font-size: 1.6em; }
.menu-badge { font-size: 0.78em; padding: 2px 8px; border-radius: 10px; background: #f0f0f0; color: #999; }
.menu-badge-count { background: #e6f7ff; color: #1890ff; }
.menu-card-body h3 { font-size: 1.05em; margin: 0 0 4px 0; }
.menu-card-body p { font-size: 0.85em; color: #999; margin: 0; }

/* ── Profile XP row ── */
.profile-xp-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.profile-xp-progress {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.profile-xp-text {
  font-size: 0.7em; color: #999; white-space: nowrap;
}
.profile-xp-social {
  display: flex; align-items: center; gap: 24px; margin-left: 32px;
}
.profile-social-link {
  font-size: 0.95em; font-weight: 600; color: #999; text-decoration: none; white-space: nowrap;
}
.profile-social-link strong { color: #faad14; font-size: 1.15em; }
.profile-social-link:hover { color: #faad14; }

/* Credit tooltip: touch (focus) support */
.credit-trigger:focus-within .credit-tooltip,
.credit-trigger:focus .credit-tooltip { display: block; }
.credit-trigger { outline: none; }
.credit-trigger:focus-visible { outline: 2px solid #e94560; outline-offset: 2px; border-radius: 4px; }

/* My card display */
.my-card-display { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; }

/* Pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 0; }

/* Edit cards */
.edit-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.edit-card-icon { font-size: 1.5em; flex-shrink: 0; margin-top: 2px; }
.edit-card-body { flex: 1; }
.edit-card-body h3 { margin: 0 0 4px 0; font-size: 1em; }
.edit-card-desc { color: #999; font-size: 0.85em; margin: 0 0 8px 0; }
.edit-card-body .form-input { max-width: 400px; }

/* Publish form */
.publish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.publish-field label {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
}
.publish-field .form-input {
  width: 100%;
}

/* Slide panel */
.slide-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
  padding-top: 0; padding-bottom: 0;
  margin-top: 0;
  background: #f9f9f9;
  border-radius: 8px;
}
.slide-panel.open {
  max-height: 1200px;
  padding: 12px;
  margin-top: 12px;
  overflow-y: auto;
}

/* Transactions */
.tx-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.tx-summary-sm { grid-template-columns: repeat(3, 1fr); }

.tx-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow .2s;
}
.tx-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tx-card-icon { font-size: 1.6em; flex-shrink: 0; width: 40px; text-align: center; }
.tx-card-body { flex: 1; min-width: 0; }
.tx-card-label { font-size: 0.8em; color: #999; margin-bottom: 4px; }
.tx-card-num { font-size: 1.3em; font-weight: 700; color: #1a1a2e; }

.tx-card-out { border-left: 3px solid #ff4d4f; }
.tx-card-out .tx-card-num { color: #ff4d4f; }
.tx-card-in  { border-left: 3px solid #52c41a; }
.tx-card-in .tx-card-num  { color: #52c41a; }
.tx-card-balance-plus { border-left: 3px solid #1890ff; }
.tx-card-balance-plus .tx-card-num { color: #1890ff; }
.tx-card-balance-minus { border-left: 3px solid #fa8c16; }
.tx-card-balance-minus .tx-card-num { color: #fa8c16; }
.tx-card-plain { border-left: 3px solid #e8e8e8; }

/* Filter bar */
.tx-filter-card {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 10px; padding: 10px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 16px;
  flex-wrap: wrap; gap: 10px;
}
.tx-type-tabs { display: flex; gap: 4px; }
.tx-tab {
  padding: 7px 20px; font-size: 0.88em; color: #666; text-decoration: none;
  border-radius: 20px; background: transparent; transition: all .2s;
}
.tx-tab:hover { background: #f0f0f0; }
.tx-tab.active { background: #1a1a2e; color: #fff; }

.tx-month-select {
  padding: 7px 14px; border: 1px solid #e8e8e8; border-radius: 20px;
  font-size: 0.88em; background: #fafafa; color: #333; cursor: pointer;
}

/* Table card */
.tx-table-card { padding: 0; overflow: hidden; }
.tx-table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px; }
.tx-table-header h2 { margin: 0; font-size: 1.05em; }
.tx-table-count { font-size: 0.85em; color: #999; }
.tx-table { margin: 0; }
.tx-table thead th { background: #fafafa; color: #888; font-weight: 500; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.5px; }
.tx-table tbody td { padding: 12px 12px; }
.tx-table tbody tr { transition: background .15s; }
.tx-table tbody tr:hover { background: #f5f7fa; }

.tx-time { white-space: nowrap; }
.tx-time small { display: block; color: #999; font-size: 0.8em; margin-top: 2px; }
.tx-order-link { color: #1890ff; text-decoration: none; font-weight: 500; }
.tx-order-link:hover { text-decoration: underline; }
.tx-user { color: #555; }
.tx-amount { font-weight: 600; font-variant-numeric: tabular-nums; }

.tx-tag { font-size: 0.78em; padding: 2px 10px; border-radius: 10px; font-weight: 500; }
.tx-tag-in { background: #f6ffed; color: #52c41a; }
.tx-tag-out { background: #fff2f0; color: #ff4d4f; }
.tx-in { color: #52c41a; }
.tx-out { color: #ff4d4f; }

/* Empty */
.tx-empty { text-align: center; padding: 40px 20px; }
.tx-empty-icon { font-size: 2.5em; margin-bottom: 10px; opacity: 0.4; }
.tx-empty p { color: #999; }

/* Dispute form */
.dispute-order-card {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: #fff; border-radius: 10px; padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 16px;
}
.doc-item { display: flex; flex-direction: column; gap: 2px; }
.doc-label { font-size: 0.78em; color: #999; }
.doc-value { font-weight: 600; color: #1a1a2e; }

.dispute-form-card { padding: 24px 28px; }
.dispute-form-section { margin-bottom: 22px; }
.dispute-form-section h3 { font-size: 1em; margin: 0 0 6px 0; display: flex; align-items: center; gap: 8px; }
.dispute-form-section textarea { resize: vertical; min-height: 80px; }

.required { color: #ff4d4f; font-weight: normal; }
.section-desc { font-size: 0.85em; color: #999; margin: 0 0 10px 0; }

.file-count-badge {
  font-size: 0.78em; font-weight: normal; color: #999;
  background: #f5f5f5; padding: 2px 10px; border-radius: 10px;
}

.file-actions { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.btn-outline {
  background: #fff; color: #1a1a2e; border: 2px dashed #d9d9d9;
  padding: 6px 16px; border-radius: 8px; transition: all .2s;
}
.btn-outline:hover { border-color: #1a1a2e; background: #fafafa; }

.preview-area { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.preview-card {
  position: relative; width: 100px;
  border-radius: 8px; overflow: hidden; border: 1px solid #e8e8e8;
}
.preview-img { width: 100px; height: 100px; object-fit: cover; display: block; }
.preview-name {
  display: block; font-size: 0.7em; color: #999; padding: 2px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.preview-remove:hover { background: rgba(255,77,79,0.8); }

.dispute-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fffbe6; border-left: 3px solid #faad14;
  border-radius: 6px; padding: 12px 16px; margin-bottom: 20px;
}
.notice-icon { font-size: 1.2em; flex-shrink: 0; }
.notice-text { font-size: 0.88em; color: #8c6d00; line-height: 1.5; }

/* Evidence images */
.tx-evidence-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.evidence-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid #e8e8e8; cursor: pointer; transition: transform .15s; }
.evidence-thumb:hover { transform: scale(1.05); }

/* ========== Dispute Detail ========== */

.dd-page {
  max-width: 860px;
  margin: 0 auto;
}

/* Header */
.dd-header {
  margin-bottom: 20px;
}
.dd-back {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-size: 0.85em;
  margin-bottom: 8px;
  transition: color .15s;
}
.dd-back:hover {
  color: #1890ff;
}
.dd-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dd-title-row h1 {
  margin: 0;
  font-size: 1.5em;
  color: #1a1a2e;
}
.dd-subtitle {
  margin: 6px 0 0;
  font-size: 0.85em;
  color: #999;
}

/* Status badge */
.dd-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 600;
}
.dd-badge-processing { background: #fff2f0; color: #ff4d4f; }
.dd-badge-refund { background: #fff2f0; color: #ff4d4f; }
.dd-badge-split { background: #fff7e6; color: #fa8c16; }
.dd-badge-pay_to_receiver { background: #f6ffed; color: #52c41a; }
.dd-badge-reject { background: #f5f5f5; color: #8c8c8c; }

/* Party cards */
.dd-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.dd-party {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dd-party-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dd-avatar-claimant { background: #1890ff; }
.dd-avatar-respondent { background: #fa541c; }
.dd-party-body {
  flex: 1;
  min-width: 0;
}
.dd-party-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.78em;
  font-weight: 600;
  margin-bottom: 6px;
}
.tag-claimant { background: #e6f7ff; color: #1890ff; }
.tag-respondent { background: #fff2f0; color: #fa541c; }
.dd-party-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-party-username {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-party-credit {
  margin-top: 10px;
  font-size: 0.85em;
  color: #666;
}

/* Order summary */
.dd-order-bar {
  background: #fff;
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  display: flex;
}
.dd-order-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px;
  border-right: 1px solid #f0f0f0;
}
.dd-order-item:first-child { padding-left: 0; }
.dd-order-item:last-child { border-right: none; padding-right: 0; }
.dd-order-label {
  font-size: 0.78em;
  color: #999;
}
.dd-order-item a {
  font-weight: 600;
  color: #1890ff;
  text-decoration: none;
  font-size: 0.95em;
}
.dd-order-item a:hover { text-decoration: underline; }
.dd-order-amount {
  font-size: 1.1em;
  font-weight: 700;
  color: #e94560;
}

/* Content: reason + evidence */
.dd-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.dd-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dd-card-title {
  font-size: 0.95em;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}
.dd-card-title em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.85em;
  color: #999;
}

/* Reason */
.dd-reason-box {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.75;
  font-size: 0.93em;
  color: #5c3d00;
  word-break: break-word;
}
.dd-reason-box p { margin: 0; }
.dd-evidence-text {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.dd-evidence-text h4 {
  font-size: 0.82em;
  color: #999;
  margin-bottom: 6px;
  font-weight: 600;
}
.dd-evidence-text p {
  color: #555;
  font-size: 0.9em;
  line-height: 1.65;
  margin: 0;
  word-break: break-word;
}

/* Evidence images */
.dd-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.dd-img-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.dd-img-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform .15s;
}
.dd-img-thumb:hover {
  transform: scale(1.05);
}

/* Verdict buttons */
.dd-verdict-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

/* Card meta */
.dd-card-meta {
  margin-top: 12px;
  font-size: 0.82em;
  color: #999;
}

/* Resolved info */
.dd-resolved-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dd-resolved-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.9em;
  color: #555;
}
.dd-resolved-label {
  font-size: 0.88em;
  color: #999;
  min-width: 70px;
}
.dd-resolved-amount {
  color: #e94560;
  font-size: 1.1em;
}

/* Responsive */
/* ================================================================
   Mobile Responsive — 768px (tablet / small screen)
   ================================================================ */
@media (max-width: 768px) {
  /* ── Container ── */
  .container { padding: 10px 8px; margin-top: 6px; margin-bottom: 6px; border-radius: 0; }

  /* ── Navbar: 2-layer ── */
  .navbar { overflow: visible; }
  .nav-inner {
    height: auto; flex-wrap: wrap; padding: 4px 8px; gap: 0;
    justify-content: space-between;
  }
  .nav-brand { font-size: 1em; margin-right: 0; order: 1; }
  .nav-right { order: 2; min-width: auto; gap: 4px; }
  .nav-right .btn { font-size: 0.78em; padding: 4px 10px; }
  .nav-links {
    order: 3; flex: 1 1 100%; width: 100%;
    overflow: visible; gap: 2px; row-gap: 4px;
    justify-content: flex-start; flex-wrap: wrap; padding: 4px 0 8px;
  }
  .nav-links a { font-size: 0.72em; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
  .nav-dropdown-trigger { font-size: 0.72em; padding: 3px 7px; white-space: nowrap; }

  /* ── Cards ── */
  .card { padding: 10px 12px; margin-bottom: 10px; }

  /* ── Page header ── */
  .page-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
  .page-header h1 { font-size: 1em; }

  /* ── Forms ── */
  .form-page { max-width: 100%; margin: 12px 0; }
  .form-card { padding: 12px; }
  .form-group { margin-bottom: 10px; }

  /* ── Tables ── */
  .tx-table-card { overflow-x: auto; }
  .tx-table { min-width: 560px; font-size: 0.82em; }

  /* ── Grids ── */
  .home-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-grid { grid-template-columns: 1fr !important; }
  .detail-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
  .profile-grid { grid-template-columns: 1fr; gap: 4px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .publish-grid { grid-template-columns: 1fr; gap: 8px; }

  /* ── Filter bar ── */
  /* ── Filter inputs: full width ── */
  .filter-bar { flex-direction: column; gap: 6px; padding: 8px 12px; }
  .filter-bar .btn { align-self: flex-start; }
  .form-input,
  form input[type="text"],
  form input[type="number"],
  form input[type="search"] { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  form .form-input { font-size: 0.9em; padding: 7px 10px; }
  .filter-pill-wrap { width: 100%; }
  .filter-pill-btn { width: 100%; justify-content: space-between; }
  .filter-dropdown { left: 0; right: 0; min-width: 0; }
  .combo-dropdown { max-height: 160px; -webkit-overflow-scrolling: touch; }

  /* ── Requirement / Match ── */
  .requirement-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  .match-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

  /* ── Transaction ── */
  .tx-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tx-summary-sm { grid-template-columns: 1fr; }
  .tx-filter-card { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; }
  .tx-type-tabs { justify-content: center; flex-wrap: wrap; }
  .tx-filter-card form { text-align: center; }
  .tx-card { padding: 12px 14px; }

  /* ── Card list ── */
  .card-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; }
  .card-item-right { align-self: flex-end; }

  /* ── Edit cards ── */
  .edit-card { flex-direction: column; gap: 8px; padding: 14px 16px; }

  /* ── Profile hero ── */
  .profile-hero { padding: 14px 12px 12px; border-radius: 8px; }
  .profile-hero-top { gap: 10px; margin-bottom: 12px; }
  .profile-avatar { width: 40px; height: 40px; font-size: 1em; }
  .profile-hero-details { grid-template-columns: 1fr; padding-top: 10px; }
  .profile-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; padding-top: 10px; }
  .phs-num { font-size: 1.1em; }
  .phs-card { padding: 8px 6px; }

  .profile-xp-row { gap: 8px; }
  .profile-xp-social { gap: 16px; }
  .profile-social-link { font-size: 0.85em; }
  .profile-social-link strong { font-size: 1em; }
  .profile-hero-meta { gap: 10px; font-size: 0.8em; }
  .credit-tooltip { left: auto; right: 0; transform: none; min-width: 200px; }
  .credit-tooltip::before { left: auto; right: 20px; }
  /* ── Dispute ── */
  .dd-parties { grid-template-columns: 1fr; gap: 10px; }
  .dd-party { padding: 16px; }
  .dd-order-bar { flex-direction: column; gap: 8px; padding: 12px 16px; }
  .dd-order-item { border-right: none; padding: 0 0 8px 0; border-bottom: 1px solid #f0f0f0; }
  .dd-order-item:last-child { border-bottom: none; padding-bottom: 0; }
  .dd-content { grid-template-columns: 1fr; gap: 10px; }
  .dd-card { padding: 14px 16px; }
  .dd-verdict-btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dispute-order-card { flex-direction: column; gap: 12px; padding: 12px 16px; }

  /* ── Accept page ── */
  .accept-hero-body { padding: 14px 16px; }
  .accept-price-num { font-size: 2.2em; }
  .accept-price-row { padding: 4px 0 12px; }
  .accept-info-cols { grid-template-columns: 1fr; gap: 10px; }
  .accept-info-card { padding: 14px 16px; }
  .accept-submit-row { flex-direction: column; align-items: stretch; }
  .accept-captcha-input { max-width: none; }
  .accept-verify-card { padding: 16px 18px; }

  /* ── Modals ── */
  .buy-dialog { width: 90vw; padding: 16px; }

  /* ── Footer ── */
  .footer { padding: 10px; font-size: 0.75em; }

  /* ── Misc spacing ── */
  .section-header { margin-bottom: 8px; }
  hr { margin: 12px 0; }
}

/* ================================================================
   Mobile Responsive — 480px (phone)
   ================================================================ */
@media (max-width: 480px) {
  /* ── Container ── */
  .container { padding: 8px 6px; margin-top: 2px; }

  /* ── Nav bar: 2-layer compact ── */
  .nav-inner { height: auto; padding: 3px 6px; gap: 0; }
  .navbar { overflow: visible; }
  .nav-brand { font-size: 0.95em; letter-spacing: 1px; }
  .nav-links a { font-size: 0.68em; padding: 2px 6px; border-radius: 3px; }
  .nav-dropdown-trigger { font-size: 0.68em; padding: 2px 6px; }
  .nav-user-trigger { font-size: 0.75em; }
  .nav-right .btn { font-size: 0.72em; padding: 3px 8px; }

  /* ── Buttons ── */
  .btn { padding: 8px 14px; font-size: 0.88em; }
  .btn-sm { padding: 5px 10px; font-size: 0.82em; }
  .btn-xs { padding: 3px 8px; font-size: 0.78em; }

  /* ── Cards ── */
  .card { padding: 8px 10px; margin-bottom: 8px; border-radius: 6px; }

  /* ── Grids → 1col ── */
  .menu-grid { grid-template-columns: 1fr; gap: 6px; }
  .admin-stats { grid-template-columns: 1fr; gap: 6px; }
  .tx-summary { grid-template-columns: 1fr; gap: 6px; }
  .requirement-grid { grid-template-columns: 1fr; gap: 8px; }
  .match-grid { grid-template-columns: 1fr; gap: 8px; }

  /* ── Forms ── */
  .form-card { padding: 10px; }
  .form-group label { font-size: 0.85em; }
  .form-input { padding: 6px 10px; font-size: 0.9em; }

  /* ── Page header ── */
  .page-header h1 { font-size: 0.95em; }

  /* ── Profile hero ── */
  .profile-hero { padding: 12px 10px 10px; }
  .profile-hero-top { flex-direction: column; text-align: center; gap: 8px; }
  .profile-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .phs-card { padding: 8px 4px; }
  .phs-num { font-size: 1em; }
  .phs-label { font-size: 0.7em; }
  .profile-hero-info h2 { font-size: 1.1em; }
  .profile-xp-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .profile-xp-progress { width: 100%; }
  .profile-xp-social { gap: 20px; width: 100%; justify-content: flex-start; }
  .profile-social-link { font-size: 0.9em; }
  .profile-hero-details { grid-template-columns: 1fr; gap: 0; }
  .ph-item { padding: 5px 2px; }
  .credit-tooltip { position: fixed; top: 50%; left: 5vw; right: 5vw; transform: translateY(-50%); min-width: auto; max-height: 80vh; overflow-y: auto; z-index: 999; }
  .credit-tooltip::before { display: none; }
  .profile-media-section { justify-content: center; }
  .profile-hero-meta { flex-direction: column; gap: 8px; }

  .profile-hero-top > div:last-child { width: 100%; display: flex; gap: 8px; justify-content: center; }
  .profile-hero-top > div:last-child .btn { flex: 1; text-align: center; }
  /* ── Tables ── */
  .tx-table { min-width: 440px; font-size: 0.78em; }
  .tx-table thead th { font-size: 0.75em; }

  /* ── Modals ── */
  .buy-dialog { width: 94vw; padding: 14px 10px; border-radius: 8px; }

  /* ── DD ── */
  .dd-verdict-btns { grid-template-columns: 1fr; gap: 6px; }
  .dd-party { padding: 12px 14px; gap: 10px; }
  .dd-party-avatar { width: 36px; height: 36px; font-size: 1em; }
  .dd-card { padding: 12px 14px; }
  .dd-order-bar { padding: 10px 12px; }

  /* ── Accept ── */
  .accept-hero-body { padding: 12px 14px; }
  .accept-price-num { font-size: 1.8em; }
  .accept-info-card { padding: 12px 14px; }

  /* ── Lightbox / overlays ── */
  .lightbox-close { top: 8px; right: 10px; font-size: 1.3em; }

  /* ── Announce bar ── */
  .announce-inner { padding: 4px 8px; }
  .announce-text { font-size: 0.72em; }
}

/* ====== Accept page ====== */
.accept-page {
  max-width: 780px;
  margin: 0 auto;
}

.accept-back {
  margin-bottom: 20px;
}

/* Hero card */
.accept-hero {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.accept-hero-accent {
  height: 5px;
  width: 100%;
}
.accept-accent-catch_shiny { background: linear-gradient(90deg, #d4a017, #f0c040, #d4a017); }
.accept-accent-char_level  { background: linear-gradient(90deg, #2b6cb0, #5b9bd5, #2b6cb0); }
.accept-accent-pet_level   { background: linear-gradient(90deg, #2f855a, #52c98a, #2f855a); }
.accept-accent-other       { background: linear-gradient(90deg, #7b5ea7, #a78bdb, #7b5ea7); }

.accept-hero-body {
  padding: 28px 32px;
}

.accept-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.accept-type-badge {
  font-size: 0.88em;
  padding: 4px 14px;
  border-radius: 6px;
}
.accept-time {
  font-size: 0.82em;
  color: #bbb;
}

/* Price - the star of the page */
.accept-price-row {
  text-align: center;
  padding: 8px 0 20px;
}
.accept-price-symbol {
  font-size: 2em;
  font-weight: 300;
  color: #e94560;
  vertical-align: top;
  margin-right: 4px;
}
.accept-price-num {
  font-size: 3.2em;
  font-weight: 800;
  color: #e94560;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

/* Description */
.accept-desc-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid #f0f0f0;
}
.accept-desc-label {
  font-size: 0.78em;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.accept-desc-text {
  font-size: 0.95em;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* Info columns */
.accept-info-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.accept-info-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.accept-info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9em;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
}
.accept-info-icon {
  display: flex;
  align-items: center;
  color: #999;
}

/* Publisher section */
.accept-publisher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.accept-publisher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #3a3a5e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1em;
  flex-shrink: 0;
}
.accept-publisher-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.accept-publisher-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #1a1a2e;
}

/* Info stat rows */
.accept-info-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #fafafa;
}
.accept-info-stat:last-child {
  border-bottom: none;
}
.accept-stat-label {
  font-size: 0.85em;
  color: #999;
}
.accept-stat-value {
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
}
.accept-stat-dim {
  color: #bbb;
  font-weight: 400;
  font-size: 0.9em;
}

/* Verification card */
.accept-verify-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.accept-verify-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.accept-verify-header > span:nth-child(2) {
  font-weight: 700;
  font-size: 0.95em;
  color: #1a1a2e;
}
.accept-verify-hint {
  font-size: 0.82em;
  color: #bbb;
  margin-left: auto;
}

.accept-verify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accept-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accept-captcha-row img {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  width: 180px;
  height: 50px;
  cursor: pointer;
  transition: border-color .2s;
}
.accept-captcha-row img:hover {
  border-color: #1a1a2e;
}

.accept-submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.accept-captcha-input {
  flex: 1;
  max-width: 240px;
  padding: 10px 14px;
  font-size: 1em;
}
.accept-submit-btn {
  padding: 10px 32px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .accept-hero-body {
    padding: 20px;
  }
  .accept-price-num {
    font-size: 2.4em;
  }
  .accept-price-symbol {
    font-size: 1.5em;
  }
  .accept-info-cols {
    grid-template-columns: 1fr;
  }
  .accept-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .accept-captcha-input {
    max-width: none;
  }
  .accept-captcha-row img {
    width: 140px;
    height: 40px;
  }
}

/* ---- Level badges ---- */
.lv-badge {
  display: inline-block; font-size: 0.65em; padding: 0 6px; border-radius: 3px;
  font-weight: 600; white-space: nowrap; vertical-align: middle;
  background: transparent; line-height: 1.5;
}

/* Shimmer animations */
@keyframes shimmer-purple {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer-gold {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.shimmer-purple {
  background: linear-gradient(90deg, #b37feb, #d3adf7, #f0e5ff, #d3adf7, #b37feb);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-purple 2.5s ease-in-out infinite;
  border-color: #b37feb !important;
  text-shadow: none;
}
.shimmer-gold {
  background: linear-gradient(90deg, #d48806, #faad14, #ffd666, #faad14, #d48806);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-gold 2.5s ease-in-out infinite;
  border-color: #faad14 !important;
  text-shadow: none;
}

/* Level tooltip */
.lv-tooltip-wrap { position: relative; display: inline-block; cursor: default; }
.lv-tooltip {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); z-index: 50; white-space: nowrap;
  font-size: 0.82em; min-width: 180px; margin-top: 8px;
}
.lv-tooltip-wrap:hover .lv-tooltip { display: block; }

/* XP toast */
.xp-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: #1a1a2e; color: #faad14; padding: 8px 20px; border-radius: 8px;
  font-weight: 700; font-size: 1em; z-index: 999;
  animation: xpToast 2s ease-out forwards; pointer-events: none;
}
@keyframes xpToast {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Success toast (green) */
.success-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 0.95em; z-index: 999;
  animation: xpToast 2s ease-out forwards; pointer-events: none;
}
