@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --sidebar: 240px;
  --bg: #F9FAFB;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --accent: #4F46E5;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: var(--radius);
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

/* Base Data Font Typography */
.mono, .data-font, .amount, .stat-value, .price-tag, .balance-display {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* Layout container */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

/* Sidebar (Left) */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 24px 16px;
  border-radius: var(--radius-panel);
  background: #0A0E1A; /* Deep Sea Blue */
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 30;
  display: flex;
  flex-direction: column;
  color: #D1D5DB;
  max-height: 100vh;
}

.sidebar .sidebar-nav-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
}

/* Custom Scrollbar for Sidebar Navigation */
.sidebar .sidebar-nav-body::-webkit-scrollbar {
  width: 4px;
}

.sidebar .sidebar-nav-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar .sidebar-nav-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.sidebar .sidebar-nav-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--accent);
  display: grid;
  place-items: center;
}

.sidebar .brand-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
}

.sidebar .brand-name {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.sidebar .brand-sub {
  font-size: 10px;
  color: #9CA3AF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar .nav-section {
  margin: 20px 8px 8px;
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar .nav-btn {
  border: 0;
  background: transparent;
  color: #9CA3AF;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.sidebar .nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Primary Top-level Nav Active (e.g. My Proxies, Orders, Wallet, Help Center) */
.sidebar .nav-btn.active:not(.buy-parent):not(.buy-item) {
  color: #ffffff;
  background: rgba(142, 55, 215, 0.07);
  border-left: 3px solid var(--accent);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Parent "购买代理" styling */
.sidebar .nav-btn.buy-parent {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 500;
  border-left: none !important;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .nav-btn.buy-parent:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Expanded state for parent "购买代理" */
.sidebar .nav-btn.buy-parent.expanded {
  color: #F3F4F6;
  font-weight: 600;
}

.sidebar .nav-btn.buy-parent .chevron {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar .nav-btn.buy-parent.expanded .chevron {
  transform: rotate(180deg);
  color: #F3F4F6;
}

/* Sub-menu Group Container (Indented Group) */
.sidebar .nav.sub-menu.buy-submenu {
  margin-left: 18px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.2s ease,
              transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar .nav.sub-menu.buy-submenu.expanded,
.sidebar .nav.sub-menu.buy-submenu.open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sub-menu Items (.buy-item) */
.sidebar .nav-btn.buy-item {
  min-height: 38px;
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 400;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  width: 100%;
}

.sidebar .nav-btn.buy-item .nav-label::before {
  content: none !important;
  display: none !important;
}

.sidebar .nav-btn.buy-item:hover {
  color: #E5E7EB;
  background: rgba(255, 255, 255, 0.04);
}

/* Active Sub-product Item strictly controlled by is-product-active */
.sidebar .nav-btn.buy-item.is-product-active {
  color: #8E37D7 !important;
  font-weight: 600 !important;
  border-left: 2px solid #8E37D7 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  background: rgba(142, 55, 215, 0.12) !important;
}

.sidebar .nav-btn.buy-item.is-product-active .nav-label {
  color: #8E37D7 !important;
  font-weight: 600 !important;
}

.sidebar .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sidebar .sidebar-bottom {
  display: none !important;
}

.sidebar .support-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 16px;
}

.sidebar .support-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #ffffff;
}

.sidebar .support-card p {
  color: #9CA3AF;
  font-size: 11px;
  margin: 0 0 12px;
  line-height: 1.4;
}

.sidebar .mini-btn {
  display: block;
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  line-height: 30px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.sidebar .mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Main content body */
.main {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Header Topbar */
.topbar {
  height: 64px; /* Fixed 64px */
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  place-items: center;
  border-radius: var(--radius);
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-caption {
  color: var(--muted);
  font-size: 12px;
  display: none; /* Keep clean as per instructions */
}

/* Header Right Actions */
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-balance-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.balance-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.language-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.language-btn:hover {
  background: var(--panel-3);
}

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

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%; /* Allow circle user avatar */
  background: #E5E7EB;
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--line-strong);
}

.profile-meta {
  display: flex;
  flex-direction: column;
}

.profile-meta strong {
  font-size: 12px;
  line-height: 1.2;
  color: var(--text);
}

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

/* Main Content Area */
.content {
  padding: 32px;
  width: 100%;
  max-width: 1200px; /* Centered 1200px container */
  margin: 0 auto;
}

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

.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}

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

/* Standard Buttons styling */


.btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-3);
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border: none;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--panel-3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-success {
  background: rgba(14, 138, 22, 0.08);
  color: var(--success);
  border-color: rgba(14, 138, 22, 0.2);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* General Grids & Cards */
.grid {
  display: grid;
  gap: 24px;
}



.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

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

.card-header h3 {
  font-size: 15px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.card-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.card-body {
  padding: 24px;
}

/* Section 1: Overview Panel Row */
.overview-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  margin-bottom: 32px;
}

.overview-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.overview-col:not(:last-child) {
  border-right: 1px solid var(--line);
}

.overview-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overview-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.overview-val.warning {
  color: var(--warning);
}

.overview-col .btn {
  width: 100%;
}

/* Section 2: Resource Deploy Title & Sub */
.section-title-wrap {
  margin-bottom: 16px;
  margin-top: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.product-grid {
  grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
  margin-bottom: 32px;
}

/* Universal Product Card Component */
.universal-product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: all 0.15s ease;
}

.universal-product-card:hover {
  border-color: #0F62FE;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.universal-product-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(15, 98, 254, 0.02);
}

.upc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.upc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(15, 98, 254, 0.06);
  color: var(--accent);
  display: grid;
  place-items: center;
}

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

.upc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.upc-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px 0;
  min-height: 18px;
}

.upc-price-tag {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.upc-price-tag strong {
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
  margin-left: 4px;
}

.upc-divider {
  height: 1px;
  background: #F3F4F6;
  margin-bottom: 16px;
}

.upc-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.upc-feature-item {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upc-feature-item svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.upc-feature-item strong {
  font-weight: 700;
}

.upc-action-btn {
  width: 100%;
}

/* Buy Config Page product-grid override to match standard layout */
.product-grid.buy-product-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Section 3: Use Case Recommendation Panel */
.usecase-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.usecase-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usecase-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(15, 98, 254, 0.06);
  padding: 4px 8px;
  border-radius: var(--radius);
}

.usecase-arrow {
  font-size: 12px;
  color: var(--muted);
}

.usecase-target {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Section 4: Network Capability Statement */
.capability-footer {
  text-align: center;
  padding: 24px 0 8px 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.capability-footer strong {
  color: var(--text);
  font-weight: 700;
}

/* Sub-views layout tables & form elements style overrides */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13.5px;
}

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

.data-table tbody tr:hover {
  background: var(--bg);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status.success {
  color: var(--success);
  background: rgba(14, 138, 22, 0.06);
  border-color: rgba(14, 138, 22, 0.15);
}

.status.warning {
  color: var(--warning);
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
}

.status.danger, .status.failed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}

.status.info, .status.pending {
  color: var(--info);
  background: rgba(15, 98, 254, 0.06);
  border-color: rgba(15, 98, 254, 0.15);
}

.copy-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  padding: 0;
  vertical-align: middle;
  margin-left: 4px;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--panel-3);
}

.copy-btn svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.expiry {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 12px;
  outline: none;
  transition: all 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.08);
}

.textarea {
  padding: 10px;
  min-height: 90px;
  resize: vertical;
}

.input-group {
  display: flex;
}

.input-group .input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.input-addon {
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel-3);
  padding: 0 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: flex;
  padding: 2px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segment {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 32px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.segment.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 0 4px;
}

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

.quote-total strong {
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
}

.note {
  padding: 12px;
  border: 1px solid rgba(15, 98, 254, 0.12);
  background: rgba(15, 98, 254, 0.03);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.4;
}

/* Stepper progress */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.step.active {
  color: var(--text);
}

.step.active .step-num {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
}

.step-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 12px;
  max-width: 60px;
}

/* Filters */
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.search-box .input {
  padding-left: 34px;
}

.filter-chip {
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.filter-chip.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.filter-chip:hover:not(.active) {
  background: var(--panel-3);
  border-color: var(--line-strong);
}

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

.flag {
  font-size: 16px;
  vertical-align: middle;
}

.progress {
  height: 6px;
  background: var(--panel-3);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--accent);
}

.bulk-bar {
  padding: 10px 16px;
  background: rgba(15, 98, 254, 0.03);
  border: 1px solid rgba(15, 98, 254, 0.12);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bulk-bar strong {
  font-size: 12px;
  color: var(--muted);
}

/* Wallet and Topup Options */
.wallet-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.balance-card {
  padding: 24px;
  background: #111827; /* Dark Industrial theme matching sidebar */
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: #ffffff;
}

.balance-card .eyebrow {
  font-size: 11px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.balance-card .amount {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 20px;
}

.balance-row {
  display: flex;
  gap: 32px;
}

.balance-row span {
  display: block;
  font-size: 11px;
  color: #9CA3AF;
}

.balance-row strong {
  font-size: 13.5px;
  color: #ffffff;
}

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

.topup-option {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius);
  height: 38px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}

.topup-option:hover, .topup-option.active {
  border-color: var(--accent);
  background: rgba(15, 98, 254, 0.05);
}

.api-key {
  display: flex;
  gap: 8px;
}

.code {
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  overflow: auto;
  color: #D1D5DB;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre;
}

.code .key { color: #818CF8; }
.code .str { color: #34D399; }
.code .num { color: #60A5FA; }

.whitelist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.whitelist-item:last-child {
  border-bottom: 0;
}

/* Alert Notification Panel */
.alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.03);
  color: var(--warning);
  font-size: 12px;
  line-height: 1.4;
}

.alert svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--panel-3);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.empty-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel-3);
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

.modal-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .2s ease;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.admin-pill {
  font-size: 10px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.04);
  color: var(--warning);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-weight: 600;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 10px;
  align-items: center;
}

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

.metric-row strong {
  text-align: right;
  font-size: 13px;
}

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

.inventory-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}

.inventory-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inventory-card .value {
  font-size: 22px;
  font-weight: 700;
}

.inventory-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}

.edit-price {
  width: 80px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0 8px;
}

.switcher {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  border: 0;
  background: var(--line-strong);
  position: relative;
}

.switcher:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: all 0.15s ease;
}

.switcher.on {
  background: var(--accent);
}

.switcher.on:after {
  left: 21px;
}

.mobile-overlay {
  display: none;
}

@media(max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid, .buy-grid {
    grid-template-columns: 1fr;
  }
  .quote-card {
    position: static;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 820px) {
  :root {
    --sidebar: 240px;
  }
  .app {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    grid-column: auto;
  }
  .menu-toggle {
    display: grid;
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 25;
  }
  .mobile-overlay.show {
    display: block;
  }
  .content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .profile-info {
    display: none;
  }
  .wallet-hero {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}

@media(max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 20px;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .card-header, .card-body {
    padding: 16px;
  }
  .step-line {
    max-width: 30px;
  }
  .step span:last-child {
    display: none;
  }
  .overview-panel {
    grid-template-columns: 1fr;
  }
  .overview-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .usecase-panel {
    grid-template-columns: 1fr;
  }
}

/* Hide spin buttons in quantity inputs */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spin {
  -moz-appearance: textfield;
}

/* Custom Searchable Dropdown */
.custom-select-container {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius);
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.custom-select-trigger:hover {
  border-color: var(--text);
}
.custom-select-container.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.08);
}
.chevron-icon {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.custom-select-container.open .chevron-icon {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dropdown-search-wrap {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.dropdown-search-wrap .search-icon {
  color: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}
.dropdown-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  outline: none;
  color: var(--text);
}
.dropdown-list {
  overflow-y: auto;
  flex: 1;
}
.dropdown-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.1s ease;
  color: var(--text);
}
.dropdown-item:hover {
  background: var(--panel-3);
}
.dropdown-item.selected {
  background: rgba(15, 98, 254, 0.05);
  color: var(--accent);
  font-weight: 600;
}
.dropdown-item .code {
  color: var(--muted);
  font-size: 12px;
}

/* Quantity Quick Selection Pills */
.qty-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  background: #F3F4F6;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.15s ease;
}
.qty-pill:hover {
  background: #E5E7EB;
  color: var(--text);
}
.qty-pill.active {
  border: 1px solid #0F62FE;
  color: #0F62FE;
  background: #EFF6FF;
}

/* Duration Segmented Control */
.duration-segmented-control {
  display: flex;
  gap: 8px;
  width: 100%;
}
.duration-segment {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--muted);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.duration-segment:hover {
  background: var(--panel-3);
  border-color: var(--text);
  color: var(--text);
}
.duration-segment.active {
  border: 2px solid #0F62FE;
  color: #0F62FE;
  background: #EFF6FF;
  font-weight: 700;
}

@media (min-width: 1181px) {
  .buy-grid {
    display: grid !important;
    grid-template-columns: 65fr 35fr !important;
    gap: 24px !important;
    align-items: start !important;
  }
  .quote-card {
    position: sticky !important;
    top: 88px !important;
    align-self: start !important;
  }
}

.buy-grid {
  align-items: start;
}
.quote-card {
  align-self: start;
}

/* Stats Grid Overview Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg {
  width: 18px;
  height: 18px;
  fill: none !important;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.trend {
  font-size: 12px;
  font-weight: 500;
}
.trend.up {
  color: var(--success);
}
.trend.warn {
  color: var(--warning);
}

/* Buy Workbench Styles */
.product-selector-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}
.product-selector-pill:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.product-selector-pill.active {
  border-color: var(--accent);
  background: #EFF6FF !important;
  box-shadow: 0 0 0 1px var(--accent);
}
.duration-segment {
  transition: all 0.15s ease;
}
.duration-segment:hover:not(.active) {
  background: var(--panel-3) !important;
  color: var(--text) !important;
}
.segmented .segment {
  transition: all 0.15s ease;
}
.segmented .segment:hover:not(.active) {
  background: var(--panel-3) !important;
}


/* ==================== Buy Proxy High‑Fidelity UI ==================== */
/* Scope all rules under .buy-proxy to avoid affecting other pages */

/* 1. Page container – centered, max‑width 1280–1320px */
.buy-proxy {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px; /* horizontal padding for consistent side whitespace */
  background: #fff;
}

/* 2. Top Product Selector – four items evenly distributed */
.buy-proxy .product-selector {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* icons sit above text */
  border-bottom: 1px solid #E5E7EB; /* light gray baseline */
  padding-bottom: 8px;
  margin-bottom: 32px; /* breathing space to intro section */
}
.buy-proxy .product-selector .product-item {
  flex: 1;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.buy-proxy .product-selector .product-item.is-product-active {
  color: #8E37D7; /* purple‑blue text */
}
/* Icon above each item – assumes an <svg> inside .icon */
.buy-proxy .product-selector .product-item .icon {
  display: block;
  margin: 0 auto 4px;
  width: 24px;
  height: 24px;
  stroke: var(--muted);
}
.buy-proxy .product-selector .product-item.is-product-active .icon {
  stroke: #8E37D7;
}
/* Active underline – gradient line beneath the active item */
.buy-proxy .product-selector .product-item.is-product-active::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #8E37D7, #3B82F6);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(142,55,215,0.25);
}

/* 3. Product Intro */
.buy-proxy .product-intro {
  margin-bottom: 40px;
  text-align: left;
}
.buy-proxy .product-intro h1 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 31px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}
.buy-proxy .product-intro p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* 4. Capability indicators – three columns */
.buy-proxy .capabilities {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.buy-proxy .capabilities .cap-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
}
.buy-proxy .capabilities .cap-item .icon {
  width: 28px;
  height: 28px;
  stroke: #8E37D7; /* purple‑blue */
  flex-shrink: 0;
}
.buy-proxy .capabilities .cap-item .text {
  font-size: 14px;
  line-height: 1.4;
}
.buy-proxy .capabilities .cap-item .text .title {
  font-weight: 600;
  margin-bottom: 4px;
}
/* Light vertical divider */
.buy-proxy .capabilities .cap-item + .cap-item {
  border-left: 1px solid #E5E7EB;
  padding-left: 24px;
}

/* 5. Main two‑column area – Configuration (68%) & Order Summary (32%) */
.buy-proxy .main-area {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}
.buy-proxy .main-area .config-panel {
  flex: 0 0 68%;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
}
.buy-proxy .main-area .order-summary {
  flex: 0 0 32%;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
}

/* 6. Billing mode selector (segment control) */
.buy-proxy .billing-mode {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.buy-proxy .billing-mode .segment {
  flex: 1;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.buy-proxy .billing-mode .segment.is-active {
  border-color: #8E37D7;
  background: rgba(142,55,215,0.05);
  color: #8E37D7;
}

/* 7. Form fields – input, select, custom dropdowns */
.buy-proxy .form-field {
  margin-bottom: 20px;
}
.buy-proxy .form-field label {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.buy-proxy .form-field input,
.buy-proxy .form-field select,
.buy-proxy .form-field .custom-select-trigger {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.buy-proxy .form-field input:focus,
.buy-proxy .form-field select:focus,
.buy-proxy .form-field .custom-select-trigger.active {
  border-color: #8E37D7;
  background: rgba(142,55,215,0.05);
  color: #8E37D7;
}
/* Helper text under fields */
.buy-proxy .form-field .helper {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* 8. Order Summary content */
.buy-proxy .order-summary .title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}
.buy-proxy .order-summary .field {
  display: flex;
  justify-content: space-between;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.buy-proxy .order-summary .field .value {
  color: var(--text);
}
/* Total line */
.buy-proxy .order-summary .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #E5E7EB;
  padding-top: 12px;
  margin-top: 16px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.buy-proxy .order-summary .total .amount {
  color: #8E37D7;
}
.buy-proxy .order-summary .price-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* 9. CTA button */
.buy-proxy .cta-button {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.buy-proxy .cta-button:hover {
  box-shadow: 0 0 8px rgba(142,55,215,0.4);
}

/* 10. CTA supporting note */
.buy-proxy .cta-note {
  text-align: center;
  margin-top: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.buy-proxy .cta-note .icon {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
}

/* 11. Bottom service info (four items) */
.buy-proxy .service-info {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.buy-proxy .service-info .item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.buy-proxy .service-info .item .icon {
  width: 20px;
  height: 20px;
  stroke: #8E37D7;
}

/* 12. Hide prototype notice – already scoped earlier but reaffirm */
.buy-proxy .sidebar-bottom .support-card strong[data-zh="这是可点击原型"],
.buy-proxy .sidebar-bottom .support-card a[data-zh="管理端预览"] {
  display: none;
}

/* ==========================================================================
   BUY PROXY REDESIGN - 1:1 REFERENCE REPRODUCTION STYLES
   ========================================================================== */

/* Page content area padding tuning */
.content {
  padding: 24px 36px;
}

/* 1. Top Horizontal Product Nav Tabs */
.buy-product-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 36px;
  padding: 4px 0;
  width: 100%;
}

.product-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  position: relative;
  cursor: pointer;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
  min-width: 0;
}

.product-tab-item:hover {
  color: #374151;
}

.product-tab-item.active {
  color: #4F46E5;
  font-weight: 600;
}

.product-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: #4F46E5;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.product-tab-item .tab-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.product-tab-item .tab-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.product-tab-item .tab-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* 2. Product Intro Title & Metrics Header */
.product-intro-header {
  margin-bottom: 32px;
}

.product-main-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.product-main-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.capability-metrics-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  color: #4F46E5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
}

.metric-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: #4F46E5;
}

.metric-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.metric-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.3;
}

.metric-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.3;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: #E5E7EB;
  flex-shrink: 0;
}

/* 3. Buy Workspace 2-Column Grid Layout (68% Configuration, 32% Order Summary) */
.buy-main-workspace-grid {
  display: grid;
  grid-template-columns: 68fr 32fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}

@media (max-width: 960px) {
  .buy-main-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* 4. Configuration Panel Card (Left - 3-Column Stable Layout) */
.buy-config-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.config-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}

/* Column 1: Label */
.config-label {
  width: 110px;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Column 2: Main Controls */
.config-control-main {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Column 3: Helper Text */
.config-hint-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Segmented Control Pills */
.segmented-control-group {
  display: inline-flex;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.segment-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4B5563;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.segment-btn:hover {
  color: #111827;
}

.segment-btn.active {
  background: #ffffff;
  color: #4F46E5;
  font-weight: 600;
  border-color: #C7D2FE;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

.segment-btn .check-icon {
  color: #4F46E5;
  stroke-width: 3;
}

/* Select & Badge */
.select-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.custom-form-select {
  height: 38px;
  padding: 0 28px 0 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
  flex: 1;
}

.custom-form-select:focus {
  border-color: #4F46E5;
}

.custom-select-container {
  width: 100%;
}

.custom-select-trigger {
  height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.hot-badge {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9333EA;
  background: #F3E8FF;
  border: 1px solid #E9D5FF;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Number Stepper */
.number-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  height: 36px;
  overflow: hidden;
  background: #ffffff;
}

.stepper-btn {
  width: 32px;
  height: 100%;
  border: 0;
  background: #F9FAFB;
  color: #4B5563;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.stepper-btn:hover {
  background: #F3F4F6;
  color: #111827;
}

.stepper-input {
  width: 64px;
  height: 100%;
  border: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background: transparent;
  outline: none;
}

.custom-form-input {
  height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease;
}

.custom-form-input:focus {
  border-color: #4F46E5;
}

/* 5. Order Summary Card (Right - Densified for natural equal height) */
.order-summary-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.summary-card-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

.summary-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.summary-label {
  color: #6B7280;
}

.summary-val {
  font-weight: 600;
  color: #111827;
}

.summary-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 16px 0;
}

.summary-total-block {
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.total-label {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.total-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #4F46E5;
}

.unit-price-sub {
  text-align: right;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 4px;
}

.btn-buy-cta {
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.4), 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-buy-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -3px rgba(15, 23, 42, 0.5), 0 6px 16px rgba(79, 70, 229, 0.4);
}

.security-guarantee-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
  margin-top: 14px;
}

.security-guarantee-note svg {
  stroke: #4F46E5;
}

/* 6. Bottom 4 Feature Service Highlights */
.buy-bottom-highlights {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  gap: 16px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hl-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #4F46E5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hl-text {
  display: flex;
  flex-direction: column;
}

.hl-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
}

.hl-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  color: #9CA3AF;
}

/* ==========================================================================
   Home / 首页 Ethereal Tech Design System (Reference Image Precision Match)
   ========================================================================== */

.home-page-container {
  padding: 8px 4px 40px 4px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #111827;
}

/* 1. Welcome Area */
.home-welcome-area {
  margin-bottom: 28px;
}

.home-welcome-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.home-sparkle {
  font-size: 22px;
  display: inline-block;
}

.home-welcome-desc {
  font-size: 14px;
  color: #4B5563;
  margin: 0;
}

/* 2. Account Overview */
.home-account-overview {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-account-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 12px;
}

.home-account-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(142, 55, 215, 0.06);
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-account-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-account-label {
  font-size: 13px;
  color: #6B7280;
}

.home-account-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.home-account-divider {
  width: 1px;
  height: 36px;
  background: #E5E7EB;
  margin: 0 8px;
}

/* 3. Section Headers */
.home-section-header {
  margin-bottom: 16px;
}

.home-section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.home-section-sub {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* 4. Proxy Products Grid */
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.home-product-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.home-product-card:hover {
  border-color: rgba(142, 55, 215, 0.4);
  box-shadow: 0 4px 20px rgba(142, 55, 215, 0.06);
}

.home-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #8E37D7;
  opacity: 0.85;
}

.home-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(142, 55, 215, 0.08);
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-card-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.home-card-price-wrap {
  text-align: right;
}

.home-price-label {
  font-size: 12px;
  color: #9CA3AF;
  display: block;
}

.home-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.home-card-desc {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.home-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px dashed #F3F4F6;
  border-bottom: 1px dashed #F3F4F6;
  margin-bottom: 16px;
}

.home-feature-tag {
  font-size: 12px;
  color: #4B5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-check {
  color: #8E37D7;
  font-weight: 700;
}

.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-card-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #8E37D7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  cursor: pointer;
}

.home-product-card:hover .home-card-link {
  color: #667EEA;
}

.home-product-card:hover .home-arrow {
  transform: translateX(3px);
}

.home-arrow {
  transition: transform 0.15s ease;
  font-weight: 700;
}

/* 5. Use Case Recommendation Bar */
.home-usecase-bar {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-usecase-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.home-usecase-item:hover {
  opacity: 0.85;
}

.home-usecase-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(142, 55, 215, 0.06);
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-usecase-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-usecase-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.home-usecase-recommend {
  font-size: 12px;
  color: #6B7280;
}

.home-usecase-divider {
  width: 1px;
  height: 32px;
  background: #E5E7EB;
  margin: 0 8px;
}

/* 6. Network Capability Strip */
.home-network-bar {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.home-network-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 12px;
}

.home-network-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(142, 55, 215, 0.06);
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-network-meta {
  display: flex;
  flex-direction: column;
}

.home-network-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.home-network-label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

.home-network-desc {
  font-size: 12px;
  color: #6B7280;
  margin-top: 1px;
}

.home-network-divider {
  width: 1px;
  height: 40px;
  background: #E5E7EB;
  margin: 0 12px;
}

@media (max-width: 900px) {
  .home-product-grid {
    grid-template-columns: 1fr;
  }
  .home-account-overview,
  .home-usecase-bar,
  .home-network-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .home-account-divider,
  .home-usecase-divider,
  .home-network-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
}

/* Page Header Wrap for Ethereal Tech Pages (e.g. My Orders) */
.page-header-wrap {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header-wrap .page-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.page-header-wrap .page-desc {
  font-size: 14px;
  color: #4B5563;
  margin: 0;
}

/* ==========================================================================
   Orders Page (My Orders / 我的订单) Ethereal Tech Specific Design Refinements
   ========================================================================== */

/* 1. Remove large left margin gap and align smoothly with sidebar */
body[data-app="user"] .main .content:has(.orders-page-container) {
  max-width: 100%;
  margin: 0;
  padding: 24px 32px 32px 32px;
}

.orders-page-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1140px;
}

/* 2. Page Header */
.orders-page-header {
  margin-bottom: 2px;
}

.orders-page-header .orders-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.orders-page-header .orders-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* 3. Filter Bar: Tightened height, gap, padding and removed heavy shadows */
.orders-filter-bar {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
}

.orders-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.orders-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.orders-search-input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 36px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  color: #111827;
  outline: none;
  transition: all 0.15s ease;
}

.orders-search-input:focus {
  background: #ffffff;
  border-color: #6366F1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.orders-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-custom-select {
  height: 36px;
  padding: 0 32px 0 12px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  font-weight: 400;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.15s ease;
  min-width: 125px;
}

.orders-custom-select:hover {
  border-color: #D1D5DB;
}

.orders-custom-select:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.orders-filter-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  color: #6366F1;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.orders-filter-btn:hover {
  background: #F5F3FF;
  border-color: #C7D2FE;
  color: #4F46E5;
}

/* 4. Table Card & Rows: Compact row height, lighter borders and fonts */
.orders-table-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.orders-table th {
  padding: 10px 16px;
  background: #FAFAFA;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}

.orders-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.orders-table th.sortable:hover {
  color: #111827;
}

.orders-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  color: #111827;
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background: #F9FAFB;
}

.orders-id-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #111827;
}

.orders-copy-btn {
  border: none;
  background: transparent;
  padding: 3px;
  color: #9CA3AF;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.orders-copy-btn:hover {
  color: #6366F1;
  background: #EEF2FF;
}

.orders-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Lighter product icon box background */
.orders-product-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  color: #6366F1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.orders-product-icon-box svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.orders-product-name {
  font-weight: 500;
  color: #1F2937;
  font-size: 13px;
}

.orders-specs-primary {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: #1F2937;
  font-size: 13px;
}

/* Lighter second line spec info */
.orders-specs-sub {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 400;
  margin-top: 2px;
}

.orders-amount-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

/* Soft, light status pills */
.orders-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.orders-status-pill.completed {
  background: #F0FDF4;
  color: #166534;
}

.orders-status-pill.completed .status-dot {
  background: #22C55E;
}

.orders-status-pill.processing {
  background: #EFF6FF;
  color: #1D4ED8;
}

.orders-status-pill.processing .status-dot {
  background: #3B82F6;
}

.orders-status-pill.cancelled {
  background: #FEF2F2;
  color: #991B1B;
}

.orders-status-pill.cancelled .status-dot {
  background: #EF4444;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.orders-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-detail-link {
  color: #6366F1;
  font-weight: 500;
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.orders-detail-link:hover {
  color: #4F46E5;
  text-decoration: underline;
}

.orders-more-btn {
  border: none;
  background: transparent;
  color: #9CA3AF;
  padding: 3px;
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.orders-more-btn:hover {
  color: #374151;
  background: #F3F4F6;
}

.orders-pagination-bar {
  padding: 10px 16px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.orders-pagination-info {
  font-size: 12px;
  color: #6B7280;
}

.orders-pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 5px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-weight: 400;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(.active):not(:disabled) {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.page-btn.active {
  border-color: #6366F1;
  background: #F5F3FF;
  color: #6366F1;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.orders-per-page-select {
  height: 28px;
  padding: 0 24px 0 8px;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #ffffff;
  font-size: 12px;
  color: #374151;
  outline: none;
  cursor: pointer;
}

.orders-empty-state {
  padding: 36px 16px;
  text-align: center;
  color: #6B7280;
}

.orders-empty-state svg {
  width: 40px;
  height: 40px;
  color: #D1D5DB;
  margin-bottom: 8px;
}

.orders-empty-state p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 768px) {
  .orders-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-search-wrap {
    max-width: 100%;
  }
  .orders-select-group {
    width: 100%;
  }
  .orders-custom-select {
    flex: 1;
  }
}

/* ==========================================================================
   Order Detail Page (订单详情) Ethereal Tech Specific Design
   ========================================================================== */

body[data-app="user"] .main .content:has(.order-detail-page-container) {
  max-width: 100%;
  margin: 0;
  padding: 24px 32px 40px 32px;
}

.order-detail-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
}

/* Back Link & Header */
.order-detail-header-wrap {
  margin-bottom: 4px;
}

.back-to-orders-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #6366F1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.back-to-orders-btn:hover {
  color: #4F46E5;
  text-decoration: underline;
}

.order-detail-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.order-detail-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* 1. Top Order Summary Banner Card */
.order-summary-banner-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.banner-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.banner-id-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-id-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.banner-copy-btn {
  border: none;
  background: transparent;
  padding: 3px;
  color: #9CA3AF;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.banner-copy-btn:hover {
  color: #6366F1;
  background: #EEF2FF;
}

.banner-time-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #374151;
}

.banner-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

/* 2. Grid Layout for Specs & Payment Cards */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.order-spec-card,
.order-payment-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
}

.detail-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
}

.detail-kv-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kv-label-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kv-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F5F3FF;
  color: #6366F1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.kv-icon-box svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

.kv-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.kv-val {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.kv-val-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.kv-val-country img {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

/* Footer Copyright */
.order-detail-footer {
  text-align: center;
  padding: 24px 0 12px 0;
  font-size: 12px;
  color: #9CA3AF;
}

@media (max-width: 900px) {
  .order-summary-banner-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Wallet & Billing Page (余额与账单) Ethereal Tech Specific Design
   ========================================================================== */

body[data-app="user"] .main .content:has(.wallet-page-container) {
  max-width: 100%;
  margin: 0;
  padding: 24px 32px 40px 32px;
}

.wallet-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
}

/* Page Header */
.wallet-page-header {
  margin-bottom: 4px;
}

.wallet-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.wallet-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* Top Hero Grid */
.wallet-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Left Dark Balance Card */
.wallet-dark-card {
  background: linear-gradient(135deg, #0B0F19 0%, #111827 50%, #1E1B4B 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.wallet-dark-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}

.dark-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark-card-label {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
}

.dark-card-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.dark-card-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dark-col-label {
  font-size: 12px;
  color: #94A3B8;
}

.dark-col-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Right Quick Top-up Panel */
.wallet-topup-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topup-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

.topup-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.topup-opt-btn {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topup-opt-btn:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.topup-opt-btn.active {
  border-color: #6366F1;
  background: #EEF2FF;
  color: #4F46E5;
}

.opt-check-icon {
  color: #6366F1;
  stroke-width: 3;
}

.topup-custom-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.topup-field-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.topup-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  transition: border-color 0.15s ease;
}

.topup-input-group:focus-within {
  border-color: #6366F1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.topup-input {
  flex: 1;
  height: 100%;
  border: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.topup-addon {
  padding: 0 14px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
  background: #FAFAFA;
  border-left: 1px solid #E5E7EB;
  height: 100%;
  display: flex;
  align-items: center;
}

.wallet-submit-btn {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: #6366F1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wallet-submit-btn:hover {
  background: #4F46E5;
}

/* Bottom Transactions Table Area */
.wallet-tx-section {
  margin-top: 10px;
}

.wallet-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px 0;
}

.wallet-table-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.wallet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.wallet-table th {
  padding: 11px 16px;
  background: #FAFAFA;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}

.wallet-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  color: #111827;
  vertical-align: middle;
}

.wallet-table tr:last-child td {
  border-bottom: none;
}

.wallet-table tr:hover td {
  background: #F9FAFB;
}

/* Transaction Type Tags & Amount Colors */
.tx-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.tx-type-tag.type-charge svg {
  color: #EF4444;
}

.tx-type-tag.type-topup svg {
  color: #10B981;
}

.tx-type-tag.type-refund svg {
  color: #3B82F6;
}

.text-charge {
  color: #EF4444;
}

.text-topup {
  color: #10B981;
}

.text-refund {
  color: #10B981;
}

@media (max-width: 900px) {
  .wallet-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Help Center Page (帮助中心) Ethereal Tech Specific Design
   ========================================================================== */

body[data-app="user"] .main .content:has(.support-page-container) {
  max-width: 100%;
  margin: 0;
  padding: 24px 32px 40px 32px;
}

.support-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1140px;
}

/* Header */
.support-header-wrap {
  margin-bottom: 2px;
}

.support-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.support-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* Search Bar */
.support-search-bar {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6366F1;
  pointer-events: none;
}

.support-search-input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  background: #ffffff;
  border: 1px solid #C7D2FE;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  outline: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.04);
  transition: all 0.15s ease;
}

.support-search-input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.support-search-input::placeholder {
  color: #9CA3AF;
}

/* Section Common */
.support-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.section-sub {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}

/* Quick Start 5 Columns Grid */
.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.qs-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.qs-card:hover {
  border-color: #C7D2FE;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

.qs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qs-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F5F3FF;
  color: #6366F1;
  display: grid;
  place-items: center;
}

.qs-arrow-icon {
  color: #9CA3AF;
  transition: transform 0.15s ease, color 0.15s ease;
}

.qs-card:hover .qs-arrow-icon {
  color: #6366F1;
  transform: translateX(2px);
}

.qs-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.qs-card-desc {
  font-size: 11px;
  color: #6B7280;
  margin: 0;
  line-height: 1.3;
}

/* Categories 4 Columns Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.cat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.cat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F5F3FF;
  color: #6366F1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cat-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.cat-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-item:hover {
  background: #F9FAFB;
  color: #6366F1;
}

.item-arrow {
  color: #D1D5DB;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cat-item:hover .item-arrow {
  color: #6366F1;
  transform: translateX(2px);
}

/* Bottom Contact Banner */
.contact-support-banner {
  background: linear-gradient(90deg, #EFF6FF 0%, #EEF2FF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.contact-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: #6366F1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08);
}

.contact-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.contact-sub {
  font-size: 13px;
  color: #4B5563;
  margin: 0;
}

.contact-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #6366F1;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  background: #4F46E5;
}

.support-footer {
  text-align: center;
  padding: 16px 0 10px 0;
  font-size: 12px;
  color: #9CA3AF;
}

@media (max-width: 1024px) {
  .quick-start-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .quick-start-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .contact-support-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Purchase Confirmation Modal (确认购买弹窗 UI)
   ========================================================================== */

.modal-card {
  width: min(460px, 92vw);
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  box-shadow: 0 -2px 24px rgba(142, 55, 215, 0.08), 0 20px 48px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(142, 55, 215, 0.2), #8E37D7, rgba(142, 55, 215, 0.2));
}

.modal-card.purchase-confirm-modal .modal-header {
  padding: 22px 24px 12px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card.purchase-confirm-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.modal-card.purchase-confirm-modal .modal-close {
  background: #F3F4F6;
  color: #6B7280;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.15s ease;
}

.modal-card.purchase-confirm-modal .modal-close:hover {
  background: #E5E7EB;
  color: #111827;
}

.modal-card.purchase-confirm-modal .modal-body {
  padding: 0 24px 16px 24px;
}

.purchase-modal-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.purchase-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F9FAFB;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #F3F4F6;
}

.purchase-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.purchase-info-item .info-label {
  color: #6B7280;
  font-weight: 400;
}

.purchase-info-item .info-val {
  color: #111827;
  font-weight: 600;
}

.purchase-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 18px 0 16px 0;
}

.purchase-amount-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amount-row.primary .amount-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.amount-row.primary .amount-val.primary-purple {
  font-size: 24px;
  font-weight: 700;
  color: #8E37D7;
}

.amount-row.secondary .amount-label {
  font-size: 13px;
  color: #6B7280;
}

.amount-row.secondary .amount-val.text-dark {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.purchase-notice {
  margin-top: 16px;
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
}

.modal-card.purchase-confirm-modal .modal-footer {
  padding: 16px 24px 24px 24px;
  border-top: none;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-card.purchase-confirm-modal .modal-cancel-btn {
  flex: 1;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-card.purchase-confirm-modal .modal-cancel-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  color: #111827;
}

.modal-card.purchase-confirm-modal .modal-ok-btn {
  flex: 1;
  height: 42px;
  border-radius: 8px;
  background: #8E37D7;
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(142, 55, 215, 0.25);
  transition: all 0.15s ease;
}

.modal-card.purchase-confirm-modal .modal-ok-btn:hover {
  background: #7A2CB9;
  box-shadow: 0 4px 10px rgba(142, 55, 215, 0.35);
}

/* ==========================================================================
   Order Details - Associated Proxy Resources
   ========================================================================== */

.order-proxies-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}

.order-proxies-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-proxies-title {
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.order-proxies-sub {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}

.view-all-proxies-link, .view-all-proxies-link-inline {
  background: none;
  border: none;
  padding: 0;
  color: #8E37D7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.view-all-proxies-link:hover, .view-all-proxies-link-inline:hover {
  color: #7A2CB9;
  text-decoration: underline;
}

.order-proxies-empty {
  padding: 32px 16px;
  text-align: center;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px dashed #E5E7EB;
}

.traffic-resource-summary-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 10px;
  padding: 16px 20px;
  align-items: center;
}

.resource-summary-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resource-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}

.resource-val {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}

.order-proxy-more-tip {
  margin-top: 12px;
  padding: 10px 14px;
  background: #F9FAFB;
  border-radius: 6px;
  font-size: 12px;
  color: #6B7280;
  display: flex;
}
/* ==========================================================================
   QRCode Pay Modal (Ethereal Tech Style & Standard Modal Outer Shell)
   ========================================================================== */

/* ==========================================================================
   QRCode Pay Modal (Specific Inner Layout Rules)
   ========================================================================== */

.modal-card.qrcode-pay-modal .modal-header {
  padding: 24px 24px 14px 24px !important;
  border-bottom: 1px solid #F3F4F6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-card.qrcode-pay-modal .modal-header h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: inline-block !important;
}

.modal-card.qrcode-pay-modal .modal-close {
  background: transparent !important;
  color: #9CA3AF !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  transition: color 0.15s ease, background 0.15s ease !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.modal-card.qrcode-pay-modal .modal-close:hover {
  background: #F3F4F6 !important;
  color: #111827 !important;
}

.modal-card.qrcode-pay-modal .modal-body {
  padding: 22px 24px 16px 24px !important;
}

.modal-card.qrcode-pay-modal .modal-footer {
  padding: 22px 24px 24px 24px !important;
  border-top: 1px solid #F3F4F6 !important;
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-card.qrcode-pay-modal .modal-cancel-btn,
.modal-card.qrcode-pay-modal .btn-secondary {
  width: 163px !important;
  max-width: 163px !important;
  flex: 0 0 163px !important;
  height: 42px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #D1D5DB !important;
  color: #374151 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.modal-card.qrcode-pay-modal .modal-cancel-btn:hover,
.modal-card.qrcode-pay-modal .btn-secondary:hover {
  background: #F9FAFB !important;
  border-color: #9CA3AF !important;
  color: #111827 !important;
}

.modal-card.qrcode-pay-modal .modal-ok-btn,
.modal-card.qrcode-pay-modal .btn-primary {
  width: 163px !important;
  max-width: 163px !important;
  flex: 0 0 163px !important;
  height: 42px !important;
  border-radius: 8px !important;
  background: #8E37D7 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(142, 55, 215, 0.25) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.modal-card.qrcode-pay-modal .modal-ok-btn:hover,
.modal-card.qrcode-pay-modal .btn-primary:hover {
  background: #7A2CB9 !important;
  box-shadow: 0 4px 10px rgba(142, 55, 215, 0.35) !important;
}








