/* Dashboard CSS - Nexus Investment FX */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --primary-blue: #05305c;
  --secondary-blue: #0a4a8a;
  --gold-primary: #ef9227;
  --gold-secondary: #fabc2e;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Status Colors */
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --info: #2196f3;

  /* Sidebar */
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

.security-section-card,
.profile-edit-form,
.profile-readonly-view,
.profile-tab-content {
  max-width: 100%;
  min-width: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Professional Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  max-width: 450px;
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--danger);
}

.notification.warning {
  border-left: 4px solid var(--warning);
}

.notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.notification-close:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

.notification-message {
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding-right: 30px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification.removing {
  animation: slideOut 0.3s ease-in forwards;
}

/* Dashboard Container */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  /* overflow-x: hidden; */
  width: 100%;
  max-width: 100vw;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(
    180deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile support */
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  z-index: 1000;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh; /* Ensure minimum height on mobile */
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0; /* Prevent header from shrinking */
}

.sidebar-header .logo-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 48px);
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.sidebar-header .brand-logo__icon {
  display: block;
  flex-shrink: 0;
  width: 60px;
  height: auto;
}

.sidebar-header .brand-logo__text {
  display: block;
  flex: 1 1 auto;
  width: auto;
  max-width: 150px;
  min-width: 0;
  height: auto;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition-fast);
  display: none;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  font-size: 15px;
  font-weight: 500;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold-primary);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-item.active {
  background: rgba(239, 146, 39, 0.15);
  color: var(--white);
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
}

.sidebar-footer {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto; /* Push footer to bottom */
  flex-shrink: 0; /* Prevent footer from shrinking */
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

/* ========== TOP HEADER ========== */
.top-header {
  background: var(--gray-50);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition-fast);
  margin-bottom: -4px;
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--gray-700);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

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

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: background var(--transition-fast);
}

.notification-btn:hover {
  background: var(--gray-100);
}

.notification-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-700);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--white);
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-btn:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}

.user-email {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.2;
}

.user-username {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.2;
  font-weight: 500;
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  fill: var(--gray-600);
  transition: transform var(--transition-fast);
}

.user-menu.active .dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.user-menu.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary-blue);
}

.dropdown-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========== EMAIL VERIFICATION BANNER ========== */
.email-verification-banner {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: var(--white);
  padding: 16px 32px;
  margin: 0 32px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Email Verification Banner - After-Action Alert (Unique Class Names) */
.email-verify-banner-alert {
  background: rgba(255, 255, 255, 0.95);
  color: #2e7d32;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-verify-banner-alert.error {
  color: #c62828;
}

.email-verify-alert-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.email-verify-alert-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.email-verify-alert-text {
  flex: 1;
}

.verification-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.verification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-icon svg {
  width: 24px;
  height: 24px;
}

.verification-message {
  flex: 1;
}

.verification-message strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.verification-message p {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.verification-resend-btn {
  background: var(--white);
  color: #ff9800;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.verification-resend-btn:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.verification-resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.verification-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

body.dark-mode .email-verification-banner {
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
}

body.dark-mode .email-verify-alert-text {
  color: black;
}

/* ========== CONTENT WRAPPER ========== */
.content-wrapper {
  flex: 1;
  padding: 32px;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Section loading overlay (full reload): fixed so spinner is centered in viewport */
.section-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

.section-loading-overlay.hidden {
  pointer-events: none;
  opacity: 0;
}

.section-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-loading-spinner .spinner-svg {
  width: 48px;
  height: 48px;
  animation: section-spinner-rotate 0.8s linear infinite;
}

.section-loading-spinner .spinner-circle {
  stroke: var(--primary-blue);
  stroke-dasharray: 90, 150;
  stroke-linecap: round;
  animation: section-spinner-dash 1.5s ease-in-out infinite;
}

@keyframes section-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes section-spinner-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

body.dark-mode .section-loading-overlay {
  background: rgba(241, 243, 245, 0.95);
}

body.dark-mode .section-loading-spinner .spinner-circle {
  stroke: var(--gold-primary);
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-600);
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.wallet-icon {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
}

.investment-icon {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
}

.profit-icon {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.referral-icon {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-change {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.quick-actions h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.action-btn:hover {
  box-shadow: var(--shadow-md);
}

.deposit-btn:hover {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
}

.withdraw-btn:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--white);
}

.invest-btn:hover {
  border-color: var(--gold-primary);
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--white);
}

.referral-btn:hover {
  border-color: #9c27b0;
  background: #9c27b0;
  color: var(--white);
}

/* ========== RECENT SECTION ========== */
.recent-section {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

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

.section-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.view-all {
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.view-all:hover {
  color: var(--gold-secondary);
}

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

.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 40px 20px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--gray-400);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 18px;
  font-weight: 600;
  color: var (--gray-700);
  margin: 0;
}

.empty-state span {
  font-size: 14px;
  color: var(--gray-500);
  display: block;
}

/* ========== TEMP MESSAGE ========== */
.temp-message {
  text-align: center;
  color: var(--gray-600);
  padding: 60px 20px;
  font-size: 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* ========== NOTIFICATION PANEL ========== */
.notification-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: right var(--transition-normal);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.notification-panel.active {
  right: 0;
}

.notification-header {
  padding: 20px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}

.notification-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-header h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mark-all-read-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--gray-600);
}

.mark-all-read-btn:hover {
  background: var(--gray-200);
  color: var(--primary-blue);
}

.mark-all-read-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.close-panel {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.close-panel:hover {
  background: var(--gray-100);
}

.close-panel svg {
  width: 20px;
  height: 20px;
  fill: var(--gray-600);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ========== TRANSACTION ITEMS ========== */
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.transaction-item:hover {
  background: var(--gray-100);
}

.transaction-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.transaction-info p {
  font-size: 13px;
  color: var(--gray-600);
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}

.transaction-amount.positive,
.transaction-amount.deposit,
.transaction-amount.profit,
.transaction-amount.interest {
  color: var(--success);
  background: rgba(76, 175, 80, 0.1);
}

.transaction-amount.negative,
.transaction-amount.withdrawal,
.transaction-amount.investment {
  color: var(--danger);
  background: rgba(244, 67, 54, 0.1);
}

/* ========== NOTIFICATION ITEMS ========== */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: rgba(5, 48, 92, 0.03);
  border-left: 3px solid var(--primary-blue);
}

.notification-item.unread:hover {
  background: rgba(5, 48, 92, 0.06);
}

.notification-item.read {
  opacity: 0.8;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.notification-item.read .notification-title {
  font-weight: 500;
}

.notification-message {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.notification-time {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.notification-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
  flex-shrink: 0;
}

.notification-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.notification-empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--gray-400);
  margin-bottom: 16px;
}

.notification-empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 8px 0;
}

.notification-empty-state span {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== OVERLAY ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 230px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for better mobile support */
    min-height: 100vh;
    min-height: 100dvh; /* Ensure minimum height on mobile */
    bottom: 0; /* Ensure sidebar extends to bottom */
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .top-header {
    padding: 16px;
  }

  .header-left {
    margin-left: -10px;
  }

  .page-title {
    font-size: 24px;
  }

  .content-wrapper {
    padding: 20px;
    overflow-x: hidden;
    max-width: 100vw;
    background: #ffffff;
  }

  #section-crypto-wallet {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 24px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .user-info {
    display: none;
  }

  .notification-panel {
    width: 100%;
    right: -100%;
  }

  .kyc-forms {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .kyc-requirement-notice {
    flex-direction: column;
    padding: 24px;
  }

  .kyc-requirement-notice .notice-icon {
    width: 48px;
    height: 48px;
  }

  .kyc-requirement-notice .notice-icon svg {
    width: 24px;
    height: 24px;
  }

  .kyc-requirement-notice .notice-content h3 {
    font-size: 18px;
  }

  .kyc-requirement-notice .notice-content > p {
    font-size: 14px;
  }

  .watchlist-items {
    grid-template-columns: 1fr;
  }
}

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

  .notification-btn {
    padding: 8px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .kyc-status-card {
    flex-direction: column;
    text-align: center;
  }

  .kyc-requirement-notice {
    padding: 20px;
  }

  .kyc-requirement-notice .notice-content h3 {
    font-size: 16px;
  }

  .kyc-benefits {
    padding: 16px;
  }

  .progress-steps {
    grid-template-columns: 1fr;
  }

  .alert-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========== WALLET SECTION ========== */
.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.balance-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 4px solid;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.balance-card:hover {
  box-shadow: var(--shadow-md);
}

.balance-card.available {
  border-left-color: var(--success);
}

.balance-card.pending {
  border-left-color: var(--warning);
}

.balance-card.withdrawal {
  border-left-color: var(--info);
}

.balance-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.balance-card.available .balance-icon {
  background: rgba(76, 175, 80, 0.1);
}

.balance-card.pending .balance-icon {
  background: rgba(255, 152, 0, 0.1);
}

.balance-card.withdrawal .balance-icon {
  background: rgba(33, 150, 243, 0.1);
}

.balance-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.balance-card.available .balance-icon svg {
  color: var(--success);
}

.balance-card.pending .balance-icon svg {
  color: var(--warning);
}

.balance-card.withdrawal .balance-icon svg {
  color: var(--info);
}

.balance-info {
  flex: 1;
}

.balance-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.wallet-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.wallet-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.wallet-table-section h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* ========== DEPOSIT & WITHDRAW SECTIONS ========== */
.deposit-form-container,
.withdraw-form-container,
.internal-transfer-form-container {
  max-width: 800px;
  margin: 0 auto 32px;
}

.transaction-form {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Custom Select Dropdown for Payment Method */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
  min-height: 48px;
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  border-color: var(--gray-400);
}

.custom-select-trigger.active {
  border-color: var(--primary-blue);
}

.custom-select-placeholder {
  display: flex;
  align-items: center;
  color: var(--gray-500);
  flex: 1;
}

.custom-select-placeholder img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
}

.custom-select-placeholder span {
  color: var(--gray-900);
}

.custom-select-arrow {
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 12px;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: var(--gray-50);
}

.custom-select-option span {
  color: var(--gray-900);
  font-size: 15px;
}

.crypto-option-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.input-hint {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
}

.crypto-payment-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-200);
}

.payment-info-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.crypto-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  display: none; /* Hidden by default until crypto is selected */
}

.crypto-icon-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.crypto-header h4 {
  font-size: 18px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.crypto-header p {
  font-size: 14px;
  color: var(--gray-600);
}

.qr-code-container {
  text-align: center;
  margin-bottom: 24px;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Loading Spinner for Crypto Payment Details */
.crypto-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.spinner-circle {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.spinner-text {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.scan-instruction {
  font-size: 14px;
  color: var(--gray-600);
}

.wallet-address-section {
  margin-bottom: 24px;
}

.wallet-address-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.address-input-group {
  display: flex;
  gap: 8px;
}

.address-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  background: white;
}

.copy-btn {
  padding: 12px 20px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.copy-btn:hover {
  background: var(--secondary-blue);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.payment-warning,
.withdraw-warning,
.internal-transfer-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  margin-bottom: 24px;
}

.internal-transfer-notice {
  background: #e8f5e9;
  border: 1px solid #4caf50;
}

.payment-warning svg,
.withdraw-warning svg,
.internal-transfer-notice svg {
  width: 24px;
  height: 24px;
  fill: #856404;
  flex-shrink: 0;
}

.internal-transfer-notice svg {
  fill: #2e7d32;
}

.payment-warning p,
.withdraw-warning p,
.internal-transfer-notice p {
  font-size: 14px;
  color: #856404;
  margin: 0;
}

.internal-transfer-notice div {
  flex: 1;
}

.internal-transfer-notice strong {
  display: block;
  color: #1b5e20;
  font-size: 14px;
  margin-bottom: 4px;
}

.internal-transfer-notice p {
  color: #2e7d32;
  font-size: 13px;
  line-height: 1.5;
}

.file-upload-container {
  position: relative;
}

.file-upload-container input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--gray-400);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
}

.file-upload-label:hover {
  border-color: var(--primary-blue);
  background: var(--gray-50);
}

.file-upload-label svg {
  width: 48px;
  height: 48px;
  fill: var(--gray-500);
  margin-bottom: 12px;
}

.file-upload-label span {
  font-size: 14px;
  color: var(--gray-600);
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--gold-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.submit-btn:hover {
  background: var(--gold-secondary);
}

.submit-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.withdraw-info-card,
.internal-transfer-info-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 14px;
  color: var(--gray-600);
}

.info-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.pending-section {
  margin-top: 32px;
}

.pending-section h3 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* ========== DATA TABLES ========== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  overflow-y: hidden;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.data-table thead {
  background: var(--gray-100);
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

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

/* Clickable Transaction Rows */
.transaction-row {
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.transaction-row:hover {
  background: var(--primary-50) !important;
  transform: translateX(2px);
}

.transaction-row:active {
  transform: translateX(0px);
}

/* Clickable Transaction Items (Dashboard) */
.transaction-item[style*="cursor: pointer"] {
  transition: all 0.2s ease;
  border-radius: 8px;
}

.transaction-item[style*="cursor: pointer"]:hover {
  background: var(--primary-50);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transaction-item[style*="cursor: pointer"]:active {
  transform: translateX(0px);
}

.empty-message {
  text-align: center;
  color: var(--gray-500);
  padding: 32px !important;
  font-style: italic;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed,
.status-badge.success,
.status-badge.active {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.pending {
  background: rgba(255, 152, 0, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.failed,
.status-badge.inactive,
.status-badge.danger,
.status-badge.cancelled {
  background: rgba(244, 67, 54, 0.15);
  color: var(--danger);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.amount.positive {
  color: var(--success);
  font-weight: 600;
}

.amount.negative {
  color: var(--danger);
  font-weight: 600;
}

/* ========== INVESTMENT PLANS ========== */
.investments-content {
  padding: 20px 0;
}

.investment-plans-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.investment-plans-list .empty-state {
  grid-column: 1 / -1;
  min-height: 300px;
  padding: 60px 20px;
}

/* ========== RECURRING INVESTMENTS ========== */
.recurring-investments-card {
  margin-top: 40px;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.recurring-investments-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.recurring-investments-header p {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.recurring-setup-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--primary-blue) 100%
  );
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.recurring-setup-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.recurring-investments-list {
  margin-top: 24px;
}

.recurring-empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--gray-600);
}

.recurring-empty-state svg {
  display: block;
  margin: 0 auto 16px;
}

.recurring-empty-state p {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.recurring-empty-state span {
  font-size: 14px;
  color: var(--gray-500);
}

.recurring-schedules-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recurring-schedule-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  transition: all var(--transition-fast);
}

.recurring-schedule-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.recurring-schedule-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.recurring-schedule-info h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.recurring-schedule-meta {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.recurring-schedule-next {
  font-size: 13px;
  color: var(--gray-500);
}

.recurring-schedule-status .recurring-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.recurring-status-badge.active {
  background: rgba(56, 142, 60, 0.15);
  color: #2e7d32;
}

.recurring-status-badge.paused {
  background: rgba(245, 124, 0, 0.15);
  color: #e65100;
}

.recurring-status-badge.cancelled {
  background: var(--gray-200);
  color: var(--gray-600);
}

.recurring-schedule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-recurring {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-recurring.pause,
.btn-recurring.resume {
  background: var(--gray-200);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-recurring.pause:hover,
.btn-recurring.resume:hover {
  background: var(--gray-300);
  color: var(--primary-blue);
}

.btn-recurring.cancel {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-recurring.cancel:hover {
  background: rgba(244, 67, 54, 0.1);
}

.recurring-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Recurring investments: iPad / tablet */
@media (max-width: 1024px) {
  .recurring-investments-card {
    margin-top: 32px;
    padding: 24px 22px;
  }

  .recurring-investments-header h3 {
    font-size: 21px;
  }

  .recurring-investments-header p {
    margin-bottom: 18px;
  }

  .recurring-investments-list {
    margin-top: 20px;
  }

  .recurring-empty-state {
    padding: 40px 20px;
  }

  .recurring-schedule-item {
    padding: 18px;
    border-radius: 10px;
  }

  .recurring-schedule-main {
    margin-bottom: 12px;
  }

  .recurring-schedule-info h4 {
    font-size: 16px;
  }

  .btn-recurring {
    padding: 8px 14px;
  }
}

/* Recurring investments: mobile */
@media (max-width: 480px) {
  .recurring-investments-card {
    margin-top: 24px;
    padding: 20px 16px;
  }

  .recurring-investments-header h3 {
    font-size: 20px;
  }

  .recurring-investments-header p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .recurring-setup-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .recurring-empty-state {
    padding: 32px 12px;
  }

  .recurring-empty-state svg {
    width: 40px;
    height: 40px;
  }

  .recurring-schedule-item {
    padding: 14px;
    border-radius: 10px;
  }

  .recurring-schedule-main {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .recurring-schedule-info h4 {
    font-size: 16px;
  }

  .btn-recurring {
    padding: 8px 14px;
  }
}

/* ========== PORTFOLIO INVESTMENTS FILTER SYSTEM ========== */
.portfolio-investments {
  margin-top: 40px;
}

.portfolio-investments-header {
  margin-bottom: 30px;
}

.portfolio-investments-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-investments-header h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  border-radius: 2px;
}

/* Portfolio Filter Tabs */
.portfolio-filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.portfolio-filter-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.portfolio-filter-tab:hover:not(.active) {
  background: var(--gray-100);
  color: var(--gray-800);
}

.portfolio-filter-tab.active {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(5, 48, 92, 0.2);
}

.portfolio-filter-tab .tab-label {
  font-size: 14px;
}

.portfolio-filter-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.portfolio-filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.portfolio-filter-tab:not(.active) .tab-count {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Portfolio Investments List */
.portfolio-investments-list {
  display: grid;
  gap: 20px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty State */
.portfolio-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 16px;
  border: 2px dashed var(--gray-300);
}

.portfolio-empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.portfolio-empty-state h4 {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.portfolio-empty-state p {
  color: var(--gray-500);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-filter-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .portfolio-filter-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
  }

  .portfolio-filter-tab .tab-label {
    font-size: 13px;
  }

  .portfolio-filter-tab .tab-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Investment Items */
.investments-list {
  display: grid;
  gap: 20px;
}

.investment-item {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.investment-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  opacity: 1;
  transition: opacity var(--transition-normal);
}

/* Completed Investment Styling */
.investment-item.completed {
  border-color: var(--gray-300);
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 0.5),
    rgba(255, 255, 255, 0.9)
  );
}

.investment-item.completed::before {
  background: linear-gradient(90deg, var(--info), #1976d2);
}

.investment-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.investment-item.completed .investment-calculation {
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.03),
    rgba(33, 150, 243, 0.06)
  );
}

.investment-item.completed .progress-bar {
  background: var(--gray-200);
}

.investment-item.completed .progress-fill {
  background: linear-gradient(90deg, var(--info), #1976d2);
}

.investment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.investment-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

/* Status Badges - Dynamic Styling */
.investment-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.investment-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Active Status Badge */
.investment-status.active {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(76, 175, 80, 0.15)
  );
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.investment-status.active::before {
  background: var(--success);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Completed Status Badge */
.investment-status.completed {
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.1),
    rgba(33, 150, 243, 0.15)
  );
  color: var(--info);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.investment-status.completed::before {
  background: var(--info);
}

/* Pending Status Badge */
.investment-status.pending {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.1),
    rgba(255, 152, 0, 0.15)
  );
  color: var(--warning);
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.investment-status.pending::before {
  background: var(--warning);
}

.investment-calculation {
  background: linear-gradient(
    135deg,
    rgba(5, 48, 92, 0.03),
    rgba(5, 48, 92, 0.06)
  );
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(5, 48, 92, 0.1);
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.calculation-row.total-row {
  border-top: 2px solid var(--gold-primary);
  margin-top: 8px;
  padding-top: 12px;
}

.calculation-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.calculation-value {
  font-size: 16px;
  color: var(--gray-900);
  font-weight: 600;
}

.calculation-row.total-row .calculation-label {
  color: var(--primary-blue);
  font-weight: 600;
}

.calculation-row.total-row .calculation-value {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 18px;
}

.investment-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.investment-amount {
  font-size: 16px;
  color: var(--gray-700);
}

.investment-amount strong {
  color: var(--gray-900);
  font-weight: 600;
}

.investment-roi {
  background: linear-gradient(
    135deg,
    rgba(239, 146, 39, 0.05),
    rgba(239, 146, 39, 0.1)
  );
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(239, 146, 39, 0.2);
}

.investment-roi-header {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.investment-roi-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.roi-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
}

.roi-daily {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

.roi-daily strong {
  color: var(--primary-blue);
}

.investment-dates {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.investment-dates div {
  flex: 1;
}

.investment-dates strong {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.investment-dates span {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 500;
}

.investment-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

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

.progress-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.progress-percentage {
  font-size: 12px;
  color: var(--primary-blue);
  font-weight: 600;
}

.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  border-radius: 3px;
  transition: width var(--transition-normal);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-details {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .investment-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .investment-roi-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .investment-dates {
    flex-direction: column;
    gap: 12px;
  }

  .investment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.investment-plan {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(5, 48, 92, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 2px solid transparent;
}

/* Top gradient accent bar */
.investment-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue) 0%,
    var(--gold-primary) 100%
  );
  z-index: 1;
}

/* Tier Badges */
.investment-plan::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -10px;
  padding: 6px 20px 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px 0 0 20px;
  z-index: 2;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

.investment-plan:nth-child(1)::after {
  content: "Starter";
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: #fff;
}

.investment-plan:nth-child(2)::after {
  content: "Popular";
  background: linear-gradient(135deg, var(--info), #0d8bf2);
  color: #fff;
  animation: pulse-badge 2s infinite;
}

.investment-plan:nth-child(3)::after {
  content: "Best Value";
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: #1a1a1a;
  animation: pulse-badge 2s infinite;
  font-weight: 800;
}

.investment-plan:nth-child(4)::after {
  content: "Premium";
  background: linear-gradient(135deg, #0a4a8a, #1565c0);
  color: #fff;
}

.investment-plan:nth-child(5)::after {
  content: "Elite";
  background: linear-gradient(
    135deg,
    var(--secondary-blue),
    var(--primary-blue)
  );
  color: #fff;
}

.investment-plan:nth-child(6)::after {
  content: "VIP";
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
  color: #fff;
  animation: glow-vip 2s infinite alternate;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.3);
  }
}

@keyframes glow-vip {
  0% {
    box-shadow: -2px 2px 8px rgba(239, 146, 39, 0.4);
  }
  100% {
    box-shadow:
      -2px 2px 20px rgba(239, 146, 39, 0.8),
      0 0 30px rgba(250, 188, 46, 0.4);
  }
}

/* Hover effect with glassmorphism */
.investment-plan:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 40px rgba(5, 48, 92, 0.2);
  border-color: rgba(239, 146, 39, 0.3);
}

.investment-plan:hover::before {
  height: 6px;
}

/* Featured plan (Gold - Best Value) highlight */
.investment-plan:nth-child(3) {
  border: 2px solid rgba(239, 146, 39, 0.2);
  box-shadow: 0 8px 25px rgba(239, 146, 39, 0.12);
}

.investment-plan:nth-child(3):hover {
  border-color: rgba(239, 146, 39, 0.5);
  box-shadow: 0 20px 45px rgba(239, 146, 39, 0.25);
}

/* Plan Header with gradient backgrounds */
.investment-plan-header {
  margin: 0;
  padding: 40px 30px 35px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Tier-specific header gradients using brand colors */
.investment-plan:nth-child(1) .investment-plan-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
}

.investment-plan:nth-child(2) .investment-plan-header {
  background: linear-gradient(135deg, var(--info) 0%, #0d8bf2 100%);
}

.investment-plan:nth-child(3) .investment-plan-header {
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
}

.investment-plan:nth-child(4) .investment-plan-header {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1565c0 100%);
}

.investment-plan:nth-child(5) .investment-plan-header {
  background: linear-gradient(135deg, #0a4a8a 0%, var(--primary-blue) 100%);
}

.investment-plan:nth-child(6) .investment-plan-header {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d97706 100%);
}

/* Subtle animated background overlay */
.investment-plan-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.investment-plan-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.investment-plan-header .line-break {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  margin: 0 auto 20px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.investment-plan-header h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Plan Body */
.investment-plan-body {
  padding: 35px 30px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.investment-plan-body h4 {
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}

.investment-plan ul {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
  padding: 0;
  flex-grow: 1;
}

.investment-plan ul li {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  transition: all 0.3s ease;
}

/* Custom checkmark icon using brand colors */
.investment-plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  transition: all 0.3s ease;
}

.investment-plan:nth-child(1) ul li::before {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
}

.investment-plan:nth-child(2) ul li::before {
  background: linear-gradient(135deg, var(--info), #0d8bf2);
}

.investment-plan:nth-child(3) ul li::before {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
}

.investment-plan:nth-child(4) ul li::before {
  background: linear-gradient(135deg, var(--secondary-blue), #1565c0);
}

.investment-plan:nth-child(5) ul li::before {
  background: linear-gradient(135deg, #0a4a8a, var(--primary-blue));
}

.investment-plan:nth-child(6) ul li::before {
  background: linear-gradient(135deg, var(--gold-primary), #d97706);
}

.investment-plan ul li:hover {
  padding-left: 35px;
  color: var(--primary-blue);
}

.investment-plan ul li:last-child {
  border-bottom: none;
}

/* Invest Button - Using brand colors */
.investment-plan-body button.invest-btn,
.investment-plan-body .invest-btn {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.investment-plan:nth-child(1) .invest-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
}

.investment-plan:nth-child(2) .invest-btn {
  background: linear-gradient(135deg, var(--info) 0%, #0d8bf2 100%);
}

.investment-plan:nth-child(3) .invest-btn {
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
}

.investment-plan:nth-child(4) .invest-btn {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, #1565c0 100%);
}

.investment-plan:nth-child(5) .invest-btn {
  background: linear-gradient(135deg, #0a4a8a 0%, var(--primary-blue) 100%);
}

.investment-plan:nth-child(6) .invest-btn {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d97706 100%);
}

/* Button hover effects */
.investment-plan-body .invest-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.investment-plan:nth-child(1) .invest-btn:hover {
  box-shadow: 0 8px 25px rgba(5, 48, 92, 0.4);
}

.investment-plan:nth-child(2) .invest-btn:hover {
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.investment-plan:nth-child(3) .invest-btn:hover {
  box-shadow: 0 8px 30px rgba(239, 146, 39, 0.5);
}

.investment-plan:nth-child(4) .invest-btn:hover {
  box-shadow: 0 8px 25px rgba(10, 74, 138, 0.4);
}

.investment-plan:nth-child(5) .invest-btn:hover {
  box-shadow: 0 8px 25px rgba(5, 48, 92, 0.4);
}

.investment-plan:nth-child(6) .invest-btn:hover {
  box-shadow: 0 8px 30px rgba(239, 146, 39, 0.5);
}

.investment-plan-body .invest-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .investment-plans-list {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .investment-plans-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .investment-plan-header {
    padding: 35px 20px 30px;
  }

  .investment-plan-header h2 {
    font-size: 20px;
  }

  .investment-plan-header h3 {
    font-size: 28px;
  }

  .investment-plan-body {
    padding: 30px 20px 25px;
  }

  .investment-plan::after {
    font-size: 10px;
    padding: 5px 16px 5px 12px;
  }
}

@media (max-width: 480px) {
  .investment-plan-header h2 {
    font-size: 18px;
    letter-spacing: 0.8px;
  }

  .investment-plan-header h3 {
    font-size: 24px;
  }

  .investment-plan ul li {
    font-size: 14px;
    padding: 10px 0 10px 28px;
  }

  .investment-plan-body .invest-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ========== INVESTMENT MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 22px;
  color: var(--gray-900);
}

.close-modal {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-200);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.close-modal:hover {
  background: var(--gray-300);
}

.modal-body {
  padding: 24px;
}

.investment-summary {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 2px solid var(--gray-300);
}

.summary-item span {
  font-size: 14px;
  color: var(--gray-700);
}

.summary-item strong {
  font-size: 16px;
  color: var(--primary-blue);
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.portfolio-stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.portfolio-stat-card h4 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

.portfolio-stat-card .stat-value.positive {
  color: var (--success);
}

.active-investments h3 {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.investments-list {
  display: grid;
  gap: 24px;
}

.investment-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

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

.investment-header h4 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.investment-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.investment-status.active {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.investment-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.investment-dates {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-item span {
  font-size: 13px;
  color: var(--gray-600);
}

.date-item strong {
  font-size: 14px;
  color: var(--gray-900);
}

.investment-progress {
  margin-bottom: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-details {
  font-size: 12px;
  color: var(--gray-600);
}

.investment-earnings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.earning-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.earning-item span {
  font-size: 13px;
  color: var(--gray-600);
}

.earning-item strong {
  font-size: 16px;
  color: var(--gray-900);
}

.earning-item strong.positive {
  color: var(--success);
}

/* ========== TRANSACTIONS SECTION ========== */
.transaction-filters {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab.active {
  background: var(--primary-blue);
  color: white;
}

.filter-tab:hover:not(.active) {
  background: var(--gray-200);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.date-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.date-filter input {
  padding: 10px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
}

.filter-btn,
.export-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn {
  background: var(--primary-blue);
  color: white;
}

.filter-btn:hover {
  background: var(--secondary-blue);
}

.export-btn {
  background: var(--gold-primary);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn:hover {
  background: var(--gold-secondary);
}

.export-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.transaction-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.transaction-type.deposit {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.transaction-type.withdrawal {
  background: rgba(244, 67, 54, 0.1);
  color: var(--danger);
}

.transaction-type.investment {
  background: rgba(33, 150, 243, 0.1);
  color: var(--info);
}

.transaction-type.profit {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
}

.transaction-type.interest {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.transaction-type.internal_transfer_out {
  background: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
}

.transaction-type.internal_transfer_in {
  background: rgba(103, 58, 183, 0.1);
  color: #673ab7;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.page-btn,
.page-number {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled),
.page-number:hover {
  background: var(--gray-100);
  border-color: var(--primary-blue);
}

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

.page-number.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

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

.page-ellipsis {
  color: var(--gray-600);
  font-weight: 600;
  padding: 0 8px;
  user-select: none;
}

/* ========== REFERRALS SECTION ========== */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.referral-stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.referral-stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(5, 48, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.referral-stat-card .stat-icon.earnings {
  background: rgba(239, 146, 39, 0.1);
}

.referral-stat-card .stat-icon.active {
  background: rgba(76, 175, 80, 0.1);
}

.referral-stat-card .stat-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-blue);
}

.referral-stat-card .stat-icon.earnings svg {
  fill: var(--gold-primary);
}

.referral-stat-card .stat-icon.active svg {
  fill: var(--success);
}

.referral-stat-card h4 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.referral-stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.referral-link-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.referral-link-section h3 {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.referral-description {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.referral-link-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.referral-link-box input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  background: var(--gray-50);
}

.copy-link-btn {
  padding: 14px 24px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.copy-link-btn:hover {
  background: var(--secondary-blue);
}

.copy-link-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-share h4 {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 12px 20px;
  border: 2px solid var(--gray-300);
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.referred-users-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.referred-users-section h3 {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 20px;
}

/* ========== PROFILE SECTION ========== */
.profile-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

.profile-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.profile-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.profile-tab:hover:not(.active) {
  color: var(--gray-800);
}

.profile-tab-content {
  display: none;
  max-width: 100%;
}

.profile-tab-content.active {
  display: block;
}

.profile-form {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ========== EDIT PROFILE FORM ========== */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edit-form-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.edit-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}

.edit-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edit-section-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.edit-section-icon.personal-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.edit-section-icon.wallet-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.edit-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.edit-section-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.edit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
}

.edit-form-group.full-width {
  grid-column: 1 / -1;
}

.edit-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edit-form-label .label-icon {
  width: 16px;
  height: 16px;
  fill: var(--gray-600);
  flex-shrink: 0;
}

.edit-form-label .label-icon.btc-icon {
  fill: #f7931a;
}

.edit-form-label .label-icon.eth-icon {
  fill: #627eea;
}

.required-indicator {
  color: #f44336;
  font-weight: 700;
  margin-left: 2px;
}

.optional-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.input-wrapper {
  position: relative;
}

.edit-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.edit-form-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.edit-form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(5, 48, 92, 0.1);
  transform: translateY(-1px);
}

.edit-form-input:hover:not(:disabled):not([readonly]) {
  border-color: var(--gray-400);
}

.edit-form-input.readonly-field {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-600);
  cursor: not-allowed;
  opacity: 0.9;
}

.edit-form-input.readonly-field:focus {
  box-shadow: none;
  transform: none;
  border-color: var(--gray-200);
}

.edit-form-input.wallet-input {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-600);
  font-style: italic;
}

.field-hint svg {
  fill: var(--gray-500);
  flex-shrink: 0;
}

.edit-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}

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

.btn-cancel {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-cancel:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-save {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(5, 48, 92, 0.3);
}

.btn-save:hover {
  box-shadow: 0 6px 16px rgba(5, 48, 92, 0.4);
}

.btn-cancel svg,
.btn-save svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-readonly-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-section-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.profile-section-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}

.section-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-header-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.section-header-icon.personal-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.section-header-icon.wallet-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.profile-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.profile-info-item:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.info-item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gray-700);
}

.info-item-icon.btc-icon svg {
  fill: #f7931a;
}

.info-item-icon.eth-icon svg {
  fill: #627eea;
}

.info-item-content {
  flex: 1;
  min-width: 0;
}

.info-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.info-item-value.wallet-value {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 13px;
  color: var(--gray-700);
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.email-verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.email-verification-badge .badge-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.email-verification-badge.verified {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.email-verification-badge.not-verified {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  border: 1px solid #ffcc80;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.edit-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.edit-profile-btn:hover {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-md);
}

.edit-profile-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.profile-form input[readonly] {
  background-color: var(--gray-100) !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.profile-form input[readonly]:focus {
  outline: none;
  border-color: var(--gray-300);
  box-shadow: none;
}

.profile-form small {
  display: block;
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 12px;
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ========== SECURITY SECTION ========== */
.security-section-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
}

.security-section-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.security-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}

.security-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-section-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.security-section-icon.password-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.security-section-icon.twofa-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.security-section-icon.preferences-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.security-section-icon.activity-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

/* ========== LOGIN HISTORY ========== */
.login-history-container {
  margin-top: 8px;
  max-width: 100%;
  overflow-x: hidden;
}

.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-state {
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-state p,
.error-state p,
.empty-state p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

.error-state svg,
.empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--gray-400);
  margin-bottom: 16px;
}

.empty-state span {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}

.login-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-width: 720px;
}

.login-history-table thead {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-bottom: 2px solid var(--gray-200);
}

.login-history-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.login-history-table th:first-child {
  padding-left: 28px;
}

.login-history-table th:last-child {
  padding-right: 28px;
}

.login-history-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
  background: white;
}

.login-history-table tbody tr:hover {
  background: var(--gray-50);
  transform: translateX(2px);
}

.login-history-table tbody tr:last-child {
  border-bottom: none;
}

.login-history-table td {
  padding: 24px 24px;
  font-size: 14px;
  color: var(--gray-900);
  vertical-align: middle;
  word-break: break-word;
}

.login-history-table td:first-child {
  padding-left: 28px;
}

.login-history-table td:last-child {
  padding-right: 28px;
}

.login-date-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.login-date {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.4;
}

.login-time {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ip-address {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", monospace;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 6px;
  display: inline-block;
  min-width: 120px;
  text-align: center;
  letter-spacing: 0.5px;
}

.device-info {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  min-width: 160px;
  max-width: 100%;
  white-space: normal;
}

.location-info {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  min-width: 140px;
  max-width: 100%;
  white-space: normal;
}

.login-history-table .status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 80px;
  text-align: center;
}

/* Dark mode styles for login history */
body.dark-mode .login-history-table {
  background: var(--gray-100);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gray-300);
}

body.dark-mode .login-history-table thead {
  background: var(--gray-200);
  border-bottom: 2px solid var(--gray-400);
}

body.dark-mode .login-history-table th {
  color: var(--gray-900);
  font-weight: 700;
}

body.dark-mode .login-history-table tbody tr {
  background: var(--gray-100);
  border-bottom-color: var(--gray-300);
}

body.dark-mode .login-history-table tbody tr:hover {
  background: var(--gray-200);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .login-history-table td {
  color: var(--gray-800);
}

body.dark-mode .login-date {
  color: var(--gray-900);
  font-weight: 600;
}

body.dark-mode .login-time {
  color: var(--gray-600);
}

body.dark-mode .ip-address {
  background: linear-gradient(135deg, var(--gray-300), var(--gray-350));
  color: var(--gray-900);
  border: 2px solid rgba(239, 146, 39, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  padding: 8px 12px;
}

body.dark-mode .device-info {
  color: var(--gray-800);
}

body.dark-mode .location-info {
  color: var(--gray-700);
}

.security-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.security-section-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

/* Security Form */
.security-form {
  margin-top: 8px;
}

.security-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.security-form-group {
  display: flex;
  flex-direction: column;
}

.security-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-form-label .label-icon {
  width: 16px;
  height: 16px;
  fill: var(--gray-600);
  flex-shrink: 0;
}

.security-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.security-form-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.security-form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(5, 48, 92, 0.1);
  transform: translateY(-1px);
}

.security-form-input:hover:not(:disabled) {
  border-color: var(--gray-400);
}

.password-requirements {
  margin-top: 8px;
}

.password-requirements small {
  font-size: 12px;
  color: var(--gray-600);
  font-style: italic;
}

.security-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.btn-security-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(5, 48, 92, 0.3);
}

.btn-security-primary:hover {
  box-shadow: 0 6px 16px rgba(5, 48, 92, 0.4);
}

.btn-security-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========== TWO-FACTOR AUTHENTICATION (2FA) - REBUILT ========== */

/* 2FA Status Container */
.twofa-status-container {
  padding: 24px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 20px;
}

.twofa-status-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: var(--gray-600);
  font-size: 14px;
}

/* 2FA Content Container */
.twofa-content {
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

/* 2FA Disabled State */
.twofa-disabled-state {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.twofa-info-banner {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 12px;
  border: 1px solid #e3e8ff;
}

.twofa-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.twofa-info-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.twofa-info-content {
  flex: 1;
}

.twofa-info-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px 0;
}

.twofa-info-description {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.twofa-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.twofa-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
}

.twofa-benefit-item svg {
  width: 16px;
  height: 16px;
  fill: #4caf50;
  flex-shrink: 0;
  margin-top: 2px;
}

.twofa-action-section {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-enable-2fa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-enable-2fa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-enable-2fa:active {
  transform: translateY(0);
}

.btn-enable-2fa svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* 2FA Enabled State */
.twofa-enabled-state {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.twofa-status-badge-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #d4f8e8 0%, #d0f4de 100%);
  border-radius: 12px;
  border: 1px solid #b7e4c7;
}

.twofa-status-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.twofa-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.twofa-status-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.twofa-status-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1b5e20;
  margin: 0 0 4px 0;
}

.twofa-status-text p {
  font-size: 13px;
  color: #2e7d32;
  margin: 0;
}

.twofa-status-badge {
  padding: 8px 16px;
  background: #4caf50;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.twofa-enabled-info {
  padding: 20px;
  background: var(--gray-50);
  border-radius: 10px;
  border-left: 4px solid #4caf50;
}

.twofa-enabled-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.twofa-enabled-info h5 svg {
  width: 16px;
  height: 16px;
  fill: #4caf50;
}

.twofa-enabled-info p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.btn-disable-2fa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: white;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-disable-2fa:hover {
  background: #dc3545;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-disable-2fa:active {
  transform: translateY(0);
}

.btn-disable-2fa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Loading Spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Design for 2FA */
@media (max-width: 768px) {
  .twofa-info-banner {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .twofa-info-icon {
    width: 48px;
    height: 48px;
  }

  .twofa-info-icon svg {
    width: 24px;
    height: 24px;
  }

  .twofa-info-title {
    font-size: 16px;
  }

  .twofa-info-description {
    font-size: 13px;
  }

  .twofa-benefits {
    grid-template-columns: 1fr;
  }

  .twofa-status-badge-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .twofa-info-banner {
    padding: 16px;
  }

  .twofa-info-icon {
    width: 40px;
    height: 40px;
  }

  .twofa-info-icon svg {
    width: 20px;
    height: 20px;
  }

  .twofa-info-title {
    font-size: 15px;
  }

  .twofa-info-description {
    font-size: 12.8px;
  }
}

/* Security Preferences */
.security-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.security-preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.security-preference-item:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.preference-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.preference-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.preference-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-blue);
}

.preference-info {
  flex: 1;
}

.preference-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.preference-description {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* Toggle Button Styles */
.toggle-button {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--gray-300);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
  flex-shrink: 0;
  outline: none;
}

.toggle-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.toggle-button.active {
  background: var(--primary-blue);
}

.toggle-button-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button.active .toggle-button-slider {
  transform: translateX(24px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-button:hover {
  background: var(--gray-400);
}

.toggle-button.active:hover {
  background: #1976d2;
}

.toggle-button:active .toggle-button-slider {
  width: 26px;
}

.toggle-button.active:active .toggle-button-slider {
  width: 26px;
  transform: translateX(22px);
}

/* Dark Mode Toggle Button */
body.dark-mode .toggle-button {
  background: var(--gray-500);
}

body.dark-mode .toggle-button.active {
  background: var(--primary-blue);
}

body.dark-mode .toggle-button:hover {
  background: var(--gray-600);
}

body.dark-mode .toggle-button.active:hover {
  background: #1976d2;
}

body.dark-mode .toggle-button-slider {
  background: var(--white);
}

.security-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
  gap: 20px;
}

.option-info h4 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.option-info p {
  font-size: 13px;
  color: var(--gray-600);
}

/* ========== RESPONSIVE UPDATES ========== */
@media (max-width: 768px) {
  .balance-cards,
  .wallet-tables,
  .plans-grid,
  .portfolio-stats,
  .referral-stats-grid {
    grid-template-columns: 1fr;
  }

  .transaction-form {
    padding: 24px;
  }

  .referral-link-box {
    flex-direction: column;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filter {
    flex-direction: column;
  }

  .investment-dates {
    flex-direction: column;
    gap: 16px;
  }

  .investment-earnings {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .profile-tab {
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .profile-tab.active {
    border-left-color: var(--primary-blue);
    border-bottom-color: transparent;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .two-factor-card,
  .security-option {
    flex-direction: column;
    text-align: center;
  }

  .two-factor-info {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== MARKET OVERVIEW SECTION ========== */
.price-tickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.ticker-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.ticker-card:hover {
  box-shadow: var(--shadow-md);
}

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

.ticker-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticker-icon.btc {
  background: linear-gradient(135deg, #f7931a, #ff9800);
}

.ticker-icon.eth {
  background: linear-gradient(135deg, #627eea, #8c9eff);
}

.ticker-icon.usdt {
  background: linear-gradient(135deg, #26a17b, #4caf50);
}

.ticker-icon.sol {
  background: linear-gradient(135deg, #00ffa3, #03e1ff);
}

.ticker-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.ticker-header h4 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.ticker-symbol {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
}

.ticker-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-price .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Loading state for price */
.ticker-price .price:empty::before,
.ticker-price .price:contains("Loading")::before {
  content: "";
  display: inline-block;
  width: 100px;
  height: 20px;
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-300) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.ticker-price .change {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.change.positive {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.change.negative {
  background: rgba(244, 67, 54, 0.1);
  color: var(--danger);
}

.change.neutral {
  background: var(--gray-100);
  color: var(--gray-600);
}

.chart-selector {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-selector h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.chart-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.chart-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.tradingview-widget-container {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#tradingview_chart {
  width: 100%;
  height: 500px;
  background: var(--gray-50);
  border-radius: 8px;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-box {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-box h4 {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

/* Responsive adjustments for market section */
@media (max-width: 768px) {
  .price-tickers {
    grid-template-columns: 1fr;
  }

  .chart-controls {
    flex-direction: column;
  }

  .chart-select {
    width: 100%;
  }

  #tradingview_chart {
    height: 400px;
  }

  .market-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .market-stats {
    grid-template-columns: 1fr;
  }

  #tradingview_chart {
    height: 350px;
  }
}

/* ========== PHASE 2: DARK MODE ========== */
/* Dark Mode Variables */
body.dark-mode {
  --white: #1a1a1a;
  --gray-50: #121212;
  --gray-100: #1e1e1e;
  --gray-200: #2a2a2a;
  --gray-300: #363636;
  --gray-400: #4a4a4a;
  --gray-500: #6a6a6a;
  --gray-600: #9a9a9a;
  --gray-700: #c0c0c0;
  --gray-800: #e0e0e0;
  --gray-900: #f5f5f5;
}

body.dark-mode .sidebar {
  background: linear-gradient(180deg, #0a1929 0%, #051420 100%);
}

body.dark-mode .stat-card,
body.dark-mode .action-card,
body.dark-mode .wallet-card,
body.dark-mode .form-card,
body.dark-mode .investment-plan-card,
body.dark-mode .portfolio-card,
body.dark-mode .ticker-card,
body.dark-mode .kyc-form-card,
body.dark-mode .create-alert-card,
body.dark-mode .kyc-status-card,
body.dark-mode .chart-selector,
body.dark-mode .stat-box {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .top-header {
  background: var(--gray-100);
  border-bottom-color: var(--gray-300);
}

body.dark-mode .table-responsive {
  background: var(--gray-100);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gray-300);
}

body.dark-mode .data-table {
  background: var(--gray-100);
}

body.dark-mode .data-table thead {
  background: var(--gray-200);
  border-bottom: 2px solid var(--gray-400);
}

body.dark-mode .data-table th {
  color: var(--gray-900);
}

body.dark-mode .data-table tbody tr {
  border-bottom-color: var(--gray-300);
  background: var(--gray-100);
}

body.dark-mode .data-table tbody tr:hover {
  background: var(--gray-200);
}

/* Dark Mode: Clickable Transaction Rows */
body.dark-mode .transaction-row:hover {
  background: rgba(94, 129, 244, 0.15) !important;
}

body.dark-mode .transaction-item[style*="cursor: pointer"]:hover {
  background: rgba(94, 129, 244, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .data-table td {
  color: var(--gray-800);
}

body.dark-mode .transaction-type.internal_transfer_out,
body.dark-mode .transaction-type.internal_transfer_in {
  background: rgba(156, 39, 176, 0.2);
  color: #bb86fc;
}

body.dark-mode .transaction-amount.positive {
  color: #4caf50;
}

body.dark-mode .transaction-amount.negative {
  color: #f44336;
}

body.dark-mode .modal-content {
  background: var(--gray-100);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: transparent;
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: var(--gold-primary);
  background: var(--gray-650);
  color: var(--gray-900);
}

body.dark-mode .custom-select-trigger {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .custom-select-trigger:hover {
  border-color: var(--gray-500);
}

body.dark-mode .custom-select-trigger.active {
  border-color: var(--gold-primary);
}

body.dark-mode .custom-select-placeholder {
  color: var(--gray-600);
}

body.dark-mode .custom-select-placeholder span {
  color: var(--gray-900);
}

body.dark-mode .custom-select-arrow {
  color: var(--gray-600);
}

body.dark-mode .custom-select-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .custom-select-option {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .custom-select-option:hover {
  background: var(--gray-200);
}

body.dark-mode .custom-select-option span {
  color: var(--gray-900);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--gray-300);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--gray-700);
}

body.dark-mode .theme-toggle-btn {
  background: transparent;
}

body.dark-mode .theme-toggle-btn:hover {
  background: var(--gray-400);
}

body.dark-mode .theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-mode .theme-toggle-btn .moon-icon {
  display: block !important;
}

/* ========== DARK MODE: MAIN CONTENT ========== */
body.dark-mode .main-content {
  background: var(--gray-50);
}

body.dark-mode .dashboard-card,
body.dark-mode .section-card,
body.dark-mode .kyc-progress {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ========== DARK MODE: INVESTMENT PLANS ========== */
body.dark-mode .investment-plan {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .investment-plan:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(239, 146, 39, 0.4);
}

body.dark-mode .investment-plan:nth-child(3) {
  border-color: rgba(239, 146, 39, 0.3);
  box-shadow: 0 8px 25px rgba(239, 146, 39, 0.2);
}

body.dark-mode .investment-plan:nth-child(3):hover {
  border-color: rgba(239, 146, 39, 0.6);
  box-shadow: 0 20px 45px rgba(239, 146, 39, 0.35);
}

body.dark-mode .investment-plan-body {
  background: var(--gray-100);
}

body.dark-mode .investment-plan-body h4 {
  color: var(--gold-primary);
  border-bottom-color: var(--gray-300);
}

body.dark-mode .investment-plan ul li {
  color: var(--gray-700);
  border-bottom-color: var(--gray-200);
}

/* ========== DARK MODE: TRANSACTIONS ========== */
body.dark-mode .transaction-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .transaction-item:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

body.dark-mode .transaction-info h4 {
  color: var(--gray-900);
}

body.dark-mode .transaction-info p {
  color: var(--gray-600);
}

/* ========== DARK MODE: TABLES ========== */
body.dark-mode .data-table thead th {
  color: var(--gray-900);
  border-color: var(--gray-300);
}

body.dark-mode .data-table tbody td {
  color: var(--gray-800);
  border-color: var(--gray-300);
}

/* ========== DARK MODE: TYPOGRAPHY ========== */
body.dark-mode .section-title h3,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .kyc-requirement-notice .notice-content h3 {
  color: var(--gray-900);
}

body.dark-mode p,
body.dark-mode span {
  color: var(--gray-900);
}

body.dark-mode .stat-label {
  color: var(--gray-600);
}

body.dark-mode .stat-value {
  color: var(--gray-900);
}

body.dark-mode .kyc-requirement-notice .notice-content strong {
  color: var(--gold-primary);
}

body.dark-mode .kyc-status-card .status-icon svg {
  fill: var(--gold-primary);
}

body.dark-mode .transaction-filters {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ========== DARK MODE: CRYPTO WALLET SECTIONS ========== */
body.dark-mode .portfolio-balance-section,
body.dark-mode .swap-section-landing,
body.dark-mode .asset-allocation-section,
body.dark-mode .latest-operations-section {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .content-wrapper {
  background: var(--gray-50);
}

body.dark-mode .portfolio-balance-section .timeframe-btn,
body.dark-mode .portfolio-action-btn {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .portfolio-balance-section .timeframe-btn:hover,
body.dark-mode .portfolio-action-btn:hover {
  background: var(--gray-300);
  border-color: var(--gray-500);
}

body.dark-mode .portfolio-balance-section .timeframe-btn.active {
  background: var(--gold-primary);
  color: var(--white);
  border-color: var(--gold-primary);
}

body.dark-mode .asset-allocation-table thead {
  background: var(--gray-200);
  border-bottom-color: var(--gray-400);
}

body.dark-mode .asset-allocation-table tbody tr {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .asset-allocation-table tbody tr:hover {
  background: var(--gray-200);
}

body.dark-mode .operation-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .operation-item:hover {
  background: var(--gray-200);
}

body.dark-mode .filter-tab {
  background: var(--gray-200);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

body.dark-mode .filter-tab:hover:not(.active) {
  background: var(--gray-300);
  border-color: var(--gray-400);
}

body.dark-mode .filter-tab.active {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--gray-900);
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(239, 146, 39, 0.3);
}

body.dark-mode .filter-btn {
  background: var(--gold-primary);
  color: var(--gray-900);
  border: 1px solid var(--gold-primary);
}

body.dark-mode .filter-btn:hover {
  background: var(--gold-secondary);
  border-color: var(--gold-secondary);
  box-shadow: 0 2px 8px rgba(239, 146, 39, 0.4);
}

body.dark-mode .date-filter input {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: white;
}

body.dark-mode .date-filter input:focus {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

body.dark-mode .referral-stat-card,
body.dark-mode .referral-link-section,
body.dark-mode .referred-users-section {
  background: var(--gray-100);
}

body.dark-mode .share-btn {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  border: 2px solid var(--gold-primary);
  color: var(--gray-900);
  box-shadow: 0 4px 10px rgba(239, 146, 39, 0.3);
  font-weight: 600;
}

body.dark-mode .share-btn:hover {
  background: linear-gradient(
    135deg,
    var(--gold-secondary),
    var(--gold-primary)
  );
  border-color: var(--gold-secondary);
  color: var(--gray-900);
  box-shadow: 0 6px 16px rgba(239, 146, 39, 0.5);
}

body.dark-mode .profile-section-card {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .profile-section-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--gray-400);
}

body.dark-mode .profile-section-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .section-title {
  color: var(--gray-900);
}

body.dark-mode .section-subtitle {
  color: var(--gray-600);
}

body.dark-mode .profile-info-item {
  background: var(--gray-200);
  border-color: var(--gray-300);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .profile-info-item:hover {
  background: var(--gray-250);
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(239, 146, 39, 0.2);
}

body.dark-mode .info-item-icon {
  background: var(--gray-300);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .info-item-label {
  color: var(--gray-600);
  font-weight: 600;
}

body.dark-mode .info-item-value {
  color: var(--gray-900);
  font-weight: 600;
}

body.dark-mode .info-item-value.wallet-value {
  background: var(--gray-300);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .edit-form-section {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .edit-section-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .edit-section-title {
  color: var(--gray-900);
}

body.dark-mode .edit-section-subtitle {
  color: var(--gray-600);
}

body.dark-mode .edit-form-label {
  color: var(--gray-700);
  font-weight: 600;
}

body.dark-mode .edit-form-label .label-icon {
  fill: var(--gray-600);
}

body.dark-mode .edit-form-input {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .email-verification-badge.verified {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.2),
    rgba(76, 175, 80, 0.25)
  );
  color: #81c784;
  border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .email-verification-badge.not-verified {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.2),
    rgba(255, 152, 0, 0.25)
  );
  color: #ffb74d;
  border-color: rgba(255, 152, 0, 0.4);
}

body.dark-mode .edit-profile-btn {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--gray-900);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 3px 10px rgba(239, 146, 39, 0.3);
}

body.dark-mode .edit-profile-btn:hover {
  background: linear-gradient(
    135deg,
    var(--gold-secondary),
    var(--gold-primary)
  );
  box-shadow: 0 5px 16px rgba(239, 146, 39, 0.5);
  transform: translateY(-1px);
}

body.dark-mode .edit-form-input::placeholder {
  color: var(--gray-500);
}

body.dark-mode .edit-form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(5, 48, 92, 0.3);
}

body.dark-mode .edit-form-input.readonly-field {
  background: var(--gray-750);
  border-color: var(--gray-600);
  color: var(--gray-400);
}

body.dark-mode .optional-badge {
  background: var(--gray-700);
  color: var(--gray-400);
}

body.dark-mode .required-indicator {
  color: #ef5350;
  font-weight: 700;
}

body.dark-mode .twofa-content {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .preference-icon {
  background: var(--gray-200);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .preference-icon svg {
  fill: var(--gold-primary);
}

body.dark-mode .twofa-info-banner {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 42, 0.95) 0%,
    rgba(54, 54, 54, 0.95) 100%
  );
  border: 2px solid rgba(239, 146, 39, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .twofa-info-icon {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  box-shadow: 0 6px 18px rgba(239, 146, 39, 0.5);
}

body.dark-mode .twofa-info-title {
  color: var(--gray-900);
  font-weight: 700;
}

body.dark-mode .twofa-info-description {
  color: var(--gray-700);
  line-height: 1.6;
}

body.dark-mode .twofa-benefit-item {
  color: var(--gray-800);
}

body.dark-mode .twofa-benefit-item svg {
  fill: var(--gold-primary);
}

/* Dark mode: 2FA Status Badge Container */
body.dark-mode .twofa-status-badge-container {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.15) 0%,
    rgba(76, 175, 80, 0.2) 100%
  );
  border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .twofa-status-icon {
  background: #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

body.dark-mode .twofa-status-text h4 {
  color: #66bb6a;
}

body.dark-mode .twofa-status-text p {
  color: #81c784;
}

body.dark-mode .twofa-status-badge {
  background: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

body.dark-mode .twofa-enabled-info {
  background: var(--gray-200);
  border-left-color: #4caf50;
}

body.dark-mode .twofa-enabled-info h5 {
  color: var(--gray-900);
}

body.dark-mode .twofa-enabled-info p {
  color: var(--gray-700);
}

body.dark-mode .btn-disable-2fa {
  background: var(--gray-200);
  color: #ef5350;
  border-color: #ef5350;
}

body.dark-mode .btn-disable-2fa:hover {
  background: #ef5350;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

body.dark-mode .login-history-container {
  background: transparent;
}

body.dark-mode .field-hint {
  color: var(--gray-400);
}

body.dark-mode .field-hint svg {
  fill: var(--gray-500);
}

body.dark-mode .edit-form-actions {
  border-top-color: var(--gray-700);
}

body.dark-mode .btn-cancel {
  background: var(--gray-700);
  color: var(--gray-200);
  border-color: var(--gray-600);
}

body.dark-mode .btn-cancel:hover {
  background: var(--gray-650);
  border-color: var(--gray-500);
}

body.dark-mode .profile-form,
body.dark-mode .security-section-card {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ========== DARK MODE: FORMS ========== */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--gray-500);
}

body.dark-mode .form-group label {
  color: var(--gray-900);
  background: transparent;
  font-weight: 600;
}

/* ========== DARK MODE: BUTTONS ========== */
body.dark-mode .btn-secondary,
body.dark-mode #addToWatchlistBtn {
  color: var(--gray-900);
  border-color: none;
  border: none;
  background: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(5, 48, 92, 0.3);
}

/* #addToWatchlistBtn, .btn-secondary { */

body.dark-mode .btn-secondary:hover,
body.dark-mode #addToWatchlistBtn:hover {
  background: var(--secondary-blue);
  border-color: var(--gray-500);
}

body.dark-mode .btn-outline {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-400);
}

body.dark-mode .btn-outline:hover {
  background: var(--gray-200);
  border-color: var(--gold-primary);
}

/* ========== DARK MODE: BADGES & STATUS ========== */
body.dark-mode .status-badge.completed,
body.dark-mode .status-badge.success,
body.dark-mode .status-badge.active {
  background: rgba(76, 175, 80, 0.25);
  color: #81c784;
  border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .status-badge.pending {
  background: rgba(255, 152, 0, 0.25);
  color: #ffb74d;
  border-color: rgba(255, 152, 0, 0.4);
}

body.dark-mode .status-badge.failed,
body.dark-mode .status-badge.inactive,
body.dark-mode .status-badge.danger,
body.dark-mode .status-badge.cancelled {
  background: rgba(244, 67, 54, 0.25);
  color: #ef5350;
  border-color: rgba(244, 67, 54, 0.4);
}

body.dark-mode .badge {
  background: var(--gray-300);
  color: var(--gray-900);
}

body.dark-mode .badge.success {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}

body.dark-mode .badge.warning {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
}

body.dark-mode .badge.danger {
  background: rgba(244, 67, 54, 0.2);
  color: #e57373;
}

body.dark-mode .badge.info {
  background: rgba(33, 150, 243, 0.2);
  color: #64b5f6;
}

/* ========== DARK MODE: FILTERS & PAGINATION ========== */
body.dark-mode .filter-section {
  background: var(--gray-100);
}

body.dark-mode .filter-group label {
  color: var(--gray-900);
}

body.dark-mode .pagination button {
  background: var(--gray-200);
  color: var(--gray-900);
  border-color: var(--gray-400);
}

body.dark-mode .pagination button:hover:not(:disabled) {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

body.dark-mode .pagination button.active {
  background: var(--gold-primary);
  color: var(--gray-900);
}

body.dark-mode .pagination button:disabled {
  background: var(--gray-200);
  color: var(--gray-500);
}

body.dark-mode .page-ellipsis {
  color: var(--gray-700);
}

/* ========== DARK MODE: CRYPTO PAYMENT ========== */
body.dark-mode .crypto-payment-section {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .crypto-address-box {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

body.dark-mode .crypto-address-box code {
  color: var(--gold-primary);
}

body.dark-mode .qr-code {
  background: var(--white);
  border-color: var(--gray-300);
}

body.dark-mode .qr-code-img {
  border-radius: 10px;
}

body.dark-mode .scan-instruction {
  color: var(--gray-400);
}

/* Dark mode spinner styles */
body.dark-mode .crypto-loading-spinner {
  background: var(--gray-100);
}

body.dark-mode .spinner-circle {
  border-color: var(--gray-400);
  border-top-color: var(--gold-primary);
}

body.dark-mode .spinner-text {
  color: var(--gray-600);
}

/* ========== DARK MODE: WATCHLIST ========== */
body.dark-mode .crypto-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .crypto-item:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

body.dark-mode .crypto-name h4 {
  color: var(--gray-900);
}

body.dark-mode .crypto-symbol {
  color: var(--gray-600);
}

body.dark-mode .crypto-price {
  color: var(--gray-900);
}

/* ========== DARK MODE: ALERTS ========== */
body.dark-mode .alert-item {
  background: var(--gray-100);
  border-left-color: var(--info);
}

body.dark-mode .alert-item.success {
  border-left-color: var(--success);
}

body.dark-mode .alert-item.warning {
  border-left-color: var(--warning);
}

body.dark-mode .alert-item.danger {
  border-left-color: var(--danger);
}

/* ========== DARK MODE: PORTFOLIO ========== */
body.dark-mode .portfolio-stats {
  background: var(--gray-50);
}

/* body.dark-mode .portfolio-stat-card {
  background: var(--gray-300);
  
} */

body.dark-mode .investment-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .investment-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .investment-item.completed {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(42, 42, 42, 0.95)
  );
  border-color: var(--gray-400);
}

body.dark-mode .investment-item.completed::before {
  background: linear-gradient(
    90deg,
    rgba(33, 150, 243, 0.8),
    rgba(25, 118, 210, 0.8)
  );
}

body.dark-mode .investment-item.completed .investment-calculation {
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.08),
    rgba(33, 150, 243, 0.12)
  );
  border-color: rgba(33, 150, 243, 0.2);
}

body.dark-mode .investment-item.completed .progress-bar {
  background: var(--gray-400);
}

body.dark-mode .investment-item.completed .progress-fill {
  background: linear-gradient(
    90deg,
    rgba(33, 150, 243, 0.9),
    rgba(25, 118, 210, 0.9)
  );
}

body.dark-mode .investment-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .investment-header h4 {
  color: var(--gray-900);
}

body.dark-mode .investment-status {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .investment-status.active {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border-color: rgba(76, 175, 80, 0.3);
}

body.dark-mode .investment-status.completed {
  background: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
  border-color: rgba(33, 150, 243, 0.3);
}

body.dark-mode .investment-details,
body.dark-mode .investment-calculation {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

body.dark-mode .detail-label,
body.dark-mode .calculation-label {
  color: var(--gray-600);
}

body.dark-mode .calculation-row.total-row .calculation-label {
  color: #64b5f6;
  font-weight: 700;
}

body.dark-mode .detail-value,
body.dark-mode .calculation-value {
  color: var(--gray-900);
}

body.dark-mode .calculation-row.total-row .calculation-value {
  color: var(--gold-primary);
  font-weight: 700;
}

body.dark-mode .progress-bar {
  background: var(--gray-300);
}

body.dark-mode .chart-container {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ========== DARK MODE: WALLET ========== */
body.dark-mode .wallet-balance-card {
  background: var(--gray-100);
}

body.dark-mode .wallet-actions .action-btn {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .wallet-actions .action-btn:hover {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

/* ========== DARK MODE: MODALS ========== */
body.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .modal-header h2 {
  color: var(--gray-900);
}

body.dark-mode .modal-footer {
  border-top-color: var(--gray-300);
}

body.dark-mode .close-modal {
  color: var(--gray-600);
}

body.dark-mode .close-modal:hover {
  color: var(--gray-900);
}

/* ========== DARK MODE: DROPDOWNS ========== */
body.dark-mode .dropdown-menu {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dropdown-item {
  color: var(--gray-900);
}

body.dark-mode .dropdown-item:hover {
  background: var(--gray-200);
}

body.dark-mode .user-menu {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ========== DARK MODE: SIDEBAR NAV ========== */
body.dark-mode .sidebar-nav .nav-item {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .sidebar-nav .nav-item.active {
  background: rgba(239, 146, 39, 0.2);
  color: var(--gold-primary);
}

/* ========== DARK MODE: CHARTS ========== */
body.dark-mode #tradingview-widget,
body.dark-mode .tradingview-widget-container {
  background: var(--gray-100);
}

/* ========== DARK MODE: FILE UPLOAD ========== */
body.dark-mode .file-upload-zone {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

body.dark-mode .file-upload-zone:hover {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

body.dark-mode .file-upload-zone.drag-over {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

/* ========== DARK MODE: EMPTY STATES ========== */
body.dark-mode .empty-state {
  color: var(--gray-600);
}

body.dark-mode .empty-state-icon {
  opacity: 0.4;
}

/* ========== DARK MODE: LOADING STATES ========== */
body.dark-mode .loading-spinner {
  border-color: var(--gray-400);
  border-top-color: var(--gold-primary);
}

/* ========== DARK MODE: DIVIDERS ========== */
body.dark-mode hr,
body.dark-mode .divider {
  border-color: var(--gray-300);
  background: var(--gray-300);
}

/* ========== DARK MODE: LINKS ========== */
body.dark-mode a:not(.nav-item):not(.btn) {
  color: var(--gold-primary);
}

body.dark-mode a:not(.nav-item):not(.btn):hover {
  color: var(--gold-secondary);
}

body.dark-mode .view-all {
  color: var(--gold-primary);
}

body.dark-mode .view-all:hover {
  color: var(--gold-secondary);
}

/* ========== DARK MODE: INVESTMENT BUTTON ========== */
body.dark-mode .invest-btn {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--gray-900);
}

body.dark-mode .invest-btn:hover {
  box-shadow: 0 6px 20px rgba(239, 146, 39, 0.4);
}

/* ========== DARK MODE: KYC SECTION ========== */
body.dark-mode .kyc-status-card {
  background: linear-gradient(135deg, #0a1929 0%, #051420 100%);
}

body.dark-mode .requirement-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

body.dark-mode .profile-tab.active {
  border-bottom-color: var(--gold-primary);
  color: var(--gold-primary);
}

body.dark-mode .summary-item strong {
  color: var(--gold-primary);
}

body.dark-mode .requirement-item.completed {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--success);
}

/* ========== DARK MODE: EXPORT BUTTON ========== */
body.dark-mode .export-btn {
  background: var(--primary-blue);
  color: var(--gray-900);
}

body.dark-mode .export-btn:hover {
  background: var(--secondary-blue);
}

/* ========== DARK MODE: SEARCH INPUTS ========== */
body.dark-mode .search-box {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .search-box:focus {
  background: var(--gray-300);
  border-color: var(--gold-primary);
}

body.dark-mode .search-icon {
  color: var(--gray-600);
}

/* ========== DARK MODE: CARD HEADERS ========== */
body.dark-mode .card-header {
  background: var(--gray-200);
  border-bottom-color: var(--gray-300);
  color: var(--gray-900);
}

/* ========== DARK MODE: PROGRESS BARS ========== */
body.dark-mode .progress-bar-bg {
  background: var(--gray-300);
}

body.dark-mode .progress-bar-fill {
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
}

/* ========== DARK MODE: STEP INDICATORS ========== */
body.dark-mode .step-indicator {
  background: var(--gray-300);
  color: var(--gray-600);
}

body.dark-mode .step-indicator.active {
  background: var(--gold-primary);
  color: var(--gray-900);
}

body.dark-mode .step-indicator.completed {
  background: var(--success);
  color: var(--white);
}

/* ========== DARK MODE: INFO BOXES ========== */
body.dark-mode .info-box {
  background: rgba(33, 150, 243, 0.1);
  border-color: var(--info);
  color: var(--gray-800);
}

body.dark-mode .info-box.warning {
  background: rgba(255, 152, 0, 0.1);
  border-color: var(--warning);
}

body.dark-mode .info-box.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--success);
}

body.dark-mode .info-box.danger {
  background: rgba(244, 67, 54, 0.1);
  border-color: var (--danger);
}

/* ========== DARK MODE: PRICE CHANGES ========== */
body.dark-mode .price-change.positive {
  color: var(--success);
}

body.dark-mode .price-change.negative {
  color: var(--danger);
}

/* ========== DARK MODE: BALANCE DISPLAY ========== */
body.dark-mode .balance-display {
  color: var(--gray-900);
}

body.dark-mode .balance-label {
  color: var(--gray-600);
}

/* ========== DARK MODE: STAT ICONS ========== */
body.dark-mode .stat-icon svg {
  fill: var(--gray-900);
}

body.dark-mode .balance-card,
body.dark-mode .transaction-form {
  background: var(--gray-100);
}

body.dark-mode .portfolio-stat-card,
body.dark-mode .investment-card {
  background: var(--gray-100);
}

body.dark-mode .investment-amount {
  color: var(--gray-900);
}

/* ========== DARK MODE: NOTIFICATION DOTS ========== */
body.dark-mode .notification-dot {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

/* ========== DARK MODE: INLINE NOTIFICATIONS (TOAST) ========== */
body.dark-mode .notification {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .notification.success {
  border-left-color: var(--success);
}

body.dark-mode .notification.error {
  border-left-color: var(--danger);
}

body.dark-mode .notification.warning {
  border-left-color: var(--warning);
}

body.dark-mode .notification-message {
  color: var(--gray-900);
}

body.dark-mode .notification-close {
  color: var(--gray-600);
}

body.dark-mode .notification-close:hover {
  color: var(--gray-900);
  background: var(--gray-200);
}

/* ========== DARK MODE: AUTH CODE MODAL ========== */
body.dark-mode .auth-code-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .auth-code-modal {
  background: var(--gray-100);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .auth-code-modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .auth-code-modal-header h2 {
  color: var(--gray-900);
}

body.dark-mode .auth-code-modal-close {
  color: var(--gray-600);
}

body.dark-mode .auth-code-modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .auth-code-icon {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

body.dark-mode .auth-code-message {
  color: var(--gray-700);
}

body.dark-mode .auth-code-input {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .auth-code-input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.2);
}

body.dark-mode .auth-code-input::placeholder {
  color: var(--gray-500);
}

body.dark-mode .auth-code-timer {
  color: var(--gray-700);
}

body.dark-mode .auth-code-timer span {
  color: var(--gold-primary);
}

/* Dark Mode: Transfer Confirmation Modal */
body.dark-mode .transfer-confirmation-modal-overlay,
body.dark-mode .transfer-success-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .transfer-confirmation-modal,
body.dark-mode .transfer-success-modal {
  background: var(--gray-100);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .transfer-confirmation-modal-header,
body.dark-mode .transfer-success-modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .transfer-confirmation-modal-header h2 {
  color: var(--gray-900);
}

body.dark-mode .transfer-success-modal-header h2 {
  color: #4ade80;
}

body.dark-mode .transfer-confirmation-modal-close,
body.dark-mode .transfer-success-modal-close {
  color: var(--gray-600);
}

body.dark-mode .transfer-confirmation-modal-close:hover,
body.dark-mode .transfer-success-modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .transfer-confirmation-message,
body.dark-mode .transfer-success-message {
  color: var(--gray-700);
}

body.dark-mode .transfer-details-review,
body.dark-mode .transfer-success-details {
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
}

body.dark-mode .transfer-detail-item,
body.dark-mode .transfer-success-detail-item {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .transfer-detail-label,
body.dark-mode .transfer-success-detail-label {
  color: var(--gray-600);
}

body.dark-mode .transfer-detail-value,
body.dark-mode .transfer-success-detail-value {
  color: var(--gray-50);
}

body.dark-mode .transfer-detail-value.amount {
  color: #60a5fa;
}

body.dark-mode .transfer-success-detail-value.amount {
  color: #4ade80;
}

body.dark-mode .transfer-success-detail-item.highlight-balance {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

body.dark-mode
  .transfer-success-detail-item.highlight-balance
  .transfer-success-detail-label {
  color: #4ade80;
}

body.dark-mode
  .transfer-success-detail-item.highlight-balance
  .transfer-success-detail-value.balance {
  color: #4ade80;
}

body.dark-mode .transfer-confirmation-edit-btn {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .transfer-confirmation-edit-btn:hover {
  background: var(--gray-300);
}

body.dark-mode .transfer-success-title {
  color: #4ade80;
}

body.dark-mode .transfer-success-reference {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(22, 163, 74, 0.15) 100%
  );
  border-color: rgba(74, 222, 128, 0.4);
}

body.dark-mode .transfer-success-reference-label {
  color: #86efac;
}

body.dark-mode .transfer-success-reference-value {
  color: #4ade80;
}

/* Dark Mode: Confirmation Modal */
body.dark-mode .confirm-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .confirm-modal {
  background: var(--gray-100);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .confirm-modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .confirm-modal-header h3 {
  color: var(--gray-900);
}

body.dark-mode .confirm-modal-body p {
  color: var(--gray-700);
}

body.dark-mode .confirm-modal-cancel-btn {
  background: white;
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .confirm-modal-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-500);
}

/* Dark Mode: KYC Verification Modal */
body.dark-mode .kyc-verification-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .kyc-verification-modal {
  background: var(--gray-100);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .kyc-verification-modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .kyc-verification-modal-header h2 {
  color: var(--gray-900);
}

body.dark-mode .kyc-verification-modal-header svg {
  color: #f59e0b;
}

body.dark-mode .kyc-verification-modal-close {
  color: var(--gray-600);
}

body.dark-mode .kyc-verification-modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .kyc-verification-notice {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  border-color: #f59e0b;
}

body.dark-mode .kyc-verification-notice-title {
  color: #78350f;
}

body.dark-mode .kyc-verification-notice-text {
  color: #78350f;
}

body.dark-mode .kyc-status-info {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

body.dark-mode .kyc-status-info-row {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .kyc-status-label {
  color: var(--gray-600);
}

body.dark-mode .kyc-status-value {
  color: var(--gray-900);
}

body.dark-mode .kyc-status-value.amount {
  color: #0284c7;
}

body.dark-mode .kyc-verification-cancel-btn {
  background: white;
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .kyc-verification-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-500);
}

/* Dark Mode: Transfer Details Modal */
body.dark-mode .transfer-details-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .transfer-details-modal {
  background: var(--gray-100);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .transfer-details-modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .transfer-details-modal-header h2 {
  color: var(--gray-900);
}

body.dark-mode .transfer-details-modal-header svg {
  color: #60a5fa;
}

body.dark-mode .transfer-details-modal-close {
  color: var(--gray-600);
}

body.dark-mode .transfer-details-modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .transfer-details-status-banner.completed {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(22, 163, 74, 0.15) 100%
  );
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

body.dark-mode .transfer-details-status-banner.pending {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  border-color: rgba(252, 211, 77, 0.4);
  color: #fbbf24;
}

body.dark-mode .transfer-details-status-banner.cancelled {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15) 0%,
    rgba(220, 38, 38, 0.15) 100%
  );
  border-color: rgba(252, 165, 165, 0.4);
  color: #f87171;
}

body.dark-mode .transfer-details-section-title {
  color: var(--gray-700);
}

body.dark-mode .transfer-details-grid {
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
}

body.dark-mode .transfer-details-row {
  border-bottom-color: var(--gray-300);
}

body.dark-mode .transfer-details-label {
  color: var(--gray-600);
}

body.dark-mode .transfer-details-value {
  color: var(--gray-50);
}

body.dark-mode .transfer-details-value.amount {
  color: #60a5fa;
}

body.dark-mode .transfer-details-value.reference {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: #60a5fa;
}

body.dark-mode .transfer-details-btn.secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .transfer-details-btn.secondary:hover {
  background: var(--gray-300);
}

body.dark-mode .transfer-details-note {
  background: rgba(251, 191, 36, 0.1);
  border-left-color: #fbbf24;
}

body.dark-mode .transfer-details-note-label {
  color: #fbbf24;
}

body.dark-mode .transfer-details-note-text {
  color: var(--gray-700);
}

body.dark-mode .transfer-history-row:hover {
  background-color: var(--gray-200);
}

body.dark-mode .auth-code-success-message {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.15) 0%,
    rgba(76, 175, 80, 0.25) 100%
  );
  border-color: var(--success);
  color: #66bb6a;
}

body.dark-mode .auth-code-success-message svg {
  stroke: #66bb6a;
}

body.dark-mode .auth-code-resend-text {
  color: var(--gray-700);
}

body.dark-mode .auth-code-resend-btn {
  border-color: var(--gray-400);
  color: var(--gray-900);
}

body.dark-mode .auth-code-resend-btn:hover:not(:disabled) {
  background: var(--gray-200);
  border-color: #1976d2;
  color: #1976d2;
}

body.dark-mode .resend-cooldown {
  color: var(--gray-600);
}

body.dark-mode .cooldown-timer {
  color: var(--gold-primary);
}

body.dark-mode .auth-code-cancel-btn {
  background: var(--gray-200);
  color: var(--gray-900);
}

body.dark-mode .auth-code-cancel-btn:hover {
  background: var(--gray-300);
}

body.dark-mode .auth-code-verify-btn {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

body.dark-mode .auth-code-verify-btn:hover {
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* ========== DARK MODE: WITHDRAWAL SUCCESS MODAL ========== */
body.dark-mode .withdrawal-success-modal {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

body.dark-mode .withdrawal-success-modal-header {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .withdrawal-success-modal-header h2 {
  color: #66bb6a;
}

body.dark-mode .withdrawal-success-modal-close {
  color: var(--gray-400);
}

body.dark-mode .withdrawal-success-modal-close:hover {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .withdrawal-success-message {
  color: var(--gray-300);
}

body.dark-mode .withdrawal-success-message strong {
  color: #66bb6a;
}

body.dark-mode .withdrawal-details-card {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  border-color: var(--gray-700);
}

body.dark-mode .withdrawal-detail-row {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .withdrawal-detail-label {
  color: var(--gray-400);
}

body.dark-mode .withdrawal-detail-value {
  color: var(--gray-100);
}

body.dark-mode .withdrawal-detail-value.highlight {
  color: #66bb6a;
}

body.dark-mode .withdrawal-detail-value.reference {
  background: var(--gray-900);
  border-color: var(--gray-600);
  color: #64b5f6;
}

body.dark-mode .withdrawal-info-note {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--gray-300);
}

body.dark-mode .withdrawal-info-note svg {
  color: #ffb74d;
}

body.dark-mode .withdrawal-success-btn-secondary {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .withdrawal-success-btn-secondary:hover {
  background: var(--gray-600);
}

/* ========== DARK MODE: DEPOSIT SUCCESS MODAL ========== */
body.dark-mode .deposit-success-modal {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

body.dark-mode .deposit-success-modal-header {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .deposit-success-modal-header h2 {
  color: #64b5f6;
}

body.dark-mode .deposit-success-modal-close {
  color: var(--gray-400);
}

body.dark-mode .deposit-success-modal-close:hover {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .deposit-success-message {
  color: var(--gray-300);
}

body.dark-mode .deposit-success-message strong {
  color: #64b5f6;
}

body.dark-mode .deposit-details-card {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  border-color: var(--gray-700);
}

body.dark-mode .deposit-detail-row {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .deposit-detail-label {
  color: var(--gray-400);
}

body.dark-mode .deposit-detail-value {
  color: var(--gray-100);
}

body.dark-mode .deposit-detail-value.highlight {
  color: #64b5f6;
}

body.dark-mode .deposit-detail-value.reference {
  background: var(--gray-900);
  border-color: var(--gray-600);
  color: #64b5f6;
}

body.dark-mode .deposit-info-note {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
  color: var(--gray-300);
}

body.dark-mode .deposit-info-note svg {
  color: #64b5f6;
}

body.dark-mode .deposit-success-btn-secondary {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .deposit-success-btn-secondary:hover {
  background: var(--gray-600);
}

/* ========== DARK MODE: INVESTMENT SUCCESS MODAL ========== */
body.dark-mode .investment-success-modal {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

body.dark-mode .investment-success-modal-header {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .investment-success-modal-header h2 {
  color: #66bb6a;
}

body.dark-mode .investment-success-modal-close {
  color: var(--gray-400);
}

body.dark-mode .investment-success-modal-close:hover {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .investment-success-message {
  color: var(--gray-300);
}

body.dark-mode .investment-success-message strong {
  color: #66bb6a;
}

body.dark-mode .investment-details-card {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  border-color: var(--gray-700);
}

body.dark-mode .investment-detail-row {
  border-bottom-color: var(--gray-700);
}

body.dark-mode .investment-detail-label {
  color: var(--gray-400);
}

body.dark-mode .investment-detail-value {
  color: var(--gray-100);
}

body.dark-mode .investment-detail-value.highlight {
  color: #66bb6a;
}

body.dark-mode .investment-detail-value.reference {
  background: var(--gray-900);
  border-color: var(--gray-600);
  color: #64b5f6;
}

body.dark-mode .investment-info-note {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: var(--gray-300);
}

body.dark-mode .investment-info-note svg {
  color: #66bb6a;
}

body.dark-mode .investment-success-btn-secondary {
  background: var(--gray-700);
  color: var(--gray-200);
}

body.dark-mode .investment-success-btn-secondary:hover {
  background: var(--gray-600);
}

/* ========== DARK MODE: SUPPORT & HELP CENTER ========== */
body.dark-mode #section-support .btn-primary {
  color: white;
}

body.dark-mode .ticket-filters .filter-btn {
  color: white;
}

body.dark-mode #section-help .category-btn.active {
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--primary-blue) 100%
  );
  color: white;
}

body.dark-mode #section-help .category-title {
  color: white;
}

body.dark-mode #section-help .faq-icon {
  fill: var(--info);
}

body.dark-mode #section-help .category-title svg {
  fill: var(--info);
}

body.dark-mode .still-need-help .btn-primary {
  background: #ffffff;
  color: var(--primary-blue);
  border-color: #ffffff;
}

body.dark-mode .still-need-help .btn-primary:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: var(--primary-blue);
}

/* ========== DARK MODE: RECURRING INVESTMENTS ========== */
body.dark-mode .recurring-investments-card {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .recurring-investments-header h3 {
  color: var(--gray-900);
}

body.dark-mode .recurring-investments-header p {
  color: var(--gray-700);
}

body.dark-mode .recurring-setup-btn {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--gray-900);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 3px 10px rgba(239, 146, 39, 0.3);
}

body.dark-mode .recurring-schedule-item {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

body.dark-mode .recurring-schedule-item:hover {
  border-color: var(--gray-400);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.dark-mode .recurring-schedule-info h4 {
  color: var(--gray-900);
}

body.dark-mode .recurring-schedule-meta {
  color: var(--gray-600);
}

body.dark-mode .recurring-schedule-next {
  color: var(--gray-500);
}

body.dark-mode .recurring-status-badge.active {
  background: rgba(56, 142, 60, 0.25);
  color: #81c784;
}

body.dark-mode .recurring-status-badge.paused {
  background: rgba(245, 124, 0, 0.25);
  color: #ffb74d;
}

body.dark-mode .recurring-status-badge.cancelled {
  background: var(--gray-300);
  color: var(--gray-600);
}

body.dark-mode .btn-recurring.pause,
body.dark-mode .btn-recurring.resume {
  background: var(--gray-300);
  color: var(--gray-800);
  border-color: var(--gray-400);
}

body.dark-mode .btn-recurring.pause:hover,
body.dark-mode .btn-recurring.resume:hover {
  background: var(--gray-400);
  color: var(--gold-primary);
}

body.dark-mode .recurring-empty-state p {
  color: var(--gray-700);
}

body.dark-mode .recurring-empty-state span {
  color: var(--gray-600);
}

body.dark-mode .recurring-hint {
  color: var(--gray-600);
}

/* ========== DARK MODE: SCROLLBARS ========== */
body.dark-mode ::-webkit-scrollbar {
  background: var(--gray-200);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--gray-400);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ========== DARK MODE: TOOLTIPS ========== */
body.dark-mode .tooltip {
  background: var(--gray-200);
  color: var(--gray-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .payment-warning p,
body.dark-mode .payment-warning span,
body.dark-mode .withdraw-warning p {
  color: var(--gray-100);
}

body.dark-mode .internal-transfer-notice {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .internal-transfer-notice strong {
  color: #a5d6a7;
}

body.dark-mode .internal-transfer-notice p {
  color: #81c784;
}

body.dark-mode .internal-transfer-notice svg {
  fill: #a5d6a7;
}

body.dark-mode .internal-transfer-info-card,
body.dark-mode .withdraw-info-card {
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
}

body.dark-mode .info-label {
  color: var(--gray-600);
}

body.dark-mode .info-value {
  color: var(--gray-900);
}

body.dark-mode .swap-arrow-btn-landing {
  background: var(--primary-blue);
}

body.dark-mode .swap-arrow-btn-landing svg {
  fill: var(--gray-900);
}

body.dark-mode .btn-swap-landing {
  color: white;
}

/* ========== PHASE 2: KYC VERIFICATION SECTION ========== */
.kyc-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* KYC Status Card */
.kyc-status-card {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  padding: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.kyc-status-card .status-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kyc-status-card .status-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--white);
}

.kyc-status-card .status-content {
  flex: 1;
}

.kyc-status-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.kyc-status-card p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.kyc-status-card .status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}

.kyc-status-card .status-badge.pending {
  background: rgba(255, 152, 0, 0.3);
}

.kyc-status-card .status-badge.approved {
  background: rgba(76, 175, 80, 0.3);
}

.kyc-status-card .status-badge.rejected {
  background: rgba(244, 67, 54, 0.3);
}

/* KYC Progress */
.kyc-progress {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.kyc-progress h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--primary-blue);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.progress-step.completed {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--success);
}

.progress-step.active {
  background: rgba(239, 146, 39, 0.1);
  border-color: var(--gold-primary);
}

.progress-step .step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.progress-step.completed .step-icon {
  background: var(--success);
}

.progress-step.active .step-icon {
  background: var(--gold-primary);
}

.progress-step .step-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--gray-600);
}

.progress-step.completed .step-icon svg,
.progress-step.active .step-icon svg {
  fill: var(--white);
}

.progress-step span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.progress-step.completed span,
.progress-step.active span {
  color: var(--gray-900);
}

/* KYC Requirement Notice */
.kyc-requirement-notice {
  background: linear-gradient(
    135deg,
    rgba(239, 146, 39, 0.1) 0%,
    rgba(250, 188, 46, 0.1) 100%
  );
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(239, 146, 39, 0.15);
}

.kyc-requirement-notice .notice-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(239, 146, 39, 0.3);
}

.kyc-requirement-notice .notice-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.kyc-requirement-notice .notice-content {
  flex: 1;
}

.kyc-requirement-notice .notice-content h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 12px;
  font-weight: 700;
}

.kyc-requirement-notice .notice-content > p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.kyc-requirement-notice .notice-content strong {
  color: var(--primary-blue);
  font-weight: 700;
}

.kyc-benefits {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--gold-primary);
}

.kyc-benefits h4 {
  font-size: 16px;
  color: var(--primary-blue);
  margin-bottom: 12px;
  font-weight: 600;
}

.kyc-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kyc-benefits ul li {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 2;
  padding-left: 8px;
}

/* KYC Forms */
.kyc-forms {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.kyc-form-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.kyc-form-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 12px;
}

.kyc-form-card h3 svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-primary);
}

.kyc-form-card > p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--gray-400);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--gold-primary);
  background: var(--gray-50);
}

.upload-prompt svg {
  width: 64px;
  height: 64px;
  fill: var(--gray-400);
  margin-bottom: 16px;
}

.upload-prompt p {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.upload-prompt span {
  font-size: 14px;
  color: var(--gray-500);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.upload-preview img {
  width: 100px;
  height: 100px;
  min-width: 100px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.preview-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.preview-info span {
  font-weight: 600;
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.remove-file {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.remove-file:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

.remove-file svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* Selfie Capture */
.selfie-capture {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-900);
}

.selfie-capture video,
.selfie-capture canvas,
.selfie-capture img {
  width: 100%;
  height: auto;
  display: block;
}

.selfie-preview {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-500);
}

.selfie-preview svg {
  width: 80px;
  height: 80px;
  fill: var(--gray-400);
  margin-bottom: 16px;
}

.selfie-preview p {
  font-size: 16px;
}

.selfie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* KYC Upload Buttons */
#uploadIdBtn,
#uploadAddressBtn {
  width: 100%;
  padding: 14px 24px;
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

#uploadIdBtn:hover:not(:disabled),
#uploadAddressBtn:hover:not(:disabled) {
  background: var(--gold-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#uploadIdBtn:disabled,
#uploadAddressBtn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

/* KYC Submit */
.kyc-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--gray-50);
  border-radius: 12px;
}

.kyc-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid var(--info);
  border-radius: 8px;
  max-width: 800px;
}

.kyc-notice svg {
  width: 24px;
  height: 24px;
  fill: var(--info);
  flex-shrink: 0;
}

.kyc-notice p {
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

/* KYC Submit Button */
#submitKycBtn {
  padding: 16px 48px;
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-fast);
  min-width: 280px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#submitKycBtn:hover:not(:disabled) {
  background: var(--gold-secondary);
  box-shadow: 0 6px 20px rgba(239, 146, 39, 0.4);
}

#submitKycBtn:active:not(:disabled) {
  transform: translateY(0);
}

#submitKycBtn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ========== PHASE 2: PRICE ALERTS SECTION ========== */
.alerts-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Create Alert Card */
.create-alert-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.create-alert-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--primary-blue);
}

.alert-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Alerts List */
.alerts-list,
.alerts-history {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.alerts-header h3 {
  font-size: 20px;
  color: var(--primary-blue);
}

.alerts-count {
  padding: 6px 12px;
  background: var(--gray-200);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.alert-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.alert-item:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.alert-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.alert-details h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.alert-details p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.alert-triggered {
  opacity: 0.6;
  border-color: var(--success);
}

.alert-triggered .alert-icon {
  background: var(--success);
}

/* ========== PHASE 2: WATCHLIST ========== */
.watchlist-section {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

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

.watchlist-header h3 {
  font-size: 20px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.watchlist-header h3 svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-primary);
}

/* Add to Watchlist Button */
#addToWatchlistBtn,
.btn-secondary {
  padding: 10px 20px;
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

#addToWatchlistBtn:hover,
.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#addToWatchlistBtn svg,
.btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

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

.watchlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.watchlist-item:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.watchlist-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.watchlist-crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}

.watchlist-crypto-icon.btc {
  background: linear-gradient(135deg, #f7931a, #f2a900);
}

.watchlist-crypto-icon.eth {
  background: linear-gradient(135deg, #627eea, #8a92b2);
}

.watchlist-crypto-icon.sol {
  background: linear-gradient(135deg, #14f195, #9945ff);
}

.watchlist-crypto-icon.bnb {
  background: linear-gradient(135deg, #f3ba2f, #f0b90b);
}

.watchlist-details h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--gray-900);
}

.watchlist-details span {
  font-size: 12px;
  color: var(--gray-600);
}

.watchlist-price {
  text-align: right;
}

.watchlist-price .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  display: block;
  margin-bottom: 4px;
}

.watchlist-price .change {
  font-size: 14px;
  font-weight: 600;
}

.remove-watchlist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.remove-watchlist-btn:hover {
  background: rgba(244, 67, 54, 0.1);
  color: var(--danger);
  transform: scale(1.1);
}

.remove-watchlist-btn svg {
  width: 18px;
  height: 18px;
}

/* Watchlist Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  margin: 0;
  font-size: 24px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.crypto-search {
  margin-bottom: 20px;
}

.crypto-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  font-size: 16px;
}

.crypto-list {
  max-height: 400px;
  overflow-y: auto;
}

.crypto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.crypto-item:hover {
  background: var(--gray-50);
}

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

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.crypto-icon.btc {
  background: linear-gradient(135deg, #f7931a, #f2a900);
}

.crypto-icon.eth {
  background: linear-gradient(135deg, #627eea, #8a92b2);
}

.crypto-icon.sol {
  background: linear-gradient(135deg, #9945ff, #14f195);
}

.crypto-icon.bnb {
  background: linear-gradient(135deg, #f3ba2f, #f0b90b);
}

.crypto-icon.xrp {
  background: linear-gradient(135deg, #23292f, #346aa9);
}

.crypto-icon.ada {
  background: linear-gradient(135deg, #0033ad, #3468c0);
}

.crypto-icon.doge {
  background: linear-gradient(135deg, #c2a633, #ba9f33);
}

.crypto-icon.matic {
  background: linear-gradient(135deg, #8247e5, #a35af1);
}

.crypto-item h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--gray-900);
}

.crypto-item span {
  font-size: 13px;
  color: var(--gray-600);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gold-primary);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--gold-secondary);
  transform: scale(1.1);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .kyc-forms {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .kyc-requirement-notice {
    flex-direction: column;
    padding: 24px;
  }

  .kyc-requirement-notice .notice-icon {
    width: 48px;
    height: 48px;
  }

  .kyc-requirement-notice .notice-icon svg {
    width: 24px;
    height: 24px;
  }

  .kyc-requirement-notice .notice-content h3 {
    font-size: 18px;
  }

  .kyc-requirement-notice .notice-content > p {
    font-size: 14px;
  }

  .watchlist-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kyc-status-card {
    flex-direction: column;
    text-align: center;
  }

  .kyc-requirement-notice {
    padding: 20px;
  }

  .kyc-requirement-notice .notice-content h3 {
    font-size: 16px;
  }

  .kyc-benefits {
    padding: 16px;
  }

  .progress-steps {
    grid-template-columns: 1fr;
  }

  .alert-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========== AUTHORIZATION CODE MODAL ========== */
.auth-code-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.auth-code-modal {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.auth-code-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-code-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
}

.auth-code-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auth-code-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.auth-code-modal-body {
  padding: 32px 24px;
  text-align: center;
}

.auth-code-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-code-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.auth-code-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.auth-code-input-container {
  margin-bottom: 20px;
}

.auth-code-input {
  width: 100%;
  max-width: 260px;
  padding: 16px 24px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  font-family: "Courier New", monospace;
  transition: all 0.3s ease;
}

.auth-code-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(5, 48, 92, 0.1);
}

.auth-code-timer {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.auth-code-timer span {
  font-weight: 600;
  color: var(--gold-primary);
}

/* Success message for resend code */
.auth-code-success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #4caf50;
  border-radius: 8px;
  margin: 16px 0;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.auth-code-success-message svg {
  width: 20px;
  height: 20px;
  stroke: #4caf50;
  flex-shrink: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-code-resend-container {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-code-resend-text {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.auth-code-resend-btn {
  background: none;
  border: 1px solid var(--gray-300);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
}

.auth-code-resend-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.auth-code-resend-btn:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--primary-blue);
}

.auth-code-resend-btn:hover:not(:disabled) svg {
  transform: rotate(-45deg);
}

.auth-code-resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-code-resend-btn .resend-spinner {
  animation: spin 1s linear infinite;
}

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

.resend-cooldown {
  color: var(--gray-500);
  font-size: 13px;
}

.cooldown-timer {
  font-weight: 600;
  color: var(--gold-primary);
}

.auth-code-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.auth-code-cancel-btn,
.auth-code-verify-btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-code-cancel-btn {
  background: var(--gray-100);
  color: var(--gray-700);
}

.auth-code-cancel-btn:hover {
  background: var(--gray-200);
}

.auth-code-verify-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  min-width: 160px;
}

.auth-code-verify-btn:hover {
  box-shadow: 0 6px 20px rgba(5, 48, 92, 0.3);
}

.auth-code-verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========== WITHDRAWAL SUCCESS MODAL ========== */
.withdrawal-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.withdrawal-success-modal {
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  margin: auto;
}

.withdrawal-success-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.withdrawal-success-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2e7d32;
  margin: 0;
}

.withdrawal-success-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.withdrawal-success-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.withdrawal-success-modal-body {
  padding: 15px 24px;
  text-align: center;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.withdrawal-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.withdrawal-success-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  animation: successPulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.withdrawal-success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
  stroke-width: 3;
}

.withdrawal-success-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-weight: 500;
}

.withdrawal-success-message strong {
  color: #2e7d32;
}

.withdrawal-details-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.withdrawal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.withdrawal-detail-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.withdrawal-detail-value {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.withdrawal-detail-value.highlight {
  color: #2e7d32;
  font-size: 18px;
}

.withdrawal-detail-value.reference {
  font-family: "Courier New", monospace;
  color: var(--primary-blue);
  font-size: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}

.withdrawal-info-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.withdrawal-info-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #f57c00;
  margin-top: 2px;
}

.withdrawal-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.withdrawal-success-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.withdrawal-success-btn-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
  min-width: 140px;
}

.withdrawal-success-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
  transform: translateY(-1px);
}

.withdrawal-success-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.withdrawal-success-btn-secondary:hover {
  background: var(--gray-200);
}

/* ========== DEPOSIT SUCCESS MODAL ========== */
.deposit-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.deposit-success-modal {
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  margin: auto;
}

.deposit-success-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.deposit-success-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1976d2;
  margin: 0;
}

.deposit-success-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.deposit-success-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.deposit-success-modal-body {
  padding: 15px 24px;
  text-align: center;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.deposit-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.deposit-success-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 50%;
  animation: successPulse 2s ease-out infinite;
  z-index: -1;
}

.deposit-success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
  stroke-width: 3;
}

.deposit-success-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-weight: 500;
}

.deposit-success-message strong {
  color: #1976d2;
}

.deposit-details-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.deposit-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.deposit-detail-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.deposit-detail-value {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.deposit-detail-value.highlight {
  color: #1976d2;
  font-size: 18px;
}

.deposit-detail-value.reference {
  font-family: "Courier New", monospace;
  color: var(--primary-blue);
  font-size: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}

.deposit-info-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.deposit-info-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #1976d2;
  margin-top: 2px;
}

.deposit-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.deposit-success-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-success-btn-primary {
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  color: white;
  min-width: 140px;
}

.deposit-success-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
  transform: translateY(-1px);
}

.deposit-success-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.deposit-success-btn-secondary:hover {
  background: var(--gray-200);
}

/* ========== INVESTMENT SUCCESS MODAL ========== */
.investment-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.4s ease;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.investment-success-modal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

.investment-success-modal {
  background: white;
  border-radius: 16px;
  max-width: 540px;
  width: 90%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: auto;
  position: relative;
}

.investment-success-modal.closing {
  animation: modalZoomOut 0.3s ease forwards;
}

.investment-success-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.investment-success-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #388e3c;
  margin: 0;
}

.investment-success-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.investment-success-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.investment-success-modal-body {
  padding: 15px 24px;
  text-align: center;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Celebration Icon Container */
.investment-success-icon-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success Icon with Enhanced Animation */
.investment-success-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: iconPopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.investment-success-icon::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  animation: successPulse 2s ease-out infinite;
  z-index: -1;
}

/* Rotating success glow */
.investment-success-icon::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: conic-gradient(from 0deg, #4caf50, #66bb6a, #81c784, #4caf50);
  border-radius: 50%;
  animation: rotateGlow 3s linear infinite;
  z-index: -2;
  opacity: 0.3;
  filter: blur(8px);
}

.investment-success-icon svg {
  width: 52px;
  height: 52px;
  color: white;
  stroke-width: 3;
  animation: checkmarkDraw 0.5s ease 0.4s both;
}

/* Sparkle effects around icon */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 0.3s;
}
.sparkle:nth-child(3) {
  bottom: 15%;
  left: 10%;
  animation-delay: 0.6s;
}
.sparkle:nth-child(4) {
  bottom: 20%;
  right: 15%;
  animation-delay: 0.9s;
}
.sparkle:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 0.4s;
  width: 6px;
  height: 6px;
}
.sparkle:nth-child(6) {
  top: 50%;
  right: 5%;
  animation-delay: 0.7s;
  width: 6px;
  height: 6px;
}

/* Achievement badge */
.achievement-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  animation: badgePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s both;
  border: 3px solid white;
  z-index: 10;
}

.achievement-badge svg {
  width: 20px;
  height: 20px;
  color: white;
}

.investment-success-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-weight: 500;
}

.investment-success-message strong {
  color: #388e3c;
}

.investment-details-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.investment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.investment-detail-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.investment-detail-value {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.investment-detail-value.highlight {
  color: #388e3c;
  font-size: 18px;
}

.investment-detail-value.reference {
  font-family: "Courier New", monospace;
  color: var(--primary-blue);
  font-size: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}

.investment-info-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.investment-info-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #388e3c;
  margin-top: 2px;
}

.investment-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.investment-success-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.investment-success-btn-primary {
  background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
  color: white;
  min-width: 140px;
}

.investment-success-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(56, 142, 60, 0.3);
  transform: translateY(-1px);
}

.investment-success-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.investment-success-btn-secondary:hover {
  background: var(--gray-200);
}

/* Confetti Particles */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 0;
  animation: confettiFall 3s ease-in forwards;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0.1s;
  background: #00ff00;
  transform: rotate(45deg);
}
.confetti:nth-child(2) {
  left: 20%;
  animation-delay: 0.2s;
  background: #ffdd00;
  border-radius: 50%;
}
.confetti:nth-child(3) {
  left: 30%;
  animation-delay: 0.3s;
  background: #00a8ff;
}
.confetti:nth-child(4) {
  left: 40%;
  animation-delay: 0.15s;
  background: #ff6600;
  border-radius: 50%;
}
.confetti:nth-child(5) {
  left: 50%;
  animation-delay: 0.25s;
  background: #dd00ff;
  transform: rotate(60deg);
}
.confetti:nth-child(6) {
  left: 60%;
  animation-delay: 0.05s;
  background: #ff0000;
}
.confetti:nth-child(7) {
  left: 70%;
  animation-delay: 0.35s;
  background: #00ffff;
  border-radius: 50%;
}
.confetti:nth-child(8) {
  left: 80%;
  animation-delay: 0.2s;
  background: #ffdd00;
}
.confetti:nth-child(9) {
  left: 90%;
  animation-delay: 0.1s;
  background: #00ff00;
  border-radius: 50%;
}
.confetti:nth-child(10) {
  left: 15%;
  animation-delay: 0.4s;
  background: #ff3300;
  transform: rotate(30deg);
}
.confetti:nth-child(11) {
  left: 25%;
  animation-delay: 0.3s;
  background: #dd00ff;
}
.confetti:nth-child(12) {
  left: 35%;
  animation-delay: 0.5s;
  background: #00a8ff;
  border-radius: 50%;
}
.confetti:nth-child(13) {
  left: 45%;
  animation-delay: 0.15s;
  background: #ffcc00;
}
.confetti:nth-child(14) {
  left: 55%;
  animation-delay: 0.35s;
  background: #00ff00;
  border-radius: 50%;
}
.confetti:nth-child(15) {
  left: 65%;
  animation-delay: 0.25s;
  background: #ff0066;
  transform: rotate(90deg);
}
.confetti:nth-child(16) {
  left: 75%;
  animation-delay: 0.45s;
  background: #00ffff;
}
.confetti:nth-child(17) {
  left: 85%;
  animation-delay: 0.2s;
  background: #ff6600;
  border-radius: 50%;
}
.confetti:nth-child(18) {
  left: 95%;
  animation-delay: 0.1s;
  background: #ffdd00;
}
.confetti:nth-child(19) {
  left: 5%;
  animation-delay: 0.5s;
  background: #00ff00;
  transform: rotate(120deg);
}
.confetti:nth-child(20) {
  left: 50%;
  animation-delay: 0.05s;
  background: #ff0000;
  border-radius: 50%;
}
.confetti:nth-child(21) {
  left: 12%;
  animation-delay: 0.18s;
  background: #00ff00;
  transform: rotate(75deg);
}
.confetti:nth-child(22) {
  left: 28%;
  animation-delay: 0.22s;
  background: #ffdd00;
  border-radius: 50%;
}
.confetti:nth-child(23) {
  left: 38%;
  animation-delay: 0.13s;
  background: #00a8ff;
}
.confetti:nth-child(24) {
  left: 52%;
  animation-delay: 0.28s;
  background: #ff0066;
  border-radius: 50%;
}
.confetti:nth-child(25) {
  left: 62%;
  animation-delay: 0.17s;
  background: #dd00ff;
  transform: rotate(105deg);
}
.confetti:nth-child(26) {
  left: 72%;
  animation-delay: 0.32s;
  background: #00ffff;
}
.confetti:nth-child(27) {
  left: 82%;
  animation-delay: 0.12s;
  background: #ff6600;
  border-radius: 50%;
}
.confetti:nth-child(28) {
  left: 92%;
  animation-delay: 0.26s;
  background: #ffcc00;
}
.confetti:nth-child(29) {
  left: 8%;
  animation-delay: 0.19s;
  background: #ff0000;
  border-radius: 50%;
}
.confetti:nth-child(30) {
  left: 18%;
  animation-delay: 0.33s;
  background: #00ff00;
  transform: rotate(135deg);
}
.confetti:nth-child(31) {
  left: 32%;
  animation-delay: 0.11s;
  background: #00a8ff;
  border-radius: 50%;
}
.confetti:nth-child(32) {
  left: 42%;
  animation-delay: 0.24s;
  background: #dd00ff;
}
.confetti:nth-child(33) {
  left: 58%;
  animation-delay: 0.16s;
  background: #ffdd00;
  transform: rotate(150deg);
}
.confetti:nth-child(34) {
  left: 68%;
  animation-delay: 0.29s;
  background: #ff3300;
  border-radius: 50%;
}
.confetti:nth-child(35) {
  left: 78%;
  animation-delay: 0.14s;
  background: #00ffff;
}
.confetti:nth-child(36) {
  left: 88%;
  animation-delay: 0.21s;
  background: #ff0066;
  border-radius: 50%;
}
.confetti:nth-child(37) {
  left: 6%;
  animation-delay: 0.27s;
  background: #00ff00;
  transform: rotate(165deg);
}
.confetti:nth-child(38) {
  left: 22%;
  animation-delay: 0.08s;
  background: #ffcc00;
  border-radius: 50%;
}
.confetti:nth-child(39) {
  left: 36%;
  animation-delay: 0.31s;
  background: #00a8ff;
}
.confetti:nth-child(40) {
  left: 48%;
  animation-delay: 0.09s;
  background: #ff6600;
  transform: rotate(180deg);
}
.confetti:nth-child(41) {
  left: 64%;
  animation-delay: 0.23s;
  background: #dd00ff;
  border-radius: 50%;
}
.confetti:nth-child(42) {
  left: 74%;
  animation-delay: 0.06s;
  background: #ffdd00;
}
.confetti:nth-child(43) {
  left: 86%;
  animation-delay: 0.34s;
  background: #00ffff;
  border-radius: 50%;
}
.confetti:nth-child(44) {
  left: 94%;
  animation-delay: 0.19s;
  background: #ff0000;
  transform: rotate(195deg);
}
.confetti:nth-child(45) {
  left: 14%;
  animation-delay: 0.07s;
  background: #00ff00;
  border-radius: 50%;
}
.confetti:nth-child(46) {
  left: 26%;
  animation-delay: 0.25s;
  background: #ff0066;
}
.confetti:nth-child(47) {
  left: 44%;
  animation-delay: 0.12s;
  background: #00a8ff;
  transform: rotate(210deg);
}
.confetti:nth-child(48) {
  left: 56%;
  animation-delay: 0.3s;
  background: #ffcc00;
  border-radius: 50%;
}
.confetti:nth-child(49) {
  left: 76%;
  animation-delay: 0.1s;
  background: #dd00ff;
}
.confetti:nth-child(50) {
  left: 96%;
  animation-delay: 0.2s;
  background: #ff6600;
  border-radius: 50%;
}

/* Investment Success Modal Animations */
@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes iconPopIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dasharray: 0, 100;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: 100, 0;
    stroke-dashoffset: 0;
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 0.8;
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    top: -10px;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 100%;
    transform: translateX(var(--confetti-x, 50px)) rotate(720deg);
  }
}

/* ========== TRANSFER CONFIRMATION MODAL ========== */
.transfer-confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.transfer-confirmation-modal {
  background: white;
  border-radius: 16px;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.transfer-confirmation-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transfer-confirmation-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
}

.transfer-confirmation-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.transfer-confirmation-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.transfer-confirmation-modal-body {
  padding: 32px 24px;
}

.transfer-confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transfer-confirmation-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.transfer-confirmation-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 32px;
}

/* ========== CONFIRMATION MODAL ========== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.2s ease;
}

.confirm-modal-overlay.removing {
  animation: fadeOut 0.2s ease;
}

.confirm-modal {
  background: white;
  border-radius: 16px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.2s ease;
  overflow: hidden;
}

.confirm-modal-header {
  padding: 28px 28px 20px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.confirm-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.confirm-modal.warning .confirm-modal-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.confirm-modal.warning .confirm-modal-icon svg {
  width: 36px;
  height: 36px;
  color: #f59e0b;
}

.confirm-modal.danger .confirm-modal-icon {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.confirm-modal.danger .confirm-modal-icon svg {
  width: 36px;
  height: 36px;
  color: #ef4444;
}

.confirm-modal.info .confirm-modal-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.confirm-modal.info .confirm-modal-icon svg {
  width: 36px;
  height: 36px;
  color: #3b82f6;
}

.confirm-modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.confirm-modal-body {
  padding: 24px 28px 28px;
}

.confirm-modal-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
  text-align: center;
}

.confirm-modal-actions {
  padding: 20px 28px 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal-cancel-btn,
.confirm-modal-confirm-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 120px;
}

.confirm-modal-cancel-btn {
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.confirm-modal-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.confirm-modal-confirm-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.confirm-modal-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.confirm-modal.danger .confirm-modal-confirm-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-modal.danger .confirm-modal-confirm-btn:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.confirm-modal.warning .confirm-modal-confirm-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.confirm-modal.warning .confirm-modal-confirm-btn:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ========== KYC VERIFICATION REQUIRED MODAL ========== */
.kyc-verification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.kyc-verification-modal {
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.kyc-verification-modal-header {
  padding: 28px 28px 20px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kyc-verification-modal-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kyc-verification-modal-header svg {
  width: 28px;
  height: 28px;
  color: var(--warning);
}

.kyc-verification-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.kyc-verification-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.kyc-verification-modal-body {
  padding: 32px 28px;
}

.kyc-verification-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.kyc-verification-notice-title {
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kyc-verification-notice-title svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.kyc-verification-notice-text {
  font-size: 14px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}

.kyc-status-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}

.kyc-status-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.kyc-status-info-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.kyc-status-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.kyc-status-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.kyc-status-value.amount {
  color: var(--primary-blue);
  font-size: 18px;
}

.kyc-status-value.status-not-submitted {
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.kyc-status-value.status-pending {
  color: #ea580c;
  background: #fed7aa;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.kyc-verification-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.kyc-verification-cancel-btn {
  flex: 1;
  padding: 14px 24px;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kyc-verification-cancel-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.kyc-verification-proceed-btn {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.kyc-verification-proceed-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.kyc-verification-proceed-btn svg,
.kyc-verification-cancel-btn svg {
  width: 18px;
  height: 18px;
}

.transfer-details-review {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.transfer-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.transfer-detail-item:last-child {
  border-bottom: none;
}

.transfer-detail-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.transfer-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.transfer-detail-value.amount {
  color: var(--primary-blue);
  font-size: 18px;
}

.transfer-confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.transfer-confirmation-edit-btn,
.transfer-confirmation-confirm-btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.transfer-confirmation-edit-btn {
  background: var(--gray-100);
  color: var(--gray-700);
}

.transfer-confirmation-edit-btn:hover {
  background: var(--gray-200);
}

.transfer-confirmation-edit-btn svg {
  width: 18px;
  height: 18px;
}

.transfer-confirmation-confirm-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  min-width: 160px;
}

.transfer-confirmation-confirm-btn:hover {
  box-shadow: 0 6px 20px rgba(5, 48, 92, 0.3);
}

.transfer-confirmation-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.transfer-confirmation-confirm-btn svg {
  width: 20px;
  height: 20px;
}

/* ========== TRANSFER SUCCESS MODAL ========== */
.transfer-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.transfer-success-modal {
  background: white;
  border-radius: 16px;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.transfer-success-modal-header {
  padding: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.transfer-success-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #16a34a;
  margin: 0;
}

.transfer-success-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.transfer-success-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.transfer-success-modal-body {
  padding: 0 24px 24px 24px;
  text-align: center;
  overflow-y: auto;
  flex: 1;
}

.transfer-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease;
}

.transfer-success-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

@keyframes successPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.transfer-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #16a34a;
  margin: 0 0 12px 0;
}

.transfer-success-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.transfer-success-details {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.transfer-success-reference {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  margin-bottom: 20px;
}

.transfer-success-reference-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
  margin-bottom: 8px;
}

.transfer-success-reference-value {
  font-size: 20px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: #16a34a;
  letter-spacing: 2px;
}

.transfer-success-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.transfer-success-detail-item:last-child {
  border-bottom: none;
}

.transfer-success-detail-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.transfer-success-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.transfer-success-detail-value.amount {
  color: #16a34a;
  font-size: 18px;
}

.transfer-success-detail-item.highlight-balance {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 16px 12px;
  margin-top: 8px;
  border-bottom: none;
}

.transfer-success-detail-item.highlight-balance .transfer-success-detail-label {
  color: #15803d;
  font-weight: 600;
  font-size: 15px;
}

.transfer-success-detail-item.highlight-balance
  .transfer-success-detail-value.balance {
  color: #16a34a;
  font-size: 20px;
  font-weight: 700;
}

.transfer-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.transfer-success-close-btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  min-width: 160px;
}

.transfer-success-close-btn:hover {
  box-shadow: 0 6px 20px rgba(5, 48, 92, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== TRANSFER DETAILS MODAL ========== */
.transfer-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.transfer-details-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.transfer-details-modal-header {
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gray-100);
}

.transfer-details-modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.transfer-details-modal-header svg {
  width: 28px;
  height: 28px;
  color: var(--primary-blue);
}

.transfer-details-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.transfer-details-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.transfer-details-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.transfer-details-status-banner {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.transfer-details-status-banner.completed {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  color: #16a34a;
}

.transfer-details-status-banner.pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fcd34d;
  color: #b45309;
}

.transfer-details-status-banner.cancelled {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #fca5a5;
  color: #dc2626;
}

.transfer-details-status-banner svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.transfer-details-section {
  margin-bottom: 24px;
}

.transfer-details-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.transfer-details-grid {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.transfer-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.transfer-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.transfer-details-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  flex-shrink: 0;
  margin-right: 16px;
}

.transfer-details-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
  word-break: break-word;
}

.transfer-details-value.amount {
  font-size: 20px;
  color: var(--primary-blue);
  font-weight: 700;
}

.transfer-details-value.reference {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--primary-blue);
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.transfer-details-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 8px;
}

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

.transfer-details-btn.primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
}

.transfer-details-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(5, 48, 92, 0.3);
}

.transfer-details-btn.secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.transfer-details-btn.secondary:hover {
  background: var(--gray-200);
}

.transfer-details-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.transfer-details-btn svg {
  width: 18px;
  height: 18px;
}

.transfer-details-note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  border-radius: 8px;
  margin-top: 8px;
}

.transfer-details-note-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 8px;
  display: block;
}

.transfer-details-note-text {
  font-size: 14px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}

.transfer-history-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.transfer-history-row:hover {
  background-color: var(--gray-50);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* ========== TABLET & MEDIUM SCREENS (max-width: 1024px) ========== */
@media (max-width: 1024px) {
  /* Profile Tabs */
  .profile-tabs {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .profile-tab {
    padding: 10px 16px;
    white-space: nowrap;
  }

  /* Profile Form Grids */
  .profile-info-grid,
  .edit-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  /* Security Form Grid */
  .security-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Referral Stats Grid */
  .referral-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }

  /* Referral Link Section */
  .referral-link-section,
  .referred-users-section {
    padding: 24px;
  }

  /* Quick Actions */
  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Stats Grid - Improve layout for medium screens */
  .stat-card {
    padding: 20px;
  }

  .stat-value {
    font-size: 24px;
  }

  /* Login History Table */
  .login-history-table {
    font-size: 13px;
  }

  .login-history-table th,
  .login-history-table td {
    padding: 16px 12px;
  }

  .login-history-table th:first-child,
  .login-history-table td:first-child {
    padding-left: 16px;
  }

  .login-history-table th:last-child,
  .login-history-table td:last-child {
    padding-right: 16px;
  }
}

/* ========== SMALL TABLETS & LARGE PHONES (max-width: 768px) ========== */
@media (max-width: 768px) {
  /* Prevent mobile zoom on input focus - iOS Safari requires minimum 16px */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Content Padding Adjustments */
  .content-wrapper {
    padding: 16px;
    background: #ffffff;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 14px;
  }

  /* Profile Tabs - Stack on Mobile */
  .profile-tabs {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray-200);
  }

  /* Profile Forms */
  .profile-form,
  .edit-form-section {
    padding: 20px;
    border-radius: 12px;
  }

  .profile-info-grid,
  .edit-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .edit-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .edit-section-icon {
    width: 40px;
    height: 40px;
  }

  .edit-section-title {
    font-size: 18px;
  }

  /* Login History - Make Table Scrollable */
  /* .login-history-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  } */

  .login-history-container .table-responsive {
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .login-history-table {
    min-width: 650px;
    font-size: 12px;
  }

  .login-history-table th,
  .login-history-table td {
    padding: 12px 10px;
    white-space: nowrap;
  }

  .login-history-table th:first-child,
  .login-history-table td:first-child {
    padding-left: 12px;
  }

  .login-history-table th:last-child,
  .login-history-table td:last-child {
    padding-right: 12px;
  }

  .login-date-cell {
    min-width: 110px;
  }

  .login-date {
    font-size: 13px;
  }

  .login-time {
    font-size: 11px;
  }

  .ip-address {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 100px;
  }

  .device-info,
  .location-info {
    font-size: 13px;
    min-width: 120px;
  }

  .login-history-table .status-badge {
    padding: 6px 12px;
    font-size: 10px;
    min-width: 70px;
  }

  /* Referral Section */
  .referral-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .referral-stat-card {
    padding: 16px;
  }

  .referral-stat-card .stat-icon {
    width: 50px;
    height: 50px;
  }

  .referral-stat-card .stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .referral-stat-card h4 {
    font-size: 13px;
  }

  .referral-stat-card .stat-value {
    font-size: 20px;
  }

  .referral-link-section,
  .referred-users-section {
    padding: 20px;
  }

  .referral-link-section h3,
  .referred-users-section h3 {
    font-size: 18px;
  }

  .referral-link-box {
    flex-direction: column;
    gap: 10px;
  }

  .copy-link-btn {
    width: 100%;
    justify-content: center;
  }

  .share-btn {
    flex: 1;
    min-width: calc(50% - 4px);
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Quick Actions */
  .quick-actions {
    padding: 20px;
  }

  .quick-actions h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .action-btn {
    padding: 14px 16px;
    font-size: 14px;
    gap: 8px;
  }

  .action-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Stats Cards */
  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .stat-label {
    font-size: 13px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-change {
    font-size: 12px;
  }

  /* Recent Section */
  .recent-section {
    padding: 20px;
  }

  .section-title h3 {
    font-size: 18px;
  }

  /* Transaction Tables */
  .wallet-tables {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .transactions-table {
    min-width: 600px;
  }

  /* Deposit/Withdraw Sections */
  .crypto-grid,
  .withdraw-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deposit-form,
  .withdraw-form {
    padding: 20px;
  }

  .form-section {
    padding: 20px;
  }

  .deposit-form-container,
  .withdraw-form-container,
  .internal-transfer-form-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .transaction-form {
    padding: 20px;
  }

  .crypto-address-box {
    padding: 14px;
  }

  .qr-code {
    width: 160px;
    height: 160px;
  }

  .transaction-info {
    width: 100%;
  }

  .transaction-amount {
    align-self: flex-end;
    font-size: 15px;
  }

  /* Transaction Filters */
  .transaction-filters {
    padding: 16px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 14px;
    font-size: 13px;
    flex: 1;
    min-width: fit-content;
  }

  /* Notification Container - Adjust for mobile */
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .notification {
    min-width: auto;
    max-width: 100%;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }

  /* Responsive text sizing */
  .responsive-text-sm {
    font-size: 0.875rem;
  }

  .responsive-text-xs {
    font-size: 0.75rem;
  }

  .email-verification-banner {
    margin: 0 16px 16px;
    padding: 12px 16px;
  }

  .verification-banner-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .verification-message {
    flex-basis: 100%;
  }

  .verification-resend-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* ========== MOBILE DEVICES (max-width: 480px) ========== */
@media (max-width: 480px) {
  /* Prevent mobile zoom on input focus - iOS Safari requires minimum 16px */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Profile Content */
  .profile-form,
  .edit-form-section {
    padding: 16px;
  }

  .profile-info-item {
    padding: 14px;
    gap: 12px;
  }

  .info-item-icon {
    width: 36px;
    height: 36px;
  }

  .info-item-icon svg {
    width: 18px;
    height: 18px;
  }

  .info-item-label {
    font-size: 11px;
  }

  .info-item-value {
    font-size: 14px;
  }

  .info-item-value.wallet-value {
    font-size: 11px;
    padding: 6px 10px;
  }

  .custom-select-trigger {
    padding: 10px 12px;
    font-size: 16px !important;
    min-height: 44px;
  }

  .custom-select-option {
    padding: 10px 12px;
    font-size: 16px !important;
  }

  .crypto-option-logo {
    width: 20px;
    height: 20px;
  }

  /* Security Section */
  .security-section {
    padding: 16px;
  }

  .security-section-title {
    font-size: 18px;
  }

  .security-form {
    margin-top: 6px;
  }

  .security-form-input {
    padding: 12px 14px;
    font-size: 16px !important; /* Prevent mobile zoom on input focus */
  }

  .btn-security-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Referral Section */
  .referral-stat-card {
    padding: 14px;
    gap: 12px;
  }

  .referral-link-section,
  .referred-users-section {
    padding: 16px;
  }

  .social-share h4 {
    font-size: 14px;
  }

  .share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .share-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  /* Quick Actions - Stack Vertically */
  .quick-actions {
    padding: 16px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action-btn {
    padding: 14px;
    justify-content: center;
  }

  /* Stats Cards - Single Column */
  .stat-card {
    padding: 14px;
  }

  /* Recent Section */
  .recent-section {
    padding: 16px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Forms - Full Width Inputs */
  /* Prevent mobile zoom on input focus - minimum 16px required */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }

  /* Override wallet-input font size for mobile to prevent zoom */
  .edit-form-input.wallet-input {
    font-size: 16px !important;
  }

  /* 2FA Section */
  .twofa-content,
  .twofa-status-container {
    padding: 16px;
  }

  /* Edit Form Actions */
  .edit-form-actions,
  .security-form-actions {
    flex-direction: row;
    gap: 10px;
  }

  .btn-edit-cancel,
  .btn-edit-save {
    width: 100%;
    justify-content: center;
  }

  /* Deposit/Withdraw Forms - Mobile */
  .deposit-form-container,
  .withdraw-form-container,
  .internal-transfer-form-container {
    padding: 0;
  }

  .transaction-form {
    padding: 16px;
    border-radius: 8px;
  }

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

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 16px !important; /* Prevent mobile zoom on input focus */
  }

  .crypto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .crypto-icon-img {
    width: 40px;
    height: 40px;
  }

  .qr-code {
    width: 150px;
    height: 150px;
  }

  .crypto-address-box {
    padding: 12px;
    font-size: 12px;
  }

  .copy-address-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .payment-info-card {
    padding: 16px;
  }

  /* Wallet Actions */
  .wallet-actions {
    flex-direction: row;
    gap: 10px;
  }

  .wallet-actions button {
    width: 100%;
  }

  /* Balance Cards */
  .balance-card {
    padding: 14px;
  }

  .balance-icon {
    width: 50px;
    height: 50px;
  }

  .balance-icon svg {
    width: 24px;
    height: 24px;
  }

  .balance-amount {
    font-size: 24px;
  }

  #submitKycBtn {
    font-size: 16px;
    width: 100%;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .auth-code-modal {
    max-width: 100%;
    width: 95%;
    margin: 20px;
  }

  .auth-code-modal-header {
    padding: 20px 16px 12px;
  }

  .auth-code-modal-body {
    padding: 24px 16px;
  }

  .auth-code-input {
    font-size: 24px;
    letter-spacing: 8px;
    padding: 12px 16px;
  }

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

  .auth-code-cancel-btn,
  .auth-code-verify-btn {
    width: 100%;
  }

  /* Withdrawal Success Modal */
  .withdrawal-success-modal {
    width: 95%;
    max-height: calc(100vh - 20px);
  }

  .withdrawal-success-modal-header {
    padding: 20px 16px 14px;
  }

  .withdrawal-success-modal-header h2 {
    font-size: 18px;
  }

  .withdrawal-success-modal-body {
    padding: 24px 16px;
  }

  .withdrawal-success-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .withdrawal-success-icon svg {
    width: 42px;
    height: 42px;
  }

  .withdrawal-success-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .withdrawal-details-card {
    padding: 16px;
    margin: 20px 0;
  }

  .withdrawal-detail-row {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .withdrawal-detail-label {
    font-size: 12px;
  }

  .withdrawal-detail-value {
    font-size: 14px;
    text-align: left;
  }

  .withdrawal-detail-value.highlight {
    font-size: 16px;
  }

  .withdrawal-detail-value.reference {
    font-size: 12px;
    padding: 4px 10px;
  }

  .withdrawal-info-note {
    font-size: 12px;
    padding: 10px 12px;
    gap: 8px;
  }

  .withdrawal-info-note svg {
    width: 18px;
    height: 18px;
  }

  .withdrawal-success-actions {
    margin-top: 20px;
  }

  .withdrawal-success-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Deposit Success Modal */
  .deposit-success-modal {
    width: 95%;
    max-height: calc(100vh - 20px);
  }

  .deposit-success-modal-header {
    padding: 20px 16px 14px;
  }

  .deposit-success-modal-header h2 {
    font-size: 18px;
  }

  .deposit-success-modal-body {
    padding: 24px 16px;
  }

  .deposit-success-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .deposit-success-icon svg {
    width: 42px;
    height: 42px;
  }

  .deposit-success-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .deposit-details-card {
    padding: 16px;
    margin: 20px 0;
  }

  .deposit-detail-row {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .deposit-detail-label {
    font-size: 12px;
  }

  .deposit-detail-value {
    font-size: 14px;
    text-align: left;
  }

  .deposit-detail-value.highlight {
    font-size: 16px;
  }

  .deposit-detail-value.reference {
    font-size: 12px;
    padding: 4px 10px;
  }

  .deposit-info-note {
    font-size: 12px;
    padding: 10px 12px;
    gap: 8px;
  }

  .deposit-info-note svg {
    width: 18px;
    height: 18px;
  }

  .deposit-success-actions {
    margin-top: 20px;
  }

  .deposit-success-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Investment Success Modal */
  .investment-success-modal {
    width: 95%;
    max-height: calc(100vh - 20px);
  }

  .investment-success-modal-header {
    padding: 20px 16px 14px;
  }

  .investment-success-modal-header h2 {
    font-size: 17px;
  }

  .investment-success-modal-body {
    padding: 24px 16px;
  }

  .investment-success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
  }

  .investment-success-icon {
    width: 75px;
    height: 75px;
  }

  .investment-success-icon svg {
    width: 44px;
    height: 44px;
  }

  .achievement-badge {
    width: 30px;
    height: 30px;
    border: 2px solid white;
  }

  .achievement-badge svg {
    width: 16px;
    height: 16px;
  }

  .sparkle {
    width: 6px;
    height: 6px;
  }

  .investment-success-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .investment-details-card {
    padding: 16px;
    margin: 20px 0;
  }

  .investment-detail-row {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .investment-detail-label {
    font-size: 12px;
  }

  .investment-detail-value {
    font-size: 14px;
    text-align: left;
  }

  .investment-detail-value.highlight {
    font-size: 16px;
  }

  .investment-detail-value.reference {
    font-size: 12px;
    padding: 4px 10px;
  }

  .investment-info-note {
    font-size: 12px;
    padding: 10px 12px;
    gap: 8px;
  }

  .investment-info-note svg {
    width: 18px;
    height: 18px;
  }

  .investment-success-actions {
    margin-top: 20px;
  }

  .investment-success-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .login-history-table {
    min-width: 720px;
  }

  .login-date-cell,
  .ip-address,
  .device-info,
  .location-info {
    min-width: 0;
    white-space: normal;
  }

  .location-info {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .login-history-container .table-responsive {
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .login-history-table {
    min-width: 0;
    background: white;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  body.dark-mode .login-history-table {
    background: var(--gray-100);
  }

  .login-history-table thead {
    display: none;
  }

  .login-history-table tbody,
  .login-history-table tr {
    display: block;
    width: 100%;
  }

  .login-history-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--gray-100);
  }

  body.dark-mode .login-history-table td {
    border-top-color: var(--gray-300);
  }

  .login-history-table tbody tr {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: none;
  }

  body.dark-mode .login-history-table tbody tr {
    background: var(--gray-100);
    border-color: var(--gray-300);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  .login-history-table tbody tr:hover {
    background: white;
    transform: none;
  }

  body.dark-mode .login-history-table tbody tr:hover {
    background: var(--gray-200);
  }

  .login-history-table td:first-child {
    border-top: none;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
  }

  body.dark-mode .login-history-table td:first-child {
    border-bottom-color: var(--gray-300);
  }

  .login-history-table td:last-child {
    padding-bottom: 0;
    padding-right: 0;
  }

  /* Login history table labels */
  .login-history-table td:nth-child(1)::before {
    content: "DATE & TIME";
  }

  .login-history-table td:nth-child(2)::before {
    content: "IP ADDRESS";
  }

  .login-history-table td:nth-child(3)::before {
    content: "DEVICE";
  }

  .login-history-table td:nth-child(4)::before {
    content: "LOCATION";
  }

  .login-history-table td:nth-child(5)::before {
    content: "STATUS";
  }

  .login-history-table td::before {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  body.dark-mode .login-history-table td::before {
    color: var(--gray-700);
  }

  .login-date-cell,
  .ip-address,
  .device-info,
  .location-info {
    display: inline;
    text-align: right;
    min-width: 0;
    width: auto;
  }

  .ip-address {
    padding: 0;
    word-break: break-all;
  }
}

@media (max-width: 1200px) {
  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .filter-tab {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .date-filter {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .date-filter input {
    width: 100%;
    min-width: 0;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .export-btn {
    white-space: nowrap;
    justify-content: center;
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .filter-tab {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1200px) {
  #section-transactions .data-table,
  #section-referrals .data-table {
    min-width: 720px;
  }
}

@media (max-width: 600px) {
  #section-transactions .table-responsive,
  #section-referrals .table-responsive {
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  #section-transactions .data-table,
  #section-referrals .data-table {
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  #section-transactions .data-table thead,
  #section-referrals .data-table thead {
    display: none;
  }

  #section-transactions .data-table tbody,
  #section-transactions .data-table tr,
  #section-referrals .data-table tbody,
  #section-referrals .data-table tr {
    display: block;
    width: 100%;
  }

  #section-transactions .data-table td,
  #section-referrals .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--gray-100);
  }

  body.dark-mode #section-transactions .data-table td,
  body.dark-mode #section-referrals .data-table td {
    border-top-color: var(--gray-300);
  }

  #section-transactions .data-table td::before,
  #section-referrals .data-table td::before {
    flex-shrink: 0;
  }

  #section-transactions .data-table tbody tr,
  #section-referrals .data-table tbody tr {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  body.dark-mode #section-transactions .data-table tbody tr,
  body.dark-mode #section-referrals .data-table tbody tr {
    background: var(--gray-100);
    border-color: var(--gray-300);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  }

  #section-transactions .data-table td:first-child,
  #section-referrals .data-table td:first-child {
    border-top: none;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
  }

  body.dark-mode #section-transactions .data-table td:first-child,
  body.dark-mode #section-referrals .data-table td:first-child {
    border-bottom-color: var(--gray-300);
  }

  #section-transactions .data-table td:last-child,
  #section-referrals .data-table td:last-child {
    padding-bottom: 0;
  }

  /* Transaction table labels */
  #section-transactions .data-table td:nth-child(1)::before {
    content: "DATE";
  }

  #section-transactions .data-table td:nth-child(2)::before {
    content: "TYPE";
  }

  #section-transactions .data-table td:nth-child(3)::before {
    content: "AMOUNT";
  }

  #section-transactions .data-table td:nth-child(4)::before {
    content: "STATUS";
  }

  #section-transactions .data-table td:nth-child(5)::before {
    content: "REFERENCE";
  }

  /* Referral table labels */
  #section-referrals .data-table td:nth-child(2)::before {
    content: "DATE JOINED";
  }

  #section-referrals .data-table td:nth-child(3)::before {
    content: "STATUS";
  }

  #section-referrals .data-table td:nth-child(4)::before {
    content: "EARNINGS";
  }

  #section-transactions .data-table td::before,
  #section-referrals .data-table td::before {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  body.dark-mode #section-transactions .data-table td::before,
  body.dark-mode #section-referrals .data-table td::before {
    color: var(--gray-700);
  }
}

/* ========== INTERNAL TRANSFER SECTION ========== */
.transfers-list .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.transfers-list .empty-state svg {
  margin-bottom: 16px;
}

.transfers-list .empty-state p {
  color: var(--gray-600);
  font-size: 16px;
  margin: 0 0 8px 0;
}

.internal-transfer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.internal-transfer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.internal-transfer-summary-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.9),
    rgba(241, 245, 249, 0.9)
  );
}

.internal-transfer-summary-item .summary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.internal-transfer-summary-item .summary-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.internal-transfer-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--gray-100);
}

.internal-transfer-header h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

/* Align Recent Internal Transfers heading spacing with Pending Deposits/Withdrawals */
.internal-transfer-history .internal-transfer-header {
  margin-bottom: 16px;
}

.internal-transfer-history .internal-transfer-header h3 {
  margin-bottom: 0;
}

.internal-transfer-header p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-500);
}

.internal-transfer-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.internal-transfer-form .form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.internal-transfer-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.internal-transfer-form .form-group.flex-1 {
  flex: 1;
}

.internal-transfer-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

.internal-transfer-form .required {
  color: var(--danger);
}

.internal-transfer-form .form-input,
.internal-transfer-form .form-select,
.internal-transfer-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 14px;
  color: var(--gray-900);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.internal-transfer-form .form-input:focus,
.internal-transfer-form .form-select:focus,
.internal-transfer-form select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4);
}

.internal-transfer-form .form-input::placeholder {
  color: var(--gray-400);
}

.internal-transfer-form .form-help {
  font-size: 12px;
  color: var(--gray-500);
}

.internal-transfer-hints {
  margin-top: 4px;
}

.internal-transfer-bullets {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.internal-transfer-form .code-input {
  text-align: center;
  letter-spacing: 4px;
  font-size: 18px;
  font-weight: 600;
}

.internal-transfer-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.internal-transfer-form .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold-primary), #f59e0b);
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.internal-transfer-form .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45);
}

.internal-transfer-form .primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.internal-transfer-history .data-table td:first-child {
  white-space: nowrap;
}

.status-badge.badge-outgoing {
  background: rgba(33, 150, 243, 0.12);
  color: var(--info);
  border-color: rgba(33, 150, 243, 0.3);
}

.status-badge.badge-incoming {
  background: rgba(56, 142, 60, 0.12);
  color: var(--success);
  border-color: rgba(56, 142, 60, 0.3);
}

body.dark-mode .internal-transfer-card {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

body.dark-mode .internal-transfer-header h3 {
  color: var(--gray-50);
}

body.dark-mode .internal-transfer-header p,
body.dark-mode .internal-transfer-form .form-help {
  color: var(--gray-400);
}

body.dark-mode .internal-transfer-form .form-input,
body.dark-mode .internal-transfer-form .form-select,
body.dark-mode .internal-transfer-form select {
  background: #020617;
  border-color: var(--gray-500);
  color: var(--gray-50);
}

body.dark-mode .internal-transfer-form .form-input::placeholder {
  color: var(--gray-500);
}

body.dark-mode .status-badge.badge-outgoing {
  background: rgba(33, 150, 243, 0.24);
  color: #90caf9;
  border-color: rgba(33, 150, 243, 0.5);
}

body.dark-mode .status-badge.badge-incoming {
  background: rgba(56, 142, 60, 0.24);
  color: #a5d6a7;
  border-color: rgba(56, 142, 60, 0.5);
}

@media (max-width: 992px) {
  .internal-transfer-wrapper {
    grid-template-columns: 1fr;
  }

  .internal-transfer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .internal-transfer-summary {
    grid-template-columns: 1fr;
  }

  .internal-transfer-info-card,
  .withdraw-info-card {
    flex-direction: column;
    gap: 16px;
  }

  .internal-transfer-notice {
    padding: 12px;
  }

  .internal-transfer-notice svg {
    width: 20px;
    height: 20px;
  }

  /* Transfer Modals */
  .transfer-confirmation-modal,
  .transfer-success-modal {
    width: 95%;
    max-width: 95%;
  }

  .transfer-confirmation-modal-header,
  .transfer-success-modal-header {
    padding: 16px;
  }

  .transfer-confirmation-modal-header h2,
  .transfer-success-modal-header h2 {
    font-size: 18px;
  }

  .transfer-confirmation-modal-body,
  .transfer-success-modal-body {
    padding: 20px 16px;
  }

  .transfer-confirmation-icon,
  .transfer-success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .transfer-confirmation-icon svg,
  .transfer-success-icon svg {
    width: 28px;
    height: 28px;
  }

  .transfer-confirmation-message,
  .transfer-success-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .transfer-details-review,
  .transfer-success-details {
    padding: 16px;
    margin-bottom: 20px;
  }

  .transfer-detail-item,
  .transfer-success-detail-item {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .transfer-detail-value,
  .transfer-success-detail-value {
    max-width: 100%;
    text-align: left;
  }

  .transfer-confirmation-actions,
  .transfer-success-actions {
    flex-direction: column;
    gap: 8px;
  }

  .transfer-confirmation-edit-btn,
  .transfer-confirmation-confirm-btn,
  .transfer-success-close-btn {
    width: 100%;
    justify-content: center;
  }

  .transfer-success-title {
    font-size: 20px;
  }

  .transfer-success-reference {
    padding: 12px;
  }

  .transfer-success-reference-value {
    font-size: 16px;
    letter-spacing: 1px;
  }

  /* Transfer Details Modal */
  .transfer-details-modal {
    width: 95%;
    max-width: 95%;
  }

  .transfer-details-modal-header {
    padding: 16px;
  }

  .transfer-details-modal-header h2 {
    font-size: 18px;
  }

  .transfer-details-modal-header svg {
    width: 22px;
    height: 22px;
  }

  .transfer-details-modal-body {
    padding: 16px;
  }

  .transfer-details-status-banner {
    padding: 12px;
    font-size: 14px;
  }

  .transfer-details-status-banner svg {
    width: 20px;
    height: 20px;
  }

  .transfer-details-section-title {
    font-size: 12px;
  }

  .transfer-details-grid {
    padding: 16px;
  }

  .transfer-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
  }

  .transfer-details-value {
    text-align: left;
    max-width: 100%;
  }

  .transfer-details-value.amount {
    font-size: 18px;
  }

  .transfer-details-value.reference {
    font-size: 11px;
    padding: 4px 8px;
  }

  .transfer-details-actions {
    flex-direction: column;
    gap: 8px;
  }

  .transfer-details-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  .transfer-details-note {
    padding: 12px;
  }

  .transfer-details-note-text {
    font-size: 13px;
  }
}

/* ========== BITCOIN WALLET SECTION ========== */
.bitcoin-wallet-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Bitcoin Price Card */
.bitcoin-price-card {
  background: linear-gradient(135deg, #f7931a 0%, #ffa726 100%);
  border-radius: 16px;
  padding: 24px;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.3);
}

.bitcoin-price-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bitcoin-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.bitcoin-price-info {
  flex: 1;
}

.bitcoin-price-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.bitcoin-price-value {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.bitcoin-price-update {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Bitcoin Holdings Card */
.bitcoin-holdings-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bitcoin-holdings-card h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 20px;
}

.bitcoin-holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.holding-item {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.holding-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.holding-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.holding-percent {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* Bitcoin Actions Grid */
.bitcoin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.bitcoin-action-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bitcoin-action-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 18px;
}

.bitcoin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bitcoin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bitcoin-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.bitcoin-form input {
  padding: 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.bitcoin-form input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.bitcoin-form .input-hint {
  font-size: 12px;
  color: var(--gray-500);
}

.balance-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.btn-buy {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-sell {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-swap {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.btn-swap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-swap:active {
  transform: translateY(0);
}

/* Bitcoin Transactions Card */
.bitcoin-transactions-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bitcoin-transactions-card h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 20px;
}

.bitcoin-transactions-card .transaction-type.buy {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

.bitcoin-transactions-card .transaction-type.sell {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

/* Dark Mode for Bitcoin Wallet */
body.dark-mode .bitcoin-holdings-card,
body.dark-mode .bitcoin-action-card,
body.dark-mode .bitcoin-transactions-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

body.dark-mode .bitcoin-holdings-card h3,
body.dark-mode .bitcoin-action-card h3,
body.dark-mode .bitcoin-transactions-card h3 {
  color: var(--white);
}

body.dark-mode .holding-item {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

body.dark-mode .holding-label {
  color: var(--gray-400);
}

body.dark-mode .holding-value {
  color: var(--white);
}

body.dark-mode .bitcoin-form input {
  background: var(--gray-700);
  border-color: var(--gray-600);
  color: var(--white);
}

body.dark-mode .bitcoin-form input:focus {
  border-color: var(--gold-primary);
}

body.dark-mode .balance-display {
  background: var(--gray-700);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .bitcoin-holdings-grid {
    grid-template-columns: 1fr;
  }

  .bitcoin-actions-grid {
    grid-template-columns: 1fr;
  }

  .bitcoin-price-value {
    font-size: 24px;
  }
}

/* ========== CRYPTO WALLET STYLES ========== */

/* Prevent horizontal overflow globally */
#section-crypto-wallet {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Crypto Assets Landing View */
.crypto-wallet-landing {
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Main Content Grid */
.crypto-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 38px;
}

/* Portfolio Balance Section */
.portfolio-balance-section {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* Mobile Action Buttons - Hidden on desktop */
.portfolio-mobile-actions {
  display: none;
}

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

.portfolio-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.timeframe-filters {
  display: flex;
  gap: 8px;
}

.timeframe-btn {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeframe-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.timeframe-btn.active {
  background: var(--gold-primary);
  color: var(--white);
  border-color: var(--gold-primary);
}

.portfolio-balance-display {
  margin-bottom: 24px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px 0;
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
}

.change-icon {
  font-size: 16px;
}

.change-icon.positive {
  color: var(--success);
}

.change-icon.negative {
  color: var(--danger);
}

.change-icon.neutral {
  color: var(--success);
}

.change-text.positive {
  color: var(--success);
}

.change-text.negative {
  color: var(--danger);
}

.change-text.neutral {
  color: var(--success);
}

.change-duration {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  margin-left: 4px;
  opacity: 0.8;
}

.portfolio-chart-container {
  width: 100%;
  height: 200px;
  position: relative;
  padding: 0 8px; /* Add padding to prevent left-side cutoff */
  box-sizing: border-box;
  overflow: visible; /* Allow labels to be visible */
}

#portfolioChart {
  width: 100%;
  height: 100%;
  display: block;
}

/* Swap Section Landing */
.swap-section-landing {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.swap-section-landing h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 24px 0;
}

.swap-form-landing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swap-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swap-field-header label {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}

.max-amount {
  font-size: 16px;
  color: #05305c;
  transition: color var(--transition-fast);
}

.max-amount:hover {
  color: #0a4a8a;
}

.swap-input-container {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.swap-asset-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.swap-asset-selector:hover {
  background: var(--gray-100);
}

.swap-asset-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
}

.swap-asset-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swap-asset-symbol {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.swap-asset-name {
  font-size: 13px;
  color: var(--gray-600);
}

.swap-amount-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
}

.swap-amount-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
  outline: none;
}

.swap-amount-input::placeholder {
  color: var(--gray-400);
}

.swap-usd-value {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.swap-amount-display {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-400);
  text-align: right;
}

.swap-arrow-btn-landing {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  transition: all var(--transition-fast);
}

.swap-arrow-btn-landing:hover {
  background: var(--gray-800);
}

.btn-swap-landing {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-swap-landing:hover {
  background: var(--secondary-blue);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-swap-landing:active {
  transform: translateY(0);
}

/* Asset Allocation Section */
.asset-allocation-section {
  background: var(--white);
  border-radius: 12px;
  padding: 0px;
  box-shadow: var(--shadow-md);
  margin-bottom: 38px;
}

.section-title-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 24px 0 0 24px;
}

.section-title-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.asset-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
}

.asset-allocation-table-container {
  overflow-x: auto;
}

.asset-allocation-table {
  width: 100%;
  border-collapse: collapse;
}

.asset-allocation-table thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-400);
  border-top: 1px solid var(--gray-400);
}

.asset-allocation-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.asset-allocation-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}

.asset-allocation-table tbody tr:hover {
  background: var(--gray-50);
}

.asset-table-row {
  transition: background-color 0.2s ease;
}

.asset-table-row:hover {
  background-color: var(--gray-50) !important;
}

.asset-table-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-table-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.asset-name-amount-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-table-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}

.asset-table-amount-mobile {
  display: none; /* Hidden on desktop */
  font-size: 14px;
  color: var(--gray-600);
  /* font-family: 'Courier New', monospace; */
  line-height: 1.4;
}

.price-table-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-value-table {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.price-trend-icon {
  font-size: 14px;
  font-weight: 700;
}

.allocation-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.allocation-percentage {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.allocation-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.allocation-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.amount-cell {
  font-size: 15px;
  /* font-family: 'Courier New', monospace; */
  color: var(--gray-700);
}

.value-cell {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

/* Latest Operations Section */
.latest-operations-section {
  background: var(--white);
  border-radius: 12px;
  padding: 0px;
  box-shadow: var(--shadow-md);
}

.latest-operations-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 24px 0 0 24px;
  margin-bottom: 24px;
}

.operations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.operations-date-group {
  margin-bottom: 24px;
}

.operations-date-group:last-child {
  margin-bottom: 0;
}

.operations-date-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-400);
  border-top: 1px solid var(--gray-400);
  padding: 12px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.operation-date-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 4px;
  width: fit-content;
}

.operation-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px;
  font-size: 15px;
}

.operation-item:hover {
  background: var(--gray-50);
}

.operation-icon-container {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.operation-icon {
  width: 20px;
  height: 20px;
}

.operation-icon-container.received {
  background: var(--success);
}

.operation-icon-container.sent {
  background: var(--gray-500);
}

.operation-icon.received {
  color: var(--white);
}

.operation-icon.sent {
  color: var(--white);
}

.operation-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operation-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.operation-asset {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.operation-asset-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.operation-asset-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

/* Removed operation-address - no longer used */

.operation-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.operation-crypto-amount {
  font-size: 15px;
  font-weight: 600;
  /* font-family: 'Courier New', monospace; */
}

.operation-crypto-amount.positive {
  color: var(--success);
}

.operation-crypto-amount.negative {
  color: var(--gray-700);
}

.operation-usd-value {
  font-size: 14px;
  font-weight: 500;
}

.operation-usd-value.positive {
  color: var(--success);
}

.operation-usd-value.negative {
  color: var(--gray-600);
}

.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-600);
  font-size: 15px;
}

/* Chart Tooltip */
.chart-tooltip {
  position: fixed;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: none;
  pointer-events: none;
  min-width: 200px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tooltip-row:last-child {
  margin-bottom: 0;
}

.tooltip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.tooltip-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: right;
}

/* Asset Selector Modal */
.asset-selector-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  z-index: 10000;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asset-selector-modal-overlay.show {
  opacity: 1;
}

.asset-selector-modal {
  background: var(--white);
  border-radius: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  width: 90%;
  max-width: 480px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-selector-modal-overlay.show .asset-selector-modal {
  transform: translateX(0);
}

.asset-selector-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.asset-selector-modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.asset-selector-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border-radius: 8px;
}

.asset-selector-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.asset-selector-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.asset-search-container {
  position: relative;
  margin-bottom: 20px;
}

.asset-search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  font-size: 15px;
  transition: all var(--transition-fast);
  background: var(--white);
}

.asset-search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(239, 146, 39, 0.1);
}

/* Loading Spinner */
.asset-selector-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
}

.asset-selector-loading p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.asset-list-wrapper {
  width: 100%;
}

.asset-list-container {
  overflow-y: auto;
}

.asset-selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.asset-selector-item:hover {
  background: var(--gray-50);
}

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

.asset-selector-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.asset-selector-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-selector-item-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.asset-selector-item-details span {
  font-size: 14px;
  color: var(--gray-600);
}

.asset-selector-item-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.asset-balance-usd {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.asset-balance-crypto {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.crypto-asset-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition:
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  border: 2px solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.crypto-asset-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
  background: var(--white);
}

.crypto-asset-card .asset-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crypto-asset-card .asset-icon .crypto-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  display: block;
}

/* Fallback for logo loading */
.crypto-asset-card .asset-icon .crypto-logo[src=""],
.crypto-asset-card .asset-icon .crypto-logo:not([src]) {
  display: none;
}

.crypto-asset-card .asset-info {
  flex: 1;
  min-width: 0;
}

.crypto-asset-card .asset-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.crypto-asset-card .asset-info .asset-symbol {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.crypto-asset-card .asset-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px;
  text-align: right;
}

.crypto-asset-card .asset-price .price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.crypto-asset-card .asset-price .price-change {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.crypto-asset-card .asset-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 150px;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid var(--gray-200);
}

.crypto-asset-card .asset-balance .balance-label {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 4px 0;
}

.crypto-asset-card .asset-balance .balance-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

/* Individual Crypto Asset Wallet View */
.crypto-asset-wallet {
  padding: 0;
  display: none !important; /* Hidden by default */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.crypto-asset-wallet[style*="block"] {
  display: block !important;
}

@media (max-width: 480px) {
  /* Ensure crypto asset wallet is hidden by default on mobile */
  .crypto-asset-wallet {
    display: none !important;
  }

  /* Only show when explicitly set to block */
  .crypto-asset-wallet[style*="block"] {
    display: flex !important;
  }
}

.wallet-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.wallet-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.wallet-nav-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: color var(--transition-fast);
  user-select: none;
}

.wallet-nav-label:hover {
  color: var(--gray-900);
  text-decoration: underline;
}

.wallet-asset-dropdown {
  position: relative;
}

.wallet-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wallet-dropdown-trigger:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.wallet-dropdown-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-dropdown-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.wallet-dropdown-symbol {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.wallet-dropdown-chevron {
  width: 16px;
  height: 16px;
  color: var(--gray-600);
  transition: transform var(--transition-fast);
}

.wallet-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 320px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.wallet-dropdown-list {
  max-height: 400px;
  overflow-y: auto;
}

.wallet-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--gray-100);
}

.wallet-dropdown-item:last-child {
  border-bottom: none;
}

.wallet-dropdown-item:hover {
  background: var(--gray-50);
}

.wallet-dropdown-item.selected {
  background: var(--gray-100);
}

.wallet-dropdown-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-dropdown-item-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.wallet-dropdown-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wallet-dropdown-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
}

.wallet-dropdown-item-symbol {
  font-size: 12px;
  color: var(--gray-600);
}

.wallet-dropdown-check {
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.asset-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asset-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asset-name-full {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.asset-symbol-bold {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.asset-icon-large {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.asset-header-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.asset-symbol-large {
  font-size: 16px;
  color: var(--gray-600);
  margin: 4px 0 0 0;
}

/* Asset Wallet Action Buttons */
.asset-wallet-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.asset-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d97706 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 120px;
  justify-content: center;
}

.asset-action-btn:hover {
  opacity: 0.8;
  box-shadow: 0 4px 12px rgba(239, 146, 39, 0.4);
}

.asset-action-btn svg {
  width: 20px;
  height: 20px;
}

body.dark-mode .asset-action-btn {
  color: white;
}

/* Asset Wallet Balance Display */
.asset-wallet-balance-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 24px;
}

.balance-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  color: var(--gray-600);
}

.balance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.balance-crypto {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
}

.balance-usd-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.balance-usd {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
}

.balance-price-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-600);
}

.balance-price-info svg {
  color: var(--gold-primary);
}

/* Asset Wallet Chart Container */
.asset-wallet-chart-container {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.asset-wallet-chart-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.asset-wallet-timeframe-filters {
  display: flex;
  gap: 8px;
}

.asset-wallet-timeframe-filters .timeframe-btn {
  padding: 8px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.asset-wallet-timeframe-filters .timeframe-btn:hover {
  background: var(--gray-200);
}

.asset-wallet-timeframe-filters .timeframe-btn.active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d97706 100%);
  color: var(--white);
  border-color: transparent;
}

#assetWalletChart {
  width: 100%;
  height: 300px;
}

/* Asset Wallet Transactions Section */
.asset-wallet-transactions-section {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.transactions-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 20px 0;
}

.asset-wallet-transactions-table {
  width: 100%;
}

/* Crypto Modals */
.crypto-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.crypto-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.crypto-modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.crypto-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.crypto-modal-close:hover {
  color: var(--gray-900);
}

.crypto-modal-body {
  padding: 24px;
}

/* Crypto Wallet Tabs */
.crypto-wallet-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
}

.crypto-wallet-tabs .tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.crypto-wallet-tabs .tab-btn:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.crypto-wallet-tabs .tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Crypto Price Card */
.crypto-price-card {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  color: var(--white);
}

.crypto-price-card .price-header {
  text-align: center;
}

.crypto-price-card .price-label {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 8px 0;
}

.crypto-price-card .price-value {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.crypto-price-card .price-update {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

/* Crypto Holdings Card */
.crypto-holdings-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.crypto-holdings-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 20px 0;
}

.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.holding-item {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
}

.holding-item .holding-label {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0 0 8px 0;
}

.holding-item .holding-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.holding-item .holding-percent {
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}

/* Crypto Action Cards (Buy/Sell) */
.crypto-action-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 0 auto;
}

.crypto-action-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 24px 0;
}

.crypto-action-card.buy-card h3 {
  color: var(--success);
}

.crypto-action-card.sell-card h3 {
  color: var(--danger);
}

.crypto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.crypto-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crypto-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.crypto-form input,
.crypto-form select {
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.crypto-form input:focus,
.crypto-form select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(239, 146, 39, 0.1);
}

.crypto-form .input-hint {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}

.crypto-form .balance-display {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  margin: 0;
}

/* Crypto Swap Card */
.crypto-swap-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.crypto-swap-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--info);
  margin: 0 0 24px 0;
}

.swap-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.swap-from,
.swap-to {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 8px;
}

.swap-from label,
.swap-to label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.asset-select {
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  background: var(--white);
  cursor: pointer;
}

.swap-balance {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
}

.swap-balance span {
  font-weight: 600;
  color: var(--gray-900);
}

.swap-arrow-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.swap-arrow-btn:hover {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: var(--white);
}

.swap-rate-info {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}

.swap-rate-info p {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
}

.swap-rate-info span {
  font-weight: 600;
  color: var(--gray-900);
}

/* Crypto Transactions Card */
.crypto-transactions-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.crypto-transactions-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 20px 0;
}

.status-badge.swap {
  background: rgba(33, 150, 243, 0.1);
  color: var(--info);
}

/* ========== CRYPTO WALLET RESPONSIVE DESIGN ========== */

/* Prevent horizontal overflow on all screen sizes */
#section-crypto-wallet {
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive styles for main grid */
@media (max-width: 1024px) {
  .crypto-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-chart-container {
    height: 180px;
  }

  #portfolioChart {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* Set content-wrapper background to white on mobile */
  #section-crypto-wallet .content-wrapper,
  .content-wrapper {
    background: var(--white);
  }

  /* Hide swap section on mobile */
  .swap-section-landing {
    display: none !important;
  }

  .crypto-main-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .portfolio-balance-section {
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px 16px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--white);
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .portfolio-balance-section .portfolio-header h2 {
    display: none; /* Hide title on mobile */
  }

  .portfolio-balance-section .portfolio-header {
    display: block;
    margin-bottom: 0;
    order: 3; /* Move timeframe filters after chart */
  }

  .portfolio-balance-section .portfolio-header .timeframe-filters {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0;
  }

  .portfolio-balance-section .portfolio-mobile-actions {
    order: 4; /* After timeframe filters */
  }

  .portfolio-balance-section .portfolio-balance-display {
    order: 1; /* Balance first */
    margin-bottom: 16px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-balance-section .portfolio-chart-container {
    order: 2; /* Chart second */
    width: 100%;
    max-width: 100%;
    height: 200px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 8px; /* Add padding to prevent cutoff */
    box-sizing: border-box;
    overflow: visible;
  }

  .balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .balance-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--danger); /* Red color for negative change */
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .change-icon {
    font-size: 14px;
    flex-shrink: 0;
  }

  .change-text {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #portfolioChart {
    width: 100% !important;
    max-width: 100%;
    height: 200px !important;
    box-sizing: border-box;
  }

  .portfolio-balance-section .timeframe-filters {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .portfolio-balance-section .timeframe-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--gold-primary);
    background: var(--gold-primary);
    border-radius: 8px;
    color: var(--white);
    min-width: 0;
    max-width: 100%;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portfolio-balance-section .timeframe-btn.active {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-300);
    font-weight: 600;
  }

  /* Mobile Action Buttons */
  .portfolio-mobile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    padding: 0;
    box-sizing: border-box;
    order: 4; /* After timeframe filters */
  }

  .portfolio-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    background: var(--white);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
  }

  body.dark-mode .portfolio-action-btn svg path {
    fill: white;
  }

  body.dark-mode .action-btn-text,
  body.dark-mode .portfolio-action-btn {
    color: white;
    background: var(--gold-primary);
  }

  .portfolio-action-btn:hover {
    background: var(--gray-50);
    border-color: var(--gold-secondary);
  }

  .portfolio-action-btn:active {
    background: var(--gray-100);
    transform: scale(0.98);
  }

  .portfolio-action-btn .action-btn-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
    flex-shrink: 0;
  }

  .portfolio-action-btn .action-btn-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    text-align: center;
    line-height: 1.2;
  }
}

.crypto-wallet-landing,
.crypto-asset-wallet {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .crypto-asset-card {
    padding: 16px;
    gap: 16px;
  }

  .crypto-asset-card .asset-price {
    min-width: 100px;
  }

  .crypto-asset-card .asset-balance {
    min-width: 120px;
  }

  .holdings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .crypto-action-card,
  .crypto-swap-card {
    max-width: 100%;
  }
}

/* Mobile and small tablets (768px) */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  #section-crypto-wallet {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .crypto-wallet-landing {
    padding: 0 16px;
  }

  .crypto-asset-wallet {
    padding: 0 16px;
  }

  /* Asset List - Stack vertically */
  .crypto-assets-list {
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
  }

  .crypto-asset-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .crypto-asset-card:hover {
    transform: none; /* Disable hover transform on mobile */
  }

  .crypto-asset-card .asset-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .crypto-asset-card .asset-icon .crypto-logo {
    width: 100%;
    height: 100%;
  }

  .crypto-asset-card .asset-info {
    width: 100%;
  }

  .crypto-asset-card .asset-info h3 {
    font-size: 16px;
  }

  .crypto-asset-card .asset-info .asset-symbol {
    font-size: 13px;
  }

  .crypto-asset-card .asset-price {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    min-width: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    padding-left: 0;
  }

  .crypto-asset-card .asset-price .price-value {
    font-size: 16px;
  }

  .crypto-asset-card .asset-price .price-change {
    font-size: 12px;
  }

  .crypto-asset-card .asset-balance {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    min-width: auto;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 8px;
  }

  .crypto-asset-card .asset-balance .balance-label {
    font-size: 12px;
  }

  .crypto-asset-card .asset-balance .balance-value {
    font-size: 15px;
  }

  /* Asset Allocation Table */
  .asset-allocation-section {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
    overflow-x: auto;
  }

  .asset-allocation-section .section-title-header {
    margin-bottom: 16px;
  }

  .asset-allocation-section .section-title-header h2,
  .latest-operations-section h2 {
    font-size: 20px;
    font-weight: 600;
  }

  .asset-allocation-table {
    width: 100%;
    min-width: auto;
    font-size: 13px;
  }

  /* Hide Price column header and cells on mobile */
  .asset-allocation-table thead th:nth-child(2),
  .asset-allocation-table tbody td:nth-child(2) {
    display: none;
  }

  /* Hide Allocation column header and cells on mobile */
  .asset-allocation-table thead th:nth-child(3),
  .asset-allocation-table tbody td.allocation-column {
    display: none;
  }

  /* Hide Amount column header and cells on mobile (amount shown under asset name) */
  .asset-allocation-table thead th:nth-child(4),
  .asset-allocation-table tbody td.amount-column {
    display: none;
  }

  .asset-allocation-table th,
  .asset-allocation-table td {
    padding: 12px 8px;
  }

  .asset-allocation-table th:first-child,
  .asset-allocation-table td:first-child {
    padding-left: 12px;
  }

  .asset-allocation-table th:last-child,
  .asset-allocation-table td:last-child {
    padding-right: 12px;
    text-align: right;
  }

  .asset-table-cell {
    gap: 10px;
  }

  .asset-table-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .asset-name-amount-wrapper {
    flex: 1;
    min-width: 0;
  }

  .asset-table-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
  }

  /* Show amount under asset name on mobile */
  .asset-table-amount-mobile {
    display: block;
    font-size: 14px;
    color: #6b7280;
    /* font-family: 'Courier New', monospace; */
    margin-top: 2px;
  }

  .price-table-cell {
    align-items: flex-start;
    gap: 4px;
  }

  .price-value-table {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
  }

  .price-trend-icon {
    font-size: 12px;
  }

  .value-cell {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    text-align: right;
  }

  /* Latest Operations */
  .latest-operations-section {
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
  }

  .latest-operations-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .operation-item {
    padding: 12px;
    gap: 12px;
  }

  .operation-icon-container {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .operation-asset-icon {
    width: 18px;
    height: 18px;
  }

  /* Removed operation-address - no longer used */

  /* Wallet Header */
  .wallet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .btn-back {
    padding: 10px 14px;
    font-size: 13px;
    width: auto;
  }

  .asset-header-info {
    width: 100%;
    gap: 12px;
  }

  .asset-icon-large {
    width: 48px;
    height: 48px;
  }

  .asset-header-info h2 {
    font-size: 22px;
  }

  .asset-symbol-large {
    font-size: 14px;
  }

  /* Tabs - Horizontal scroll */
  .crypto-wallet-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 20px;
    padding-bottom: 0;
    gap: 4px;
  }

  .crypto-wallet-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .crypto-wallet-tabs::-webkit-scrollbar-track {
    background: var(--gray-100);
  }

  .crypto-wallet-tabs::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
  }

  .crypto-wallet-tabs .tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Price Card */
  .crypto-price-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .crypto-price-card .price-value {
    font-size: 28px;
  }

  .crypto-price-card .price-label {
    font-size: 13px;
  }

  .crypto-price-card .price-update {
    font-size: 11px;
  }

  /* Holdings Card */
  .crypto-holdings-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .crypto-holdings-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .holdings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .holding-item {
    padding: 14px;
  }

  .holding-item .holding-label {
    font-size: 11px;
  }

  .holding-item .holding-value {
    font-size: 18px;
  }

  .holding-item .holding-percent {
    font-size: 13px;
  }

  /* Action Cards (Buy/Sell) */
  .crypto-action-card {
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
  }

  .crypto-action-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .crypto-form {
    gap: 16px;
  }

  .crypto-form label {
    font-size: 13px;
  }

  .crypto-form input,
  .crypto-form select {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 8px;
  }

  .crypto-form .input-hint {
    font-size: 11px;
  }

  .crypto-form .balance-display {
    font-size: 16px;
    padding: 14px;
  }

  /* Buttons - Touch friendly */
  .btn-primary {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px; /* Touch target size */
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
  }

  .btn-buy,
  .btn-sell,
  .btn-swap {
    width: 100%;
    min-height: 48px;
  }

  /* Swap Card */
  .crypto-swap-card {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }

  .crypto-swap-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .swap-container {
    gap: 16px;
    position: relative;
  }

  .swap-from,
  .swap-to {
    padding: 16px;
    gap: 12px;
  }

  .swap-from label,
  .swap-to label {
    font-size: 13px;
  }

  .asset-select {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .swap-balance {
    font-size: 11px;
  }

  .swap-arrow-btn {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 8px auto;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .swap-rate-info {
    padding: 14px;
    margin-top: 16px;
  }

  .swap-rate-info p {
    font-size: 13px;
  }

  /* Transactions Card */
  .crypto-transactions-card {
    padding: 20px;
    width: 100%;
    overflow-x: auto;
  }

  .crypto-transactions-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .data-table {
    min-width: 600px; /* Ensure table doesn't compress too much */
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .data-table th {
    font-size: 12px;
    white-space: nowrap;
  }

  .status-badge {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
  .crypto-wallet-landing,
  .crypto-asset-wallet {
    padding: 0;
  }

  .portfolio-balance-section {
    padding: 16px 12px 12px 12px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--white);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .portfolio-balance-section .portfolio-header h2 {
    display: none; /* Hide title on mobile */
  }

  .portfolio-balance-section .portfolio-header {
    display: block;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-balance-section .portfolio-header .timeframe-filters {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    order: 3; /* Move after chart */
    box-sizing: border-box;
  }

  .portfolio-balance-section .portfolio-balance-display {
    order: 1; /* Balance first */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-balance-section .portfolio-chart-container {
    order: 2; /* Chart second */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Allow labels to be visible */
    padding: 0 6px; /* Smaller padding on very small screens */
  }

  .balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .balance-change {
    font-size: 13px;
    color: #f44336;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .portfolio-chart-container {
    height: 180px;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
  }

  #portfolioChart {
    height: 180px !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-balance-section .timeframe-btn {
    padding: 8px 4px;
    font-size: 12px;
    border: 1px solid var(--gold-primary);
    background: var(--gold-primary);
    border-radius: 8px;
    color: var(--white);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portfolio-balance-section .timeframe-btn.active {
    background: #f3f4f6;
    color: #000000;
    border-color: #d1d5db;
    font-weight: 600;
  }

  .asset-allocation-section,
  .latest-operations-section {
    padding: 12px;
  }

  .asset-allocation-section .section-title-header h2,
  .latest-operations-section h2 {
    font-size: 18px;
  }

  .latest-operations-section h2 {
    padding: 12px 12px 12px 0;
  }

  /* Asset Wallet Mobile Styles */
  /* Only show asset wallet when explicitly set to display block */
  .crypto-asset-wallet[style*="block"] {
    display: flex !important;
    flex-direction: column;
  }

  /* Ensure it's hidden by default on mobile */
  .crypto-asset-wallet:not([style*="block"]) {
    display: none !important;
  }

  .wallet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    order: 1;
    padding: 0 16px 0 16px;
  }

  .asset-wallet-action-buttons {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    padding: 0 16px 0 16px;
    order: 3;
  }

  .asset-wallet-chart-container {
    order: 2;
  }

  .asset-wallet-transactions-section {
    order: 4;
  }

  .asset-action-btn {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .asset-wallet-balance-display {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 20px;
  }

  .balance-crypto {
    font-size: 24px;
  }

  .balance-usd-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .asset-wallet-chart-container {
    padding: 16px;
    margin-bottom: 20px;
  }

  .asset-wallet-timeframe-filters {
    flex-wrap: wrap;
    gap: 6px;
  }

  .asset-wallet-timeframe-filters .timeframe-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  #assetWalletChart {
    height: 200px;
  }

  .asset-wallet-transactions-section {
    padding: 16px;
  }

  .transactions-section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .crypto-modal {
    max-width: 95%;
    margin: 20px;
  }

  .crypto-modal-header {
    padding: 16px 20px;
  }

  .crypto-modal-body {
    padding: 20px;
  }

  /* Hide Price column header and cells on mobile */
  .asset-allocation-table thead th:nth-child(2),
  .asset-allocation-table tbody td:nth-child(2) {
    display: none;
  }

  .asset-allocation-table th,
  .asset-allocation-table td {
    padding: 12px 10px;
  }

  .asset-allocation-table th:first-child,
  .asset-allocation-table td:first-child {
    padding-left: 12px;
    flex: 1;
  }

  .asset-allocation-table th:last-child,
  .asset-allocation-table td:last-child {
    padding-right: 12px;
    text-align: right;
    min-width: 100px;
  }

  .asset-table-icon {
    width: 28px;
    height: 28px;
  }

  .asset-table-name {
    font-size: 16px;
  }

  .asset-table-amount-mobile {
    font-size: 14px;
  }

  .price-value-table {
    font-size: 15px;
  }

  .value-cell {
    font-size: 15px;
  }

  .crypto-assets-list {
    gap: 10px;
    margin-top: 16px;
  }

  .crypto-asset-card {
    padding: 14px;
    gap: 10px;
  }

  .crypto-asset-card .asset-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .crypto-asset-card .asset-icon .crypto-logo {
    width: 100%;
    height: 100%;
  }

  .asset-icon-large {
    width: 44px;
    height: 44px;
  }

  .asset-icon-large img {
    width: 100%;
    height: 100%;
  }

  .crypto-asset-card .asset-info h3 {
    font-size: 15px;
  }

  .crypto-asset-card .asset-price .price-value {
    font-size: 15px;
  }

  .crypto-asset-card .asset-balance .balance-value {
    font-size: 14px;
  }

  .wallet-header {
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 16px 0 16px;
  }

  .btn-back {
    padding: 8px 12px;
    font-size: 12px;
  }

  .asset-header-info h2 {
    font-size: 20px;
  }

  .crypto-wallet-tabs {
    margin-bottom: 16px;
  }

  .crypto-wallet-tabs .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .crypto-price-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .crypto-price-card .price-value {
    font-size: 24px;
  }

  .crypto-holdings-card,
  .crypto-action-card,
  .crypto-swap-card,
  .crypto-transactions-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .crypto-action-card h3,
  .crypto-swap-card h3,
  .crypto-transactions-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .holdings-grid {
    gap: 10px;
  }

  .holding-item {
    padding: 12px;
  }

  .holding-item .holding-value {
    font-size: 16px;
  }

  .crypto-form {
    gap: 14px;
  }

  .crypto-form input,
  .crypto-form select {
    padding: 12px 14px;
  }

  .btn-primary {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 44px;
  }

  .swap-from,
  .swap-to {
    padding: 14px;
  }

  .swap-arrow-btn {
    width: 40px;
    height: 40px;
    margin: 6px auto;
  }

  .data-table {
    min-width: 500px;
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 6px;
    font-size: 12px;
  }

  .data-table th {
    font-size: 11px;
  }

  .section-title-header {
    padding: 12px 12px 12px 0px;
  }

  .date-filter {
    display: flex;
    gap: 10px;
    flex-direction: row;
  }

  .address-input-group {
    flex-direction: column;
  }

  #copyAddressBtn {
    width: 100px;
  }
}

/* Extra small devices (360px) */
@media (max-width: 360px) {
  .crypto-wallet-landing,
  .crypto-asset-wallet {
    padding: 0 10px;
  }

  .crypto-asset-card {
    padding: 12px;
  }

  .crypto-price-card .price-value {
    font-size: 22px;
  }

  .crypto-wallet-tabs .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .data-table {
    min-width: 450px;
  }
}

/* =================================================================
   SUPPORT TICKETS STYLES
   ================================================================= */

#section-support,
#section-help {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.support-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.create-ticket-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.create-ticket-card h3 {
  color: var(--primary-blue);
  margin-bottom: 24px;
  font-size: 24px;
}

/* Ticket form primary button - professional styling, compact width */
.create-ticket-card .btn-primary,
.ticket-form button[type="submit"],
#section-support .ticket-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--primary-blue) 100%
  );
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}

.create-ticket-card .btn-primary:hover,
.ticket-form button[type="submit"]:hover,
#section-support .ticket-form .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #032244 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.create-ticket-card .btn-primary:disabled,
.ticket-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ticket-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
}

.ticket-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.tickets-list-section {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tickets-header h3 {
  color: var(--primary-blue);
  font-size: 20px;
}

.ticket-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-filters .filter-btn {
  padding: 10px 18px;
  border: 2px solid var(--gray-300);
  background: var(--gray-100);
  color: var(--gray-800);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.ticket-filters .filter-btn:hover {
  background: var(--gray-200);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.ticket-filters .filter-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ticket-item:hover {
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

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

.ticket-subject {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-subject h4 {
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.unread-badge {
  background: var(--danger);
  color: var(--white);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.ticket-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-status,
.ticket-priority {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-status.status-open {
  background: #e3f2fd;
  color: #1976d2;
}

.ticket-status.status-in-progress {
  background: #fff3e0;
  color: #f57c00;
}

.ticket-status.status-resolved {
  background: #e8f5e9;
  color: #388e3c;
}

.ticket-status.status-closed {
  background: var(--gray-200);
  color: var(--gray-700);
}

.ticket-priority.priority-low {
  background: var(--gray-100);
  color: var(--gray-600);
}

.ticket-priority.priority-normal {
  background: #e3f2fd;
  color: #1976d2;
}

.ticket-priority.priority-high {
  background: #fff3e0;
  color: #f57c00;
}

.ticket-priority.priority-urgent {
  background: #ffebee;
  color: var(--danger);
}

.ticket-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gray-600);
}

.ticket-category {
  font-weight: 500;
}

.ticket-date {
  color: var(--gray-500);
}

/* Ticket Modal */
.ticket-modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.ticket-detail-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.ticket-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ticket-detail-date {
  color: var(--gray-600);
  font-size: 14px;
}

.ticket-messages-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.ticket-message {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.ticket-message.user-message {
  background: var(--gray-50);
  margin-left: 0;
}

.ticket-message.admin-message {
  background: #e3f2fd;
  margin-left: 40px;
}

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

.message-sender {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 14px;
}

.message-date {
  color: var(--gray-500);
  font-size: 12px;
}

.message-content {
  color: var(--gray-800);
  line-height: 1.6;
  white-space: pre-wrap;
}

.ticket-reply-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}

.ticket-reply-section h4 {
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.ticket-reply-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 16px;
}

.ticket-reply-section textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.ticket-reply-actions {
  display: flex;
  gap: 12px;
}

.ticket-reply-section .btn-primary,
#section-support .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--primary-blue) 100%
  );
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.ticket-reply-section .btn-primary:hover,
#section-support .btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--gray-200);
  color: var(--gray-700);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

/* =================================================================
   HELP CENTER / FAQ STYLES
   ================================================================= */

.help-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.faq-search-section {
  margin-bottom: 32px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gray-500);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(5, 48, 92, 0.1);
}

/* Help Center: categories nav (sticky buttons) */
#section-help .faq-categories-nav {
  padding: 24px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

#section-help .categories-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.faq-categories {
  margin-bottom: 32px;
}

.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

#section-help .category-btn {
  border-radius: 25px;
  font-size: 14px;
  white-space: nowrap;
}

.category-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

#section-help .category-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.category-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.faq-section {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

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

/* Support section FAQ (dynamic list with h4 + number icon) */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: var(--white);
}

.faq-question h4 {
  flex: 1;
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer.open {
  max-height: 1000px;
}

.faq-answer-content {
  /* Align with question text: 20px (item padding) + 32px (icon) + 16px (gap) = 68px */
  padding: 0 20px 20px 68px;
  color: var(--gray-700);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ========== Help Center (#section-help): accordion FAQ (same as faq.html) ========== */
#section-help .faq-content-section,
#section-help .faq-section {
  background: var(--white);
  padding: 20px;
}

#section-help .faq-content-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#section-help .faq-category {
  margin-bottom: 0;
}

#section-help .faq-category.hidden {
  display: none;
}

#section-help .category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary-blue);
  display: flex;
  align-items: center;
  gap: 12px;
}

#section-help .category-title svg {
  width: 28px;
  height: 28px;
  fill: var(--secondary-blue);
}

#section-help .faq-item {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

#section-help .faq-item:hover {
  border-color: var(--secondary-blue);
  box-shadow: 0 4px 15px rgba(10, 74, 138, 0.1);
}

#section-help .faq-item.active {
  border-color: var(--secondary-blue);
  box-shadow: 0 6px 20px rgba(10, 74, 138, 0.15);
}

#section-help .faq-question {
  width: 100%;
  padding: 18px 56px 18px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all var(--transition-fast);
  font-family: inherit;
}

#section-help .faq-question:hover {
  color: var(--secondary-blue);
  background: var(--gray-50);
}

#section-help .faq-item.active .faq-question {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
}

#section-help .faq-question span {
  flex: 1;
  padding-right: 16px;
}

/* FAQ icon: down arrow at the end (right) - indicates expandable */
#section-help .faq-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* .faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
} */

#section-help .faq-item.active .faq-icon {
  transform: translateY(-50%) rotate(180deg);
}

#section-help .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  background: var(--gray-50);
}

#section-help .faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 20px 24px;
  border-top: 2px solid rgba(10, 74, 138, 0.1);
}

#section-help .faq-answer p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

#section-help .faq-answer p:last-child {
  margin-bottom: 0;
}

#section-help .faq-answer ul,
#section-help .faq-answer ol {
  margin: 12px 0;
  padding-left: 24px;
}

#section-help .faq-answer li {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

#section-help .faq-answer strong {
  color: var(--secondary-blue);
  font-weight: 600;
}

#section-help .no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-600);
  display: none;
}

#section-help .no-results.show {
  display: block;
}

#section-help .no-results h3 {
  font-size: 20px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

#section-help .no-results p {
  font-size: 15px;
  color: var(--gray-600);
}

#section-help .highlight {
  background: #fef3c7;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.still-need-help {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.still-need-help h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 24px;
}

.still-need-help p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: 16px;
}

.still-need-help .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.still-need-help .btn-primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Loading and Empty States */
.loading-state,
.error-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.loading-state {
  color: var(--gray-500);
}

.error-state {
  color: var(--danger);
}

.empty-state svg {
  margin-bottom: 16px;
}

.empty-state p {
  margin: 8px 0;
  font-size: 16px;
}

/* Modal Styles */
/* .modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  color: var(--primary-blue);
  margin: 0;
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
} */

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .tickets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-message.admin-message {
    margin-left: 0;
  }

  .ticket-reply-actions {
    flex-direction: column;
  }

  .category-filters {
    justify-content: flex-start;
  }

  .faq-answer-content {
    padding-left: 20px;
  }

  .still-need-help {
    padding: 24px;
  }
}

/* ========== WITHDRAW CASH (BANK WIRE) ========== */
#section-withdraw-cash .withdraw-cash-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar — override shared .withdraw-info-card horizontal row layout */
#section-withdraw-cash .withdraw-cash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-balance-card.withdraw-info-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#section-withdraw-cash .withdraw-cash-balance-card .info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin: 0;
  border-bottom: 1px solid var(--gray-200);
}

#section-withdraw-cash .withdraw-cash-balance-card .info-item:last-child {
  border-bottom: none;
}

#section-withdraw-cash .withdraw-cash-balance-card .info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  flex-shrink: 0;
}

#section-withdraw-cash .withdraw-cash-balance-card .info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: right;
}

#section-withdraw-cash .withdraw-cash-balance-card .info-value.highlight {
  color: var(--gold-primary);
  font-size: 1.25rem;
}

#section-withdraw-cash .withdraw-cash-security-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: rgba(10, 74, 138, 0.06);
  border: 1px solid rgba(10, 74, 138, 0.12);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-700);
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-security-note p {
  margin: 0;
}

#section-withdraw-cash .withdraw-cash-security-note svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: var(--primary-blue);
  margin-top: 2px;
}

/* Main wizard panel */
#section-withdraw-cash .withdraw-cash-main {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  overflow: hidden;
}

#section-withdraw-cash .withdraw-cash-form {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-form .form-group {
  margin-bottom: 22px;
}

#section-withdraw-cash .withdraw-cash-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

#section-withdraw-cash .withdraw-cash-form .form-row .form-group {
  margin-bottom: 22px;
}

/* Step indicator — grid prevents flex overlap with sidebar */
#section-withdraw-cash .withdraw-cash-stepper {
  display: grid;
  grid-template-columns:
    auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto minmax(16px, 1fr)
    auto minmax(16px, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

#section-withdraw-cash .withdraw-cash-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

#section-withdraw-cash .withdraw-cash-step .step-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  max-width: 72px;
}

#section-withdraw-cash .withdraw-cash-step.active .step-num {
  background: var(--gold-primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(239, 146, 39, 0.35);
}

#section-withdraw-cash .withdraw-cash-step.active .step-label {
  color: var(--gray-900);
}

#section-withdraw-cash .withdraw-cash-step.completed .step-num {
  background: var(--success);
  color: var(--white);
}

#section-withdraw-cash .withdraw-cash-step-line {
  height: 2px;
  background: var(--gray-300);
  border-radius: 1px;
  align-self: center;
  margin-bottom: 22px;
  min-width: 16px;
}

#section-withdraw-cash .withdraw-cash-panel {
  display: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#section-withdraw-cash .withdraw-cash-panel.active {
  display: block;
  animation: wcFadeIn 0.25s ease;
}

@keyframes wcFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#section-withdraw-cash .withdraw-cash-panel h3 {
  font-size: 1.35rem;
  color: var(--primary-blue);
  margin: 0 0 8px;
}

#section-withdraw-cash .withdraw-cash-panel .panel-subtitle {
  color: var(--gray-600);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
}

#section-withdraw-cash .routing-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

#section-withdraw-cash .routing-input-row input {
  flex: 1;
  min-width: 0;
}

#section-withdraw-cash .wc-lookup-btn {
  white-space: nowrap;
  min-width: 108px;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#section-withdraw-cash .wc-routing-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

#section-withdraw-cash .wc-routing-status.loading {
  background: rgba(10, 74, 138, 0.08);
  color: var(--primary-blue);
}

#section-withdraw-cash .wc-routing-status.success {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

#section-withdraw-cash .wc-routing-status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

#section-withdraw-cash .wc-bank-preview {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid var(--success);
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.06);
  box-sizing: border-box;
}

#section-withdraw-cash .wc-bank-preview-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

#section-withdraw-cash .wc-bank-preview-header svg {
  width: 36px;
  height: 36px;
  fill: var(--primary-blue);
  flex-shrink: 0;
}

#section-withdraw-cash .wc-bank-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}

#section-withdraw-cash .wc-bank-meta {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.45;
}

#section-withdraw-cash .wc-bank-source {
  font-size: 12px;
  color: var(--gray-500);
  margin: 12px 0 0;
}

#section-withdraw-cash .withdraw-cash-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

#section-withdraw-cash .wc-quick-amt {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#section-withdraw-cash .wc-quick-amt:hover {
  border-color: var(--gold-primary);
  background: rgba(239, 146, 39, 0.1);
}

#section-withdraw-cash .wc-review-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px 22px;
  margin-bottom: 22px;
}

#section-withdraw-cash .wc-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

#section-withdraw-cash .wc-review-row:last-child {
  border-bottom: none;
}

#section-withdraw-cash .wc-review-row span {
  color: var(--gray-600);
  flex-shrink: 0;
}

#section-withdraw-cash .wc-review-row strong {
  text-align: right;
  word-break: break-word;
}

#section-withdraw-cash .wc-review-account-num {
  letter-spacing: 0.02em;
  word-break: break-all;
}

#section-withdraw-cash .wc-account-number-input {
  letter-spacing: 0.04em;
}

#section-withdraw-cash .wc-confirm-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  padding: 4px 0;
}

#section-withdraw-cash .wc-confirm-checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

#section-withdraw-cash .withdraw-cash-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

#section-withdraw-cash .withdraw-cash-actions .submit-btn,
#section-withdraw-cash .withdraw-cash-actions .btn-secondary {
  min-width: 140px;
}

#section-withdraw-cash .withdraw-cash-final-note {
  margin-top: 0;
}

#section-withdraw-cash .withdraw-cash-history {
  margin-top: 0;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
  width: 100%;
  clear: both;
}

#section-withdraw-cash .withdraw-cash-history h3 {
  margin-bottom: 18px;
}

#section-withdraw-cash .withdrawal-restriction-notice {
  margin-bottom: 24px;
  border-radius: 12px;
}

/* Dark mode */
body.dark-mode #section-withdraw-cash .withdraw-cash-main,
body.dark-mode
  #section-withdraw-cash
  .withdraw-cash-balance-card.withdraw-info-card {
  background: var(--dm-card-bg, #1e2a3a);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #section-withdraw-cash .withdraw-cash-balance-card .info-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #section-withdraw-cash .withdraw-cash-balance-card .info-label {
  color: var(--dm-text-secondary, #b0bec5);
}

body.dark-mode #section-withdraw-cash .withdraw-cash-balance-card .info-value {
  color: var(--dm-text-primary, #eceff1);
}

body.dark-mode #section-withdraw-cash .withdraw-cash-security-note {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--dm-text-secondary, #b0bec5);
}

body.dark-mode #section-withdraw-cash .wc-review-card {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #section-withdraw-cash .wc-bank-preview {
  background: rgba(76, 175, 80, 0.08);
}

body.dark-mode #section-withdraw-cash .withdraw-cash-history {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Tablet: stack sidebar above main */
@media (max-width: 1100px) {
  #section-withdraw-cash .withdraw-cash-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #section-withdraw-cash .withdraw-cash-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  #section-withdraw-cash .withdraw-cash-security-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #section-withdraw-cash .withdraw-cash-main {
    padding: 24px 20px;
  }

  #section-withdraw-cash .withdraw-cash-sidebar {
    grid-template-columns: 1fr;
  }

  #section-withdraw-cash .withdraw-cash-stepper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    padding-bottom: 20px;
  }

  #section-withdraw-cash .withdraw-cash-step-line {
    display: none;
  }

  #section-withdraw-cash .withdraw-cash-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  #section-withdraw-cash .withdraw-cash-main {
    padding: 20px 16px;
  }

  #section-withdraw-cash .withdraw-cash-balance-card .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
  }

  #section-withdraw-cash .withdraw-cash-balance-card .info-value {
    text-align: left;
  }

  #section-withdraw-cash .routing-input-row {
    flex-direction: column;
  }

  #section-withdraw-cash .wc-lookup-btn {
    width: 100%;
    min-height: 44px;
  }

  #section-withdraw-cash .withdraw-cash-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #section-withdraw-cash .withdraw-cash-actions .submit-btn,
  #section-withdraw-cash .withdraw-cash-actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }
}
