:root {
  /* Light Theme Variables */
  --bg-primary: #f6f4fb;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-main: #29253a;
  --text-muted: #817b92;
  --primary-color: #4b18d2;
  --primary-hover: #3510a1;
  --primary-soft: #f1edff;
  --border-color: rgba(46, 29, 92, 0.1);
  --shadow-sm: 0 4px 12px rgba(46, 29, 92, 0.05);
  --shadow-md: 0 14px 45px rgba(46, 29, 92, 0.08);
  --sidebar-bg: linear-gradient(160deg, #4b13d4, #3810ad);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.72);
  --sidebar-active: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0f0c1b;
  --bg-secondary: #1a1625;
  --bg-glass: rgba(26, 22, 37, 0.7);
  --text-main: #f1edff;
  --text-muted: #a39eb8;
  --primary-color: #7a52f4;
  --primary-hover: #9674ff;
  --primary-soft: rgba(122, 82, 244, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 45px rgba(0, 0, 0, 0.4);
  --sidebar-bg: linear-gradient(160deg, #160f2e, #0e0a1f);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.6);
  --sidebar-active: rgba(122, 82, 244, 0.25);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, .summary-title, #balance, #profit {
  font-family: "Outfit", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* App Layout */
.app {
  min-height: 100vh;
  display: flex;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 290px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 32px 24px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  padding: 0 0 32px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  color: #4b13d4;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile {
  text-align: center;
  margin: 12px 0 24px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: auto auto 16px;
  background: #ffffff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.profile h3 {
  font-size: 18px;
  font-weight: 600;
}

.profile p {
  font-size: 12px;
  color: var(--sidebar-text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #55db91;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(85, 219, 145, 0.6);
}

.mini-balance {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-size: 14px;
}

.wallet-icon {
  color: #fff;
  opacity: 0.8;
  display: flex;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  color: var(--sidebar-text-muted);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item svg {
  opacity: 0.8;
}

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

.nav-item.active {
  background: var(--sidebar-active);
  color: white;
  box-shadow: inset 2px 0 0 0 white;
}

.nav-item.active svg {
  opacity: 1;
}

.logout {
  margin-top: auto;
  color: var(--sidebar-text-muted);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 12px;
}

.logout:hover {
  background: rgba(255, 100, 100, 0.1);
  color: #ff8a8a;
}

.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Content Area */
.main {
  margin-left: 290px;
  flex: 1;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

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

.menu-btn {
  display: none !important; /* Hidden on desktop when sidebar is open */
}

.sidebar-closed .menu-btn {
  display: flex !important; /* Shown on desktop when sidebar is closed */
}

.eyebrow {
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.topbar h1 {
  font-size: 32px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-btn,
.user-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover,
.user-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }


.user-chip {
  gap: 10px;
  border-radius: 24px;
  padding: 6px 16px 6px 6px;
  font-weight: 500;
  font-size: 14px;
}

.small-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

/* Content Area */
.content-area {
  position: relative;
  flex: 1;
}

.section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.active-section {
  display: block;
}

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

/* Home Section */
.summary-card {
  padding: 32px 40px;
}

.summary-heading {
  margin-bottom: 32px;
}

.summary-title {
  font-size: 24px;
  font-weight: 600;
}

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

.stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-color);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.pulse-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--primary-soft); }
  70% { box-shadow: 0 0 0 10px rgba(122, 82, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 82, 244, 0); }
}

.trend-up {
  background: rgba(85, 219, 145, 0.15);
  color: #55db91;
}

.stat p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.plans-row {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.primary-btn, .secondary-btn {
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(75, 24, 210, 0.3);
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(75, 24, 210, 0.4);
}

.secondary-btn {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Pages / Forms */
.page-card {
  max-width: 600px;
  padding: 40px;
}

.page-card > h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-card > .muted {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--text-muted);
}

form {
  display: grid;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.money-input {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s ease;
}

.money-input:focus-within {
  border-color: var(--primary-color);
}

.money-input span {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
}

.money-input input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 16px 12px;
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px 20px;
}

.empty-icon {
  margin: auto auto 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-color);
  display: grid;
  place-items: center;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 15px;
}

.mt-4 {
  margin-top: 24px;
}

/* Toast Notification */
.toast {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: var(--text-main);
  color: var(--bg-primary);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.close-modal-btn:hover {
  color: var(--text-main);
}

#modalStep1 h2, #modalStep2 h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.wallet-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.info-row span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.address-copy-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.copy-btn:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.address-text {
  word-break: break-all;
  color: var(--primary-color);
  font-family: monospace;
  font-size: 16px;
}

.modal-notice {
  display: flex;
  gap: 12px;
  background: rgba(255, 100, 100, 0.1);
  color: #ff6b6b;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.modal-notice svg {
  flex-shrink: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.loading-state {
  text-align: center;
  padding: 40px 0 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

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

/* Form Additions */
.file-input, .text-input, .select-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.file-input:focus, .text-input:focus, .select-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Wallet Selection */
.wallet-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px; /* Room for scrollbar */
}

/* Custom Scrollbar */
.wallet-selection-grid::-webkit-scrollbar {
  width: 6px;
}
.wallet-selection-grid::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 4px;
}
.wallet-selection-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.wallet-selection-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.wallet-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-card:hover {
  border-color: var(--primary-soft);
  background: var(--primary-soft);
}

.wallet-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wallet-card input[type="radio"]:checked + img + span {
  color: var(--primary-color);
  font-weight: 700;
}

/* Browser support for :has */
.wallet-card:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: var(--primary-soft);
}

.wallet-card img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: white; /* to ensure logos pop */
}

.wallet-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s;
}

/* Progress Tracker */
.progress-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 0 10px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed .step-circle {
  background: #55db91;
  color: #1a1625;
  border-color: #55db91;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  background: var(--primary-color);
  color: white;
}

.step-text {
  font-size: 13px;
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 16px;
  position: relative;
  top: -12px;
}

.progress-line.filled {
  background: #55db91;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%) !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .menu-btn {
    display: flex !important; /* Visible on mobile by default (sidebar is hidden) */
  }

  .sidebar.open ~ .main .menu-btn {
    display: none !important; /* Hide when sidebar is opened on mobile */
  }

  .main {
    margin-left: 0;
    padding: 32px 24px;
  }

  .menu-btn {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 16px 12px;
  }

  .topbar {
    margin-bottom: 24px;
    gap: 12px;
  }

  .topbar-left {
    gap: 10px;
  }

  .topbar h1 {
    font-size: 22px;
  }
  
  .eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .user-chip {
    padding: 4px;
  }
  
  .user-chip span {
    display: none;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .small-avatar {
    width: 28px;
    height: 28px;
  }

  .summary-card {
    padding: 20px 16px;
  }
  
  .summary-heading {
    margin-bottom: 20px;
  }
  
  .summary-title {
    font-size: 20px;
  }
  
  .stats-grid {
    gap: 16px;
    margin-bottom: 24px;
  }

  .stat {
    padding: 16px;
    gap: 16px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

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

  .plans-row {
    flex-direction: column;
    align-items: stretch;
    padding-top: 24px;
  }
  
  .plans-row button {
    width: 100%;
    padding: 16px;
  }

  .page-card {
    padding: 20px 16px;
  }
  
  .page-card > h2 {
    font-size: 24px;
  }
  
  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }

  .wallet-selection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .topbar {
    flex-wrap: wrap;
  }
  
  .topbar-left {
    width: 100%;
    justify-content: flex-start;
  }
  
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Custom Navbar Styles (Desktop & Mobile) */
.nav-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-toggle-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-color);
}

.topbar-title-group {
  display: flex;
  flex-direction: column;
}
.topbar-eyebrow {
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.nav-icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-color);
}

.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 16px 6px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-user-chip:hover {
  background: var(--primary-soft);
  border-color: var(--primary-color);
}

.nav-avatar {
  background: #5A27D6;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.close-sidebar {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .close-sidebar {
    display: block;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 24px;
    width: 95%;
  }
}

/* Update close-sidebar position */
.close-sidebar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}
@media (max-width: 1024px) {
  .close-sidebar {
    display: block;
  }
}

/* Desktop Sidebar Toggle */
.sidebar-closed .sidebar {
  transform: translateX(-100%);
}
.sidebar-closed .main {
  margin-left: 0;
}
.sidebar-closed .menu-btn {
  display: flex;
}

/* === TRANSACTION ITEM STYLES === */
.transaction-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.tx-title {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.tx-date {
  color: var(--sidebar-text-muted);
  font-size: 0.9rem;
}

.tx-amount-col {
  text-align: right;
}

.tx-amount {
  display: block;
  color: #ff8a8a;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.tx-status {
  font-size: 0.85rem;
  color: #4ade80;
  font-weight: 500;
}

/* === ADDITIONAL RESPONSIVENESS IMPROVEMENTS === */

@media (max-width: 1024px) {
  /* Tablet adjustments */
  .stats-grid {
    gap: 16px;
  }
  .modal-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* Mobile adjustments */
  .modal-actions {
    grid-template-columns: 1fr;
  }
  
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .tx-amount-col {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
  }
  
  .wallet-selection-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wallet-card {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  /* Small Mobile adjustments */
  .tx-amount-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Home Dashboard Custom Styles */
.home-dashboard {
  margin-top: 10px;
}
.dark-card {
  background: #1A1625;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 24px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.stat-icon.bg-purple-soft {
  background: rgba(122, 82, 244, 0.15);
  color: #9674ff;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.stat-icon.bg-green-soft {
  background: rgba(85, 219, 145, 0.15);
  color: #55db91;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.stat-details p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}
.stat-details h2 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .dark-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  
  .stat-details h2 {
    font-size: 24px;
  }
  
  .stat-icon.bg-purple-soft,
  .stat-icon.bg-green-soft {
    width: 48px;
    height: 48px;
  }
}

.empty-notification {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
  text-align: center;
}

.empty-notification svg {
  opacity: 0.5;
  width: 32px;
  height: 32px;
}

