:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --ink: #172033;
  --muted: #697386;
  --line: #dbe3ea;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #7c3aed;
  --blue: #2563eb;
  --amber: #d97706;
  --green: #0f8a5f;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 260px),
    var(--bg);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 234, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-radius: 8px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.1);
}

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

.top-actions select,
.filters select,
.field select {
  height: 38px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 22px 18px 100px;
}

.admin-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 18px 100px;
}

.login-strip,
.toolbar,
.page-title,
.filters,
.balance-band,
.contact-band,
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-strip {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-strip div {
  min-width: 170px;
}

.login-strip strong,
.login-strip span {
  display: block;
}

.login-strip span,
.toolbar p,
.page-title p,
.profile-card p,
.contact-band p {
  color: var(--muted);
}

.login-strip label {
  display: grid;
  gap: 4px;
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}

.login-strip input,
.search-field input,
.filters input,
.field input,
.field textarea,
.wide-input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.toolbar,
.page-title {
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field.large {
  width: min(560px, 100%);
  margin: 0 auto;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding-left: 0;
}

.search-submit {
  flex: none;
  white-space: nowrap;
}

.icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: none;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-mark,
.pay-mark,
.avatar {
  letter-spacing: 0;
}

.platform-tabs,
.code-tabs,
.segmented,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tabs {
  margin-bottom: 18px;
}

.platform-tabs button,
.filters button,
.code-tabs button,
.segmented button,
.category-grid button,
.quick-grid button,
.amount-grid button,
.payment-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.platform-tabs button.active,
.filters button.active,
.code-tabs button.active,
.segmented button.active,
.amount-grid button.active,
.payment-grid button.active {
  color: var(--primary-dark);
  border-color: rgba(15, 118, 110, 0.5);
  background: rgba(15, 118, 110, 0.1);
}

.service-grid,
.ticket-list,
.category-grid,
.quick-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.order-card,
.ticket-card,
.panel,
.profile-card,
.balance-band,
.contact-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card,
.order-card,
.ticket-card,
.panel {
  padding: 16px;
}

.service-card.disabled {
  opacity: 0.62;
}

.service-head,
.order-top,
.order-meta,
.metric-row,
.preview-box div,
.detail-list div,
.mini-list div,
.transaction-list div,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-head {
  margin-bottom: 12px;
}

.platform-badge,
.pill,
.tag-row span,
.priority {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
}

.platform-badge {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot.on {
  background: var(--green);
}

.status-dot.off {
  background: var(--muted);
}

.service-card h2,
.order-card h2,
.ticket-card h2 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.service-card p,
.order-card p,
.ticket-card p,
.hint {
  color: var(--muted);
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.metric-row dt,
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
}

.metric-row dd,
.detail-list dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.service-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.primary,
.secondary,
.ghost,
.icon-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 12px;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
}

.secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.35);
}

.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.link-button {
  min-height: auto;
  padding: 4px 6px;
  color: var(--primary-dark);
  background: none;
}

.small {
  min-height: 34px;
  padding: 6px 10px;
}

.wide {
  width: 100%;
}

.icon-only {
  width: 42px;
  padding: 0;
}

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

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

.filters {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filters input {
  width: 220px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card h2 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 8px;
  margin: 14px 0;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  border-radius: inherit;
}

.pill.warning {
  color: #8a4b00;
  background: rgba(217, 119, 6, 0.14);
}

.pill.info {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.pill.success,
.pill.green {
  color: #047857;
  background: rgba(15, 138, 95, 0.14);
}

.pill.danger {
  color: var(--rose);
  background: rgba(225, 29, 72, 0.12);
}

.pill.muted {
  color: var(--muted);
  background: #eef2f6;
}

.pill.violet {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
}

.pill.amber {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.12);
}

.pill.blue {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.12);
}

.balance-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 18px;
}

.balance-band div {
  display: grid;
  gap: 5px;
}

.balance-band span,
.mini-list span,
.transaction-list small,
.transaction-list em {
  color: var(--muted);
}

.balance-band strong {
  font-size: 28px;
}

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

.split-layout > div {
  display: grid;
  gap: 16px;
}

.amount-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.amount-grid button,
.payment-grid button {
  display: grid;
  min-height: 78px;
  text-align: center;
}

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

.pay-mark {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compact-table th,
.compact-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compact-table th {
  color: var(--muted);
  font-weight: 600;
}

.compact-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mono-text {
  display: inline-block;
  max-width: 180px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.compact-table input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.compact-table input[type="checkbox"] {
  width: auto;
  padding: 0;
}

.mini-list,
.transaction-list {
  display: grid;
  gap: 10px;
}

.mini-list div,
.transaction-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.profile-card {
  justify-content: flex-start;
  margin-bottom: 16px;
  padding: 18px;
}

.profile-card strong {
  margin-left: auto;
  font-size: 24px;
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0f766e, #7c3aed);
  border-radius: 50%;
}

.avatar.small {
  width: 34px;
  height: 34px;
}

.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.ai-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid button {
  min-height: 72px;
  background: var(--surface);
}

.help-hero {
  text-align: center;
  margin-bottom: 18px;
}

.tag-row {
  justify-content: center;
}

.tag-row span {
  color: var(--muted);
  background: var(--surface-2);
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.category-grid button {
  display: grid;
  min-height: 110px;
  background: var(--surface);
}

.accordion details {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
}

.accordion p {
  color: var(--muted);
  margin: 10px 0 0;
}

.contact-band {
  margin-top: 16px;
  padding: 16px;
}

.ticket-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.priority.high {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.12);
}

.priority.normal {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.12);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.docs-nav,
.docs-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.docs-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.docs-nav button {
  text-align: left;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.docs-nav button.active {
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.1);
}

.docs-content {
  padding: 18px;
}

pre {
  overflow: auto;
  padding: 14px;
  color: #dce8f6;
  background: #172033;
  border-radius: 8px;
}

pre.success {
  border-left: 4px solid var(--green);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.field span {
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.timeline span {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 8px;
}

.chart-lines {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #eef4f7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chart-lines span {
  flex: 1;
  min-height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--blue));
  border-radius: 8px 8px 0 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 720px;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: calc(100vh - 120px);
  padding: 16px;
  color: #e2e8f0;
  background: #1e293b;
  border-radius: 8px;
}

.admin-brand {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 18px;
}

.admin-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #cbd5e1;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  color: #fff;
  background: rgba(15, 118, 110, 0.72);
}

.admin-user {
  margin-top: auto;
  padding-top: 16px;
  color: #cbd5e1;
  border-top: 1px solid rgba(226, 232, 240, 0.18);
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-filters {
  align-items: center;
}

.admin-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.admin-provider-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-provider-card.disabled {
  opacity: 0.72;
}

.admin-provider-card header,
.admin-provider-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-provider-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-provider-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.admin-provider-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-provider-card dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-provider-card dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.admin-sync-layout {
  align-items: start;
}

.admin-provider-list,
.admin-log-list {
  display: grid;
  gap: 10px;
}

.admin-provider-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-provider-list button.active {
  color: var(--primary-dark);
  border-color: rgba(109, 76, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.2);
}

.admin-provider-list span,
.admin-log-list small {
  color: var(--muted);
  font-size: 12px;
}

.admin-log-list div {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-table-head h2 {
  margin: 0;
}

.smart-workbench-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.smart-workbench-summary h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.smart-workbench-summary p {
  margin: 0;
  color: var(--muted);
}

.smart-workbench-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.smart-workbench-stats div {
  min-height: 82px;
  padding: 12px;
  background: rgba(109, 76, 255, 0.06);
  border: 1px solid rgba(109, 76, 255, 0.16);
  border-radius: 8px;
}

.smart-workbench-stats span,
.smart-workbench-stats em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.smart-workbench-stats strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 22px;
}

.smart-workbench-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.smart-workbench-tabs button {
  min-height: 70px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.smart-workbench-tabs button.active {
  color: var(--primary-dark);
  border-color: rgba(109, 76, 255, 0.62);
  background: rgba(109, 76, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.16);
}

.smart-workbench-tabs strong,
.smart-workbench-tabs span {
  display: block;
}

.smart-workbench-tabs span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.market-page {
  display: grid;
  gap: 18px;
}

.market-hero-panel,
.market-filter-panel,
.market-product-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.market-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
}

.market-hero-panel h1 {
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.market-hero-panel p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.market-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-hero-stats div,
.market-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #f8f8ff;
  border: 1px solid rgba(109, 76, 255, 0.12);
  border-radius: 8px;
}

.market-hero-stats span,
.market-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.market-hero-stats strong,
.market-metrics strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
}

.market-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.6fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.market-search {
  margin: 0;
}

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

.market-product-list {
  display: grid;
  gap: 10px;
}

.market-product-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
}

.market-product-row {
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.95fr) 110px;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.market-product-card header,
.market-product-card footer,
.market-product-title,
.market-modal-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-product-card header,
.market-product-card footer {
  justify-content: space-between;
}

.market-product-title {
  min-width: 0;
}

.market-product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.market-product-title strong,
.market-product-title small {
  display: block;
  min-width: 0;
}

.market-product-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-product-title small,
.market-product-card p,
.market-modal-summary small {
  color: var(--muted);
  line-height: 1.5;
}

.market-product-card p {
  min-height: 42px;
  margin: 0;
}

.market-product-row p {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.market-product-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  color: var(--muted);
  background: #f8f8ff;
  border: 1px solid rgba(109, 76, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-metrics strong {
  font-size: 14px;
}

.market-tier-list {
  display: grid;
  gap: 8px;
}

.market-tier-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-tier-button {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.market-tier-button:hover,
.market-tier-button.active {
  color: var(--primary-dark);
  background: #f0efff;
  border-color: rgba(109, 76, 255, 0.32);
}

.market-tier-button span,
.market-tier-button strong,
.market-tier-button small {
  display: block;
  overflow-wrap: anywhere;
}

.market-tier-button span {
  color: var(--muted);
  font-size: 12px;
}

.market-tier-button strong {
  font-size: 15px;
}

.market-tier-button small {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.market-row-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.market-row-actions .primary,
.market-row-actions .secondary {
  width: 100%;
}

.market-row-actions small {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

.market-modal-body {
  display: grid;
  gap: 14px;
}

.market-modal-summary {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px;
  background: #f8f8ff;
  border: 1px solid rgba(109, 76, 255, 0.12);
  border-radius: 8px;
}

.market-modal-summary strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.market-order-modal {
  width: min(820px, calc(100vw - 32px));
  padding: 0 20px 20px;
  border-radius: 12px;
}

.market-order-modal .modal-head {
  min-height: 70px;
}

.market-order-modal .modal-head h2 {
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-order-modal .modal-head p {
  margin-top: 4px;
}

.market-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-order-summary-grid article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  background: #fafaff;
  border: 1px solid #ebe9ff;
  border-radius: 10px;
}

.market-order-summary-grid article:first-child {
  background: linear-gradient(135deg, #f3f0ff 0%, #ffffff 100%);
  border-color: #ded8ff;
}

.market-order-summary-grid span,
.market-order-summary-grid small {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-order-summary-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-order-tier-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.market-order-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}

.market-order-section-title strong {
  color: #101828;
  font-size: 14px;
}

.market-order-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: start;
}

.market-order-link-field input {
  width: 100%;
}

.market-order-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-order-preview span,
.market-order-preview strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.market-title-row h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.market-title-row p {
  margin: 0;
  color: var(--muted);
}

.market-title-actions,
.market-search-panel,
.market-filter-toolbar,
.market-table-head,
.market-pagination,
.market-pagination div {
  display: flex;
  align-items: center;
}

.market-title-actions {
  gap: 18px;
  padding-top: 8px;
}

.market-search-panel {
  gap: 12px;
}

.market-search-panel .market-search {
  flex: 1 1 auto;
  min-width: 0;
}

.market-search-panel > .primary {
  min-width: 116px;
  height: 44px;
}

.market-search-panel .ai-match-button {
  height: 44px;
  color: var(--primary-dark);
  border-color: transparent;
  background: transparent;
}

.market-platform-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.market-platform-tab {
  position: relative;
  flex: 0 0 172px;
  min-width: 172px;
  height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  padding: 0 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.market-platform-tab:hover {
  background: #f8f7ff;
  border-color: rgba(109, 76, 255, 0.16);
  color: var(--primary-dark);
}

.market-platform-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #7d5cff 100%);
  border-color: rgba(109, 76, 255, 0.42);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 76, 255, 0.22);
  transform: translateY(-1px);
}

.market-platform-tab .platform-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.market-platform-tab strong,
.market-platform-tab small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-platform-tab small {
  color: var(--muted);
  font-size: 12px;
}

.market-platform-tab.active small,
.market-platform-tab.active strong {
  color: #fff;
}

.market-platform-tab.active .platform-mini {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.market-filter-toolbar {
  justify-content: space-between;
  gap: 14px;
}

.market-type-tabs {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-type-tab,
.market-tier-tabs button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.market-type-tab.active,
.market-tier-tabs button.active {
  color: var(--primary-dark);
  background: rgba(109, 76, 255, 0.08);
  border-color: rgba(109, 76, 255, 0.18);
}

.market-filter-toolbar .market-selects {
  flex: 0 0 360px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-route-notice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-route-notice svg {
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
}

.market-notice-mobile {
  display: none;
}

.market-product-table-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.market-table-head {
  min-height: 58px;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.market-table-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.market-tier-tabs {
  height: 58px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-right: auto;
}

.market-tier-tabs button {
  position: relative;
  height: 58px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.market-tier-tabs button.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px 3px 0 0;
}

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

.market-product-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.market-product-table th {
  height: 42px;
  padding: 0 16px;
  color: var(--muted);
  background: #fbfcff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.market-product-table td {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.market-product-table tr:last-child td {
  border-bottom: 0;
}

.market-product-table th:nth-child(1),
.market-product-table td:nth-child(1) {
  width: 38%;
}

.market-product-table th:nth-child(2),
.market-product-table td:nth-child(2) {
  width: 9%;
}

.market-product-table th:nth-child(3),
.market-product-table td:nth-child(3) {
  width: 14%;
}

.market-product-table th:nth-child(4),
.market-product-table td:nth-child(4),
.market-product-table th:nth-child(5),
.market-product-table td:nth-child(5),
.market-product-table th:nth-child(6),
.market-product-table td:nth-child(6) {
  width: 11%;
}

.market-product-table th:nth-child(7),
.market-product-table td:nth-child(7) {
  width: 6%;
}

.market-product-table th:nth-child(8),
.market-product-table td:nth-child(8) {
  width: 10%;
}

.market-table-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.market-table-product strong,
.market-table-product small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-table-product strong {
  color: var(--ink);
  font-size: 14px;
}

.market-table-product strong em {
  display: inline-flex;
  height: 22px;
  align-items: center;
  margin-left: 6px;
  padding: 0 6px;
  color: var(--primary-dark);
  background: rgba(109, 76, 255, 0.08);
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
}

.market-table-product small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.market-region-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
}

.market-favorite-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-favorite-button svg {
  width: 17px;
  height: 17px;
}

.market-order-button {
  min-width: 82px;
  height: 36px;
  color: var(--primary-dark);
  border-color: rgba(109, 76, 255, 0.48);
  background: #fff;
  font-weight: 700;
}

.market-pagination {
  min-height: 66px;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}

.market-pagination > span {
  color: var(--muted);
}

.market-pagination div {
  gap: 8px;
}

.market-pagination select,
.market-pagination button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.market-pagination select {
  padding: 0 12px;
}

.market-pagination button {
  min-width: 36px;
  padding: 0 10px;
}

.market-pagination button.active {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.modal-tier-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .market-hero-panel,
  .market-filter-panel {
    grid-template-columns: 1fr;
  }

  .market-search-panel,
  .market-filter-toolbar,
  .market-table-head {
    flex-wrap: wrap;
  }

  .market-platform-tabs {
    display: flex;
    overflow-x: auto;
  }

  .market-platform-tab {
    flex: 0 0 168px;
    min-width: 168px;
  }

  .market-filter-toolbar .market-selects {
    flex: 1 1 320px;
  }

  .market-product-row {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr);
  }

  .market-row-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .market-title-row,
  .market-search-panel,
  .market-filter-toolbar,
  .market-pagination {
    display: grid;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
  }

  .market-page,
  .market-platform-tabs,
  .market-product-table-panel {
    min-width: 0;
    max-width: 100%;
  }

  .market-page {
    overflow: hidden;
  }

  .market-title-actions,
  .market-pagination div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .market-search-panel > .primary,
  .market-search-panel .ai-match-button {
    width: 100%;
  }

  .market-route-notice {
    width: calc(100vw - 24px);
    max-width: 100%;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    padding: 10px 12px;
  }

  .market-route-notice span {
    min-width: 0;
    display: block;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.45;
  }

  .market-notice-desktop {
    display: none !important;
  }

  .market-notice-mobile {
    display: block;
  }

  .market-filter-toolbar .market-selects {
    grid-template-columns: 1fr;
    flex-basis: auto;
  }

  .market-table-head {
    display: grid;
    padding: 12px 14px;
  }

  .market-tier-tabs {
    height: 44px;
    margin-right: 0;
  }

  .market-tier-tabs button {
    height: 44px;
  }

  .market-hero-panel {
    padding: 20px;
  }

  .market-hero-panel h1 {
    font-size: 26px;
  }

  .market-hero-stats,
  .market-selects,
  .market-metrics,
  .market-order-summary-grid,
  .market-order-form-grid,
  .market-order-preview,
  .market-product-row,
  .market-row-actions,
  .market-tier-strip,
  .modal-tier-list {
    grid-template-columns: 1fr;
  }

  .market-order-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px 12px 0 0;
  }

  .market-order-modal .modal-head h2 {
    max-width: 100%;
    white-space: normal;
  }

  .market-product-card header,
  .market-product-card footer {
    display: grid;
    justify-content: stretch;
  }

  .market-product-card footer .primary,
  .market-product-card footer .secondary {
    width: 100%;
  }

  .market-tier-button {
    grid-template-columns: 1fr;
  }

  .market-tier-button small {
    text-align: left;
  }
}

/* 2026-07 member dashboard visual alignment */
.page:has(.dashboard-visual-refresh) {
  max-width: 1400px;
}

.dashboard-visual-refresh {
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.dashboard-visual-refresh :is(.member-dashboard-hero, .member-dashboard-strip, .member-quick-actions, .member-quick-order, .member-recent-orders, .member-service-updates) {
  background: #ffffff;
  border-color: #ebe8ff;
  box-shadow: 0 14px 34px rgba(28, 39, 78, 0.055);
}

.dashboard-visual-refresh .member-dashboard-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 28px;
  min-height: 202px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(112deg, #ffffff 0%, #fbfaff 57%, #f1efff 100%);
  border-color: #e7e2ff;
}

.dashboard-visual-refresh .member-hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: #5b5cf6;
  background: #f0eeff;
  border: 1px solid #ded9ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-kicker .icon {
  width: 15px;
  height: 15px;
}

.dashboard-visual-refresh .member-hero-copy h1 {
  margin: 12px 0 8px;
  color: #141b42;
  font-size: 30px;
  line-height: 1.15;
}

.dashboard-visual-refresh .member-hero-copy p {
  max-width: 650px;
  color: #667085;
  font-size: 14px;
}

.dashboard-visual-refresh .member-hero-actions {
  gap: 10px;
  margin-top: 20px;
}

.dashboard-visual-refresh .member-hero-actions :is(.primary, .secondary) {
  height: 40px;
  padding-inline: 14px;
  border-radius: 8px;
}

.dashboard-visual-refresh .member-hero-actions .primary {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #5b5cf6, #7c3aed);
  border-color: #5b5cf6;
  box-shadow: 0 10px 20px rgba(91, 92, 246, 0.2);
}

.dashboard-visual-refresh .member-hero-actions .primary .icon {
  width: 16px;
  height: 16px;
}

.dashboard-visual-refresh .member-hero-stats {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.dashboard-visual-refresh .dashboard-hero-stat {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e7e4f6;
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(31, 41, 55, 0.04);
}

.dashboard-hero-stat-icon,
.dashboard-metric-icon,
.dashboard-quick-action-icon,
.dashboard-platform-logo {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
}

.dashboard-hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.dashboard-hero-stat-icon .icon,
.dashboard-metric-icon .icon,
.dashboard-quick-action-icon .icon,
.dashboard-platform-logo .icon {
  display: grid;
  place-items: center;
}

.dashboard-hero-stat-icon svg,
.dashboard-metric-icon svg,
.dashboard-quick-action-icon svg,
.dashboard-platform-logo svg {
  width: 18px;
  height: 18px;
}

.dashboard-hero-stat.balance .dashboard-hero-stat-icon { background: #5b5cf6; }
.dashboard-hero-stat.processing .dashboard-hero-stat-icon { background: #f59e0b; }
.dashboard-hero-stat.favorites .dashboard-hero-stat-icon { background: #ec4899; }

.dashboard-visual-refresh .dashboard-hero-stat small,
.dashboard-visual-refresh .dashboard-metric small {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  color: #7a8297;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-visual-refresh .dashboard-hero-stat strong {
  display: block;
  overflow: hidden;
  color: #171d3a;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-visual-refresh .member-dashboard-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 8px;
}

.dashboard-visual-refresh .dashboard-metric {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 15px 16px;
  border-right-color: #eeecf8;
}

.dashboard-visual-refresh .dashboard-metric-icon {
  width: 34px;
  height: 34px;
  color: #5b5cf6;
  background: #f1efff;
  border: 1px solid #e1dcff;
  border-radius: 8px;
}

.dashboard-visual-refresh .dashboard-metric.orders .dashboard-metric-icon { color: #7c3aed; background: #f3eaff; border-color: #e7d6ff; }
.dashboard-visual-refresh .dashboard-metric.completed .dashboard-metric-icon { color: #099268; background: #e8fbf3; border-color: #caf2e2; }
.dashboard-visual-refresh .dashboard-metric.processing .dashboard-metric-icon { color: #d97706; background: #fff5df; border-color: #ffe4aa; }
.dashboard-visual-refresh .dashboard-metric.spent .dashboard-metric-icon { color: #db2777; background: #fff0f6; border-color: #ffd6e7; }
.dashboard-visual-refresh .dashboard-metric.services .dashboard-metric-icon { color: #0284c7; background: #e9f7ff; border-color: #c8eafa; }

.dashboard-visual-refresh .dashboard-metric strong {
  color: #182043;
  font-size: 20px;
}

.dashboard-visual-refresh .member-quick-actions {
  grid-template-columns: 136px repeat(6, minmax(0, 1fr));
  border-radius: 8px;
}

.dashboard-visual-refresh .member-quick-actions > strong {
  color: #202842;
  font-size: 14px;
}

.dashboard-visual-refresh .member-quick-actions .dashboard-quick-action {
  border-left-color: #eeecf8;
}

.dashboard-visual-refresh .member-quick-actions .dashboard-quick-action:hover {
  background: #fbfaff;
}

.dashboard-visual-refresh .dashboard-quick-action-icon {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.dashboard-visual-refresh .dashboard-quick-action.order .dashboard-quick-action-icon { color: #5b5cf6; background: #f0eeff; border-color: #ddd8ff; }
.dashboard-visual-refresh .dashboard-quick-action.market .dashboard-quick-action-icon { color: #e05f20; background: #fff1e8; border-color: #ffd9bf; }
.dashboard-visual-refresh .dashboard-quick-action.services .dashboard-quick-action-icon { color: #1777d2; background: #eaf4ff; border-color: #cce6ff; }
.dashboard-visual-refresh .dashboard-quick-action.orders .dashboard-quick-action-icon { color: #0f9f6e; background: #e8fbf3; border-color: #c8f1df; }
.dashboard-visual-refresh .dashboard-quick-action.recharge .dashboard-quick-action-icon { color: #ca8a04; background: #fff8db; border-color: #ffeb9c; }
.dashboard-visual-refresh .dashboard-quick-action.agent .dashboard-quick-action-icon { color: #be3bd3; background: #fbeaff; border-color: #f2c9fb; }

.dashboard-visual-refresh .member-dashboard-grid {
  gap: 18px;
}

.dashboard-visual-refresh .member-quick-order,
.dashboard-visual-refresh .member-recent-orders,
.dashboard-visual-refresh .member-service-updates {
  overflow: hidden;
  border-radius: 8px;
}

.dashboard-visual-refresh .member-panel-head {
  min-height: 66px;
  padding: 14px 18px;
  background: #fdfdff;
  border-bottom-color: #eeecf8;
}

.dashboard-visual-refresh .member-panel-head h2 {
  color: #182043;
}

.dashboard-visual-refresh .member-tier-tabs {
  gap: 4px;
  padding: 3px;
  background: #f4f2ff;
  border: 1px solid #e4dfff;
  border-radius: 8px;
}

.dashboard-visual-refresh .member-tier-tabs button {
  height: 30px;
  padding-inline: 11px;
  color: #68708a;
  border: 0;
  border-radius: 6px;
}

.dashboard-visual-refresh .member-tier-tabs button.active {
  color: #504bd2;
  background: #ffffff;
  border: 0;
  box-shadow: 0 2px 5px rgba(91, 92, 246, 0.12);
}

.dashboard-visual-refresh .member-platform-cards {
  gap: 10px;
  padding: 16px 18px 14px;
}

.dashboard-visual-refresh .member-platform-cards button {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 72px;
  padding: 10px 11px;
  background: #fbfbff;
  border-color: #e9e7f2;
  border-radius: 8px;
}

.dashboard-visual-refresh .member-platform-cards button.active {
  background: #f2f0ff;
  border-color: #7c6dff;
  box-shadow: inset 0 0 0 1px rgba(91, 92, 246, 0.1);
}

.dashboard-platform-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.dashboard-visual-refresh .member-platform-cards .dashboard-platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.dashboard-platform-logo.tiktok { background: #151720; }
.dashboard-platform-logo.instagram { background: #e84b87; }
.dashboard-platform-logo.youtube { background: #ee3f45; }
.dashboard-platform-logo.telegram { background: #28a7e4; }
.dashboard-platform-logo.facebook { background: #287be0; }
.dashboard-platform-logo.twitter,
.dashboard-platform-logo.x { background: #111827; }
.dashboard-platform-logo.other,
.dashboard-platform-logo.website,
.dashboard-platform-logo.all { background: #64748b; }

.dashboard-visual-refresh .member-platform-cards small {
  color: #737d95;
}

.dashboard-visual-refresh .member-quick-order-table {
  padding: 0 18px 16px;
}

.dashboard-visual-refresh .member-quick-order-head {
  min-height: 38px;
  color: #7b8498;
  background: #faf9ff;
  border-color: #eeecf8;
}

.dashboard-visual-refresh .member-quick-order-row {
  min-height: 66px;
  border-bottom-color: #f0eef8;
}

.dashboard-visual-refresh .member-quick-order-row:hover {
  background: #fcfbff;
}

.dashboard-visual-refresh .member-quick-service {
  grid-template-columns: 34px minmax(0, 1fr);
}

.dashboard-visual-refresh .member-quick-service strong,
.dashboard-visual-refresh .member-update-copy strong,
.dashboard-visual-refresh .member-recent-order-row strong {
  color: #202842;
}

.dashboard-visual-refresh .member-price {
  color: #4f46e5;
  font-weight: 800;
}

.dashboard-visual-refresh .member-quick-quantity {
  border-color: #dedceb;
  border-radius: 7px;
}

.dashboard-visual-refresh .member-quick-order-row .primary {
  color: #ffffff;
  background: #5b5cf6;
  border-color: #5b5cf6;
}

.dashboard-visual-refresh .member-recent-order-list {
  padding: 6px 14px 14px;
}

.dashboard-visual-refresh .member-recent-order-row {
  min-height: 66px;
  border-bottom-color: #f0eef8;
  border-radius: 6px;
}

.dashboard-visual-refresh .member-recent-order-row:hover {
  background: #fbfaff;
}

.dashboard-visual-refresh .member-service-update-grid {
  background: #ffffff;
}

.dashboard-visual-refresh .member-service-update {
  grid-template-columns: 44px 34px minmax(0, 1fr);
  min-height: 118px;
  padding: 16px 18px;
  border-right-color: #eeecf8;
}

.dashboard-visual-refresh .member-service-update:hover {
  background: #fbfaff;
}

.dashboard-visual-refresh .member-update-tag {
  color: #5b5cf6;
  background: #f0eeff;
  border: 1px solid #e0dcff;
  border-radius: 7px;
}

.dashboard-visual-refresh .member-service-update b {
  color: #089461;
}

@media (max-width: 1180px) {
  .dashboard-visual-refresh .member-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-visual-refresh .member-dashboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-visual-refresh .dashboard-metric:nth-child(3n) {
    border-right: 0;
  }

  .dashboard-visual-refresh .member-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-visual-refresh .member-quick-actions > strong {
    grid-column: 1 / -1;
    padding: 14px 16px 2px;
  }

  .dashboard-visual-refresh .member-quick-actions .dashboard-quick-action {
    border-top: 1px solid #eeecf8;
  }
}

@media (max-width: 720px) {
  .page:has(.dashboard-visual-refresh) {
    padding-inline: 12px;
  }

  .dashboard-visual-refresh {
    gap: 14px;
  }

  .dashboard-visual-refresh .member-dashboard-hero {
    gap: 20px;
    min-height: 0;
    padding: 20px 16px;
  }

  .dashboard-visual-refresh .member-hero-copy h1 {
    font-size: 26px;
  }

  .dashboard-visual-refresh .member-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-visual-refresh .member-hero-actions :is(.primary, .secondary) {
    width: 100%;
  }

  .dashboard-visual-refresh .member-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-visual-refresh .dashboard-hero-stat {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 102px;
    padding: 11px;
  }

  .dashboard-visual-refresh .dashboard-hero-stat small {
    overflow: visible;
    font-size: 11px;
    white-space: normal;
  }

  .dashboard-visual-refresh .dashboard-hero-stat strong {
    font-size: 17px;
  }

  .dashboard-visual-refresh .member-dashboard-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-visual-refresh .dashboard-metric {
    min-height: 74px;
    padding: 12px;
    border-right: 1px solid #eeecf8;
    border-bottom: 1px solid #eeecf8;
  }

  .dashboard-visual-refresh .dashboard-metric:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-visual-refresh .dashboard-metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .dashboard-visual-refresh .dashboard-metric strong {
    font-size: 18px;
  }

  .dashboard-visual-refresh .member-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-visual-refresh .member-quick-actions .dashboard-quick-action {
    height: 56px;
    padding-inline: 12px;
    border-left: 0;
  }

  .dashboard-visual-refresh .member-panel-head {
    min-height: 0;
    padding: 14px;
  }

  .dashboard-visual-refresh .member-platform-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .dashboard-visual-refresh .member-quick-order-table {
    padding: 0 14px 14px;
  }

  .dashboard-visual-refresh .member-quick-order-row {
    min-height: 0;
  }

  .dashboard-visual-refresh .member-service-update {
    padding: 14px;
  }
}

.smart-product-command {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.smart-product-command h2 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.smart-product-command p,
.smart-detail-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.smart-flow-steps,
.smart-detail-steps {
  display: grid;
  gap: 8px;
}

.smart-flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-flow-steps span,
.smart-detail-steps span {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--primary-dark);
  background: rgba(109, 76, 255, 0.08);
  border: 1px solid rgba(109, 76, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.smart-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.smart-product-list {
  display: grid;
  gap: 10px;
}

.smart-product-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.8fr) minmax(250px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smart-product-row.active {
  border-color: rgba(109, 76, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.14);
}

.smart-product-row-main,
.smart-product-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.smart-product-copy {
  min-width: 0;
}

.smart-product-copy strong,
.smart-product-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-product-copy small {
  margin-top: 4px;
  color: var(--muted);
}

.smart-product-row-tags,
.smart-product-row-metrics {
  display: grid;
  gap: 8px;
}

.smart-product-row-tags {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-product-row-tags span {
  min-height: 30px;
  padding: 7px 9px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.smart-product-row-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-product-row-metrics div {
  padding: 8px 10px;
  background: rgba(248, 247, 255, 0.9);
  border: 1px solid rgba(109, 76, 255, 0.12);
  border-radius: 8px;
}

.smart-product-row-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.smart-product-row-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.smart-product-row-actions {
  justify-content: flex-end;
}

.smart-product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.smart-product-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(43, 36, 90, 0.06);
}

.smart-product-card.active {
  border-color: rgba(109, 76, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.16), 0 16px 34px rgba(109, 76, 255, 0.12);
}

.smart-product-card header,
.smart-product-card footer,
.smart-detail-head-actions,
.smart-binding-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.smart-product-card header {
  justify-content: space-between;
}

.smart-product-card header div {
  flex: 1;
  min-width: 0;
}

.smart-product-card strong,
.smart-product-card small,
.smart-product-card p {
  display: block;
}

.smart-product-card header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-product-card small,
.smart-product-card p {
  color: var(--muted);
}

.smart-product-card p {
  min-height: 42px;
  margin: 0;
  line-height: 1.45;
}

.smart-product-card footer {
  align-self: end;
  justify-content: flex-end;
}

.smart-product-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--primary);
  background: rgba(109, 76, 255, 0.1);
  border-radius: 8px;
}

.smart-product-meta,
.smart-product-metrics,
.smart-tier-tabs {
  display: grid;
  gap: 8px;
}

.smart-product-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-product-meta span {
  min-height: 30px;
  padding: 7px 9px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.smart-product-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-product-metrics div,
.smart-detail-facts div,
.smart-tier-overview-grid article {
  padding: 10px;
  background: rgba(248, 247, 255, 0.9);
  border: 1px solid rgba(109, 76, 255, 0.12);
  border-radius: 8px;
}

.smart-product-metrics span,
.smart-detail-facts span,
.smart-tier-overview-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.smart-product-metrics strong,
.smart-detail-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
}

.smart-product-empty {
  grid-column: 1 / -1;
}

.smart-detail-head {
  align-items: flex-start;
}

.smart-detail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
}

.smart-detail-side,
.smart-detail-main,
.smart-detail-section {
  display: grid;
  gap: 14px;
}

.smart-detail-side {
  align-self: start;
  padding: 14px;
  background: linear-gradient(180deg, rgba(109, 76, 255, 0.08), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(109, 76, 255, 0.16);
  border-radius: 8px;
}

.smart-detail-facts {
  display: grid;
  gap: 8px;
}

.smart-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smart-detail-tabs button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.smart-detail-tabs button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(109, 76, 255, 0.22);
}

.smart-detail-section {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smart-tier-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.smart-tier-overview-grid strong,
.smart-tier-overview-grid span {
  display: block;
}

.smart-tier-overview-grid span {
  margin: 8px 0 4px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.smart-tier-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-tier-tabs button {
  min-height: 74px;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.smart-tier-tabs button.active {
  border-color: rgba(109, 76, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.16);
}

.smart-tier-tabs strong,
.smart-tier-tabs span {
  display: block;
}

.smart-tier-tabs span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.smart-binding-actions {
  flex-wrap: wrap;
}

.smart-market-preview-card {
  max-width: 520px;
}

.smart-mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-section-head {
  margin-bottom: 0;
}

.smart-variant-grid {
  display: grid;
  gap: 12px;
}

.smart-variant-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smart-variant-card.active {
  border-color: rgba(109, 76, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(109, 76, 255, 0.18);
}

.smart-variant-card header,
.smart-variant-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.smart-variant-card header strong,
.smart-variant-card header small {
  display: block;
}

.smart-variant-card header small {
  color: var(--muted);
  margin-top: 4px;
}

.smart-variant-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.smart-variant-fields .span-2,
.smart-product-modal-grid .span-2 {
  grid-column: span 2;
}

.smart-check {
  align-self: end;
  min-height: 38px;
}

.smart-translation-panel {
  gap: 16px;
}

.smart-translation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.compact-field {
  min-width: 210px;
}

.smart-translation-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(109, 76, 255, 0.06);
  border: 1px solid rgba(109, 76, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
}

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

.smart-translation-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smart-translation-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.smart-translation-card header strong,
.smart-translation-card header small,
.smart-translation-meta {
  display: block;
}

.smart-translation-card header small,
.smart-translation-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.smart-translation-card .field {
  min-width: 0;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  vertical-align: -1px;
}

.keyword-cell {
  display: inline-block;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platform-table code {
  display: inline-block;
  padding: 3px 6px;
  color: var(--primary-dark);
  background: #f0efff;
  border-radius: 6px;
}

.system-update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.update-steps,
.update-check-list,
.update-protected {
  display: grid;
  gap: 10px;
}

.update-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.update-steps span,
.update-check-list div {
  min-height: 42px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.update-check-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.update-check-list small {
  grid-column: 2;
  color: var(--muted);
}

.update-protected {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.update-protected div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.update-protected code {
  padding: 5px 8px;
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 6px;
}

.bulk-import-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f8f7ff;
  border: 1px solid rgba(109, 76, 255, 0.14);
  border-radius: 8px;
}

.bulk-import-bar strong {
  color: var(--ink);
}

.bulk-import-bar select,
.bulk-import-bar input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.bulk-import-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bulk-import-bar label input[type="number"] {
  width: 92px;
}

.service-ai-bulk-bar span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.service-list-locale-field select {
  min-width: 132px;
}

.provider-service-table {
  min-width: 1360px;
}

.provider-service-diagnostics {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.provider-service-diagnostics div {
  display: grid;
  gap: 4px;
}

.provider-service-diagnostics .pill {
  justify-self: start;
}

.product-pool-summary {
  margin-bottom: 14px;
}

.product-pool-workspace-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: #eef1f6;
  border: 1px solid #dde2ea;
  border-radius: 8px;
}

.product-pool-workspace-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  height: 38px;
  padding: 0 14px;
  color: #5b6474;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.product-pool-workspace-tabs button.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 33, 52, 0.12);
}

.classification-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.classification-summary-grid > div {
  min-height: 92px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.classification-summary-grid span,
.classification-summary-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.classification-summary-grid strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 23px;
}

.classification-command-panel,
.taxonomy-command-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.classification-command-panel h2,
.taxonomy-command-panel h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.classification-command-panel p,
.taxonomy-command-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.classification-filters {
  grid-template-columns: minmax(260px, 1fr) auto repeat(3, minmax(140px, 180px));
}

.classification-review-panel {
  padding: 14px;
}

.classification-table-wrap {
  max-height: min(64vh, 720px);
}

.classification-review-table {
  min-width: 1680px;
  table-layout: fixed;
}

.classification-review-table th:nth-child(1) { width: 42px; }
.classification-review-table th:nth-child(2) { width: 120px; }
.classification-review-table th:nth-child(3) { width: 260px; }
.classification-review-table th:nth-child(4) { width: 150px; }
.classification-review-table th:nth-child(5) { width: 260px; }
.classification-review-table th:nth-child(6) { width: 150px; }
.classification-review-table th:nth-child(7) { width: 86px; }
.classification-review-table th:nth-child(8) { width: 110px; }
.classification-review-table th:nth-child(9) { width: 300px; }
.classification-review-table th:nth-child(10) { width: 94px; }

.classification-review-table td {
  vertical-align: top;
}

.classification-review-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.classification-review-table .check-row {
  margin-top: 7px;
}

.classification-reason {
  display: block;
  color: #4e596b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.taxonomy-suggestions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.taxonomy-suggestions button {
  min-height: 66px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #dde2ea;
  border-radius: 7px;
  cursor: pointer;
}

.taxonomy-suggestions button:hover {
  border-color: rgba(109, 76, 255, 0.55);
  background: #fff;
}

.taxonomy-suggestions strong,
.taxonomy-suggestions span {
  display: block;
}

.taxonomy-suggestions span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.taxonomy-table {
  min-width: 1320px;
}

.taxonomy-table .keyword-cell {
  display: block;
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-taxonomy-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-taxonomy-toggles {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 72px;
}

@media (max-width: 1280px) {
  .classification-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .taxonomy-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .product-pool-workspace-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .product-pool-workspace-tabs button {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
  }

  .classification-summary-grid,
  .taxonomy-suggestions,
  .category-taxonomy-form {
    grid-template-columns: 1fr;
  }

  .category-taxonomy-form .span-2 {
    grid-column: auto;
  }

  .classification-command-panel,
  .taxonomy-command-panel {
    display: grid;
  }
}

.product-pool-result {
  margin-bottom: 14px;
}

.product-pool-result-grid {
  margin-top: 12px;
}

.admin-user-table {
  min-width: 1120px;
}

.check-row.compact {
  min-height: 36px;
  padding: 0;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-grid span,
.stat-grid em {
  color: var(--muted);
  font-style: normal;
}

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

.donut {
  width: 180px;
  height: 180px;
  margin: 10px auto;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 62%, var(--blue) 62% 87%, var(--rose) 87% 100%);
}

.legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.switch {
  display: inline-block;
  position: relative;
  width: 42px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 999px;
  vertical-align: middle;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--primary);
}

.switch.on::after {
  transform: translateX(20px);
}

.service-table {
  min-width: 1280px;
}

.service-table-compact {
  min-width: 1120px;
}

.service-table-compact th,
.service-table-compact td {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: top;
}

.service-table-compact strong {
  line-height: 1.25;
}

.service-table td > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.service-table-compact td > small {
  margin-top: 3px;
  line-height: 1.25;
}

.admin-orders-compact-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-orders-compact-summary span,
.admin-orders-compact-summary strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(109, 76, 255, 0.08);
  color: var(--text);
  font-size: 12px;
}

.admin-orders-compact-panel {
  padding-top: 12px;
}

.admin-orders-compact-panel .admin-orders-table th,
.admin-orders-compact-panel .admin-orders-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-form {
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding-top: 16px;
}

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

.settings-preview-logo,
.settings-preview-icon {
  display: block;
  width: 96px;
  height: 48px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-preview-icon {
  width: 48px;
}

.agent-page-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 130px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(109, 76, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.1);
}

.agent-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f7f5ff, #fff);
  border-right: 1px solid rgba(109, 76, 255, 0.12);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-profile strong,
.agent-profile span,
.agent-sidebar p,
.agent-why span,
.agent-service-card small,
.agent-service-card span {
  display: block;
}

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

.agent-profile span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.agent-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: #5b5cf6;
  background: #eef0ff;
  border: 1px solid rgba(109, 76, 255, 0.18);
  border-radius: 16px;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.agent-sidebar p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.agent-menu-list {
  display: grid;
  gap: 8px;
}

.agent-menu-list button,
.agent-quick-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #5651d8;
  background: #fff;
  border: 1px solid rgba(109, 76, 255, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 700;
}

.agent-menu-list button.active {
  background: #f0edff;
}

.agent-why {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(109, 76, 255, 0.1);
  border-radius: 14px;
}

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

.agent-why i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  background: #6d4cff;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
}

.agent-platforms {
  display: grid;
  gap: 12px;
}

.agent-platforms div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.agent-platforms button {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6d4cff, #111827);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}

.agent-offer {
  display: grid;
  gap: 14px;
  margin-top: 2px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #5b5cf6, #8b5cf6);
  border-radius: 16px;
}

.agent-offer button {
  min-height: 40px;
  color: #5b5cf6;
  background: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.agent-chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  background: #fff;
}

.agent-chat-scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 34px 36px 24px;
}

.agent-message {
  display: flex;
}

.agent-message > div {
  max-width: min(680px, 82%);
  padding: 16px 18px;
  line-height: 1.6;
  background: #f4f5f9;
  border: 1px solid #eef0f5;
  border-radius: 18px;
}

.agent-message.user {
  justify-content: flex-end;
}

.agent-message.user > div {
  color: #fff;
  background: linear-gradient(135deg, #6d4cff, #7559e8);
  border-color: transparent;
}

.agent-feedback {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.agent-feedback button {
  min-height: 28px;
  padding: 4px 10px;
  color: #6d4cff;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(109, 76, 255, 0.22);
  border-radius: 999px;
}

.agent-feedback button:hover {
  background: rgba(109, 76, 255, 0.08);
}

.agent-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 56px;
}

.agent-quick-actions button {
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
}

.agent-service-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(109, 76, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.agent-service-card.empty {
  grid-template-columns: auto 1fr;
}

.agent-service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #a855f7);
  border-radius: 14px;
  font-weight: 900;
}

.agent-service-card small,
.agent-service-card span {
  color: var(--muted);
  font-size: 12px;
}

.agent-compose {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  margin: 0 36px 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(109, 76, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(23, 32, 51, 0.08);
}

.agent-compose input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.agent-chat-panel > small {
  display: block;
  padding: 0 36px 18px;
  color: var(--muted);
  text-align: center;
}

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.chat-fab span {
  position: absolute;
  right: -2px;
  bottom: 2px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  background: var(--rose);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 11px;
}

.chat-window {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 35;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 8px 32px rgba(23, 32, 51, 0.18);
}

.chat-window header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
}

.chat-window header span {
  display: block;
  font-size: 12px;
}

.chat-window header .icon-button {
  margin-left: auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.quick-questions button {
  min-height: 32px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

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

.bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
}

.bubble.support {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

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

.chat-window footer {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.chat-window footer input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.chat-window small {
  display: block;
  padding: 0 12px 10px;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 51, 0.42);
}

.modal {
  width: min(480px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(23, 32, 51, 0.28);
}

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

.service-edit-modal,
.smart-detail-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  padding: 0;
}

.smart-detail-modal {
  width: min(1180px, 100%);
}

.translation-modal {
  width: min(1040px, 100%);
}

.translation-tools {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(220px, 1fr) auto minmax(300px, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.translation-import {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.translation-import input {
  display: none;
}

.translation-ai-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: #f8f7ff;
  border: 1px solid rgba(109, 76, 255, 0.14);
  border-radius: 8px;
  font-size: 12px;
}

.translation-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.translation-section-list span {
  padding: 4px 8px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.translation-table-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.translation-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.translation-table code {
  color: var(--primary-dark);
  font-size: 12px;
  word-break: break-all;
}

.translation-table textarea {
  width: 100%;
  min-height: 46px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
}

.service-edit-modal .modal-head,
.smart-detail-modal .modal-head {
  margin-bottom: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-scroll-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.service-modal-body,
.smart-detail-scroll {
  display: grid;
  gap: 14px;
}

.modal-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-section.compact {
  gap: 10px;
}

.modal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-section-head h3,
.modal-section-head p {
  margin: 0;
}

.modal-section-head h3 {
  font-size: 16px;
}

.modal-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-description-field textarea {
  min-height: 132px;
}

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

.service-toggle-grid .check-row {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-summary,
.status-box {
  padding: 12px;
  margin: 12px 0;
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 8px;
}

.step-box,
.preview-box {
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-box h3,
.preview-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-box h3 span,
.preview-box h3 span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 12px;
}

.preview-box .price {
  color: var(--rose);
  font-size: 22px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.service-edit-modal .modal-actions {
  margin-top: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
}

.payment-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 200px;
  height: 200px;
  padding: 18px;
  background:
    linear-gradient(90deg, #111 8px, transparent 8px) 0 0 / 18px 18px,
    linear-gradient(#111 8px, transparent 8px) 0 0 / 18px 18px,
    #fff;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.fake-qr span {
  background: #111;
  border: 10px solid #fff;
  outline: 8px solid #111;
}

.payment-config-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-config-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.payment-config-list span {
  color: var(--muted);
  font-size: 12px;
}

.payment-config-list strong {
  overflow-wrap: anywhere;
}

.config-hint {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  color: var(--primary-dark);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
}

.config-hint span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 44px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  transform: translateX(-50%);
  padding: 12px 16px;
  color: #fff;
  background: #172033;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Reference-style console UI */
:root {
  --bg: #f6f7fb;
  --surface-2: #f8f9fc;
  --ink: #111827;
  --muted: #7b8497;
  --line: #e7eaf2;
  --primary: #5b5cf6;
  --primary-dark: #4f46e5;
  --blue: #5b5cf6;
  --shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
}

body {
  background: var(--bg);
}

.topbar {
  top: 18px;
  max-width: 1500px;
  min-height: 64px;
  margin: 18px auto 0;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 30px;
  height: 30px;
  font-size: 0;
  background:
    radial-gradient(circle at 9px 9px, #5b5cf6 0 5px, transparent 6px),
    radial-gradient(circle at 20px 10px, #7c83ff 0 4px, transparent 5px),
    radial-gradient(circle at 15px 22px, #5b5cf6 0 8px, transparent 9px);
}

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand small {
  display: none;
}

.brand strong {
  font-size: 20px;
}

.nav {
  gap: 12px;
  margin-left: 20px;
}

.nav a {
  min-width: 72px;
  padding: 10px 16px;
  color: #111827;
  text-align: center;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  color: var(--primary-dark);
  background: #f0efff;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #1f2937;
  background: #f0efff;
  border: 1px solid #e5e4ff;
  border-radius: 8px;
  padding: 0 14px;
}

.user-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
}

.page,
.admin-page {
  max-width: 1500px;
  padding: 22px 18px 96px;
}

.console-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.orders-console {
  grid-template-columns: 190px minmax(0, 1fr) 390px;
}

.recharge-console {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.console-main,
.platform-sidebar,
.side-order-panel,
.table-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.console-main {
  min-width: 0;
  padding: 24px;
}

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

.console-title h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.console-title p {
  margin: 0;
  color: var(--muted);
}

.console-search {
  width: 100%;
  min-height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
}

.service-type-filter {
  display: flex;
  gap: 8px;
  margin: -8px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.service-type-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.service-type-filter button small {
  color: var(--muted);
  font-weight: 600;
}

.service-type-filter button.active {
  color: var(--primary-dark);
  background: #f0efff;
  border-color: rgba(109, 76, 255, 0.32);
}

.platform-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 14px;
}

.platform-sidebar button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  color: #1f2937;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
}

.platform-sidebar button.active,
.platform-sidebar button:hover {
  color: var(--primary-dark);
  background: #f0efff;
}

.table-card {
  overflow: hidden;
}

.table-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.table-card > header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
}

.table-card > header span,
.table-footer span {
  color: var(--muted);
  font-size: 13px;
}

.data-table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  background: #fbfcff;
}

.data-table tr {
  cursor: pointer;
}

.data-table tbody tr:hover,
.data-table tbody tr.selected {
  background: #fafaff;
}

.data-table td strong,
.data-table td span {
  display: block;
}

.data-table td span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.table-tag {
  display: inline-flex !important;
  width: max-content;
  padding: 4px 9px;
  color: #4b5563 !important;
  background: #f2f4f8;
  border-radius: 7px;
  font-size: 12px !important;
}

.table-url {
  max-width: 260px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination button {
  width: 30px;
  height: 30px;
  color: #1f2937;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
}

.pagination button.active {
  color: #fff;
  background: var(--primary);
}

.side-order-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

.side-order-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.side-order-panel > header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.side-order-panel > header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-step {
  margin: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.panel-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14px;
}

.panel-step h3 span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 12px;
}

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

.info-grid.single {
  grid-template-columns: 1fr;
}

.info-grid dt {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
}

.info-grid dd {
  margin: 0;
  color: #111827;
  line-height: 1.45;
}

.break-text {
  word-break: break-all;
}

.suffix-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.suffix-input input {
  border: 0;
}

.suffix-input em {
  padding: 0 12px;
  color: var(--muted);
  font-style: normal;
  border-left: 1px solid var(--line);
}

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

.preview-mini {
  display: grid;
  gap: 12px;
}

.preview-mini div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-mini .price {
  color: #ff2d2d;
}

.side-order-panel > footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.side-order-panel > footer .primary,
.side-order-panel > footer .secondary {
  min-height: 44px;
}

.primary {
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(91, 92, 246, 0.22);
}

.secondary {
  color: #111827;
  background: #fff;
  border-color: var(--line);
}

.link-button {
  color: var(--primary-dark);
  font-weight: 600;
}

.mini-progress {
  width: 100px;
  height: 7px;
  overflow: hidden;
  background: #edf0f7;
  border-radius: 999px;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.console-filters {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.console-balance {
  box-shadow: none;
}

.form-card {
  padding: 0 22px 22px;
  margin-top: 16px;
}

.form-card > header {
  margin: 0 -22px 18px;
}

.recharge-panel > footer {
  grid-template-columns: 1fr;
}

.admin-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-sidebar {
  top: 104px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-brand {
  color: #111827;
}

.admin-sidebar button {
  color: #1f2937;
  background: transparent;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  color: var(--primary-dark);
  background: #f0efff;
}

.admin-user {
  color: var(--muted);
  border-top-color: var(--line);
}

.admin-header,
.stat-grid div,
.docs-nav,
.docs-content {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-grid div {
  border-color: var(--line);
}

.official-home {
  display: grid;
  gap: 22px;
}

.official-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  min-height: 620px;
  overflow: hidden;
  padding: 66px 34px 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 247, 251, 0.2), rgba(246, 247, 251, 0.92)),
    #ffffff;
}

.scene-window {
  position: absolute;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 234, 242, 0.9);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.1);
}

.scene-main {
  right: 90px;
  bottom: 56px;
  width: min(760px, 64%);
  min-height: 360px;
  padding: 14px;
  transform: rotate(-1deg);
}

.scene-bar {
  display: flex;
  gap: 7px;
  height: 28px;
}

.scene-bar span {
  width: 9px;
  height: 9px;
  background: #d9def0;
  border-radius: 50%;
}

.scene-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 14px;
}

.scene-menu,
.scene-table,
.scene-order {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 290px;
  padding: 14px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.scene-menu b,
.scene-table i,
.scene-order i {
  display: block;
  height: 28px;
  background: #eef0ff;
  border-radius: 8px;
}

.scene-table strong,
.scene-order strong {
  margin-bottom: 6px;
}

.scene-table i {
  height: 34px;
  background: linear-gradient(90deg, #f3f5fb, #ffffff);
  border: 1px solid #edf0f6;
}

.scene-order button {
  min-height: 38px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
}

.scene-float {
  right: 520px;
  top: 80px;
  display: grid;
  gap: 6px;
  width: 160px;
  padding: 16px;
}

.scene-float em {
  color: var(--primary-dark);
  font-size: 34px;
  font-style: normal;
  font-weight: 800;
}

.scene-float span {
  color: #0f8a5f;
}

.hero-copy,
.auth-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 600px;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 12px;
  color: var(--primary-dark);
  background: #f0efff;
  border-radius: 999px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 58px;
  line-height: 1;
}

.hero-copy p {
  max-width: 520px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-actions .primary,
.hero-actions .secondary {
  min-height: 46px;
  padding: 0 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-metrics div {
  padding: 12px 0;
  border-top: 1px solid rgba(231, 234, 242, 0.9);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.hero-metrics span {
  color: var(--muted);
}

.auth-panel {
  align-self: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  margin-bottom: 18px;
  background: #f6f7fb;
  border-radius: 10px;
}

.auth-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.auth-tabs button.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

.auth-panel h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.auth-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel .field {
  margin-top: 14px;
}

.auth-panel .primary {
  min-height: 44px;
  margin-top: 18px;
}

.auth-switch {
  width: 100%;
  margin-top: 8px;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-preview-grid article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.home-preview-grid .icon {
  color: var(--primary-dark);
}

.home-preview-grid span {
  color: var(--muted);
  line-height: 1.55;
}

/* Marketing homepage inspired by the provided reference */
.brand small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 8px;
  color: #fff;
  background: linear-gradient(135deg, #6d4cff, #8b5cf6);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.brand {
  gap: 8px;
}

.brand-mark {
  color: #6d4cff;
  background: none;
}

.brand-mark::before {
  content: "";
  width: 24px;
  height: 28px;
  background: linear-gradient(135deg, #7c3aed, #5b5cf6);
  clip-path: polygon(58% 0, 15% 50%, 48% 50%, 33% 100%, 88% 36%, 55% 36%);
}

.topbar {
  top: 0;
  max-width: none;
  min-height: 62px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1380px) / 2));
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(31, 41, 55, 0.04);
}

.nav {
  flex: 1;
  justify-content: center;
}

.nav a {
  position: relative;
  min-width: auto;
  color: #27304b;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.nav a.active,
.nav a:hover {
  color: #5b32f6;
  background: transparent;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -11px;
  height: 3px;
  background: #6d4cff;
  border-radius: 99px;
}

.language-pill,
.theme-pill {
  min-height: 36px;
  color: #27304b;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 8px;
  padding: 0 12px;
}

.theme-pill {
  width: 38px;
  padding: 0;
}

.official-home {
  gap: 12px;
}

.official-hero {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px) 360px;
  gap: 24px;
  min-height: 420px;
  padding: 28px 10px 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  max-width: 430px;
  padding-top: 44px;
}

.eyebrow {
  min-height: 34px;
  margin-bottom: 14px;
  color: #6d4cff;
  background: #f1edff;
  font-size: 13px;
}

.hero-copy h1 {
  margin-bottom: 16px;
  color: #0c1437;
  font-size: 53px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  width: max-content;
  color: #6d4cff;
  border-bottom: 5px solid rgba(109, 76, 255, 0.35);
}

.hero-copy p {
  max-width: 430px;
  color: #68728d;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  margin: 24px 0 0;
}

.hero-actions .primary,
.hero-actions .secondary {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
}

.hero-actions .primary {
  background: linear-gradient(135deg, #6d4cff, #7c3aed);
  box-shadow: 0 18px 32px rgba(109, 76, 255, 0.22);
}

.hero-product {
  position: relative;
  min-height: 360px;
  align-self: center;
}

.dashboard-visual {
  position: absolute;
  inset: 16px 0 0 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e9e6ff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(109, 76, 255, 0.14);
  transform: rotate(-4deg);
}

.dashboard-visual header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-visual header span {
  width: 22px;
  height: 18px;
  background: repeating-linear-gradient(180deg, #6d4cff 0 3px, transparent 3px 7px);
}

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

.dash-kpis div {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eef0f8;
  border-radius: 12px;
}

.dash-kpis small {
  color: #7b8497;
}

.dash-kpis b {
  color: #0c1437;
}

.dash-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 150px;
  padding: 20px 18px;
  background:
    linear-gradient(180deg, rgba(109, 76, 255, 0.1), transparent),
    #fff;
  border: 1px solid #eef0f8;
  border-radius: 14px;
}

.dash-chart i {
  flex: 1;
  min-height: 32px;
  background: linear-gradient(180deg, #6d4cff, #b9a8ff);
  border-radius: 999px 999px 4px 4px;
}

.dash-chart i:nth-child(2) { height: 70px; }
.dash-chart i:nth-child(3) { height: 110px; }
.dash-chart i:nth-child(4) { height: 82px; }
.dash-chart i:nth-child(5) { height: 126px; }
.dash-chart i:nth-child(6) { height: 96px; }
.dash-chart i:nth-child(7) { height: 132px; }

.dash-rocket {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 120px;
  height: 120px;
  background:
    radial-gradient(circle at 50% 58%, #fff 0 11px, transparent 12px),
    linear-gradient(135deg, #ffffff 0 48%, #d9d2ff 49% 100%);
  border: 12px solid #f1edff;
  border-radius: 48% 48% 50% 50%;
  transform: rotate(35deg);
  box-shadow: 0 18px 40px rgba(109, 76, 255, 0.2);
}

.social-float {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: #111827;
  border-radius: 15px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.16);
}

.social-float.instagram {
  top: 42px;
  left: 0;
  background: linear-gradient(135deg, #f97316, #ec4899, #7c3aed);
}

.social-float.tiktok {
  top: 150px;
  left: 18px;
}

.social-float.youtube {
  left: 36px;
  bottom: 42px;
  background: #ef4444;
}

.auth-panel {
  align-self: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ebeef7;
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(31, 41, 55, 0.08);
}

.auth-tabs {
  gap: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid #ebeef7;
  border-radius: 0;
}

.auth-tabs button {
  position: relative;
  min-height: 44px;
  border-radius: 0;
  font-size: 16px;
}

.auth-tabs button.active {
  color: #6d4cff;
  background: transparent;
  box-shadow: none;
}

.auth-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #6d4cff;
  border-radius: 99px;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 8px;
}

.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
}

.auth-field .icon {
  color: #98a1b7;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 16px;
  color: #7b8497;
  font-size: 13px;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-panel .primary {
  background: linear-gradient(135deg, #6d4cff, #8b5cf6);
}

.auth-divider {
  display: grid;
  place-items: center;
  margin: 16px 0 10px;
  color: #98a1b7;
  font-size: 12px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-login button {
  width: 42px;
  height: 42px;
  color: #5b5cf6;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 10px;
  font-weight: 900;
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.home-stat-strip div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-right: 1px solid #ebeef7;
}

.home-stat-strip div:last-child {
  border-right: 0;
}

.home-stat-strip .icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 12px;
}

.home-stat-strip strong {
  font-size: 20px;
}

.home-stat-strip span {
  color: #7b8497;
  font-size: 12px;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.supported-panel,
.home-feature-list {
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.supported-panel {
  padding: 20px;
}

.supported-panel h2 {
  margin-bottom: 6px;
}

.supported-panel p {
  color: #7b8497;
}

.platform-logo-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.platform-logo-grid button {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 82px;
  color: #27304b;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 12px;
}

.platform-logo-grid b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #6d4cff;
  background: #f6f3ff;
  border-radius: 12px;
  font-size: 18px;
}

.platform-logo-grid span {
  color: #68728d;
  font-size: 12px;
}

.platform-logo-grid small {
  color: #8d95aa;
  font-size: 11px;
}

.home-feature-list {
  display: grid;
  padding: 12px 16px;
}

.home-feature-list button {
  display: grid;
  grid-template-columns: 32px 1fr 14px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ebeef7;
}

.home-feature-list button:last-child {
  border-bottom: 0;
}

.home-feature-list button::after {
  content: "›";
  color: #98a1b7;
  font-size: 20px;
}

.home-feature-list .icon {
  color: #6d4cff;
}

.home-feature-list strong,
.home-feature-list small {
  display: block;
}

.home-feature-list small {
  color: #7b8497;
  margin-top: 3px;
}

.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #68728d;
}

.trust-row strong {
  color: #6d4cff;
  letter-spacing: 3px;
}

.user-id-chip {
  display: none !important;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 10px;
  color: #6d4cff;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.member-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
}

.member-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.member-welcome,
.dashboard-card,
.member-small-cards article,
.boost-banner {
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.member-welcome {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 28px 22px 22px;
}

.member-welcome h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.member-welcome p {
  color: #68728d;
}

.wallet-illustration {
  position: absolute;
  right: 72px;
  top: 34px;
  width: 170px;
  height: 132px;
  background:
    radial-gradient(circle at 34px 110px, #ffb95e 0 10px, transparent 11px),
    radial-gradient(circle at 72px 118px, #ff9f43 0 12px, transparent 13px),
    linear-gradient(135deg, #a78bfa, #6d4cff);
  border-radius: 28px 28px 18px 18px;
  box-shadow: 0 18px 45px rgba(109, 76, 255, 0.22);
}

.wallet-illustration::before {
  content: "";
  position: absolute;
  left: 44px;
  top: -24px;
  width: 94px;
  height: 84px;
  border: 14px solid #9b87ff;
  border-radius: 20px;
  transform: rotate(18deg);
}

.wallet-illustration::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 56px;
  width: 70px;
  height: 42px;
  background: #7c3aed;
  border-radius: 18px 0 0 18px;
}

.member-kpi-row {
  position: absolute;
  left: 22px;
  right: 260px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.member-kpi-row article {
  position: relative;
  min-height: 76px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 10px;
}

.member-kpi-row span,
.member-small-cards span {
  display: block;
  color: #7b8497;
  margin-bottom: 9px;
  font-size: 12px;
}

.member-kpi-row strong,
.member-small-cards strong {
  display: block;
  color: #111827;
  font-size: 18px;
}

.member-kpi-row .icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #6d4cff;
}

.member-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 16px;
}

.dashboard-card {
  padding: 18px;
}

.dashboard-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-card h2 {
  margin: 0;
  font-size: 16px;
}

.line-chart {
  height: 190px;
  margin-bottom: 12px;
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid #ebeef7;
  padding-top: 12px;
}

.status-metrics strong,
.status-metrics span,
.status-metrics em {
  display: block;
}

.status-metrics span {
  color: #68728d;
  margin: 4px 0;
  font-size: 12px;
}

.status-metrics em {
  color: #6d4cff;
  font-size: 12px;
  font-style: normal;
}

.status-metrics .up { color: #10b981; }
.status-metrics .warn { color: #f59e0b; }
.status-metrics .down { color: #ef4444; }

.recent-order-table {
  display: grid;
}

.recent-order-table div {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr) 70px 94px 60px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #f0f2f8;
  font-size: 12px;
}

.recent-order-table div:last-child {
  border-bottom: 0;
}

.platform-mini {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  font-size: 12px;
}

.platform-mini.instagram { background: linear-gradient(135deg, #f97316, #ec4899, #7c3aed); }
.platform-mini.tiktok { background: #111827; }
.platform-mini.youtube { background: #ef4444; }
.platform-mini.twitter { background: #38bdf8; }

.recent-order-table strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recent-order-table em,
.recent-order-table small {
  color: #68728d;
  font-style: normal;
}

.member-small-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.member-small-cards article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 16px;
}

.member-small-cards em {
  display: block;
  color: #10b981;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
}

.member-small-cards .icon {
  width: 44px;
  height: 44px;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 12px;
}

.boost-banner {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, #6d4cff, #8b5cf6);
}

.boost-banner span {
  display: block;
  margin-top: 8px;
  opacity: 0.86;
}

.boost-banner .secondary {
  border: 0;
}

.megaphone {
  display: grid;
  width: 82px;
  height: 58px;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  font-size: 38px;
}

.member-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.balance-card > strong {
  display: block;
  margin: 18px 0;
  font-size: 28px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  color: #68728d;
  font-size: 12px;
}

.toggle-row b {
  position: relative;
  width: 34px;
  height: 18px;
  background: #d7dce9;
  border-radius: 999px;
}

.toggle-row b::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
}

.quick-actions-card {
  display: grid;
  gap: 8px;
}

.quick-actions-card button {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-align: left;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 9px;
  padding: 0 10px;
}

.quick-actions-card .icon {
  color: #6d4cff;
}

.quick-actions-card em {
  color: #9aa3b8;
  font-style: normal;
}

.top-services-card {
  display: grid;
  gap: 10px;
}

.top-services-card div {
  display: grid;
  grid-template-columns: 18px 30px 1fr;
  gap: 8px;
  align-items: center;
}

.top-services-card b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 8px;
}

.top-services-card strong,
.top-services-card small {
  display: block;
}

.top-services-card small {
  color: #68728d;
  margin-top: 2px;
  font-size: 11px;
}

.orders-page {
  display: grid;
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
}

.orders-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  min-height: 240px;
}

.orders-hero h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 40px;
}

.orders-hero p {
  max-width: 340px;
  color: #7b8497;
  font-size: 17px;
  line-height: 1.6;
}

.orders-hero-art {
  position: relative;
  min-height: 220px;
}

.clipboard-art {
  position: absolute;
  right: 178px;
  top: 16px;
  width: 150px;
  height: 164px;
  padding: 44px 28px 20px;
  background: linear-gradient(160deg, #b196ff, #6d4cff);
  border-radius: 20px;
  box-shadow: 0 22px 44px rgba(109, 76, 255, 0.22);
}

.clipboard-art::before {
  content: "";
  position: absolute;
  left: 46px;
  top: -18px;
  width: 58px;
  height: 38px;
  background: #a78bfa;
  border-radius: 18px 18px 8px 8px;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.4);
}

.clipboard-art i {
  display: block;
  height: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 99px;
}

.basket-art {
  position: absolute;
  right: 70px;
  bottom: 20px;
  width: 168px;
  height: 78px;
  background: linear-gradient(145deg, #7c3aed, #5b32f6);
  border-radius: 12px 12px 24px 24px;
  transform: rotate(8deg);
  box-shadow: 0 20px 42px rgba(91, 50, 246, 0.22);
}

.basket-art::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 20px;
  height: 28px;
  border: 7px solid rgba(255, 255, 255, 0.28);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.check-bubble {
  position: absolute;
  left: 112px;
  bottom: 42px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #fff;
  background: #7c3aed;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.24);
}

.check-bubble .icon {
  transform: rotate(45deg);
}

.clock-face {
  position: absolute;
  right: 42px;
  top: 66px;
  width: 82px;
  height: 82px;
  background: #fff;
  border: 9px solid #fbbf24;
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.18);
}

.clock-face::before,
.clock-face::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 18px;
  width: 5px;
  height: 26px;
  background: #111827;
  border-radius: 99px;
  transform-origin: bottom;
}

.clock-face::after {
  top: 39px;
  height: 22px;
  transform: rotate(90deg);
}

.orders-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 145px 165px minmax(150px, 170px) minmax(150px, 170px);
  gap: 14px;
  align-items: center;
}

.orders-filter-bar select,
.date-filter,
.orders-search {
  min-height: 42px;
  color: #65708a;
  background: #fff;
  border: 1px solid #e7eaf2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.03);
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.orders-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
}

.date-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  font-size: 13px;
}

.date-filter span {
  white-space: nowrap;
}

.date-filter input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.order-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.order-stat-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.order-stat-grid span,
.orders-assurance small,
.orders-data-table small {
  display: block;
  color: #7b8497;
  font-size: 12px;
}

.order-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 22px;
}

.order-stat-grid b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 50%;
}

.order-stat-grid b.green { color: #10b981; background: #dcfce7; }
.order-stat-grid b.amber { color: #f59e0b; background: #fff7ed; }
.order-stat-grid b.red { color: #ef4444; background: #ffe4e6; }
.order-stat-grid b.blue { color: #3b82f6; background: #eaf2ff; }

.orders-table-card,
.orders-assurance {
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.orders-data-table {
  min-width: 1060px;
}

.orders-data-table th {
  color: #98a2ba;
  background: #fff;
  font-size: 12px;
}

.orders-data-table td {
  padding: 18px 20px;
}

.orders-data-table .order-id,
.orders-data-table .charge {
  color: #6d4cff;
}

.order-link {
  display: inline-block;
  max-width: 230px;
  color: #3b82f6;
}

.order-view-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #6d4cff;
  background: #fff;
  border: 1px solid #cdbfff;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.row-actions .link-button,
.row-actions .order-view-button {
  white-space: nowrap;
}

.inline-input {
  width: 100%;
  min-width: 86px;
  max-width: 150px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.time-stack,
.admin-orders-table td > span,
.admin-orders-table td > small {
  display: block;
}

.timeline-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.timeline-panel h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.timeline-item > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #6d4cff;
  box-shadow: 0 0 0 4px rgba(109, 76, 255, 0.12);
}

.timeline-item strong,
.timeline-item small,
.timeline-item em {
  display: block;
}

.timeline-item small,
.timeline-item p,
.timeline-item em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.timeline-item p {
  margin: 3px 0;
}

.orders-pagination {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #ebeef7;
}

.orders-pagination > span {
  color: #7b8497;
  font-size: 13px;
}

.orders-pagination select {
  min-height: 36px;
  border: 1px solid #e7eaf2;
  border-radius: 8px;
  padding: 0 10px;
}

.orders-pagination .pagination button {
  width: auto;
  min-width: 34px;
  padding: 0 10px;
  border-color: #e7eaf2;
}

.orders-assurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 22px;
}

.orders-assurance div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid #ebeef7;
}

.orders-assurance div:last-child {
  border-right: 0;
}

.orders-assurance .icon {
  color: #6d4cff;
}

.orders-assurance strong {
  display: block;
  margin-bottom: 4px;
}

.add-funds-page {
  display: grid;
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
}

.add-funds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  min-height: 210px;
}

.add-funds-hero h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 40px;
}

.add-funds-hero p {
  max-width: 360px;
  color: #7b8497;
  font-size: 17px;
  line-height: 1.6;
}

.funds-hero-art {
  position: relative;
  min-height: 200px;
  perspective: 800px;
}

.funds-wallet-3d {
  position: absolute;
  right: 102px;
  top: 30px;
  width: 154px;
  height: 118px;
  background: linear-gradient(135deg, #a78bfa, #6d4cff 68%, #5b32f6);
  border-radius: 28px 24px 28px 18px;
  transform: rotate(-10deg) rotateY(-18deg) rotateX(8deg);
  box-shadow:
    0 26px 50px rgba(109, 76, 255, 0.28),
    inset -14px -18px 32px rgba(76, 29, 149, 0.24),
    inset 12px 12px 28px rgba(255, 255, 255, 0.18);
}

.funds-wallet-3d::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 20px;
  top: -25px;
  height: 58px;
  background:
    radial-gradient(circle at 28px 22px, #ffffff 0 10px, #c4b5fd 11px 18px, #8b5cf6 19px 28px, transparent 29px),
    radial-gradient(circle at 62px 18px, #ffffff 0 9px, #ddd6fe 10px 17px, #7c3aed 18px 27px, transparent 28px);
  border-radius: 42px 42px 0 0;
}

.funds-wallet-3d::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 44px;
  width: 68px;
  height: 42px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 18px 0 0 18px;
  box-shadow: inset 12px 0 18px rgba(255, 255, 255, 0.14);
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6 46%, #6d4cff);
  border-radius: 50%;
  box-shadow:
    0 18px 32px rgba(109, 76, 255, 0.22),
    inset 0 0 0 6px rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.coin-a {
  right: 234px;
  bottom: 30px;
  width: 62px;
  height: 62px;
  font-size: 32px;
}

.coin-b {
  right: 72px;
  top: 28px;
  width: 28px;
  height: 28px;
}

.cube {
  position: absolute;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #8b5cf6, #5b32f6);
  border-radius: 8px;
  transform: rotate(44deg);
  box-shadow: 0 14px 26px rgba(91, 50, 246, 0.18);
}

.cube-a {
  right: 280px;
  top: 28px;
}

.cube-b {
  right: 44px;
  bottom: 44px;
}

.add-funds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.add-funds-main,
.funds-sidebar {
  display: grid;
  gap: 16px;
}

.fund-step-card,
.fund-side-card {
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.05);
}

.fund-step-card {
  padding: 22px 24px;
}

.fund-step-card > header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.fund-step-card > header > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #6d4cff;
  border-radius: 8px;
  font-weight: 800;
}

.fund-step-card h2,
.fund-side-card h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.fund-step-card p {
  margin: 8px 0 0;
  color: #7b8497;
  font-size: 13px;
}

.fund-amount-grid,
.fund-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fund-amount-card,
.fund-payment-card {
  position: relative;
  min-height: 112px;
  color: #111827;
  text-align: left;
  background: #fff;
  border: 1px solid #e7eaf2;
  border-radius: 8px;
  padding: 20px;
}

.fund-amount-card.active,
.fund-payment-card.active {
  background: #fbfaff;
  border-color: #8b5cf6;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.fund-amount-card i,
.fund-payment-card i {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #dce2ee;
  border-radius: 50%;
}

.fund-amount-card.active i,
.fund-payment-card.active i {
  border: 5px solid #6d4cff;
}

.fund-amount-card strong,
.fund-amount-card span,
.fund-amount-card small,
.fund-payment-card strong,
.fund-payment-card span {
  display: block;
}

.fund-amount-card strong,
.fund-payment-card strong {
  font-size: 15px;
}

.fund-amount-card span {
  margin-top: 18px;
  color: #10b981;
  font-weight: 800;
}

.fund-amount-card small {
  margin-top: 8px;
  color: #7b8497;
}

.fund-amount-card em {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  background: #6d4cff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.fund-amount-card:nth-child(5) em {
  color: #f97316;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.fund-amount-card.custom {
  display: block;
}

.fund-amount-card.custom input {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  border: 1px solid #e7eaf2;
  border-radius: 8px;
  padding: 0 12px;
}

.fund-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 24px;
  color: #65708a;
  background: #f4f7fc;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12px;
}

.fund-payment-card span {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
}

.fund-payment-card b {
  display: inline-flex;
  min-width: 34px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  background: #f2f5fb;
  border-radius: 5px;
  font-size: 10px;
}

.fund-payment-card:nth-child(4) b,
.fund-payment-card:nth-child(5) b {
  color: #fff;
  background: #22c55e;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.summary-lines {
  display: grid;
  gap: 13px;
  margin-bottom: 20px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-lines span {
  color: #7b8497;
}

.summary-lines .green {
  color: #10b981;
}

.summary-lines .total {
  color: #6d4cff;
  font-size: 20px;
}

.fund-side-card {
  padding: 22px;
}

.balance-side-card {
  display: grid;
  gap: 8px;
}

.side-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 10px;
}

.balance-side-card > span,
.balance-side-card small {
  color: #7b8497;
}

.balance-side-card strong {
  color: #111827;
  font-size: 26px;
}

.payment-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.payment-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 16px;
  bottom: 18px;
  width: 1px;
  background: #e7eaf2;
}

.payment-timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.payment-timeline i {
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: #f59e0b;
  border: 4px solid #fff7ed;
  border-radius: 50%;
}

.payment-timeline .process i { background: #3b82f6; border-color: #eff6ff; }
.payment-timeline .done i { background: #10b981; border-color: #ecfdf5; }
.payment-timeline .failed i { background: #ef4444; border-color: #fff1f2; }

.payment-timeline strong,
.payment-timeline small {
  display: block;
}

.payment-timeline small {
  margin-top: 4px;
  color: #7b8497;
}

.fund-side-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.recent-topups {
  display: grid;
}

.recent-topups div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #f0f2f8;
}

.recent-topups div:last-child {
  border-bottom: 0;
}

.recent-topups strong,
.recent-topups small {
  display: block;
}

.recent-topups small {
  margin-top: 4px;
  color: #7b8497;
  font-size: 11px;
}

.recent-topups b {
  color: #10b981;
}

.recent-topups em {
  color: #10b981;
  background: #dcfce7;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.add-funds-assurance {
  margin-top: 4px;
}

.services-console {
  grid-template-columns: 220px minmax(0, 1fr);
}

.services-console .console-main {
  padding: 28px;
}

.services-console .data-table {
  min-width: 920px;
}

.platform-sidebar button {
  position: relative;
}

.platform-sidebar button small {
  margin-left: auto;
  color: #8c95aa;
  font-size: 12px;
}

.platform-sidebar button.active small {
  color: #6d4cff;
}

.service-name-cell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.service-name-cell strong,
.service-name-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-secondary-translation {
  display: block;
  margin-top: 2px;
  color: #6d4cff;
  font-size: 12px;
  line-height: 1.35;
}

.service-secondary-translation.muted {
  color: #7b8497;
}

.service-translation-admin-panel {
  margin-top: 16px;
}

.service-translation-filters {
  grid-template-columns: minmax(140px, 0.7fr) minmax(120px, 0.55fr) minmax(90px, 0.4fr) minmax(240px, 1fr) auto;
}

.service-translation-table-wrap {
  max-height: min(54vh, 520px);
}

.service-translation-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.favorite-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #a7afc2;
  background: #fff;
  border: 1px solid #e7eaf2;
  border-radius: 9px;
}

.favorite-button:hover,
.favorite-button.active {
  color: #6d4cff;
  background: #f1edff;
  border-color: #ded8ff;
}

.favorite-button.active .icon svg {
  fill: currentColor;
}

.service-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  color: #7b8497;
  text-align: center;
}

.service-empty .icon {
  width: 34px;
  height: 34px;
  color: #6d4cff;
}

.service-empty strong {
  color: #111827;
}

.drawer-backdrop {
  place-items: stretch end;
  padding: 0;
  background: rgba(17, 24, 39, 0.22);
}

.order-drawer {
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -24px 0 60px rgba(31, 41, 55, 0.16);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #e7eaf2;
}

.drawer-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.drawer-head p {
  margin: 0;
  color: #68728d;
  font-size: 13px;
}

.order-drawer .panel-step {
  margin: 16px;
}

.order-quick-panel {
  display: grid;
  gap: 16px;
  margin: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.order-service-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.order-service-summary strong,
.order-service-summary small {
  display: block;
}

.order-service-summary strong {
  color: #111827;
  line-height: 1.35;
}

.order-service-summary small {
  margin-top: 4px;
  color: #7b8497;
  line-height: 1.45;
}

.service-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-meta-chips span {
  color: #4b5563;
  background: #f4f6fb;
  border: 1px solid #edf0f7;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12px;
}

.service-description-note {
  display: grid;
  gap: 6px;
  color: #4b5563;
  background: #fbfcff;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  padding: 10px 12px;
}

.service-description-note strong {
  color: #111827;
  font-size: 13px;
}

.service-description-note span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  font-size: 12px;
}

.service-description-note.muted {
  background: #f7f8fc;
}

.order-mode-tabs {
  margin-bottom: 14px;
}

.order-drawer .field {
  margin-top: 12px;
}

.order-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.order-preview-strip div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  background: #fbfcff;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  padding: 10px;
}

.order-preview-strip span {
  color: #7b8497;
  font-size: 12px;
}

.order-preview-strip strong {
  color: #111827;
  font-size: 14px;
}

.order-preview-strip div:last-child strong {
  color: #ff2d2d;
}

.drawer-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e7eaf2;
}

.drawer-actions .primary,
.drawer-actions .secondary {
  min-height: 44px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .service-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .docs-layout,
  .console-layout,
  .recharge-console,
  .official-hero,
  .home-bottom-grid,
  .admin-layout,
  .system-update-grid,
  .smart-product-command,
  .smart-detail-layout {
    grid-template-columns: 1fr;
  }

  .smart-flow-steps,
  .smart-mini-stats,
  .smart-variant-fields,
  .smart-translation-grid,
  .smart-product-metrics,
  .smart-product-meta,
  .smart-tier-tabs,
  .smart-tier-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-hero {
    gap: 20px;
  }

  .hero-product {
    min-height: 340px;
  }

  .home-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat-strip div {
    border-right: 0;
    border-bottom: 1px solid #ebeef7;
    padding: 10px;
  }

  .platform-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .official-hero {
    min-height: auto;
  }

  .scene-main {
    right: -180px;
    width: 760px;
    opacity: 0.45;
  }

  .scene-float {
    right: 28px;
    top: 96px;
    opacity: 0.8;
  }

  .side-order-panel {
    position: static;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .services-console {
    grid-template-columns: 1fr;
  }

  .orders-hero,
  .orders-filter-bar,
  .order-stat-grid,
  .orders-assurance,
  .add-funds-hero,
  .add-funds-layout {
    grid-template-columns: 1fr;
  }

  .fund-amount-grid,
  .fund-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-hero-art {
    order: -1;
    min-height: 180px;
    opacity: 0.9;
  }

  .funds-hero-art {
    order: -1;
    min-height: 180px;
  }

  .orders-assurance div {
    border-right: 0;
    border-bottom: 1px solid #ebeef7;
    padding: 14px 0;
  }

  .orders-assurance div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .update-steps {
    grid-template-columns: 1fr;
  }

  .page,
  .admin-page {
    padding: 16px 12px 90px;
  }

  .login-strip,
  .toolbar,
  .page-title,
  .filters,
  .contact-band,
  .profile-card {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 25px;
  }

  .service-grid,
  .ticket-list,
  .category-grid,
  .quick-grid,
  .amount-grid,
  .payment-grid,
  .balance-band,
  .hero-metrics,
  .home-preview-grid,
  .home-stat-strip,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .official-hero {
    padding: 34px 18px 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .auth-panel {
    padding: 18px;
  }

  .dashboard-visual {
    inset: 24px 0 0 28px;
    transform: rotate(-2deg);
  }

  .social-float {
    width: 48px;
    height: 48px;
  }

  .platform-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card strong {
    margin-left: 0;
  }

  .compact-table {
    display: block;
    overflow-x: auto;
  }

  .translation-tools {
    grid-template-columns: 1fr;
  }

  .translation-import {
    justify-content: stretch;
  }

  .translation-import .secondary {
    flex: 1;
  }

  .modal {
    border-radius: 12px;
  }

  .order-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .orders-hero h1 {
    font-size: 32px;
  }

  .add-funds-hero h1 {
    font-size: 32px;
  }

  .fund-amount-grid,
  .fund-payment-grid {
    grid-template-columns: 1fr;
  }

  .fund-step-card,
  .fund-side-card {
    padding: 18px;
  }

  .orders-pagination {
    grid-template-columns: 1fr;
  }

  .orders-pagination .pagination {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 1100px) {
  .smart-workbench-summary {
    grid-template-columns: 1fr;
  }

  .smart-workbench-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-dashboard,
  .member-content-grid {
    grid-template-columns: 1fr;
  }

  .member-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .smart-workbench-stats,
  .smart-workbench-tabs {
    grid-template-columns: 1fr;
  }

  .smart-workbench-summary h2 {
    font-size: 20px;
  }

  .member-side,
  .member-small-cards {
    grid-template-columns: 1fr;
  }

  .member-welcome {
    min-height: auto;
  }

  .wallet-illustration {
    right: 18px;
    top: 28px;
    width: 128px;
    height: 104px;
    opacity: 0.55;
  }

  .member-kpi-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .recent-order-table {
    overflow-x: auto;
  }

  .recent-order-table div {
    min-width: 680px;
  }

  .boost-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .language-pill {
    max-width: 136px;
  }

  .member-welcome {
    padding: 22px 16px;
  }

  .wallet-illustration {
    display: none;
  }

  .member-kpi-row,
  .status-metrics {
    grid-template-columns: 1fr;
  }
}

html,
body {
  min-width: 0;
}

body {
  overflow-x: hidden;
}

.app-shell,
.page,
.admin-page,
.console-layout,
.console-main,
.table-card,
.panel,
.orders-page,
.add-funds-page,
.member-dashboard,
.member-main,
.admin-content {
  min-width: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.data-table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1180px) {
  .member-small-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    gap: 10px;
    min-height: auto;
    padding: 10px 14px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    gap: 6px;
    padding-top: 2px;
  }

  .nav a {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
  }

  .nav a.active::after {
    right: 10px;
    bottom: -7px;
    left: 10px;
  }

  .top-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
  }

  .top-actions .primary.small,
  .top-actions .secondary.small {
    padding: 7px 10px;
  }

  .language-pill {
    max-width: 150px;
  }

  .balance-chip {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-id-chip,
  .theme-pill,
  .user-badge {
    flex: none;
  }

  .page,
  .admin-page {
    width: 100%;
  }

  .official-hero {
    grid-template-columns: 1fr !important;
    gap: 18px;
    min-height: auto;
    overflow: hidden;
    padding: 28px 16px 16px;
  }

  .hero-copy {
    max-width: none;
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy h1 span {
    width: auto;
    max-width: 100%;
  }

  .hero-product {
    width: 100%;
    min-height: 300px;
  }

  .dashboard-visual {
    inset: 18px 8px 0 34px;
  }

  .auth-panel {
    width: 100%;
  }

  .platform-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x proximity;
  }

  .platform-sidebar button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 0 10px;
    scroll-snap-align: start;
  }

  .platform-sidebar button small {
    margin-left: 6px;
  }

  .services-console .console-main {
    padding: 20px;
  }

  .console-title,
  .table-card > header,
  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-footer .pagination {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .orders-hero,
  .add-funds-hero {
    gap: 12px;
    min-height: auto;
  }

  .admin-sidebar {
    display: flex;
    gap: 8px;
    min-height: auto;
    overflow-x: auto;
    padding: 10px;
  }

  .admin-brand,
  .admin-user {
    display: none;
  }

  .admin-sidebar button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .admin-header,
  .admin-table-head {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

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

  .admin-header-actions input,
  .admin-header-actions select,
  .admin-filters input,
  .admin-filters select {
    width: 100%;
    min-width: 0;
  }

  .admin-filters {
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 17px;
  }

  .top-actions {
    order: 2;
    justify-content: flex-start;
    width: 100%;
  }

  .top-actions select,
  .language-pill {
    flex: 1 1 140px;
    max-width: none;
  }

  .top-actions .primary.small,
  .top-actions .secondary.small {
    flex: 1 1 auto;
  }

  .balance-chip {
    flex: 1 1 100%;
    max-width: none;
  }

  .nav {
    order: 3;
    padding-bottom: 4px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .official-home,
  .orders-page,
  .add-funds-page {
    gap: 16px;
  }

  .official-hero {
    padding: 22px 12px 14px;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-copy p,
  .orders-hero p,
  .add-funds-hero p {
    max-width: none;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    width: 100%;
  }

  .hero-product {
    min-height: 240px;
  }

  .dashboard-visual {
    inset: 14px 0 0 22px;
    padding: 14px;
    border-radius: 16px;
  }

  .dash-kpis {
    grid-template-columns: 1fr;
  }

  .dash-chart {
    min-height: 100px;
    padding: 14px 10px;
  }

  .dash-rocket {
    display: none;
  }

  .social-float {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 20px;
  }

  .social-float.instagram {
    top: 22px;
  }

  .social-float.tiktok {
    top: 104px;
    left: 10px;
  }

  .social-float.youtube {
    bottom: 28px;
    left: 24px;
  }

  .home-stat-strip {
    padding: 12px;
  }

  .home-stat-strip div {
    grid-template-columns: 40px 1fr;
    min-height: 52px;
    padding: 8px;
  }

  .home-stat-strip .icon {
    width: 40px;
    height: 40px;
  }

  .trust-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .console-main,
  .services-console .console-main {
    padding: 14px;
    border-radius: 12px;
  }

  .console-title h1 {
    font-size: 22px;
  }

  .search-field.console-search {
    min-height: 44px;
    margin-bottom: 14px;
  }

  .table-card {
    overflow: visible;
  }

  .table-card > header,
  .table-footer {
    padding: 14px;
  }

  .services-console .data-table,
  .orders-table-card .data-table {
    display: block;
    min-width: 0;
  }

  .services-console .data-table thead,
  .orders-table-card .data-table thead {
    display: none;
  }

  .services-console .data-table tbody,
  .orders-table-card .data-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .services-console .data-table tr,
  .orders-table-card .data-table tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ebeef7;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
    cursor: default;
  }

  .services-console .data-table td,
  .orders-table-card .data-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    text-align: right;
    border: 0;
  }

  .services-console .data-table td::before,
  .orders-table-card .data-table td::before {
    flex: 0 0 auto;
    color: #7b8497;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  .services-console .data-table td:nth-child(1)::before { content: "Service"; }
  .services-console .data-table td:nth-child(2)::before { content: "Category"; }
  .services-console .data-table td:nth-child(3)::before { content: "Min"; }
  .services-console .data-table td:nth-child(4)::before { content: "Price"; }
  .services-console .data-table td:nth-child(5)::before { content: "ETA"; }
  .services-console .data-table td:nth-child(6)::before { content: "Favorite"; }
  .services-console .data-table td:nth-child(7)::before { content: "Action"; }

  .orders-table-card .data-table td:nth-child(1)::before { content: "Order"; }
  .orders-table-card .data-table td:nth-child(2)::before { content: "Service"; }
  .orders-table-card .data-table td:nth-child(3)::before { content: "Link"; }
  .orders-table-card .data-table td:nth-child(4)::before { content: "Quantity"; }
  .orders-table-card .data-table td:nth-child(5)::before { content: "Charge"; }
  .orders-table-card .data-table td:nth-child(6)::before { content: "Status"; }
  .orders-table-card .data-table td:nth-child(7)::before { content: "Date"; }
  .orders-table-card .data-table td:nth-child(8)::before { content: "Action"; }

  .services-console .data-table td:first-child,
  .orders-table-card .data-table td:nth-child(2),
  .orders-table-card .data-table td:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .services-console .data-table td[colspan],
  .orders-table-card .data-table td[colspan] {
    display: block;
    text-align: center;
  }

  .services-console .data-table td[colspan]::before,
  .orders-table-card .data-table td[colspan]::before {
    content: none;
  }

  .service-name-cell {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .order-link {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .orders-hero h1,
  .add-funds-hero h1 {
    font-size: 30px;
  }

  .orders-hero-art,
  .funds-hero-art {
    order: -1;
    min-height: 130px;
    overflow: hidden;
  }

  .clipboard-art {
    top: 10px;
    right: 50%;
    transform: translateX(50%) scale(0.72);
    transform-origin: top center;
  }

  .basket-art {
    right: calc(50% - 88px);
    bottom: 10px;
    transform: rotate(8deg) scale(0.75);
  }

  .check-bubble {
    bottom: 22px;
    left: calc(50% - 120px);
    transform: scale(0.75);
  }

  .clock-face {
    top: 46px;
    right: calc(50% - 128px);
    transform: scale(0.72);
  }

  .orders-filter-bar select,
  .date-filter,
  .orders-search {
    width: 100%;
  }

  .order-stat-grid {
    gap: 12px;
  }

  .order-stat-grid article {
    min-height: 72px;
    padding: 16px;
  }

  .order-stat-grid b {
    width: 40px;
    height: 40px;
  }

  .orders-table-card {
    overflow: hidden;
  }

  .orders-pagination {
    padding: 14px;
  }

  .orders-pagination .pagination {
    width: 100%;
  }

  .orders-assurance {
    padding: 14px;
  }

  .orders-assurance div {
    padding: 12px 0;
  }

  .funds-wallet-3d {
    top: 28px;
    right: 50%;
    transform: translateX(50%) rotate(-10deg) rotateY(-18deg) rotateX(8deg) scale(0.84);
  }

  .coin-a {
    right: calc(50% + 64px);
    bottom: 18px;
    transform: scale(0.8);
  }

  .coin-b {
    top: 20px;
    right: calc(50% - 120px);
  }

  .cube-a {
    top: 22px;
    right: calc(50% + 118px);
  }

  .cube-b {
    right: calc(50% - 132px);
    bottom: 32px;
  }

  .fund-step-card > header {
    margin-bottom: 16px;
  }

  .fund-step-card > header > span {
    flex: none;
  }

  .fund-amount-card,
  .fund-payment-card {
    min-height: auto;
    padding: 16px;
  }

  .fund-note {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .summary-lines div {
    align-items: flex-start;
  }

  .recent-topups div {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    padding: 12px 0;
  }

  .fund-side-card > header {
    align-items: flex-start;
  }

  .member-small-cards {
    grid-template-columns: 1fr;
  }

  .member-content-grid {
    gap: 12px;
  }

  .dashboard-card {
    padding: 14px;
  }

  .dashboard-card > header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-order-table {
    overflow: visible;
  }

  .recent-order-table div {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: 10px 0;
  }

  .recent-order-table div strong {
    grid-column: 2 / 4;
    white-space: normal;
  }

  .recent-order-table div em {
    grid-column: 2;
  }

  .recent-order-table div i {
    grid-column: 3;
    justify-self: end;
  }

  .recent-order-table div small {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .member-kpi-row article,
  .member-small-cards article {
    min-height: auto;
  }

  .boost-banner {
    padding: 16px;
  }

  .boost-banner .secondary {
    width: 100%;
  }

  .megaphone {
    width: 58px;
    height: 44px;
    font-size: 28px;
  }

  .stat-grid div {
    padding: 14px;
  }

  .admin-provider-grid {
    grid-template-columns: 1fr;
  }

  .bulk-import-bar {
    align-items: stretch;
  }

  .bulk-import-bar select,
  .bulk-import-bar input,
  .bulk-import-bar button,
  .bulk-import-bar label {
    width: 100%;
  }

  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .service-toggle-grid,
  .settings-media-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .service-edit-modal,
  .smart-detail-modal {
    padding: 0;
  }

  .service-edit-modal .modal-head,
  .smart-detail-modal .modal-head,
  .modal-scroll-body,
  .service-edit-modal .modal-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-section-head,
  .smart-detail-head-actions {
    display: grid;
    justify-content: stretch;
  }

  .modal-head {
    align-items: flex-start;
    gap: 10px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-config-list div {
    grid-template-columns: 1fr;
  }

  .empty-state {
    padding: 28px 16px;
  }

  .chat-window {
    right: 8px;
    bottom: 76px;
    left: 8px;
    width: auto;
    height: min(520px, calc(100vh - 96px));
  }

  .chat-fab {
    right: 14px;
    bottom: 14px;
  }

  .drawer-head {
    padding: 16px;
  }

  .order-drawer .panel-step {
    margin: 12px;
  }

  .drawer-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .page,
  .admin-page {
    padding: 12px 10px 80px;
  }

  .brand strong {
    max-width: 128px;
  }

  .top-actions .theme-pill,
  .top-actions .user-badge {
    width: 34px;
    height: 34px;
  }

  .top-actions .user-id-chip {
    min-width: 58px;
    height: 34px;
    padding: 0 8px;
  }

  .language-pill {
    min-width: 0;
  }

  .platform-logo-grid {
    grid-template-columns: 1fr;
  }

  .hero-product {
    min-height: 220px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .fund-step-card,
  .fund-side-card {
    padding: 14px;
  }
}

.header-menu {
  display: contents;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: none;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    gap: 4px;
    color: #27304b;
    background: #fff;
    border: 1px solid #ebeef7;
    border-radius: 10px;
    padding: 9px;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-menu {
    display: none;
    grid-column: 1 / -1;
    gap: 12px;
    padding: 12px 0 2px;
    border-top: 1px solid #ebeef7;
  }

  .topbar.menu-open .header-menu {
    display: grid;
  }

  .header-menu .nav {
    order: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
    overflow: visible;
    padding: 0;
  }

  .header-menu .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    color: #27304b;
    background: #f8f9fc;
    border: 1px solid #ebeef7;
    border-radius: 10px;
    white-space: nowrap;
  }

  .header-menu .nav a.active,
  .header-menu .nav a:hover {
    color: #5b32f6;
    background: #f1edff;
    border-color: #ded8ff;
  }

  .header-menu .nav a.active::after {
    content: none;
  }

  .header-menu .top-actions {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .header-menu .top-actions select,
  .header-menu .top-actions .language-pill,
  .header-menu .balance-chip {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .header-menu .top-actions select,
  .header-menu .top-actions .language-pill,
  .header-menu .top-actions .primary,
  .header-menu .top-actions .secondary,
  .header-menu .balance-chip,
  .header-menu .theme-pill,
  .header-menu .user-id-chip,
  .header-menu .user-badge {
    min-height: 40px;
    border-radius: 10px;
  }

  .header-menu .balance-chip {
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-menu .theme-pill,
  .header-menu .user-id-chip,
  .header-menu .user-badge {
    width: 100%;
    height: 40px;
  }

  .header-menu .top-actions .primary.small,
  .header-menu .top-actions .secondary.small {
    width: 100%;
  }

  .header-menu .top-actions .primary.small,
  .header-menu .top-actions .secondary.small[data-action="logout"] {
    grid-column: 1 / -1;
  }
}

.account-menu-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.mobile-account {
  display: none;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: none;
  min-width: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ebeef7;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.12);
}

.account-menu-wrap.open .user-menu {
  display: grid;
  gap: 4px;
}

.user-menu button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: 8px 10px;
}

.top-actions {
  overflow: visible;
}

.orders-page,
.orders-hero,
.orders-filter-bar,
.order-stat-grid,
.orders-table-card,
.orders-assurance {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.orders-table-card {
  overflow: hidden;
}

.orders-table-card .data-table-wrap {
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) and (max-width: 1240px) {
  .official-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    grid-template-areas:
      "copy auth"
      "product product";
    gap: 24px;
    min-height: auto;
    align-items: start;
    overflow: hidden;
    padding: 34px 10px 18px;
  }

  .hero-copy {
    grid-area: copy;
    max-width: none;
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-copy p {
    max-width: 560px;
  }

  .hero-product {
    grid-area: product;
    justify-self: center;
    width: min(760px, 100%);
    min-height: 310px;
  }

  .dashboard-visual {
    inset: 12px 0 0 44px;
  }

  .auth-panel {
    grid-area: auth;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center !important;
    gap: 10px;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 10px 12px;
    flex-wrap: nowrap !important;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;
  }

  .topbar.has-user {
    grid-template-columns: minmax(0, 1fr) 40px 42px;
  }

  .topbar > .brand {
    grid-column: 1;
    min-width: 0;
  }

  .topbar .brand strong {
    max-width: none;
  }

  .mobile-account {
    display: inline-grid;
    grid-column: 2;
    justify-self: end;
  }

  .desktop-account {
    display: none;
  }

  .topbar:not(.has-user) .mobile-menu-toggle {
    grid-column: 2;
  }

  .topbar.has-user .mobile-menu-toggle {
    grid-column: 3;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    gap: 4px;
    justify-self: end;
    color: #27304b;
    background: #fff;
    border: 1px solid #ebeef7;
    border-radius: 10px;
    padding: 9px;
  }

  .header-menu {
    display: none;
    grid-column: 1 / -1;
    gap: 12px;
    padding: 12px 0 2px;
    border-top: 1px solid #ebeef7;
  }

  .topbar.menu-open .header-menu {
    display: grid;
  }

  .header-menu .top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-menu .account-menu-wrap {
    display: none;
  }

  .mobile-account .user-menu {
    right: 0;
  }
}

@media (max-width: 640px) {
  .agent-page-shell {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .agent-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(109, 76, 255, 0.12);
    padding: 20px;
  }

  .agent-menu-list {
    grid-template-columns: 1fr 1fr;
  }

  .agent-chat-scroll {
    padding: 22px 16px 18px;
  }

  .agent-message > div {
    max-width: 92%;
  }

  .agent-quick-actions {
    padding-left: 0;
  }

  .agent-service-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .agent-service-card .primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .agent-compose {
    margin: 0 16px 10px;
  }

  .agent-chat-panel > small {
    padding: 0 16px 14px;
  }

  .smart-product-card header,
  .smart-product-card footer,
  .smart-product-row,
  .smart-product-row-main,
  .smart-product-row-actions,
  .smart-detail-head,
  .smart-detail-head-actions,
  .smart-variant-card header,
  .smart-variant-card footer {
    display: grid;
    justify-content: stretch;
  }

  .smart-flow-steps,
  .smart-mini-stats,
  .smart-variant-fields,
  .smart-translation-grid,
  .smart-product-metrics,
  .smart-product-meta,
  .smart-tier-tabs,
  .smart-tier-overview-grid,
  .smart-variant-fields .span-2,
  .smart-product-modal-grid .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .smart-command-actions,
  .smart-translation-actions,
  .smart-binding-actions,
  .smart-variant-card footer {
    justify-content: stretch;
  }

  .smart-translation-actions .field,
  .smart-translation-actions button {
    width: 100%;
  }

  .smart-product-row-tags,
  .smart-product-row-metrics {
    grid-template-columns: 1fr;
  }
}

/* Unified UI foundation: shared sizing and overflow rules */
:root {
  --ui-control-sm: 36px;
  --ui-control-md: 40px;
  --ui-control-lg: 44px;
  --ui-radius-control: 8px;
  --ui-radius-surface: 12px;
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-focus: 0 0 0 3px rgba(91, 92, 246, 0.18);
  --ui-success-text: #067647;
  --ui-success-bg: #ecfdf3;
  --ui-success-line: #abefc6;
  --ui-warning-text: #b54708;
  --ui-warning-bg: #fffaeb;
  --ui-warning-line: #fedf89;
  --ui-danger-text: #b42318;
  --ui-danger-bg: #fef3f2;
  --ui-danger-line: #fecdca;
  --ui-info-text: #3538cd;
  --ui-info-bg: #eef4ff;
  --ui-info-line: #c7d7fe;
  --text: var(--ink);
  --soft: var(--surface-2);
}

body {
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

h1,
.page-title h1,
.console-title h1 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

h2,
.admin-table-head h2,
.modal-head h2 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

h3,
.modal-section-head h3 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

:is(.hint, .field small, .compact-table small, .admin-table-head p, .modal-head p) {
  font-size: 12px;
  line-height: 18px;
}

:is(button, input, select, textarea, a):focus-visible {
  outline: 0;
  box-shadow: var(--ui-focus);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-control-md);
  padding: 0 12px;
  line-height: 20px;
}

.top-actions > .language-pill,
.top-actions > .primary.small,
.top-actions > .secondary.small,
.top-actions > .balance-chip,
.top-actions > .theme-pill,
.top-actions > .user-id-chip,
.top-actions > .user-badge,
.top-actions > .account-menu-wrap > .user-badge {
  height: var(--ui-control-md);
  min-height: var(--ui-control-md);
}

.top-actions > :is(.language-pill, .balance-chip, .user-id-chip) {
  max-width: min(220px, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary,
.secondary,
.ghost {
  height: var(--ui-control-md);
  min-height: var(--ui-control-md);
  max-width: 100%;
  padding: 0 14px;
  overflow: hidden;
  border-radius: var(--ui-radius-control);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(91, 92, 246, 0.2);
}

.primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.secondary,
.ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.secondary:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  color: var(--primary-dark);
  background: #f8f7ff;
  border-color: #d9d5ff;
}

.primary.small,
.secondary.small,
.ghost.small,
button.small {
  height: var(--ui-control-sm);
  min-height: var(--ui-control-sm);
  padding: 0 12px;
  font-size: 13px;
}

.icon-button {
  width: var(--ui-control-sm);
  height: var(--ui-control-sm);
  min-height: var(--ui-control-sm);
  flex: 0 0 var(--ui-control-sm);
  padding: 0;
  border-radius: var(--ui-radius-control);
}

.link-button {
  min-height: 32px;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
.search-field,
.suffix-input {
  height: var(--ui-control-md);
  min-height: var(--ui-control-md);
  border-radius: var(--ui-radius-control);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

textarea,
.field textarea,
.translation-table textarea {
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

.field {
  min-width: 0;
  gap: 6px;
}

.field > span,
.field > label {
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
}

.top-actions select,
.filters select,
.field select {
  height: var(--ui-control-md);
  min-height: var(--ui-control-md);
  padding: 0 34px 0 12px;
}

.top-actions select {
  width: auto;
  max-width: 180px;
}

.search-field {
  gap: 8px;
  padding: 0 10px;
}

.search-field input,
.search-field.console-search {
  height: calc(var(--ui-control-md) - 2px);
  min-height: calc(var(--ui-control-md) - 2px);
  margin-bottom: 0;
}

.admin-content {
  align-content: start;
  grid-auto-rows: max-content;
}

.admin-header {
  min-height: var(--ui-control-lg);
  padding: 8px 16px;
  border-radius: var(--ui-radius-surface);
}

.admin-header > span,
.admin-header > :first-child:not(.admin-header-actions) {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-header-actions {
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
}

.admin-sidebar {
  align-content: start;
}

.admin-sidebar button {
  height: var(--ui-control-md);
  min-height: var(--ui-control-md);
  padding: 0 12px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.stat-grid div {
  min-height: 108px;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border-radius: var(--ui-radius-surface);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.stat-grid strong {
  font-size: 24px;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
}

.stat-grid :is(span, em) {
  font-size: 13px;
  line-height: 20px;
}

.admin-filters {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: auto;
  margin-bottom: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius-surface);
}

.admin-filters input:not([type="checkbox"]):not([type="radio"]) {
  width: auto;
  min-width: 220px;
  max-width: 420px;
  flex: 1 1 260px;
}

.admin-filters select {
  width: auto;
  min-width: 132px;
  max-width: 220px;
  flex: 0 1 auto;
}

.admin-filters :is(button, label) {
  flex: 0 0 auto;
}

.admin-orders-compact-summary {
  min-height: var(--ui-control-md);
  align-content: center;
  padding: 6px 10px;
  border-radius: var(--ui-radius-surface);
}

.admin-orders-compact-summary :is(span, strong) {
  min-height: 24px;
  padding: 3px 8px;
  line-height: 18px;
  white-space: nowrap;
}

.data-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: auto;
  overscroll-behavior-inline: contain;
}

.compact-table {
  line-height: 1.45;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
}

.compact-table th {
  height: var(--ui-control-md);
  color: #667085;
  background: #fcfcfd;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.compact-table td {
  min-width: 0;
  color: #344054;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.compact-table tbody tr:hover {
  background: #fafaff;
}

.compact-table :is(.mono-text, time),
.compact-table td.numeric,
.compact-table td.actions {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-orders-table {
  table-layout: fixed;
  min-width: 1280px;
}

.admin-orders-table :is(th, td):nth-child(1) {
  width: 13%;
}

.admin-orders-table :is(th, td):nth-child(2) {
  width: 11%;
}

.admin-orders-table :is(th, td):nth-child(3) {
  width: 28%;
}

.admin-orders-table :is(th, td):nth-child(4) {
  width: 9%;
  white-space: nowrap;
}

.admin-orders-table :is(th, td):nth-child(5) {
  width: 8%;
  white-space: nowrap;
}

.admin-orders-table :is(th, td):nth-child(6) {
  width: 11%;
}

.admin-orders-table :is(th, td):nth-child(7) {
  width: 12%;
}

.admin-orders-table :is(th, td):nth-child(8) {
  width: 8%;
}

.admin-orders-table td:nth-child(6) :is(strong, small),
.admin-orders-table td:nth-child(7) :is(span, small) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-orders-table td:nth-child(8) .row-actions {
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
}

.admin-orders-table td:nth-child(3) strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-orders-table td:nth-child(3) small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-table {
  table-layout: fixed;
  min-width: 1080px;
}

.admin-user-table :is(th, td):first-child {
  width: 22%;
}

.admin-user-table td:first-child :is(strong, small) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-table-compact td:first-child strong,
.provider-service-table td:nth-child(2) strong,
.classification-review-table td:nth-child(2) strong,
.ai-knowledge-table td:nth-child(2) strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pill {
  max-width: 100%;
  min-height: 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.pill.success,
.pill.green {
  color: var(--ui-success-text);
  background: var(--ui-success-bg);
  border-color: var(--ui-success-line);
}

.pill.warning,
.pill.amber {
  color: var(--ui-warning-text);
  background: var(--ui-warning-bg);
  border-color: var(--ui-warning-line);
}

.pill.danger {
  color: var(--ui-danger-text);
  background: var(--ui-danger-bg);
  border-color: var(--ui-danger-line);
}

.pill.info,
.pill.blue,
.pill.violet {
  color: var(--ui-info-text);
  background: var(--ui-info-bg);
  border-color: var(--ui-info-line);
}

.pill.muted {
  color: #475467;
  background: #f2f4f7;
  border-color: #e4e7ec;
}

.modal-backdrop {
  padding: 16px;
}

.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0 20px 20px;
  border: 1px solid rgba(231, 234, 242, 0.9);
  border-radius: var(--ui-radius-surface);
}

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

.service-edit-modal,
.smart-detail-modal,
.translation-modal {
  width: min(1080px, calc(100vw - 32px));
  padding: 0;
}

.smart-detail-modal {
  width: min(1180px, calc(100vw - 32px));
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 60px;
  margin: 0 -20px 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.service-edit-modal .modal-head,
.smart-detail-modal .modal-head,
.translation-modal .modal-head {
  margin: 0;
}

.modal-head > div {
  min-width: 0;
}

.modal-head h2,
.modal-head p {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-scroll-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
}

.modal-actions {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  min-height: 64px;
  margin: 16px -20px -20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
}

.service-edit-modal .modal-actions,
.smart-detail-modal .modal-actions,
.translation-modal .modal-actions {
  bottom: 0;
  margin: 0;
}

.translation-modal .translation-tools {
  margin: 16px 20px 12px;
}

.translation-modal .translation-ai-note,
.translation-modal .translation-section-list {
  margin: 0 20px 12px;
}

.translation-modal .translation-table-wrap {
  width: calc(100% - 40px);
  margin: 0 20px;
}

.modal-actions :is(.primary, .secondary, .ghost) {
  min-width: 88px;
}

@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-header,
  .admin-table-head {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .admin-header > span,
  .admin-header > :first-child:not(.admin-header-actions) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

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

  .admin-filters input:not([type="checkbox"]):not([type="radio"]),
  .admin-filters select {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filters :is(input, select, button) {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }

  .admin-filters > input:not([type="checkbox"]):not([type="radio"]),
  .admin-filters > select,
  .admin-filters > button {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }

  .admin-filters label {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 8px;
  }

  .modal,
  .wide-modal,
  .service-edit-modal,
  .smart-detail-modal,
  .translation-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px 12px 0 0;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions :is(.primary, .secondary, .ghost) {
    width: 100%;
  }

  .modal-head h2,
  .modal-head p {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .translation-modal .translation-tools {
    margin: 14px 14px 10px;
  }

  .translation-modal .translation-ai-note,
  .translation-modal .translation-section-list {
    margin: 0 14px 10px;
  }

  .translation-modal .translation-table-wrap {
    width: calc(100% - 28px);
    margin: 0 14px;
  }
}

.services-page-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.services-main-panel {
  padding: 24px;
  border-radius: 8px;
}

.services-title-row {
  margin-bottom: 18px;
}

.services-title-row .secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.services-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(280px, 1fr) minmax(150px, 180px) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.services-select-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--ui-control-md);
  min-width: 0;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.services-select-field .icon {
  color: #475467;
}

.services-select-field select,
.services-sort-select,
.services-page-size {
  width: 100%;
  min-width: 0;
  border: 0;
  background-color: transparent;
}

.services-sort-select {
  height: var(--ui-control-md);
  padding: 0 34px 0 12px;
  background-color: #fff;
  border: 1px solid var(--line);
}

.services-search {
  width: 100%;
  min-width: 0;
}

.services-table-card {
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.05);
}

.services-data-table {
  min-width: 960px;
  table-layout: fixed;
}

.services-data-table th,
.services-data-table td {
  padding: 12px 14px;
}

.services-data-table th:first-child,
.services-data-table td:first-child {
  width: 40%;
}

.services-data-table th:nth-child(2),
.services-data-table td:nth-child(2) {
  width: 18%;
}

.services-data-table th:nth-child(3),
.services-data-table td:nth-child(3),
.services-data-table th:nth-child(4),
.services-data-table td:nth-child(4),
.services-data-table th:nth-child(5),
.services-data-table td:nth-child(5) {
  width: 11%;
}

.services-data-table th:nth-child(6),
.services-data-table td:nth-child(6),
.services-data-table th:nth-child(7),
.services-data-table td:nth-child(7) {
  width: 9%;
}

.services-table-row {
  cursor: default;
}

.services-table-row td {
  vertical-align: middle;
}

.services-table-row :is(strong, small) {
  max-width: 100%;
}

.service-name-cell strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-name-cell span:not(.platform-mini),
.services-data-table td small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #667085;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.service-status-pill.available {
  color: var(--ui-success-text);
  background: var(--ui-success-bg);
  border-color: var(--ui-success-line);
}

.service-status-pill.paused {
  color: var(--ui-warning-text);
  background: var(--ui-warning-bg);
  border-color: var(--ui-warning-line);
}

.service-order-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 74px;
  color: var(--primary-dark);
  border-color: #d9d5ff;
}

.order-modal-backdrop {
  background: rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(2px);
}

.order-entry-modal {
  width: min(720px, calc(100vw - 32px));
  padding: 0 20px 20px;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.24);
}

.order-entry-modal.wide-modal {
  width: min(800px, calc(100vw - 32px));
}

.order-modal-head {
  min-height: 62px;
}

.order-modal-grid {
  display: grid;
  gap: 14px;
}

.order-modal-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fafaff;
  border: 1px solid #ebe9ff;
  border-radius: 8px;
}

.order-modal-summary strong,
.order-modal-summary small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-modal-summary strong {
  color: #101828;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-modal-summary small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.order-modal-fields {
  display: grid;
  gap: 12px;
}

.order-link-field input,
.order-link-field textarea {
  width: 100%;
}

.order-quantity-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: stretch;
}

.order-price-card {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: var(--ui-control-xl);
  padding: 12px 14px;
  background: #f6f5ff;
  border: 1px solid #ded8ff;
  border-radius: 8px;
}

.order-price-card span,
.order-price-card small {
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.order-price-card strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.2;
}

.order-modal-preview {
  margin-top: 0;
}

.order-modal-actions {
  grid-template-columns: minmax(110px, 0.8fr) minmax(160px, 1.2fr);
}

@media (max-width: 900px) {
  .services-page-shell {
    grid-template-columns: 1fr;
  }

  .services-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .services-search {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 640px) {
  .services-main-panel {
    padding: 14px;
  }

  .services-toolbar {
    grid-template-columns: 1fr;
  }

  .services-data-table {
    min-width: 0;
  }

  .services-console .data-table td::before {
    content: attr(data-label);
  }

  .services-console .data-table td:nth-child(n)::before {
    content: attr(data-label);
  }

  .order-entry-modal,
  .order-entry-modal.wide-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px 12px 0 0;
  }

  .order-modal-actions {
    grid-template-columns: 1fr;
  }

  .order-quantity-price-row {
    grid-template-columns: 1fr;
  }
}

.member-dashboard.quick-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.quick-dashboard :is(.member-dashboard-hero, .member-dashboard-strip, .member-quick-actions, .member-quick-order, .member-recent-orders, .member-service-updates) {
  background: #fff;
  border: 1px solid #e4e7f2;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.05);
}

.member-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 24px;
  align-items: center;
  min-height: 180px;
  padding: 28px 24px 22px;
}

.member-hero-copy {
  min-width: 0;
}

.member-hero-copy h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
}

.member-hero-copy p,
.member-panel-head p {
  max-width: 760px;
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

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

.member-hero-actions :is(.primary, .secondary),
.member-quick-order-row .primary,
.member-quick-actions button {
  min-height: 40px;
  border-radius: 8px;
}

.member-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-hero-stats article {
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  background: #f8f7ff;
  border: 1px solid #dcd7ff;
  border-radius: 8px;
}

.member-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.member-dashboard-strip article {
  min-width: 0;
  min-height: 78px;
  padding: 16px 18px;
  border-right: 1px solid #e4e7f2;
}

.member-dashboard-strip article:last-child {
  border-right: 0;
}

.member-hero-stats span,
.member-dashboard-strip span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
}

.member-hero-stats strong,
.member-dashboard-strip strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #020617;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-quick-actions {
  display: grid;
  grid-template-columns: 120px repeat(6, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
}

.member-quick-actions > strong {
  padding: 0 14px;
  color: #0f172a;
  font-size: 14px;
}

.member-quick-actions button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 58px;
  padding: 0 14px;
  color: #0f172a;
  background: transparent;
  border: 0;
  border-left: 1px solid #e4e7f2;
  text-align: left;
}

.member-quick-actions button:hover,
.member-platform-cards button:hover,
.member-recent-order-row:hover,
.member-service-update:hover {
  background: #faf9ff;
}

.quick-action-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #6d4cff;
  background: #f0edff;
  border-radius: 8px;
}

.quick-action-icon .icon {
  width: 15px;
  height: 15px;
}

.member-quick-actions b,
.member-quick-actions i {
  overflow: hidden;
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-quick-actions i {
  color: #98a2b3;
  text-align: right;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.member-quick-order,
.member-recent-orders,
.member-service-updates {
  min-width: 0;
}

.member-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e7f2;
}

.member-panel-head.compact {
  min-height: 52px;
}

.member-panel-head h2 {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.member-panel-head p {
  font-size: 12px;
}

.member-tier-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.member-tier-tabs button {
  height: 36px;
  padding: 0 12px;
  color: #475467;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 700;
}

.member-tier-tabs button.active {
  color: #5b4bff;
  border-bottom-color: #5b4bff;
}

.member-platform-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 12px;
}

.member-platform-cards button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e4e7f2;
  border-radius: 8px;
  text-align: left;
}

.member-platform-cards button.active {
  background: #f7f4ff;
  border-color: #7c5cff;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
}

.member-platform-cards strong,
.member-platform-cards small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-platform-cards small {
  grid-column: 2;
  color: #667085;
  font-size: 12px;
}

.platform-mini.facebook { background: #2563eb; }
.platform-mini.telegram { background: #26a6e7; }
.platform-mini.other,
.platform-mini.website,
.platform-mini.all { background: #64748b; }

.member-quick-order-table {
  padding: 0 16px 14px;
}

.member-quick-order-head,
.member-quick-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 78px 90px 108px 96px 76px;
  gap: 10px;
  align-items: center;
}

.member-quick-order-head {
  min-height: 36px;
  color: #667085;
  border-top: 1px solid #eef1f7;
  border-bottom: 1px solid #eef1f7;
  font-size: 12px;
  font-weight: 700;
}

.member-quick-order-row {
  min-height: 58px;
  border-bottom: 1px solid #eef1f7;
}

.member-quick-order-row:last-child {
  border-bottom: 0;
}

.member-quick-service {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.member-quick-service strong,
.member-quick-service small,
.member-update-copy strong,
.member-update-copy small,
.member-recent-order-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-quick-service strong,
.member-update-copy strong {
  color: #0f172a;
  font-size: 14px;
}

.member-quick-service small,
.member-update-copy small {
  color: #667085;
  margin-top: 3px;
  font-size: 12px;
}

.member-price {
  color: #020617;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.member-eta {
  color: #475467;
  font-size: 13px;
  white-space: nowrap;
}

.member-quick-quantity {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.member-recent-order-list {
  display: grid;
  padding: 6px 12px 12px;
}

.member-recent-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 9px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eef1f7;
  text-align: left;
}

.member-recent-order-row:last-child {
  border-bottom: 0;
}

.member-recent-order-row strong {
  display: block;
  margin-bottom: 5px;
  color: #020617;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.member-recent-order-row > span:last-child {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.member-recent-order-row b {
  color: #020617;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.member-service-update-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-service-update {
  display: grid;
  grid-template-columns: 44px 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid #e4e7f2;
  text-align: left;
}

.member-service-update:last-child {
  border-right: 0;
}

.member-update-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: #5b4bff;
  background: #f0edff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.member-service-update b {
  grid-column: 3;
  color: #0a9f66;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .member-dashboard-hero,
  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .member-hero-stats,
  .member-dashboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-quick-actions > strong {
    grid-column: 1 / -1;
    padding: 12px 14px 0;
  }

  .member-quick-actions button {
    border-top: 1px solid #e4e7f2;
  }

  .member-service-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .member-dashboard-hero,
  .member-quick-order,
  .member-recent-orders,
  .member-service-updates {
    padding: 0;
  }

  .member-dashboard-hero {
    gap: 18px;
    padding: 20px 16px;
  }

  .member-hero-stats,
  .member-dashboard-strip,
  .member-quick-actions,
  .member-platform-cards,
  .member-service-update-grid {
    grid-template-columns: 1fr;
  }

  .member-dashboard-strip article {
    border-right: 0;
    border-bottom: 1px solid #e4e7f2;
  }

  .member-dashboard-strip article:last-child {
    border-bottom: 0;
  }

  .member-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-tier-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .member-tier-tabs button {
    flex: 1 0 auto;
  }

  .member-quick-order-head {
    display: none;
  }

  .member-quick-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 12px 0;
  }

  .member-quick-order-row .pill,
  .member-quick-order-row .member-price,
  .member-quick-order-row .member-eta {
    justify-self: end;
  }

  .member-quick-quantity,
  .member-quick-order-row .primary {
    width: 100%;
    grid-column: 1 / -1;
  }

  .member-service-update {
    border-right: 0;
    border-bottom: 1px solid #e4e7f2;
  }

  .member-service-update:last-child {
    border-bottom: 0;
  }
}

/* 2026-07 public homepage and service-market visual refresh */
.page:has(.official-home),
.page:has(.market-page) {
  max-width: 1400px;
}

.official-home {
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.official-hero.home-hero-refresh {
  grid-template-columns: minmax(0, 0.93fr) minmax(440px, 1.07fr);
  min-height: 500px;
  gap: 28px;
  padding: 34px 20px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border: 1px solid #ebe8ff;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(79, 70, 229, 0.08);
}

.official-hero.home-hero-refresh .hero-copy {
  max-width: 520px;
  padding: 40px 0 34px 28px;
}

.official-hero.home-hero-refresh .hero-product,
.official-hero.home-hero-refresh .auth-panel {
  display: none;
}

.official-hero.home-hero-refresh .eyebrow {
  gap: 8px;
  color: #5b5cf6;
  background: #f1efff;
  border: 1px solid #e4dfff;
}

.official-hero.home-hero-refresh .eyebrow .icon {
  width: 16px;
  height: 16px;
}

.official-hero.home-hero-refresh .hero-copy h1 {
  max-width: 500px;
  margin: 0 0 16px;
  color: #11183d;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.08;
}

.official-hero.home-hero-refresh .hero-copy h1 span {
  margin-top: 4px;
  color: #5b5cf6;
  border-bottom-color: rgba(91, 92, 246, 0.3);
}

.official-hero.home-hero-refresh .hero-copy p {
  max-width: 470px;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.official-hero.home-hero-refresh .hero-actions {
  margin-top: 26px;
}

.official-hero.home-hero-refresh .hero-actions .primary {
  background: linear-gradient(135deg, #5b5cf6, #7c3aed);
  box-shadow: 0 14px 26px rgba(91, 92, 246, 0.24);
}

.home-hero-art {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  place-items: center;
}

.home-hero-art-image {
  display: block;
  width: min(100%, 650px);
  max-height: 438px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(79, 70, 229, 0.12));
}

.home-stat-strip {
  display: none;
}

.home-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ebe8ff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.05);
}

.home-trust-strip article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-right: 1px solid #eeeefe;
}

.home-trust-strip article:last-child {
  border-right: 0;
}

.home-trust-strip .icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #5b5cf6;
  background: #f1efff;
  border: 1px solid #e4dfff;
  border-radius: 10px;
}

.home-trust-strip .icon svg {
  width: 20px;
  height: 20px;
}

.home-trust-strip strong,
.home-trust-strip small {
  display: block;
  min-width: 0;
}

.home-trust-strip strong {
  margin-bottom: 4px;
  color: #182043;
  font-size: 14px;
}

.home-trust-strip small {
  overflow: hidden;
  color: #7b8497;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-bottom-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.supported-panel,
.home-feature-list {
  border-color: #ebe8ff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.05);
}

.supported-panel {
  padding: 22px;
}

.supported-panel h2 {
  color: #182043;
}

.platform-logo-grid {
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 12px;
}

.platform-logo-grid button {
  min-height: 112px;
  padding: 14px 10px;
  border-color: #ecebf6;
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.platform-logo-grid button:hover {
  border-color: #c9c5ff;
  box-shadow: 0 10px 20px rgba(91, 92, 246, 0.12);
  transform: translateY(-2px);
}

.home-platform-logo,
.market-platform-logo,
.market-table-logo {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
}

.home-platform-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.home-platform-logo .icon,
.market-platform-logo .icon,
.market-table-logo .icon {
  display: grid;
  place-items: center;
}

.home-platform-logo svg,
.market-platform-logo svg,
.market-table-logo svg {
  width: 20px;
  height: 20px;
}

.home-platform-logo.tiktok,
.market-table-logo.tiktok {
  background: #151720;
  color: #ffffff;
}

.market-platform-logo.tiktok {
  background: #151720;
  color: #ffffff;
}

.home-platform-logo.instagram,
.market-table-logo.instagram {
  background: #e84b87;
  color: #ffffff;
}

.market-platform-logo.instagram {
  background: #e84b87;
  color: #ffffff;
}

.home-platform-logo.youtube,
.market-table-logo.youtube {
  background: #ee3f45;
  color: #ffffff;
}

.market-platform-logo.youtube {
  background: #ee3f45;
  color: #ffffff;
}

.home-platform-logo.telegram,
.market-platform-logo.telegram,
.market-table-logo.telegram {
  background: #36a9e1;
  color: #ffffff;
}

.home-platform-logo.facebook,
.market-platform-logo.facebook,
.market-table-logo.facebook {
  background: #287be8;
  color: #ffffff;
}

.home-platform-logo.twitter,
.market-platform-logo.twitter,
.market-table-logo.twitter,
.home-platform-logo.x,
.market-platform-logo.x,
.market-table-logo.x {
  background: #1e2533;
  color: #ffffff;
}

.home-platform-logo.other,
.market-platform-logo.other,
.market-table-logo.other,
.market-platform-logo.all {
  background: #7465e8;
  color: #ffffff;
}

.platform-logo-grid span:not(.home-platform-logo) {
  color: #27304b;
  font-size: 13px;
  font-weight: 700;
}

.platform-logo-grid small {
  max-width: 100%;
  overflow: hidden;
  color: #8d95aa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feature-list button:hover {
  color: #4f46e5;
  background: #faf9ff;
}

.home-feature-list .icon {
  color: #6d4cff;
}

.trust-row {
  min-height: 34px;
  color: #7b8497;
}

.market-page {
  max-width: 1320px;
  gap: 16px;
  margin: 0 auto;
}

.market-title-row {
  padding: 8px 4px 2px;
}

.market-title-row h1 {
  color: #151b3c;
  font-size: 30px;
}

.market-title-row p {
  color: #6c7590;
}

.market-title-actions .link-button,
.market-product-table-panel .link-button {
  color: #5b5cf6;
  font-weight: 700;
}

.market-search-panel {
  min-height: 64px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e8e6fb;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.04);
}

.market-search-panel .market-search {
  min-height: 44px;
  background: #fbfbff;
  border-color: #deddf2;
  border-radius: 9px;
}

.market-search-panel > .primary {
  min-width: 126px;
  background: linear-gradient(135deg, #5b5cf6, #7c3aed);
  box-shadow: 0 10px 18px rgba(91, 92, 246, 0.18);
}

.market-search-panel .ai-match-button {
  padding: 0 14px;
  color: #6359e8;
  font-weight: 800;
}

.market-platform-tabs {
  gap: 10px;
  padding: 10px;
  background: #fbfaff;
  border-color: #e8e5fb;
  border-radius: 12px;
  box-shadow: none;
}

.market-platform-tab {
  flex-basis: 176px;
  min-width: 176px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  height: 64px;
  padding: 0 12px;
  border-radius: 10px;
}

.market-platform-logo {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.market-platform-logo svg {
  width: 18px;
  height: 18px;
}

.market-platform-tab strong {
  align-self: end;
  color: #263150;
  font-size: 14px;
}

.market-platform-tab small {
  align-self: start;
  color: #8189a1;
}

.market-platform-tab:hover {
  background: #f2f0ff;
  border-color: #d8d2ff;
}

.market-platform-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #7d5cff 100%);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(91, 92, 246, 0.25);
}

.market-platform-tab.active .market-platform-logo {
  color: #5b5cf6;
  background: #ffffff;
  box-shadow: none;
}

.market-platform-tab.active strong,
.market-platform-tab.active small {
  color: #ffffff;
}

.market-filter-toolbar {
  gap: 16px;
  padding: 2px 4px;
}

.market-type-tab,
.market-tier-tabs button {
  min-width: 64px;
  color: #48516c;
  border-color: #e5e4ef;
  background: #ffffff;
}

.market-type-tab:hover,
.market-type-tab.active,
.market-tier-tabs button.active {
  color: #4f46e5;
  background: #f0efff;
  border-color: #d5d0ff;
}

.market-filter-toolbar .market-selects select {
  background: #ffffff;
  border-color: #e3e1ee;
  border-radius: 8px;
}

.market-route-notice {
  color: #675fa2;
  background: #f6f4ff;
  border-color: #e6e0ff;
  border-radius: 10px;
}

.market-route-notice svg {
  color: #6d4cff;
}

.market-product-table-panel {
  border-color: #e7e6f2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.05);
}

.market-table-head {
  min-height: 64px;
  padding: 0 20px;
  background: #ffffff;
}

.market-table-head h2 {
  color: #17203f;
}

.market-tier-tabs {
  height: 64px;
}

.market-tier-tabs button {
  height: 64px;
}

.market-product-table th {
  color: #7d8499;
  background: #fbfbff;
  font-size: 12px;
  font-weight: 700;
}

.market-product-table tbody tr:hover {
  background: #fcfbff;
}

.market-table-logo {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.market-table-logo svg {
  width: 17px;
  height: 17px;
}

.market-table-product strong {
  color: #1b2541;
}

.market-product-table .money {
  color: #4f46e5;
  font-weight: 800;
}

.market-region-pill {
  color: #59627a;
  background: #ffffff;
  border-color: #e2e2ec;
}

.market-order-button {
  color: #5b5cf6;
  border-color: #bdb8ff;
  background: #ffffff;
}

.market-order-button:hover {
  color: #ffffff;
  background: #5b5cf6;
  border-color: #5b5cf6;
}

@media (max-width: 980px) {
  .official-hero.home-hero-refresh {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .official-hero.home-hero-refresh .hero-copy {
    padding-left: 12px;
  }

  .home-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust-strip article:nth-child(2) {
    border-right: 0;
  }

  .home-trust-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid #eeeefe;
  }

  .home-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page:has(.official-home),
  .page:has(.market-page) {
    padding-inline: 12px;
  }

  .official-hero.home-hero-refresh {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px 16px 10px;
    border-radius: 12px;
  }

  .official-hero.home-hero-refresh .hero-copy {
    padding: 18px 4px 0;
  }

  .official-hero.home-hero-refresh .hero-copy h1 {
    font-size: 38px;
  }

  .official-hero.home-hero-refresh .hero-copy h1 span {
    width: auto;
  }

  .home-hero-art-image {
    width: min(100%, 520px);
    max-height: 300px;
  }

  .home-trust-strip {
    grid-template-columns: 1fr;
  }

  .home-trust-strip article,
  .home-trust-strip article:nth-child(2) {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid #eeeefe;
  }

  .home-trust-strip article:last-child {
    border-bottom: 0;
  }

  .platform-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-title-row {
    gap: 12px;
    padding-inline: 0;
  }

  .market-title-actions {
    gap: 10px;
    padding-top: 0;
    font-size: 13px;
  }

  .market-search-panel {
    gap: 8px;
  }

  .market-search-panel > .primary,
  .market-search-panel .ai-match-button {
    width: 100%;
  }

  .market-platform-tab {
    flex-basis: 158px;
    min-width: 158px;
  }

  .market-filter-toolbar .market-selects {
    width: 100%;
  }

  .market-table-head {
    padding: 0 14px;
  }

  .market-tier-tabs {
    margin-right: 0;
  }
}

/* Dashboard visual refresh cascade guard */
.dashboard-visual-refresh .member-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 22px;
  min-height: 190px;
  padding: 28px 26px;
  background:
    radial-gradient(circle at 84% 20%, rgba(188, 170, 255, 0.45), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #faf9ff 58%, #f3efff 100%);
  border-color: #e2ddff;
}

.dashboard-visual-refresh .member-dashboard-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-visual-refresh .member-quick-actions {
  grid-template-columns: 136px repeat(6, minmax(0, 1fr));
}

.dashboard-visual-refresh .member-dashboard-grid {
  gap: 18px;
}

.dashboard-visual-refresh .member-platform-cards button.active {
  color: #3f3aa9;
  background: #f2f0ff;
  border-color: #7c6dff;
}

@media (max-width: 1180px) {
  .dashboard-visual-refresh .member-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-visual-refresh .member-dashboard-strip,
  .dashboard-visual-refresh .member-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-visual-refresh .member-dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 16px;
  }

  .dashboard-visual-refresh .member-dashboard-strip,
  .dashboard-visual-refresh .member-quick-actions,
  .dashboard-visual-refresh .member-platform-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sitewide visual system alignment */
.page:has(.sitewide-member-workspace),
.page:has(.sitewide-public-page) {
  max-width: 1400px;
}

.sitewide-public-page,
.sitewide-member-workspace {
  gap: 16px;
}

.sitewide-member-workspace :is(.console-title, .orders-hero, .add-funds-hero),
.sitewide-member-workspace :is(.services-toolbar, .orders-filter-bar),
.sitewide-member-workspace :is(.table-card, .orders-table-card, .fund-step-card, .add-funds-side) {
  border-color: #e8e6f4;
  border-radius: 8px;
}

.sitewide-member-workspace :is(.services-toolbar, .orders-filter-bar),
.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.04);
}

.workspace-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e8e6f4;
  border-radius: 8px;
}

.sitewide-member-workspace :is(.orders-hero, .add-funds-hero) {
  min-height: 166px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2ddff;
  box-shadow: 0 12px 32px rgba(35, 30, 80, 0.05);
}

.sitewide-member-workspace .orders-hero h1,
.sitewide-member-workspace .add-funds-hero h1,
.sitewide-member-workspace .console-title h1 {
  color: #182043;
}

.sitewide-member-workspace .orders-hero p,
.sitewide-member-workspace .add-funds-hero p,
.sitewide-member-workspace .console-title p {
  color: #667085;
}

.sitewide-member-workspace .orders-filter-bar > :is(select, .date-filter),
.sitewide-member-workspace .services-toolbar > :is(select, label),
.sitewide-member-workspace .orders-search,
.sitewide-member-workspace .services-search {
  min-height: var(--ui-control-md);
}

.sitewide-member-workspace .orders-filter-bar select,
.sitewide-member-workspace .services-toolbar select {
  min-width: 144px;
}

.sitewide-member-workspace :is(.orders-table-card, .services-table-card, .fund-step-card, .add-funds-side) {
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 30, 80, 0.045);
}

.sitewide-member-workspace :is(.orders-data-table, .services-data-table) :is(th, td) {
  vertical-align: middle;
}

.sitewide-member-workspace :is(.orders-data-table, .services-data-table) tbody tr:hover {
  background: #fbfaff;
}

.sitewide-member-workspace :is(.orders-data-table, .services-data-table) :is(td:nth-last-child(-n + 2), .charge, .pill, .row-actions) {
  white-space: nowrap;
}

.sitewide-member-workspace .order-stat-grid article,
.sitewide-member-workspace .fund-amount-card,
.sitewide-member-workspace .payment-option {
  border-radius: 8px;
}

.admin-layout.admin-visual-refresh {
  gap: 16px;
}

.admin-layout.admin-visual-refresh .admin-sidebar {
  border-color: #e8e6f4;
  box-shadow: 0 12px 32px rgba(35, 30, 80, 0.045);
}

.admin-layout.admin-visual-refresh .admin-sidebar button.active {
  color: #4f46e5;
  background: #f0eeff;
}

.admin-layout.admin-visual-refresh .admin-sidebar button {
  min-height: var(--ui-control-md);
  padding: 0 12px;
  border-radius: 8px;
  color: #344054;
  background: transparent;
}

.admin-layout.admin-visual-refresh .admin-sidebar button:hover {
  color: #4f46e5;
  background: #fbfaff;
}

.admin-layout.admin-visual-refresh .admin-content {
  gap: 16px;
}

.admin-layout.admin-visual-refresh :is(.admin-header, .admin-filters, .table-card, .panel, .stat-grid > div) {
  border-color: #e8e6f4;
  border-radius: 8px;
}

.admin-layout.admin-visual-refresh .admin-header {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.04);
}

.admin-layout.admin-visual-refresh .admin-filters {
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.035);
}

.admin-layout.admin-visual-refresh .admin-orders-compact-summary {
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.035);
}

.admin-layout.admin-visual-refresh .admin-table-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: var(--ui-control-lg);
  padding: 12px 16px;
  border-bottom: 1px solid #eeecf7;
}

.admin-layout.admin-visual-refresh .smart-workbench-summary,
.admin-layout.admin-visual-refresh .smart-product-command,
.admin-layout.admin-visual-refresh .classification-command-panel,
.admin-layout.admin-visual-refresh .service-translation-admin-panel {
  border-color: #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.04);
}

.admin-layout.admin-visual-refresh .system-update-grid {
  gap: 16px;
}

.admin-layout.admin-visual-refresh .settings-form {
  gap: 16px;
}

.admin-layout.admin-visual-refresh :is(.smart-workbench-tabs, .product-pool-workspace-tabs, .code-tabs) {
  padding: 4px;
  background: #fbfaff;
  border-color: #e8e6f4;
  border-radius: 8px;
}

.admin-layout.admin-visual-refresh :is(.smart-workbench-tabs, .product-pool-workspace-tabs, .code-tabs) button.active {
  color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(35, 30, 80, 0.08);
}

.admin-layout.admin-visual-refresh .classification-summary-grid > div,
.admin-layout.admin-visual-refresh .smart-workbench-stats > div,
.admin-layout.admin-visual-refresh .update-steps span,
.admin-layout.admin-visual-refresh .update-check-list div {
  border-color: #e8e6f4;
  border-radius: 8px;
}

.admin-layout.admin-visual-refresh :is(.compact-table, .data-table) tbody tr:hover {
  background: #fbfaff;
}

.admin-layout.admin-visual-refresh :is(.compact-table, .data-table) th {
  color: #667085;
  background: #fcfcfe;
}

.admin-layout.admin-visual-refresh :is(.compact-table, .data-table) td {
  min-height: 48px;
}

.admin-layout.admin-visual-refresh :is(.compact-table, .data-table) :is(.pill, .status-box, .row-actions) {
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .sitewide-member-workspace :is(.orders-hero, .add-funds-hero) {
    min-height: 0;
  }

  .admin-layout.admin-visual-refresh .admin-content {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .sitewide-member-workspace :is(.services-toolbar, .orders-filter-bar) > :is(select, .date-filter) {
    flex: 1 1 180px;
  }

  .admin-layout.admin-visual-refresh .admin-sidebar {
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .page:has(.sitewide-member-workspace) {
    padding-inline: 12px;
  }

  .sitewide-member-workspace :is(.orders-hero, .add-funds-hero) {
    padding: 18px 16px;
  }

  .sitewide-member-workspace :is(.services-toolbar, .orders-filter-bar),
  .workspace-toolbar,
  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sitewide-member-workspace :is(.services-toolbar, .orders-filter-bar) > *,
  .workspace-toolbar > *,
  .workspace-header > * {
    width: 100%;
    max-width: none;
  }

  .sitewide-member-workspace .orders-filter-bar :is(select, .date-filter),
  .sitewide-member-workspace .services-toolbar :is(select, label) {
    flex: 0 0 auto;
  }

  .admin-layout.admin-visual-refresh .admin-sidebar {
    border-radius: 8px;
  }
}

.support-page.sitewide-member-workspace,
.tickets-page.sitewide-member-workspace,
.subsite-page.sitewide-member-workspace,
.subsite-manage-page.sitewide-member-workspace {
  display: grid;
  gap: 16px;
}

.support-page.sitewide-member-workspace .help-hero,
.support-page.sitewide-member-workspace .contact-band,
.tickets-page.sitewide-member-workspace .filters,
.subsite-manage-page.sitewide-member-workspace .balance-band {
  border: 1px solid #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(35, 30, 80, 0.045);
}

.support-page.sitewide-member-workspace .help-hero {
  min-height: 0;
  padding: 24px;
  color: #182043;
  background: #ffffff;
}

.support-page.sitewide-member-workspace .help-hero :is(h1, p) {
  color: #182043;
}

.support-page.sitewide-member-workspace .help-hero .search-field {
  max-width: 680px;
  background: #ffffff;
  border-color: #dedbea;
}

.support-page.sitewide-member-workspace .category-grid button,
.tickets-page.sitewide-member-workspace .ticket-card,
.subsite-page.sitewide-member-workspace .panel,
.subsite-manage-page.sitewide-member-workspace .panel {
  border-color: #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(35, 30, 80, 0.04);
}

.support-page.sitewide-member-workspace .category-grid button:hover,
.tickets-page.sitewide-member-workspace .ticket-card:hover {
  border-color: #cbc4ff;
  background: #fbfaff;
}

.support-page.sitewide-member-workspace .contact-band {
  padding: 18px 20px;
  color: #182043;
  background: #ffffff;
}

.tickets-page.sitewide-member-workspace .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
}

.tickets-page.sitewide-member-workspace .filters button.active {
  color: #4f46e5;
  background: #f0eeff;
  border-color: #d9d3ff;
}

.agent-page-shell.sitewide-member-workspace {
  overflow: hidden;
  border: 1px solid #e8e6f4;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 30, 80, 0.05);
}

.agent-page-shell.sitewide-member-workspace .agent-sidebar {
  background: #fbfaff;
  border-right-color: #e8e6f4;
}

.agent-page-shell.sitewide-member-workspace .agent-chat-panel {
  background: #ffffff;
}

.agent-page-shell.sitewide-member-workspace .agent-menu-list button.active,
.agent-page-shell.sitewide-member-workspace .agent-quick-actions button:hover {
  color: #4f46e5;
  background: #f0eeff;
}

.agent-page-shell.sitewide-member-workspace .agent-compose {
  border-color: #dedbea;
  border-radius: 8px;
}

.docs-layout.sitewide-member-workspace {
  overflow: hidden;
  border: 1px solid #e8e6f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(35, 30, 80, 0.045);
}

.docs-layout.sitewide-member-workspace .docs-nav {
  background: #fbfaff;
  border-right-color: #e8e6f4;
}

.docs-layout.sitewide-member-workspace .docs-nav button.active,
.docs-layout.sitewide-member-workspace .code-tabs button.active {
  color: #4f46e5;
  background: #f0eeff;
}

.docs-layout.sitewide-member-workspace .docs-content .page-title {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeecf7;
}

.subsite-manage-page.sitewide-member-workspace .balance-band {
  overflow: hidden;
  background: #ffffff;
}

.subsite-manage-page.sitewide-member-workspace .balance-band > div {
  min-height: 94px;
  padding: 14px 16px;
}

.subsite-manage-page.sitewide-member-workspace .balance-band strong {
  color: #4f46e5;
  font-variant-numeric: tabular-nums;
}

.subsite-manage-page.sitewide-member-workspace .admin-table-head {
  min-height: var(--ui-control-lg);
}

@media (max-width: 900px) {
  .docs-layout.sitewide-member-workspace {
    grid-template-columns: 1fr;
  }

  .docs-layout.sitewide-member-workspace .docs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e8e6f4;
  }

  .docs-layout.sitewide-member-workspace .docs-nav h2 {
    flex: 0 0 auto;
  }

  .docs-layout.sitewide-member-workspace .docs-nav button {
    flex: 0 0 auto;
  }

  .admin-layout.admin-visual-refresh .system-update-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout.admin-visual-refresh .smart-workbench-summary,
  .admin-layout.admin-visual-refresh .smart-product-command,
  .admin-layout.admin-visual-refresh .classification-command-panel {
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .support-page.sitewide-member-workspace .help-hero,
  .support-page.sitewide-member-workspace .contact-band {
    padding: 18px 16px;
  }

  .support-page.sitewide-member-workspace .contact-band,
  .tickets-page.sitewide-member-workspace .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .support-page.sitewide-member-workspace .contact-band .primary,
  .tickets-page.sitewide-member-workspace .filters button {
    width: 100%;
  }

  .agent-page-shell.sitewide-member-workspace {
    border-radius: 8px;
  }

  .subsite-manage-page.sitewide-member-workspace .balance-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sitewide-member-workspace.market-page .market-platform-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.sitewide-member-workspace.market-page .market-platform-tab {
  width: 100%;
  min-width: 0;
  flex-basis: auto;
}

@media (max-width: 1100px) {
  .sitewide-member-workspace.market-page .market-platform-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sitewide-member-workspace.market-page .market-platform-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .sitewide-member-workspace.market-page .market-platform-tab {
    min-height: 58px;
  }
}

/* Rounded public homepage privacy refresh */
.home-rounded-studio {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 38px;
}

.home-conversion-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr) minmax(300px, 360px);
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: 38px 42px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, #fbf7ff 0%, #f4edff 52%, #ffffff 100%);
  box-shadow: 0 22px 60px rgba(86, 55, 180, 0.12);
}

.home-hero-copy h1 {
  max-width: 560px;
  margin: 18px 0 12px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hero-copy h1 span,
.home-hero-copy h1 em {
  display: block;
  font-style: normal;
}

.home-hero-copy h1 em {
  color: #6d28d9;
}

.home-hero-copy p {
  max-width: 520px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.75;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
  font-weight: 700;
  font-size: 13px;
}

.home-hero-actions,
.home-service-search,
.home-platform-chips,
.home-popular-services header,
.home-service-row,
.home-service-name {
  display: flex;
  align-items: center;
}

.home-hero-actions {
  gap: 14px;
  margin-top: 28px;
}

.home-rounded-studio .primary {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 54%, #a855f7 100%);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.24);
}

.home-rounded-studio .secondary {
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #1e1b4b;
  background: rgba(255, 255, 255, 0.86);
}

.home-rounded-studio .secondary:hover,
.home-platform-chips button:hover,
.home-service-row:hover {
  border-color: rgba(124, 58, 237, 0.28);
  background: #fbfaff;
}

.home-hero-center {
  position: relative;
  min-height: 280px;
}

.home-rounded-studio .home-hero-art {
  width: 100%;
  min-height: 320px;
  margin: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
}

.home-rounded-studio .home-hero-art-image {
  width: 100%;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(99, 102, 241, 0.18));
}

.home-ai-match-card {
  position: absolute;
  right: 4px;
  bottom: 14px;
  width: min(250px, 72%);
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(86, 55, 180, 0.16);
}

.home-ai-match-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.home-auth-card {
  align-self: stretch;
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(86, 55, 180, 0.12);
}

.home-auth-card .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: #f5f2ff;
}

.home-auth-card .auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #64748b;
  background: transparent;
  font-weight: 700;
}

.home-auth-card .auth-tabs button.active {
  color: #6d28d9;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(86, 55, 180, 0.1);
}

.home-auth-card .auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.home-auth-card .auth-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.home-auth-card .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.home-auth-card .wide {
  width: 100%;
}

.home-auth-card .auth-switch {
  justify-self: center;
}

.home-auth-card.signed-in h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.home-auth-card.signed-in p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.home-auth-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  color: #1e1b4b;
  background: #f5f2ff;
}

.home-auth-balance strong {
  color: #6d28d9;
  font-size: 22px;
}

.home-service-search {
  gap: 16px;
  margin: 22px 0;
  padding: 16px 22px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.home-service-search label {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.home-service-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.home-platform-chips {
  flex-wrap: wrap;
  gap: 9px;
}

.home-platform-chips > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.home-platform-chips button,
.home-service-row {
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: #ffffff;
  border-radius: 16px;
}

.home-platform-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  color: #1e293b;
  font-weight: 700;
}

.home-popular-services {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.home-popular-services header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-popular-services h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #0f172a;
  font-size: 20px;
}

.home-service-table {
  display: grid;
  gap: 8px;
}

.home-service-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 130px 140px;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px;
  color: #1e293b;
}

.home-service-name {
  gap: 12px;
  min-width: 0;
}

.home-service-name strong,
.home-service-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-service-name small {
  margin-top: 3px;
  color: #64748b;
}

.home-service-row > span {
  color: #334155;
  font-weight: 700;
}

.home-service-row .primary.small {
  justify-content: center;
}

.home-trust-strip.rounded {
  margin-top: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1180px) {
  .home-conversion-hero {
    grid-template-columns: 1fr 340px;
  }

  .home-hero-center {
    order: 3;
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-rounded-studio {
    padding: 12px;
  }

  .home-conversion-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 24px;
  }

  .home-hero-copy h1 {
    font-size: 32px;
  }

  .home-service-search {
    align-items: stretch;
    flex-direction: column;
  }

  .home-service-search label {
    flex: 0 0 auto;
    width: 100%;
  }

  .home-hero-center {
    order: 2;
    grid-column: auto;
    min-height: 240px;
  }

  .home-auth-card {
    order: 3;
  }

  .home-rounded-studio .home-hero-art {
    min-height: 240px;
  }

  .home-rounded-studio .home-hero-art-image {
    height: 240px;
  }

  .home-platform-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .home-platform-chips button {
    flex: 0 0 auto;
  }

  .home-service-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .home-service-row .primary.small {
    width: 100%;
  }
}

/* 2026-07 smart marketplace rounded catalog refresh */
.sitewide-member-workspace.market-page {
  max-width: 1440px;
  gap: 18px;
  padding: 18px 24px 42px;
}

.sitewide-member-workspace.market-page .market-title-row {
  min-height: 94px;
  padding: 10px 0 2px;
}

.sitewide-member-workspace.market-page .market-title-row h1 {
  font-size: 32px;
  line-height: 1.15;
}

.sitewide-member-workspace.market-page .market-title-actions {
  gap: 14px;
}

.sitewide-member-workspace.market-page .market-title-actions .link-button {
  min-height: 50px;
  padding: 0 22px;
  color: #6d4cff;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ded9ff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(93, 75, 214, 0.08);
}

.market-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px minmax(220px, 500px);
  gap: 18px;
  min-height: 106px;
  padding: 20px;
  background:
    radial-gradient(circle at 79% 24%, rgba(195, 181, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #faf8ff 52%, #f4f0ff 100%);
  border: 1px solid #e4defd;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(78, 70, 170, 0.1);
}

.market-command-panel .market-search {
  min-height: 62px;
  padding-inline: 18px;
  background: #ffffff;
  border-color: #dcd8f1;
  border-radius: 16px;
}

.market-command-panel .market-search .icon {
  color: #68708c;
}

.market-command-panel > .primary {
  min-height: 62px;
  border-radius: 16px;
}

.market-command-panel .ai-match-button {
  min-height: 62px;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #8c4cf6 0%, #6d4cff 58%, #7c83ff 100%);
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(109, 76, 255, 0.22);
}

.sitewide-member-workspace.market-page .market-platform-tabs {
  grid-template-columns: repeat(12, minmax(78px, 1fr));
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e6e1f7;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.05);
}

.sitewide-member-workspace.market-page .market-platform-tab {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 44px auto auto;
  justify-items: center;
  min-height: 92px;
  padding: 8px 6px;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
}

.sitewide-member-workspace.market-page .market-platform-tab:hover {
  background: #fbfaff;
  border-color: #ebe7ff;
}

.sitewide-member-workspace.market-page .market-platform-tab.active {
  color: #5d3bdb;
  background: #f4f0ff;
  border-color: #9b87ff;
  box-shadow: 0 12px 26px rgba(109, 76, 255, 0.16);
}

.sitewide-member-workspace.market-page .market-platform-tab strong {
  align-self: end;
  max-width: 100%;
  color: #28324f;
  font-size: 13px;
  white-space: nowrap;
}

.sitewide-member-workspace.market-page .market-platform-tab small {
  color: #7b849d;
  font-size: 11px;
}

.market-platform-logo,
.market-table-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  background: #6d4cff;
}

.market-platform-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.market-table-logo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.market-platform-logo img,
.market-table-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.market-platform-logo.all svg {
  width: 21px;
  height: 21px;
}

.market-platform-logo.tiktok,
.market-table-logo.tiktok,
.market-platform-logo.x,
.market-table-logo.x {
  background: #10131b;
}

.market-platform-logo.instagram,
.market-table-logo.instagram {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 48%, #7c3aed 100%);
}

.market-platform-logo.youtube,
.market-table-logo.youtube {
  background: #ff0033;
}

.market-platform-logo.facebook,
.market-table-logo.facebook {
  background: #1877f2;
}

.market-platform-logo.telegram,
.market-table-logo.telegram {
  background: #27a7e7;
}

.market-platform-logo.wechat,
.market-table-logo.wechat {
  background: #07c160;
}

.market-platform-logo.kwai,
.market-table-logo.kwai {
  background: #ff5b00;
}

.market-platform-logo.xiaohongshu,
.market-table-logo.xiaohongshu {
  background: #ff2442;
}

.market-platform-logo.bilibili,
.market-table-logo.bilibili {
  background: #00aeec;
}

.market-service-filter-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 1px auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e7e2f8;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.04);
}

.market-filter-label {
  color: #53607a;
  font-size: 14px;
  font-weight: 800;
}

.market-filter-divider {
  width: 1px;
  height: 34px;
  background: #e7e2f8;
}

.sitewide-member-workspace.market-page .market-type-tabs {
  gap: 8px;
  overflow-x: auto;
}

.sitewide-member-workspace.market-page .market-type-tab,
.sitewide-member-workspace.market-page .market-tier-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
}

.sitewide-member-workspace.market-page .market-type-tab.active,
.sitewide-member-workspace.market-page .market-tier-tabs button.active {
  color: #6241e8;
  background: #f1edff;
  border-color: #cfc5ff;
}

.sitewide-member-workspace.market-page .market-selects {
  gap: 10px;
}

.sitewide-member-workspace.market-page .market-selects select {
  min-height: 42px;
  border-radius: 13px;
}

.sitewide-member-workspace.market-page .market-route-notice {
  min-height: 46px;
  padding: 0 16px;
  color: #5d6591;
  background: #fbfaff;
  border-color: #e6e0ff;
  border-radius: 16px;
}

.sitewide-member-workspace.market-page .market-product-table-panel {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4def0;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(38, 32, 92, 0.08);
}

.sitewide-member-workspace.market-page .market-table-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  min-height: 72px;
  padding: 0 22px;
}

.sitewide-member-workspace.market-page .market-tier-tabs {
  height: auto;
  padding: 0;
  border: 0;
}

.sitewide-member-workspace.market-page .market-product-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.sitewide-member-workspace.market-page .market-product-table th:nth-child(1),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(1) {
  width: 38%;
}

.sitewide-member-workspace.market-page .market-product-table th:nth-child(2),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(2) {
  width: 10%;
}

.sitewide-member-workspace.market-page .market-product-table th:nth-child(3),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(3),
.sitewide-member-workspace.market-page .market-product-table th:nth-child(4),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(4),
.sitewide-member-workspace.market-page .market-product-table th:nth-child(5),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(5),
.sitewide-member-workspace.market-page .market-product-table th:nth-child(6),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(6) {
  width: 12%;
}

.sitewide-member-workspace.market-page .market-product-table th:nth-child(7),
.sitewide-member-workspace.market-page .market-product-table td:nth-child(7) {
  width: 14%;
}

.sitewide-member-workspace.market-page .market-product-table th {
  height: 50px;
  padding: 0 18px;
  color: #7b849d;
  background: #fbfaff;
  font-size: 12px;
}

.sitewide-member-workspace.market-page .market-product-table td {
  height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0edf8;
}

.sitewide-member-workspace.market-page .market-product-row-v2:hover {
  background: linear-gradient(90deg, rgba(109, 76, 255, 0.05), rgba(255, 255, 255, 0));
}

.sitewide-member-workspace.market-page .market-table-product {
  gap: 13px;
}

.sitewide-member-workspace.market-page .market-table-product strong {
  max-width: 560px;
  color: #17203f;
  font-size: 14px;
}

.sitewide-member-workspace.market-page .market-table-product small {
  max-width: 560px;
  color: #69738f;
}

.market-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-style: normal;
}

.market-row-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #5f63d6;
  background: #f0f2ff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.sitewide-member-workspace.market-page .market-region-pill {
  border-radius: 999px;
}

.sitewide-member-workspace.market-page .market-product-table .money {
  color: #111827;
  font-weight: 850;
}

.market-quality-cell {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #0f9f6e;
  background: #e9fbf3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.market-quality-cell .icon svg {
  width: 14px;
  height: 14px;
}

.market-quality-cell.info {
  color: #2563eb;
  background: #eef5ff;
}

.market-quality-cell.warning {
  color: #c06a00;
  background: #fff7e8;
}

.market-quality-cell.muted {
  color: #64748b;
  background: #f1f5f9;
}

.sitewide-member-workspace.market-page .market-order-button {
  min-width: 92px;
  min-height: 38px;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #5b5cf6);
  border-color: transparent;
  border-radius: 13px;
  box-shadow: 0 10px 18px rgba(91, 92, 246, 0.2);
}

.sitewide-member-workspace.market-page .market-order-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(91, 92, 246, 0.24);
}

@media (max-width: 1180px) {
  .market-command-panel {
    grid-template-columns: 1fr;
  }

  .sitewide-member-workspace.market-page .market-platform-tabs {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
  }

  .market-service-filter-card {
    grid-template-columns: 1fr;
  }

  .market-filter-divider {
    display: none;
  }
}

@media (max-width: 720px) {
  .sitewide-member-workspace.market-page {
    padding: 12px 12px 28px;
  }

  .sitewide-member-workspace.market-page .market-title-row,
  .sitewide-member-workspace.market-page .market-table-head {
    grid-template-columns: 1fr;
  }

  .sitewide-member-workspace.market-page .market-platform-tabs {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    padding: 10px;
  }

  .sitewide-member-workspace.market-page .market-platform-tab {
    min-height: 84px;
  }

  .market-command-panel,
  .market-service-filter-card,
  .sitewide-member-workspace.market-page .market-product-table-panel {
    border-radius: 18px;
  }

  .sitewide-member-workspace.market-page .market-product-table {
    min-width: 860px;
  }
}

/* 2026-07 services rounded catalog refresh */
.services-rounded-page {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  max-width: 1440px;
  padding: 18px 24px 42px;
}

.services-rounded-page .services-main-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.services-rounded-page .services-hero-card {
  min-height: 120px;
  padding: 24px 26px;
  background:
    radial-gradient(circle at 86% 18%, rgba(236, 72, 153, 0.12), transparent 24%),
    radial-gradient(circle at 74% 72%, rgba(124, 58, 237, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbfaff 54%, #f4f0ff 100%);
  border: 1px solid #e5def8;
  border-radius: 26px;
  box-shadow: 0 20px 54px rgba(62, 52, 140, 0.1);
}

.services-rounded-page .services-title-row {
  margin-bottom: 16px;
}

.services-rounded-page .services-title-row h1 {
  font-size: 32px;
  line-height: 1.16;
}

.services-rounded-page .services-refresh-button {
  min-height: 44px;
  padding: 0 16px;
  color: #6044de;
  background: rgba(255, 255, 255, 0.9);
  border-color: #ded8ff;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(93, 75, 214, 0.1);
}

.services-rounded-page .services-command-panel {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(170px, 210px) auto;
  gap: 12px;
  min-height: 76px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e7e1f7;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.055);
}

.services-rounded-page .services-select-field,
.services-rounded-page .services-sort-select,
.services-rounded-page .services-search {
  min-height: 48px;
  margin: 0;
  background: #ffffff;
  border-color: #ded9ee;
  border-radius: 16px;
}

.services-rounded-page .services-search {
  padding-inline: 16px;
}

.services-rounded-page .search-submit {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(91, 92, 246, 0.18);
}

.services-rounded-page .service-type-card {
  gap: 8px;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e8e2f8;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.045);
}

.services-rounded-page .service-type-card button {
  min-height: 40px;
  padding: 0 16px;
  background: #ffffff;
  border-color: #e5e0f4;
  border-radius: 14px;
}

.services-rounded-page .service-type-card button.active {
  color: #6140e7;
  background: #f1edff;
  border-color: #cfc5ff;
  box-shadow: 0 10px 20px rgba(109, 76, 255, 0.12);
}

.services-rounded-page .service-platform-sidebar {
  position: sticky;
  top: 78px;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.1), transparent 26%),
    #ffffff;
  border: 1px solid #e5def8;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(62, 52, 140, 0.08);
}

.services-rounded-page .service-platform-option {
  min-height: 58px;
  padding: 10px 12px;
  color: #33405c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
}

.services-rounded-page .service-platform-option:hover {
  background: #fbfaff;
  border-color: #ebe7ff;
}

.services-rounded-page .service-platform-option.active {
  color: #5b3fe4;
  background: #f4f0ff;
  border-color: #a895ff;
  box-shadow: 0 12px 24px rgba(109, 76, 255, 0.15);
}

.service-platform-logo,
.service-table-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  background: #6d4cff;
}

.service-platform-logo {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.service-table-logo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.services-rounded-page .service-name-cell span.service-table-logo {
  display: inline-flex;
  overflow: hidden;
  color: #ffffff;
  line-height: 1;
  white-space: normal;
}

.service-platform-logo img,
.service-table-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-platform-logo.all svg {
  width: 20px;
  height: 20px;
}

.service-platform-logo.tiktok,
.service-table-logo.tiktok,
.service-platform-logo.x,
.service-table-logo.x {
  background: #10131b;
}

.service-platform-logo.instagram,
.service-table-logo.instagram {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 48%, #7c3aed 100%);
}

.service-platform-logo.youtube,
.service-table-logo.youtube {
  background: #ff0033;
}

.service-platform-logo.facebook,
.service-table-logo.facebook {
  background: #1877f2;
}

.service-platform-logo.telegram,
.service-table-logo.telegram {
  background: #27a7e7;
}

.service-platform-logo.wechat,
.service-table-logo.wechat {
  background: #07c160;
}

.service-platform-logo.kwai,
.service-table-logo.kwai {
  background: #ff5b00;
}

.service-platform-logo.xiaohongshu,
.service-table-logo.xiaohongshu {
  background: #ff2442;
}

.service-platform-logo.bilibili,
.service-table-logo.bilibili {
  background: #00aeec;
}

.services-rounded-page .services-table-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4def0;
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(38, 32, 92, 0.08);
}

.services-rounded-page .services-table-card > header {
  min-height: 72px;
  padding: 0 22px;
}

.services-rounded-page .services-table-card > header h2 {
  color: #17203f;
  font-size: 20px;
}

.services-rounded-page .services-table-card > header span {
  color: #6d4cff;
  font-weight: 800;
}

.services-rounded-page .services-data-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.services-rounded-page .services-data-table th {
  height: 50px;
  padding: 0 18px;
  color: #7b849d;
  background: #fbfaff;
  font-size: 12px;
}

.services-rounded-page .services-data-table td {
  height: 78px;
  padding: 13px 18px;
  border-bottom: 1px solid #f0edf8;
}

.services-rounded-page .services-table-row:hover {
  background: linear-gradient(90deg, rgba(109, 76, 255, 0.05), rgba(255, 255, 255, 0));
}

.services-rounded-page .service-name-cell {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
}

.services-rounded-page .service-title-stack strong {
  max-width: 560px;
  color: #17203f;
  font-size: 14px;
}

.services-rounded-page .service-title-stack > span,
.services-rounded-page .service-title-stack small {
  max-width: 560px;
  color: #69738f;
}

.services-rounded-page .table-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #5f63d6;
  background: #f0f2ff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.services-rounded-page .service-status-pill {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
}

.services-rounded-page .favorite-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.services-rounded-page .service-order-button {
  min-width: 92px;
  min-height: 38px;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #5b5cf6);
  border-color: transparent;
  border-radius: 13px;
  box-shadow: 0 10px 18px rgba(91, 92, 246, 0.2);
}

.services-rounded-page .service-order-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(91, 92, 246, 0.24);
}

.services-rounded-page .table-footer {
  padding: 14px 22px;
}

@media (max-width: 1180px) {
  .services-rounded-page {
    grid-template-columns: 1fr;
  }

  .services-rounded-page .service-platform-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .services-rounded-page .service-platform-option {
    flex: 0 0 auto;
    min-width: 154px;
  }

  .services-rounded-page .services-command-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .services-rounded-page {
    padding: 12px 12px 28px;
  }

  .services-rounded-page .services-hero-card,
  .services-rounded-page .services-command-panel {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .services-rounded-page .services-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-rounded-page .services-command-panel,
  .services-rounded-page .service-type-card,
  .services-rounded-page .services-table-card,
  .services-rounded-page .service-platform-sidebar {
    border-radius: 20px;
  }

  .services-rounded-page .services-data-table {
    min-width: 860px;
  }
}

/* 2026-07 orders and recharge rounded high-fidelity refresh */
.orders-rounded-page,
.recharge-rounded-page {
  max-width: 1440px;
  gap: 18px;
  padding: 18px 24px 42px;
}

.recharge-rounded-page {
  padding: 42px 24px 42px;
}

.orders-rounded-hero,
.recharge-rounded-hero {
  overflow: hidden;
  min-height: 252px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at 84% 24%, rgba(236, 72, 153, 0.11), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(124, 58, 237, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fbfaff 52%, #f2efff 100%);
  border: 1px solid #e5def8;
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(62, 52, 140, 0.1);
}

.orders-rounded-hero {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.recharge-rounded-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 224px;
  padding-top: 26px;
  padding-bottom: 22px;
}

.orders-page-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #6d4cff;
  background: #f2edff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.orders-page-kicker .icon svg {
  width: 15px;
  height: 15px;
}

.orders-rounded-hero h1,
.recharge-rounded-hero h1 {
  margin-top: 16px;
  color: #151a34;
  font-size: 38px;
  line-height: 1.14;
}

.orders-rounded-hero p,
.recharge-rounded-hero p {
  max-width: 560px;
  color: #65708a;
  font-size: 15px;
}

.orders-summary-strip,
.recharge-balance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.recharge-balance-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
}

.order-summary-card,
.recharge-balance-strip article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ebe6fa;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.055);
}

.order-summary-card b,
.recharge-balance-strip b {
  grid-row: 1 / span 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 18px;
}

.order-summary-card.green b,
.recharge-balance-strip article:nth-child(3) b {
  color: #0f9f6e;
  background: #dcfce7;
}

.order-summary-card.blue b,
.recharge-balance-strip article:nth-child(2) b {
  color: #2563eb;
  background: #eaf2ff;
}

.order-summary-card.amber b {
  color: #f59e0b;
  background: #fff3df;
}

.order-summary-card span,
.recharge-balance-strip span,
.recharge-balance-strip small {
  color: #6f7891;
  font-size: 12px;
  font-weight: 750;
}

.order-summary-card strong,
.recharge-balance-strip strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
}

.orders-rounded-page .order-stat-grid {
  display: none;
}

.orders-rounded-page .orders-command-panel {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(132px, 150px) minmax(148px, 164px) minmax(150px, 160px) minmax(150px, 160px);
  gap: 12px;
  align-items: end;
  min-height: 96px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e7e1f7;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.055);
}

.orders-rounded-page .orders-filter-field,
.orders-rounded-page .orders-command-panel > select {
  min-height: 56px;
  padding: 8px 14px;
  color: #39435e;
  background: #ffffff;
  border: 1px solid #ded9ee;
  border-radius: 16px;
  box-shadow: none;
}

.orders-rounded-page .orders-filter-field > span {
  display: block;
  margin-bottom: 5px;
  color: #768098;
  font-size: 11px;
  font-weight: 800;
}

.orders-rounded-page .orders-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  grid-template-rows: auto 40px;
  gap: 8px 10px;
  align-items: end;
  min-height: 74px;
}

.orders-rounded-page .orders-search > span {
  grid-column: 1 / -1;
  margin: 0;
}

.orders-rounded-page .orders-search .icon {
  position: absolute;
  bottom: 22px;
  left: 25px;
  z-index: 1;
  color: #6d4cff;
}

.orders-rounded-page .orders-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 38px;
  background: #ffffff;
  border: 1px solid #e2ddf1;
  border-radius: 12px;
}

.orders-rounded-page .orders-search .search-submit {
  width: 156px;
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-color: transparent;
  border-radius: 12px;
}

.orders-rounded-page .orders-command-panel .date-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px 8px 14px;
  background: #ffffff;
  border: 1px solid #ded9ee;
  border-radius: 16px;
}

.orders-rounded-page .orders-command-panel .date-filter span {
  color: #768098;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.orders-rounded-page .orders-command-panel .date-filter input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  background: #fbfaff;
  border: 1px solid #e8e2f6;
  border-radius: 10px;
}

.orders-rounded-page .orders-table-shell {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4def0;
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(38, 32, 92, 0.08);
}

.orders-rounded-page .orders-data-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.orders-rounded-page .orders-data-table th {
  height: 52px;
  padding: 0 18px;
  color: #7b849d;
  background: #fbfaff;
  font-size: 12px;
  font-weight: 850;
}

.orders-rounded-page .orders-data-table td {
  height: 78px;
  padding: 13px 18px;
  border-bottom: 1px solid #f0edf8;
}

.orders-rounded-page .orders-data-table th:nth-child(7),
.orders-rounded-page .orders-data-table td:nth-child(7) {
  display: none;
}

.orders-rounded-page .orders-data-table th:nth-child(1),
.orders-rounded-page .orders-data-table td:nth-child(1) {
  width: 170px;
}

.orders-rounded-page .orders-data-table th:nth-child(2),
.orders-rounded-page .orders-data-table td:nth-child(2) {
  width: 300px;
}

.orders-rounded-page .orders-data-table th:nth-child(3),
.orders-rounded-page .orders-data-table td:nth-child(3) {
  width: 230px;
}

.orders-rounded-page .orders-data-table th:nth-child(4),
.orders-rounded-page .orders-data-table td:nth-child(4) {
  width: 110px;
}

.orders-rounded-page .orders-data-table th:nth-child(5),
.orders-rounded-page .orders-data-table td:nth-child(5) {
  width: 130px;
}

.orders-rounded-page .orders-data-table th:nth-child(6),
.orders-rounded-page .orders-data-table td:nth-child(6) {
  width: 145px;
}

.orders-rounded-page .orders-data-table th:nth-child(8),
.orders-rounded-page .orders-data-table td:nth-child(8) {
  width: 118px;
}

.orders-rounded-page .orders-table-row:hover {
  background: linear-gradient(90deg, rgba(109, 76, 255, 0.05), rgba(255, 255, 255, 0));
}

.order-service-cell small {
  display: block;
  margin-top: 6px;
  color: #74809b;
  font-size: 12px;
}

.order-id-cell .order-id {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: #5b4df6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-amount-cell {
  display: grid;
  gap: 4px;
  align-content: center;
}

.order-amount-cell strong {
  color: #10162f;
  font-size: 14px;
  line-height: 1.1;
}

.order-amount-cell small,
.order-time-cell small {
  display: block;
  color: #74809b;
  font-size: 12px;
}

.order-service-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.order-service-cell strong {
  display: -webkit-box;
  overflow: hidden;
  color: #17203f;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #6d4cff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.order-platform-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.order-platform-logo.tiktok,
.order-platform-logo.x {
  background: #10131b;
}

.order-platform-logo.instagram {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 48%, #7c3aed 100%);
}

.order-platform-logo.youtube {
  background: #ff0033;
}

.order-platform-logo.facebook {
  background: #1877f2;
}

.order-platform-logo.telegram {
  background: #27a7e7;
}

.orders-rounded-page .order-link {
  max-width: 260px;
  color: #6d4cff;
}

.order-progress-cell {
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px 10px;
  align-items: center;
  min-width: 118px;
}

.order-progress-cell b {
  color: #47516e;
  font-size: 12px;
}

.order-progress-cell i {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  height: 5px;
  background: #edf0f7;
  border-radius: 999px;
}

.order-progress-cell em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6d4cff, #22c55e);
  border-radius: inherit;
}

.orders-rounded-page .order-action-button {
  min-height: 36px;
  padding: 0 16px;
  color: #6d4cff;
  background: #ffffff;
  border-color: #bfaeff;
  border-radius: 13px;
}

.orders-rounded-page .orders-pagination {
  padding: 16px 22px;
  border-top-color: #f0edf8;
}

.orders-rounded-page .orders-pagination .pagination button {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
}

.orders-rounded-page .orders-pagination .pagination button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #5b5cf6);
  border-color: transparent;
}

.orders-rounded-page .orders-assurance,
.recharge-rounded-page .recharge-trust-strip {
  overflow: hidden;
  min-height: 82px;
  border-color: #e5def8;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(38, 32, 92, 0.06);
}

.recharge-rounded-page .add-funds-layout {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
}

.recharge-rounded-page .recharge-main-card {
  gap: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e4def0;
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(38, 32, 92, 0.08);
}

.recharge-rounded-page .recharge-main-card .fund-step-card {
  padding: 0 0 24px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #e1dcf1;
  border-radius: 0;
  box-shadow: none;
}

.recharge-rounded-page .recharge-main-card .fund-step-card + .fund-step-card {
  padding-top: 24px;
}

.recharge-rounded-page .fund-step-card > header > span {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(91, 92, 246, 0.2);
}

.recharge-rounded-page .fund-amount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recharge-rounded-page .fund-amount-grid.has-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recharge-rounded-page .fund-amount-grid.empty-packages {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 244px);
  align-items: stretch;
  min-height: 160px;
}

.recharge-rounded-page .fund-amount-grid.empty-packages .service-empty {
  display: grid;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  padding: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.recharge-rounded-page .fund-amount-grid.empty-packages .fund-amount-card.custom {
  justify-self: start;
  width: 100%;
  max-width: 244px;
  min-height: 160px;
}

.recharge-rounded-page .fund-payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 188px));
  gap: 16px;
}

.recharge-rounded-page .fund-amount-card,
.recharge-rounded-page .fund-payment-card {
  overflow: hidden;
  min-height: 126px;
  padding: 18px;
  background: #ffffff;
  border-color: #e4e0ef;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.035);
}

.recharge-rounded-page .fund-amount-card.active,
.recharge-rounded-page .fund-payment-card.active {
  background: #fbfaff;
  border-color: #7c3aed;
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.24),
    0 16px 28px rgba(91, 92, 246, 0.1);
}

.recharge-package-check {
  position: absolute;
  top: -1px;
  right: -1px;
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #7c3aed;
  border-radius: 0 18px 0 14px;
}

.recharge-rounded-page .fund-amount-card.active .recharge-package-check {
  display: inline-flex;
}

.recharge-package-check .icon svg {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.recharge-rounded-page .fund-amount-card i {
  display: none;
}

.recharge-rounded-page .fund-amount-card strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}

.recharge-rounded-page .fund-amount-card.custom strong {
  font-size: 21px;
}

.recharge-rounded-page .fund-amount-card.custom input {
  min-height: 38px;
  margin-top: 14px;
  border-radius: 10px;
}

.recharge-rounded-page .fund-amount-card span:not(.recharge-package-check) {
  min-height: 30px;
  margin-top: 14px;
  padding: 6px 8px;
  color: #0f9f6e;
  background: #f2fbf7;
  border-radius: 10px;
  text-align: center;
}

.payment-method-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(91, 92, 246, 0.18);
}

.payment-method-logo.alipay {
  background: linear-gradient(135deg, #2795ff, #1668dc);
}

.payment-method-logo.binance {
  background: linear-gradient(135deg, #f6c343, #111827);
}

.payment-method-logo.usdt {
  background: linear-gradient(135deg, #26a17b, #0f9f6e);
}

.payment-method-logo.manual {
  background: linear-gradient(135deg, #8c4cf6, #6d4cff);
}

.recharge-rounded-page .fund-payment-card > i {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

.recharge-rounded-page .fund-payment-card span:not(.payment-method-logo) {
  margin-top: 14px;
}

.recharge-rounded-page .fund-note {
  min-height: 42px;
  color: #6856c7;
  background: #f5f1ff;
  border: 1px solid #e2dbff;
  border-radius: 16px;
}

.recharge-rounded-page .funds-sidebar {
  gap: 16px;
}

.recharge-rounded-page .fund-side-card,
.recharge-rounded-page .recharge-summary-sticky {
  background: #ffffff;
  border: 1px solid #e4def0;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(38, 32, 92, 0.075);
}

.recharge-rounded-page .recharge-summary-sticky {
  position: sticky;
  top: 92px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.13), transparent 28%),
    #ffffff;
}

.recharge-rounded-page .recharge-summary-sticky .primary.wide {
  min-height: 48px;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-radius: 15px;
  box-shadow: 0 16px 26px rgba(91, 92, 246, 0.22);
}

.recharge-rounded-page .summary-lines {
  gap: 12px;
}

.recharge-rounded-page .summary-lines .total {
  color: #6d4cff;
  font-size: 26px;
}

.recharge-rounded-page .balance-side-card {
  display: none;
}

.recharge-rounded-page .recent-topups {
  gap: 0;
}

.recent-topup-row {
  min-height: 58px;
  padding: 8px 0;
}

.recharge-rounded-page .recent-topups em {
  color: #0f9f6e;
  background: #dcfce7;
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .orders-rounded-hero,
  .recharge-rounded-hero,
  .recharge-rounded-page .add-funds-layout {
    grid-template-columns: 1fr;
  }

  .orders-rounded-page .orders-command-panel {
    grid-template-columns: 1fr 1fr;
  }

  .orders-summary-strip,
  .recharge-balance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recharge-rounded-page .recharge-summary-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .orders-rounded-page,
  .recharge-rounded-page {
    padding: 12px 12px 28px;
  }

  .orders-rounded-hero,
  .recharge-rounded-hero,
  .orders-rounded-page .orders-command-panel,
  .orders-rounded-page .orders-table-shell,
  .recharge-rounded-page .recharge-main-card,
  .recharge-rounded-page .fund-side-card,
  .recharge-rounded-page .recharge-summary-sticky {
    border-radius: 20px;
  }

  .orders-summary-strip,
  .recharge-balance-strip,
  .orders-rounded-page .orders-command-panel,
  .recharge-rounded-page .fund-amount-grid,
  .recharge-rounded-page .fund-payment-grid {
    grid-template-columns: 1fr;
  }

  .orders-rounded-page .orders-data-table {
    min-width: 980px;
  }
}

/* 2026-07 compact recharge checkout */
.recharge-compact-page {
  max-width: 1240px;
  gap: 12px;
  padding: 24px 24px 28px;
}

.recharge-compact-page .recharge-rounded-hero {
  min-height: 112px;
  padding: 14px 18px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(38, 32, 92, 0.06);
}

.recharge-compact-page .recharge-rounded-hero > div:first-child {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(480px, 1.2fr);
  gap: 10px 18px;
  align-items: center;
}

.recharge-compact-page .funds-hero-art {
  display: none;
}

.recharge-compact-page .orders-page-kicker {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.recharge-compact-page .recharge-rounded-hero h1 {
  margin: 6px 0 2px;
  font-size: 28px;
  line-height: 1.1;
}

.recharge-compact-page .recharge-rounded-hero p {
  margin: 0;
  font-size: 13px;
}

.recharge-compact-page .recharge-balance-strip {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin: 0;
}

.recharge-compact-page .recharge-balance-strip article {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: none;
}

.recharge-compact-page .recharge-balance-strip b {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.recharge-compact-page .recharge-balance-strip strong {
  font-size: 18px;
}

.recharge-compact-page .recharge-balance-strip span,
.recharge-compact-page .recharge-balance-strip small {
  font-size: 11px;
}

.recharge-compact-page .add-funds-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.recharge-compact-page .recharge-main-card {
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(38, 32, 92, 0.065);
}

.recharge-compact-page .recharge-main-card .fund-step-card {
  padding: 0 0 14px;
}

.recharge-compact-page .recharge-main-card .fund-step-card + .fund-step-card {
  padding-top: 14px;
}

.recharge-compact-page .fund-step-card > header {
  align-items: center;
  margin-bottom: 12px;
}

.recharge-compact-page .fund-step-card > header > span {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.recharge-compact-page .fund-step-card h2,
.recharge-compact-page .fund-side-card h2 {
  font-size: 15px;
}

.recharge-compact-page .fund-step-card p {
  display: none;
}

.recharge-compact-page .fund-amount-grid.has-packages,
.recharge-compact-page .fund-payment-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.recharge-compact-page .fund-amount-grid.empty-packages {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  min-height: 104px;
}

.recharge-compact-page .fund-amount-grid.empty-packages .service-empty {
  min-height: 104px;
  padding: 10px 12px;
}

.recharge-compact-page .fund-amount-grid.empty-packages .fund-amount-card.custom {
  max-width: 220px;
  min-height: 104px;
}

.recharge-compact-page .fund-amount-card {
  flex: 0 0 152px;
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
  box-shadow: none;
}

.recharge-compact-page .fund-amount-card.custom {
  flex-basis: 220px;
}

.recharge-compact-page .fund-amount-card strong {
  font-size: 18px;
}

.recharge-compact-page .fund-amount-card.custom strong {
  font-size: 18px;
}

.recharge-compact-page .fund-amount-card.custom input {
  min-height: 34px;
  margin-top: 8px;
}

.recharge-compact-page .fund-amount-card span:not(.recharge-package-check) {
  min-height: auto;
  margin-top: 6px;
  padding: 4px 6px;
  font-size: 11px;
}

.recharge-compact-page .fund-amount-card small {
  margin-top: 5px;
  font-size: 11px;
}

.recharge-compact-page .fund-amount-card em {
  top: 10px;
  right: 10px;
  padding: 2px 6px;
}

.recharge-compact-page .fund-payment-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 10px;
  flex: 0 0 168px;
  min-height: 74px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  box-shadow: none;
}

.recharge-compact-page .payment-method-logo {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 13px;
}

.recharge-compact-page .fund-payment-card > i {
  top: 9px;
  right: 9px;
  width: 14px;
  height: 14px;
}

.recharge-compact-page .fund-payment-card strong {
  padding-right: 18px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-compact-page .fund-payment-card span:not(.payment-method-logo) {
  gap: 5px;
  margin-top: 0;
}

.recharge-compact-page .fund-payment-card b {
  min-width: auto;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
}

.recharge-compact-page .fund-note {
  min-height: 32px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 12px;
}

.recharge-compact-page .funds-sidebar {
  gap: 0;
}

.recharge-compact-page .recharge-summary-sticky {
  top: 76px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(38, 32, 92, 0.075);
}

.recharge-compact-page .recharge-summary-sticky > header {
  align-items: center;
  margin-bottom: 12px;
}

.recharge-compact-page .recharge-summary-sticky .recharge-history-link {
  margin-left: auto;
  white-space: nowrap;
}

.recharge-compact-page .summary-lines {
  gap: 8px;
  margin-bottom: 14px;
}

.recharge-compact-page .summary-lines div {
  gap: 10px;
}

.recharge-compact-page .summary-lines .total {
  font-size: 24px;
}

.recharge-compact-page .recharge-summary-sticky .primary.wide {
  min-height: 44px;
  border-radius: 14px;
}

.recharge-compact-page .fund-side-card:not(.balance-side-card),
.recharge-compact-page .recharge-trust-strip {
  display: none;
}

@media (max-width: 1180px) {
  .recharge-compact-page .recharge-rounded-hero > div:first-child,
  .recharge-compact-page .add-funds-layout {
    grid-template-columns: 1fr;
  }

  .recharge-compact-page .recharge-balance-strip {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .recharge-compact-page {
    padding: 12px 12px 24px;
  }

  .recharge-compact-page .recharge-rounded-hero {
    padding: 14px;
  }

  .recharge-compact-page .recharge-balance-strip {
    grid-template-columns: 1fr;
  }

  .recharge-compact-page .fund-amount-grid.empty-packages {
    grid-template-columns: 1fr;
  }

  .recharge-compact-page .fund-amount-grid.empty-packages .fund-amount-card.custom {
    max-width: none;
  }
}

/* 2026-07 high-fidelity recharge checkout redesign */
.recharge-checkout-page {
  max-width: 1440px;
  gap: 14px;
  padding: 24px 24px 40px;
  background:
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.recharge-checkout-page .recharge-page-title {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.1fr);
  gap: 18px;
  align-items: end;
  padding: 0 4px 2px;
}

.recharge-checkout-page .recharge-page-title h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: 0;
}

.recharge-checkout-page .recharge-page-title p {
  margin: 0;
  color: #59647a;
  font-size: 15px;
}

.recharge-checkout-page .recharge-balance-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin: 0;
}

.recharge-checkout-page .recharge-balance-strip article {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 66px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border-color: #ebe7f5;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(29, 35, 68, 0.05);
}

.recharge-checkout-page .recharge-balance-strip b {
  width: 40px;
  height: 40px;
  color: #6d4cff;
  background: #f1edff;
  border-radius: 14px;
}

.recharge-checkout-page .recharge-balance-strip strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-checkout-page .recharge-balance-strip span,
.recharge-checkout-page .recharge-balance-strip small {
  font-size: 11px;
}

.recharge-checkout-page .add-funds-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.recharge-checkout-page .recharge-main-card,
.recharge-checkout-page .recharge-preview-card,
.recharge-checkout-page .recharge-info-panel,
.recharge-checkout-page .recharge-records-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e7e1f2;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(30, 35, 72, 0.07);
}

.recharge-checkout-page .recharge-main-card {
  gap: 0;
  padding: 26px;
}

.recharge-workflow-panel {
  min-width: 0;
}

.recharge-checkout-page .recharge-main-card .fund-step-card {
  padding: 0 0 26px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ece8f5;
  border-radius: 0;
  box-shadow: none;
}

.recharge-checkout-page .recharge-main-card .fund-step-card + .fund-step-card {
  padding-top: 22px;
  padding-bottom: 0;
  border-bottom: 0;
}

.recharge-checkout-page .fund-step-card > header {
  align-items: center;
  margin-bottom: 16px;
}

.recharge-checkout-page .fund-step-card > header > span {
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #8d5cff, #5d4df6);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(93, 77, 246, 0.22);
}

.recharge-checkout-page .fund-step-card h2,
.recharge-checkout-page .recharge-preview-card h2,
.recharge-checkout-page .recharge-info-panel h2,
.recharge-checkout-page .recharge-records-panel h2 {
  margin: 0;
  color: #10172f;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
}

.recharge-step-tabs {
  display: flex;
  gap: 34px;
  min-height: 38px;
  margin: -2px 0 18px;
  border-bottom: 1px solid #eeeaf7;
}

.recharge-step-tabs span {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #1e2741;
  font-size: 13px;
  font-weight: 800;
}

.recharge-step-tabs span.active {
  color: #6d4cff;
}

.recharge-step-tabs span.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: #6d4cff;
  border-radius: 999px;
}

.recharge-checkout-page.recharge-compact-page .fund-amount-grid.has-packages,
.recharge-checkout-page .fund-amount-grid.has-packages {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}

.recharge-checkout-page .fund-amount-grid.empty-packages {
  grid-template-columns: 1fr;
  min-height: 112px;
}

.recharge-checkout-page .fund-amount-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 112px;
  padding: 16px 12px 14px;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e4dfed;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.035);
}

.recharge-checkout-page .fund-amount-card:hover,
.recharge-checkout-page .fund-payment-card:hover {
  border-color: #b8a8ff;
  transform: translateY(-1px);
}

.recharge-checkout-page .fund-amount-card.active,
.recharge-checkout-page .fund-payment-card.active {
  background: linear-gradient(180deg, #fcfaff 0%, #ffffff 100%);
  border-color: #7c3aed;
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.22),
    0 14px 30px rgba(93, 77, 246, 0.1);
}

.recharge-checkout-page .recharge-package-check {
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #6d4cff;
  border-radius: 999px;
}

.recharge-checkout-page .recharge-package-check .icon svg {
  width: 12px;
  height: 12px;
  transform: none;
}

.recharge-checkout-page .fund-amount-card strong {
  color: #0f172a;
  font-size: 19px;
}

.recharge-checkout-page .fund-amount-card small {
  margin-top: 8px;
  color: #7a849b;
  font-size: 11px;
}

.recharge-checkout-page .fund-amount-card span:not(.recharge-package-check) {
  min-height: auto;
  margin-top: 6px;
  padding: 0;
  color: #0f9f6e;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.recharge-checkout-page .fund-amount-card b {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  color: #6d4cff;
  border-top: 1px solid #eeeaf7;
  font-size: 12px;
}

.recharge-checkout-page .fund-amount-card em {
  top: 8px;
  right: 28px;
  padding: 2px 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 0;
  border-radius: 999px;
  font-size: 10px;
}

.recharge-custom-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 76px auto;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.recharge-custom-field {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e3deed;
  border-radius: 14px;
}

.recharge-custom-field.active {
  border-color: #8b5cf6;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.recharge-custom-field > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #6d4cff;
  border-right: 1px solid #ede9f6;
}

.recharge-custom-field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: #1f2937;
  background: transparent;
  border: 0;
  outline: none;
}

.recharge-amount-apply {
  min-height: 42px;
  padding: 0 18px;
  background: linear-gradient(135deg, #8c4cf6, #5b5cf6);
  border-radius: 14px;
}

.recharge-custom-row small {
  color: #7a849b;
  font-size: 12px;
}

.recharge-checkout-page.recharge-compact-page .fund-payment-grid,
.recharge-checkout-page .fund-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
}

.recharge-checkout-page .fund-payment-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e3deed;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.035);
}

.recharge-checkout-page .payment-method-logo {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 15px;
}

.payment-method-logo.bank {
  color: #b7791f;
  background: linear-gradient(135deg, #fff7d8, #f6c343);
}

.recharge-checkout-page .fund-payment-card > i {
  position: static;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin: 0;
  color: #ffffff;
  background: #6d4cff;
  border: 0;
  border-radius: 999px;
  opacity: 0;
}

.recharge-checkout-page .fund-payment-card.active > i {
  opacity: 1;
}

.recharge-checkout-page .fund-payment-card > i .icon svg {
  width: 11px;
  height: 11px;
}

.recharge-checkout-page .fund-payment-card strong {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #121a34;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-checkout-page .fund-payment-card span:not(.payment-method-logo) {
  display: block;
  min-width: 0;
  margin: 0;
  color: #7a849b;
  font-size: 12px;
}

.recharge-checkout-page .fund-note {
  min-height: 34px;
  margin-top: 14px;
  color: #66708a;
  background: #f7f6fb;
  border: 0;
  border-radius: 12px;
}

.recharge-checkout-page .fund-note > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #6d4cff;
  background: #ede9ff;
  border-radius: 6px;
}

.recharge-checkout-page .funds-sidebar {
  gap: 0;
}

.recharge-checkout-page .recharge-preview-card {
  position: sticky;
  top: 88px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 70px),
    #ffffff;
}

.recharge-checkout-page .recharge-preview-card > header {
  min-height: 58px;
  margin: 0;
  padding: 0 22px;
  border-bottom: 1px solid #eeeaf7;
}

.recharge-checkout-page .recharge-preview-card .summary-lines {
  gap: 0;
  margin: 0;
  padding: 14px 22px 18px;
}

.recharge-checkout-page .recharge-preview-card .summary-lines div {
  min-height: 44px;
  padding: 5px 0;
  color: #697389;
  border: 0;
}

.recharge-checkout-page .recharge-preview-card .summary-lines strong {
  color: #0f172a;
  font-size: 14px;
}

.recharge-checkout-page .recharge-preview-card .summary-lines .green,
.recharge-checkout-page .green {
  color: #0f9f6e;
}

.recharge-checkout-page .recharge-preview-card .summary-lines .total {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 92px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #e8e3f2;
}

.recharge-checkout-page .recharge-preview-card .summary-lines .total span {
  color: #6d7589;
}

.recharge-checkout-page .recharge-preview-card .recharge-total-credit {
  justify-self: end;
  color: #6d4cff;
  font-size: 30px;
  line-height: 1;
}

.recharge-checkout-page .recharge-submit-button {
  width: calc(100% - 44px);
  min-height: 48px;
  margin: 0 22px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #9b5cff, #5b4df6);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(91, 77, 246, 0.22);
  font-size: 15px;
  font-weight: 850;
}

.recharge-checkout-page .recharge-info-panel {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  min-height: 104px;
  padding: 20px 24px;
}

.recharge-checkout-page.recharge-compact-page .recharge-info-panel.recharge-trust-strip {
  display: grid;
}

.recharge-checkout-page .recharge-info-panel > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.recharge-checkout-page .recharge-info-panel .icon {
  width: 44px;
  height: 44px;
  color: #475569;
  background: #f3f5fb;
  border-radius: 15px;
}

.recharge-checkout-page .recharge-info-panel > div:nth-of-type(1) .icon {
  color: #64748b;
  background: #fff1f2;
}

.recharge-checkout-page .recharge-info-panel > div:nth-of-type(2) .icon {
  color: #0f766e;
  background: #e9f8f1;
}

.recharge-checkout-page .recharge-info-panel > div:nth-of-type(3) .icon {
  color: #2563eb;
  background: #eaf2ff;
}

.recharge-checkout-page .recharge-info-panel strong,
.recharge-checkout-page .recharge-info-panel small {
  display: block;
}

.recharge-checkout-page .recharge-info-panel strong {
  margin-bottom: 5px;
  color: #172033;
  font-size: 13px;
}

.recharge-checkout-page .recharge-info-panel small {
  color: #6d778d;
  font-size: 12px;
  line-height: 1.55;
}

.recharge-records-panel {
  overflow: hidden;
}

.recharge-records-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid #eeeaf7;
}

.recharge-records-panel .recharge-history-link {
  color: #6d4cff;
  font-weight: 800;
}

.recharge-records-table {
  overflow-x: auto;
}

.recharge-records-table table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

.recharge-records-table th,
.recharge-records-table td {
  height: 46px;
  padding: 0 18px;
  text-align: left;
  border-bottom: 1px solid #f0edf8;
  white-space: nowrap;
}

.recharge-records-table th {
  color: #7b849d;
  background: #fbfaff;
  font-size: 12px;
  font-weight: 850;
}

.recharge-records-table td {
  color: #172033;
  font-size: 13px;
}

.recharge-records-table tr:last-child td {
  border-bottom: 0;
}

.recharge-record-method {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.recharge-checkout-page .payment-method-logo.mini {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.recharge-checkout-page .payment-method-logo.mini .icon svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1180px) {
  .recharge-checkout-page .recharge-page-title,
  .recharge-checkout-page .add-funds-layout {
    grid-template-columns: 1fr;
  }

  .recharge-checkout-page .recharge-preview-card {
    position: static;
  }

  .recharge-checkout-page .recharge-info-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .recharge-checkout-page.recharge-compact-page .fund-amount-grid.has-packages,
  .recharge-checkout-page .fund-amount-grid.has-packages,
  .recharge-checkout-page.recharge-compact-page .fund-payment-grid,
  .recharge-checkout-page .fund-payment-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .recharge-checkout-page .fund-amount-card {
    flex: 0 0 148px;
  }

  .recharge-checkout-page .fund-payment-card {
    flex: 0 0 190px;
  }
}

@media (max-width: 720px) {
  .recharge-checkout-page {
    padding: 14px 12px 28px;
  }

  .recharge-checkout-page .recharge-balance-strip {
    grid-template-columns: 1fr;
  }

  .recharge-checkout-page .recharge-main-card,
  .recharge-checkout-page .recharge-preview-card,
  .recharge-checkout-page .recharge-info-panel,
  .recharge-checkout-page .recharge-records-panel {
    border-radius: 20px;
  }

  .recharge-custom-row {
    grid-template-columns: 1fr 76px;
  }

  .recharge-custom-row small {
    grid-column: 1 / -1;
  }
}

/* 2026-07 member user page density normalization */
.sitewide-member-workspace.market-page {
  gap: 16px;
  padding: 16px 24px 36px;
}

.sitewide-member-workspace.market-page .market-title-row {
  min-height: 74px;
  padding: 8px 0 0;
}

.sitewide-member-workspace.market-page .market-title-row h1 {
  font-size: 30px;
}

.sitewide-member-workspace.market-page .market-title-actions .link-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.market-command-panel {
  grid-template-columns: minmax(320px, 1.15fr) 132px minmax(240px, 0.85fr);
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: 20px;
}

.market-command-panel :is(.market-search, > .primary, .ai-match-button) {
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
}

.market-command-panel .market-search {
  padding-inline: 16px;
}

.market-command-panel .market-search input {
  min-width: 0;
  height: 46px;
}

.market-command-panel > .primary {
  min-width: 132px;
  padding: 0 18px;
}

.market-command-panel .ai-match-button {
  width: 100%;
  padding: 0 20px;
  white-space: nowrap;
}

.sitewide-member-workspace.market-page .market-platform-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 18px;
  scrollbar-width: thin;
}

.sitewide-member-workspace.market-page .market-platform-tab {
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: none;
  gap: 2px 10px;
  flex: 0 0 148px;
  min-width: 148px;
  height: 58px;
  min-height: 58px;
  justify-items: start;
  padding: 0 10px;
  text-align: left;
  border-radius: 15px;
}

.sitewide-member-workspace.market-page .market-platform-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #7c83ff);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(109, 76, 255, 0.2);
}

.sitewide-member-workspace.market-page .market-platform-tab.active strong,
.sitewide-member-workspace.market-page .market-platform-tab.active small {
  color: #ffffff;
}

.sitewide-member-workspace.market-page .market-platform-tab strong {
  align-self: end;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitewide-member-workspace.market-page .market-platform-tab small {
  align-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitewide-member-workspace.market-page .market-platform-tab .market-platform-logo {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.sitewide-member-workspace.market-page .market-platform-tab .market-platform-logo img {
  width: 20px;
  height: 20px;
}

.market-service-filter-card {
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 18px;
}

.sitewide-member-workspace.market-page .market-type-tab,
.sitewide-member-workspace.market-page .market-tier-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 11px;
}

.sitewide-member-workspace.market-page .market-selects select {
  min-height: 38px;
  border-radius: 12px;
}

.sitewide-member-workspace.market-page .market-route-notice {
  min-height: 38px;
  border-radius: 14px;
}

.sitewide-member-workspace.market-page .market-table-head {
  min-height: 62px;
  padding: 0 18px;
}

.sitewide-member-workspace.market-page .market-product-table td {
  height: 62px;
  padding: 9px 16px;
}

.market-table-logo {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.market-table-logo img {
  width: 20px;
  height: 20px;
}

.orders-rounded-page {
  gap: 16px;
  padding: 16px 24px 36px;
}

.orders-rounded-hero {
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 184px;
  padding: 22px 24px;
  border-radius: 24px;
}

.orders-rounded-hero h1 {
  margin-top: 10px;
  font-size: 32px;
}

.orders-rounded-hero p {
  margin: 8px 0 0;
  font-size: 14px;
}

.orders-summary-strip {
  gap: 10px;
  margin-top: 16px;
}

.order-summary-card {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
}

.order-summary-card b {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.order-summary-card strong {
  font-size: 18px;
}

.orders-rounded-page .orders-command-panel {
  grid-template-columns: minmax(360px, 1fr) 148px 164px minmax(280px, 340px);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
}

.orders-rounded-page .orders-filter-field,
.orders-rounded-page .orders-command-panel > select,
.orders-rounded-page .orders-command-panel .date-filter {
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 13px;
}

.orders-rounded-page .orders-search {
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-rows: 48px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.orders-rounded-page .orders-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.orders-rounded-page .orders-search .icon {
  bottom: 14px;
  left: 16px;
}

.orders-rounded-page .orders-search input {
  height: 48px;
  min-height: 48px;
  padding-left: 40px;
  border-radius: 13px;
}

.orders-rounded-page .orders-search .search-submit {
  width: 120px;
  min-height: 48px;
  border-radius: 13px;
}

.orders-rounded-page .date-range-filter {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.date-range-inputs i {
  color: #8a91a7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.orders-rounded-page .orders-command-panel .date-filter input {
  height: 34px;
  padding: 0 6px;
  font-size: 12px;
}

.orders-rounded-page .orders-table-shell {
  border-radius: 22px;
}

.orders-rounded-page .orders-data-table th {
  height: 44px;
  padding: 0 14px;
}

.orders-rounded-page .orders-data-table td {
  height: 62px;
  padding: 9px 14px;
}

.orders-rounded-page .orders-data-table th:nth-child(1),
.orders-rounded-page .orders-data-table td:nth-child(1) {
  width: 150px;
}

.orders-rounded-page .orders-data-table th:nth-child(2),
.orders-rounded-page .orders-data-table td:nth-child(2) {
  width: 285px;
}

.orders-rounded-page .orders-data-table th:nth-child(3),
.orders-rounded-page .orders-data-table td:nth-child(3) {
  width: 240px;
}

.order-id-cell .order-id {
  max-width: 128px;
}

.order-service-cell {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.order-platform-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.order-platform-logo img {
  width: 20px;
  height: 20px;
}

.order-service-cell strong {
  line-height: 1.25;
}

.order-service-cell small {
  margin-top: 4px;
  font-size: 11px;
}

.orders-rounded-page .order-action-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
}

.recharge-checkout-page {
  gap: 14px;
  padding: 20px 24px 34px;
}

.recharge-checkout-page .recharge-page-title {
  grid-template-columns: minmax(280px, 0.74fr) minmax(560px, 1.26fr);
  gap: 14px;
  align-items: center;
}

.recharge-checkout-page .recharge-page-title h1 {
  font-size: 28px;
}

.recharge-checkout-page .recharge-page-title p {
  max-width: 520px;
  font-size: 14px;
}

.recharge-checkout-page .recharge-balance-strip {
  gap: 10px;
}

.recharge-checkout-page .recharge-balance-strip article {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 64px;
  padding: 9px 12px;
  border-radius: 16px;
}

.recharge-checkout-page .recharge-balance-strip b {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.recharge-checkout-page .recharge-balance-strip strong {
  font-size: 18px;
  line-height: 1.1;
}

.recharge-checkout-page .recharge-balance-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-checkout-page .add-funds-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.recharge-checkout-page .recharge-main-card {
  padding: 18px;
  border-radius: 22px;
}

.recharge-checkout-page .recharge-main-card .fund-step-card {
  padding-bottom: 18px;
}

.recharge-checkout-page .recharge-main-card .fund-step-card + .fund-step-card {
  padding-top: 16px;
}

.recharge-checkout-page .fund-step-card > header {
  margin-bottom: 12px;
}

.recharge-step-tabs {
  min-height: 32px;
  margin: -2px 0 12px;
}

.recharge-checkout-page.recharge-compact-page .fund-amount-grid.has-packages,
.recharge-checkout-page .fund-amount-grid.has-packages {
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  gap: 10px;
}

.recharge-checkout-page .fund-amount-card {
  min-height: 96px;
  padding: 14px 10px 12px;
  border-radius: 16px;
}

.recharge-checkout-page .fund-amount-card strong {
  font-size: 18px;
}

.recharge-checkout-page .fund-amount-card small {
  margin-top: 5px;
}

.recharge-checkout-page .fund-amount-card span:not(.recharge-package-check) {
  margin-top: 4px;
}

.recharge-checkout-page .fund-amount-card b {
  margin-top: 8px;
  padding-top: 7px;
  font-size: 11px;
}

.recharge-checkout-page .recharge-package-check {
  top: 12px;
  right: 10px;
  width: 18px;
  height: 18px;
}

.recharge-checkout-page .fund-amount-card em {
  top: 10px;
  right: 34px;
  max-width: calc(100% - 62px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-custom-row {
  grid-template-columns: minmax(220px, 340px) 76px minmax(130px, 1fr);
  margin-top: 14px;
}

.recharge-checkout-page.recharge-compact-page .fund-payment-grid,
.recharge-checkout-page .fund-payment-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.recharge-checkout-page .fund-payment-card {
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
}

.recharge-checkout-page .payment-method-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.recharge-checkout-page .fund-payment-card strong {
  font-size: 13px;
}

.recharge-checkout-page .fund-payment-card span:not(.payment-method-logo) {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-checkout-page .fund-note {
  min-height: 30px;
  margin-top: 10px;
}

.recharge-checkout-page .recharge-preview-card {
  top: 78px;
  border-radius: 22px;
}

.recharge-checkout-page .recharge-preview-card > header {
  min-height: 50px;
  padding: 0 18px;
}

.recharge-checkout-page .recharge-preview-card .summary-lines {
  padding: 10px 18px 14px;
}

.recharge-checkout-page .recharge-preview-card .summary-lines div {
  min-height: 36px;
  padding: 3px 0;
}

.recharge-checkout-page .recharge-preview-card .summary-lines .total {
  min-height: 64px;
  margin-top: 6px;
  padding-top: 12px;
}

.recharge-checkout-page .recharge-preview-card .recharge-total-credit {
  font-size: 24px;
}

.recharge-checkout-page .recharge-submit-button {
  min-height: 44px;
  margin: 0 18px 18px;
}

.recharge-checkout-page .recharge-info-panel {
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 22px;
}

@media (max-width: 1180px) {
  .market-command-panel,
  .orders-rounded-page .orders-command-panel,
  .recharge-checkout-page .recharge-page-title,
  .recharge-checkout-page .add-funds-layout {
    grid-template-columns: 1fr;
  }

  .market-command-panel > .primary,
  .market-command-panel .ai-match-button,
  .orders-rounded-page .orders-search .search-submit {
    width: 100%;
  }

  .orders-rounded-hero {
    grid-template-columns: 1fr;
  }

  .orders-hero-art {
    display: none;
  }
}

@media (max-width: 720px) {
  .sitewide-member-workspace.market-page,
  .orders-rounded-page,
  .recharge-checkout-page {
    padding: 12px 12px 28px;
  }

  .orders-summary-strip,
  .recharge-checkout-page .recharge-balance-strip {
    grid-template-columns: 1fr;
  }

  .orders-rounded-page .orders-search {
    grid-template-columns: 1fr;
    grid-template-rows: 48px 44px;
  }

  .orders-rounded-page .orders-search .search-submit {
    min-height: 44px;
  }

  .orders-rounded-page .date-range-filter {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 86px;
    align-items: stretch;
    padding: 8px 10px;
  }

  .recharge-checkout-page.recharge-compact-page .fund-amount-grid.has-packages,
  .recharge-checkout-page .fund-amount-grid.has-packages,
  .recharge-checkout-page.recharge-compact-page .fund-payment-grid,
  .recharge-checkout-page .fund-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .recharge-checkout-page .fund-amount-card,
  .recharge-checkout-page .fund-payment-card {
    flex-basis: auto;
  }

  .recharge-custom-row {
    grid-template-columns: 1fr;
  }
}
