/* PayBuddies Modern UI - Apple-inspired Dark Mode */
/* Cleaned version - no duplicates */

:root {
  --primary: #0071e3;
  --primary-dark: #0077ed;
  --accent: #0071e3;
  --accent-bright: #0a84ff;
  --gradient: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
  --background: #ffffff;
  --background-light: #f5f5f7;
  --background-dark: #000000;
  --surface: #ffffff;
  --surface-dark: #1c1c1e;
  --surface-elevated: #ffffff;
  --surface-elevated-dark: #2c2c2e;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --text-dark: #f5f5f7;
  --text-secondary-dark: #86868b;
  --border: #d2d2d7;
  --border-dark: #38383a;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  transition: var(--transition);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

body.dark-mode {
  background: #000000;
  color: #f5f5f7;
}

body.dark-mode {
  --primary: #0a84ff;
  --primary-dark: #0071e3;
  --accent: #0a84ff;
  --accent-bright: #30d158;
  --background: #000000;
  --surface: #1c1c1e;
  --surface-dark: #1c1c1e;
  --surface-elevated: #2c2c2e;
  --surface-elevated-dark: #2c2c2e;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-dark: #f5f5f7;
  --text-secondary-dark: #86868b;
  --border: #38383a;
  --border-dark: #38383a;
}

/* HEADER */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.dark-mode .main-header {
  background: rgba(28, 28, 30, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  height: 36px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

body.dark-mode .nav-link {
  color: var(--text-dark);
  opacity: 0.7;
}

body.dark-mode .nav-link:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.account-balance {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

body.dark-mode .account-balance {
  color: #ffffff;
}

.profile-pic {
  color: var(--text);
  font-size: 1.5rem;
}

body.dark-mode .profile-pic {
  color: var(--text-dark);
}

.theme-toggle {
  background: rgba(120, 120, 128, 0.12);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(120, 120, 128, 0.2);
}

body.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* DASHBOARD CARDS */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard .card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

body.dark-mode .dashboard .card {
  background: var(--surface-elevated-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-dark);
}

body.dark-mode .dashboard .card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-dark);
}

.dashboard .card h2 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

body.dark-mode .dashboard .card h2 {
  color: var(--text-secondary-dark);
}

.dashboard .card .balance-amount {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.dark-mode .dashboard .card .balance-amount {
  color: #ffffff;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

body.dark-mode .cta-btn {
  background: var(--accent-bright);
}

body.dark-mode .cta-btn:hover {
  background: var(--primary-dark);
}

/* WALLET PAGE */
.wallet-transactions-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .wallet-transactions-card {
  background: var(--surface-elevated-dark);
  box-shadow: var(--shadow-dark);
}

.wallet-transactions-card h2 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

body.dark-mode .wallet-transactions-card h2 {
  color: var(--text-dark);
}

/* TRANSACTION TABLE */
.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tx-header-cell {
  text-align: left;
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

body.dark-mode .tx-header-cell {
  color: var(--text-secondary-dark);
  border-bottom-color: var(--border-dark);
}

.tx-row {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.dark-mode .tx-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tx-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .tx-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tx-cell {
  padding: 1rem 0.5rem;
  color: var(--text);
  font-weight: 500;
}

body.dark-mode .tx-cell {
  color: var(--text-dark);
}

.tx-date {
  white-space: nowrap;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

body.dark-mode .tx-date {
  color: var(--text-secondary-dark);
}

.tx-amount {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tx-amount-deposit {
  color: #34c759;
}

body.dark-mode .tx-amount-deposit {
  color: #30d158;
}

.tx-amount-withdrawal {
  color: #ff3b30;
}

body.dark-mode .tx-amount-withdrawal {
  color: #ff453a;
}

.tx-amount-refund {
  color: #ff9500;
}

body.dark-mode .tx-amount-refund {
  color: #ff9f0a;
}

.tx-amount-card_fund {
  color: var(--primary);
}

body.dark-mode .tx-amount-card_fund {
  color: var(--accent-bright);
}

.tx-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 2rem 0.5rem;
}

body.dark-mode .tx-empty {
  color: var(--text-secondary-dark);
}

/* BADGES */
.tx-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tx-badge-deposit {
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
}

body.dark-mode .tx-badge-deposit {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.tx-badge-withdrawal {
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
}

body.dark-mode .tx-badge-withdrawal {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.tx-badge-refund {
  background: rgba(255, 149, 0, 0.12);
  color: #c27400;
}

body.dark-mode .tx-badge-refund {
  background: rgba(255, 159, 10, 0.15);
  color: #ff9f0a;
}

.tx-badge-card_fund {
  background: rgba(0, 113, 227, 0.12);
  color: #0058b0;
}

body.dark-mode .tx-badge-card_fund {
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
}

/* INLINE STYLE OVERRIDES FOR DARK MODE */
body.dark-mode .wallet-transactions-card,
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"] {
  background: var(--surface-elevated-dark) !important;
}

body.dark-mode [style*="color: #666"],
body.dark-mode [style*="color:#666"] {
  color: var(--text-secondary-dark) !important;
}

body.dark-mode [style*="border-bottom:1px solid #eee"],
body.dark-mode [style*="border-bottom: 1px solid #eee"],
body.dark-mode [style*="border-bottom:1px solid #f5f5f5"],
body.dark-mode [style*="border-bottom: 1px solid #f5f5f5"] {
  border-color: var(--border-dark) !important;
}

/* MODALS - Add Wallet, Deposit, Fund Card */
body.dark-mode #addWalletModal > div[style*="background:#fff"],
body.dark-mode #depositModal > div[style*="background:#fff"],
body.dark-mode #fundCardModal > div[style*="background:#fff"] {
  background: var(--surface-elevated-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #addWalletModal .wallet-modal-title,
body.dark-mode #addWalletModal h2,
body.dark-mode #depositModal h2,
body.dark-mode #fundCardModal h2 {
  color: #f5f5f7 !important;
}

body.dark-mode #addWalletModal .wallet-modal-label,
body.dark-mode #addWalletModal label[style*="color:#333"],
body.dark-mode #depositModal label,
body.dark-mode #fundCardModal label {
  color: #c7c7cc !important;
}

body.dark-mode #addWalletModal .wallet-modal-close,
body.dark-mode #depositModal .wallet-modal-close,
body.dark-mode #fundCardModal .wallet-modal-close {
  color: #86868b !important;
}

/* Force dropdown menu appearance in dark mode */
body.dark-mode #addWalletModal select,
body.dark-mode #addWalletModal .wallet-modal-select {
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  color-scheme: dark !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: 10px 36px 10px 12px !important;
}

body.dark-mode #addWalletModal input,
body.dark-mode #depositModal input,
body.dark-mode #fundCardModal input {
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Option elements - limited browser support */
body.dark-mode #addWalletModal select option,
body.dark-mode #addWalletModal option {
  background: #1c1c1e !important;
  color: #ffffff !important;
}

/* Deposit modal specific styles */
body.dark-mode #depositModal .deposit-qr-box,
body.dark-mode #depositModal .deposit-address-box,
body.dark-mode #depositModal .deposit-amount-box,
body.dark-mode #depositModal .deposit-timer-box {
  background: #2c2c2e !important;
}

body.dark-mode #depositModal .deposit-label,
body.dark-mode #depositModal .deposit-address-text,
body.dark-mode #depositModal .deposit-amount {
  color: #86868b !important;
}

body.dark-mode #depositModal .deposit-timer,
body.dark-mode #depositModal .deposit-timer-label {
  color: #0a84ff !important;
}

body.dark-mode #depositModal .deposit-info-box {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
}

/* Fund card modal specific styles */
body.dark-mode #fundCardModal .fundcard-info,
body.dark-mode #fundCardModal .fundcard-terms {
  color: #86868b !important;
  background: rgba(255, 193, 7, 0.08) !important;
  border-color: #ffd9b3 !important;
}

body.dark-mode #addWalletModal input::placeholder,
body.dark-mode #depositModal input::placeholder,
body.dark-mode #fundCardModal input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Legal pages dark mode */
body.dark-mode .legal-page {
  background: var(--surface-elevated-dark);
}

body.dark-mode .legal-page h1,
body.dark-mode .legal-page h2 {
  color: var(--text-dark) !important;
}

body.dark-mode .legal-page p,
body.dark-mode .legal-page li,
body.dark-mode .legal-page ul,
body.dark-mode .legal-page ol {
  color: var(--text-dark) !important;
}

/* Modal placeholders */
body.dark-mode #addWalletModal input::placeholder,
body.dark-mode #depositModal input::placeholder,
body.dark-mode #fundCardModal input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}
.main-footer {
  margin-top: auto;
  padding: 2rem 1rem;
  background: #f5f5f7;
  border-top: 1px solid #e5e7eb;
}

body.dark-mode .main-footer {
  background: #1c1c1e;
  border-top-color: #2c2c2e;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

body.dark-mode .footer-link {
  color: #86868b;
}

body.dark-mode .footer-link:hover {
  color: var(--accent-bright);
}

/* Hide mobile nav on desktop by default */
.mobile-nav {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Tablet and below - compact header, show bottom nav */
@media (max-width: 768px) {
  .main-header {
    flex-wrap: nowrap;
    height: 56px;
    padding: 0 1rem;
    gap: 0;
  }

  .header-left {
    flex: 0 0 auto;
  }

  .header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  .main-nav {
    display: none !important;
  }

  .mobile-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    background: var(--background);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  body.dark-mode .mobile-nav {
    background: var(--background-dark);
    border-top-color: var(--border-dark);
  }

  .mobile-nav .nav-link {
    color: var(--text);
    font-size: 1.4rem;
    padding: 0.5rem;
  }

  .mobile-nav .nav-link:hover {
    color: var(--accent);
  }

  body.dark-mode .mobile-nav .nav-link {
    color: var(--text-dark);
  }

  main {
    padding-bottom: 70px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .wallet-transactions-card {
    padding: 1rem;
  }

  .dashboard .card {
    padding: 1rem;
  }

  .dashboard .card .balance-amount {
    font-size: 1.3rem;
  }

  #chatbot-widget {
    bottom: 75px !important;
    right: 16px !important;
  }

  #chatbot-widget .chatbot-toggle {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Compact header for 375px and below */
@media (max-width: 400px) {
  .main-header {
    padding: 0 0.5rem;
  }

  .header-right {
    gap: 0.35rem !important;
  }

  .account-balance {
    font-size: 0.7rem;
  }

  .account-balance i {
    display: none;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .nav-link i {
    font-size: 0.85rem;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .logo {
    height: 30px;
  }

  .mobile-nav {
    height: 50px;
  }

  .mobile-nav .nav-link {
    font-size: 1.2rem;
    padding: 0.3rem;
  }

  main {
    padding-bottom: 65px;
  }

  .profile-container {
    margin: 1rem 0.5rem;
    padding: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Extra small - 320px exactly */
@media (max-width: 320px) {
  .main-header {
    padding: 0 0.5rem;
  }

  .logo {
    height: 28px;
  }

  .header-right {
    gap: 0.2rem;
  }

  .mobile-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.25rem;
  }

  .mobile-nav {
    height: 48px;
  }

  main {
    padding-bottom: 56px;
  }

  .wallet-transactions-card {
    padding: 0.6rem;
  }

  .dashboard .card {
    padding: 0.6rem;
  }

  .dashboard .card .balance-amount {
    font-size: 1.1rem;
  }

  .cta-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Show profile link on desktop only, hide on mobile */
.desktop-only {
  display: inline-flex;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Dashboard dark mode fixes */
body.dark-mode .dash .muted { color: #86868b; }
body.dark-mode .dash .section-title { color: #f5f5f7; }
body.dark-mode .dash .balance-big { color: #f5f5f7; }
body.dark-mode .dash .action-btn { color: #f5f5f7; background: var(--surface-dark, #1c1c1e); border-color: rgba(255,255,255,0.06); }
body.dark-mode .dash .action-btn i { color: var(--accent-bright, #0a84ff); }
body.dark-mode .dash .security-row { border-bottom-color: #262628; }
body.dark-mode .dash .pay-buddy { border-bottom-color: #262628; }
body.dark-mode .dash .table th { color: #86868b; border-bottom-color: #2c2c2e; }
body.dark-mode .dash .table td { border-bottom-color: #262628; color: #f5f5f7; }
body.dark-mode .dash .wallet-addr-item { background: #2c2c2e; border-color: #3a3a3c; }
body.dark-mode .dash .wallet-addr-item strong { color: #f5f5f7; }
body.dark-mode .dash .wallet-addr-item .muted { color: #86868b; }
.amount-in { color: #0d7a42; }
body.dark-mode .amount-in { color: #30d158; }
.amount-out { color: #c81e1e; }
body.dark-mode .amount-out { color: #ff453a; }
body.dark-mode .dash .portfolio-item { border-bottom-color: #262628; }
body.dark-mode .dash .portfolio-item .avatar { background: var(--accent, #0071e3); }
body.dark-mode .dash .card-item { border-bottom-color: #262628; }
body.dark-mode .dash .manage-btn { color: var(--accent, #0071e3); border-color: var(--accent, #0071e3); }
body.dark-mode .dash .manage-btn:hover { background: rgba(10, 132, 255, 0.1); }

/* Modal dark mode */
body.dark-mode #sendMoneyModal > div { background: #1c1c1e !important; border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode #sendMoneyModal h3 { color: #f5f5f7; }
body.dark-mode #sendMoneyModal .close-modal { color: #86868b; }
body.dark-mode #sendMoneyModal label { color: #c7c7cc; }
body.dark-mode #sendMoneyModal input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #f5f5f7; }
body.dark-mode #sendMoneyModal input::placeholder { color: rgba(255,255,255,0.4); }

/* Send Money modals dark mode */
body.dark-mode #sendModal > div,
body.dark-mode #recipientModal > div,
body.dark-mode #globalErrorModal > div,
body.dark-mode #transferSuccessModal > div {
  background: #1c1c1e !important;
  border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode #sendModal h3,
body.dark-mode #recipientModal h3,
body.dark-mode #globalErrorModal h3,
body.dark-mode #transferSuccessModal h2,
body.dark-mode #transferSuccessModal h3 {
  color: #f5f5f7;
}
body.dark-mode #sendModal label,
body.dark-mode #recipientModal label {
  color: #c7c7cc;
}
body.dark-mode #sendModal input,
body.dark-mode #sendModal select,
body.dark-mode #recipientModal input,
body.dark-mode #recipientModal select {
  background: #2c2c2e !important;
  border-color: #38383a !important;
  color: #f5f5f7 !important;
}
body.dark-mode #sendModal input::placeholder,
body.dark-mode #recipientModal input::placeholder {
  color: #8e8e93;
}
body.dark-mode #sendModal .action-card,
body.dark-mode #sendModal .network-card {
  background: #2c2c2e !important;
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-mode #sendModal .action-card:hover,
body.dark-mode #sendModal .network-card:hover {
  background: #3a3a3c !important;
}
body.dark-mode #sendModal .tab-btn {
  color: #86868b;
  border-bottom-color: rgba(255,255,255,0.1);
}
body.dark-mode #sendModal .tab-btn.active {
  color: #0a84ff;
  border-bottom-color: #0a84ff;
}
body.dark-mode #sendModal .sort-btn {
  background: transparent;
  color: #c7c7cc;
  border-color: rgba(255,255,255,0.2);
}
body.dark-mode #sendModal .sort-btn:hover,
body.dark-mode #sendModal .sort-btn.active {
  background: #0a84ff;
  color: #fff;
  border-color: #0a84ff;
}
body.dark-mode #sendModal .meta-pill,
body.dark-mode #sendModal .stablecoin-pill {
  background: rgba(255,255,255,0.06);
  color: #c7c7cc;
}
body.dark-mode #sendModal .badge-recommended { background: #1c3a5e; color: #64b5f6; }
body.dark-mode #sendModal .badge-popular { background: #3e3520; color: #ffd54f; }
body.dark-mode #sendModal .badge-cheapest { background: #1a3a2a; color: #81c784; }
body.dark-mode #sendModal .badge-fastest { background: #2a1a3a; color: #b39ddb; }
body.dark-mode #sendModal .badge-high { background: #3a1a1a; color: #ef5350; }
body.dark-mode #sendModal .status-available { background: #1a3a2a; color: #81c784; }
body.dark-mode #sendModal .status-maintenance { background: #3e3520; color: #ffd54f; }
body.dark-mode #sendModal .status-disabled { background: #3a1a1a; color: #ef5350; }
body.dark-mode #sendModal .history-row {
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode #sendModal .history-row:hover {
  background: rgba(255,255,255,0.04);
}
body.dark-mode #sendModal .recipient-card {
  background: #2c2c2e;
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-mode #sendModal .recipient-card:hover {
  background: #3a3a3c;
}
body.dark-mode #sendModal #tsAmount,
body.dark-mode #transferSuccessModal #tsAmount,
body.dark-mode #transferSuccessModal #tsStatus {
  color: #f5f5f7;
}
body.dark-mode #transferSuccessModal > div {
  background: #1c1c1e !important;
}
body.dark-mode #transferSuccessModal #tsReference,
body.dark-mode #transferSuccessModal #tsTransferId,
body.dark-mode #transferSuccessModal #tsRecipient,
body.dark-mode #transferSuccessModal #tsDelivery {
  color: #f5f5f7;
}
body.dark-mode #transferSuccessModal span[style*="color:#6b7280"],
body.dark-mode #transferSuccessModal span[style*="color: #6b7280"] {
  color: #86868b !important;
}
body.dark-mode #transferSuccessModal button[style*="background:#f1f5f9"],
body.dark-mode #transferSuccessModal button[style*="background: #f1f5f9"] {
  background: #3a3a3c !important;
  color: #f5f5f7 !important;
}
body.dark-mode .dash .mini-chart div { opacity: 0.8; background: #30d158 !important; }
body.dark-mode .dash .mini-chart + div { color: #86868b; }

/* Profile page dark mode */
body.dark-mode .auth-card { background: #1c1c1e; border-color: rgba(255,255,255,0.08); }
body.dark-mode .auth-card .SignInText, body.dark-mode .auth-card h2, body.dark-mode .auth-card h3 { color: #f5f5f7; }
body.dark-mode .auth-card .someText { color: #86868b; }
body.dark-mode .auth-card .label { color: #f5f5f7; }
body.dark-mode .auth-card .profile-field { color: #e5e5e7; }
body.dark-mode .auth-card .form-control { background: #2c2c2e; color: #f5f5f7; border-color: #38383a; }
body.dark-mode .auth-card .form-control::placeholder { color: #8e8e93; }
body.dark-mode .auth-card .form-section-title { color: #0a84ff; }
body.dark-mode .auth-card .error-message { color: #f87171; }
body.dark-mode .auth-card div[style*="#fef3c7"] { background: #3a3a3c !important; }
body.dark-mode .auth-card div[style*="#d1fae5"] { background: #1f3a2a !important; }
body.dark-mode .auth-card div[style*="#f9fafb"] { background: #2c2c2e !important; }
