/* CSS Reset & Variables */
:root {
  --primary-purple: #7C3AED;
  --primary-purple-hover: #6D28D9;
  --primary-purple-light: rgba(124, 58, 237, 0.12);
  --text-dark: #0E0F0C;
  --text-muted: #4A4D4A;
  --border-color: #8E9294;
  --border-focus: #7C3AED;
  --bg-color: #FFFFFF;
  --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

/* Map numbers (0-9) to Geist Mono automatically */
@font-face {
  font-family: 'GeistMonoDigits';
  src: local('Geist Mono');
  unicode-range: U+0030-0039;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'GeistMonoDigits', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header Navbar */
.header {
  width: 100%;
  padding: 20px 32px;
  background-color: var(--bg-color);
  border-bottom: 1px solid #E5E7EB;
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  font-size: 26px;
  color: var(--primary-purple);
}

.logo-text {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-purple);
  letter-spacing: -0.6px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.close-icon {
  font-size: 20px;
}

.password-toggle-btn i {
  font-size: 20px;
}

/* Select Dropdown Styles */
.select-wrapper {
  position: relative;
  width: 100%;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background-color: #FFFFFF;
  color: var(--text-dark);
}

.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-dark);
  pointer-events: none;
}

/* Checkbox & Terms Styles */
.checkbox-group {
  margin-top: 20px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary-purple);
  cursor: pointer;
  flex-shrink: 0;
}

.inline-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--primary-purple);
}

/* Auth Error Message */
.auth-error-msg {
  background-color: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
}
.main-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 60px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

/* Title & Subtitle */
.title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.signup-link {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.signup-link:hover {
  color: var(--primary-purple);
}

/* Form Styles */
.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-family: 'GeistMonoDigits', 'Geist', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--primary-purple-light);
}

/* Password Field Wrapper */
.input-password-wrapper {
  position: relative;
  width: 100%;
}

.input-password-wrapper .form-input {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  /* Hover state disabled */
}

/* Submit Button */
.submit-btn {
  width: 100%;
  height: 48px;
  background-color: var(--primary-purple);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:active {
  transform: scale(0.99);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .header {
    padding: 16px 20px;
  }
  
  .main-container {
    padding-top: 24px;
  }
  
  .title {
    font-size: 28px;
  }
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-completed {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-pending {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-failed {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #F3F4F6;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.active {
  background-color: var(--primary-purple);
  color: #FFFFFF;
}

/* Clickable Transaction Rows */
.transaction-row.clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 12px;
  padding: 16px 12px;
  margin: 0 -12px;
}

.transaction-row.clickable:hover {
  background-color: #F9FAFB;
}

/* Detail Modal Key-Value Grid */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
}

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

.detail-label {
  color: #6B7280;
  font-weight: 500;
}

.detail-value {
  color: #111827;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-value.mono {
  font-family: 'GeistMonoDigits', monospace;
}

/* Sliding Banner Carousel (Matches Reference Design) */
.promo-banner-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 8px 24px -4px rgba(30, 144, 255, 0.2);
}

.promo-banner-track {
  display: flex;
  width: 300%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-slide {
  width: 33.333333%;
  padding: 32px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  box-sizing: border-box;
  min-height: 165px;
  position: relative;
  overflow: hidden;
}

.promo-slide-1 {
  background-color: #1E90FF; /* Vibrant Blue */
}

.promo-slide-2 {
  background-color: #2563EB; /* Deep Electric Blue */
}

.promo-slide-3 {
  background-color: #0284C7; /* Ocean Sky Blue */
}

.banner-wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.promo-content {
  max-width: 65%;
  z-index: 2;
  position: relative;
}

.promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  font-family: var(--font-family);
}

.promo-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 400;
  font-family: var(--font-family);
}

.promo-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #031B4E; /* Dark navy pill button */
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(3, 27, 78, 0.25);
  font-family: var(--font-family);
}

.promo-btn-dark:hover {
  background-color: #0B2566;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.35);
}

.promo-graphic {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* Orange Contact Support Banner (Solid orange background, no gradients) */
.support-banner-orange {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  background-color: #FF9900; /* Solid Vibrant Orange */
  padding: 32px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  box-sizing: border-box;
  min-height: 165px;
  box-shadow: 0 8px 24px -4px rgba(255, 153, 0, 0.35);
}

.support-banner-content {
  max-width: 65%;
  z-index: 2;
  position: relative;
}

.support-banner-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  font-family: var(--font-family);
}

.support-banner-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  line-height: 1.4;
  font-weight: 400;
  font-family: var(--font-family);
}

.support-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #031B4E; /* Dark navy pill button */
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(3, 27, 78, 0.25);
  font-family: var(--font-family);
}

.support-btn-dark:hover {
  background-color: #0B2566;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.35);
}

/* Banner Dots & Arrow Navigation */
.banner-dots {
  position: absolute;
  bottom: 14px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  width: 24px;
  border-radius: 10px;
  background-color: #FFFFFF;
}

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.promo-banner-container:hover .banner-nav-btn {
  opacity: 1;
}

.banner-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* Trade Terminal Layout */
.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 320px 320px;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .terminal-grid {
    grid-template-columns: 1fr 300px;
  }
  .terminal-orderbook-panel {
    display: none;
  }
}

@media (max-width: 840px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }
}

.terminal-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.pair-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #0E0F0C;
}

.ticker-metric {
  display: flex;
  flex-direction: column;
}

.ticker-label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 2px;
}

.ticker-val {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-family: 'GeistMonoDigits', monospace;
}

.ticker-val.up { color: #10B981; }
.ticker-val.down { color: #EF4444; }

/* Order Form Side Toggle */
.trade-type-tabs {
  display: flex;
  background-color: #F3F4F6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}

.trade-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #6B7280;
  transition: all 0.15s ease;
}

.trade-tab-btn.buy.active {
  background-color: #10B981;
  color: #FFFFFF;
}

.trade-tab-btn.sell.active {
  background-color: #EF4444;
  color: #FFFFFF;
}

.pct-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.pct-btn {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  background-color: #F9FAFB;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'GeistMonoDigits', monospace;
}

.pct-btn:hover {
  background-color: #F3F4F6;
  border-color: #D1D5DB;
}

/* Orderbook Table */
.orderbook-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  font-family: 'GeistMonoDigits', monospace;
}

.orderbook-table th {
  text-align: left;
  color: #9CA3AF;
  font-size: 11px;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.orderbook-table td {
  padding: 4px 0;
}

.orderbook-row.ask td.price { color: #EF4444; }
.orderbook-row.bid td.price { color: #10B981; }

/* Canvas Chart Container */
.chart-container {
  width: 100%;
  height: 340px;
  position: relative;
}

.chart-timeframes {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.tf-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #F3F4F6;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
}

.tf-btn.active {
  background-color: var(--primary-purple);
  color: #FFFFFF;
}

/* Global Component & Layout Styles */
.dashboard-header, .header {
  width: 100%;
  height: 72px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.header-container, .dashboard-header-inner {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo svg {
  width: 152px;
  height: 30px;
  display: block;
  max-width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: 1px solid #E5E7EB;
  font-size: 18px;
  color: #374151;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F3F4F6;
  border: none;
  padding: 6px 12px 6px 8px;
  border-radius: 1000px;
  cursor: pointer;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #E5E7EB;
  color: #1F2937;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-caret {
  font-size: 14px;
  color: #6B7280;
}

/* User Avatar Dropdown & Custom Dropdown System */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  display: none;
  z-index: 500;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown.active {
  display: block;
  transform: translateY(0);
}

.dropdown-user-header {
  padding: 12px 16px;
}

.dropdown-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #0E0F0C;
}

.dropdown-user-email {
  font-size: 12px;
  color: #6B7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background-color: #F3F4F6;
  margin: 4px 0;
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #F9FAFB;
  color: var(--primary-purple);
}

/* Light Mode Custom Select Inputs */
select, .custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%236B7280' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.15s ease;
  font-family: inherit;
}

select:hover, select:focus, .custom-select:hover, .custom-select:focus {
  border-color: var(--primary-purple);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary-purple-light);
  outline: none;
}

/* Dark Mode Custom Dropdown Menu System */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #1A2232;
  border: 1px solid #232E44;
  padding: 8px 14px;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: inherit;
}

.custom-dropdown-btn:hover {
  background-color: #222C40;
  border-color: #7C3AED;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.custom-dropdown-btn .dropdown-caret {
  font-size: 14px;
  color: #9CA3AF;
  transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background-color: #121721;
  border: 1px solid #232E44;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 500;
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.custom-dropdown-item:hover {
  background-color: #1E2638;
}

.custom-dropdown-item.active {
  background-color: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.item-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.item-price {
  font-family: 'GeistMonoDigits', monospace;
  font-size: 12px;
  color: #9CA3AF;
}

/* Main Layout & Sidebar */
.dashboard-layout {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  width: 240px;
  padding: 24px 20px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  border-right: 1px solid #F3F4F6;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  box-sizing: border-box;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 24px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-item i {
  font-size: 20px;
}

.nav-item:hover, .nav-item.active {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  font-weight: 600;
}

.logout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #EF4444;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 40px;
}

.content-area {
  flex: 1;
  padding: 24px 48px 48px 32px;
}

/* Balance Section */
.balance-section {
  margin-bottom: 36px;
}

.balance-label {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 38px;
  font-weight: 600;
  color: #0E0F0C;
  letter-spacing: -1px;
  margin-bottom: 24px;
  font-family: 'GeistMonoDigits', 'Geist', sans-serif;
}

.balance-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn-primary {
  background-color: var(--primary-purple);
  color: #FFFFFF;
}

.action-btn-secondary {
  background-color: #F3F4F6;
  color: #0E0F0C;
}

/* Modal Styling & Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #0E0F0C;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #6B7280;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

/* Modal Tabs */
.modal-tabs {
  display: flex;
  background-color: #F3F4F6;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: none;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
  outline: none;
}

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

.tab-btn.active {
  background-color: #FFFFFF;
  color: var(--primary-purple);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Deposit Modal Specific Redesign */
.deposit-modal-card {
  max-width: 500px !important;
  border-radius: 24px !important;
  padding: 24px 28px 28px 28px !important;
  box-shadow: 0 24px 48px -12px rgba(124, 58, 237, 0.22), 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.modal-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}

.deposit-asset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(145deg, #FAF5FF, #F3E8FF);
  border: 1px solid #E9D5FF;
  border-radius: 14px;
  margin-bottom: 20px;
}

.asset-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F7931A, #E67E22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(247, 147, 26, 0.35);
}

.asset-name {
  font-weight: 700;
  font-size: 15px;
  color: #0E0F0C;
  display: flex;
  align-items: center;
  gap: 6px;
}

.asset-ticker {
  font-size: 12px;
  color: #6B7280;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.asset-network {
  font-size: 12px;
  color: #6B7280;
  font-family: 'Geist Mono', monospace;
  margin-top: 2px;
}

.network-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rate-pill {
  font-size: 12px;
  color: var(--primary-purple);
  background: #F3E8FF;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.dual-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.input-sublabel {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.symbol-prefix {
  position: absolute;
  left: 12px;
  font-weight: 700;
  color: #6B7280;
  font-size: 14px;
  pointer-events: none;
}

.symbol-prefix.btc {
  color: #F7931A;
}

.modal-input {
  width: 100%;
  padding-left: 28px !important;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: var(--primary-purple);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Preset Chips */
.preset-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.preset-chip {
  flex: 1;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-align: center;
}

.preset-chip:hover {
  background: #EDE9FE;
  color: var(--primary-purple);
  border-color: #DDD6FE;
  transform: translateY(-1px);
}

.preset-chip.active {
  background: var(--primary-purple);
  color: #FFFFFF;
  border-color: var(--primary-purple);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

/* QR & Address Card */
.qr-address-card {
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  border: 1px dashed #D1D5DB;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.qr-code-wrapper {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #E5E7EB;
  margin-bottom: 10px;
}

.qr-image {
  width: 140px;
  height: 140px;
  display: block;
}

.qr-instruction {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
}

.address-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.address-text-container {
  flex: 1;
  overflow: hidden;
}

.address-input-field {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  outline: none;
  letter-spacing: -0.2px;
}

.address-copy-btn {
  background: var(--primary-purple);
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.address-copy-btn:hover {
  background: #6D28D9;
  transform: translateY(-1px);
}

.address-copy-btn.copied {
  background: #10B981 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

/* Security Notice */
.security-notice-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.security-notice-banner i {
  font-size: 16px;
  color: #D97706;
  flex-shrink: 0;
}

/* Submit CTA */
.deposit-submit-btn {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  font-family: inherit;
}

.deposit-submit-btn:hover {
  background: linear-gradient(135deg, #6D28D9, #5B21B6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.deposit-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Deposit QR Container & Address Wrapper */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #F9FAFB;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px dashed #E5E7EB;
}

.qr-image {
  width: 160px;
  height: 160px;
  background-color: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  margin-bottom: 12px;
}

.address-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.address-input {
  width: 100%;
  padding-right: 84px !important;
  font-size: 14px;
  font-family: 'GeistMonoDigits', monospace;
  box-sizing: border-box;
}

.copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-purple);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: #6D28D9;
}

/* Max Button inside input fields */
.max-btn, #maxWalletAmountBtn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.max-btn:hover, #maxWalletAmountBtn:hover {
  background-color: #EDE9FE;
  color: #6D28D9;
}

/* Transactions List */
.transactions-section {
  width: 100%;
}

.transactions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.transactions-title {
  font-size: 18px;
  font-weight: 600;
  color: #0E0F0C;
}

.see-all-link {
  font-size: 14px;
  font-weight: 500;
  color: #0E0F0C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.transactions-list {
  display: flex;
  flex-direction: column;
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

.transaction-row:last-child {
  border-bottom: none;
}

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

.tx-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #374151;
}

.tx-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tx-title {
  font-size: 15px;
  font-weight: 600;
  color: #0E0F0C;
}

.tx-date {
  font-size: 13px;
  color: #9CA3AF;
}

.tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tx-amount {
  font-size: 16px;
  font-weight: 600;
  color: #0E0F0C;
  font-family: 'GeistMonoDigits', 'Geist', sans-serif;
}

.tx-amount.positive {
  color: #10B981;
}

.tx-status {
  font-size: 13px;
  color: #9CA3AF;
}

/* Empty State Card Component */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #F8FAFC;
  border: 1px dashed #E2E8F0;
  border-radius: 16px;
  margin: 16px 0;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.empty-state-desc {
  font-size: 13px;
  color: #64748B;
  max-width: 320px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #7C3AED;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.empty-state-btn:hover {
  background-color: #6D28D9;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   GLOBAL RESPONSIVE DESIGN & ACCESSIBILITY AUDIT ENHANCEMENTS
   ========================================================================== */

/* Mobile Bottom Navigation Bar (Visible on Viewports <= 768px) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #6B7280;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  height: 100%;
  transition: color 0.15s ease;
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #7C3AED;
  font-weight: 600;
}

/* Tablet & Mobile Layout Adjustments (<= 1024px & <= 768px) */
@media (max-width: 1024px) {
  .header {
    padding: 14px 20px;
  }
  .content-area {
    padding: 20px 24px 60px;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 64px; /* Ensure bottom nav does not obscure footer content */
  }

  .sidebar {
    display: none !important;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  .content-area {
    padding: 16px 16px 80px 16px !important;
  }

  /* Modals: Ensure max-width and internal scroll on mobile */
  .modal-card, .admin-modal-card {
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
  }

  /* Touch Targets: minimum 44px for primary action buttons */
  button, .btn-action, .submit-btn, .action-btn, input, select {
    min-height: 44px;
  }

  /* Compact input padding for small forms */
  .dark-input, .form-input {
    font-size: 15px !important; /* Prevents iOS auto-zoom on focus */
  }

  /* Responsive Table Wrapper */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Transaction rows text wrap prevention */
  .transaction-row {
    padding: 12px 8px;
    gap: 8px;
  }

  .tx-title {
    font-size: 13px;
    word-break: break-word;
  }

  .tx-amount {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-container {
    gap: 8px;
  }

  .logo-text {
    font-size: 18px;
  }

  .balance-amount {
    font-size: 28px !important;
  }

  .balance-actions {
    flex-direction: column;
    width: 100%;
  }

  .balance-actions .action-btn {
    width: 100%;
    justify-content: center;
  }

  .filter-pills {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
  }
}





