:root {
  --primary: #635bff;
  --primary-dark: #4f46e5;
  --primary-soft: #eeedff;
  --ink: #182033;
  --muted: #697386;
  --line: #e7eaf0;
  --surface: #ffffff;
  --background: #f7f8fc;
  --success: #12805c;
  --success-soft: #e8f7f0;
  --warning: #a15c07;
  --warning-soft: #fff5df;
  --danger: #c43d4b;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 2px 8px rgba(24, 32, 51, .04);
  --shadow-md: 0 14px 36px rgba(24, 32, 51, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 4% 4%, rgba(99, 91, 255, .07), transparent 26rem),
    radial-gradient(circle at 96% 30%, rgba(29, 180, 160, .05), transparent 25rem),
    var(--background);
  color: var(--ink);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }
h1 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.6px; }
h2 { margin: 0; }
::selection { background: #dcd9ff; color: #302a8c; }

.top {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(231, 234, 240, .85);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 10px rgba(24, 32, 51, .025);
  backdrop-filter: blur(16px);
}
.top-inner {
  display: flex;
  max-width: 1200px;
  min-height: 72px;
  margin: auto;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, #766dff, #5147e5);
  box-shadow: 0 7px 16px rgba(99, 91, 255, .24);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  place-items: center;
}
.brand-text { font-size: 19px; font-weight: 750; letter-spacing: -.4px; }
.top nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.top nav > a, .nav-logout {
  display: inline-flex;
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #505a6e;
  font-weight: 550;
  white-space: nowrap;
  align-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.top nav > a:hover, .nav-logout:hover { background: var(--primary-soft); color: var(--primary-dark); }
.top nav > a.nav-primary { background: var(--primary); color: #fff; }
.top nav > a.nav-primary:hover { background: var(--primary-dark); }
.inline { display: inline; margin: 0; }
.user-badge { color: var(--muted); font-size: 13px; white-space: nowrap; }

.container { width: min(1200px, 100%); min-height: calc(100vh - 154px); margin: 0 auto; padding: 38px 28px 52px; }
footer { padding: 20px 28px 26px; color: #8a93a5; text-align: center; font-size: 13px; }
footer span { display: inline-flex; align-items: center; gap: 8px; }
footer span::before { width: 5px; height: 5px; border-radius: 50%; background: #a8a2ff; content: ""; }

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 310px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: linear-gradient(125deg, #28224f 0%, #5145bb 53%, #7166eb 100%);
  box-shadow: 0 20px 46px rgba(55, 44, 135, .19);
  color: #fff;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  align-items: center;
  gap: 42px;
}
.hero::before, .hero::after { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; pointer-events: none; }
.hero::before { top: -180px; right: -80px; width: 430px; height: 430px; }
.hero::after { right: 160px; bottom: -210px; width: 360px; height: 360px; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; margin-bottom: 17px; color: #cfccff; font-size: 12px; font-weight: 700; letter-spacing: 2px; align-items: center; gap: 8px; }
.eyebrow::before { width: 18px; height: 2px; border-radius: 3px; background: #a9a2ff; content: ""; }
.hero h1 { max-width: 580px; margin-bottom: 14px; color: #fff; font-size: clamp(32px, 4.5vw, 47px); letter-spacing: -1.3px; }
.hero p { max-width: 590px; margin: 0 0 26px; color: #dedcf6; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { padding: 11px 20px; background: #fff; box-shadow: 0 8px 20px rgba(17, 12, 48, .17); color: #4d43bc; }
.hero .button:hover { background: #f4f2ff; color: #392fa5; }
.hero-note { display: flex; margin-top: 24px; color: #c5c1e7; font-size: 12px; flex-wrap: wrap; gap: 8px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { color: #85e4c1; content: "✓"; font-weight: 800; }
.hero-panel {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.hero-panel-title { display: flex; margin-bottom: 18px; color: #f3f2ff; font-size: 13px; font-weight: 650; align-items: center; justify-content: space-between; }
.live-dot { display: inline-flex; color: #b9f4da; font-size: 11px; align-items: center; gap: 6px; }
.live-dot::before { width: 6px; height: 6px; border-radius: 50%; background: #6ce0ac; box-shadow: 0 0 0 4px rgba(108,224,172,.12); content: ""; }
.flow-step { display: flex; padding: 11px 0; color: #e8e6f8; align-items: center; gap: 12px; }
.flow-step + .flow-step { border-top: 1px solid rgba(255,255,255,.1); }
.flow-number { display: grid; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: rgba(255,255,255,.13); color: #fff; font-size: 12px; font-weight: 700; place-items: center; }
.flow-step strong { display: block; color: #fff; font-size: 13px; }
.flow-step small { color: #c6c2e3; font-size: 11px; }

.section-heading { display: flex; margin: 36px 2px 18px; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.3px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.count-pill { padding: 4px 11px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 245px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { border-color: #d7d3ff; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-top { display: flex; margin-bottom: 15px; align-items: center; justify-content: space-between; }
.card-arrow { display: grid; width: 29px; height: 29px; border-radius: 9px; background: #f5f5fb; color: #8c87ba; place-items: center; transition: background .2s, color .2s; }
.card:hover .card-arrow { background: var(--primary-soft); color: var(--primary); }
.card h2 { margin: 0 0 9px; font-size: 19px; }
.card-description { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-bottom { margin-top: auto; padding-top: 20px; }
.meta { display: flex; margin: 0 0 15px; color: #7c8597; font-size: 12px; gap: 18px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta strong { color: #4a5468; font-weight: 650; }
.tag, .status { display: inline-flex; padding: 3px 10px; border-radius: 30px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.status-success { background: var(--success-soft); color: var(--success); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.status-danger { background: var(--danger-soft); color: var(--danger); }
.status-neutral { background: #f0f2f5; color: #647084; }

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(99, 91, 255, .15);
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.button:hover { background: var(--primary-dark); box-shadow: 0 7px 16px rgba(99, 91, 255, .22); color: #fff; transform: translateY(-1px); }
.button:active { box-shadow: none; transform: translateY(0); }
.button.secondary { border-color: #dedfeb; background: #fff; box-shadow: none; color: #505a70; }
.button.secondary:hover { border-color: #c9c5fa; background: #f7f6ff; color: var(--primary-dark); }
.button.danger { background: var(--danger); box-shadow: none; }
.button.danger:hover { background: #ad2f3d; }
.button.small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.button-block { width: 100%; }
.link { padding: 0; border: 0; background: none; color: var(--primary-dark); cursor: pointer; }
.link:hover { color: var(--primary); text-decoration: underline; }

.page-head { display: flex; margin-bottom: 24px; align-items: center; justify-content: space-between; gap: 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; }
.muted, small { color: var(--muted); }
small { display: block; max-width: 330px; overflow-wrap: anywhere; font-size: 12px; }
.stats-grid { display: grid; margin-bottom: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { display: flex; padding: 20px 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); align-items: center; gap: 15px; }
.stat-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 19px; place-items: center; }
.stat-card:nth-child(2) .stat-icon { background: #e9f7f4; color: #14846e; }
.stat-card:nth-child(3) .stat-icon { background: #fff3e5; color: #b36a17; }
.stat-label { display: block; color: var(--muted); font-size: 12px; }
.stat-value { display: block; color: var(--ink); font-size: 23px; font-weight: 750; line-height: 1.3; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; color: #778195; font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
td { padding: 18px; border-bottom: 1px solid #edf0f4; color: #4a5569; vertical-align: middle; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: #fbfbfe; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; margin: 2px 0 4px; color: var(--ink); }
td .status { margin-bottom: 5px; }
.url { max-width: 250px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review { display: grid; min-width: 190px; grid-template-columns: 1fr 1fr; gap: 8px; }
.review input { grid-column: 1 / -1; }
.review .button { margin: 0; }
.empty { padding: 54px 24px; border: 1px dashed #d9dde7; border-radius: var(--radius); background: rgba(255,255,255,.65); color: var(--muted); text-align: center; grid-column: 1 / -1; }
.empty-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 17px; background: var(--primary-soft); color: var(--primary); font-size: 24px; place-items: center; }
.empty h3 { margin: 0 0 7px; font-size: 17px; }
.empty p { margin: 0; }
.table-empty { padding: 35px; text-align: center; }

.auth-layout { display: grid; overflow: hidden; max-width: 920px; margin: 24px auto; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); grid-template-columns: .85fr 1.15fr; }
.auth-intro { position: relative; overflow: hidden; padding: 44px 34px; background: linear-gradient(150deg, #29234f, #5d51c9); color: #fff; }
.auth-intro::after { position: absolute; right: -90px; bottom: -110px; width: 260px; height: 260px; border: 45px solid rgba(255,255,255,.05); border-radius: 50%; content: ""; }
.auth-intro h2 { margin: 20px 0 13px; color: #fff; font-size: 27px; }
.auth-intro p { color: #d0cdec; }
.auth-points { position: relative; z-index: 1; margin: 28px 0 0; padding: 0; list-style: none; }
.auth-points li { margin: 12px 0; color: #e3e0f4; font-size: 13px; }
.auth-points li::before { margin-right: 9px; color: #8de4be; content: "✓"; font-weight: 800; }
.form-card { width: 100%; max-width: 560px; margin: 24px auto; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-md); }
.auth-layout .form-card { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.form-card.wide { max-width: 740px; }
.form-card h1 { font-size: 28px; }
.form-card > p { margin-top: 0; }
.form-head { margin-bottom: 24px; }
.form-icon { display: grid; width: 46px; height: 46px; margin-bottom: 17px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 20px; place-items: center; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; }
.field { margin-bottom: 17px; }
label { display: block; margin: 0 0 7px; color: #3c4659; font-size: 13px; font-weight: 650; }
input, textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #dce0e9;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: #a3aab8; }
input:hover, textarea:hover { border-color: #c4c9d5; }
input:focus, textarea:focus { border-color: #8f87f6; box-shadow: 0 0 0 3px rgba(99, 91, 255, .11); }
textarea { min-height: 118px; resize: vertical; }
.form-actions { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 10px; }
.form-actions .button { margin: 0; }
.form-actions .button:first-child { min-width: 160px; }
.auth-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.error { display: block; margin: 5px 0; color: var(--danger); font-size: 12px; }
.validation-summary-errors { margin-bottom: 16px; padding: 10px 13px; border-radius: 9px; background: var(--danger-soft); }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.alert { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #f3cbd0; border-radius: 12px; background: var(--danger-soft); color: #a93441; }

.result-card { max-width: 580px; text-align: center; }
.result-icon { display: grid; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 29px; place-items: center; }
.order-details { margin: 24px 0; padding: 6px 18px; border-radius: 12px; background: #f8f9fb; text-align: left; }
.order-row { display: flex; padding: 11px 0; justify-content: space-between; gap: 18px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row span { color: var(--muted); }
.order-row strong { overflow-wrap: anywhere; text-align: right; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 38px; gap: 26px; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
  .top-inner { gap: 14px; }
  .user-badge { display: none; }
}

@media (max-width: 760px) {
  .top-inner { min-height: 66px; padding: 12px 18px; flex-wrap: wrap; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text { font-size: 17px; }
  .top nav { width: 100%; padding-bottom: 2px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav > a, .nav-logout { min-height: 34px; padding: 5px 10px; font-size: 13px; }
  .container { min-height: calc(100vh - 190px); padding: 24px 18px 38px; }
  footer { padding: 16px 18px 24px; }
  .hero { min-height: 0; padding: 30px 25px; border-radius: 21px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-panel { display: none; }
  .hero-note { margin-top: 20px; }
  .section-heading { margin-top: 28px; }
  .page-head { align-items: flex-start; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
  .stat-value { font-size: 21px; }
  .auth-layout { margin-top: 4px; grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .form-card { padding: 26px 22px; }
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 14px; }
  tbody tr { display: block; overflow: hidden; padding: 6px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
  tbody tr:hover { background: #fff; }
  td { display: grid; padding: 12px 0; border-bottom: 1px solid #edf0f4; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
  td::before { color: #8a93a5; content: attr(data-label); font-size: 12px; font-weight: 600; }
  td:last-child { border-bottom: 0; }
  td > * { min-width: 0; }
  td strong { margin-top: 0; }
  td small { max-width: 100%; }
  .url { max-width: none; }
  .review { min-width: 0; }
  .table-empty { display: block; }
  .table-empty::before { display: none; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .hero { padding: 27px 22px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 20px; }
  .page-head { flex-direction: column; gap: 14px; }
  .page-head .button { width: 100%; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { padding: 13px 11px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 19px; }
  .stat-icon { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  td { grid-template-columns: 86px minmax(0, 1fr); }
  .order-row { flex-direction: column; gap: 2px; }
  .order-row strong { text-align: left; }
}

.admin-eyebrow { margin-bottom: 8px; color: var(--primary); }
.admin-eyebrow::before { background: var(--primary); }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.performance-stats { margin-bottom: 0; }
.dashboard-section { margin: 30px 0; padding: 4px 0 28px; border-bottom: 1px solid var(--line); }
.section-heading.compact { margin: 22px 2px 16px; }
.dashboard-section .section-heading { margin-top: 0; }
.filter-tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; flex-wrap: wrap; gap: 3px; }
.filter-tabs a { padding: 5px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-tabs a:hover { background: #f5f4ff; color: var(--primary); }
.filter-tabs a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 650; }
.admin-url { margin-top: 6px; color: #929bad; }
.promotion-metrics strong { white-space: nowrap; }

.checkout-card { max-width: 610px; }
.checkout-head { display: flex; align-items: flex-start; gap: 15px; }
.checkout-head .form-icon { flex: 0 0 auto; }
.checkout-head h1 { margin-top: 2px; }
.checkout-head p { margin-bottom: 0; }
.checkout-product { display: flex; margin-top: 25px; padding: 15px 0; border-top: 1px solid var(--line); justify-content: space-between; gap: 20px; }
.checkout-product span, .checkout-amount > span { color: var(--muted); }
.checkout-product strong { text-align: right; }
.checkout-amount { display: flex; padding: 12px 0 20px; align-items: center; justify-content: space-between; }
.checkout-amount strong { color: var(--primary-dark); font-size: 34px; line-height: 1; }
.checkout-amount strong small { display: inline; color: inherit; font-size: 20px; }
.checkout-card .order-details { margin-top: 0; }
.button-large { min-height: 48px; font-size: 15px; }
.payment-live { display: grid; margin: 18px 0; padding: 13px 14px; border: 1px solid #e2e0fa; border-radius: 12px; background: #f8f7ff; text-align: left; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.payment-live strong { display: block; color: #4d4777; font-size: 12px; font-weight: 600; }
.payment-live small { max-width: none; font-size: 11px; }
.payment-live .link { font-size: 12px; white-space: nowrap; }
.payment-live .link:disabled { opacity: .45; cursor: wait; }
.status-spinner { display: block; width: 17px; height: 17px; border: 2px solid #d4d0f6; border-top-color: var(--primary); border-radius: 50%; }
.status-spinner.is-checking { animation: payment-spin .75s linear infinite; }
.result-icon.pending { background: var(--warning-soft); color: var(--warning); }
.checkout-tip { margin: 15px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@keyframes payment-spin { to { transform: rotate(360deg); } }

footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.success-alert { border-color: #c6eadb; background: var(--success-soft); color: var(--success); }
.agreement-check { display: flex; margin: 6px 0 20px; color: var(--muted); font-size: 12px; font-weight: 400; align-items: flex-start; gap: 8px; cursor: pointer; }
.agreement-check input { width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--primary); }
.agreement-check a { margin: 0 2px; }
.form-row.three { grid-template-columns: minmax(0, 1fr) 150px; }
.verification-status { display: flex; margin: 22px 0 14px; padding: 14px; border-radius: 11px; background: #f8f9fb; align-items: center; justify-content: space-between; }
.verified-box { display: flex; margin: 20px 0; padding: 20px; border: 1px solid #cce9dd; border-radius: 12px; background: var(--success-soft); flex-direction: column; }
.verified-box strong { font-size: 18px; }
.verified-box span { color: var(--success); font-size: 12px; }
.agreement-page { max-width: 850px; margin: 0 auto; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.agreement-page section { padding: 18px 0; border-top: 1px solid var(--line); }
.agreement-page section h2 { margin-bottom: 9px; font-size: 17px; }
.agreement-page section p { margin: 0; color: var(--muted); }
.user-review { margin-top: 10px; }
.admin-url a { color: var(--muted); overflow-wrap: anywhere; }

.partner-heading { margin-bottom: 20px; }
.partner-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.partner-card { display: flex; min-height: 105px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); align-items: center; justify-content: center; gap: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner-card:hover { border-color: #dcd9f5; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.partner-card strong { font-size: 16px; letter-spacing: -.3px; white-space: nowrap; }
.partner-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; color: #fff; font-size: 15px; font-weight: 750; place-items: center; }
.tencent { background: #12b7f5; } .tencent-text { color: #149bd2; }
.alibaba { background: #ff6a00; } .alibaba-text { color: #ef6200; }
.baidu { background: #2932e1; } .baidu-text { color: #2932c9; }
.jd { background: #e1251b; } .jd-text { color: #d72b23; }
.netease { background: #d43c35; } .netease-text { color: #c83b34; }
.bytedance { background: #242b3a; } .bytedance-text { color: #242b3a; }
@media (max-width: 1000px) { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .partner-card { min-height: 88px; padding: 15px 10px; } .partner-card strong { font-size: 14px; } }

.settings-layout { display: grid; margin-bottom: 30px; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 20px; }
.settings-card, .api-help { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.settings-card .section-heading { margin-top: 0; }
.setting-switch { display: inline-flex; margin: 0 20px 16px 0; align-items: center; gap: 8px; cursor: pointer; }
.setting-switch input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--primary); }
.key-form { margin-top: 10px; }
.api-help { background: #f9f9fd; }
.api-help h3 { margin: 0 0 15px; font-size: 17px; }
.api-help code { display: block; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #5048a4; font-size: 12px; }
.api-help p, .api-help span { color: var(--muted); font-size: 12px; }
.danger-link { color: var(--danger); }
@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; } }

@media (max-width: 1000px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section-heading.compact { align-items: flex-start; flex-direction: column; }
  .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .payment-live { grid-template-columns: auto minmax(0, 1fr); }
  .payment-live .link { grid-column: 2; }
}
@media (max-width: 520px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout-head { gap: 12px; }
  .checkout-head h1 { font-size: 25px; }
  .checkout-product { flex-direction: column; gap: 3px; }
  .checkout-product strong { text-align: left; }
  .checkout-amount strong { font-size: 29px; }
}

.captcha-row { display: grid; grid-template-columns: minmax(80px, 1fr) 104px 72px; gap: 8px; }
.captcha-row img { width: 104px; height: 43px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.captcha-row .button { min-height: 43px; padding: 7px 9px; font-size: 12px; }
@media (max-width: 520px) {
  .captcha-row { grid-template-columns: minmax(80px, 1fr) 104px; }
  .captcha-row .button { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
