@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;
}

/* ==========================================================================
   Global Scrollbar Theme - Option C: Floating Slim Line (方案 C: 浮动细线式垂直滚动条)
   ========================================================================== */

/* 1. Body / Background Scroll Lock when Modal is Open */
html:has(.modal-backdrop),
body:has(.modal-backdrop),
body.modal-open {
  overflow: hidden !important;
}

/* 2. Firefox Standard Scrollbar */
html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.45) transparent;
}

*:hover {
  scrollbar-color: rgba(107, 114, 128, 0.65) transparent;
}

/* 3. WebKit / Blink Browsers (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Explicitly hide all top/bottom arrow buttons (no traditional scrollbar buttons) */
::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0; /* 上下各留 10px 视觉呼吸缓冲，不顶住容器圆角与边缘 */
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.45); /* 中浅半透明灰，轻盈现代 */
  border-radius: 999px; /* 胶囊圆角 */
  border: 1px solid transparent; /* 侧边内缩透明边框，产生细线悬浮感 */
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(107, 114, 128, 0.65); /* 悬浮微加深 */
}

::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
  background-color: rgba(75, 85, 99, 0.8); /* 点击拖拽加深 */
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* 4. Mobile Touch Preservation */
@media (max-width: 768px), (pointer: coarse) {
  html,
  body,
  * {
    -webkit-overflow-scrolling: touch;
  }
  ::-webkit-scrollbar,
  *::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  ::-webkit-scrollbar-thumb,
  *::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.2);
  }
}

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;
  margin: 0;
  padding: 0;
}

/* Sidebar (Left) */
.sidebar {
  position: relative;
  width: var(--sidebar);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding: 24px 16px;
  border-radius: 0 !important;
  background: #0A0E1A; /* Deep Sea Blue */
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-left: none;
  border-bottom: none;
  z-index: 30;
  display: flex;
  flex-direction: column;
  color: #D1D5DB;
  margin: 0;
}

.sidebar .sidebar-nav-body {
  flex: 1;
  overflow: visible;
  overflow-y: visible;
  overflow-x: visible;
}

.sidebar .brand {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 0 8px 24px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.sidebar .brand-mark {
  width: 46px !important;
  height: 51px !important;
  min-width: 46px !important;
  min-height: 51px !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.sidebar .brand-mark svg {
  width: 46px !important;
  height: 51px !important;
  display: block !important;
}

.sidebar .brand-name {
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
}

.sidebar .brand-sub {
  font-size: 10px !important;
  color: #9CA3AF !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  margin-top: 3px !important;
}

.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;
  margin: 0;
  padding: 0;
}

/* Header Topbar */
.topbar {
  height: 64px; /* Fixed 64px */
  padding: 0 32px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  margin: 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 Wallet Balance & Add Funds (Top-up Entry) */
.header-wallet-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 2px 3px 2px 10px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.header-wallet-pill:hover {
  background: #FFFFFF;
  border-color: #D1D5DB;
}

.header-wallet-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header-wallet-icon {
  width: 15px;
  height: 15px;
  color: #6B7280;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.header-wallet-pill:hover .header-wallet-icon {
  color: #8E37D7;
}

.header-wallet-amount {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.header-wallet-amount.loading,
.header-wallet-amount.error {
  color: #9CA3AF;
  font-weight: 500;
}

.header-wallet-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8E37D7;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-wallet-add-btn:hover {
  background: rgba(142, 55, 215, 0.08);
  border-color: rgba(142, 55, 215, 0.35);
  color: #7928CA;
}

.header-wallet-add-btn svg {
  flex-shrink: 0;
}

.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);
}

/* ==========================================================================
   Account Profile Dropdown (Polished SaaS Style)
   ========================================================================== */

.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.profile:hover {
  background: rgba(0, 0, 0, 0.04);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown.hidden {
  display: none !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email Verified Status Row */
.dropdown-verified-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 10px 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
  font-weight: 500;
  color: #10B981;
  line-height: 1;
}

.dropdown-verified-row svg {
  flex-shrink: 0;
}

.dropdown-verified-row .verified-text {
  font-size: 13px;
  font-weight: 500;
  color: #10B981;
  letter-spacing: -0.01em;
}

/* Unverified Block */
#dropdownUnverifiedBlock {
  padding: 2px 4px 10px 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid #F3F4F6;
}

.dropdown-unverified-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d97706;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.dropdown-unverified-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
  margin-bottom: 10px;
}

.dropdown-resend-btn {
  width: 100%;
  background-color: #8E37D7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-resend-btn:hover {
  background-color: #792dbb;
}

/* Menu items list */
.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-icon {
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.profile-menu-arrow {
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

/* Account Settings Item */
.profile-menu-item.item-settings {
  color: #374151;
}

.profile-menu-item.item-settings .profile-menu-icon {
  color: #6B7280;
}

.profile-menu-item.item-settings .profile-menu-arrow {
  color: #9CA3AF;
}

.profile-menu-item.item-settings:hover,
.profile-menu-item.item-settings:focus-visible {
  background: #F8F5FF;
  color: #8E37D7;
  outline: none;
}

.profile-menu-item.item-settings:hover .profile-menu-icon,
.profile-menu-item.item-settings:focus-visible .profile-menu-icon {
  color: #8E37D7;
}

.profile-menu-item.item-settings:hover .profile-menu-arrow,
.profile-menu-item.item-settings:focus-visible .profile-menu-arrow {
  color: #8E37D7;
  transform: translateX(2px);
}

/* Log Out Item */
.profile-menu-item.item-logout {
  color: #EF4444;
}

.profile-menu-item.item-logout .profile-menu-icon {
  color: #EF4444;
}

.profile-menu-item.item-logout .profile-menu-arrow {
  color: #F87171;
}

.profile-menu-item.item-logout:hover,
.profile-menu-item.item-logout:focus-visible {
  background: #FEF2F2;
  color: #DC2626;
  outline: none;
}

.profile-menu-item.item-logout:hover .profile-menu-icon,
.profile-menu-item.item-logout:focus-visible .profile-menu-icon {
  color: #DC2626;
}

.profile-menu-item.item-logout:hover .profile-menu-arrow,
.profile-menu-item.item-logout:focus-visible .profile-menu-arrow {
  color: #DC2626;
  transform: translateX(2px);
}

.profile-menu-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(142, 55, 215, 0.35);
}

/* 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;
  }
  .top-actions {
    gap: 10px;
  }
  .profile-info,
  .profile-meta {
    display: none !important;
  }
  .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;
  }
  .top-actions {
    gap: 8px;
  }
  .header-wallet-pill {
    padding: 2px 7px;
    gap: 5px;
  }
  .header-wallet-add-btn .header-wallet-add-text {
    display: none;
  }
  .header-wallet-add-btn {
    padding: 0 6px;
  }
  .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,
#countryDropdownContainer {
  position: relative !important;
  width: 100%;
}

/* Keep the country picker on a single fixed-height form row. The popup must
   float above later controls instead of contributing to the row's height. */
.country-config-row {
  position: relative;
  z-index: 20;
  height: 38px;
  min-height: 38px;
  align-items: flex-start;
  overflow: visible;
}

.country-config-row > .config-label,
.country-config-row > .config-hint-text {
  height: 38px;
  display: flex;
  align-items: center;
}

.country-config-row > .config-control-main {
  position: relative;
  height: 38px;
  min-height: 38px;
  align-items: flex-start;
  overflow: visible;
}

.country-config-row #countryDropdownContainer {
  position: relative !important;
  height: 38px !important;
  min-height: 38px !important;
  overflow: visible !important;
}

.country-config-row #countrySelectDropdown {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  margin: 0 !important;
  z-index: 1000 !important;
}
.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,
#countryDropdownContainer.open {
  z-index: 100 !important;
}
.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,
#countrySelectDropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  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: 100 !important;
  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%;
}

/* Package Select Stack & Custom Quantity Control */
.config-row.config-row-ip-qty {
  align-items: flex-start;
}

.config-row.config-row-ip-qty .config-label {
  height: 38px;
  display: flex;
  align-items: center;
}

.config-row.config-row-ip-qty .config-hint-text {
  height: 38px;
  display: flex;
  align-items: center;
}

.pkg-select-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-qty-wrapper {
  width: 100%;
}

.custom-qty-wrapper.hidden {
  display: none !important;
}

.custom-qty-input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.custom-qty-input {
  height: 38px;
  width: 100%;
  padding: 0 32px 0 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-qty-input::-webkit-outer-spin-button,
.custom-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-qty-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.custom-qty-input.has-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.custom-qty-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
  pointer-events: none;
}

.custom-qty-error-text {
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
  line-height: 1.3;
}

.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,
#countryDropdownContainer {
  position: relative !important;
  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:not(:disabled):not(.is-loading) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -3px rgba(15, 23, 42, 0.5), 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-buy-cta.is-loading,
.btn-buy-cta[aria-busy="true"],
.btn-buy-cta:disabled {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.auth-checking-spinner,
.btn-buy-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
  animation: spin 0.75s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .auth-checking-spinner,
  .btn-buy-spinner {
    animation-duration: 2s;
  }
}

.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 (我的钱包 & 支付记录) IPNera Design System
   ========================================================================== */

body[data-app="user"] .main .content:has(.wallet-page-container),
body[data-app="user"] .main .content:has(.payments-page-container) {
  max-width: 100%;
  margin: 0;
  padding: 24px 32px 40px 32px;
}

.wallet-page-container,
.payments-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Page Header */
.wallet-page-header {
  margin-bottom: 4px;
}

.wallet-title {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', 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;
  line-height: 1.5;
}

/* ==========================================================================
   Restructured Wallet Layout (IPRoyal-inspired Spatial Layout with IPNera DS)
   ========================================================================== */

/* Main Grid: Desktop 2-column (Left ~58%, Right ~42%) */
.wallet-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

/* Card Common Styles */
.wallet-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.wallet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.wallet-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Left Card: 充值方式 (Payment Methods)
   ========================================================================== */
.wallet-methods-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wallet-methods-header {
  margin-bottom: 18px;
}

.wallet-methods-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  justify-content: space-between;
}

.wallet-method-item {
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 82px;
}

.wallet-method-item:hover {
  border-color: #D1D5DB;
  background: #FAFAFA;
}

.wallet-method-item.active {
  border-color: #8E37D7;
  background: rgba(142, 55, 215, 0.035);
  box-shadow: 0 0 0 1px #8E37D7, 0 2px 8px rgba(142, 55, 215, 0.06);
}

.wallet-method-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.wallet-method-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.wallet-method-radio.checked {
  border-color: #8E37D7;
}

.wallet-radio-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8E37D7;
}

.wallet-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.wallet-method-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wallet-method-info {
  flex: 1;
  min-width: 0;
}

.wallet-method-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-method-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.wallet-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-mini-pill {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 3.5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
}

.card-pill-visa {
  background: #00579F;
  color: #fff;
  font-style: italic;
  font-family: Arial, sans-serif;
}

.card-pill-mc {
  background: #202020;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 0 5px;
}

.mc-circles {
  display: inline-flex;
  width: 14px;
  height: 9px;
  position: relative;
}

.mc-circle-red {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EB001B;
  position: absolute;
  left: 0;
}

.mc-circle-yellow {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F79E1B;
  position: absolute;
  right: 0;
  opacity: 0.9;
}

.wallet-method-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #6B7280;
  background: #F3F4F6;
  padding: 1px 6px;
  border-radius: 4px;
}

.wallet-method-desc {
  display: none !important;
}

.wallet-method-status-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #8E37D7;
  background: rgba(142, 55, 215, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wallet-method-details {
  display: none !important;
}

/* ==========================================================================
   Right Card: 完成充值 (Complete Top-up)
   ========================================================================== */
.wallet-checkout-card {
  position: relative;
  padding: 24px;
  height: 100%;
}

.wallet-checkout-header {
  margin-bottom: 18px;
}

.wallet-amount-section {
  display: flex;
  flex-direction: column;
}

.wallet-input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.wallet-amount-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  padding: 0 14px;
  height: 44px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.wallet-amount-input-wrap:hover {
  border-color: #D1D5DB;
}

.wallet-amount-input-wrap.focused {
  border-color: #8E37D7;
  background: rgba(142, 55, 215, 0.02);
  box-shadow: 0 0 0 3px rgba(142, 55, 215, 0.08);
}

.wallet-amount-currency {
  font-size: 16px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #8E37D7;
  margin-right: 6px;
  user-select: none;
}

.wallet-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.wallet-checkout-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 18px 0;
}

.wallet-checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6B7280;
}

.wallet-summary-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13.5px;
  color: #111827;
}

.wallet-summary-val.val-bonus {
  color: #10B981;
}

.wallet-summary-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #E5E7EB;
  margin-top: 2px;
}

.wallet-summary-total-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.wallet-summary-total-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #8E37D7;
}

.wallet-bullets-box {
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.wallet-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4B5563;
  font-weight: 500;
}

.wallet-bullet-item svg {
  color: #10B981;
  flex-shrink: 0;
}

.wallet-cta-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #8E37D7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(142, 55, 215, 0.2);
}

.wallet-cta-btn:hover:not(:disabled) {
  background: #7D2EC4;
  box-shadow: 0 4px 12px rgba(142, 55, 215, 0.3);
}

.wallet-cta-btn:disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

.wallet-method-status-badge.is-available {
  color: #047857;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.wallet-stripe-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wallet-stripe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
}

.wallet-stripe-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.wallet-stripe-panel h2 {
  margin: 0 36px 6px 0;
  color: #111827;
  font-size: 20px;
}

.wallet-stripe-note {
  margin: 0 0 18px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.6;
}

.wallet-stripe-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 22px;
  cursor: pointer;
}

.wallet-stripe-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
}

.wallet-stripe-element {
  min-height: 120px;
  margin-bottom: 14px;
}

.wallet-stripe-error {
  min-height: 20px;
  margin-bottom: 10px;
  color: #DC2626;
  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================================
   Middle Section: 充值加赠 (Top-up Bonus Tiers)
   ========================================================================== */
.wallet-bonus-card {
  margin-bottom: 24px;
}

.wallet-bonus-header {
  margin-bottom: 18px;
}

.wallet-bonus-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.wallet-bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wallet-bonus-item {
  background: #FAF8FE;
  border: 1px solid #F1ECFA;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.wallet-bonus-item:hover {
  border-color: #E2D7F5;
  background: #F7F3FD;
}

.wallet-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-bonus-row-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
  white-space: nowrap;
}

.wallet-bonus-row-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.wallet-bonus-row-val.bonus-highlight {
  color: #8E37D7;
}

.wallet-bonus-row-val.total-highlight {
  font-size: 16px;
  color: #8E37D7;
}

/* ==========================================================================
   Bottom Section: 最近充值记录 (Default Collapsed Accordion)
   ========================================================================== */
.wallet-accordion-card {
  padding: 0;
  overflow: hidden;
}

.wallet-accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.wallet-accordion-header:hover {
  background: #F9FAFB;
}

.wallet-accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-accordion-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.wallet-accordion-badge {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 10px;
}

.wallet-accordion-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
}

.wallet-accordion-arrow {
  transition: transform 0.2s ease;
}

.wallet-accordion-arrow.open {
  transform: rotate(180deg);
}

.wallet-accordion-content {
  padding: 0 24px 20px 24px;
  transition: all 0.2s ease;
}

.wallet-accordion-content.collapsed {
  display: none;
}

.wallet-recent-loading {
  padding: 28px 16px;
  text-align: center;
}

.wallet-recent-empty {
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wallet-recent-list {
  display: flex;
  flex-direction: column;
}

.wallet-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.wallet-recent-row:last-child {
  border-bottom: none;
}

.wallet-recent-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-recent-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-recent-meta {
  display: flex;
  flex-direction: column;
}

.wallet-recent-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.wallet-recent-sub {
  font-size: 11.5px;
  color: #6B7280;
  margin-top: 2px;
}

.wallet-recent-right {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.wallet-recent-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #059669;
}

.wallet-recent-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #9CA3AF;
  min-width: 110px;
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media (max-width: 960px) {
  body[data-app="user"] .main .content:has(.wallet-page-container),
  body[data-app="user"] .main .content:has(.payments-page-container) {
    padding: 16px 14px 32px 14px;
  }

  .wallet-main-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  .wallet-methods-card {
    order: 1;
    height: auto;
  }

  .wallet-methods-list {
    flex: initial;
    gap: 12px;
  }

  .wallet-method-item {
    flex: initial;
    min-height: auto;
    padding: 14px 16px;
  }

  .wallet-method-item.active {
    border-color: #8E37D7;
    background: rgba(142, 55, 215, 0.035);
    box-shadow: 0 0 0 1px #8E37D7;
  }

  .wallet-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .wallet-checkout-card {
    order: 2;
    height: auto;
  }

  .wallet-accordion-card {
    order: 3;
  }

  .wallet-card {
    padding: 18px 16px;
  }

  .wallet-accordion-header {
    padding: 16px 16px;
  }

  .wallet-accordion-content {
    padding: 0 16px 16px 16px;
  }

  .wallet-recent-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wallet-recent-right {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .wallet-bonus-card {
    margin-bottom: 16px;
  }

  .wallet-bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wallet-bonus-item {
    padding: 13px 14px;
    gap: 8px;
  }

  .wallet-bonus-row-label {
    font-size: 12px;
  }

  .wallet-bonus-row-val {
    font-size: 14px;
  }

  .wallet-bonus-row-val.total-highlight {
    font-size: 15px;
  }

  .wallet-recent-time {
    min-width: auto;
  }
}

@media (max-width: 520px) {
  .wallet-bonus-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* Preserved classes for Payment Records view */
.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;
}

.tx-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.text-charge {
  color: #EF4444;
}

.text-topup {
  color: #10B981;
}

.text-refund {
  color: #10B981;
}

/* ==========================================================================
   Help Center Page (帮助中心) Ethereal Tech Specific Design
/* ==========================================================================
   Help Center / Support Page
   ========================================================================== */

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: 1180px;
  margin: 0 auto;
}

/* 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 6px 0;
  letter-spacing: -0.01em;
}

.support-desc {
  font-size: 13.5px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* Search Bar */
.support-search-bar {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8E37D7;
  pointer-events: none;
}

.support-search-input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  color: #111827;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.support-search-input:focus {
  border-color: #8E37D7;
  box-shadow: 0 0 0 3px rgba(142, 55, 215, 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: 12.5px;
  color: #6B7280;
  margin: 0;
}

/* Categories 5 Columns Grid */
.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.help-cat-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-cat-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.help-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
}

.help-cat-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(142, 55, 215, 0.08);
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.help-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #4B5563;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  gap: 6px;
}

.help-article-item:hover {
  background: rgba(142, 55, 215, 0.06);
  color: #8E37D7;
}

.help-article-item .item-arrow {
  color: #9CA3AF;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.help-article-item:hover .item-arrow {
  color: #8E37D7;
  transform: translateX(2px);
}

/* FAQ 3 Columns Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  min-width: 0;
}

.faq-card:hover {
  border-color: #C4B5FD;
  background: #FAF5FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(142, 55, 215, 0.06);
}

.faq-question {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.4;
  margin: 0;
}

.faq-card:hover .faq-question {
  color: #8E37D7;
}

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.faq-card:hover .faq-arrow {
  background: #8E37D7;
  color: #ffffff;
  transform: translateX(2px);
}

/* Bottom Contact Banner */
.contact-support-banner {
  background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
  border: 1px solid #EDE9FE;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.contact-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #8E37D7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(142, 55, 215, 0.25);
}

.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 22px;
  border-radius: 8px;
  background: #8E37D7;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(142, 55, 215, 0.2);
}

.contact-btn:hover {
  background: #7A28C7;
}

.support-footer {
  text-align: center;
  padding: 16px 0 10px 0;
  font-size: 12px;
  color: #9CA3AF;
}

/* Tablet & Mobile Responsive */
@media (max-width: 1199px) {
  .help-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  body[data-app="user"] .main .content:has(.support-page-container) {
    padding: 16px 16px 32px 16px;
  }
  .help-categories-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .contact-support-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Unified Help Article Modal UI
   ========================================================================== */

.modal-card.help-article-modal {
  width: 660px !important;
  max-width: calc(100vw - 32px) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-top: 3px solid #8E37D7 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.help-modal-header {
  padding: 20px 24px 14px 24px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
}

.help-modal-title-wrap {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

.help-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.help-modal-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8E37D7;
  font-weight: 600;
  background: rgba(142, 55, 215, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.help-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 20px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.help-modal-close-btn:hover {
  background: #F3F4F6;
  color: #111827;
  border-color: #D1D5DB;
}

.help-modal-body {
  padding: 20px 24px;
  max-height: calc(75vh - 120px);
  overflow-y: auto;
  color: #374151;
  font-size: 13.5px;
  line-height: 1.6;
  box-sizing: border-box;
}

.help-modal-intro {
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.help-modal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 18px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px 0;
}

.help-modal-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.help-modal-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F3E8FF;
  color: #8E37D7;
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.help-modal-step-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  flex: 1;
}

.help-modal-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px 0;
}

.help-modal-point-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.help-modal-point-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8E37D7;
  flex-shrink: 0;
  margin-top: 7px;
}

.help-modal-notice {
  background: #FAF5FF;
  border: 1px solid #EDE9FE;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.help-modal-notice-icon {
  color: #8E37D7;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.help-modal-notice-content {
  font-size: 12.5px;
  color: #581C87;
  line-height: 1.5;
}

.help-modal-notice-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.help-modal-footer {
  padding: 14px 24px 18px 24px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #FAFAFA;
}

.help-modal-footer-btn {
  padding: 7px 22px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-modal-footer-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #111827;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .modal-card.help-article-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 14px !important;
  }
  .help-modal-header {
    padding: 16px 18px 12px 18px;
  }
  .help-modal-close-btn {
    top: 14px;
    right: 14px;
  }
  .help-modal-body {
    padding: 16px 18px;
  }
  .help-modal-footer {
    padding: 12px 18px 16px 18px;
  }
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Account Settings Modal (Polished Modern SaaS Style)
   ========================================================================== */

.modal-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(2px) !important;
}

.modal-card.account-settings-modal {
  width: 500px !important;
  max-width: calc(100vw - 32px) !important;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 auto !important;
}

.modal-card.account-settings-modal .modal-header {
  padding: 22px 24px 16px 24px !important;
  border-bottom: 1px solid #F3F4F6 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-card.account-settings-modal .modal-header-left {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.modal-card.account-settings-modal .modal-header h3 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.modal-card.account-settings-modal .modal-subtitle {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  margin-top: 4px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.modal-card.account-settings-modal .modal-close {
  background: transparent !important;
  color: #9CA3AF !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  margin-top: -2px !important;
  margin-left: 12px !important;
  padding: 0 !important;
}

.modal-card.account-settings-modal .modal-close:hover {
  background: #F3F4F6 !important;
  color: #111827 !important;
}

.modal-card.account-settings-modal .modal-body {
  padding: 20px 24px 20px 24px !important;
  box-sizing: border-box !important;
}

.account-settings-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.account-identity-card {
  background: #F9FAFB !important;
  border: 1px solid #F3F4F6 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.account-identity-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.account-avatar-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(142, 55, 215, 0.08) !important;
  color: #8E37D7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.account-identity-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.account-identity-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6B7280 !important;
  line-height: 1.2 !important;
}

.account-identity-email {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.account-verified-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
}

.settings-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.settings-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  text-align: left;
  transition: all 0.15s ease;
}

.settings-row-item:hover,
.settings-row-item:focus-visible {
  background: #F8F5FF !important;
  border-color: #D8B4FE !important;
  outline: none;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.settings-row-icon {
  width: 17px;
  height: 17px;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.settings-row-item:hover .settings-row-icon,
.settings-row-item:focus-visible .settings-row-icon {
  color: #8E37D7;
}

.settings-row-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
  line-height: 1.2;
}

.settings-row-item:hover .settings-row-label,
.settings-row-item:focus-visible .settings-row-label {
  color: #8E37D7;
}

.settings-row-chevron {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.settings-row-item:hover .settings-row-chevron,
.settings-row-item:focus-visible .settings-row-chevron {
  color: #8E37D7;
  transform: translateX(2px);
}

.modal-card.account-settings-modal .modal-footer {
  padding: 16px 24px 20px 24px !important;
  border-top: 1px solid #F3F4F6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-card.account-settings-modal .modal-cancel-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 20px !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.account-settings-modal .modal-cancel-btn:hover {
  background: #F9FAFB !important;
  border-color: #9CA3AF !important;
  color: #111827 !important;
}

/* ==========================================================================
   Security Sub-Modals (Change Email, Change Password, Sessions)
   ========================================================================== */

.modal-card.change-email-modal,
.modal-card.change-password-modal,
.modal-card.sessions-modal,
.modal-card.two-factor-modal,
.modal-card.enable-2fa-step1-modal,
.modal-card.enable-2fa-step2-modal,
.modal-card.recovery-codes-modal,
.modal-card.disable-2fa-modal,
.modal-card.regenerate-recovery-modal,
.modal-card.recovery-email-modal {
  width: 520px !important;
  max-width: calc(100vw - 32px) !important;
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 auto !important;
}

.modal-card.two-factor-modal {
  width: 580px !important;
}

.modal-card.change-email-modal .modal-header,
.modal-card.change-password-modal .modal-header,
.modal-card.sessions-modal .modal-header,
.modal-card.two-factor-modal .modal-header,
.modal-card.enable-2fa-step1-modal .modal-header,
.modal-card.enable-2fa-step2-modal .modal-header,
.modal-card.recovery-codes-modal .modal-header,
.modal-card.disable-2fa-modal .modal-header,
.modal-card.regenerate-recovery-modal .modal-header,
.modal-card.recovery-email-modal .modal-header {
  padding: 20px 24px 16px 24px !important;
  border-bottom: 1px solid #F3F4F6 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-card.change-email-modal .modal-header-left,
.modal-card.change-password-modal .modal-header-left,
.modal-card.sessions-modal .modal-header-left,
.modal-card.two-factor-modal .modal-header-left,
.modal-card.enable-2fa-step1-modal .modal-header-left,
.modal-card.enable-2fa-step2-modal .modal-header-left,
.modal-card.recovery-codes-modal .modal-header-left,
.modal-card.disable-2fa-modal .modal-header-left,
.modal-card.regenerate-recovery-modal .modal-header-left,
.modal-card.recovery-email-modal .modal-header-left {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.modal-card.change-email-modal .modal-header h3,
.modal-card.change-password-modal .modal-header h3,
.modal-card.sessions-modal .modal-header h3,
.modal-card.two-factor-modal .modal-header h3,
.modal-card.enable-2fa-step1-modal .modal-header h3,
.modal-card.enable-2fa-step2-modal .modal-header h3,
.modal-card.recovery-codes-modal .modal-header h3,
.modal-card.disable-2fa-modal .modal-header h3,
.modal-card.regenerate-recovery-modal .modal-header h3,
.modal-card.recovery-email-modal .modal-header h3 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.modal-card.change-email-modal .modal-subtitle,
.modal-card.change-password-modal .modal-subtitle,
.modal-card.sessions-modal .modal-subtitle,
.modal-card.two-factor-modal .modal-subtitle,
.modal-card.enable-2fa-step1-modal .modal-subtitle,
.modal-card.enable-2fa-step2-modal .modal-subtitle,
.modal-card.recovery-codes-modal .modal-subtitle,
.modal-card.disable-2fa-modal .modal-subtitle,
.modal-card.regenerate-recovery-modal .modal-subtitle,
.modal-card.recovery-email-modal .modal-subtitle {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  margin-top: 4px !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.modal-card.change-email-modal .modal-close,
.modal-card.change-password-modal .modal-close,
.modal-card.sessions-modal .modal-close,
.modal-card.two-factor-modal .modal-close,
.modal-card.enable-2fa-step1-modal .modal-close,
.modal-card.enable-2fa-step2-modal .modal-close,
.modal-card.recovery-codes-modal .modal-close,
.modal-card.disable-2fa-modal .modal-close,
.modal-card.regenerate-recovery-modal .modal-close,
.modal-card.recovery-email-modal .modal-close {
  background: transparent !important;
  color: #9CA3AF !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  margin-top: -2px !important;
  margin-left: 12px !important;
  padding: 0 !important;
}

.modal-card.change-email-modal .modal-close:hover,
.modal-card.change-password-modal .modal-close:hover,
.modal-card.sessions-modal .modal-close:hover,
.modal-card.two-factor-modal .modal-close:hover,
.modal-card.enable-2fa-step1-modal .modal-close:hover,
.modal-card.enable-2fa-step2-modal .modal-close:hover,
.modal-card.recovery-codes-modal .modal-close:hover,
.modal-card.disable-2fa-modal .modal-close:hover,
.modal-card.regenerate-recovery-modal .modal-close:hover,
.modal-card.recovery-email-modal .modal-close:hover {
  background: #F3F4F6 !important;
  color: #111827 !important;
}

.modal-card.change-email-modal .modal-body,
.modal-card.change-password-modal .modal-body,
.modal-card.sessions-modal .modal-body,
.modal-card.two-factor-modal .modal-body,
.modal-card.enable-2fa-step1-modal .modal-body,
.modal-card.enable-2fa-step2-modal .modal-body,
.modal-card.recovery-codes-modal .modal-body,
.modal-card.disable-2fa-modal .modal-body,
.modal-card.regenerate-recovery-modal .modal-body,
.modal-card.recovery-email-modal .modal-body {
  padding: 20px 24px 20px 24px !important;
  box-sizing: border-box !important;
}

/* Security Form Styles */
.sec-modal-form {
  display: flex;
  flex-direction: column;
}

.sec-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.sec-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-align: left;
}

.sec-input {
  height: 46px !important;
  width: 100% !important;
  padding: 0 14px !important;
  line-height: 46px !important;
  background: #ffffff !important;
  border: 1px solid #DDE3EA !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #111827 !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  font-family: inherit !important;
}

.sec-input:focus {
  border-color: #8E37D7 !important;
  box-shadow: 0 0 0 3px rgba(142, 55, 215, 0.12) !important;
}

.sec-input::placeholder {
  color: #9CA3AF !important;
  line-height: 46px !important;
  font-size: 14px !important;
}

.sec-input-readonly {
  height: 46px !important;
  width: 100% !important;
  padding: 0 14px !important;
  background: #F8FAFC !important;
  border: 1px solid #DDE3EA !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #475569 !important;
  box-sizing: border-box !important;
  cursor: default !important;
  display: flex !important;
  align-items: center !important;
}

.sec-helper-text {
  font-size: 12px;
  color: #6B7280;
  margin-top: 5px;
  line-height: 1.4;
  text-align: left;
}

.sec-alert-box {
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-radius: 8px;
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 16px;
  line-height: 1.4;
  text-align: left;
  display: none;
}

.sec-warning-box {
  padding: 12px 14px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  font-size: 12px;
  color: #92400E;
  line-height: 1.4;
  margin-bottom: 16px;
  text-align: left;
}

.sec-info-box {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: #F8F5FC !important;
  border: 1px solid rgba(142, 55, 215, 0.22) !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  color: #581C87 !important;
  line-height: 1.5 !important;
  margin-bottom: 18px !important;
  text-align: left !important;
}

.sec-info-box .sec-info-icon {
  flex-shrink: 0 !important;
  color: #8E37D7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 1px !important;
}

.sec-info-box .sec-info-text {
  flex: 1 !important;
  font-size: 12.5px !important;
  color: #581C87 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.sec-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

.sec-btn-cancel {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sec-btn-cancel:hover {
  background: #F9FAFB !important;
  border-color: #9CA3AF !important;
  color: #111827 !important;
}

.sec-btn-primary {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 20px !important;
  border: 1px solid #8E37D7 !important;
  border-radius: 9px !important;
  background: #8E37D7 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(142, 55, 215, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sec-btn-primary:hover {
  background: #7A2CB9 !important;
  border-color: #7A2CB9 !important;
  box-shadow: 0 4px 10px rgba(142, 55, 215, 0.35) !important;
}

.sec-btn-primary:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* 2FA Dedicated Components */
.twofa-status-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 18px;
}

.twofa-status-card.enabled {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.twofa-status-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.twofa-status-card.enabled .twofa-status-icon-wrap {
  background: #DCFCE7;
  color: #16A34A;
}

.twofa-status-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.twofa-status-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.twofa-status-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.twofa-status-card.enabled .twofa-status-title {
  color: #166534;
}

.twofa-status-badge-disabled {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.twofa-status-badge-enabled {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.twofa-status-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
  margin-top: 4px;
}

.twofa-status-card.enabled .twofa-status-desc {
  color: #15803D;
}

/* Steps Guide */
.twofa-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.twofa-steps-header {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
  text-align: left;
}

.twofa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

.twofa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EDE9FE;
  color: #6D28D9;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.twofa-step-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.twofa-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.twofa-step-desc {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.4;
}

/* Info Box */
.twofa-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 6px;
  text-align: left;
}

.twofa-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.recovery-code-card {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 1px;
}

/* Device Sessions Card List */
.sessions-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.session-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.15s ease;
  gap: 12px;
}

.session-device-card:hover {
  border-color: #D1D5DB;
  background: #FAFAFA;
}

.session-device-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.session-device-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F3E8FF;
  color: #8E37D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-device-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.session-device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-device-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.session-current-badge {
  background: #F3E8FF;
  color: #8E37D7;
  border: 1px solid #E9D5FF;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.session-device-meta {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.3;
}

.session-revoke-single-btn {
  padding: 6px 12px !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #4B5563 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.session-revoke-single-btn:hover {
  background: #F3F4F6 !important;
  color: #111827 !important;
  border-color: #9CA3AF !important;
}

.sessions-modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  gap: 12px;
}

.sec-btn-danger-outline {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid #FCA5A5 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #DC2626 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sec-btn-danger-outline:hover {
  background: #FEF2F2 !important;
  border-color: #F87171 !important;
  color: #B91C1C !important;
}

@media (max-width: 480px) {
  .modal-card.change-email-modal,
  .modal-card.change-password-modal,
  .modal-card.sessions-modal,
  .modal-card.two-factor-modal,
  .modal-card.enable-2fa-step1-modal,
  .modal-card.enable-2fa-step2-modal,
  .modal-card.recovery-codes-modal,
  .modal-card.disable-2fa-modal,
  .modal-card.regenerate-recovery-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 14px !important;
  }
  .modal-card.change-email-modal .modal-header,
  .modal-card.change-password-modal .modal-header,
  .modal-card.sessions-modal .modal-header,
  .modal-card.two-factor-modal .modal-header,
  .modal-card.enable-2fa-step1-modal .modal-header,
  .modal-card.enable-2fa-step2-modal .modal-header,
  .modal-card.recovery-codes-modal .modal-header,
  .modal-card.disable-2fa-modal .modal-header,
  .modal-card.regenerate-recovery-modal .modal-header {
    padding: 18px 18px 14px 18px !important;
  }
  .modal-card.change-email-modal .modal-body,
  .modal-card.change-password-modal .modal-body,
  .modal-card.sessions-modal .modal-body,
  .modal-card.two-factor-modal .modal-body,
  .modal-card.enable-2fa-step1-modal .modal-body,
  .modal-card.enable-2fa-step2-modal .modal-body,
  .modal-card.recovery-codes-modal .modal-body,
  .modal-card.disable-2fa-modal .modal-body,
  .modal-card.regenerate-recovery-modal .modal-body {
    padding: 16px 18px 18px 18px !important;
  }
  .sessions-modal-footer-row {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .sessions-modal-footer-row button {
    width: 100% !important;
  }
  .sec-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .sec-modal-footer button {
    width: 100% !important;
  }
  .recovery-codes-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Security Center - 4-Card Overview Strip
   ========================================================================== */

.security-center-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 0 32px 0;
}

.security-center-header {
  margin-bottom: 20px;
}

.security-center-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.security-center-desc {
  font-size: 13.5px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

.security-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.security-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.security-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.security-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 38px;
}

.security-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.security-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.security-card-icon.icon-2fa {
  background: #F3E8FF;
  color: #8E37D7;
}

.security-card-icon.icon-sessions {
  background: #EFF6FF;
  color: #2563EB;
}

.security-card-icon.icon-credentials {
  background: #FEF3C7;
  color: #D97706;
}

.security-card-icon.icon-recovery {
  background: #ECFDF5;
  color: #059669;
}

.security-card-titles {
  min-width: 0;
}

.security-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.security-card-sub {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.2;
  margin-top: 1px;
}

.sec-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}

.sec-badge-default {
  background: #F3F4F6;
  color: #6B7280;
}

.sec-badge-info {
  background: #EFF6FF;
  color: #2563EB;
}

.sec-badge-success {
  background: #ECFDF5;
  color: #059669;
}

.sec-badge-danger {
  background: #FEF2F2;
  color: #DC2626;
}

.security-card-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
  min-height: 38px;
  word-break: break-word;
}

.security-card-footer {
  margin-top: auto;
  width: 100%;
}

.sec-card-btn,
.sec-card-btn-container button,
.sec-card-btn-half,
.security-card-footer button {
  height: 34px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  border-width: 1px !important;
  border-style: solid !important;
  outline: none !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

.sec-card-btn,
.sec-card-btn-container button {
  width: 100% !important;
  padding: 0 10px !important;
}

.sec-card-btn-container {
  width: 100%;
}

.sec-card-btn-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.sec-card-btn-half {
  flex: 1 !important;
  padding: 0 4px !important;
  white-space: nowrap !important;
}

/* Primary Button (启用双因素认证) */
.security-card .btn-primary,
.security-card button.btn-primary,
.security-card #secEnable2faBtn {
  background-color: #8E37D7 !important;
  border-color: #8E37D7 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(142, 55, 215, 0.15) !important;
}

.security-card .btn-primary:hover,
.security-card button.btn-primary:hover,
.security-card #secEnable2faBtn:hover {
  background-color: #7A28C7 !important;
  border-color: #7A28C7 !important;
  color: #ffffff !important;
}

.security-card .btn-primary:active,
.security-card button.btn-primary:active,
.security-card #secEnable2faBtn:active {
  background-color: #6B21A8 !important;
  border-color: #6B21A8 !important;
  color: #ffffff !important;
}

.security-card .btn-primary:focus-visible,
.security-card button.btn-primary:focus-visible,
.security-card #secEnable2faBtn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(142, 55, 215, 0.25) !important;
  border-color: #7A28C7 !important;
}

/* Secondary Buttons (管理登录设备, 修改密码, 修改邮箱, 设置恢复邮箱) */
.security-card .btn-outline-primary,
.security-card .btn-outline-secondary,
.security-card .btn-outline-success,
.security-card #secManageSessionsBtn,
.security-card #secChangePassBtn,
.security-card #secChangeEmailBtn,
.security-card #secActionRecoveryEmailBtn {
  background-color: #ffffff !important;
  border-color: #D1D5DB !important;
  color: #374151 !important;
}

.security-card .btn-outline-primary:hover,
.security-card .btn-outline-secondary:hover,
.security-card .btn-outline-success:hover,
.security-card #secManageSessionsBtn:hover,
.security-card #secChangePassBtn:hover,
.security-card #secChangeEmailBtn:hover,
.security-card #secActionRecoveryEmailBtn:hover {
  background-color: #FAF5FF !important;
  border-color: #8E37D7 !important;
  color: #8E37D7 !important;
}

.security-card .btn-outline-primary:active,
.security-card .btn-outline-secondary:active,
.security-card .btn-outline-success:active,
.security-card #secManageSessionsBtn:active,
.security-card #secChangePassBtn:active,
.security-card #secChangeEmailBtn:active,
.security-card #secActionRecoveryEmailBtn:active {
  background-color: #F3E8FF !important;
  border-color: #7A28C7 !important;
  color: #7A28C7 !important;
}

.security-card .btn-outline-primary:focus-visible,
.security-card .btn-outline-secondary:focus-visible,
.security-card .btn-outline-success:focus-visible,
.security-card #secManageSessionsBtn:focus-visible,
.security-card #secChangePassBtn:focus-visible,
.security-card #secChangeEmailBtn:focus-visible,
.security-card #secActionRecoveryEmailBtn:focus-visible {
  outline: none !important;
  border-color: #8E37D7 !important;
  box-shadow: 0 0 0 3px rgba(142, 55, 215, 0.2) !important;
}

/* Danger Button (关闭双因素认证) */
.security-card #secDisable2faBtn,
.security-card .btn-outline-danger {
  background-color: #ffffff !important;
  border-color: #FECACA !important;
  color: #DC2626 !important;
}

.security-card #secDisable2faBtn:hover,
.security-card .btn-outline-danger:hover {
  background-color: #FEF2F2 !important;
  border-color: #DC2626 !important;
  color: #B91C1C !important;
}

.security-card #secDisable2faBtn:active,
.security-card .btn-outline-danger:active {
  background-color: #FEE2E2 !important;
  border-color: #B91C1C !important;
  color: #991B1B !important;
}

.security-card #secDisable2faBtn:focus-visible,
.security-card .btn-outline-danger:focus-visible {
  outline: none !important;
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

/* Disabled State */
.security-card button:disabled,
.security-card .btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Tablet & Mobile Responsive */
@media (max-width: 1080px) {
  .security-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .security-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes checkoutSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orders-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
}

.orders-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #F3E8FF;
  border-top-color: #8E37D7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}




.sidebar .brand {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 0 8px 24px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.sidebar .brand-mark {
  width: 46px !important;
  height: 51px !important;
  min-width: 46px !important;
  min-height: 51px !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.sidebar .brand-mark svg {
  width: 46px !important;
  height: 51px !important;
  display: block !important;
}

.sidebar .brand-name {
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
}

.sidebar .brand-sub {
  font-size: 10px !important;
  color: #9CA3AF !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  margin-top: 3px !important;
}

/* ==========================================================================
   Wallet Checkout Payment Modal (Modern SaaS / FinTech Landscape Design)
   ========================================================================== */

.modal-card.wallet-checkout-modal {
  width: 920px !important;
  max-width: 920px !important;
  height: 640px !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: #FFFFFF !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  border: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.modal-card.wallet-checkout-modal::before {
  display: none !important;
}

.checkout-modal-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Left Column: Order Summary --- */
.checkout-summary-pane {
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  padding: 26px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
}

.checkout-summary-top {
  flex-shrink: 0;
}

.checkout-amount-hero {
  margin-bottom: 12px;
}

.checkout-amount-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 4px;
}

.checkout-amount-val-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0 0 6px 0;
}

.checkout-amount-currency-sym {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  margin-right: 2px;
}

.checkout-amount-number {
  font-size: 40px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1;
}

.checkout-amount-subtext {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.checkout-order-no-tag {
  display: inline-block;
  font-size: 11px;
  color: #64748B;
  background: #E2E8F0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.checkout-pane-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 12px 0 14px 0;
}

/* Middle: Order Specs Section (flex: 1 to naturally fill remaining vertical height) */
.checkout-specs-section {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.checkout-specs-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.checkout-specs-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
}

.checkout-spec-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease;
  flex: 1 1 auto;
}

.checkout-spec-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-spec-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366F1;
  flex-shrink: 0;
}

.checkout-spec-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.checkout-spec-subdesc {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}

.checkout-spec-val {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  white-space: nowrap;
}

/* Bottom: Shield Security Card */
.checkout-security-card {
  margin-top: 16px;
  background: #EEF2FF;
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.checkout-security-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #E0E7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-security-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E1B4B;
  line-height: 1.2;
}

.checkout-security-desc {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

/* --- Right Column: Payment Methods & Actions --- */
.checkout-payment-pane {
  padding: 30px 34px 24px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background: #FFFFFF;
  height: 100%;
  overflow-y: auto;
  min-height: 0;
}

.checkout-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.checkout-payment-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.checkout-payment-subtitle {
  font-size: 14px;
  color: #64748B;
  margin-top: 6px;
}

.checkout-close-btn {
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  margin: -4px -4px 0 0 !important;
}

.checkout-close-btn:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

.checkout-methods-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Method Cards */
.checkout-method-card {
  border-radius: 16px;
  padding: 22px 24px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.checkout-method-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.checkout-method-card.wallet-method.selected {
  border: 2px solid #8E37D7;
  box-shadow: 0 0 0 4px rgba(142, 55, 215, 0.08);
  background: #FFFFFF;
  cursor: default;
}

.checkout-method-card.online-method.selected,
.checkout-method-card.direct-method.selected {
  border: 2px solid #6366F1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
  background: #FFFFFF;
  cursor: default;
}

.checkout-method-card.online-method.selected .checkout-radio.active,
.checkout-method-card.direct-method.selected .checkout-radio.active {
  border-color: #6366F1;
}

.checkout-method-card.online-method.selected .checkout-radio.active .checkout-radio-dot,
.checkout-method-card.direct-method.selected .checkout-radio.active .checkout-radio-dot {
  background: #6366F1;
}

.checkout-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.checkout-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.checkout-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
}

.checkout-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkout-radio.active {
  border-color: #8E37D7;
  background: #FFFFFF;
}

.checkout-radio.active .checkout-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8E37D7;
}

.checkout-method-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-method-icon-box.purple {
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  color: #8E37D7;
}

.checkout-method-icon-box.gray {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
}

.checkout-method-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap !important;
}

.checkout-method-desc {
  font-size: 13px;
  color: #64748B;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap !important;
  text-overflow: ellipsis;
  overflow: hidden;
}

.checkout-method-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.checkout-status-pill span {
  white-space: nowrap !important;
}

.checkout-status-pill.green {
  background: #DCFCE7;
  color: #16A34A;
}

.checkout-status-pill.amber {
  background: #FEF3C7;
  color: #D97706;
}

.checkout-refresh-btn {
  background: transparent !important;
  border: none !important;
  color: #8E37D7 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.checkout-refresh-btn:hover {
  color: #7A2CB9 !important;
}

.checkout-refresh-btn.spinning svg {
  animation: checkoutSpin 0.75s linear infinite;
}

/* FinTech Balance Breakdown Smooth Expand/Collapse Animation */
.checkout-wallet-collapse-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  visibility: hidden;
}

.checkout-method-card.wallet-method.selected .checkout-wallet-collapse-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease 0.03s;
}

.checkout-wallet-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.checkout-wallet-body {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.checkout-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-balance-row-label {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.checkout-balance-row-val {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.checkout-balance-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 10px 0;
}

.checkout-balance-row.total-row .checkout-balance-row-label {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.checkout-balance-row-val.total-val {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.checkout-rule-row {
  margin-top: 12px;
  margin-bottom: 10px;
}

.checkout-rule-desc {
  font-size: 12px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-status-box {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.checkout-status-box.sufficient {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-weight: 500;
}

.checkout-status-box.insufficient {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.checkout-status-box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-status-box-desc {
  font-size: 12px;
  color: #B45309;
  font-weight: 400;
  line-height: 1.4;
}

/* Direct Payment Bullets */
.checkout-direct-bullets {
  margin-top: 14px;
  margin-left: 78px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-bullet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
}

.bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
}

/* Footer Actions */
.checkout-actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}

.checkout-btn-cancel {
  height: 46px !important;
  padding: 0 24px !important;
  border-radius: 10px !important;
  background: #F1F5F9 !important;
  border: none !important;
  color: #475569 !important;
  font-weight: 600 !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;
}

.checkout-btn-cancel:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

.checkout-btn-primary {
  height: 46px !important;
  padding: 0 28px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #2D1577 0%, #1A0E4B 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(35, 18, 91, 0.35) !important;
  transition: all 0.15s ease !important;
}

.checkout-btn-primary:hover {
  background: linear-gradient(135deg, #3B1B99 0%, #251468 100%) !important;
  box-shadow: 0 6px 18px rgba(35, 18, 91, 0.45) !important;
}

.checkout-btn-primary:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Responsive Media Query */
@media (max-width: 860px) {
  .modal-card.wallet-checkout-modal {
    width: 95% !important;
    max-width: 95% !important;
    height: auto !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    margin: 16px auto !important;
    border-radius: 18px !important;
  }

  .checkout-modal-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .checkout-summary-pane {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 24px 20px;
    height: auto;
    overflow: visible;
  }

  .checkout-amount-number {
    font-size: 36px;
  }

  .checkout-payment-pane {
    padding: 24px 20px;
    height: auto;
    overflow: visible;
  }

  .checkout-direct-bullets {
    margin-left: 0;
    margin-top: 10px;
  }

  .checkout-actions-footer {
    flex-direction: column-reverse;
    width: 100%;
    gap: 8px;
  }

  .checkout-actions-footer button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   Stripe In-Site Embedded Checkout & QR Code UX Styles
   ========================================================================== */
.stripe-insite-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.stripe-insite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.stripe-insite-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stripe-insite-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.stripe-badge-secure {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stripe-embedded-mount-wrap {
  width: 100%;
  min-height: 360px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #FAFAFA;
  padding: 12px;
  box-sizing: border-box;
}

.stripe-status-awaiting-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  color: #1E40AF;
  font-size: 12px;
  font-weight: 500;
}

.stripe-status-awaiting-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(30, 64, 175, 0.3);
  border-top-color: #1E40AF;
  border-radius: 50%;
  animation: stripe-spin 0.8s linear infinite;
}

@keyframes stripe-spin {
  to { transform: rotate(360deg); }
}

.stripe-in-site-error-box {
  padding: 24px;
  text-align: center;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-radius: 12px;
  color: #991B1B;
}

.stripe-error-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stripe-error-msg {
  font-size: 13px;
  color: #B91C1C;
  line-height: 1.5;
}


