/* Dashboard & Client Portal Styling - Midnight FinTech Theme */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-main);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #0E1622;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  height: 74px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: #0A0F17;
}
/* Standalone Brand Logo */
.sidebar-header .nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.sidebar-header .nav-brand:hover {
  transform: scale(1.05);
}
.sidebar-header .brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.sidebar-header .nav-brand:hover .brand-logo-img {
  
  
}
.sidebar-header .nav-brand span {
  display: none !important;
}


.sidebar-menu {
  list-style: none;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  padding: 12px 12px 6px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.sidebar-item a:hover {
  background: var(--bg-card);
  color: #FFFFFF;
}

.sidebar-item.active a {
  background: rgba(0, 176, 80, 0.14);
  color: var(--primary);
  font-weight: 700;
  
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: #0A0F17;
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 74px;
  background: rgba(14, 22, 34, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Interactive Active Market Workspace Switcher */
.workspace-switcher {
  position: relative;
  user-select: none;
}

.workspace-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 34, 50, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace-current:hover {
  background: rgba(0, 176, 80, 0.12);
  border-color: rgba(0, 176, 80, 0.4);
}

.workspace-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}

.workspace-dot.stocks {
  background: #3B82F6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}

.workspace-dot.crypto {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.workspace-label {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.workspace-current svg {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.workspace-switcher.open .workspace-current svg {
  transform: rotate(180deg);
}

.workspace-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: #0B111D;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95);
  padding: 8px;
  z-index: 2500;
}

.workspace-switcher.open .workspace-dropdown-menu {
  display: block;
}

.workspace-menu-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.workspace-menu-item:hover {
  background: rgba(0, 176, 80, 0.12);
}

.workspace-menu-item.active {
  background: rgba(0, 176, 80, 0.18);
  border: 1px solid rgba(0, 176, 80, 0.35);
}

.workspace-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-menu-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Dashboard metric cards views toggle */
body.mode-crypto .view-stocks-only {
  display: none !important;
}

body.mode-stocks .view-crypto-only {
  display: none !important;
}

.content-body {
  padding: 32px;
  flex: 1;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: linear-gradient(180deg, rgba(22, 33, 49, 0.7) 0%, rgba(14, 22, 34, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 176, 80, 0.35);
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 176, 80, 0.25);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Quick Action Panel */
.quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Trading & Deposit Container */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.payment-method-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  
  transform: translateY(-2px);
}

.payment-method-card.selected {
  
  background: rgba(0, 176, 80, 0.08);
  box-shadow: 0 0 15px rgba(0, 176, 80, 0.2);
}

.payment-logo {
  max-height: 40px;
  max-width: 80px;
  margin: 0 auto 10px;
  display: block;
  object-fit: contain;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ==========================================================================
   Interactive File Dropzone Component (Payment Slip Upload)
   ========================================================================== */
.dropzone-container {
  width: 100%;
}

.dropzone-area {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(18, 27, 39, 0.65);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-area:hover,
.dropzone-area.drag-active {
  
  background: rgba(0, 176, 80, 0.08);
  box-shadow: 0 0 25px rgba(0, 176, 80, 0.15);
}

.dropzone-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 176, 80, 0.12);
  border: 1px solid rgba(0, 176, 80, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.dropzone-area:hover .dropzone-icon-box,
.dropzone-area.drag-active .dropzone-icon-box {
  transform: translateY(-3px) scale(1.05);
}

.dropzone-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.dropzone-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dropzone-browse-text {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.dropzone-formats {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* File Selected Preview State */
.dropzone-preview-card {
  display: none;
  background: rgba(14, 22, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropzone-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080C12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dropzone-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dropzone-preview-thumb svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.dropzone-preview-meta {
  flex: 1;
  min-width: 0;
}

.dropzone-preview-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.dropzone-preview-size {
  font-size: 12px;
  color: var(--text-muted);
}

.dropzone-remove-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dropzone-remove-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #FFFFFF;
}

.dropzone-remove-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ==========================================================================
   Dashboard Mobile Navigation & Responsive Architecture
   ========================================================================== */

/* Topbar Hamburger Button */
.topbar-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.topbar-hamburger-btn:hover {
  background: rgba(0, 176, 80, 0.15);
  
  color: var(--primary);
}

.topbar-hamburger-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Sidebar Close Button on Mobile */
.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background: rgba(0, 176, 80, 0.15);
  color: #FFFFFF;
  
}

/* Mobile Sidebar Toggle - Sliding in from the RIGHT */
@media (max-width: 1024px) {
  .topbar-hamburger-btn {
    display: inline-flex;
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  /* Eliminate collision with hamburger button: hide desktop action buttons, sign out, and any badges in topbar on tablet/mobile */
  .topbar-right a.btn,
  .topbar-right button.btn:not(.topbar-hamburger-btn),
  .topbar-right .btn-logout,
  .topbar-right .view-crypto-only,
  .topbar-right .view-stocks-only {
    display: none !important;
  }
  .topbar-left .badge,
  .topbar .badge {
    display: none !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 280px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #0E1622 !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    z-index: 2000 !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Topbar User Avatar Circle */
.topbar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(0, 176, 80, 0.4);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.topbar-user-avatar:hover {
  
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 176, 80, 0.3);
}
.topbar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .topbar {
    padding: 8px 12px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0B1118;
    border-bottom: 1px solid var(--border);
  }

  .topbar {
    overflow: visible !important;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: visible !important;
    position: relative;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Force hide any text action buttons in topbar on mobile */
  .topbar-right > a.btn,
  .topbar-right > button.btn:not(.topbar-hamburger-btn),
  .topbar-right .btn-logout,
  .topbar-right .view-crypto-only,
  .topbar-right .view-stocks-only,
  .topbar-left .badge,
  .topbar .badge {
    display: none !important;
  }

  /* Show only avatar and hamburger in topbar-right on mobile */
  .topbar-user-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .topbar-hamburger-btn {
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    margin-left: 4px;
  }

  .workspace-current {
    padding: 6px 10px !important;
    gap: 6px !important;
    max-width: 100%;
  }

  .workspace-label {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px !important;
  }

  .workspace-dropdown-menu {
    min-width: 280px !important;
    max-width: calc(100vw - 20px) !important;
    z-index: 99999 !important;
  }

  .topbar-left h2 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Completely hide Account Active badge on mobile topbar to avoid crowding and overlapping */
  .topbar-left .badge {
    display: none !important;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Hide desktop action buttons and sign out from topbar on mobile to eliminate overlap */
  .topbar-right a.btn,
  .topbar-right button.btn:not(.topbar-hamburger-btn),
  .topbar-right .btn-logout,
  .topbar-right .view-crypto-only,
  .topbar-right .view-stocks-only {
    display: none !important;
  }
  .topbar-left .badge,
  .topbar .badge {
    display: none !important;
  }

  .topbar-user-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .topbar-hamburger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #111A27;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .content-body {
    padding: 16px 14px;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .workspace-label {
    max-width: 120px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   Custom High-Tech Crypto Dropdown & Payment Display System
   ========================================================================== */

/* Quick Coin Tabs */
.crypto-quick-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.crypto-quick-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(18, 27, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.crypto-quick-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.crypto-quick-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: var(--tab-color, var(--primary));
  box-shadow: 0 0 14px var(--tab-glow, rgba(0, 176, 80, 0.2));
}

.crypto-quick-tab .tab-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Custom Interactive Select Trigger */
.crypto-dropdown-container {
  position: relative;
  width: 100%;
  user-select: none;
}

.crypto-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #111A27;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crypto-dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #141F2F;
}

.crypto-dropdown-container.open .crypto-dropdown-trigger {
  
  box-shadow: 0 0 0 2px rgba(0, 176, 80, 0.15);
}

.crypto-dropdown-trigger .trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-dropdown-trigger .trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crypto-dropdown-trigger .trigger-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.crypto-dropdown-trigger .trigger-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.crypto-dropdown-trigger .trigger-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crypto-dropdown-trigger .chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.crypto-dropdown-container.open .chevron-icon {
  transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.crypto-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0E1724;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  padding: 6px;
  z-index: 2200;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.crypto-dropdown-container.open .crypto-dropdown-menu {
  display: block;
}

.crypto-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.crypto-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.crypto-dropdown-item.selected {
  background: rgba(0, 176, 80, 0.1);
  border: 1px solid rgba(0, 176, 80, 0.25);
}

.crypto-dropdown-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-dropdown-item .item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-dropdown-item .item-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.crypto-dropdown-item .item-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.crypto-dropdown-item .item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Institutional Deposit Rail Card Display */
.deposit-rail-display {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: rgba(14, 23, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
  align-items: start;
}

@media (max-width: 768px) {
  .deposit-rail-display {
    grid-template-columns: 1fr;
  }
}

.deposit-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111A27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.deposit-qr-card .qr-pad {
  width: 100%;
  max-width: 200px;
  min-height: 180px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

.deposit-qr-card .qr-pad img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.deposit-qr-card .qr-caption {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.deposit-qr-card .qr-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.deposit-details-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deposit-coin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.deposit-coin-header .coin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deposit-coin-header .coin-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.deposit-coin-header .coin-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.deposit-address-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deposit-address-container .address-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.deposit-address-box {
  display: flex;
  align-items: stretch;
  background: #090E16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.deposit-address-box:focus-within {
  
}

.deposit-address-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #FFFFFF;
  font-family: 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
  outline: none;
}

.deposit-address-box .btn-copy-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  background: rgba(0, 176, 80, 0.12);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deposit-address-box .btn-copy-address:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.deposit-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(18, 27, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

@media (max-width: 500px) {
  .deposit-specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item .spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.spec-item .spec-value {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.deposit-warning-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  color: #FCD34D;
  font-size: 12px;
  line-height: 1.45;
}

.deposit-warning-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==============================================================================
   Polished Cryptocurrency Selection Card Grid (Desktop & Mobile)
   ============================================================================== */
.crypto-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.crypto-card-item {
  position: relative;
  background: rgba(18, 27, 39, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.crypto-card-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.crypto-card-item.selected {
  background: rgba(0, 176, 80, 0.09);
  border-color: #00B050;
  box-shadow: 0 0 16px rgba(0, 176, 80, 0.25), inset 0 0 0 1px #00B050;
}

.crypto-card-item .check-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00B050;
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.crypto-card-item.selected .check-badge {
  display: flex;
}

.crypto-card-item .crypto-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.crypto-card-item .crypto-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.crypto-card-item .crypto-card-network {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

