/* =========================================================
   OnShun - Design System
   OnShun branded UI with orange accent gradient
   ========================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---- CSS Variables (Design Tokens) ---- */
:root {
  /* Primary Yellow Gradient */
  --color-primary: #F5A623;
  --color-primary-light: #FFD700;
  --color-primary-dark: #E8910F;
  --gradient-primary: linear-gradient(135deg, #FFD700 0%, #F5A623 50%, #E8910F 100%);
  --gradient-primary-h: linear-gradient(90deg, #FFD700 0%, #F5A623 50%, #E8910F 100%);
  --gradient-btn: linear-gradient(135deg, #F5C518 0%, #F5A623 100%);

  /* Neutral Palette */
  --color-bg-dark: #0A0A0A;
  --color-bg-dark-secondary: #111111;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F7F8FA;
  --color-border: #E5E6EB;
  --color-border-light: #F0F0F0;

  /* Text Colors */
  --color-text-primary: #212121;
  --color-text-secondary: #818290;
  --color-text-tertiary: #ABACB6;
  --color-text-white: #FFFFFF;
  --color-text-muted: rgba(255,255,255,0.65);

  /* Semantic */
  --color-success: #F5A623;
  --color-error: #FF4D4F;
  --color-warning: #FAAD14;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; -webkit-appearance: none; appearance: none; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- Utility ---- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  height: 49px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-btn);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.45);
  filter: brightness(1.05);
}
.btn-outline {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover { color: var(--color-text-primary); }
.btn-dashed {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border);
}
.btn-dashed:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { height: 56px; font-size: var(--text-lg); }
.btn-sm { height: 36px; font-size: var(--text-sm); padding: 0 var(--space-4); }

/* ---- Form Components ---- */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  height: 49px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}
.form-input::placeholder { color: var(--color-text-tertiary); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}
.form-input-lg { height: 56px; font-size: var(--text-lg); }
.input-with-suffix {
  position: relative;
}
.input-with-suffix .form-input { padding-right: var(--space-10); }
.input-suffix {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  font-size: var(--text-lg);
}
.input-suffix:hover { color: var(--color-text-primary); }

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

/* ---- Cards ---- */
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-select {
  cursor: pointer;
  position: relative;
}
.card-select .check-icon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}
.card-select.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}
.card-select.selected .check-icon { opacity: 1; transform: scale(1); }
.card-select .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

/* ---- Divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin: var(--space-6) 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---- Steps ---- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 100%;
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin-left: var(--space-2);
}
.step:last-child::after { display: none; }
.step-number {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step.active .step-number {
  background: var(--gradient-btn);
  color: #1a1a1a;
}
.step.completed .step-number {
  background: var(--color-primary);
  color: white;
}
.step-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: 500;
}
.step.active .step-label { color: var(--color-primary); font-weight: 600; }
.step.completed .step-label { color: var(--color-text-primary); }

/* ---- Progress Bar variant ---- */
.step-progress {
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
  gap: 0;
}
.step-progress .step-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: var(--space-4);
}
.step-progress .step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
}
.step-progress .step-item.active::before,
.step-progress .step-item.completed::before {
  background: var(--gradient-primary-h);
}
.step-progress .step-item.completed::before { background: var(--color-primary); }
.step-progress .step-text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: 500;
}
.step-progress .step-item.active .step-text,
.step-progress .step-item.completed .step-text {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ---- Checkbox / Radio ---- */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.checkbox-wrap a { color: var(--color-primary); text-decoration: underline; }

/* ---- OTP Inputs ---- */
.otp-group {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  transition: all var(--transition-fast);
}
.otp-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

/* ---- Link ---- */
.link-primary {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-primary:hover { color: var(--color-primary-dark); }
.link-secondary {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-secondary:hover { color: var(--color-text-primary); }

/* ---- Tooltip / Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}
.badge-yellow { background: rgba(245, 166, 35, 0.12); color: var(--color-primary-dark); }
.badge-green { background: rgba(245, 166, 35, 0.12); color: var(--color-success); }
.badge-red { background: rgba(255, 77, 79, 0.12); color: var(--color-error); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* =========================================================
   PAGE: SIGN-IN
   ========================================================= */
.signin-page {
  min-height: 100vh;
  display: flex;
}

/* Left Panel */
.signin-left {
  flex: 1;
  min-height: 100vh;
  background: var(--color-bg-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  overflow: hidden;
}
.signin-left::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.signin-left::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.signin-left .logo-left {
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-white);
  z-index: 2;
}
.signin-left .logo-left .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-lg);
}
.signin-left .hero-laptop {
  width: 40vw;
  max-width: 576px;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.signin-left .hero-text {
  margin-top: var(--space-8);
  text-align: center;
  z-index: 1;
  max-width: 520px;
}
.signin-left .hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-text-white);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}
.signin-left .hero-text p {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.signin-left .brand-logos {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0 var(--space-8);
  z-index: 1;
}
.signin-left .brand-logos img,
.signin-left .brand-logos span {
  height: 20px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
.signin-left .marquee {
  position: absolute;
  bottom: calc(var(--space-8) + 40px);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}

/* Right Panel */
.signin-right {
  flex: 1;
  min-height: 100vh;
  background: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.signin-right .top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
}
.signin-right .top-bar .lang-btn,
.signin-right .top-bar .app-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.signin-right .top-bar .lang-btn:hover,
.signin-right .top-bar .app-btn:hover {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}
.signin-right .top-bar .lang-btn .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #B22234 0%, #B22234 7.7%, white 7.7%, white 15.4%, #B22234 15.4%, #B22234 23.1%, white 23.1%, white 30.8%, #B22234 30.8%, #B22234 38.5%, white 38.5%, white 46.2%, #B22234 46.2%, #B22234 53.9%, white 53.9%, white 61.6%, #B22234 61.6%, #B22234 69.3%, white 69.3%, white 77%, #B22234 77%, #B22234 84.7%, white 84.7%, white 92.4%, #B22234 92.4%);
  position: relative;
}
.signin-right .top-bar .lang-btn .flag::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 40%; height: 53.8%;
  background: #3C3B6E;
}
.signin-right .form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.signin-right .form-logo {
  width: 64px;
  height: 64px;
  background: var(--gradient-btn);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}
.signin-right .form-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
}
.signin-right .forgot-link {
  display: block;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  text-decoration: underline;
}
.signin-right .forgot-link:hover { color: var(--color-text-primary); }
.signin-right .form-footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}
.signin-right .social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
}
.signin-right .social-buttons .btn {
  height: 42px;
  font-size: var(--text-sm);
  gap: var(--space-1);
}
.signin-right .social-buttons .btn svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   PAGE: SIGN-UP
   ========================================================= */
.signup-page {
  min-height: 100vh;
  background: var(--color-bg-white);
}
.signup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}
.signup-header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}
.signup-header .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-lg);
}
.signup-header .header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.signup-header .close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-xl);
  transition: all var(--transition-fast);
}
.signup-header .close-btn:hover { background: var(--color-bg-light); color: var(--color-text-primary); }

.signup-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}
.signup-content .page-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.account-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.account-type-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background: var(--color-bg-white);
}
.account-type-card:hover { border-color: var(--color-primary); }
.account-type-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}
.account-type-card .check {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}
.account-type-card.selected .check { opacity: 1; transform: scale(1); }
.account-type-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.account-type-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.account-type-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.signup-hints {
  margin-bottom: var(--space-6);
}
.signup-hints li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.signup-hints li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-text-tertiary);
  margin-top: 8px;
  flex-shrink: 0;
}

.signup-footer {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Step 2: Email Verification */
.step2-form { max-width: 420px; margin: 0 auto; }
.step2-form .form-row { display: flex; gap: var(--space-3); align-items: flex-end; }
.step2-form .form-row .form-group { flex: 1; }
.send-code-btn {
  height: 49px;
  padding: 0 var(--space-4);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}
.send-code-btn:hover { color: var(--color-primary-dark); }

/* Step 3: Set Password */
.step3-form { max-width: 420px; margin: 0 auto; }
.contact-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.contact-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.contact-section-header h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.contact-section-header p {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Step 4: Completed */
.step-complete {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.step-complete .success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: #1a1a1a;
  font-size: var(--text-3xl);
}
.step-complete h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.step-complete p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */
.dashboard-page {
  min-height: 100vh;
  background: var(--color-bg-light);
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--color-bg-white);
  border-right: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}
.sidebar-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}
.sidebar-header .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-lg);
}
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}
.sidebar-nav .nav-group {
  margin-bottom: var(--space-4);
}
.sidebar-nav .nav-group-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}
.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-1);
}
.sidebar-nav .nav-item:hover {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}
.sidebar-nav .nav-item.active {
  background: rgba(245, 166, 35, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}
.sidebar-nav .nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-light);
}
.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-weight: 600;
  font-size: var(--text-sm);
}
.sidebar-footer .user-meta { flex: 1; }
.sidebar-footer .user-meta .name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.sidebar-footer .user-meta .role {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
  height: 64px;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-navbar .page-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}
.top-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.top-navbar .navbar-actions .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
  position: relative;
}
.top-navbar .navbar-actions .icon-btn:hover { background: var(--color-bg-light); color: var(--color-text-primary); }
.top-navbar .navbar-actions .icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-error);
  border: 2px solid var(--color-bg-white);
}

/* Dashboard Content */
.dashboard-content {
  padding: var(--space-6);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.stat-card .stat-change {
  font-size: var(--text-xs);
  font-weight: 500;
}
.stat-card .stat-change.up { color: var(--color-success); }
.stat-card .stat-change.down { color: var(--color-error); }

/* Chart Section */
.chart-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.chart-card-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}
.chart-placeholder {
  height: 240px;
  background: linear-gradient(135deg, rgba(245,166,35,0.03) 0%, rgba(255,215,0,0.03) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  border: 1px dashed var(--color-border);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border-light);
}
.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-bg-light); }

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.activity-item:hover { background: var(--color-bg-light); }
.activity-item .activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(245, 166, 35, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.activity-item .activity-meta { flex: 1; }
.activity-item .activity-meta .title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.activity-item .activity-meta .time {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}
.activity-item .activity-amount {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Cards Page */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.credit-card {
  aspect-ratio: 1.586;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-lg);
}
.credit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.credit-card .card-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  z-index: 1;
}
.credit-card .card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
  border-radius: 6px;
  z-index: 1;
}
.credit-card .card-number {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: 3px;
  z-index: 1;
}
.credit-card .card-footer {
  display: flex;
  justify-content: space-between;
  z-index: 1;
}
.credit-card .card-footer .label {
  font-size: var(--text-xs);
  opacity: 0.7;
}
.credit-card .card-footer .value {
  font-size: var(--text-sm);
  font-weight: 600;
}
.credit-card-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .signin-page { flex-direction: column; }
  .signin-left { min-height: auto; padding: var(--space-8) var(--space-4); display: none; }
  .signin-left .hero-laptop { width: 80vw; }
  .signin-right { min-height: auto; }
  .signup-content { padding: var(--space-6) var(--space-4); }
  .account-type-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition-normal); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .dashboard-content { padding: var(--space-4); }
}

/* =========================================================
   I18N LANGUAGE SWITCHER
   ========================================================= */
[data-lang-switch] { position: relative; display: inline-block; }
[data-lang-switch] .lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
[data-lang-switch] .lang-btn:hover { background: var(--color-bg-light); color: var(--color-text-primary); }
[data-lang-switch] .lang-btn .lang-flag { font-size: 15px; line-height: 1; }
[data-lang-switch] .lang-btn svg { flex-shrink: 0; }
[data-lang-switch] .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 1000;
  display: none !important;
  flex-direction: column;
  max-height: 380px;
  overflow-y: auto;
}
[data-lang-switch].open .lang-menu { display: flex !important; flex-direction: column; }
[data-lang-switch] .lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--transition-fast);
}
[data-lang-switch] .lang-option:hover { background: #F5F7FA; color: var(--color-text-primary); }
[data-lang-switch] .lang-option.current { color: var(--color-primary); background: rgba(245,166,35,0.08); }
[data-lang-switch] .lang-option .lang-flag {
  font-size: 18px;
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
  text-align: left;
}
[data-lang-switch] .lang-option .lang-code {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  width: 34px;
  flex-shrink: 0;
  text-align: left;
}
[data-lang-switch] .lang-option .lang-name {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: left;
  white-space: nowrap;
}

/* Dark top-navbar / sidebar contexts */
.top-navbar [data-lang-switch] .lang-btn { color: var(--color-text-primary); }
.top-navbar [data-lang-switch] .lang-btn:hover { background: var(--color-bg-light); }
@media (prefers-reduced-motion: reduce) {
  [data-lang-switch] .lang-menu { transition: none; }
}

/* ============================================================
   Reset Password Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
  padding: 0;
}
.modal-close:hover { background: #f2f2f2; color: #666; }
.modal-icon {
  text-align: center;
  margin-bottom: 10px;
}
.modal-icon svg {
  width: 36px;
  height: 36px;
  color: #2c2c2c;
  stroke-width: 1.8;
}
.modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.modal-form .form-group { margin-bottom: 20px; }
.modal-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}
.modal-form .form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-body);
}
.modal-form .form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.modal-form .form-input::placeholder { color: #bbb; }
.modal-form .code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-form .code-row .form-label { margin-bottom: 0; }
.modal-form .send-code {
  font-size: 13px;
  color: #F5A623;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0;
}
.modal-form .send-code:hover { text-decoration: underline; }
.modal-form .send-code:disabled { color: #ccc; cursor: not-allowed; text-decoration: none; }
.modal-form .code-boxes {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.modal-form .code-boxes input {
  width: 52px;
  height: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-body);
  caret-color: var(--color-primary);
}
.modal-form .code-boxes input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.modal-form .pwd-hint {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
}
.modal-form .btn-complete {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #e8e8e8;
  color: #bbb;
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  margin-top: 4px;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.5px;
}
.modal-form .btn-complete.active {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}
.modal-form .btn-complete.active:hover {
  background: var(--color-primary-dark);
}
.modal-form .input-with-suffix { position: relative; }
.modal-form .input-with-suffix .form-input { padding-right: 44px; }
.modal-form .input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 0;
  display: flex;
  align-items: center;
}
.modal-form .input-suffix:hover { color: #888; }
@media (max-width: 480px) {
  .modal-content { margin: 16px; padding: 24px; }
  .modal-form .code-boxes input { width: 44px; height: 44px; }
}

/* =========================================================
   DOGPAY V2 — NEW DASHBOARD SKELETON
   ========================================================= */

/* ---- Sidebar V2 ---- */
.sidebar-v2 {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
}
.sidebar-v2 .sb-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}
.sidebar-v2 .sb-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #1a1a1a;
}
/* OnShun brand logo icon — orange accent, white "O" monogram */
.logo-icon-onshun,
.sidebar-v2 .sb-logo .logo-icon.logo-icon-onshun,
.signin-left .logo-left .logo-icon.logo-icon-onshun,
.signup-header .logo-icon.logo-icon-onshun,
.sidebar-header .logo-icon.logo-icon-onshun {
  background: linear-gradient(135deg, #FFB64B 0%, #F5A623 45%, #E89513 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(245, 166, 35, 0.28);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* User profile in sidebar */
.sb-user {
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sb-user-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.sb-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.sb-balance-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.sb-balance-label svg { width: 14px; height: 14px; stroke-width: 2; }
.sb-balance-amount {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 2px;
}
.sb-balance-amount .currency {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Nav V2 */
.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3);
}
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}
.sb-nav-item:hover {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}
.sb-nav-item.active {
  background: rgba(245,166,35,0.1);
  color: var(--color-success);
  font-weight: 600;
}
.sb-nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* Sidebar bottom */
.sb-bottom {
  padding: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}
.sb-ai-workspace {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, rgba(245,166,35,0.02) 100%);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sb-ai-workspace:hover {
  border-color: rgba(245,166,35,0.3);
  background: linear-gradient(135deg, rgba(245,166,35,0.1) 0%, rgba(245,166,35,0.04) 100%);
}
.sb-ai-workspace .ai-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
}
.sb-ai-workspace .ai-text {
  flex: 1;
}
.sb-ai-workspace .ai-text .title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-ai-workspace .ai-text .title .free-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(245,166,35,0.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.sb-ai-workspace .ai-text .sub {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.sb-switch-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sb-switch-user:hover { background: var(--color-bg-light); color: var(--color-text-primary); }
.sb-switch-user .su-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  display: flex; align-items: center; justify-content: center;
  color: #1a1a1a;
  font-size: var(--text-xs);
  font-weight: 700;
}

/* Customer service icon */
.sb-cs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}
.sb-cs-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sb-cs-btn:hover { background: var(--color-border); color: var(--color-text-primary); }

/* ---- Top Navbar V2 ---- */
.top-navbar-v2 {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-navbar-v2 .page-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}
.top-navbar-v2 .navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.top-navbar-v2 .nav-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.top-navbar-v2 .nav-btn:hover { background: var(--color-bg-light); color: var(--color-text-primary); }
.top-navbar-v2 .nav-btn .badge-star {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid #fff;
}
.top-navbar-v2 .nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.top-navbar-v2 .nav-user:hover { background: var(--color-bg-light); }
.top-navbar-v2 .nav-user .nu-avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}
.top-navbar-v2 .nav-user .nu-email {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-navbar-v2 .nav-user svg { flex-shrink: 0; transition: transform var(--transition-fast); }
.top-navbar-v2 .nav-user.active svg { transform: rotate(180deg); }

/* ---- User Dropdown ---- */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 999;
  overflow: hidden;
}
.user-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
}

.udh-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

.udh-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  text-align: center;
}

.udh-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.udh-level svg {
  width: 12px;
  height: 12px;
}

.udh-id {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}
.udh-id:hover {
  background: rgba(24,144,255,0.06);
}
.udh-id-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.udh-id-copy {
  display: flex;
  align-items: center;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}
.udh-id:hover .udh-id-copy {
  color: #1890FF;
}
.udh-id-copy svg {
  width: 14px;
  height: 14px;
}

.user-dropdown-menu {
  padding: var(--space-2);
}

.udm-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
}
.udm-item:hover {
  background: var(--color-bg-light);
  color: var(--color-primary-dark);
}
.udm-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.udm-item:hover svg {
  color: var(--color-primary-dark);
}

.udm-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: var(--space-2) 0;
}

.udm-item-logout {
  color: var(--color-text-primary);
}
.udm-item-logout:hover {
  background: rgba(255,77,79,0.06);
  color: var(--color-error);
}
.udm-item-logout:hover svg {
  color: var(--color-error);
}

/* Copy feedback toast */
.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  opacity: 0;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.top-navbar-v2 .api-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1890FF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.top-navbar-v2 .api-link:hover { background: rgba(24,144,255,0.08); }

/* ---- Main Content V2 ---- */
.main-content-v2 {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  background: var(--color-bg-light);
  overflow-x: hidden;
  min-width: 0;
}
.dash-content-v2 {
  padding: var(--space-6);
}

/* ---- Welcome Section ---- */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
}
.welcome-left { flex: 1; }
.welcome-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.welcome-title .hi-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #F5A623 0%, #FFD700 100%);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-md);
  position: relative;
}
.welcome-title .hi-badge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 0 Q5 6 10 2 Q15 6 20 0' fill='%23F5A623'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.welcome-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

/* Steps */
.verification-steps {
  margin-bottom: var(--space-5);
}
.verification-steps .step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.verification-steps .step-item .step-num {
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-text-tertiary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.verification-steps .step-item .step-body {
  flex: 1;
}
.verification-steps .step-item .step-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.verification-steps .step-item .step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.verification-steps .step-item .step-desc a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}
.verification-steps .step-item.active .step-num {
  background: var(--color-success);
}
.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 24px;
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-verify:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}

/* Welcome illustration */
.welcome-illustration {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Products Section ---- */
.section-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.products-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.product-card .pc-icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
}
.product-card .pc-icon svg { width: 24px; height: 24px; }
.product-card .pc-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ---- Reference Rate ---- */
.rate-section {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.rate-section .rate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.rate-section .rate-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}
.rate-converter {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.rate-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.rate-input-group input {
  border: none;
  background: transparent;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  width: 80px;
  outline: none;
}
.rate-input-group .rate-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-left: var(--space-2);
  border-left: 1px solid var(--color-border-light);
}
.rate-input-group .rate-currency svg { width: 16px; height: 16px; }
.rate-swap-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.rate-swap-btn:hover { background: var(--color-border); color: var(--color-text-primary); }
.rate-time-tabs {
  display: inline-flex;
  background: #F5F5F5;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.rate-time-tab {
  border: none;
  background: transparent;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}
.rate-time-tab:hover { color: var(--color-text-primary); }
.rate-time-tab.active {
  background: var(--color-success);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.rate-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}
.rate-info .rate-value {
  font-weight: 700;
  color: var(--color-text-primary);
}
.rate-info svg { width: 14px; height: 14px; }

/* ---- Responsive V2 ---- */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .welcome-section { flex-direction: column; }
  .welcome-illustration { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar-v2 { transform: translateX(-100%); transition: transform var(--transition-normal); }
  .sidebar-v2.open { transform: translateX(0); }
  .main-content-v2 { margin-left: 0; }
  .products-grid { grid-template-columns: 1fr; }
  .rate-converter { flex-direction: column; align-items: stretch; }
}

/* ---- KYC Verification Page ---- */
.kyc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  max-width: 560px;
  margin: 0 auto;
}
.kyc-shield {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #F5A623 0%, #FFD700 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-6);
}
.kyc-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}
.kyc-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 440px;
}
.kyc-btn-verify {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 32px;
  background: linear-gradient(135deg, #F5A623 0%, #E8910F 100%);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-8);
}
.kyc-btn-verify:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}
.kyc-qr-section {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}
.kyc-qr-code {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.kyc-qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}
.kyc-qr-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
}
.kyc-qr-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.kyc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--color-primary-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.kyc-status-badge svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 768px) {
  .kyc-qr-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .kyc-qr-info {
    align-items: center;
    text-align: center;
  }
}

/* =========================================================
   Verified Dashboard (OnShun) — Home with balance / exchange / tx
   ========================================================= */

/* ---- Section Title (with leading green plus icon) ---- */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}
.section-title .ex-title-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #F5A623;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Total Balance Card (Green Gradient) ---- */
.total-balance-card {
  position: relative;
  background: linear-gradient(135deg, #FFCA40 0%, #F5A623 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 20px;
  overflow: visible;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.18);
}
.tbc-left { position: relative; z-index: 2; }
.tbc-right {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
}
.tbc-pattern { width: 100%; height: 100%; display: block; }
.tbc-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tbc-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tbc-label {
  font-size: 16px;
  font-weight: 600;
}
.tbc-tip {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.tbc-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tbc-currency-prefix {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.tbc-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.tbc-currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}
.tbc-currency-btn:hover { background: rgba(255,255,255,0.32); }

/* ---- Three Balance Cards ---- */
.balance-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.balance-card:hover {
  border-color: #F5A623;
  box-shadow: 0 4px 14px rgba(245,166,35,0.10);
  transform: translateY(-1px);
}
.bc-left { display: flex; align-items: center; gap: 12px; }
.bc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(245,166,35,0.10);
  color: #F5A623;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bc-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.bc-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.bc-amount .bc-currency {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

/* ---- Exchange Center Section ---- */
.exchange-section {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.ex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ex-head .section-title { margin-bottom: 0; }
.ex-more {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}
.ex-more:hover { color: #F5A623; }

.ex-body {
  display: grid;
  grid-template-columns: minmax(420px, 40%) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.ex-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ex-input-card {
  background: #FAFAFA;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 14px 16px;
}
.eic-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 6px;
  position: relative;
  column-gap: 12px;
}
/* Right column inside eic-head: currency on top, balance directly below — right-aligned */
.eic-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}
.eic-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.eic-currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
}
.eic-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Currency symbol (letter in badge) rendered via data attribute ::before */
.eic-dot[data-cur]::before {
  content: attr(data-cur);
}
/* 8 currencies — backgrounds matched to user screenshot palette */
.dot-usdc { background: #2775CA; }
.dot-usdt { background: #26A17B; }
.dot-btc  { background: #F7931A; }
.dot-eth  { background: #627EEA; }
.dot-sol  { background: #9945FF; }
.dot-doge { background: #C2A633; }
.dot-trx  { background: #FF0013; }
.dot-usd  { background: #15428F; }

/* Currency dropdown popover — appears below the .eic-currency trigger */
.eic-dd {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 144px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.eic-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: background 120ms ease;
}
.eic-dd-item:hover { background: #F4F5F7; }
.eic-dd-item.active {
  background: rgba(22,119,255,0.08);
  color: var(--color-primary-dark);
}
.eic-balance {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: right;
  line-height: 1.3;
}
.eic-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 8px 10px;
}
.eic-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 0;
  transition: color 0.12s ease;
}
.eic-input input.is-empty,
.ex-amount-input.is-empty {
  color: #9E9E9E !important;
  font-weight: 400 !important;
}
.eic-input-suffix {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}
.eic-max {
  border: none;
  background: transparent;
  color: #F5A623;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
}
.eic-max:hover { text-decoration: underline; }

.ex-swap {
  align-self: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -4px auto;
  z-index: 1;
}

/* Rate Chart */
.ex-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
}
.ex-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ex-chart-info { display: flex; flex-direction: column; gap: 2px; }
.ec-rate-line {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.ec-rate-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.ec-update-line {
  font-size: 11px;
  color: var(--color-text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ec-info-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-tertiary);
  cursor: help;
}
.ec-time-tabs {
  display: inline-flex;
  background: #F5F5F5;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.ec-time-tab {
  border: none;
  background: transparent;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms ease;
}
.ec-time-tab.active {
  background: var(--color-success);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.ec-time-tab:hover:not(.active) { color: var(--color-text-primary); }

.ex-chart-svg {
  flex: 1 1 auto;
  height: 400px;
  min-height: 360px;
  position: relative;
  background: linear-gradient(180deg, rgba(250,140,22,0.03) 0%, rgba(250,140,22,0.00) 100%);
  border-radius: 8px;
  overflow: hidden;
}
.ex-chart-svg svg { width: 100%; height: 100%; display: block; }

.ex-chart-tooltip {
  position: absolute;
  background: #1f1f1f;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  transform: translateX(-50%);
}
.ex-chart-tooltip .tooltip-date {
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}
.ex-chart-tooltip .tooltip-rate {
  color: #ccc;
  font-size: 12px;
}

.ex-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 16px;
  gap: 40px;
  flex-wrap: wrap;
}
.ex-rate-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 319px;
}
.ex-confirm {
  padding: 9px 28px;
  background: #C7CBD2;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  -webkit-appearance: none;
  appearance: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
  min-width: 172px;
}
.ex-confirm:hover:not(:disabled) { background: #B0B5BD; }
.ex-confirm.is-active,
.ex-confirm:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}
.ex-confirm.is-active:hover,
.ex-confirm:not(:disabled):hover {
  background: var(--color-primary-dark);
}

/* Dashboard Exchange Section — reuse Exchange Center chart style */
.exchange-section .ex-body {
  grid-template-columns: minmax(340px, 36%) minmax(0, 64%) !important;
}
@media (max-width: 480px) {
  .exchange-section .ex-body { grid-template-columns: 1fr !important; }
}

.exchange-section .ex-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  justify-content: flex-start;
  min-height: 0;
}
.exchange-section .ex-input-card {
  background: #FAFAFA;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 22px 22px;
  flex: 0 0 auto;
}
.exchange-section .eic-head {
  margin-bottom: 10px;
}
.exchange-section .eic-balance {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.exchange-section .eic-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 14px 14px;
}
.exchange-section .eic-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 0;
  padding: 2px 0;
  transition: color 0.12s ease;
}
.exchange-section .eic-input input.is-empty,
.exchange-section .ex-amount-input.is-empty {
  color: #9E9E9E !important;
  font-weight: 400 !important;
}
.exchange-section .ex-swap {
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -8px auto;
  z-index: 2;
  flex: 0 0 auto;
}

/* Footer inside left column: 2-col grid, all items bottom-align with each other and with right chart edge */
.exchange-section .ex-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: start;
  margin: 0;
  margin-top: auto;        /* push down toward column bottom */
  margin-bottom: 60px;     /* lift footer 60px above column bottom (both rate + confirm) */
  padding: 0;
  padding-top: 16px;
  column-gap: 16px;
  row-gap: 8px;
  border-top: none;
}
.exchange-section .ex-rate-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-left: 22px; /* match .ex-input-card padding-left so text aligns with sell/buy content */
  flex-wrap: wrap;
  align-self: end;
}
.exchange-section .ex-confirm {
  padding: 8px 20px;
  background: #C7CBD2;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
  min-width: 120px;
  flex: 0 0 auto;
  align-self: end;
  justify-self: end;
}
.exchange-section .ex-confirm.is-active,
.exchange-section .ex-confirm:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}
.exchange-section .ex-confirm.is-active:hover,
.exchange-section .ex-confirm:not(:disabled):hover {
  background: var(--color-primary-dark);
}
.exchange-section .ex-confirm:disabled {
  background: #C7CBD2;
  cursor: not-allowed;
  pointer-events: none;
}
.exchange-section .ex-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.exchange-section .ex-chart .ec-time-tabs {
  align-self: flex-end;
}
.exchange-section .ex-chart-wrap {
  width: 100%;
  height: 400px;
  flex: 1 1 auto;
  min-height: 360px;
}
.exchange-section .ex-chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.exchange-section .ex-rate-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.exchange-section .ex-rate-title .ec-rate-value {
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}
.exchange-section .ex-rate-title .ec-rate-line {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 700;
  margin-right: 2px;
}

/* Dashboard Chart tooltip — matches the reference crosshair tooltip design (dark rounded card) */
.ex-chart-wrap { position: relative; }
.ex-chart-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 148px;
  padding: 8px 12px;
  background: #3A3F48;
  color: #FFFFFF;
  border-radius: 6px;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.ex-chart-tooltip .ex-tt-date {
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2px;
  font-weight: 500;
}
.ex-chart-tooltip .ex-tt-rate {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
}
.ex-chart-tooltip .ex-tt-rate-val {
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

/* ---- Recent Transactions ---- */
.recent-tx {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.rt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.rt-head .section-title { margin-bottom: 0; }
.rt-actions { display: flex; align-items: center; gap: 16px; }
.rt-more {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
}
.rt-more:hover { color: #F5A623; }
.rt-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FFF7E6;
  border: 1px solid #FFE7BA;
  color: #D46B08;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
}
.rt-msg:hover { background: #FFF1D6; }
.rt-msg-icon { display: inline-flex; align-items: center; }
.rt-msg .badge-star {
  position: absolute;
  top: 4px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FA8C16;
}

.recent-tx-body {
  position: relative;
  min-height: 160px;
}
.recent-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.recent-tx-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 12px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--color-border-light);
}
.recent-tx-table th.ta-r { text-align: right; }
.recent-tx-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.recent-tx-table td.ta-r { text-align: right; }
.recent-tx-table tbody tr:last-child td { border-bottom: none; }
.recent-tx-table td .eic-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.amount-up { color: #F5A623; font-weight: 600; }
.amount-down { color: #FA8C16; font-weight: 600; }
.tx-status-completed {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(245,166,35,0.10);
  color: #E8910F;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
}

.rt-empty {
  position: absolute;
  right: 32px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text-tertiary);
  font-size: 12px;
  pointer-events: none;
}
.rt-empty-icon { opacity: 0.8; }

@media (max-width: 1024px) {
  .exchange-section .ex-body { grid-template-columns: minmax(320px, 38%) minmax(0, 62%) !important; }
  .balance-cards-grid { grid-template-columns: 1fr; }
  .tbc-amount { font-size: 32px; }
}
@media (max-width: 480px) {
  .exchange-section .ex-body { grid-template-columns: 1fr !important; }
  .total-balance-card { padding: 20px; }
  .tbc-amount { font-size: 28px; }
  .ex-head, .rt-head { flex-direction: column; align-items: flex-start; }
}


/* ---- KYC State Switch (unverified / verified) ---- */
.dash-state {
  animation: dash-state-fade 300ms ease;
}
@keyframes dash-state-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
#kyc-toggle-btn.kyc-verified {
  color: var(--color-success);
}
#kyc-toggle-btn:not(.kyc-verified) {
  color: var(--color-primary);
}

/* ---- Bank Account Page ---- */
.bank-content-v2 {
  padding: var(--space-6) var(--space-8);
}

/* Balance Section */
.bank-balance-section {
  margin-bottom: var(--space-6);
}
.bb-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.bb-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.bb-info-icon {
  color: var(--color-text-tertiary);
  cursor: help;
}
.bb-hint {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}
.bb-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}
.bb-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 4px;
}

/* Tabs */
.bank-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-4);
}
.bank-tab {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  user-select: none;
}
.bank-tab:hover {
  color: var(--color-text-primary);
}
.bank-tab.active {
  color: var(--color-success);
}
.bank-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-success);
  border-radius: 1px;
}

/* Filter Bar */
.bank-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.bf-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.bf-input,
.bf-select {
  width: 180px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}
.bf-input::placeholder {
  color: var(--color-text-tertiary);
}
.bf-input:focus,
.bf-select:focus {
  border-color: var(--color-success);
}
.bf-select-wrap {
  position: relative;
}
.bf-select {
  padding-right: 28px;
  cursor: pointer;
}
.bf-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.bf-apply-btn {
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-success);
  background: #fff;
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.bf-apply-btn:hover {
  background: var(--color-success);
  color: #fff;
}

/* Table Wrap */
.bank-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  min-height: 280px;
  position: relative;
}

/* Table */
.bank-table {
  width: 100%;
  border-collapse: collapse;
}
.bank-table thead th {
  text-align: left;
  padding: 14px var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  background: #fff;
}
.bank-table tbody td {
  padding: 16px var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}
.bank-table tbody tr:last-child td {
  border-bottom: none;
}
.bank-table tbody tr:hover {
  background: var(--color-bg-light);
}

/* Empty State */
.bank-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px var(--space-5);
  color: var(--color-text-tertiary);
}
.bes-icon {
  margin-bottom: var(--space-3);
  opacity: 0.35;
}
.bes-text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {
  .bank-content-v2 {
    padding: var(--space-4);
  }
  .bf-input,
  .bf-select {
    width: 160px;
  }
}
@media (max-width: 768px) {
  .bank-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bf-inputs {
    width: 100%;
  }
  .bf-input,
  .bf-select {
    width: 100%;
  }
  .bf-apply-btn {
    width: 100%;
    text-align: center;
  }
  .bank-table thead th,
  .bank-table tbody td {
    padding: 12px var(--space-3);
  }
}

/* ---- VIP / Prepaid Card Page ---- */
.main-content-v2:has(.vip-content-v2) {
  background: var(--color-bg-white);
}
.vip-content-v2 {
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg-white);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Top Tabs */
.vip-top-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-5);
}
.vtt-item {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  user-select: none;
}
.vtt-item:hover {
  color: var(--color-text-primary);
}
.vtt-item.active {
  color: var(--color-success);
}
.vtt-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-success);
  border-radius: 1px;
}

/* Asset Overview */
.vip-asset-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-5);
  min-width: 0;
}
.vao-main {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  min-width: 0;
  flex-wrap: wrap;
}
.vao-main-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.vao-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.vao-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.vao-info-icon {
  color: var(--color-text-tertiary);
  cursor: help;
}
.vao-hint {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}
.vao-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.vao-currency {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 3px;
}
.vao-avail-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 4px;
  text-align: left;
  gap: 4px;
}
.vao-avail-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.vao-avail-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}
.vao-avail-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
}
.vao-create-btn {
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  background: var(--color-success);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-left: auto;
}
.vao-create-btn:hover {
  opacity: 0.9;
}

/* Card Info Bar */
.vip-card-bar {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.vcb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.vcb-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.vcb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vcb-dot-blue {
  background: #3b82f6;
}
.vcb-dot-orange {
  background: #f97316;
}
.vcb-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.vcb-amount {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.vcb-currency {
  font-size: 11px;
  color: var(--color-text-secondary);
}
.vcb-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.vcb-btn-primary {
  color: #fff;
  background: var(--color-success);
  border: 1px solid var(--color-success);
}
.vcb-btn-primary:hover {
  opacity: 0.9;
}
.vcb-btn-outline {
  color: var(--color-text-secondary);
  background: #fff;
  border: 1px solid var(--color-border-light);
}
.vcb-btn-outline:hover {
  border-color: var(--color-success);
  color: var(--color-success);
}
.vcb-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.vcb-budget-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.vcb-budget-amount {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #f97316;
}
.vcb-progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.vcb-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 15%, #60a5fa 25%, #f97316 75%, #ea580c 100%);
  border-radius: 3px;
}

/* Sub Tabs */
.vip-sub-tabs {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}
.vst-item {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
  user-select: none;
}
.vst-item:hover {
  color: var(--color-text-primary);
}
.vst-item.active {
  color: var(--color-success);
}

/* Filter Bar */
.vip-filter-bar {
  margin-bottom: var(--space-4);
}
.vf-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.vf-row:last-child {
  margin-bottom: 0;
}
.vf-input,
.vf-select {
  width: 160px;
  padding: 7px 11px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}
.vf-input::placeholder {
  color: var(--color-text-tertiary);
}
.vf-input:focus,
.vf-select:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.12);
}
.vf-select-wrap {
  position: relative;
}
.vf-select {
  padding-right: 28px;
  cursor: pointer;
}
.vf-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.vf-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.vf-date-input {
  width: 130px;
}
.vf-date-sep {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}
.vf-date-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  padding: 7px 10px;
  cursor: pointer;
  color: var(--color-text-tertiary);
  height: 34px;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.vf-date-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.vf-date-icon {
  pointer-events: none;
}
.vf-date-icon-btn:hover .vf-date-icon {
  color: var(--color-primary);
}

/* Custom dropdown menu style */
.vf-select,
.vf-select option {
  background: #fff;
  color: var(--color-text-primary);
}

/* Table */
.vip-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  min-height: 280px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vip-table-wrap::-webkit-scrollbar {
  height: 8px;
}
.vip-table-wrap::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.vip-table-wrap::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.vip-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.vip-table {
  width: 100%;
  min-width: 1800px;
  border-collapse: collapse;
}
.vip-table thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  background: #fff;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.vip-table thead th.vip-th-settings {
  text-align: right;
  width: 48px;
  padding-right: 20px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  box-shadow: -4px 0 6px -4px rgba(0,0,0,0.08);
}
/* Header filter (text + arrow inline, dropdown trigger) */
.vip-th-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}
.vip-th-filter:hover {
  color: var(--color-primary);
}
.vip-th-filter.open {
  color: var(--color-primary);
}
.vip-th-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vip-th-filter.open .vip-th-arrow {
  transform: rotate(180deg);
}
.vip-table tbody td {
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}
.vip-table tbody tr:last-child td {
  border-bottom: none;
}
.vip-table tbody tr:hover {
  background: var(--color-bg-light);
}

/* Custom header multiselect dropdown */
.vip-th-dropdown {
  position: relative;
}
.vip-th-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 220px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: var(--space-3);
  margin-top: 4px;
}
.vip-th-dropdown.open .vip-th-dropdown-panel {
  display: block;
}
.vip-th-dropdown-search {
  position: relative;
  margin-bottom: var(--space-3);
}
.vip-th-dropdown-search input {
  width: 100%;
  padding: 6px 8px 6px 28px;
  font-size: 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  outline: none;
  box-sizing: border-box;
}
.vip-th-dropdown-search svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-text-tertiary);
}
.vip-th-dropdown-list {
  max-height: 180px;
  overflow-y: auto;
}
.vip-th-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-primary);
}
.vip-th-dropdown-item:hover {
  color: var(--color-primary);
}
.vip-th-dropdown-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-success);
}
.vip-th-dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vip-th-dropdown-footer {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border-light);
}
.vip-th-dropdown-footer button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}
.vip-th-dropdown-reset {
  background: transparent;
  color: var(--color-text-secondary);
}
.vip-th-dropdown-reset:hover {
  color: var(--color-text-primary);
}
.vip-th-dropdown-apply {
  background: var(--color-primary);
  color: #fff;
}
.vip-th-dropdown-apply:hover {
  opacity: 0.9;
}

/* Settings button in table header */
.vip-settings-btn {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.vip-settings-btn:hover {
  color: var(--color-text-primary);
}

/* Empty State */
.vip-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px var(--space-5);
  color: var(--color-text-tertiary);
}
.ves-icon {
  margin-bottom: var(--space-3);
  opacity: 0.35;
}
.ves-text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ===== VIP Card Table Data Styles ===== */

/* Card Tags */
.vcp-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}
.tag-shopping { background: #fff7ed; color: #ea580c; }
.tag-travel { background: #eff6ff; color: #2563eb; }
.tag-daily { background: #f0fdf4; color: #16a34a; }
.tag-bill { background: #fef3c7; color: #d97706; }
.tag-entertainment { background: #faf5ff; color: #7c3aed; }
.tag-food { background: #fef2f2; color: #dc2626; }

/* Card Type Indicator */
.vcp-card-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-primary);
}
.vcp-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Card Status Badge */
.vcp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.vcp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vcp-status-badge.status-available {
  background: #f0fdf4;
  color: #16a34a;
}
.vcp-status-badge.status-frozen {
  background: #eff6ff;
  color: #2563eb;
}
.vcp-status-badge.status-pending {
  background: #fffbeb;
  color: #d97706;
}
.vcp-status-badge.status-expired {
  background: #fff7ed;
  color: #ea580c;
}
.vcp-status-badge.status-reviewing {
  background: #faf5ff;
  color: #7c3aed;
}
.vcp-status-badge.status-deleted {
  background: #fef2f2;
  color: #dc2626;
}
.vcp-status-badge.status-rejected {
  background: #fef2f2;
  color: #dc2626;
}

/* Balance & Total Spend */
.vcp-balance {
  font-weight: 600;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.vcp-spend {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}
.vcp-open-time {
  color: var(--color-text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

/* Action Buttons */
.vcp-action {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.vcp-action-btn {
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.vcp-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.vcp-action-more {
  padding: 4px 6px;
}
.vcp-action-more:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text-primary);
}

/* Filter select options - white background */
.vf-select option {
  background: #fff;
  color: var(--color-text-primary);
  padding: 8px 12px;
}

/* Filter select dropdown (for webkit browsers) */
.vf-select::-webkit-scrollbar {
  width: 6px;
}

/* Ensure filter bar inputs have white background with gray border */
.vf-input,
.vf-select {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
}
.vf-select option {
  background: #fff;
  color: var(--color-text-primary);
}

/* Flatpickr custom styling for inline date inputs */
.flatpickr-date {
  background: #fff !important;
  cursor: pointer;
}

/* Table data cells for the new columns */
td[data-col="balance"],
td[data-col="totalSpend"],
td[data-col="openTime"],
td[data-col="cardType"],
td[data-col="cardStatus"] {
  white-space: nowrap;
}

/* Settings Popup */
.vip-settings-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 280px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}
.vip-settings-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.vsp-header {
  padding: var(--space-4) var(--space-5) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}
.vsp-list {
  padding: var(--space-2) 0;
  max-height: 320px;
  overflow-y: auto;
}
.vsp-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-5);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.vsp-item:hover {
  background: var(--color-bg-light);
}
.vsp-checkbox {
  display: none;
}
.vsp-check {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.vsp-checkbox:checked + .vsp-check {
  background: var(--color-success);
  border-color: var(--color-success);
}
.vsp-checkbox:checked + .vsp-check::after {
  content: '';
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}
.vsp-label {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  user-select: none;
}
.vsp-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border-light);
}
.vsp-btn {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.vsp-btn-reset {
  color: var(--color-text-secondary);
  background: transparent;
}
.vsp-btn-reset:hover {
  color: var(--color-text-primary);
}
.vsp-btn-apply {
  color: var(--color-success);
  background: transparent;
}
.vsp-btn-apply:hover {
  color: #fff;
  background: var(--color-success);
}

/* Responsive */
@media (max-width: 1024px) {
  .vip-content-v2 {
    padding: var(--space-4);
  }
}
@media (max-width: 768px) {
  .vip-asset-overview {
    flex-direction: column;
    gap: var(--space-3);
  }
  .vao-main {
    flex-direction: column;
    gap: var(--space-3);
  }
  .vao-create-btn {
    align-self: flex-start;
  }
  .vcb-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .vf-row {
    flex-direction: column;
    align-items: stretch;
  }
  .vf-input,
  .vf-select,
  .vf-date-range {
    width: auto;
    flex-wrap: nowrap;
  }
  .vf-date-input {
    width: 130px;
    flex-shrink: 0;
  }
}

/* ---- Create New Card Popup ---- */
.vip-card-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.vip-card-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.vip-card-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 680px;
  max-width: 92vw;
  max-height: 90vh;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1101;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vip-card-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.vcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.vcp-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.vcp-close {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.vcp-close:hover {
  color: var(--color-text-primary);
}
.vcp-body {
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
  flex: 1;
}
.vcp-section {
  margin-bottom: var(--space-4);
}
.vcp-section:last-child {
  margin-bottom: 0;
}
.vcp-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.vcp-input {
  width: 100%;
  padding: 9px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}
.vcp-input:focus {
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.vcp-input::placeholder { color: var(--color-text-tertiary, #94a3b8); }
.vcp-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-tertiary, #94a3b8);
}
.vcp-hint.bound { color: #16a34a; }
.vcp-hint.loading { color: #2563eb; }
.vcp-hint.error { color: #dc2626; }
.vcp-hint.sdk-missing { color: #b45309; }
.vcp-input[readonly] {
  background: #f8fafc;
  color: var(--color-text-secondary, #475569);
  cursor: default;
}
.vcp-input[readonly]:focus {
  box-shadow: none;
  border-color: var(--color-border-light);
}
/* deId 状态徽章: 输入框前缀 */
.vcp-deid-wrap {
  position: relative;
}
.vcp-deid-wrap .vcp-deid-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  pointer-events: none;
}
.vcp-deid-badge.bound { background: #dcfce7; color: #166534; }
.vcp-deid-badge.auto  { background: #dbeafe; color: #1e40af; }
.vcp-deid-badge.sdk   { background: #fde68a; color: #92400e; }
.vcp-deid-badge.loading { background: #e0e7ff; color: #3730a3; animation: vcp-blink 1.4s infinite; }
@keyframes vcp-blink { 0%,100%{opacity:1} 50%{opacity:.45} }

/* Card Type Radio */
.vcp-radio-group {
  display: flex;
  gap: var(--space-4);
}
.vcp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fff;
  user-select: none;
}
.vcp-radio:hover {
  border-color: var(--color-success);
}
.vcp-radio.active {
  border-color: var(--color-success);
  background: #f0fdf4;
}
.vcp-radio input {
  display: none;
}
.vcp-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.vcp-radio.active .vcp-radio-dot {
  border-color: var(--color-success);
}
.vcp-radio.active .vcp-radio-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}
.vcp-radio-label {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

/* Card Number Group */
.vcp-number-group {
  display: flex;
  gap: var(--space-3);
}
.vcp-number-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fff;
  user-select: none;
}
.vcp-number-item:hover {
  border-color: var(--color-success);
}
.vcp-number-item.active {
  border-color: var(--color-success);
  background: #f0fdf4;
}
.vcp-number-item input {
  display: none;
}
.vcp-number-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.vcp-number-item.active .vcp-number-dot {
  border-color: var(--color-success);
  background: var(--color-success);
}
.vcp-number-label {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-family: 'SF Mono', monospace;
}

/* Preview Section */
.vcp-preview-section {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-3);
}
.vcp-card-preview {
  flex-shrink: 0;
  width: 240px;
}
.vcp-card-front {
  width: 100%;
  aspect-ratio: 1.586;
  background: #1a1a1a;
  border-radius: 14px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vcp-card-front::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.vcp-card-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
}
.vcp-card-logo svg {
  color: #F5A623;
}
.vcp-card-logos {
  position: absolute;
  top: 16px;
  right: 16px;
}
.vcp-card-master {
  display: flex;
  align-items: center;
}
.mc-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.mc-circle.mc-red {
  background: #eb001b;
  margin-right: -10px;
  opacity: 0.85;
}
.mc-circle.mc-orange {
  background: #f79e1b;
  opacity: 0.85;
}
.vcp-card-chip {
  width: 32px;
  height: 24px;
  background: #c4a35a;
  border-radius: 4px;
  margin-top: 8px;
  position: relative;
}
.vcp-card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 1px;
  background: rgba(0,0,0,0.2);
  box-shadow: 0 3px 0 rgba(0,0,0,0.2), 0 -3px 0 rgba(0,0,0,0.2);
}
.vcp-card-no {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px;
  font-family: 'SF Mono', monospace;
}
.vcp-card-name {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Info List */
.vcp-info-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.vcp-info-label {
  color: var(--color-text-secondary);
}
.vcp-info-value {
  color: var(--color-text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vcp-info-unit {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 400;
}
.vcp-info-master {
  display: flex;
  align-items: center;
}
.mc-circle-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.mc-circle-sm.mc-red {
  background: #eb001b;
  margin-right: -6px;
  opacity: 0.85;
}
.mc-circle-sm.mc-orange {
  background: #f79e1b;
  opacity: 0.85;
}
.vcp-info-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  background: #3b82f6;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Footer */
.vcp-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.vcp-btn {
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.vcp-btn-cancel {
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border-light);
}
.vcp-btn-cancel:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}
.vcp-btn-confirm {
  color: #fff;
  background: var(--color-success);
}
.vcp-btn-confirm:hover {
  opacity: 0.9;
}

/* Flatpickr Override */
.flatpickr-calendar {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--color-border-light) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: #fff !important;
}
.flatpickr-day:hover {
  background: #f0fdf4 !important;
  color: var(--color-success) !important;
}
.flatpickr-day.today {
  border-color: var(--color-success) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .vcp-preview-section {
    flex-direction: column;
    align-items: center;
  }
  .vcp-card-preview {
    width: 100%;
    max-width: 280px;
  }
  .vcp-number-group {
    flex-wrap: wrap;
  }
  .vcp-radio-group {
    flex-wrap: wrap;
  }
}

/* ============================================
   新建卡片弹窗：右侧抽屉版（dashboard + vip-card 两页共用）
   ============================================ */
#createCardOverlay,
#card-popup-overlay {
  z-index: 100002;                          /* 高于转出弹窗 (100000) & 新增地址 (100001) */
}
#createCardModal,
#card-popup {
  /* 右侧抽屉定位：覆盖 vip-card-popup 默认居中 */
  top: 0;
  right: 0;
  left: auto !important;
  transform: translateX(100%) scale(1);
  width: min(560px, 94vw);
  max-width: none;
  max-height: 100vh;
  height: 100vh;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -12px 0 40px rgba(0,0,0,0.14);
  z-index: 100003;
}
#createCardModal.show,
#card-popup.show {
  /* show 状态：滑入视口 */
  transform: translateX(0) scale(1);
}
/* 抽屉内 vcp-body 可滚动，适配窄宽 */
#createCardModal .vcp-body,
#card-popup .vcp-body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#createCardModal .vcp-header,
#card-popup .vcp-header,
#createCardModal .vcp-footer,
#card-popup .vcp-footer {
  padding-left: 24px;
  padding-right: 24px;
}
/* 抽屉内预览：默认两列，宽度不够自动降为上下堆 */
#createCardModal .vcp-preview-section,
#card-popup .vcp-preview-section {
  gap: 20px;
  align-items: flex-start;
}
/* 抽屉内参数表：左侧 label 固定宽度，右侧 value 右对齐不下行溢出 */
#createCardModal .vcp-info-label,
#card-popup .vcp-info-label {
  min-width: 108px;
  flex-shrink: 0;
}
#createCardModal .vcp-info-value,
#card-popup .vcp-info-value {
  flex: 1;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  #createCardModal .vcp-preview-section,
  #card-popup .vcp-preview-section {
    flex-direction: column;
    align-items: center;
  }
  #createCardModal .vcp-card-preview,
  #card-popup .vcp-card-preview { width: 100%; max-width: 280px; }
  #createCardModal .vcp-info-value,
  #card-popup .vcp-info-value { white-space: normal; }
}

/* ============================================
   CRYPTO ASSETS PAGE
   ============================================ */

/* ===== TokenPocket Wallet Bar ===== */
.tp-wallet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-connect-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid var(--color-primary, #4f46e5);
  background: var(--color-primary, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tp-connect-btn:hover { opacity: 0.9; }
.tp-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 18px;
  background: var(--color-bg-light, #f3f4f6);
  border: 1px solid var(--color-border, #e5e7eb);
}
.tp-chain-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-primary, #4f46e5);
  color: #fff;
  text-transform: uppercase;
}
.tp-addr {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  color: var(--color-text-primary, #111827);
  user-select: all;
}
.tp-disconnect-btn {
  padding: 2px 8px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #6b7280);
  font-size: 12px;
  cursor: pointer;
}
.tp-disconnect-btn:hover { background: var(--color-bg-hover, #e5e7eb); color: #ef4444; }

/* Content wrapper: safe padding, left-aligned with page title */
.crypto-content-v2 {
  padding: var(--space-6);
}

/* Balance Section */
.crypto-balance-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.crypto-balance-section .cb-left {
  flex: 1;
}
.cb-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.cb-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.cb-info-icon {
  color: var(--color-text-tertiary);
  cursor: pointer;
}
.cb-hint {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}
.cb-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}
.cb-currency {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: 4px;
}
.cb-recharge-btn {
  padding: 12px 28px;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
  margin-top: var(--space-6);
}
.cb-recharge-btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
  transform: translateY(-1px);
}
.cb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-6);
}
.cb-actions .cb-recharge-btn {
  margin-top: 0;
}
.cb-recharge-btn-outline {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}
.cb-recharge-btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
  transform: translateY(-1px);
}

/* Tabs */
.crypto-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-4);
}
.crypto-tab {
  padding-bottom: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.crypto-tab:hover {
  color: var(--color-text-primary);
}
.crypto-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Filter Bar */
.crypto-filter-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: flex-start;
}
.cf-currency-wrap {
  position: relative;
}
.cf-currency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cf-currency-btn:hover {
  border-color: var(--color-primary);
}
/* 同步余额按钮 */
.cf-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: auto;
}
.cf-sync-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--color-primary);
}
.cf-sync-btn:disabled,
.cf-sync-btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}
.cf-sync-btn.is-loading svg {
  animation: cf-sync-spin 1s linear infinite;
}
@keyframes cf-sync-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cf-currency-arrow {
  color: var(--color-text-secondary);
  transition: transform var(--transition-fast);
}
.cf-currency-popup.show + .cf-currency-btn .cf-currency-arrow,
.cf-currency-btn[aria-expanded="true"] .cf-currency-arrow {
  transform: rotate(180deg);
}

/* Currency Dropdown Popup */
.cf-currency-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}
.cf-currency-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cf-currency-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
}
.cf-currency-search svg {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}
.cf-currency-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: transparent;
}
.cf-currency-search-input::placeholder {
  color: var(--color-text-tertiary);
}
.cf-currency-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 0;
}
.cf-currency-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.cf-currency-item:hover {
  background: var(--color-bg-light);
}
.cf-currency-checkbox {
  display: none;
}
.cf-currency-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.cf-currency-checkbox:checked + .cf-currency-check {
  background: var(--color-success);
  border-color: var(--color-success);
}
.cf-currency-checkbox:checked + .cf-currency-check::after {
  content: '';
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-bottom: 1px;
}
.cf-currency-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.btc-icon { background: #F7931A; }
.eth-icon { background: #627EEA; }
.usdt-icon { background: #26A17B; }
.usdc-icon { background: #2775CA; }
.sol-icon { background: #9945FF; }
.doge-icon { background: #C2A633; }
.cf-currency-name {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}
.cf-currency-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--color-border-light);
}
.cf-currency-reset,
.cf-currency-apply {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.cf-currency-reset {
  color: var(--color-text-secondary);
}
.cf-currency-reset:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-light);
}
.cf-currency-apply {
  color: var(--color-success);
}
.cf-currency-apply:hover {
  background: rgba(245, 166, 35, 0.08);
}

/* Wallet Name Input */
.cf-wallet-name-wrap {
  position: relative;
}
.cf-input {
  padding: 8px 12px 8px 32px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  width: 180px;
  outline: none;
  transition: all var(--transition-fast);
}
.cf-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}
.cf-input::placeholder {
  color: var(--color-text-tertiary);
}
.cf-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

/* Table */
.crypto-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.crypto-table {
  width: 100%;
  border-collapse: collapse;
}
.crypto-table thead th {
  text-align: left;
  padding: 12px var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  background: #fff;
  white-space: nowrap;
}
.crypto-table tbody td {
  padding: 14px var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}
.crypto-table tbody tr:last-child td {
  border-bottom: none;
}
.crypto-table tbody tr:hover {
  background: var(--color-bg-light);
}

/* Currency Cell */
.crypto-currency-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crypto-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Unit text */
.crypto-unit {
  color: var(--color-text-secondary);
  font-size: 12px;
}

/* Chain Tag (区分多链钱包, 如 USDT(ERC20) / USDT(TRC20)) */
.crypto-chain-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary, #f3f4f6);
  border-radius: 4px;
  vertical-align: middle;
}

/* Action Links */
.crypto-actions {
  display: flex;
  gap: 12px;
}
.crypto-action-link {
  font-size: var(--text-sm);
  color: var(--color-success);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.crypto-action-link:hover {
  color: #389e0d;
  text-decoration: underline;
}

/* Empty State */
.crypto-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px var(--space-4);
  color: var(--color-text-tertiary);
}
.ces-icon {
  margin-bottom: var(--space-3);
}
.ces-text {
  font-size: var(--text-sm);
}

/* Pagination */
.crypto-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.cp-prev,
.cp-next,
.cp-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cp-prev:hover:not(:disabled),
.cp-next:hover:not(:disabled),
.cp-page:hover:not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cp-prev:disabled,
.cp-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
  .cp-page.active {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

/* ============================================
   CRYPTO DRAWER (Transfer Out Slide-out)
   ============================================ */

.crypto-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.crypto-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.crypto-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.crypto-drawer.show {
  transform: translateX(0);
}

/* Drawer Header */
.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cd-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.cd-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 150ms ease;
}
.cd-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Drawer Body */
.cd-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* Field Row */
.cd-row {
  display: flex;
  gap: var(--space-4);
}
.cd-row-2col > .cd-field {
  flex: 1;
  min-width: 0;
}

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cd-field-mt {
  margin-top: var(--space-5);
}
.cd-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Select Button & Dropdown */
.cd-select-wrap {
  position: relative;
}
.cd-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease;
}
.cd-select-btn:hover {
  border-color: var(--color-text-tertiary);
}
.cd-select-btn.active {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.cd-select-placeholder {
  flex: 1;
  color: var(--color-text-tertiary);
}
.cd-select-btn.has-value .cd-select-placeholder {
  color: var(--color-text-primary);
  font-weight: 500;
}
.cd-select-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: transform 200ms ease;
}
.cd-select-btn.active .cd-select-arrow {
  transform: rotate(180deg);
}
.cd-wallet-icon,
.cd-user-icon {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

/* Dropdown */
.cd-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.cd-select-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 100ms ease;
}
.cd-dropdown-item:hover {
  background: var(--color-bg-secondary);
}
.cd-dropdown-balance {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-secondary, #8C8C8C);
  white-space: nowrap;
}
.cd-dropdown-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Swap Arrow */
.cd-swap-row {
  display: flex;
  justify-content: center;
  margin: var(--space-4) 0;
}
.cd-swap-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  background: #fff;
}

/* Recipient Section */
.cd-recipient-section {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-4);
  background: var(--color-bg-secondary);
}
.cd-recipient-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cd-recipient-header .cd-label {
  margin: 0;
}
.cd-add-address {
  font-size: var(--text-sm);
  color: var(--color-success);
  text-decoration: none;
  font-weight: 500;
}
.cd-add-address:hover {
  text-decoration: underline;
}
.cd-recipient-select .cd-select-btn {
  background: #fff;
}

/* Input */
.cd-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cd-input:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.cd-input::placeholder {
  color: var(--color-text-tertiary);
}

/* Textarea */
.cd-textarea-wrap {
  position: relative;
}
.cd-textarea {
  width: 100%;
  padding: 10px 12px;
  padding-bottom: 24px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  outline: none;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cd-textarea:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.cd-textarea::placeholder {
  color: var(--color-text-tertiary);
}
.cd-char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}

/* Fee Summary */
.cd-fee-summary {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cd-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.cd-fee-label {
  color: var(--color-text-secondary);
}
.cd-fee-value {
  color: var(--color-text-primary);
  font-weight: 500;
}
.cd-fee-unit {
  color: var(--color-text-tertiary);
  font-weight: 400;
  font-size: 11px;
  margin-left: 2px;
}
.cd-fee-row-total {
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
}
.cd-fee-row-total .cd-fee-label {
  color: var(--color-text-primary);
  font-weight: 500;
}
.cd-fee-value-large {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}
.cd-fee-value-large .cd-fee-unit {
  font-size: 13px;
  font-weight: 400;
}

/* Drawer Footer */
.cd-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  background: #fff;
}
.cd-btn {
  padding: 8px 24px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1px solid transparent;
}
.cd-btn-cancel {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
.cd-btn-cancel:hover {
  border-color: var(--color-text-tertiary);
  background: var(--color-bg-secondary);
}
.cd-btn-confirm {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.cd-btn-confirm:hover {
  background: #45a818;
  border-color: #45a818;
}

/* Responsive */
@media (max-width: 768px) {
  .crypto-balance-section {
    flex-direction: column;
    gap: var(--space-3);
  }
  .crypto-filter-bar {
    flex-wrap: wrap;
  }
  .crypto-table-wrap {
    overflow-x: auto;
  }
  .crypto-table {
    min-width: 700px;
  }
}

/* ============================================
   EXCHANGE CENTER PAGE
   ============================================ */

/* Exchange Page White Background */
.main-content-v2:has(.exchange-content-v2) {
  background: var(--color-bg-white);
}
.exchange-content-v2 {
  padding: var(--space-6);
  background: var(--color-bg-white);
}

/* Title Section */
.ex-title-section {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.ex-main-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.ex-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Exchange Area */
.ex-exchange-area {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.ex-exchange-left {
  flex: 0 0 440px;
  display: flex;
  flex-direction: column;
}
.ex-exchange-right {
  flex: 1;
  min-width: 0;
}

/* Exchange Converter Card - reuse dashboard rate-section styles directly */

/* Swap button animation */
.rate-swap-btn.swapping {
  animation: swap-spin 600ms ease-in-out;
}
@keyframes swap-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* Dropdown visibility toggle */
.ex-currency-dropdown {
  display: none;
}
.ex-currency-dropdown.show {
  display: block;
}

/* Allow dropdown overflow */
.rate-section {
  overflow: visible;
}
.rate-input-group {
  overflow: visible;
}

/* Confirm button & refresh icon (used in converter card) */
.ex-refresh-icon {
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 150ms ease;
}
.ex-refresh-icon:hover {
  color: var(--color-primary);
}
.ex-confirm-btn {
  padding: 10px 28px;
  border-radius: var(--radius-md);
  border: none;
  background: #d0d0d0;
  color: #888;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: not-allowed;
  transition: all 200ms ease;
  flex-shrink: 0;
}
.ex-confirm-btn:not(:disabled) {
  background: var(--color-success);
  color: #fff;
  cursor: pointer;
}
.ex-confirm-btn:not(:disabled):hover {
  background: #45a049;
}

/* Transaction Section */
.ex-tx-section {
  margin-top: var(--space-8);
}
.ex-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

/* Filter Bar */
.ex-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.ex-filter-input {
  width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 150ms ease;
}
.ex-filter-input:focus {
  border-color: var(--color-success);
}
.ex-filter-select-wrap {
  position: relative;
}
.ex-filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  min-width: 100px;
}
.ex-filter-select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--color-text-secondary);
  pointer-events: none;
}
.ex-filter-date-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-filter-date {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  cursor: pointer;
}
.ex-date-sep {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}
.ex-filter-spacer {
  flex: 1;
}
.ex-export-btn {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--color-success);
  background: var(--color-surface);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}
.ex-export-btn:hover {
  background: var(--color-success);
  color: #fff;
}

/* Table */
.ex-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
}
.ex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 1100px;
}
.ex-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.ex-table tbody td {
  padding: 12px;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.ex-th-icon {
  margin-right: 4px;
  color: var(--color-text-secondary);
}
.ex-order-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-order-no {
  color: var(--color-text-primary);
}
.ex-order-tag {
  color: var(--color-text-secondary);
  font-size: 12px;
}
.ex-currency-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
}
.ex-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}
.ex-view-link {
  color: var(--color-success);
  text-decoration: none;
  font-size: var(--text-sm);
}
.ex-view-link:hover {
  text-decoration: underline;
}

/* Pagination */
.ex-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
}
.ex-page-total {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.ex-page-nav {
  display: flex;
  gap: 6px;
}
.ex-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}
.ex-page-btn:hover:not(:disabled) {
  border-color: var(--color-success);
  color: var(--color-success);
}
.ex-page-btn.active {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.ex-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
  .ex-exchange-area {
    flex-direction: column;
  }
  .ex-exchange-left {
    flex: 1;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .exchange-content-v2 {
    padding: var(--space-4);
  }
  .ex-title-section {
    flex-direction: column;
    gap: 4px;
  }
  .ex-filter-bar {
    flex-wrap: wrap;
  }
  .ex-table-wrap {
    overflow-x: auto;
  }
  .ex-table {
    min-width: 1100px;
  }
}

/* ============================================================
   Payment (OnShun)
   ============================================================ */

.payment-content-v2 {
  padding: var(--space-6);
  background: #fff;
  min-height: calc(100vh - 64px);
}

/* Top Tabs */
.pay-top-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  padding: 0 var(--space-6);
}
.pay-tab {
  padding: 14px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}
.pay-tab:hover {
  color: var(--color-text-primary);
}
.pay-tab.active {
  color: var(--color-success);
  border-bottom-color: var(--color-success);
}

/* Step Wizard */
.pay-wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-12);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.pay-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.pay-step-line {
  height: 3px;
  background: var(--color-border);
  margin-bottom: 8px;
  transition: background 200ms ease;
}
.pay-step.active .pay-step-line {
  background: var(--color-success);
}
.pay-step-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}
.pay-step.active .pay-step-label {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Step Content */
.pay-step-content {
  max-width: 640px;
  margin: 0 auto;
}
.pay-main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-10);
}

/* Recipient Section */
.pay-recipient-section {
  margin-bottom: var(--space-10);
}
.pay-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.pay-section-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}
.pay-add-recipient {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--color-success);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 150ms ease;
}
.pay-add-recipient:hover {
  opacity: 0.8;
}
.pay-add-icon {
  font-size: 16px;
  line-height: 1;
}
.pay-select-wrap {
  position: relative;
}
.pay-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 16px 44px 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-base);
  background: #fff;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease;
}
.pay-select:focus {
  border-color: var(--color-success);
}
.pay-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-secondary);
  pointer-events: none;
}

/* Continue Button */
.pay-continue-wrap {
  display: flex;
  justify-content: center;
}
.pay-continue-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
  border: none;
  background: #e8e8e8;
  color: #bbb;
  font-size: var(--text-base);
  font-weight: 500;
  cursor: not-allowed;
  transition: all 200ms ease;
}
.pay-continue-btn:not(:disabled) {
  background: var(--color-success);
  color: #fff;
  cursor: pointer;
}
.pay-continue-btn:not(:disabled):hover {
  background: #45a049;
}

/* Custom Dropdown Trigger */
.pay-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 16px 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-base);
  background: #fff;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}
.pay-select-trigger:hover {
  border-color: #ccc;
}
.pay-select-trigger.open {
  border-color: var(--color-success);
}
.pay-select-placeholder {
  color: #aaa;
  font-size: var(--text-base);
}
.pay-select-placeholder.selected {
  color: var(--color-text-primary);
}

/* Dropdown Panel */
.pay-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 200ms ease;
}
.pay-dropdown-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Search */
.pay-dropdown-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.pay-dropdown-search-icon {
  color: #bbb;
  flex-shrink: 0;
}
.pay-dropdown-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: transparent;
}
.pay-dropdown-search-input::placeholder {
  color: #bbb;
}

/* Dropdown Tabs */
.pay-dropdown-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
}
.pay-dropdown-tab {
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  margin-bottom: -1px;
}
.pay-dropdown-tab:hover {
  color: var(--color-text-primary);
}
.pay-dropdown-tab.active {
  color: var(--color-success);
  border-bottom-color: var(--color-success);
}

/* Dropdown Content */
.pay-dropdown-content {
  min-height: 120px;
  padding: 16px;
}
.pay-dropdown-empty {
  text-align: center;
  padding: 32px 16px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Drawer Overlay */
.pay-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}
.pay-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.pay-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.pay-drawer.active {
  transform: translateX(0);
}
.pay-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.pay-drawer-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.pay-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}
.pay-drawer-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}
.pay-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.pay-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Drawer Form */
.pay-drawer-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pay-form-row {
  display: flex;
  gap: var(--space-4);
}
.pay-form-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-form-col label,
.pay-form-section-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.pay-form-section-title {
  margin-top: var(--space-2);
  margin-bottom: -4px;
}
.pay-form-input,
.pay-form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}
.pay-form-input:focus,
.pay-form-select:focus {
  border-color: var(--color-success);
}
.pay-form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}
.pay-form-col:has(.pay-form-select) {
  position: relative;
}
.pay-form-col:has(.pay-form-select)::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 34px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--color-text-secondary);
  pointer-events: none;
}

/* Char count input */
.pay-input-count {
  position: relative;
}
.pay-input-count .pay-form-input {
  padding-right: 50px;
}
.pay-char-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--color-text-secondary);
  pointer-events: none;
}

/* Full width textarea */
.pay-form-col-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  resize: vertical;
  transition: border-color 150ms ease;
  box-sizing: border-box;
  font-family: inherit;
}
.pay-form-textarea:focus {
  border-color: var(--color-success);
}

/* Checkbox */
.pay-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--space-2);
}
.pay-checkbox-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-success);
  cursor: pointer;
  flex-shrink: 0;
}
.pay-checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

/* Drawer Buttons */
.pay-btn-cancel {
  padding: 8px 24px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}
.pay-btn-cancel:hover {
  border-color: var(--color-text-secondary);
}
.pay-btn-confirm {
  padding: 8px 24px;
  border-radius: 6px;
  border: none;
  background: #d0d0d0;
  color: #888;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: not-allowed;
  transition: all 200ms ease;
}
.pay-btn-confirm:not(:disabled) {
  background: var(--color-success);
  color: #fff;
  cursor: pointer;
}
.pay-btn-confirm:not(:disabled):hover {
  background: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-content-v2 {
    padding: var(--space-4);
  }
  .pay-top-tabs {
    padding: 0 var(--space-4);
    overflow-x: auto;
  }
  .pay-tab {
    padding: 12px 14px;
    font-size: 13px;
  }
  .pay-wizard {
    max-width: 100%;
  }
  .pay-form-row {
    flex-direction: column;
  }
  .pay-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   Global Collection (OnShun)
   ============================================================ */

.gc-content-v2 {
  padding: 0;
  background: #fff;
  min-height: calc(100vh - 64px);
}

/* Top Tabs */
.gc-top-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  padding: 0 var(--space-6);
}
.gc-tab {
  padding: 14px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}
.gc-tab:hover {
  color: var(--color-text-primary);
}
.gc-tab.active {
  color: var(--color-success);
  border-bottom-color: var(--color-success);
}

/* Total Assets Section */
.gc-assets-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  background: #fff;
}
.gc-assets-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-assets-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}
.gc-assets-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.gc-assets-symbol {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.gc-assets-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.gc-assets-unit {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-left: 4px;
}
.gc-collect-btn {
  padding: 8px 24px;
  border-radius: 6px;
  border: none;
  background: var(--color-success);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}
.gc-collect-btn:hover {
  background: #45a049;
}

/* Sub Tabs */
.gc-sub-tabs {
  display: flex;
  gap: 0;
  padding: 0 var(--space-6);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.gc-sub-tab {
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}
.gc-sub-tab:hover {
  color: var(--color-text-primary);
}
.gc-sub-tab.active {
  color: var(--color-success);
  border-bottom-color: var(--color-success);
}

/* Account Cards Grid */
.gc-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6) var(--space-6);
  max-width: 720px;
}

/* Account Card */
.gc-account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.gc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gc-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.gc-coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-coin-icon.usdc {
  background: #2775CA;
}
.gc-coin-icon.usdt {
  background: #26A17B;
}
.gc-card-balance {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.gc-card-unit {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 2px;
}
.gc-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-1);
}
.gc-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gc-detail-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.gc-detail-value {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.gc-detail-unit {
  color: var(--color-text-secondary);
  font-weight: 400;
}
.gc-withdraw-btn {
  width: 100%;
  padding: 10px 0;
  margin-top: var(--space-2);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}
.gc-withdraw-btn:hover {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* Drawer Overlay */
.gc-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}
.gc-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.gc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.gc-drawer.active {
  transform: translateX(0);
}
.gc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.gc-drawer-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.gc-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}
.gc-drawer-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}
.gc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.gc-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Drawer Form Row */
.gc-drawer-form-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.gc-drawer-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-drawer-col label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.gc-drawer-select-wrap {
  position: relative;
}
.gc-drawer-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.gc-drawer-select:hover {
  border-color: #ccc;
}
.gc-select-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}
.gc-select-display.gc-select-placeholder {
  color: #aaa;
}
.gc-select-display.gc-select-placeholder span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.gc-select-display svg {
  flex-shrink: 0;
}

/* Withdraw Amount Section */
.gc-drawer-section {
  margin-bottom: var(--space-5);
}
.gc-drawer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gc-drawer-section-header label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.gc-drawer-balance {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gc-balance-num {
  color: var(--color-text-primary);
  font-weight: 500;
}
.gc-withdraw-all {
  color: var(--color-success);
  cursor: pointer;
  font-weight: 500;
  margin-left: 8px;
}
.gc-withdraw-all:hover {
  opacity: 0.8;
}
.gc-drawer-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 150ms ease;
}
.gc-drawer-input-wrap:focus-within {
  border-color: var(--color-success);
}
.gc-drawer-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  outline: none;
  padding: 0;
}
.gc-drawer-input::placeholder {
  color: #bbb;
}
.gc-drawer-input-suffix {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-left: 8px;
}

/* Fee Summary */
.gc-fee-summary {
  background: var(--color-bg-secondary);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.gc-fee-row span:first-child {
  color: var(--color-text-secondary);
}
.gc-fee-value {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Drawer Buttons */
.gc-btn-cancel {
  padding: 10px 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}
.gc-btn-cancel:hover {
  border-color: var(--color-text-secondary);
}
.gc-btn-confirm {
  padding: 10px 28px;
  border-radius: 6px;
  border: none;
  background: #d0d0d0;
  color: #888;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: not-allowed;
  transition: all 200ms ease;
}
.gc-btn-confirm:not(:disabled) {
  background: var(--color-success);
  color: #fff;
  cursor: pointer;
}
.gc-btn-confirm:not(:disabled):hover {
  background: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
  .gc-cards-grid {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }
  .gc-top-tabs,
  .gc-sub-tabs {
    padding: 0 var(--space-4);
    overflow-x: auto;
  }
  .gc-assets-section {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }
  .gc-drawer {
    width: 100%;
    max-width: 100%;
  }
  .gc-drawer-form-row {
    flex-direction: column;
  }
}

/* ============================================================
   Dashboard Currency Dropdown
   ============================================================ */

.tbc-currency-dropdown {
  position: relative;
  display: inline-block;
}
.tbc-currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}
.tbc-currency-trigger:hover {
  background: rgba(0,0,0,0.8);
}
.tbc-currency-trigger svg {
  transition: transform 200ms ease;
}
.tbc-currency-trigger.open svg {
  transform: rotate(180deg);
}
.tbc-currency-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  padding: 4px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 180ms ease;
  overflow: hidden;
}
.tbc-currency-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tbc-currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: background 120ms ease;
  border-bottom: 1px solid #f0f0f0;
}
.tbc-currency-option:last-child {
  border-bottom: none;
}
.tbc-currency-option:hover {
  background: var(--color-bg-secondary);
}
.tbc-currency-option.selected {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}
.tbc-coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.coin-usdc { background: #2775CA; }
.coin-usdt { background: #26A17B; }
.coin-btc  { background: #F7931A; }
.coin-eth  { background: #627EEA; }
.coin-sol  { background: #9945FF; }
.coin-doge { background: #C2A633; }
.coin-trx  { background: #FF060A; }
.coin-usd  { background: #1A3A6B; }

/* 4-column balance cards */
.balance-cards-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Confirm button disabled state */
.ex-confirm:disabled {
  background: #C7CBD2 !important;
  color: #fff !important;
  cursor: not-allowed;
  border-radius: var(--radius-md);
}
.ex-confirm:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
}
.ex-confirm:not(:disabled):hover {
  background: var(--color-primary-dark);
}

/* Responsive: balance cards */
@media (max-width: 1024px) {
  .balance-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .balance-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Dashboard Verified: Balance Card v2 (stacked layout + action icon + tooltip) ===== */
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  min-height: 96px;
}
.bc-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
}
.bc-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.bc-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  /* 与上方名称文字左对齐：图标 36px + 间距 10px */
  padding-left: 46px;
}
.bc-amount .bc-currency {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

/* Action button group */
.bc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Action button */
.bc-action {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245,166,35,0.12);
  color: #F5A623;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 180ms ease;
}
.bc-action:hover {
  background: #F5A623;
  color: #fff;
}

/* Tooltip */
.bc-action::before {
  content: attr(data-tooltip-text);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #1f1f1f;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 160ms ease;
  z-index: 10;
}
.bc-action::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f1f1f;
  opacity: 0;
  visibility: hidden;
  transition: all 160ms ease;
  z-index: 10;
}
.bc-action:hover::before,
.bc-action:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* Hide old left/right wrappers */
.bc-left, .bc-right {
  display: none;
}

/* ============================================
   加密资产充值 Modal — 右侧半屏抽屉
   ============================================ */
/* 保险：确保 HTML hidden 属性完全生效 */
.cd-modal-mask [hidden] {
  display: none !important;
}
.cd-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 34, 0.45);
  z-index: 9999;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cd-modal-mask.is-open {
  display: flex;
  opacity: 1;
}
.cd-modal-card {
  position: relative;
  background: #FFFFFF;
  width: clamp(540px, 60vw, 840px);
  max-width: 100%;
  height: 100vh;
  min-height: 100vh;
  border-radius: 16px 0 0 16px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.18), -2px 0 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.22,.9,.26,1);
  will-change: transform;
}
.cd-modal-mask.is-open .cd-modal-card {
  transform: translateX(0);
}
.cd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px 28px;
  border-bottom: 1px solid #EEF0F3;
  flex-shrink: 0;
}
.cd-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1A1D22;
  letter-spacing: 0.2px;
}
.cd-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #F4F6F8;
  color: #5A6170;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
  padding: 0;
}
.cd-modal-close:hover {
  background: #E9ECF0;
  color: #1A1D22;
}
.cd-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cd-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid #EEF0F3;
  background: #FAFBFC;
  flex-shrink: 0;
}

/* Field Label */
.cd-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #1A1D22;
  margin: 0 0 2px 0;
  line-height: 1.5;
}

/* Select (Coin & Chain) */
.cd-select {
  position: relative; /* 关键：作为dropdown的定位参照系 */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #E2E6EB;
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  overflow: visible; /* 关键：保证下拉不被裁剪 */
  /* z-index: auto（默认）—— 注意：必须保持z-index为auto，避免创建新的堆叠上下文，
     这样子元素 .cd-dropdown 的高 z-index(9999) 才能直接进入上层堆叠上下文，
     盖过 DOM 结构靠后的其他表单元素（如链选择框、地址块等）*/
}
.cd-select:hover {
  border-color: #C5CCD4;
}
.cd-select:focus,
.cd-select[aria-expanded="true"] {
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.10);
  outline: none;
  /* 下拉打开时，父 select 整体抬升到极高层级（即使子dropdown被限制在本堆叠上下文内，也能压过后方其他表单项） */
  z-index: 99998;
}
.cd-select.has-value .cd-select-placeholder {
  color: #1A1D22;
  font-weight: 600;
}
.cd-select-placeholder {
  color: #8A93A2;
  font-size: 14px;
  line-height: 1.4;
}
.cd-select-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cd-select-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5A6170;
  font-size: 13px;
  flex-shrink: 0;
}
.cd-select-name {
  font-size: 15px;
  font-weight: 700;
  color: #1A1D22;
}
.cd-select-balance {
  font-size: 13px;
  color: #5A6170;
  font-weight: 600;
}
.cd-select-bal-sym {
  font-size: 12px;
  color: #8A93A2;
}
.cd-select-chevron {
  color: #8A93A2;
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.cd-select[aria-expanded="true"] .cd-select-chevron {
  transform: rotate(180deg);
}
.cd-select-chain-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Coin Badge */
.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.coin-badge-usdt { background: #26A17B; }
.coin-badge-usdc { background: #2775CA; }
.coin-badge-usd  { background: #6B5B95; }
.coin-badge-btc  { background: #F7931A; }
.coin-badge-eth  { background: #627EEA; }
.coin-badge-sol  { background: #14F195; color:#0b1320; }
.coin-badge-bnb  { background: #F0B90B; color:#1A1D22; }
.coin-badge-doge { background: #C2A633; }
.coin-badge-trx  { background: #FF0013; }
/* 新建卡片：卡组织 / 地区徽章 */
.coin-badge-visa { background: #1A1F71; color: #FFFFFF; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 900; letter-spacing: 0.5px; }
.coin-badge-mc   { background: linear-gradient(90deg, #EB001B 0 50%, #F79E1B 50% 100%); color: #FFFFFF; font-family: Arial, sans-serif; font-weight: 900; }
.coin-badge-us   { background: #B22234; color: #FFFFFF; font-weight: 700; }

/* Chain Badge (7 colors — 截图一致) */
.chain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.chain-badge-ethereum    { background: #627EEA; }
.chain-badge-tron        { background: #FF0013; }
.chain-badge-solana      { background: #141414; color:#14F195; }
.chain-badge-base        { background: #0052FF; }
.chain-badge-arbitrum    { background: #28A0F0; }
.chain-badge-bsc         { background: #F0B90B; color:#1A1D22; }
.chain-badge-polygon     { background: #8247E5; }

/* Dropdown (Coin & Chain) */
.cd-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  min-width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
  padding: 6px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}
/* 放入 cd-select 内部后，防止被 flex 布局挤压 */
.cd-select > .cd-dropdown {
  flex: 0 0 auto;
  align-self: stretch;
}
.cd-dropdown.is-open {
  display: block;
  animation: cdDropdownIn 160ms ease-out;
}
@keyframes cdDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cd-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease;
  color: #1A1D22;
  font-size: 14px;
  line-height: 1.4;
}
.cd-dropdown li:hover {
  background: #F4F6F8;
}
.cd-dropdown li.is-selected {
  background: #F0FAE8;
  color: #3C8A14;
  font-weight: 600;
}
.dd-coin-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.dd-coin-name {
  font-weight: 600;
  color: inherit;
}
.dd-coin-balance {
  font-size: 13px;
  color: #8A93A2;
  flex-shrink: 0;
}
.dd-chain-name {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  flex: 1;
}

/* Buttons */
.cd-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
  border: 1px solid transparent;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.cd-btn-ghost {
  background: #FFFFFF;
  border-color: #E2E6EB;
  color: #5A6170;
}
.cd-btn-ghost:hover {
  background: #F4F6F8;
  border-color: #C5CCD4;
  color: #1A1D22;
}
.cd-btn-primary {
  background: #F5A623;
  border-color: #F5A623;
  color: #FFFFFF;
}
.cd-btn-primary:hover {
  background: #45A818;
  border-color: #45A818;
}
.cd-btn-primary:disabled {
  background: #C5CCD4 !important;
  border-color: #C5CCD4 !important;
  color: #FFFFFF !important;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ============================================
   选链后显示的 地址块（与截图三完全一致）
   ============================================ */
.cd-address-block {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cdAddrIn 260ms cubic-bezier(.22,.9,.26,1);
}
@keyframes cdAddrIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cd-address-tip {
  background: #FFF7E6;
  border: 1px solid #FFE0B2;
  color: #B86100;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.cd-address-card {
  border: 1px solid #EEF0F3;
  border-radius: 12px;
  background: #FAFBFC;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cd-address-qr {
  width: 200px;
  height: 200px;
  background: #FFFFFF;
  border: 1px solid #EEF0F3;
  border-radius: 10px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cd-address-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cd-address-line {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.cd-address-line-label {
  color: #5A6170;
  font-weight: 500;
  flex-shrink: 0;
}
.cd-address-line-value {
  flex: 1;
  min-width: 0;
  color: #1A1D22;
  font-weight: 600;
  font-family: "SF Mono", Menlo, Consolas, "Ubuntu Mono", monospace;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
.cd-address-copy-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #E2E6EB;
  background: #FFFFFF;
  color: #5A6170;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 140ms ease;
  padding: 0;
}
.cd-address-copy-mini:hover {
  background: #F0FAE8;
  border-color: #F5A623;
  color: #3C8A14;
}

/* Warnings List */
.cd-address-warnings {
  margin: 0;
  padding: 16px 16px 16px 32px; /* 上下内边距从12px加大到16px，整体更透气 */
  background: #FFFBF3;
  border: 1px solid #FFE7C2;
  border-radius: 10px;
  list-style: decimal;
}
.cd-address-warnings li {
  color: #8A5500;
  font-size: 12.5px;
  line-height: 1.8;            /* 行高1.7→1.8，文字本身更舒展 */
  margin-bottom: 11px;          /* 条目之间间距 4px → 11px */
  font-weight: 500;
}
.cd-address-warnings li:last-child {
  margin-bottom: 0;
}
.cd-address-risk {
  color: #1890FF;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
.cd-address-risk:hover {
  text-decoration: underline;
}

/* Address Actions Row */
.cd-address-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.cd-address-actions .cd-btn {
  flex: 1;
  min-height: 40px;
}

/* Copy Toast */
.cd-copy-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(26,29,34,0.92);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: all 260ms cubic-bezier(.22,.9,.26,1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}
.cd-copy-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cd-copy-toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F5A623;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Responsive for Modal */
@media (max-width: 600px) {
  .cd-modal-card {
    width: 100% !important;
    border-radius: 0;
  }
  .cd-modal-header { padding: 18px 20px 14px; }
  .cd-modal-body   { padding: 18px 20px; }
  .cd-modal-footer { padding: 14px 20px; }
  .cd-address-qr   { width: 180px; height: 180px; }
}

/* ============================================================= */
/* 加密资产转出弹窗 Withdraw Drawer                               */
/* 前缀：wd-*                                                     */
/* ============================================================= */

/* 遮罩 / 卡片 复用 cd-modal 的基础结构，右侧滑出一致 */
.wd-modal-mask { z-index: 100000; }

/* body字段之间整体间距：比充值稍紧凑但透气 */
.wd-modal-body { padding: 24px 28px 22px; }

/* ---------- 两列并排：转出币种 | 转出钱包 ---------- */
.wd-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.wd-row-two .wd-field { margin-bottom: 0; }

/* 转出钱包select：右侧搜索图标，左侧钱包图标，文字占位 */
.wd-select-wallet {
  padding-right: 36px;   /* 预留搜索图标空间 */
}
.wd-wallet-icon,
.wd-search-icon,
.wd-payee-icon {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  color: #9CA3AF;
}
.wd-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}
.wd-select-chevron {
  margin-right: 24px;   /* 避开搜索图标的14px + 间距 */
}

/* ---------- 双箭头分隔 ---------- */
.wd-arrow-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  margin: -4px 0 18px;
  color: #C2C7CE;
}
.wd-arrow-divider svg { color: inherit; }

/* ---------- 收款人：米黄色背景 + 浅绿边框 块 ---------- */
.wd-payee-card {
  background: #F9FBF5;            /* 极浅米黄-绿 */
  border: 1px solid #FFD666;     /* 浅绿边框 */
  border-radius: 10px;
  padding: 16px 18px 16px;
  margin-bottom: 22px;
}
.wd-payee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wd-payee-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: 0.1px;
}
.wd-add-address {
  color: #F5A623;       /* 新增提现地址：正绿色 */
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.wd-add-address:hover { color: #E8910F; }

/* 收款人选择框：白底，和其他select一致但边框更浅 */
.wd-select-payee {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

/* ---------- 字段间距 & 输入框 ---------- */
.wd-field { margin-bottom: 20px; }

.wd-input-wrap {
  position: relative;
  width: 100%;
}
.wd-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  color: #1F2937;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wd-input::placeholder { color: #B0B6BF; }
.wd-input:focus {
  border-color: #69E089;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.10);
}

/* 备注输入框：右边有字符计数，预留右padding */
.wd-input-wrap-remark .wd-input { padding-right: 60px; }
.wd-remark-counter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #9CA3AF;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* ---------- 费用计算灰底面板 ---------- */
.wd-fee-panel {
  background: #F5F7FA;
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin-top: 6px;
}
.wd-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wd-fee-row:last-child { margin-bottom: 0; }

.wd-fee-key {
  font-size: 13.5px;
  color: #4B5563;
  font-weight: 500;
}
.wd-fee-val {
  font-size: 13.5px;
  color: #1F2937;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 实际扣款金额行：最后一行，金额大字加深 */
.wd-fee-row-total .wd-fee-key {
  color: #1F2937;
  font-weight: 600;
  font-size: 14px;
}
.wd-fee-val-total {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.wd-fee-num {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.wd-fee-sym {
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  margin-left: 2px;
}

/* ---------- 转出钱包下拉：选项 徽章+名称 | 余额+币种 右对齐 ---------- */
.wd-dropdown-wallet .cd-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wd-wallet-item-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wd-wallet-item-right {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: 14px;
  font-variant-numeric: tabular-nums;
}
.wd-wallet-bal {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}
.wd-wallet-sym {
  font-size: 12.5px;
  color: #6B7280;
  font-weight: 500;
}

/* ---------- 转出币种下拉：选中时背景浅绿（截图中USDT被浅绿高亮选中） ---------- */
.wd-dropdown-coin .cd-dropdown-item.is-selected {
  background: #E6F7DC !important;
}

/* ---------- 底部按钮：取消（绿边白底）/ 转出（绿填充） ---------- */
.wd-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 28px 22px;
  border-top: 1px solid #F1F3F5;
  background: #FFFFFF;
}
.wd-btn {
  min-width: 96px;
  height: 40px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
/* 取消：白底 + 绿边框 + 绿字 */
.wd-btn-ghost {
  background: #FFFFFF;
  color: #F5A623;
  border: 1px solid #FFD666;
}
.wd-btn-ghost:hover { background: #F4FFE8; }

/* 转出：绿色填充（截图的转出按钮是浅一点的活力绿，用 #F5A623 → 稍亮 #5CDB65） */
.wd-btn-primary {
  background: #5CDB65;
  color: #FFFFFF;
  border: 1px solid #5CDB65;
}
.wd-btn-primary:hover:not(:disabled) { background: #3FC452; }
.wd-btn-primary:disabled {
  background: #C9ECD1;
  border-color: #C9ECD1;
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ---------- 展开下拉的 z-index 升级（与充值cd-select保持一致的层叠逻辑） ---------- */
.wd-select[aria-expanded="true"] {
  z-index: 99998;
}

/* 移动端：两列变单列 */
@media (max-width: 640px) {
  .wd-row-two { grid-template-columns: 1fr; gap: 20px; }
  .wd-modal-body { padding: 20px; }
  .wd-modal-footer { padding: 14px 20px 18px; }
  .wd-fee-num { font-size: 26px; }
}

/* ============================================================= */
/* 新增提现地址 Add Address Drawer                               */
/* 前缀：ad-*                                                     */
/* ============================================================= */

.ad-modal-mask { z-index: 100001; }   /* 在转出弹窗之上 */
.ad-modal-body { padding: 24px 28px 10px; }

/* ---------- 字段间距 ---------- */
.ad-field { margin-bottom: 24px; }

/* ---------- 币种 5 个胶囊单选按钮 ---------- */
.ad-coin-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.ad-coin-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  user-select: none;
}
.ad-coin-option:hover {
  border-color: #C5D3C9;
  background: #FAFFF6;
}
.ad-coin-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.ad-coin-badge {
  flex: 0 0 auto;
}
/* SOL 徽章在「新增地址」弹窗内改为紫色匹配截图（其他地方仍保持原绿） */
.ad-coin-option .coin-badge-sol { background: #9945FF !important; color: #FFFFFF !important; }

.ad-coin-name {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  flex: 0 0 auto;
}

/* 胶囊右侧的"假radio圈"——未选中：灰边框圆；选中：外圈绿，内圈实心绿圆点（对应截图USDC选中态的绿圆点） */
.ad-coin-radio-fake {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  background: #FFFFFF;
  flex: 0 0 auto;
  transition: all .2s ease;
}
.ad-coin-option:hover .ad-coin-radio-fake {
  border-color: #A9D2B2;
}
/* 选中态 */
.ad-coin-radio:checked + .ad-coin-badge + .ad-coin-name + .ad-coin-radio-fake,
.ad-coin-option:has(.ad-coin-radio:checked) .ad-coin-radio-fake {
  border-color: #F5A623;
  background: radial-gradient(circle, #F5A623 0 46%, transparent 48%);
}
/* 兼容不支持 :has 的浏览器：再加一条直接选中样式 */
.ad-coin-option.ad-is-selected {
  border-color: #FFD666;
  background: #F6FFEC;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}
.ad-coin-option.ad-is-selected .ad-coin-radio-fake {
  border-color: #F5A623;
  background: radial-gradient(circle, #F5A623 0 46%, transparent 48%);
}

/* 转账网络下拉 展开层级 */
.ad-select[aria-expanded="true"] { z-index: 99998; }

/* 输入框 复用 wd-input 基础样式，这里不用再加；
   如需差异化（比如边框颜色）可在此覆写 */

.ad-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 28px 22px;
  border-top: 1px solid #F1F3F5;
  background: #FFFFFF;
}

@media (max-width: 520px) {
  .ad-coin-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-modal-body { padding: 20px; }
  .ad-modal-footer { padding: 14px 20px 18px; }
}

/* ==================================================================== */
/* 新建卡片（Create Card）弹窗 样式                                     */
/* ==================================================================== */
.cc-modal-mask { z-index: 100002; }   /* 在新增地址弹窗之上 */
.cc-modal-body {
  padding: 22px 28px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-gutter: stable;
}
.cc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 28px 22px;
  border-top: 1px solid #F1F3F5;
  background: #FFFFFF;
  flex-shrink: 0;
}
.cc-field { margin-bottom: 20px; }

/* ============ 卡片类型：2 列 大胶囊 ============ */
.cc-type-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.cc-type-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  height: 46px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.cc-type-option:hover {
  border-color: #FFD666;
  background: #FAFFF4;
}
.cc-type-option .cc-type-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cc-type-radio-fake {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: 50%;
  background: #FFFFFF;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cc-type-option.cc-is-selected,
.cc-type-option:has(.cc-type-radio:checked) {
  border-color: #FFD666;
  background: #F6FFEC;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}
.cc-type-option.cc-is-selected .cc-type-radio-fake,
.cc-type-option:has(.cc-type-radio:checked) .cc-type-radio-fake {
  border-color: #F5A623;
  background:
    radial-gradient(circle at center, #F5A623 0 42%, transparent 46% 100%),
    #FFFFFF;
}
.cc-type-name {
  font-size: 14px;
  font-weight: 500;
  color: #1A1D22;
  line-height: 1.2;
}

/* ============ 卡段号码：3 列 胶囊 ============ */
.cc-bin-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.cc-bin-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 14px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.cc-bin-option:hover {
  border-color: #FFD666;
  background: #FAFFF4;
}
.cc-bin-option .cc-bin-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cc-bin-radio-fake {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 50%;
  background: #FFFFFF;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cc-bin-option.cc-is-selected,
.cc-bin-option:has(.cc-bin-radio:checked) {
  border-color: #FFD666;
  background: #F6FFEC;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.08);
}
.cc-bin-option.cc-is-selected .cc-bin-radio-fake,
.cc-bin-option:has(.cc-bin-radio:checked) .cc-bin-radio-fake {
  border-color: #F5A623;
  background:
    radial-gradient(circle at center, #F5A623 0 44%, transparent 48% 100%),
    #FFFFFF;
}
.cc-bin-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 5px;
  background: #F1F3F5;
  color: #57606A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-bin-num {
  font-size: 14px;
  font-weight: 600;
  color: #1A1D22;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-family: 'SF Mono', ui-monospace, 'Menlo', 'Consolas', monospace;
}

/* ============ 卡面预览 + 参数 两列卡片 ============ */
.cc-info-card {
  display: grid;
  grid-template-columns: minmax(280px, 300px) 1fr;
  gap: 20px;
  padding: 20px;
  background: #F7F9FB;
  border-radius: 12px;
  align-items: start;
}

/* --- 左列：卡面 + 特性 --- */
.cc-info-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 卡面主体 */
.cc-card-face {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  border-radius: 12px;
  padding: 16px 18px;
  box-sizing: border-box;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(26,29,34,0.08), 0 2px 4px rgba(26,29,34,0.05);
}
.cc-card-face-dogpay {
  background: linear-gradient(135deg, #FFD700 0%, #F5A623 45%, #E8910F 100%);
  color: #FFFFFF;
}
.cc-card-face-dogpay-mc {
  background: linear-gradient(135deg, #3C3B7E 0%, #55489B 55%, #755FC3 100%);
  color: #FFFFFF;
}
.cc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.cc-card-logo-dogpay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}
.cc-card-logo-dogpay svg { width: 20px; height: 20px; color: #FFFFFF; }
.cc-card-scheme {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
  color: #FFFFFF;
}
.cc-card-scheme.cc-scheme-visa { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.cc-card-scheme.cc-scheme-mc {
  font-family: Arial, sans-serif;
  background: linear-gradient(90deg, #EB001B 0 50%, #F79E1B 50% 100%);
  color: #FFFFFF;
  padding: 4px 7px;
}
.cc-card-mid {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}
.cc-card-chip {
  width: 40px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 4px;
}
.cc-card-chip svg { width: 100%; height: 100%; display: block; }
.cc-card-pattern {
  width: 140px;
  height: 80px;
  align-self: flex-end;
  color: #FFFFFF;
  opacity: 0.9;
}
.cc-card-pattern svg { width: 100%; height: 100%; display: block; }

/* 卡特性（3DS / 第三方 / AI） */
.cc-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px;
}
.cc-features-tag {
  font-size: 12px;
  color: #8B949E;
  line-height: 1.2;
  padding: 6px 0 2px;
  border-top: 1px dashed #E4E7EB;
  margin-top: 2px;
}
.cc-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-feat-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  background: #F1F3F5;
  color: #3C434A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-ficon-apple { color: #000000; }
.cc-ficon-google { color: #4285F4; }
.cc-ficon-ai { color: #7457F6; background: #F4F0FF; }
.cc-feat-name {
  flex: 1 1 auto;
  font-size: 13px;
  color: #424A53;
  line-height: 1.3;
}
.cc-feat-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #F6FFED;
  color: #F5A623;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- 右列：参数 13 行 --- */
.cc-info-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #EEF1F4;
}
.cc-param-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid #F3F5F7;
  font-size: 13px;
  min-height: 36px;
  box-sizing: border-box;
}
.cc-param-row:last-child { border-bottom: none; }
.cc-param-label {
  color: #6B7280;
  font-weight: 400;
  line-height: 1.4;
  flex: 0 0 auto;
  white-space: nowrap;
}
.cc-param-value {
  color: #1A1D22;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  flex: 1 1 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.cc-pv-amount {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
}
.cc-param-badge {
  font-size: 11px !important;
  padding: 4px 8px !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 22px !important;
  min-width: auto !important;
}

/* 移动端：卡段3列→2列，信息卡两列→单列 */
@media (max-width: 760px) {
  .cc-bin-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-info-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}
@media (max-width: 520px) {
  .cc-type-group { grid-template-columns: 1fr; }
  .cc-modal-body { padding: 18px 18px 20px; }
  .cc-modal-footer { padding: 14px 18px 18px; }
}

/* ---- Recharge Drawer ---- */
.recharge-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100100;
}
.recharge-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}
.recharge-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  max-height: 100vh;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 100101;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}
.recharge-drawer.show {
  transform: translateX(0);
}
.recharge-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.recharge-drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
  margin: 0;
}
.recharge-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #6b7280);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.recharge-drawer-close:hover {
  background: var(--color-bg-hover, #f3f4f6);
  color: var(--color-text-primary, #111827);
}
.recharge-drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.recharge-section {
  margin-bottom: 20px;
}
.recharge-section-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary, #6b7280);
  margin-bottom: 10px;
}
.recharge-account-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}
.recharge-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--color-bg-input, #f9fafb);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.recharge-select:hover {
  border-color: var(--color-primary, #10b981);
  background: #fff;
}
.recharge-select.active {
  border-color: var(--color-primary, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.recharge-select-display {
  font-size: 14px;
  color: var(--color-text-primary, #111827);
  font-weight: 500;
}
.recharge-select-placeholder {
  color: var(--color-text-placeholder, #9ca3af);
  font-weight: 400;
}
.recharge-select-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary, #6b7280);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
.recharge-select.active .recharge-select-arrow {
  transform: rotate(180deg);
}
.recharge-transfer-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 20px;
}
.recharge-transfer-icon svg {
  color: var(--color-primary, #10b981);
}
.recharge-amount-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  background: var(--color-bg-input, #f9fafb);
  overflow: hidden;
  transition: all var(--transition-fast);
}
.recharge-amount-row:focus-within {
  border-color: var(--color-primary, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #fff;
}
.recharge-preview-box {
  padding: 10px 12px;
  border-radius: var(--radius-md, 10px);
  background: #f1f5f9;
  border: 1px solid var(--color-border-light, #e2e8f0);
  font-size: 13px;
  color: var(--color-text-secondary, #475569);
  line-height: 1.6;
}
.recharge-preview-box .rpv-row { display:flex; justify-content:space-between; gap:12px; }
.recharge-preview-box .rpv-warn { color:#b45309; }
.recharge-preview-box .rpv-rate { color:#0f766e; font-weight:600; }
.recharge-preview-box.rpv-loading { color:#94a3b8; }
.recharge-amount-input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--color-text-primary, #111827);
  outline: none;
}
.recharge-amount-input::placeholder {
  color: var(--color-text-placeholder, #9ca3af);
}
.recharge-amount-currency {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary, #6b7280);
  border-left: 1px solid var(--color-border-light, #f3f4f6);
}
.recharge-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border, #e5e7eb);
  background: #fff;
}
.recharge-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.recharge-btn-cancel {
  background: #fff;
  color: var(--color-text-primary, #111827);
  border: 1px solid var(--color-border, #e5e7eb);
}
.recharge-btn-cancel:hover {
  background: var(--color-bg-hover, #f3f4f6);
}
.recharge-btn-confirm {
  background: var(--color-primary, #10b981);
  color: #fff;
}
.recharge-btn-confirm:hover {
  background: var(--color-primary-hover, #059669);
}

/* Recharge dropdown popup */
.recharge-dropdown-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}
.recharge-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.recharge-dropdown-item:hover {
  background: var(--color-bg-hover, #f3f4f6);
}
.recharge-dropdown-item.selected {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-primary, #10b981);
}
.recharge-dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.recharge-dropdown-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.recharge-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #111827);
}
.recharge-dropdown-item.selected .recharge-dropdown-name {
  color: var(--color-primary, #10b981);
}
.recharge-dropdown-balance {
  font-size: 13px;
  color: var(--color-text-secondary, #6b7280);
}
.recharge-dropdown-item.selected .recharge-dropdown-balance {
  color: var(--color-primary, #10b981);
}

/* Recharge dropdown (fixed-position for overflow avoidance) */
.recharge-select {
  position: relative;
}
.recharge-select .recharge-select-display {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.recharge-select .recharge-select-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.recharge-select .recharge-select-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
}
.recharge-select .recharge-select-balance {
  font-size: 13px;
  color: var(--color-text-secondary, #6b7280);
  margin-left: auto;
}
.recharge-dropdown {
  position: fixed;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 200000;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  display: none;
}
.recharge-dropdown.show {
  display: block;
}
.recharge-dropdown .recharge-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.recharge-dropdown .recharge-dropdown-item:hover {
  background: var(--color-bg-hover, #f3f4f6);
}
.recharge-dropdown .recharge-dropdown-item.selected {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-primary, #10b981);
}
.recharge-dropdown .recharge-dropdown-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.recharge-dropdown .recharge-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #111827);
  flex: 1;
}
.recharge-dropdown .recharge-dropdown-balance {
  font-size: 13px;
  color: var(--color-text-secondary, #6b7280);
}
.recharge-dropdown .recharge-dropdown-item.selected .recharge-dropdown-name {
  color: var(--color-primary, #10b981);
}
.recharge-dropdown .recharge-dropdown-item.selected .recharge-dropdown-balance {
  color: var(--color-primary, #10b981);
}

/* Currency icon colors */
.recharge-select-icon.usdt-icon,
.recharge-dropdown-icon.usdt-icon { background: #26a17b; }
.recharge-select-icon.usdc-icon,
.recharge-dropdown-icon.usdc-icon { background: #2775ca; }
.recharge-select-icon.btc-icon,
.recharge-dropdown-icon.btc-icon { background: #f7931a; }
.recharge-select-icon.eth-icon,
.recharge-dropdown-icon.eth-icon { background: #627eea; }
.recharge-select-icon.sol-icon,
.recharge-dropdown-icon.sol-icon { background: #9945ff; }
.recharge-select-icon.doge-icon,
.recharge-dropdown-icon.doge-icon { background: #c3a634; }

/* responsive */
@media (max-width: 560px) {
  .recharge-drawer {
    width: 100vw;
  }
  .recharge-account-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Transaction Details Page Styles
   ========================================================= */

/* Tab panes */
.vip-tab-pane {
  display: none;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.vip-tab-pane.active {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Transaction Details Header */
.vtd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.vtd-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.vtd-sub-tabs {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
}
.vtd-sub-item {
  padding: 6px 16px;
  font-size: 14px;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vtd-sub-item.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Filters */
.vtd-filters {
  margin-bottom: 20px;
}
.vtd-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.vtd-filter-row:last-child {
  margin-bottom: 0;
}

/* Select */
.vtd-select {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 120px;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vtd-select:hover {
  border-color: #d4a574;
}
.vtd-select .vtd-select-display {
  flex: 1;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vtd-select .vtd-select-arrow {
  position: absolute;
  right: 10px;
  width: 14px;
  height: 14px;
  color: #999;
  pointer-events: none;
}
.vtd-select.active .vtd-select-arrow {
  transform: rotate(180deg);
}

/* Input */
.vtd-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
  min-width: 120px;
}
.vtd-input::placeholder {
  color: #aaa;
}
.vtd-input:focus {
  outline: none;
  border-color: #d4a574;
}

/* Export button */
.vtd-export-btn {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #d4a574;
  border-radius: 8px;
  background: #fff;
  color: #d4a574;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}
.vtd-export-btn:hover {
  background: #d4a574;
  color: #fff;
}

/* Date range */
.vtd-date-range {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vtd-date-input {
  height: 34px;
  width: 110px;
  padding: 0 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #333;
}
.vtd-date-input::placeholder {
  color: #aaa;
  font-size: 12px;
}
.vtd-date-arrow {
  color: #999;
  font-size: 12px;
}
.vtd-date-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}
.vtd-date-icon-btn:hover {
  border-color: #d4a574;
  color: #d4a574;
}

/* Table */
.vtd-table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  overflow-x: auto;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.vtd-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 14px;
}
.vtd-table thead th {
  position: sticky;
  top: 0;
  background: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
.vtd-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  white-space: nowrap;
}
.vtd-table tbody tr:hover {
  background: #fafafa;
}
.vtd-table tbody tr:last-child td {
  border-bottom: none;
}

/* Order number */
.vtd-order-no {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #333;
}
.vtd-copy-icon {
  margin-left: 4px;
  opacity: 0.4;
  cursor: pointer;
  font-size: 12px;
}
.vtd-copy-icon:hover {
  opacity: 1;
}

/* Tag styles */
.vtd-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.vtd-tag.tag-usa {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.vtd-tag.tag-travel {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.vtd-tag.tag-bill {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.vtd-tag.tag-food {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Amount */
.vtd-amount.neg {
  color: #333;
  font-weight: 500;
}
.vtd-amount.pos {
  color: #10b981;
  font-weight: 500;
}

/* Currency */
.vtd-currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

/* Transaction type */
.vtd-type {
  display: inline-block;
  font-size: 13px;
  color: #333;
}
.vtd-type.type-consume { color: #333; }
.vtd-type.type-refund { color: #dc2626; }
.vtd-type.type-transfer-in { color: #10b981; }
.vtd-type.type-transfer-out { color: #f59e0b; }

/* Remark */
.vtd-remark {
  color: #999;
}

/* Status cell */
.vtd-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.vtd-status-cell:hover {
  background: #f5f5f5;
}
.vtd-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.vtd-status-dot.dot-blue { background: #3b82f6; }
.vtd-status-dot.dot-green { background: #10b981; }
.vtd-status-dot.dot-red { background: #ef4444; }
.vtd-status-text {
  font-size: 13px;
  color: #333;
}
.vtd-status-arrow {
  width: 12px;
  height: 12px;
  color: #999;
}

/* Sort icon in header */
.vtd-sortable {
  cursor: pointer;
  user-select: none;
}
.vtd-sort-icon {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  color: #999;
}

/* Dropdown popup */
.vtd-dropdown-popup {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 160px;
  padding: 4px;
  font-size: 14px;
}
.vtd-dropdown-popup .vtd-dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.vtd-dropdown-popup .vtd-dropdown-item:hover {
  background: #f5f5f5;
}

/* Pagination */
.vtd-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 0;
}
.vtd-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vtd-page-btn:hover:not(:disabled):not(.active) {
  border-color: #d4a574;
  color: #d4a574;
}
.vtd-page-btn.active {
  background: #d4a574;
  border-color: #d4a574;
  color: #fff;
}
.vtd-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.vtd-page-ellipsis {
  padding: 0 4px;
  color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
  .vtd-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
@media (max-width: 768px) {
  .vtd-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .vtd-filter-row {
    flex-wrap: wrap;
  }
  .vtd-date-range {
    flex-wrap: nowrap;
  }
  .vtd-pagination {
    justify-content: center;
  }
}

/* ============================================
   加密资产交易明细 (Crypto Transaction Details)
   ============================================ */

/* Filter container */
.ctd-filters {
  margin-bottom: 16px;
}
.ctd-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Search input */
.ctd-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  min-width: 160px;
}
.ctd-search-input {
  width: 100%;
  height: 100%;
  padding: 0 32px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #1f2937;
  transition: border-color 0.2s;
}
.ctd-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.ctd-search-input::placeholder {
  color: #9ca3af;
}
.ctd-search-icon {
  position: absolute;
  right: 10px;
  color: #9ca3af;
  pointer-events: none;
}

/* Select button */
.ctd-select-wrap {
  position: relative;
}
.ctd-select-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.ctd-select-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}
.ctd-select-wrap.active .ctd-select-btn {
  border-color: #3b82f6;
  background: #eff6ff;
}
.ctd-select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  transition: transform 0.2s;
}
.ctd-select-wrap.active .ctd-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown panel */
.ctd-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.ctd-select-wrap.active .ctd-dropdown {
  display: block;
}

/* Dropdown search */
.ctd-dropdown-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.ctd-dropdown-search svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.ctd-dropdown-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #1f2937;
  background: transparent;
}
.ctd-dropdown-search-input::placeholder {
  color: #9ca3af;
}

/* Dropdown list */
.ctd-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}
.ctd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.ctd-dropdown-item:hover {
  background: #f3f4f6;
}
.ctd-dropdown-item.is-selected {
  background: #eff6ff;
  color: #3b82f6;
  font-weight: 500;
}
.ctd-select-wrap.has-value .ctd-select-btn span {
  color: #3b82f6;
  font-weight: 500;
}
.ctd-checkbox {
  display: none;
}
.ctd-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ctd-checkbox:checked + .ctd-check {
  background: #3b82f6;
  border-color: #3b82f6;
}
.ctd-checkbox:checked + .ctd-check::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.ctd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.ctd-icon.usdt-icon { background: #26a17b; }
.ctd-icon.usdc-icon { background: #2775ca; }
.ctd-icon.btc-icon { background: #f7931a; }
.ctd-icon.eth-icon { background: #627eea; }
.ctd-icon.sol-icon { background: #9945ff; }

/* Dropdown footer */
.ctd-dropdown-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}
.ctd-btn-text {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.ctd-btn-text:hover {
  color: #374151;
}
.ctd-btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.ctd-btn-primary:hover {
  background: #2563eb;
}

/* Export button */
.ctd-export-btn {
  margin-left: auto;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  background: #fff;
  color: #3b82f6;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ctd-export-btn:hover {
  background: #3b82f6;
  color: #fff;
}

/* Date range */
.ctd-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ctd-date-input {
  width: 120px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
}
.ctd-date-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.ctd-date-input::placeholder {
  color: #9ca3af;
}
.ctd-date-arrow {
  color: #9ca3af;
  font-size: 14px;
}
.ctd-date-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}
.ctd-date-icon-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Table */
.ctd-table-wrap {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  overflow-x: auto;
  margin-bottom: 16px;
}
.ctd-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  font-size: 13px;
}
.ctd-table thead th {
  position: sticky;
  top: 0;
  background: #fafafa;
  padding: 12px 14px;
  text-align: left;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  font-size: 12px;
}
.ctd-th-sortable {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}
.ctd-sort-icon {
  color: #9ca3af;
}
.ctd-th-settings {
  text-align: center;
}
.ctd-th-settings svg {
  color: #9ca3af;
  cursor: pointer;
}
.ctd-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #f5f5f5;
  color: #374151;
  white-space: nowrap;
}
.ctd-table tbody tr:hover {
  background: #f9fafb;
}
.ctd-table tbody tr:last-child td {
  border-bottom: none;
}

/* Order number with copy icon */
.ctd-order-no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}
.ctd-copy-icon {
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s;
}
.ctd-copy-icon:hover {
  color: #3b82f6;
}

/* Currency badge in table */
.ctd-currency-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ctd-currency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
}

/* Amount styling */
.ctd-amount {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-variant-numeric: tabular-nums;
}
.ctd-amount.neg { color: #ef4444; }
.ctd-amount.pos { color: #10b981; }

/* Status */
.ctd-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ctd-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ctd-status-dot.green { background: #10b981; }
.ctd-status-dot.blue { background: #3b82f6; }
.ctd-status-dot.red { background: #ef4444; }

/* Direction tag */
.ctd-direction {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.ctd-direction.in {
  background: #dcfce7;
  color: #16a34a;
}
.ctd-direction.out {
  background: #fee2e2;
  color: #dc2626;
}

/* Action link */
.ctd-action-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}
.ctd-action-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 交易详情弹窗 */
.tx-detail-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.tx-detail-dialog {
  background: var(--color-bg-primary, #fff);
  border-radius: 12px;
  max-width: 600px; width: 90%; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.tx-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.tx-detail-title { font-size: 16px; font-weight: 600; }
.tx-detail-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--color-text-secondary, #9ca3af);
}
.tx-detail-close:hover { color: var(--color-text-primary, #111); }
.tx-detail-body { padding: 24px; overflow-y: auto; }
.tx-detail-table { width: 100%; border-collapse: collapse; }
.tx-detail-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border, #f3f4f6); font-size: 14px; }
.tx-detail-label { color: var(--color-text-secondary, #6b7280); white-space: nowrap; width: 120px; }
.tx-detail-value { color: var(--color-text-primary, #111827); word-break: break-all; }

/* Pagination */
.ctd-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ctd-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.ctd-page-btn:hover:not(:disabled):not(.active) {
  border-color: #3b82f6;
  color: #3b82f6;
}
.ctd-page-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.ctd-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive for crypto transaction details */
@media (max-width: 1200px) {
  .ctd-filter-row {
    flex-wrap: wrap;
  }
  .ctd-search-wrap {
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  .ctd-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .ctd-filter-row {
    flex-wrap: wrap;
  }
  .ctd-table {
    min-width: 1200px;
  }
  .ctd-pagination {
    justify-content: center;
  }
}

/* ============================================================
   Wallet Detail Page (前缀：wd-*)
   ============================================================ */

/* ===== Wallet Detail Page ===== */
.wd-content {
  padding: var(--space-6);
}

/* Breadcrumb */
.wd-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}
.wd-bc-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.wd-bc-link:hover {
  color: var(--color-primary);
}
.wd-bc-sep {
  color: var(--color-text-tertiary);
}
.wd-bc-current {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Wallet Header Section */
.wd-wallet-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-6);
}
.wd-wh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wd-wh-currency {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
}
.wd-wh-info-row {
  display: flex;
  gap: var(--space-6);
  align-items: stretch;
}
.wd-wh-balance-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}
.wd-wh-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.wd-wh-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}
.wd-wh-amount {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}
.wd-wh-currency-suffix {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.wd-wh-address-block {
  flex: 1;
}
.wd-wh-address-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  height: 100%;
}
.wd-wh-address-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.wd-wh-more-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.wd-wh-more-link:hover {
  text-decoration: underline;
}
.wd-wh-address-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}
.wd-wh-chain-icon {
  display: flex;
  align-items: center;
}
.wd-wh-chain-name {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: 500;
}
.wd-wh-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wd-wh-copy-btn {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.wd-wh-copy-btn:hover {
  color: var(--color-primary);
  background: var(--color-border-light);
}
.wd-wh-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  margin-top: var(--space-2);
}
.wd-btn-outline {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wd-btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.wd-btn-primary {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wd-btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Wallet header action buttons - enlarged style */
.wd-wh-actions .wd-btn-outline {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-white);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
}
.wd-wh-actions .wd-btn-outline:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-white);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
  transform: translateY(-1px);
}
.wd-wh-actions .wd-btn-primary {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
}
.wd-wh-actions .wd-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
  transform: translateY(-1px);
}

/* Transaction Section */
.wd-tx-section {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

/* Tabs */
.wd-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0 var(--space-6);
}
.wd-tab {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}
.wd-tab:hover {
  color: var(--color-text-primary);
}
.wd-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}

/* Filters */
.wd-filters {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.wd-filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.wd-search-wrap {
  position: relative;
}
.wd-search-input {
  width: 200px;
  height: 36px;
  padding: 0 var(--space-3) 0 var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  background: var(--color-bg-white);
}
.wd-search-input:focus {
  border-color: var(--color-primary);
}
.wd-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
}

/* Select / Dropdown */
.wd-select-wrap {
  position: relative;
}
.wd-select-btn {
  height: 36px;
  padding: 0 32px 0 var(--space-3);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: border-color var(--transition-fast);
  position: relative;
}
.wd-select-btn:hover,
.wd-select-wrap.active .wd-select-btn {
  border-color: var(--color-primary);
}
.wd-select-wrap.has-value .wd-select-btn span {
  color: var(--color-primary);
  font-weight: 500;
}
.wd-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast);
}
.wd-select-wrap.active .wd-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}
.wd-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}
.wd-select-wrap.active .wd-dropdown {
  display: block;
}
.wd-dropdown-list {
  padding: var(--space-1) 0;
}
.wd-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}
.wd-dropdown-item:hover {
  background: var(--color-bg-light);
}
.wd-dropdown-item.is-selected {
  background: rgba(245, 166, 35, 0.1);
  color: var(--color-primary);
  font-weight: 500;
}
.wd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--color-text-white);
  flex-shrink: 0;
}
.wd-icon.usdt-icon { background: #26a17b; }
.wd-icon.usdc-icon { background: #2775ca; }
.wd-icon.btc-icon { background: #f7931a; }
.wd-icon.eth-icon { background: #627eea; }
.wd-icon.sol-icon { background: #9945ff; }

/* Export button */
.wd-export-btn {
  margin-left: auto;
  height: 36px;
  padding: 0 var(--space-5);
  border: 1px solid var(--color-primary);
  background: var(--color-bg-white);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wd-export-btn:hover {
  background: rgba(245, 166, 35, 0.1);
}

/* Date range */
.wd-date-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.wd-date-input {
  width: 140px;
  height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: var(--color-bg-white);
}
.wd-date-input:focus {
  border-color: var(--color-primary);
}
.wd-date-arrow {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}
.wd-date-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.wd-date-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Table */
.wd-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--color-border-light);
}
.wd-table {
  width: 100%;
  min-width: 1300px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.wd-table thead th {
  background: var(--color-bg-light);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
  font-size: var(--text-xs);
}
.wd-th-action-icon {
  text-align: center !important;
  width: 40px;
  padding: var(--space-3) var(--space-2) !important;
}
.wd-th-action-icon svg {
  color: var(--color-text-tertiary);
  cursor: pointer;
}
.wd-th-sortable {
  cursor: pointer;
  user-select: none;
}
.wd-sort-icon {
  margin-left: var(--space-1);
  color: var(--color-text-tertiary);
}
.wd-table tbody td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  white-space: nowrap;
}
.wd-table tbody tr:hover {
  background: var(--color-bg-light);
}

/* Table cells */
.wd-order-no {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.wd-copy-icon {
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.wd-copy-icon:hover {
  color: var(--color-primary);
}
.wd-currency-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.amount-negative {
  color: var(--color-error);
  font-weight: 500;
}
.amount-positive {
  color: var(--color-success);
  font-weight: 500;
}

/* Status */
.wd-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.wd-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-completed {
  color: var(--color-success);
}
.status-completed .wd-status-dot {
  background: var(--color-success);
}
.status-processing {
  color: var(--color-warning);
}
.status-processing .wd-status-dot {
  background: var(--color-warning);
}
.status-failed {
  color: var(--color-error);
}
.status-failed .wd-status-dot {
  background: var(--color-error);
}

/* Direction */
.wd-direction {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}
.direction-out {
  background: rgba(255, 77, 79, 0.1);
  color: var(--color-error);
}
.direction-in {
  background: rgba(245, 166, 35, 0.1);
  color: var(--color-success);
}

/* Action link */
.wd-action-link {
  color: var(--color-success);
  text-decoration: none;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.wd-action-link:hover {
  text-decoration: underline;
}

/* Pagination */
.wd-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-light);
}
.wd-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.wd-page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.wd-page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}
.wd-page-btn.is-disabled,
.wd-page-btn:disabled,
.wd-page-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Copy toast */
.wd-copy-toast {
  position: fixed;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 9999;
  pointer-events: none;
}
.wd-copy-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.wd-copy-toast-icon {
  color: var(--color-success);
}

/* ===== Exchange Detail Drawer ===== */
.wd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.wd-overlay.show {
  opacity: 1;
  visibility: visible;
}

.wd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-bg-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}
.wd-drawer.show {
  transform: translateX(0);
}

.wd-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.wd-drawer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.wd-drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.wd-drawer-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
}

.wd-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* Section */
.wd-section {
  margin-bottom: var(--space-6);
}
.wd-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

/* Card */
.wd-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Field rows */
.wd-field-row {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}
.wd-field-row:last-child {
  border-bottom: none;
}
.wd-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wd-field-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.wd-field-value {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Amount with icon */
.wd-amount-with-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

/* USD icon */
.wd-icon.usd-icon {
  background: linear-gradient(135deg, #3a8eae 0%, #2775ca 100%);
}

/* Responsive drawer */
@media (max-width: 600px) {
  .wd-drawer {
    width: 100%;
  }
  .wd-field-row {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Responsive for wallet detail */
@media (max-width: 1200px) {
  .wd-wh-info-row {
    flex-wrap: wrap;
    gap: var(--space-5);
  }
  .wd-wh-balance-item,
  .wd-wh-address-block {
    flex: 1 1 calc(50% - var(--space-5));
    min-width: 280px;
  }
  .wd-filter-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .wd-content {
    padding: var(--space-4);
  }
  .wd-wh-top {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .wd-wh-info-row {
    flex-direction: column;
    gap: var(--space-4);
  }
  .wd-wh-balance-item,
  .wd-wh-address-block {
    flex: 1 1 100%;
  }
  .wd-wh-actions {
    width: 100%;
  }
  .wd-filter-row {
    flex-wrap: wrap;
  }
  .wd-search-input {
    width: 100%;
  }
  .wd-table {
    min-width: 1000px;
  }
}

/* ===== Wallet Address Drawer ===== */
.wa-address-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wa-address-row {
  display: flex;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.wa-address-col {
  flex: 1;
  padding: var(--space-4) var(--space-5);
}

.wa-address-col:first-child {
  border-right: 1px solid var(--color-border-light);
}

.wa-col-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-medium);
}

.wa-network-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wa-network-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wa-network-icon svg {
  width: 20px;
  height: 20px;
}

.wa-network-name {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.wa-address-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wa-address-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-family: var(--font-family-mono, monospace);
  word-break: break-all;
  line-height: var(--line-height-snug);
}

.wa-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wa-copy-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-bg-hover);
}

.wa-copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .wa-address-row {
    flex-direction: column;
  }
  .wa-address-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
  }
}
