:root {
  --primary: #6d5dfc;
  --primary-rgb: 109, 93, 252;
  --primary-dark: #5544df;
  --primary-soft: #f0edff;
  --accent: #20c9e8;
  --accent-rgb: 32, 201, 232;
  --sidebar: #10182f;
  --sidebar-2: #182345;
  --ink: #18223b;
  --muted: #718098;
  --line: #e7eaf3;
  --canvas: #f4f5fb;
  --card: #fff;
  --green: #22c883;
  --orange: #ff9f33;
  --danger: #f15364;
  --shadow: 0 10px 30px rgba(30, 42, 82, 0.07);
}

/* Phase 2: catalog, wallet ledger, and order checkout */
.wallet-note {
  margin: 13px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #9a6718;
  font-size: 12px;
  line-height: 1.6;
}
.store-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(
    120deg,
    var(--sidebar),
    var(--sidebar-2) 56%,
    var(--primary)
  );
  box-shadow: 0 18px 40px rgba(17, 26, 52, 0.16);
}
.store-head::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 22%;
  top: -190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 84px rgba(255, 255, 255, 0.02);
}
.store-head > * {
  position: relative;
  z-index: 1;
}
.store-head h1 {
  margin: 7px 0;
  font-size: 26px;
}
.store-head p {
  margin: 0;
  color: #b9c5d9;
  font-size: 13px;
}
.store-wallet {
  min-width: 240px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.store-wallet small,
.store-wallet strong {
  display: block;
}
.store-wallet small {
  color: #bdc8da;
}
.store-wallet strong {
  margin: 4px 0 11px;
  font-size: 25px;
}
.store-wallet .btn {
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  color: var(--primary);
}
.product-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.purchase-section-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.purchase-section-label strong,
.purchase-business-type > span,
.purchase-global-period > span {
  color: #344257;
  font-size: 12px;
  font-weight: 850;
}
.purchase-section-label small,
.purchase-business-type > small,
.purchase-global-period > small {
  color: var(--muted);
  font-size: 9px;
}
.purchase-global-options {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(430px, 1.2fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 11px;
  background: #fbfcff;
}
.purchase-global-options.business-only {
  grid-template-columns: minmax(230px, 520px);
}
.purchase-business-type > span,
.purchase-global-period > span,
.purchase-business-type > small,
.purchase-global-period > small {
  display: block;
}
.purchase-global-options b {
  color: var(--danger);
}
.purchase-business-type {
  position: relative;
  min-width: 0;
}
.business-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  margin: 7px 0 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #718096;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}
.business-type-trigger.selected {
  border-color: rgba(var(--primary-rgb), 0.48);
  color: var(--ink);
  background: var(--primary-soft);
  font-weight: 800;
}
.business-type-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-type-trigger > b {
  color: var(--primary);
  font-size: 15px;
}
.business-type-menu {
  position: absolute;
  z-index: 30;
  top: 67px;
  left: 0;
  width: min(760px, calc(100vw - 110px));
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(28, 38, 73, 0.2);
}
.business-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 8px;
}
.business-menu-head > div {
  display: grid;
  gap: 2px;
}
.business-menu-head strong {
  font-size: 13px;
}
.business-menu-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
}
.business-menu-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: #f5f7fb;
  cursor: pointer;
  font-size: 18px;
}
.business-hot {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 4px 15px 14px;
}
.business-hot > span {
  padding-top: 8px;
  color: #8491a5;
  font-size: 11px;
  font-weight: 800;
}
.business-hot > div,
.business-platforms > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.business-hot button,
.business-platforms button {
  position: relative;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  color: #536174;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
}
.business-hot button:hover,
.business-hot button.active,
.business-platforms button:hover,
.business-platforms button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}
.business-platforms button span {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--primary);
}
.business-browser {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 260px;
  border-top: 1px solid #edf0f6;
}
.business-browser nav {
  padding: 9px 0;
  border-right: 1px solid #edf0f6;
  background: #fafbfe;
}
.business-browser nav button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-right: 3px solid transparent;
  color: #35445b;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
.business-browser nav button:hover,
.business-browser nav button.active {
  border-right-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.business-platforms {
  padding: 14px 18px 18px;
}
.business-platforms-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 12px;
}
.business-platforms-title strong {
  color: #344257;
  font-size: 12px;
}
.business-platforms-title small {
  color: var(--muted);
  font-size: 9px;
}
.business-menu-actions {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  border-top: 1px solid #edf0f6;
  background: #fafbfe;
}
.business-menu-actions > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-menu-actions .btn {
  min-width: 138px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}
.purchase-notice {
  position: relative;
}
.purchase-notice-inline {
  z-index: 22;
  margin-left: 3px;
}
.purchase-notice > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.purchase-notice > button i {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: serif;
  font-size: 8px;
  font-style: normal;
}
.purchase-notice-popover {
  position: absolute;
  z-index: 35;
  top: 25px;
  left: -72px;
  width: min(720px, calc(100vw - 380px));
  padding: 13px 17px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 9px;
  color: #536174;
  background: #fff;
  box-shadow: 0 14px 38px rgba(28, 38, 73, 0.18);
  font-size: 10px;
  line-height: 1.8;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: 0.16s ease;
}
.purchase-notice-popover::before {
  position: absolute;
  top: -6px;
  left: 92px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.2);
  border-left: 1px solid rgba(var(--primary-rgb), 0.2);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.purchase-notice-popover ol {
  margin: 0;
  padding-left: 20px;
}
.purchase-notice-popover em {
  color: var(--danger);
  font-style: normal;
  font-weight: 850;
}
.purchase-notice:hover .purchase-notice-popover,
.purchase-notice:focus-within .purchase-notice-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.purchase-global-period > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 7px 0 5px;
}
.purchase-global-period button {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #59687c;
  background: #fff;
  cursor: pointer;
}
.purchase-global-period button strong,
.purchase-global-period button small {
  display: block;
}
.purchase-global-period button strong {
  font-size: 11px;
}
.purchase-global-period button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.purchase-global-period button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.purchase-global-period button.active small {
  color: #b45e09;
  font-weight: 800;
}
.purchase-global-period button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.product-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  transition: 0.2s;
}
.product-tab:hover,
.product-tab.active {
  border-color: rgba(var(--primary-rgb), 0.45);
  background: #fff;
  box-shadow: 0 10px 25px rgba(30, 42, 82, 0.08);
  transform: translateY(-1px);
}
.product-tab.active {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  box-shadow:
    inset 0 0 0 2px var(--primary),
    0 10px 25px rgba(var(--primary-rgb), 0.14);
}
.product-tab-copy {
  min-width: 0;
}
.product-selected-mark {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.product-tab strong,
.product-tab small {
  display: block;
}
.product-tab strong {
  font-size: 13px;
}
.product-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.product-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #795df7;
  box-shadow: 0 0 0 5px rgba(121, 93, 247, 0.1);
}
.product-dot.ocean {
  background: #168ef5;
  box-shadow: 0 0 0 5px rgba(22, 142, 245, 0.1);
}
.product-dot.emerald {
  background: #13b989;
  box-shadow: 0 0 0 5px rgba(19, 185, 137, 0.1);
}
.product-dot.orange {
  background: #ff923b;
  box-shadow: 0 0 0 5px rgba(255, 146, 59, 0.1);
}
.product-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.product-intro h2 {
  margin: 9px 0 5px;
  font-size: 21px;
}
.product-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.store-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 750;
}
.pricing-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.price-plan {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  transition: 0.22s;
}
.price-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 14px 28px rgba(30, 42, 82, 0.09);
}
.price-plan.active {
  border: 2px solid var(--primary);
  padding: 19px;
  background: linear-gradient(155deg, var(--primary-soft), #fff 45%);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.13);
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-top span {
  font-weight: 750;
}
.plan-top small {
  color: #7a68d6;
}
.plan-price {
  margin: 18px 0 7px;
  font-size: 31px;
  letter-spacing: -1px;
}
.plan-price sup {
  margin-right: 2px;
  color: var(--primary);
  font-size: 14px;
  vertical-align: 12px;
}
.plan-price em {
  margin-left: 4px;
  color: #617087;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0;
}
.plan-total {
  margin-bottom: 7px;
  color: #6d798a;
  font-size: 10px;
}
.plan-total b {
  color: var(--ink);
  font-size: 12px;
}
.plan-compare {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #98a3b2;
  font-size: 10px;
}
.plan-compare del {
  color: #8b97a7;
}
.plan-compare span {
  padding: 2px 5px;
  color: #8a6d28;
  background: #fff5d9;
  border-radius: 5px;
  font-size: 8px;
}
.plan-spec {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.price-plan ul {
  flex: 1;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: #64748a;
  font-size: 12px;
  line-height: 2;
}
.select-plan {
  display: block;
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}
.price-plan.active .select-plan {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.purchase-assurance {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  color: #5f7186;
  font-size: 11px;
}
.static-location-market {
  margin-top: 0;
  padding: 17px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-soft), #fff 34%);
}
.location-source {
  padding: 5px 9px;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 12px;
  font-size: 9px;
}
.location-search {
  width: min(300px, 42%);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
}
.location-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.location-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}
.location-directory {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 0;
}
.location-country-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 190px;
  padding: 2px;
  overflow: auto;
}
.location-country-tabs button {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #53647a;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.location-country-tabs button span,
.location-country-tabs button small {
  display: block;
}
.location-country-tabs button span {
  font-size: 11px;
  font-weight: 800;
}
.location-country-tabs button small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-country-tabs button:hover,
.location-country-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.location-country-panel {
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 11px;
  background: #fff;
}
.location-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(120deg, var(--primary-soft), #fff);
}
.location-level-head span,
.location-level-head strong {
  display: block;
}
.location-level-head span {
  color: var(--muted);
  font-size: 8px;
}
.location-level-head strong {
  margin-top: 2px;
  color: var(--primary);
  font-size: 14px;
}
.location-level-head > small {
  color: var(--muted);
  font-size: 9px;
}
.location-cascade {
  min-width: 920px;
  display: grid;
  grid-template-columns:
    150px
    minmax(150px, 0.72fr)
    minmax(180px, 0.86fr)
    minmax(440px, 1.8fr);
  gap: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.cascade-column {
  min-width: 0;
  min-height: 560px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.cascade-column:last-child {
  border-right: 0;
}
.cascade-column-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
}
.cascade-column-head strong {
  font-size: 12px;
}
.cascade-column-head > span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  text-align: center;
}
.cascade-column-head > small {
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cascade-column-head .city-config-close {
  flex: 0 0 auto;
  margin: -4px -4px -4px 0;
}
.cascade-list {
  max-height: 560px;
  padding: 5px;
  overflow: auto;
}
.cascade-list button,
.location-cascade .location-country-tabs button {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding: 10px 9px;
  border: 0;
  border-radius: 7px;
  color: #53647a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.cascade-list button + button {
  margin-top: 2px;
}
.cascade-list button:hover,
.cascade-list button.active,
.location-cascade .location-country-tabs button:hover,
.location-cascade .location-country-tabs button.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.cascade-list button span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cascade-list button small {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 5px;
  border-radius: 8px;
  color: var(--muted);
  background: #f0f3f8;
  font-size: 8px;
}
.cascade-regions .cascade-column-head strong,
.cascade-countries .cascade-column-head strong {
  font-size: 13px;
}
.cascade-regions .cascade-list button span,
.cascade-countries .location-country-tabs button span {
  font-size: 13px;
}
.cascade-regions .cascade-list button small {
  font-size: 9px;
}
.cascade-regions .cascade-list button.hot-region {
  margin-bottom: 5px;
  color: #a45708;
  background: #fff7e8;
  box-shadow: inset 0 0 0 1px #f3d6a5;
}
.cascade-regions .cascade-list button.hot-region:hover,
.cascade-regions .cascade-list button.hot-region.active {
  color: #cf6800;
  background: #fff0d4;
  box-shadow: inset 0 0 0 1px #edb95d;
}
.cascade-countries .location-country-tabs button small {
  font-size: 10px;
}
.location-cascade .location-country-tabs {
  display: block;
  max-height: 560px;
  padding: 5px;
}
.location-cascade .location-country-tabs button {
  display: block;
}
.location-cascade .location-country-tabs button span,
.location-cascade .location-country-tabs button small {
  display: block;
}
.location-cascade .location-country-tabs button small {
  margin-top: 3px;
  padding: 0;
  background: transparent;
  font-size: 10px;
}
.location-cascade .location-city-grid {
  display: block;
  max-height: 560px;
  padding: 5px;
  overflow: auto;
  border: 0;
  background: #fff;
}
.location-cascade .location-city {
  width: 100%;
  display: block;
  margin: 0 0 3px;
  padding: 9px;
  border-color: transparent;
  border-radius: 7px;
}
.location-cascade .location-city:hover,
.location-cascade .location-city.active {
  border-color: rgba(var(--primary-rgb), 0.22);
  background: var(--primary-soft);
  box-shadow: none;
}
.hot-country-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 7px;
  color: #c96100;
  background: #fff0d5;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  vertical-align: 1px;
}
.location-cascade .location-city-head {
  margin: 0;
}
.location-cascade .location-city-meta {
  margin-top: 7px;
}
.cascade-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 55px 16px;
  color: var(--muted);
  text-align: center;
}
.cascade-empty span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
}
.cascade-empty strong {
  color: var(--ink);
  font-size: 12px;
}
.cascade-empty small {
  font-size: 9px;
}
.cascade-nodes .static-city-configurator {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cascade-nodes .city-zone-list {
  max-height: 420px;
  padding: 8px;
  overflow: auto;
}
.cascade-nodes .city-zone-row {
  display: block;
  margin-bottom: 6px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
}
.city-zone-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.city-zone-card-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  margin-top: 7px;
}
.city-zone-card-controls > label {
  min-width: 0;
}
.city-zone-quantity-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
}
.city-zone-quantity-wrap > span {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: #526176;
  font-size: 12px;
  font-weight: 800;
}
.city-zone-quantity-wrap .city-zone-quantity {
  flex: 0 1 190px;
  width: min(190px, calc(100% - 52px));
  min-width: 0;
}
.cascade-nodes .city-zone-name span {
  font-size: 12px;
}
.cascade-nodes .city-zone-name strong {
  font-size: 9px;
}
.cascade-nodes .city-zone-name small,
.cascade-nodes .city-zone-estimate small {
  font-size: 9px;
}
.cascade-nodes .city-zone-estimate strong {
  font-size: 15px;
}
.cascade-nodes .city-config-actions {
  padding: 10px 12px;
}
.cascade-nodes .city-config-actions .btn {
  padding: 8px 10px;
  font-size: 10px;
}
.cascade-nodes .city-config-actions > span {
  font-size: 9px;
}
.location-country {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: 0.18s;
}
.location-country[hidden],
.location-city[hidden] {
  display: none;
}
.location-country.active {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 7px 18px rgba(var(--primary-rgb), 0.07);
}
.location-country > summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 14px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.location-country > summary::-webkit-details-marker {
  display: none;
}
.location-country > summary:hover {
  background: rgba(var(--primary-rgb), 0.035);
}
.location-country-title strong,
.location-country-title small,
.location-country-price strong,
.location-country-price small {
  display: block;
}
.location-country-title strong {
  font-size: 12px;
}
.location-country-title small,
.location-country-price small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.location-country-price {
  text-align: right;
}
.location-country-price strong {
  color: var(--primary);
  font-size: 13px;
}
.location-country-price em {
  font-size: 8px;
  font-style: normal;
}
.location-country-arrow {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  transition: transform 0.18s;
}
.location-country[open] .location-country-arrow {
  transform: rotate(180deg);
}
.location-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8faff;
}
.location-city {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.location-city.active {
  border-color: var(--primary);
  box-shadow: 0 5px 13px rgba(var(--primary-rgb), 0.08);
}
.location-city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.location-city-head span,
.location-city-head small,
.location-city-head strong {
  display: block;
  min-width: 0;
}
.location-city-head small {
  color: #8b96a6;
  font-size: 8px;
  letter-spacing: 0.45px;
}
.location-city-head strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-city-head em {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 8px;
  color: var(--muted);
  background: #f2f5fa;
  font-size: 9px;
  font-style: normal;
}
.location-city-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.location-city-meta > strong {
  color: var(--primary);
  font-size: 13px;
}
.location-city-meta > strong small {
  font-size: 8px;
}
.location-city-meta > span {
  color: var(--muted);
  font-size: 9px;
}
.location-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.location-line {
  min-width: 92px;
  flex: 1 1 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  color: #5f6f83;
  background: #fff;
  font-size: 9px;
}
.location-line:hover {
  border-color: rgba(var(--primary-rgb), 0.55);
  color: var(--primary);
}
.location-line.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}
.location-line strong {
  color: var(--primary);
  font-size: 10px;
}
.location-line strong small {
  font-size: 7px;
}
.location-line.cart-line {
  cursor: default;
}
.location-cart-open {
  width: 100%;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 7px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.location-cart-open:hover {
  color: #fff;
  background: var(--primary);
}
.location-empty {
  margin-top: 12px;
  padding: 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 9px;
  text-align: center;
  font-size: 11px;
}
.static-location-search-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 10px;
}
.static-location-search-row > span {
  color: var(--muted);
  font-size: 10px;
}
.static-location-search-row .location-search {
  flex: 0 1 280px;
  width: 280px;
  height: 34px;
}
.purchase-global-options.compact-static-options {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(360px, 1.28fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.compact-static-options .purchase-business-type > span,
.compact-static-options .purchase-global-period > span {
  font-size: 9px;
}
.compact-static-options .purchase-business-type > small,
.compact-static-options .purchase-global-period > small {
  display: none;
}
.compact-static-options .business-type-trigger {
  height: 34px;
  margin: 3px 0 0;
  padding: 0 9px;
  font-size: 9px;
}
.compact-static-options .purchase-global-period > div {
  gap: 4px;
  margin: 3px 0 0;
}
.compact-static-options .purchase-global-period button {
  min-height: 34px;
  padding: 4px;
}
.compact-static-options .purchase-global-period button strong {
  font-size: 9px;
}
.compact-static-options .purchase-global-period button small {
  margin-top: 1px;
  font-size: 7px;
}
.compact-static-options .business-type-menu {
  top: 49px;
  width: min(700px, calc(100vw - 390px));
}
.static-city-configurator {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.08);
}
.city-config-close,
.cart-item-head button,
.static-cart-head button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.city-config-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 20px;
}
.city-config-close:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}
.city-zone-list {
  padding: 0 18px;
}
.city-zone-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.9fr) 150px 90px;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.city-zone-name span,
.city-zone-name strong,
.city-zone-name small,
.city-zone-estimate small,
.city-zone-estimate strong {
  display: block;
}
.city-zone-name span {
  font-weight: 800;
  font-size: 11px;
}
.city-zone-name strong {
  margin-top: 2px;
  color: var(--primary);
  font-size: 9px;
}
.city-zone-name small,
.city-zone-estimate small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.city-zone-segment > span,
.city-zone-segment > small {
  display: block;
}
.city-zone-segment > span {
  margin-bottom: 3px;
  color: #526176;
  font-size: 9px;
  font-weight: 800;
}
.city-zone-segment .select {
  width: 100%;
  height: 32px;
  padding: 0 7px;
  font-size: 10px;
}
.city-zone-segment > small {
  margin-top: 4px;
  color: var(--danger);
  font-size: 7px;
}
.city-zone-quantity {
  display: grid;
  grid-template-columns: 28px minmax(38px, 1fr) 28px;
}
.city-zone-quantity button {
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  color: var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
}
.city-zone-quantity button:first-child {
  border-radius: 8px 0 0 8px;
}
.city-zone-quantity button:last-child {
  border-radius: 0 8px 8px 0;
}
.city-zone-quantity button:disabled {
  color: #b4bdc9;
  cursor: not-allowed;
}
.city-zone-quantity .input {
  height: 32px;
  padding: 0 4px;
  font-size: 11px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  text-align: center;
}
.city-zone-estimate {
  text-align: right;
}
.city-zone-estimate strong {
  margin-top: 3px;
  color: var(--primary);
  font-size: 13px;
}
.city-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fafbfe;
}
.city-config-actions > span {
  color: var(--muted);
  font-size: 8px;
}
.cascade-nodes .city-config-actions > .city-quantity-discount-hint {
  padding: 6px 9px;
  color: #5b4bc4;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.city-config-actions > div {
  display: flex;
  gap: 8px;
}
.static-cart {
  min-width: 0;
  padding: 18px;
}
.static-cart .order-kicker {
  font-size: 11px;
}
.static-cart .card-title {
  font-size: 19px;
}
.static-cart-head,
.cart-item-head,
.cart-item-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.static-cart-head {
  align-items: flex-start;
}
.static-cart-head button {
  padding: 4px 0;
  color: var(--danger);
  font-size: 10px;
}
.static-cart-list {
  max-height: 360px;
  margin: 10px 0;
  padding-right: 4px;
  overflow: auto;
}
.static-cart-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.static-cart-item.expanded {
  border-color: rgba(var(--primary-rgb), 0.32);
  background: #fff;
}
.static-cart-item + .static-cart-item {
  margin-top: 6px;
}
.cart-item-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding-right: 24px;
}
.cart-item-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 7px;
  padding: 5px 7px 3px;
  border: 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 0 0 7px 7px;
  color: #718096;
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.035));
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}
.cart-item-toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.cart-item-toggle i {
  font-size: 9px;
  font-style: normal;
  transition: transform 0.18s ease;
}
.static-cart-item.expanded .cart-item-toggle i {
  transform: rotate(180deg);
}
.cart-item-identity,
.cart-item-identity strong,
.cart-item-identity small,
.cart-item-brief {
  display: block;
  min-width: 0;
}
.cart-item-identity strong {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
  font-size: 13px;
  white-space: nowrap;
}
.cart-item-identity strong > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-identity small {
  flex: 0 0 auto;
  margin: 0;
  padding: 1px 5px;
  border-radius: 6px;
  color: #607086;
  background: #eef2f7;
  font-size: 9px;
}
.cart-item-brief {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 1px;
  white-space: nowrap;
}
.cart-item-brief b {
  color: #53647a;
  font-size: 10px;
}
.cart-item-brief strong {
  color: var(--primary);
  font-size: 13px;
}
.cart-item-remove {
  position: absolute;
  z-index: 1;
  right: -4px;
  top: -4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #8693a6;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}
.cart-item-remove:hover {
  color: var(--danger);
  background: #fff1f1;
}
.cart-item-detail {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}
.cart-item-spec {
  margin-top: 7px;
  color: #5c6c81;
  font-size: 9px;
}
.cart-item-spec strong {
  color: var(--primary);
  font-size: 12px;
}
.cart-item-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.cart-item-business {
  min-width: 0;
}
.cart-item-business span,
.cart-item-business strong {
  display: block;
}
.cart-item-business span {
  margin-bottom: 4px;
  color: #526176;
  font-size: 9px;
  font-weight: 800;
}
.cart-item-business strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-business small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.cart-item-controls label {
  display: grid;
  grid-template-columns: max-content 108px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: none;
}
.cart-item-controls label > span {
  display: block;
  color: #526176;
  font-size: 10px;
  font-weight: 800;
}
.cart-item-quantity {
  display: grid;
  grid-template-columns: 24px minmax(34px, 1fr) 24px;
}
.cart-item-quantity button {
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  color: var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.cart-item-quantity button:first-child {
  border-radius: 8px 0 0 8px;
}
.cart-item-quantity button:last-child {
  border-radius: 0 8px 8px 0;
}
.cart-item-quantity button:disabled {
  color: #b4bdc9;
  cursor: not-allowed;
}
.cart-item-quantity .input {
  height: 28px;
  padding: 0 3px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.cart-segment-select {
  display: block;
  margin-top: 9px;
}
.cart-segment-select > span,
.cart-random-note {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}
.cart-segment-select .select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  font-size: 9px;
}
.static-cart-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 14px 0;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}
.static-cart-empty span {
  font-size: 24px;
}
.static-cart-empty strong {
  color: var(--ink);
  font-size: 11px;
}
.static-cart-empty small {
  font-size: 8px;
}
.cart-volume-discount {
  margin: 10px 0;
  padding: 10px 11px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
}
.cart-discount-heading,
.cart-volume-discount small {
  display: block;
}
.cart-discount-heading {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.cart-volume-discount dl {
  margin: 7px 0 0;
}
.cart-volume-discount dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.09);
}
.cart-volume-discount dt {
  color: #65758a;
  font-size: 11px;
}
.cart-volume-discount dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}
.cart-volume-discount .cart-discount-saving dd {
  color: #e17a16;
  font-size: 14px;
}
.cart-volume-discount small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.cart-pricing-formula {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.cart-pricing-formula > div {
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.cart-pricing-formula span {
  color: #526176;
  font-size: 9px;
  font-weight: 800;
}
.cart-pricing-formula code {
  overflow: hidden;
  color: #718096;
  font-family: inherit;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-pricing-formula strong {
  color: var(--ink);
  font-size: 11px;
  text-align: right;
}
.cart-pricing-formula .cart-formula-total {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.13);
}
.cart-pricing-formula .cart-formula-total span,
.cart-pricing-formula .cart-formula-total strong {
  color: var(--primary);
}
.cart-pricing-formula .cart-formula-total strong {
  font-size: 14px;
}
.cart-discount-next {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #7c4a08;
  background: #fff2da;
  box-shadow: inset 0 0 0 1px #f4cf89;
}
.cart-discount-next span,
.cart-discount-next strong,
.cart-discount-next small {
  display: block;
}
.cart-discount-next span {
  font-size: 11px;
}
.cart-discount-next b {
  color: #b45e09;
}
.cart-discount-next strong {
  margin-top: 4px;
  color: #dd7410;
  font-size: 14px;
}
.cart-discount-next small {
  margin: 0 0 3px;
  color: #8b6a3e;
}
.cart-discount-next.achieved {
  color: #16865d;
  background: #eaf9f3;
  box-shadow: inset 0 0 0 1px #bfe9d8;
}
.cart-total-summary {
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: var(--primary-soft);
}
.cart-total-summary span,
.cart-total-summary strong,
.cart-total-summary small {
  display: block;
}
.cart-total-summary span {
  color: #526176;
  font-size: 11px;
}
.cart-total-summary strong {
  margin-top: 5px;
  color: var(--primary);
  font-size: 28px;
}
.cart-total-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.cart-service-agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 11px 0 9px;
  padding: 9px 10px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 8px;
  color: #526176;
  background: #fbfcff;
  font-size: 11px;
}
.cart-service-agreement label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.cart-service-agreement input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.cart-service-agreement button {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.cart-service-agreement button:hover {
  text-decoration: underline;
}
.service-agreement-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 43, 0.58);
  backdrop-filter: blur(3px);
}
.service-agreement-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 20, 45, 0.3);
  text-align: left;
}
.service-agreement-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f5f8ff, #fff);
}
.service-agreement-dialog > header span,
.service-agreement-dialog > header small {
  display: block;
}
.service-agreement-dialog > header span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.service-agreement-dialog > header h3 {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 22px;
}
.service-agreement-dialog > header small {
  color: var(--muted);
  font-size: 10px;
}
.service-agreement-dialog > header > button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #66758a;
  background: #edf2f9;
  cursor: pointer;
  font-size: 22px;
}
.service-agreement-body {
  padding: 20px 24px;
  overflow: auto;
  color: #4e5f75;
  font-size: 13px;
  line-height: 1.75;
}
.service-agreement-body > p {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #34465f;
  background: var(--primary-soft);
}
.service-agreement-body section + section {
  margin-top: 15px;
}
.service-agreement-body h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
}
.service-agreement-body section p {
  margin: 0;
}
.service-agreement-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.service-agreement-dialog > footer .btn {
  min-width: 112px;
}
.static-spec-select {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  color: #526176;
  font-size: 11px;
  font-weight: 700;
}
.static-spec-select .select {
  width: min(430px, 100%);
}
.static-purchase-controls {
  display: grid;
  grid-template-columns:
    minmax(170px, 1fr) minmax(190px, 1fr) minmax(170px, 1fr)
    minmax(150px, 0.7fr);
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}
.static-purchase-controls label > span,
.static-price-preview > span {
  display: block;
  margin-bottom: 7px;
  color: #526176;
  font-size: 10px;
  font-weight: 700;
}
.static-purchase-controls label > span small {
  margin-left: 5px;
  color: var(--primary);
  font-size: 8px;
  font-weight: 700;
}
.quantity-stepper {
  display: grid;
  grid-template-columns: 34px minmax(70px, 1fr) 34px 54px;
}
.quantity-stepper button {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  cursor: pointer;
  font-size: 15px;
}
.quantity-stepper button:first-child {
  border-radius: 8px 0 0 8px;
}
.quantity-stepper button[data-quantity-step="1"] {
  border-radius: 0 8px 8px 0;
}
.quantity-stepper .quantity-apply {
  margin-left: 7px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.quantity-stepper button:disabled {
  color: #aeb7c4;
  cursor: not-allowed;
}
.quantity-stepper .input {
  height: 38px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  text-align: center;
}
.static-price-preview {
  min-height: 38px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 8px;
}
.static-price-preview > span {
  margin-bottom: 2px;
}
.static-price-preview strong {
  display: block;
  color: var(--primary);
  font-size: 17px;
}
.static-price-preview small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.console-quantity-discount {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 112px;
  margin-top: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(
      circle at 0 0,
      rgba(var(--primary-rgb), 0.18),
      transparent 38%
    ),
    linear-gradient(120deg, #f3f0ff 0%, #f7f8ff 52%, #eef8ff 100%);
  border: 2px solid rgba(var(--primary-rgb), 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.1);
}
.console-quantity-discount::after {
  position: absolute;
  top: -38px;
  right: -34px;
  width: 126px;
  height: 126px;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.console-quantity-discount strong,
.console-quantity-discount small {
  display: block;
}
.discount-copy {
  position: relative;
  z-index: 1;
  min-width: 240px;
}
.discount-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.console-quantity-discount strong {
  color: #30276d;
  font-size: 18px;
  line-height: 1.25;
}
.console-quantity-discount small {
  margin-top: 8px;
  color: #6659bc;
  font-size: 12px;
  font-weight: 700;
}
.console-quantity-discount .discount-tiers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.console-quantity-discount .discount-tiers > span {
  min-width: 82px;
  padding: 10px 12px;
  color: #6f7890;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 10px;
  font-size: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(34, 37, 77, 0.04);
}
.console-quantity-discount .discount-tiers > span b {
  margin-left: 3px;
  color: inherit;
  font-size: 11px;
}
.console-quantity-discount .discount-tiers > span.active {
  color: var(--primary);
  background: #fff;
  border-color: rgba(var(--primary-rgb), 0.35);
}
.console-quantity-discount .discount-tiers > span.current {
  color: #fff;
  background: linear-gradient(135deg, #7564ff, #5847ed);
  border-color: transparent;
  box-shadow: 0 7px 16px rgba(var(--primary-rgb), 0.28);
  transform: translateY(-1px);
}
.live-country {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 12px 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
}
.live-country label {
  color: #4f6075;
  font-size: 12px;
  font-weight: 750;
}
.live-country .select {
  grid-column: 2;
  width: min(520px, 100%);
}
.store-region-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #dfe5ee;
}
.store-region-tabs button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: #647187;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 11px;
}
.store-region-tabs button small {
  color: #9aa5b5;
  font-size: 8px;
}
.store-region-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.store-region-tabs button.active small {
  color: var(--primary);
}
.order-kicker {
  color: var(--primary);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 850;
}
.order .card-title {
  margin-top: 7px;
}
.order-product {
  margin: 14px 0 8px;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary-soft), #fff);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}
.order-product strong,
.order-product span {
  display: block;
}
.order-product span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.renew-control {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #65758a;
  font-size: 13px;
}
.order-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
}
.order-total strong {
  margin: 0;
}
.order-total small {
  flex-basis: 100%;
  margin-top: 5px;
  color: #7c8799;
  text-align: right;
  font-size: 9px;
}
.balance-check {
  margin: 14px 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 11px;
}
.balance-check.enough {
  color: #0d9c67;
  background: #e9faf4;
}
.balance-check.insufficient {
  color: #b96a20;
  background: #fff5e9;
}
.purchase-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.order-tip {
  margin: 11px 0 0;
  color: #96a2b2;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.finance-section {
  margin-bottom: 16px;
}
.finance-section table {
  min-width: 900px;
}
.finance-section code {
  color: var(--primary);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.status.order-paid_pending {
  color: #9b6b12;
  background: #fff5d9;
}
.ledger-list {
  display: grid;
}
.ledger-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
}
.ledger-icon.credit {
  color: #0ba572;
  background: #e7faf3;
}
.ledger-icon.debit {
  color: #d45665;
  background: #fff0f2;
}
.ledger-row strong,
.ledger-row small,
.ledger-amount small {
  display: block;
}
.ledger-row strong {
  font-size: 13px;
}
.ledger-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.ledger-amount {
  text-align: right;
  font-size: 14px;
  font-weight: 750;
}
.ledger-amount.positive {
  color: #0ba572;
}
.ledger-amount.negative {
  color: #d45665;
}
.empty.compact {
  padding: 35px 20px;
}
.admin-nav {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-chip {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 8px;
  letter-spacing: 0.8px;
}
.admin-link {
  text-decoration: none;
}
@media (max-width: 1100px) {
  .purchase-global-options {
    grid-template-columns: 1fr;
  }
  .purchase-global-options.compact-static-options {
    grid-template-columns: minmax(165px, 0.76fr) minmax(310px, 1.24fr);
  }
  .static-location-search-row .location-search {
    flex: 1 1 220px;
    width: auto;
  }
  .product-switcher {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .static-purchase-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .store-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .store-wallet {
    width: 100%;
  }
  .product-switcher,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .purchase-global-period > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-type-menu {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
  }
  .business-hot {
    grid-template-columns: 1fr;
  }
  .business-hot > div,
  .business-platforms > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-browser {
    grid-template-columns: 105px 1fr;
  }
  .business-browser nav button {
    padding: 10px 9px;
  }
  .business-platforms {
    padding: 12px;
  }
  .purchase-notice-popover {
    position: fixed;
    top: 150px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 175px);
    overflow-y: auto;
  }
  .purchase-notice-popover::before {
    display: none;
  }
  .purchase-assurance {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .live-country {
    grid-template-columns: 1fr;
  }
  .live-country .select {
    grid-column: 1;
  }
  .location-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .static-spec-select {
    align-items: flex-start;
    flex-direction: column;
  }
  .location-search {
    width: 100%;
  }
  .static-purchase-controls {
    grid-template-columns: 1fr;
  }
  .console-quantity-discount {
    align-items: flex-start;
    flex-direction: column;
  }
  .discount-copy {
    min-width: 0;
  }
  .console-quantity-discount .discount-tiers {
    justify-content: flex-start;
  }
  .console-quantity-discount .discount-tiers > span {
    min-width: 76px;
  }
  .ledger-row {
    grid-template-columns: 36px 1fr;
  }
  .ledger-amount {
    grid-column: 2;
    text-align: left;
  }
}

/* Support center */
.support-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  margin-bottom: 16px;
  padding: 30px 34px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(43, 202, 226, 0.28), transparent 30%),
    linear-gradient(125deg, #142440, #22487a 58%, #1c8baa);
  box-shadow: 0 18px 42px rgba(24, 52, 96, 0.17);
}
.support-hero h1 {
  margin: 8px 0;
  font-size: 30px;
}
.support-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}
.support-hero-mark {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 48px;
  font-weight: 800;
  transform: rotate(8deg);
}
.support-card {
  padding: 24px;
}
.support-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--primary-soft);
}
.support-search span {
  color: var(--primary);
  font-size: 20px;
}
.support-search input {
  width: 100%;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.faq-item[open] {
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 10px 25px rgba(30, 42, 82, 0.06);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker,
.ticket-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary small,
.faq-item summary strong {
  display: block;
}
.faq-item summary small {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.faq-item summary strong {
  color: var(--ink);
  font-size: 14px;
}
.faq-item summary i {
  color: var(--muted);
  font-size: 20px;
  font-style: normal;
  transition: transform 0.2s;
}
.faq-item[open] summary i {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 19px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.faq-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.guide-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(128, 94, 255, 0.42), transparent 30%),
    linear-gradient(125deg, #182442, #293a7d 58%, #614ee4);
}
.guide-progress,
.ticket-summary {
  min-width: 180px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}
.guide-progress span,
.guide-progress small,
.ticket-summary strong,
.ticket-summary small {
  display: block;
}
.guide-progress span,
.ticket-summary strong {
  font-size: 34px;
  font-weight: 800;
}
.guide-progress small,
.ticket-summary small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.guide-step {
  display: flex;
  gap: 18px;
  min-height: 190px;
  padding: 25px;
}
.guide-number {
  flex: 0 0 auto;
  color: rgba(var(--primary-rgb), 0.2);
  font-size: 34px;
  font-weight: 900;
}
.guide-step h2 {
  margin: 3px 0 9px;
  color: var(--ink);
  font-size: 18px;
}
.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.guide-link {
  margin-top: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.guide-safety {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.guide-safety h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 18px;
}
.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  color: var(--muted);
  font-size: 12px;
}
.safety-list span::first-letter {
  color: var(--green);
}
.feedback-hero {
  background:
    radial-gradient(circle at 83% 20%, rgba(28, 203, 167, 0.36), transparent 30%),
    linear-gradient(125deg, #152a40, #1c5969 56%, #00a878);
}
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}
.feedback-form {
  display: grid;
  gap: 14px;
}
.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}
.feedback-form .btn {
  justify-self: start;
}
.form-note {
  color: var(--muted);
  line-height: 1.6;
}
.ticket-history {
  min-height: 520px;
}
.ticket-list {
  display: grid;
  gap: 10px;
}
.ticket-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.ticket-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 17px;
  cursor: pointer;
  list-style: none;
}
.ticket-item summary small,
.ticket-item summary strong {
  display: block;
}
.ticket-item summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}
.ticket-item summary strong {
  color: var(--ink);
  font-size: 13px;
}
.ticket-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 159, 51, 0.11);
  color: #b36c13;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.ticket-status.resolved,
.ticket-status.closed {
  background: rgba(34, 200, 131, 0.1);
  color: #16885c;
}
.ticket-body {
  padding: 0 17px 17px;
  border-top: 1px solid var(--line);
}
.ticket-body > p {
  margin: 14px 0 7px;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
}
.ticket-body > small,
.ticket-reply small {
  color: var(--muted);
}
.ticket-reply,
.ticket-waiting {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--primary-soft);
}
.ticket-reply strong,
.ticket-reply p {
  display: block;
}
.ticket-reply strong {
  color: var(--primary);
  font-size: 11px;
}
.ticket-reply p {
  margin: 5px 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-line;
}
.ticket-waiting {
  color: var(--muted);
  font-size: 12px;
}

/* Message center */
.message-center-hero {
  background:
    radial-gradient(circle at 83% 20%, rgba(135, 111, 255, 0.42), transparent 31%),
    linear-gradient(125deg, #151f42, #303d86 56%, var(--primary));
}
.message-unread-summary {
  display: grid;
  min-width: 150px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
}
.message-unread-summary strong {
  font-size: 32px;
}
.message-unread-summary small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
}
.message-unread-summary button {
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 10px;
}
.message-center-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  min-height: 560px;
  overflow: hidden;
}
.message-inbox {
  border-right: 1px solid var(--line);
}
.message-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.message-inbox-head strong {
  font-size: 15px;
}
.message-inbox-head span {
  color: var(--muted);
  font-size: 11px;
}
.message-inbox-list {
  max-height: 660px;
  overflow-y: auto;
}
.message-inbox-item {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}
.message-inbox-item:hover,
.message-inbox-item.active {
  background: var(--primary-soft);
}
.message-inbox-item.active {
  box-shadow: inset 3px 0 var(--primary);
}
.message-inbox-item.unread {
  background: rgba(var(--primary-rgb), 0.055);
}
.message-inbox-status {
  display: grid;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  font-size: 8px;
}
.message-inbox-item.unread .message-inbox-status {
  background: var(--primary);
}
.message-inbox-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.message-inbox-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.message-inbox-copy strong {
  overflow: hidden;
  min-width: 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-inbox-item.unread .message-inbox-copy strong {
  color: var(--primary);
  font-weight: 900;
}
.message-inbox-copy time,
.message-inbox-copy small {
  color: var(--muted);
  font-size: 9px;
}
.message-inbox-copy time {
  flex: 0 0 auto;
}
.message-inbox-copy small {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-inbox-item em {
  padding: 4px 6px;
  border-radius: 999px;
  color: #d96719;
  background: #fff0e5;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.message-reader {
  min-width: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.07), transparent 30%),
    var(--card);
}
.message-detail {
  padding: 34px 38px;
}
.message-detail header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.message-detail h2 {
  margin: 11px 0 7px;
  font-size: 25px;
}
.message-detail header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.message-priority {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #d96719;
  background: #fff0e5;
  font-size: 9px;
  font-weight: 900;
}
.message-priority.normal {
  color: var(--primary);
  background: var(--primary-soft);
}
.message-detail-content {
  padding-top: 26px;
  color: #43536a;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}
.message-detail-empty,
.message-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}
.message-detail-empty span,
.message-empty > span {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 25px;
}
.message-detail-empty strong,
.message-empty strong {
  color: var(--ink);
  font-size: 15px;
}
.message-detail-empty p,
.message-empty small {
  margin: 7px 0 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .message-center-layout {
    grid-template-columns: 1fr;
  }
  .message-inbox {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .message-inbox-list {
    max-height: 360px;
  }
  .guide-safety {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .support-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }
  .support-hero-mark {
    display: none;
  }
  .guide-progress,
  .ticket-summary {
    min-width: 0;
  }
  .message-unread-summary {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
  .guide-grid,
  .safety-list {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  --primary: #6d5dfc;
  --primary-rgb: 109, 93, 252;
  --primary-dark: #5544df;
  --primary-soft: #f0edff;
  --accent: #20c9e8;
  --accent-rgb: 32, 201, 232;
  --sidebar: #10182f;
  --sidebar-2: #182345;
}
.app.theme-ocean {
  --primary: #087ffc;
  --primary-rgb: 8, 127, 252;
  --primary-dark: #0567d0;
  --primary-soft: #e9f4ff;
  --accent: #29d3c2;
  --accent-rgb: 41, 211, 194;
  --sidebar: #071b35;
  --sidebar-2: #0d3157;
}
.app.theme-emerald {
  --primary: #00a878;
  --primary-rgb: 0, 168, 120;
  --primary-dark: #00845f;
  --primary-soft: #e7f9f3;
  --accent: #8ddf3f;
  --accent-rgb: 141, 223, 63;
  --sidebar: #09251f;
  --sidebar-2: #123e34;
}
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 228, 240, 0.8);
  display: flex;
  align-items: center;
  z-index: 20;
  box-shadow: 0 5px 22px rgba(27, 39, 75, 0.035);
}
.brand {
  width: 260px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.8px;
  color: #fff;
  background: var(--sidebar);
}
.brand-mark {
  width: 23px;
  height: 23px;
  border: 5px solid var(--accent);
  border-radius: 5px;
  position: relative;
  transform: rotate(-4deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: -9px;
  top: -9px;
  border-radius: 2px;
  background: var(--primary);
}
.brand span:last-child {
  background: linear-gradient(90deg, #fff, var(--accent));
  color: transparent;
  background-clip: text;
}
.crumb {
  padding: 0 20px;
  color: #9aa8ba;
  font-size: 14px;
  flex: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 24px;
  font-size: 13px;
  color: #3d4c61;
}
.balance strong {
  margin-left: 6px;
  font-size: 16px;
  color: #13213a;
}
.topbar-recharge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 7px 16px rgba(var(--primary-rgb), 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: 0.18s ease;
}
.topbar-recharge:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(var(--primary-rgb), 0.25);
}
.topbar-recharge:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.22);
  outline-offset: 2px;
}
.btn {
  border: 0;
  border-radius: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transition: 0.2s;
  box-shadow: 0 7px 15px rgba(var(--primary-rgb), 0.16);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}
.btn.small {
  padding: 6px 13px;
  font-size: 12px;
}
.btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #4f6075;
}
.btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.theme-switch {
  font-size: 18px;
  transition: 0.25s;
}
.theme-switch:hover {
  transform: rotate(25deg);
}
.message-notification {
  position: relative;
  cursor: pointer;
  font-size: 15px;
}
.message-notification.has-unread {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 7px 16px rgba(var(--primary-rgb), 0.2);
}
.message-notification b {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ff5f57;
  font-size: 8px;
  line-height: 1;
}
.message-notification-wrap {
  position: relative;
  z-index: 42;
}
.message-popover-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}
.message-popover {
  position: absolute;
  z-index: 43;
  top: calc(100% + 12px);
  right: -10px;
  display: flex;
  width: 390px;
  min-height: 360px;
  max-height: min(640px, calc(100vh - 90px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce3ef;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 50px rgba(29, 45, 78, 0.22);
}
.message-popover::before {
  position: absolute;
  top: -6px;
  right: 21px;
  width: 11px;
  height: 11px;
  border-top: 1px solid #dce3ef;
  border-left: 1px solid #dce3ef;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.message-popover-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 55px;
  border-bottom: 1px solid var(--line);
}
.message-popover-tabs button {
  position: relative;
  border: 0;
  color: #526177;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.message-popover-tabs button.active {
  color: var(--primary);
}
.message-popover-tabs button.active::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  content: "";
}
.message-popover-tabs button b {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 5px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff5f57;
  font-size: 8px;
}
.message-popover-list {
  flex: 1;
  overflow-y: auto;
}
.message-popover-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}
.message-popover-item:hover {
  background: var(--primary-soft);
}
.message-popover-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 13px;
}
.message-popover-item.important .message-popover-icon {
  color: #d96719;
  background: #fff0e5;
}
.message-popover-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.message-popover-item strong,
.message-popover-item small,
.message-popover-item time {
  display: block;
}
.message-popover-item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-popover-item small {
  display: -webkit-box;
  overflow: hidden;
  color: #8290a3;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.message-popover-item time {
  color: #9aa6b7;
  font-size: 9px;
}
.message-popover-all {
  flex: 0 0 44px;
  border: 0;
  border-top: 1px solid var(--line);
  color: #78869a;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  text-align: right;
  padding-right: 20px;
}
.message-popover-all:hover {
  color: var(--primary);
}
.message-popover-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}
.message-popover-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 20px;
}
.message-popover-empty strong {
  color: var(--ink);
  font-size: 13px;
}
.message-popover-empty small {
  margin-top: 6px;
  font-size: 10px;
}
.message-popover-detail {
  min-height: 360px;
  padding: 18px 20px 24px;
}
.message-popover-back {
  margin-bottom: 17px;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.message-popover-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.message-popover-detail-head span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 900;
}
.message-popover-detail-head span.important {
  color: #d96719;
  background: #fff0e5;
}
.message-popover-detail-head time {
  color: var(--muted);
  font-size: 9px;
}
.message-popover-detail h3 {
  margin: 14px 0 10px;
  font-size: 17px;
}
.message-popover-detail p {
  margin: 0;
  color: #536277;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-line;
}
.account-avatar {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  border: 0;
}
.account-menu {
  position: relative;
}
.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  transition: 0.18s ease;
}
.account-menu > summary::-webkit-details-marker {
  display: none;
}
.account-menu > summary:hover,
.account-menu[open] > summary {
  border-color: rgba(var(--primary-rgb), 0.12);
  background: var(--primary-soft);
}
.account-menu > summary:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.2);
  outline-offset: 2px;
}
.account-menu-caret {
  color: #7d8aa0;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.account-menu[open] .account-menu-caret {
  transform: rotate(180deg);
}
.account-menu-popover {
  position: absolute;
  z-index: 35;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  padding: 7px;
  border: 1px solid rgba(210, 219, 234, 0.92);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(22, 38, 72, 0.18);
  backdrop-filter: blur(16px);
}
.account-menu-popover::before {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(210, 219, 234, 0.92);
  border-left: 1px solid rgba(210, 219, 234, 0.92);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.account-menu-popover button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: #26364d;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.account-menu-popover button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.account-menu-popover button > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 15px;
  font-weight: 900;
}
.account-menu-popover button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.account-menu-popover button strong {
  font-size: 12px;
}
.account-menu-popover button small {
  color: #8996a8;
  font-size: 9px;
  font-weight: 600;
}
.account-menu-popover .account-menu-logout {
  margin-top: 3px;
  border-top: 1px solid #edf1f6;
  border-radius: 0 0 9px 9px;
  color: #d85454;
}
.account-menu-popover .account-menu-logout > span:first-child {
  color: #d85454;
  background: #fff0f0;
}
.user-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 180px;
}
.user-pill strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #334258;
}
.user-pill small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b5c5;
  box-shadow: 0 0 0 4px rgba(169, 181, 197, 0.12);
}
.live-dot.loading {
  animation: pulse 1.2s infinite;
}
.live-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 200, 131, 0.12);
}
.live-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(241, 83, 100, 0.12);
}
.live-label {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 9px;
  background: #e7faf3;
  color: #12a96d;
  font-size: 10px;
  vertical-align: 1px;
}
.api-error {
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid #ffd6da;
  background: #fff5f6;
  color: #b43a49;
  border-radius: 7px;
  font-size: 12px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.sidebar {
  position: fixed;
  top: 68px;
  bottom: 0;
  width: 260px;
  background: linear-gradient(170deg, var(--sidebar), var(--sidebar-2));
  border-right: 0;
  overflow-y: auto;
  padding: 18px 18px 40px;
  z-index: 10;
  box-shadow: 14px 0 35px rgba(14, 24, 52, 0.08);
}
.sidebar::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -100px;
  top: 24%;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  filter: blur(2px);
  pointer-events: none;
}
.buy-main {
  width: 100%;
  margin-bottom: 22px;
  padding: 12px;
}
.nav-group {
  margin: 8px 0 18px;
}
.nav-title,
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #aebbd1;
  border-radius: 9px;
}
.nav-title {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 600;
}
.nav-title .chev {
  margin-left: auto;
  color: #6e809c;
}
.nav-item {
  padding: 10px 15px 10px 45px;
  font-size: 14px;
  margin: 2px 0;
}
.nav-title:hover,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.nav-title.active,
.nav-item.active {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.42),
    rgba(var(--accent-rgb), 0.13)
  );
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-icon {
  width: 19px;
  text-align: center;
  font-size: 18px;
}

.main {
  margin-left: 260px;
  padding-top: 68px;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 88% 4%,
      rgba(var(--primary-rgb), 0.08),
      transparent 23%
    ),
    radial-gradient(
      circle at 24% 24%,
      rgba(var(--accent-rgb), 0.06),
      transparent 21%
    ),
    var(--canvas);
}
.content {
  padding: 20px;
}
.grid {
  display: grid;
  gap: 16px;
}
.dashboard-grid {
  grid-template-columns: minmax(340px, 0.8fr) minmax(480px, 1fr) 270px;
  align-items: start;
}
.dashboard-business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.dashboard-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.business-overview-card {
  min-height: 244px;
}
.business-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.business-card-head .card-title {
  margin-bottom: 0;
}
.business-card-head > button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.business-primary-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 20px;
}
.business-primary-metric strong {
  color: var(--ink);
  font-size: 28px;
}
.business-primary-metric span {
  color: var(--muted);
  font-size: 11px;
}
.business-card-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}
.business-card-kpis > div + div {
  padding-left: 16px;
  border-left: 1px solid rgba(var(--primary-rgb), 0.12);
}
.business-card-kpis small,
.business-card-kpis strong {
  display: block;
}
.business-card-kpis small {
  color: var(--muted);
  font-size: 10px;
}
.business-card-kpis strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}
.business-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
}
.business-progress-label strong {
  color: #53647a;
}
.dashboard-wallet-column {
  min-width: 0;
  align-self: stretch;
}
.dashboard-wallet-column > .card {
  position: sticky;
  top: 82px;
  height: 100%;
}
.dashboard-wallet-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 466px;
  padding: 24px;
}
.dashboard-wallet-card .card-title {
  font-size: 18px;
}
.dashboard-wallet-card .card-icon {
  width: 32px;
  height: 32px;
}
.dashboard-wallet-card > .eyebrow {
  margin-top: 7px;
}
.dashboard-wallet-card > .metric {
  margin: 10px 0 4px;
  font-size: 34px;
}
.dashboard-wallet-card .metric-row {
  margin-top: 18px;
  padding-top: 16px;
}
.dashboard-wallet-card .mini-value {
  font-size: 18px;
}
.dashboard-wallet-actions {
  margin-top: 22px;
}
.wallet-recharge-button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 850;
}
.dashboard-wallet-actions > p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.dashboard-wallet-actions > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 9px;
  color: #42617e;
  background: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}
.dashboard-wallet-card .wallet-note {
  margin-top: auto;
}
.stack {
  display: grid;
  gap: 16px;
}
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 229, 240, 0.86);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 16px 38px rgba(30, 42, 82, 0.09);
}
.card.blue {
  background: linear-gradient(
    145deg,
    rgba(var(--primary-rgb), 0.1),
    rgba(255, 255, 255, 0.96) 58%,
    rgba(var(--accent-rgb), 0.05)
  );
  border-color: rgba(var(--primary-rgb), 0.1);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-weight: 750;
  font-size: 16px;
}
.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  color: white;
  box-shadow: 0 7px 14px rgba(var(--primary-rgb), 0.22);
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
}
.metric {
  font-size: 26px;
  font-weight: 750;
  margin: 7px 0;
  letter-spacing: -0.5px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #dce6f5;
  margin-top: 14px;
  padding-top: 13px;
}
.metric-row > div + div {
  border-left: 1px solid #dce6f5;
  padding-left: 25px;
}
.mini-value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 5px;
}
.input,
.select {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 4px;
  color: #44556d;
  outline: none;
}
.input:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 87, 245, 0.09);
}
.full {
  width: 100%;
}
.proxy-stat {
  min-height: 250px;
}
.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.progress {
  height: 8px;
  background: #dbe6f6;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--primary);
  border-radius: inherit;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #45556d;
  margin-top: 6px;
}
.features {
  display: grid;
  gap: 10px;
  color: #3b5270;
  font-size: 13px;
  margin-top: 16px;
}
.features span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}
.profile {
  min-height: 230px;
}
.avatar-line {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f4fa;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}
.email {
  font-size: 13px;
  font-weight: 600;
}
.verified {
  display: inline-block;
  font-size: 10px;
  color: #90a0b3;
  padding: 2px 7px;
  background: #f5f7fa;
  border-radius: 10px;
  margin-top: 4px;
}
.bind-title {
  color: #6c7c90;
  font-size: 12px;
  margin-top: 20px;
}
.binds {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.bind {
  color: #7c8ba0;
  font-size: 12px;
  text-align: center;
}
.bind i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9eef5;
  font-style: normal;
  font-weight: 700;
  margin: 0 auto 5px;
}
.link {
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
}

.welcome-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 16px;
  padding: 28px 30px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(
    120deg,
    var(--sidebar) 0%,
    var(--sidebar-2) 48%,
    var(--primary) 140%
  );
  box-shadow: 0 18px 40px rgba(17, 26, 52, 0.16);
}
.welcome-panel::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: 12%;
  top: -140px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.035),
    0 0 0 70px rgba(255, 255, 255, 0.025);
}
.welcome-panel::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -30px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.5),
    transparent 68%
  );
}
.welcome-copy,
.welcome-actions {
  position: relative;
  z-index: 1;
}
.welcome-kicker {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--accent);
  font-weight: 800;
}
.welcome-copy h1 {
  margin: 8px 0 7px;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.welcome-copy p {
  margin: 0;
  color: #b8c5db;
  font-size: 13px;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sync-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.sync-pill strong,
.sync-pill small {
  display: block;
}
.sync-pill strong {
  font-size: 13px;
}
.sync-pill small {
  margin-top: 3px;
  color: #a9b7cd;
  font-size: 10px;
}
.sync-orbit {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  position: relative;
}
.sync-orbit::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.light-btn {
  white-space: nowrap;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.light-btn:hover {
  color: var(--primary-dark);
  background: #f8f7ff;
}
.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.quick-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(225, 229, 240, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 17px;
}
.quick-strip p {
  margin: 0;
  min-width: 0;
}
.quick-strip small,
.quick-strip strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-strip small {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.quick-strip strong {
  font-size: 13px;
}

.page-card {
  min-height: calc(100vh - 96px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-title {
  font-size: 18px;
  margin: 0;
}
.proxy-endpoint {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 6px;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}
.proxy-endpoint.has-details {
  cursor: help;
}
.proxy-endpoint.has-details:hover,
.proxy-endpoint.has-details:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.proxy-hover-tooltip {
  position: fixed;
  z-index: 90;
  width: min(420px, calc(100vw - 20px));
  padding: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}
.proxy-hover-tooltip > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
}
.proxy-hover-tooltip.loading,
.proxy-hover-tooltip.error {
  width: auto;
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
}
.proxy-hover-tooltip.error {
  color: #dc2626;
}
.proxy-hover-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  border-top: 1px solid #eef2f7;
}
.proxy-hover-row span {
  color: var(--muted);
  font-size: 11px;
}
.proxy-hover-row code {
  overflow-wrap: anywhere;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}
.proxy-hover-row code.credential {
  color: var(--primary);
  font-weight: 750;
}
.proxy-hover-row code.connection-uri {
  max-height: 54px;
  overflow: hidden;
}
.proxy-hover-tooltip small {
  display: block;
  margin-top: 8px;
  color: #e11d48;
  font-size: 10px;
}
.proxy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.035);
  color: var(--muted);
  font-size: 11px;
}
.proxy-toolbar > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.proxy-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(140px, 190px) minmax(170px, 220px);
  gap: 8px;
  width: min(100%, 790px);
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(var(--primary-rgb), 0.025);
}
.proxy-filter-bar select,
.proxy-filter-bar input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}
.proxy-filter-bar select:focus,
.proxy-filter-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.proxy-management-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.proxy-management-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.proxy-management-button,
.proxy-action-menu > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.proxy-management-button:hover,
.proxy-action-menu > summary:hover,
.proxy-action-menu[open] > summary {
  border-color: rgba(var(--primary-rgb), 0.42);
  color: var(--primary);
  background: var(--primary-soft);
}
.proxy-management-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}
.proxy-action-menu {
  position: relative;
}
.proxy-action-menu > summary::-webkit-details-marker {
  display: none;
}
.proxy-action-menu > summary span {
  color: var(--muted);
  font-size: 13px;
}
.proxy-action-popover {
  position: absolute;
  z-index: 24;
  top: calc(100% + 7px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15);
}
.proxy-action-popover button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.proxy-action-popover button:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary);
}
.proxy-action-popover button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}
.proxy-action-popover small {
  display: block;
  padding: 7px 10px 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.proxy-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
}
.proxy-management-table {
  min-width: 1040px;
}
.proxy-management-table th,
.proxy-management-table td {
  padding: 10px 8px;
}
.proxy-management-table th {
  white-space: nowrap;
}
.proxy-id {
  display: block;
  max-width: 94px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proxy-remark-button {
  width: 84px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.proxy-remark-button span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proxy-remark-button i {
  color: var(--primary);
  font-style: normal;
}
.proxy-switch {
  position: relative;
  width: 34px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9dfeb;
  transition: background 0.2s ease;
}
.proxy-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}
.proxy-switch.on {
  background: var(--primary);
}
.proxy-switch.on span {
  transform: translateX(15px);
}
.proxy-switch:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.proxy-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 92px;
  white-space: nowrap;
}
.proxy-row-primary,
.proxy-row-menu > summary {
  min-height: auto;
  padding: 3px 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.proxy-row-primary:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}
.proxy-row-menu > summary {
  gap: 4px;
}
.proxy-row-menu[open] > summary {
  border: 0;
  color: var(--primary);
  background: transparent;
}
.proxy-row-popover {
  position: fixed;
  top: auto;
  right: auto;
  min-width: 210px;
  z-index: 40;
}
.proxy-row-popover.is-portal {
  display: block;
  box-sizing: border-box;
}
.proxy-capability {
  color: var(--muted);
  font-size: 11px;
}
.proxy-capability.enabled {
  color: var(--green);
  font-weight: 700;
}
.proxy-page-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.proxy-pager-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proxy-pager-right label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proxy-pager-right select {
  height: 30px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  outline: none;
}
.proxy-pager-right select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.proxy-page-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--primary);
}
.proxy-page-controls button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.45;
}
.proxy-page-controls strong {
  min-width: 50px;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}
.proxy-tool-btn {
  padding: 7px 12px;
  font-size: 11px;
  box-shadow: none;
}
.proxy-select-cell {
  width: 38px;
  text-align: center;
}
.proxy-select-cell input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}
.proxy-quick-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.proxy-renewal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}
.proxy-renewal-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(820px, calc(100vw - 36px));
  max-height: min(850px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(6, 20, 45, 0.34);
  text-align: left;
}
.proxy-renewal-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 23px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f4f8ff, #fff);
}
.proxy-renewal-dialog > header span,
.proxy-renewal-dialog > header small {
  display: block;
}
.proxy-renewal-dialog > header span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.proxy-renewal-dialog > header h3 {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 22px;
}
.proxy-renewal-dialog > header small {
  color: var(--muted);
  font-size: 10px;
}
.proxy-renewal-dialog > header > button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  color: #68778b;
  background: #edf2f9;
  cursor: pointer;
  font-size: 22px;
}
.proxy-renewal-dialog > header > button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.proxy-renewal-dialog button:disabled {
  cursor: not-allowed;
}
.proxy-renewal-body {
  min-height: 0;
  padding: 18px 23px;
  overflow: auto;
}
.proxy-renewal-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #ffe2e6;
  border-radius: 9px;
  color: #c44355;
  background: #fff6f7;
  font-size: 11px;
  line-height: 1.65;
}
.proxy-renewal-warning b {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}
.proxy-renewal-warning p {
  margin: 0;
}
.proxy-renewal-section {
  margin-top: 18px;
}
.proxy-renewal-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.proxy-renewal-label > b {
  color: #ef4059;
}
.proxy-renewal-label > span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
}
.proxy-renewal-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}
.proxy-renewal-periods button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 64px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #58687d;
  background: #fff;
  cursor: pointer;
}
.proxy-renewal-periods button:hover {
  border-color: rgba(var(--primary-rgb), 0.55);
  background: #fbfdff;
}
.proxy-renewal-periods button.active {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.1);
}
.proxy-renewal-periods strong {
  font-size: 14px;
}
.proxy-renewal-periods small {
  color: var(--muted);
  font-size: 9px;
}
.proxy-renewal-periods i {
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-style: normal;
}
.proxy-renewal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.proxy-renewal-list-head > small {
  color: var(--muted);
  font-size: 9px;
}
.proxy-renewal-table-wrap {
  max-height: 270px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.proxy-renewal-table {
  width: 100%;
  min-width: 780px;
  font-size: 10px;
}
.proxy-renewal-table th,
.proxy-renewal-table td {
  padding: 10px 11px;
}
.proxy-renewal-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f4f7fb;
}
.proxy-renewal-table td strong,
.proxy-renewal-table td small {
  display: block;
}
.proxy-renewal-table td strong {
  color: var(--ink);
  font-size: 11px;
}
.proxy-renewal-table td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.proxy-renewal-table code {
  color: #40516a;
  font-size: 10px;
}
.proxy-renewal-item-price {
  color: var(--primary) !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.proxy-renewal-price-loading,
.proxy-renewal-price-error {
  display: inline-block;
  font-size: 9px;
  font-weight: 750;
}
.proxy-renewal-price-loading {
  color: #6b7d94;
}
.proxy-renewal-price-error {
  color: #bd4054;
}
.proxy-renewal-table td:last-child button {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 7px;
  color: #8a98aa;
  background: #edf2f8;
  cursor: pointer;
  font-size: 16px;
}
.proxy-renewal-table td:last-child button:hover {
  color: #d34259;
  background: #fff0f3;
}
.proxy-renewal-ready {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  color: #14845e;
  background: #e9f9f3;
  font-size: 9px;
  font-weight: 800;
}
.proxy-renewal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.proxy-renewal-summary > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f7f9fc;
}
.proxy-renewal-summary span {
  color: var(--muted);
  font-size: 9px;
}
.proxy-renewal-summary strong {
  color: var(--ink);
  font-size: 12px;
}
.proxy-renewal-summary > div:last-child {
  background: var(--primary-soft);
}
.proxy-renewal-summary > div:last-child strong {
  color: var(--primary);
}
.proxy-renewal-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #bd4054;
  background: #fff0f3;
  font-size: 10px;
}
.proxy-renewal-error button {
  flex: 0 0 auto;
  border: 1px solid #efb5bf;
  border-radius: 7px;
  padding: 5px 9px;
  color: #ad3247;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.proxy-renewal-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.proxy-renewal-dialog > footer label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #53647a;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.proxy-renewal-dialog > footer input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}
.proxy-renewal-dialog > footer > div {
  display: flex;
  gap: 9px;
}
.proxy-renewal-dialog > footer .btn {
  min-width: 105px;
}
.proxy-quick-actions button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 7px;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.proxy-address-cell {
  min-width: 176px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.proxy-route-cell,
.proxy-status-cell {
  display: grid;
  gap: 3px;
}
.proxy-route-cell strong {
  color: var(--ink);
  font-size: 11px;
}
.proxy-route-cell small,
.proxy-status-cell small {
  color: var(--muted);
  font-size: 9px;
}
.proxy-status-cell {
  justify-items: start;
}
.proxy-quick-actions button:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
}
.proxy-quick-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.proxy-qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}
.proxy-qr-modal {
  position: relative;
  width: min(390px, 100%);
  padding: 28px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
}
.proxy-qr-modal h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
}
.proxy-qr-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.proxy-qr-modal img {
  width: 260px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.proxy-qr-modal code {
  display: block;
  margin: 14px 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}
.proxy-qr-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.proxy-qr-actions .btn {
  min-width: 126px;
}
.proxy-qr-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .proxy-renewal-backdrop {
    padding: 10px;
  }
  .proxy-renewal-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 13px;
  }
  .proxy-renewal-dialog > header,
  .proxy-renewal-body,
  .proxy-renewal-dialog > footer {
    padding-right: 15px;
    padding-left: 15px;
  }
  .proxy-renewal-periods {
    grid-template-columns: 1fr 1fr;
  }
  .proxy-renewal-summary {
    grid-template-columns: 1fr;
  }
  .proxy-renewal-dialog > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .proxy-renewal-dialog > footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab {
  border: 0;
  background: transparent;
  padding: 0 2px 12px;
  color: #64748a;
  position: relative;
}
.tab.active {
  color: var(--primary);
  font-weight: 650;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #eef3fb;
  border-radius: 9px;
  font-size: 10px;
  color: var(--primary);
  margin-left: 5px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filters .select,
.filters .input {
  max-width: 190px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1040px;
  font-size: 12px;
  background: #fff;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f8faff;
  color: #53657c;
  font-weight: 650;
}
td {
  color: #4f6075;
}
tr:last-child td {
  border-bottom: 0;
}
.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  background: #e9fbf4;
  color: #12a96d;
}
.status.expired {
  background: #f3f5f8;
  color: #97a5b6;
}
.toggle {
  width: 30px;
  height: 17px;
  border-radius: 10px;
  background: #cad4e1;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.toggle::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}
.toggle.on {
  background: var(--green);
}
.toggle.on::after {
  left: 15px;
}
.empty {
  text-align: center;
  padding: 80px 20px;
  color: #96a4b5;
}
.empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #f2f5fa;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.pager {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  color: #7a899d;
  font-size: 12px;
}

.dynamic-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.traffic-card {
  padding: 24px;
  background: linear-gradient(135deg, #eff5ff, #fff);
  border: 1px solid #e5ecf8;
  border-radius: 9px;
}
.traffic-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.traffic-kpis > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.finance-kpis {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #edf4ff;
}
.kpi .metric {
  font-size: 23px;
}
.kpi .eyebrow {
  font-size: 13px;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}
.purchase-main {
  min-height: calc(100vh - 96px);
}
.purchase-main > .product-switcher {
  margin-bottom: 14px;
}
.section-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 14px;
  margin: 20px 0;
}
.section-label {
  color: #68788d;
  font-size: 13px;
  padding-top: 13px;
}
.required::before {
  content: "* ";
  color: var(--danger);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.choice {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 10px;
  background: #fff;
  text-align: center;
  color: #5a6a7f;
}
.choice.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(9, 87, 245, 0.05);
}
.ribbon {
  position: absolute;
  left: 0;
  top: -13px;
  padding: 3px 9px;
  border-radius: 4px 4px 4px 0;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
}
.periods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.plan {
  padding: 18px 8px 12px;
  border-radius: 7px;
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
}
.plan.active {
  border-color: var(--primary);
  background: #f4f8ff;
}
.plan strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
  color: var(--primary);
}
.plan small {
  color: #8795a7;
}
.plan.enterprise strong {
  color: #313f52;
}
.order {
  position: sticky;
  top: 80px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #65758a;
}
.order-line strong {
  color: var(--ink);
  text-align: right;
}
.order-line .pricing-source {
  color: var(--primary);
}
.order-total {
  margin-top: 25px;
  color: var(--primary);
}
.order-total del {
  display: block;
  margin-top: 6px;
  color: #929dac;
  font-size: 12px;
}
.order-total strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #16233a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  z-index: 50;
  animation: toast 0.3s ease;
}
@keyframes toast {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(420px, 0.85fr);
  --primary: #6d5dfc;
  --primary-rgb: 109, 93, 252;
  --primary-dark: #5544df;
  --primary-soft: #f0edff;
  --accent: #20c9e8;
  --accent-rgb: 32, 201, 232;
  --sidebar: #10182f;
  --sidebar-2: #182345;
  background: #f6f7fb;
}
.auth-shell.theme-ocean,
.boot-screen.theme-ocean {
  --primary: #087ffc;
  --primary-rgb: 8, 127, 252;
  --primary-dark: #0567d0;
  --primary-soft: #e9f4ff;
  --accent: #29d3c2;
  --accent-rgb: 41, 211, 194;
  --sidebar: #071b35;
  --sidebar-2: #0d3157;
}
.auth-shell.theme-emerald,
.boot-screen.theme-emerald {
  --primary: #00a878;
  --primary-rgb: 0, 168, 120;
  --primary-dark: #00845f;
  --primary-soft: #e7f9f3;
  --accent: #8ddf3f;
  --accent-rgb: 141, 223, 63;
  --sidebar: #09251f;
  --sidebar-2: #123e34;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 42px 56px;
  color: #fff;
  background:
    radial-gradient(
      circle at 76% 22%,
      rgba(var(--primary-rgb), 0.45),
      transparent 26%
    ),
    radial-gradient(
      circle at 18% 78%,
      rgba(var(--accent-rgb), 0.16),
      transparent 25%
    ),
    linear-gradient(145deg, var(--sidebar), var(--sidebar-2));
}
.auth-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  top: 14%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(255, 255, 255, 0.025),
    0 0 0 116px rgba(255, 255, 255, 0.018);
}
.auth-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
}
.auth-brand strong {
  background: linear-gradient(90deg, #fff, var(--accent));
  color: transparent;
  background-clip: text;
}
.auth-message {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-top: 24vh;
}
.auth-message h1 {
  margin: 13px 0 16px;
  max-width: 520px;
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -1.4px;
}
.auth-message p {
  max-width: 540px;
  color: #b8c5d9;
  line-height: 1.8;
  font-size: 14px;
}
.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: #d9e3f1;
  font-size: 12px;
}
.auth-features span::first-letter {
  color: var(--accent);
}
.auth-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 28%;
  bottom: -190px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.42;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(
      circle at 80% 8%,
      rgba(var(--primary-rgb), 0.08),
      transparent 24%
    ),
    #f7f8fc;
}
.auth-card {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 38px;
  border: 1px solid #e5e9f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 34, 66, 0.1);
}
.auth-theme {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}
.auth-kicker {
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}
.auth-card h2 {
  margin: 12px 0 7px;
  font-size: 25px;
}
.auth-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.google-auth-button {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #fff;
  color: #26354c;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: 0.2s;
}
.google-auth-button:hover {
  border-color: #b9c4d5;
  box-shadow: 0 5px 16px rgba(35, 52, 82, 0.08);
  transform: translateY(-1px);
}
.google-auth-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from -45deg,
      #4285f4 0 25%,
      #34a853 0 50%,
      #fbbc05 0 75%,
      #ea4335 0
    );
  color: #fff;
  font: 800 13px/1 Arial, sans-serif;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: #9aa4b4;
  font-size: 10px;
}
.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #e8ecf2;
  content: "";
}
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: #44536a;
  font-size: 12px;
  font-weight: 650;
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  outline: none;
  color: #26354c;
  background: #fbfcfe;
  transition: 0.2s;
}
.auth-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.09);
}
.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 9px;
}
.auth-code-row button {
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.auth-code-row button:disabled {
  color: #8a96a8;
  background: #f1f3f7;
  cursor: wait;
}
.auth-code-message {
  min-height: 16px;
  color: #7b8798;
  font-size: 10px;
  font-weight: 500;
}
.auth-code-message.error {
  color: #bd3a4c;
}
.auth-submit {
  width: 100%;
  height: 45px;
  margin-top: 4px;
}
.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.auth-error {
  padding: 10px 12px;
  border: 1px solid #ffd5db;
  border-radius: 7px;
  background: #fff4f6;
  color: #bd3a4c;
  font-size: 11px;
  line-height: 1.5;
}
.auth-success {
  padding: 10px 12px;
  border: 1px solid #bfe9d9;
  border-radius: 7px;
  background: #effbf6;
  color: #12815b;
  font-size: 11px;
  line-height: 1.5;
}
.auth-forgot-link {
  justify-self: end;
  margin-top: -7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.auth-forgot-link:hover {
  text-decoration: underline;
}
.auth-switch {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}
.auth-compliance-notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 16px;
  padding: 10px 11px;
  border: 1px solid #f0dfbd;
  border-radius: 8px;
  background: #fffaf0;
  color: #7b6847;
}
.auth-compliance-notice > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f3dfb5;
  color: #805f1f;
  font-size: 11px;
  font-weight: 900;
}
.auth-compliance-notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}
.auth-compliance-notice strong {
  display: block;
  margin-bottom: 1px;
  color: #695223;
  font-size: 10px;
}
.auth-legal {
  margin: 13px 0 0 !important;
  color: #99a3b2 !important;
  text-align: center;
  font-size: 10px !important;
  line-height: 1.6;
}
.auth-legal a {
  color: #6b76a0;
}
.auth-home-link {
  display: block;
  margin-top: 15px;
  color: #8590a2;
  text-align: center;
  font-size: 10px;
}
.auth-home-link:hover {
  color: var(--primary);
}
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  --primary: #6d5dfc;
  --accent: #20c9e8;
  background: #f6f7fb;
  color: #6d7b90;
}
.boot-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #17223b;
  font-size: 25px;
}
.boot-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e2e6ef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.boot-screen p {
  margin: 0;
  font-size: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1600px) {
  .brand {
    width: 220px;
    padding: 0 20px;
    font-size: 22px;
  }
  .sidebar {
    width: 220px;
    padding: 16px 13px 34px;
  }
  .nav-title {
    padding: 10px 11px;
    font-size: 14px;
  }
  .nav-item {
    padding: 9px 12px 9px 40px;
    font-size: 13px;
  }
  .main {
    margin-left: 220px;
  }
  .content {
    padding: 14px;
  }
  .purchase-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
  }
  .static-location-market {
    padding: 13px;
  }
  .location-cascade {
    width: 100%;
    min-width: 0;
    grid-template-columns:
      140px
      minmax(135px, 0.7fr)
      minmax(165px, 0.82fr)
      minmax(320px, 1.65fr);
  }
  .cascade-column {
    min-height: 510px;
  }
  .cascade-list,
  .location-cascade .location-country-tabs,
  .location-cascade .location-city-grid {
    max-height: 510px;
  }
  .static-cart {
    max-height: calc(100vh - 94px);
    padding: 14px;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  .static-cart-list {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1.2fr;
  }
  .dashboard-business-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .dashboard-grid > .stack:last-child {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
  .welcome-actions {
    display: none;
  }
  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .purchase-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .order,
  .static-cart {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .static-cart-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
  }
  .static-cart-item + .static-cart-item {
    margin-top: 0;
  }
}
@media (max-width: 1100px) {
  .topbar {
    height: 58px;
  }
  .brand {
    width: 190px;
    height: 58px;
    padding: 0 16px;
    font-size: 20px;
  }
  .crumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    padding-right: 10px;
    gap: 7px;
  }
  .topbar-recharge {
    min-width: 58px;
    height: 30px;
    padding: 0 10px;
  }
  .top-actions .language,
  .top-actions .balance {
    display: none;
  }
  .sidebar {
    top: 58px;
    width: 76px;
    padding: 12px 8px;
  }
  .sidebar .nav-title {
    justify-content: center;
    padding: 11px 8px;
  }
  .sidebar .nav-title span:not(.nav-icon),
  .sidebar .nav-item,
  .sidebar .chev {
    display: none;
  }
  .main {
    margin-left: 76px;
    padding-top: 58px;
  }
  .dashboard-grid,
  .dynamic-summary,
  .purchase-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-business-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-wallet-column > .card {
    position: static;
    height: auto;
    min-height: 0;
  }
  .dashboard-grid > .stack:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .finance-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .order {
    position: static;
  }
  .static-cart-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-grid,
  .periods {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .section-row {
    grid-template-columns: 1fr;
  }
  .section-label {
    padding-top: 0;
  }
  .welcome-panel {
    padding: 22px;
  }
  .welcome-copy h1 {
    font-size: 20px;
  }
  .user-pill {
    display: none;
  }
  .account-menu > summary {
    gap: 5px;
    padding-left: 3px;
  }
  .account-menu-popover {
    width: 210px;
  }
  .static-location-search-row,
  .city-config-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .static-location-search-row .location-search {
    width: 100%;
    flex: 0 0 34px;
  }
  .purchase-global-options.compact-static-options {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .location-country-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .city-zone-row {
    grid-template-columns: minmax(140px, 1fr) minmax(145px, 0.9fr) 130px 72px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 22px;
  }
}
@media (max-width: 520px) {
  .brand {
    width: 160px;
  }
  .brand-mark {
    width: 19px;
    height: 19px;
  }
  .message-popover {
    position: fixed;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 74px);
  }
  .message-popover::before {
    display: none;
  }
  .content {
    padding: 10px;
  }
  .static-cart-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .location-city-grid {
    grid-template-columns: 1fr;
  }
  .location-country-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .location-level-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .city-zone-card-controls {
    grid-template-columns: 1fr;
  }
  .city-zone-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .city-zone-estimate {
    text-align: left;
  }
  .city-config-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid,
  .finance-kpis {
    grid-template-columns: 1fr;
  }
  .dashboard-business-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 15px;
  }
  .traffic-kpis {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .traffic-kpis > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 13px;
  }
  .quick-strip {
    grid-template-columns: 1fr;
  }
  .welcome-copy p {
    display: none;
  }
}

/* Account center */
.affiliate-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  margin-bottom: 16px;
  padding: 30px 34px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(119, 108, 255, 0.7), transparent 34%),
    linear-gradient(125deg, #17284a 0%, #253a78 55%, #5e4fe7 100%);
  box-shadow: 0 18px 45px rgba(35, 50, 111, 0.2);
}
.affiliate-hero::after {
  content: "IPIP";
  position: absolute;
  right: 20%;
  bottom: -38px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 124px;
  font-weight: 900;
  letter-spacing: -12px;
}
.affiliate-hero > * {
  position: relative;
  z-index: 1;
}
.affiliate-hero h1,
.account-head h1 {
  margin: 8px 0;
  font-size: 30px;
}
.affiliate-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.affiliate-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.affiliate-badges span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.affiliate-level {
  min-width: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.affiliate-level small,
.affiliate-level strong {
  display: block;
}
.affiliate-level strong {
  margin: 6px 0 14px;
  font-size: 18px;
}
.affiliate-level .status {
  background: rgba(69, 221, 163, 0.18);
  color: #8ef0c7;
}
.affiliate-kpis,
.finance-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.affiliate-kpis .kpi,
.finance-summary .kpi {
  min-height: 132px;
}
.affiliate-kpis .kpi small,
.finance-summary .kpi small {
  color: var(--muted);
}
.affiliate-link-card {
  margin-bottom: 16px;
}
.referral-code {
  min-width: 190px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--primary-soft);
}
.referral-code small,
.referral-code strong {
  display: block;
}
.referral-code small {
  margin-bottom: 4px;
  color: var(--muted);
}
.referral-code strong {
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
.copy-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--primary-soft);
}
.copy-field > span {
  min-width: 0;
  overflow: hidden;
  align-self: center;
  padding: 0 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.affiliate-notice {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(103, 91, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}
.affiliate-notice strong {
  flex: 0 0 auto;
  color: var(--primary);
}
.record-count {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 12px;
}
.finance-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 178px;
  margin-bottom: 16px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at 75% 20%, rgba(92, 125, 255, 0.12), transparent 38%),
    var(--card);
}
.finance-balance {
  margin: 9px 0 4px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.finance-hero p {
  margin: 0;
  color: var(--muted);
}
.finance-tabs {
  display: flex;
  gap: 8px;
  margin: -4px -4px 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.finance-tabs button {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.finance-tabs button span {
  margin-left: 5px;
  color: inherit;
  opacity: 0.7;
}
.finance-tabs button.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.recharge-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}
.recharge-form-card {
  padding: 22px;
}
.recharge-form {
  display: grid;
  gap: 13px;
}
.recharge-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.recharge-form textarea {
  min-height: 82px;
  resize: vertical;
}
.recharge-form > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.payment-channel-list {
  display: grid;
  align-content: start;
  gap: 12px;
}
.payment-channel-public {
  padding: 18px 20px;
}
.payment-channel-public > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-channel-public h3,
.payment-channel-public small {
  display: block;
  margin: 0;
}
.payment-channel-public h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}
.payment-channel-public small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}
.payment-method-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}
.payment-channel-public dl {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
}
.payment-channel-public dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.payment-channel-public dt {
  color: var(--muted);
  font-size: 10px;
}
.payment-channel-public dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  text-align: right;
  overflow-wrap: anywhere;
}
.payment-channel-public p {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}
.usdt-payment-card {
  display: grid;
  justify-items: center;
  padding: 20px 24px 22px;
}
.usdt-warning {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7dc;
  color: #6f5a24;
  font-size: 11px;
  line-height: 1.65;
}
.usdt-warning > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d99a13;
  color: #fff;
  font-weight: 900;
}
.usdt-warning p {
  margin: 0;
}
.usdt-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px;
}
.usdt-title > strong {
  color: var(--ink);
  font-size: 22px;
}
.usdt-title > b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7e9ee;
  color: #667085;
  font-size: 11px;
}
.usdt-token-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #26a17b;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}
.usdt-qr {
  width: 250px;
  max-width: 80%;
  aspect-ratio: 1;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}
.usdt-address {
  max-width: 540px;
  margin-top: 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: center;
}
.usdt-copy-button {
  margin-top: 13px;
}
.usdt-channel-meta {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
}
.usdt-instructions {
  width: 100%;
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f6f8fb;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}
.status.payment-pending {
  color: #b36c13;
  background: rgba(255, 159, 51, 0.11);
}
.status.payment-rejected,
.status.payment-cancelled {
  color: #b42318;
  background: rgba(244, 67, 54, 0.09);
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 26px 30px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.account-big-avatar {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #2ca7ff);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(77, 86, 219, 0.24);
}
.account-head h1 {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 22px;
}
.account-head p {
  margin: 0;
  color: var(--muted);
}
.security-score {
  padding: 9px 13px;
  border: 1px solid rgba(24, 173, 119, 0.25);
  border-radius: 999px;
  background: rgba(24, 173, 119, 0.08);
  color: #159367;
  font-size: 12px;
  font-weight: 700;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 16px;
}
.profile-section {
  min-height: 430px;
}
.profile-fields {
  margin: 18px 0 0;
}
.profile-fields > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.profile-fields dt {
  color: var(--muted);
}
.profile-fields dd {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}
.profile-fields .verified {
  margin-left: 9px;
}
.password-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.password-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.password-form .btn {
  justify-self: start;
  margin-top: 4px;
}
.form-success {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(24, 173, 119, 0.1);
  color: #12815b;
  font-size: 13px;
}

.marketing-offer-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.recharge-offers-section {
  margin: 16px 0;
  padding: 18px 20px 6px;
  border: 1px solid rgba(92, 82, 235, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}
.recharge-offers-section .marketing-offer-strip {
  margin-top: 14px;
  margin-bottom: 6px;
}
.marketing-offer-widget {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: 18px;
  width: 148px;
  transform: translateY(-50%);
  border: 1px solid rgba(101, 88, 242, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 8%, rgba(105, 91, 245, 0.2), transparent 38%),
    rgba(250, 250, 255, 0.97);
  box-shadow: 0 16px 38px rgba(48, 56, 113, 0.18);
}
.marketing-widget-main {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 5px;
  padding: 16px 10px 13px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.marketing-widget-mark {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #6558f2, #8a6cf5);
  box-shadow: 0 8px 18px rgba(101, 88, 242, 0.24);
  font-size: 17px;
  font-weight: 900;
}
.marketing-widget-main strong {
  font-size: 13px;
}
.marketing-widget-main small {
  color: var(--muted);
  font-size: 10px;
}
.marketing-widget-main b {
  margin-top: 3px;
  color: var(--primary);
  font-size: 10px;
}
.marketing-widget-close {
  position: absolute;
  z-index: 2;
  top: -9px;
  right: -8px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(101, 88, 242, 0.2);
  border-radius: 50%;
  color: #667085;
  background: #fff;
  box-shadow: 0 5px 13px rgba(48, 56, 113, 0.15);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.marketing-widget-close:hover {
  color: #fff;
  background: var(--primary);
}
.marketing-offer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 13px 16px;
  border: 1px solid rgba(92, 82, 235, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(circle at 94% 10%, rgba(105, 91, 245, 0.14), transparent 32%),
    linear-gradient(120deg, #fbfaff, #f2f3ff);
  box-shadow: 0 8px 22px rgba(48, 56, 113, 0.07);
}
.marketing-offer.targeted {
  border-color: rgba(238, 164, 32, 0.32);
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 192, 62, 0.2), transparent 32%),
    linear-gradient(120deg, #fffdf6, #fff7df);
}
.marketing-ticket-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #6558f2, #8a6cf5);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(101, 88, 242, 0.24);
}
.marketing-offer.targeted .marketing-ticket-mark {
  background: linear-gradient(135deg, #f0a21c, #ffca4b);
  box-shadow: 0 8px 18px rgba(240, 162, 28, 0.22);
}
.marketing-offer small,
.marketing-offer strong,
.marketing-offer p {
  display: block;
  margin: 0;
}
.marketing-offer > div > small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.marketing-offer.targeted > div > small {
  color: #a66b08;
}
.marketing-offer strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}
.marketing-offer p {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketing-offer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.marketing-offer-meta code,
.global-offer-chip {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(101, 88, 242, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.marketing-offer.targeted .marketing-offer-meta code {
  background: rgba(240, 162, 28, 0.12);
  color: #9c6509;
}
.marketing-offer-meta small {
  color: var(--muted) !important;
  font-size: 9px !important;
}
.marketing-more {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 1100px) {
  .recharge-layout {
    grid-template-columns: 1fr;
  }
  .proxy-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proxy-filter-bar input {
    grid-column: 1 / -1;
  }
  .proxy-management-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .affiliate-kpis,
  .finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .profile-section {
    min-height: 0;
  }
}
@media (max-width: 720px) {
  .payment-channel-public dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .payment-channel-public dd {
    text-align: left;
  }
  .proxy-filter-bar {
    grid-template-columns: 1fr;
  }
  .proxy-filter-bar input {
    grid-column: auto;
  }
  .proxy-management-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proxy-management-button,
  .proxy-action-menu > summary {
    width: 100%;
  }
  .pager {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .marketing-offer {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .marketing-offer-meta {
    grid-column: 2;
    justify-items: start;
  }
  .marketing-offer-widget {
    top: auto;
    right: 12px;
    bottom: 16px;
    width: 128px;
    transform: none;
  }
  .marketing-widget-main {
    padding: 12px 8px 10px;
  }
  .marketing-widget-mark {
    width: 34px;
    height: 34px;
  }
  .affiliate-hero,
  .finance-hero,
  .account-head {
    align-items: stretch;
    flex-direction: column;
  }
  .affiliate-level {
    min-width: 0;
  }
  .affiliate-kpis,
  .finance-summary {
    grid-template-columns: 1fr;
  }
  .copy-field {
    grid-template-columns: 1fr;
  }
  .copy-field > span {
    padding: 8px;
  }
  .profile-fields > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
