/**
 * Bostam SMM Platform — Customer Fintech Dashboard Stylesheet (Mobile-First)
 * Feature: UI-04 Customer Dashboard
 * Path: assets/css/dashboard.css
 *
 * MOBILE-FIRST ARCHITECTURE:
 * - Base styles target mobile viewports (320px – 480px)
 * - Progressive enhancements for tablets (768px), desktop (1024px), and large screens (1440px+)
 * - Strictly adheres to Bostam visual system (Deep Forest Green, Warm Orange, Cream surface)
 * - Zero em dashes in CSS or pseudoelements
 */

/* ==========================================================================
   1. Dashboard App Shell & Layout
   ========================================================================== */
body.dashboard-page,
body:has(.dashboard-layout) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
  position: relative;
  padding-top: 0 !important;
}

.dashboard-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   2. Left Sidebar Navigation (Mobile Drawer Baseline: 320px - 1023px)
   ========================================================================== */
.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background-color: var(--color-brand-green-dark, #0A2920);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.dashboard-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 41, 32, 0.65);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Brand Header */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #FFFFFF;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Sidebar Navigation Items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 0.875rem;
  flex: 1;
}

#dashboard-sidebar .sidebar-nav-item,
.dashboard-sidebar .sidebar-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.875rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  color: #DDF0E6 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

#dashboard-sidebar .sidebar-nav-item:hover,
.dashboard-sidebar .sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  transform: translateX(4px);
}

#dashboard-sidebar .sidebar-nav-item.active,
.dashboard-sidebar .sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

#dashboard-sidebar .sidebar-nav-item .sidebar-nav-icon,
.dashboard-sidebar .sidebar-nav-item .sidebar-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #9CC2B1 !important;
  stroke: #9CC2B1 !important;
  transition: stroke 0.2s ease, color 0.2s ease;
}

#dashboard-sidebar .sidebar-nav-item:hover .sidebar-nav-icon,
.dashboard-sidebar .sidebar-nav-item:hover .sidebar-nav-icon {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

#dashboard-sidebar .sidebar-nav-item.active .sidebar-nav-icon,
.dashboard-sidebar .sidebar-nav-item.active .sidebar-nav-icon {
  color: #FF7A1A !important;
  stroke: #FF7A1A !important;
}

#dashboard-sidebar .sidebar-nav-item .nav-badge,
.dashboard-sidebar .sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--color-accent-orange, #E8590C) !important;
  color: #FFFFFF !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  padding: 0.15rem 0.55rem !important;
  border-radius: 9999px !important;
  line-height: 1.3 !important;
}

/* Sidebar Footer & Logout */
.sidebar-footer {
  padding: 1.25rem 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

#dashboard-sidebar .sidebar-logout-btn,
.dashboard-sidebar .sidebar-logout-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
}

#dashboard-sidebar .sidebar-logout-btn:hover,
.dashboard-sidebar .sidebar-logout-btn:hover {
  background: rgba(232, 89, 12, 0.22) !important;
  border-color: #E8590C !important;
  color: #FF922B !important;
}

#dashboard-sidebar .sidebar-logout-btn svg,
.dashboard-sidebar .sidebar-logout-btn svg {
  stroke: currentColor;
}

/* ==========================================================================
   3. Top Navigation Bar (Mobile-First: 2 Rows on Mobile, 1 Row on 768px+)
   ========================================================================== */
.dashboard-topbar,
.dashboard-app > .site-header,
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border, #E5DFD5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 0.625rem;
  min-height: 56px;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.75rem max(1rem, env(safe-area-inset-left, 0px));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  order: 1;
}

.dashboard-topbar .mobile-menu-toggle,
.dashboard-app > .site-header .mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: var(--radius-md, 8px);
  color: var(--color-brand-green, #0D3B2E);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.15s ease;
}

.dashboard-topbar .mobile-menu-toggle:hover,
.dashboard-app > .site-header .mobile-menu-toggle:hover {
  background: var(--color-surface-hover, #EBE6DA);
  border-color: var(--color-brand-green, #0D3B2E);
}

.dashboard-topbar .brand-logo,
.dashboard-app > .site-header .brand-logo,
.site-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-green, #0D3B2E);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
  order: 2;
}

.topbar-right .btn-primary,
.topbar-new-order-btn {
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 100%;
  width: 100%;
  order: 3;
}

.topbar-search .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--color-text-muted, #6B655B);
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  height: 40px;
  padding: 0 1rem 0 2.75rem;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--color-text-main, #2C2824);
  transition: all 0.2s ease;
}

.topbar-search input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--color-accent-orange, #E8590C);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.12);
}

.topbar-search input::placeholder {
  color: var(--color-text-muted, #6B655B);
}

.topbar-new-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  height: 38px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

.topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  color: var(--color-text-main, #2C2824);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.topbar-icon-btn:hover {
  background: var(--color-surface-hover, #EBE6DA);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
}

/* User Menu Trigger: Compact Avatar on Mobile, Full on Desktop */
.user-menu-wrapper {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: opacity 0.15s ease;
}

.user-menu-trigger:focus-visible {
  outline: 2px solid var(--color-accent-orange, #E8590C);
  outline-offset: 2px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D3B2E 0%, #164E3D 100%);
  color: #DDF0E6;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(13, 59, 46, 0.15);
  overflow: hidden;
  position: relative;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar .avatar-svg {
  width: 20px;
  height: 20px;
  color: #DDF0E6;
  stroke: #DDF0E6;
}

.user-meta {
  display: none;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main, #2C2824);
}

.user-role {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B655B);
}

.chevron-icon {
  color: var(--color-text-muted, #6B655B);
  display: none;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  max-width: 90vw;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  z-index: 120;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--color-border, #E5DFD5);
  margin-bottom: 0.375rem;
}

.dropdown-user-avatar-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D3B2E 0%, #164E3D 100%);
  color: #DDF0E6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dropdown-user-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-user-avatar-preview .avatar-svg {
  width: 20px;
  height: 20px;
  stroke: #DDF0E6;
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.dropdown-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B655B);
  word-break: break-all;
  line-height: 1.3;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--color-text-main, #2C2824);
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--color-surface-subtle, #F5F2EB);
  color: var(--color-brand-green, #0D3B2E);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border, #E5DFD5);
  margin: 0.375rem 0;
}

.dropdown-logout-btn {
  color: #DC2626;
}

.dropdown-logout-btn:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

/* ==========================================================================
   4. Main Content Container
   ========================================================================== */
.dashboard-main,
.dashboard-app > .site-wrapper {
  flex: 1;
  padding: 1.25rem 1rem 3rem 1rem;
}

.dashboard-body {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   5. Welcome Greeting Row & Date/Time
   ========================================================================== */
.dashboard-greeting-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.greeting-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-green, #0D3B2E);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.greeting-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #6B655B);
  margin-top: 0.25rem;
}

.greeting-datetime {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B655B);
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.greeting-datetime svg {
  color: var(--color-brand-green, #0D3B2E);
  flex-shrink: 0;
}

/* ==========================================================================
   6. Financial & Metric Overview Cards (Mobile-First 4 Cards)
   ========================================================================== */
.overview-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fintech-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.fintech-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Card Themes */
.card-wallet {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  border-color: #BBF7D0;
}
.stat-card-icon-wrapper.icon-wallet {
  background: #DCFCE7;
  color: #166534;
}

.card-orders {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
  border-color: #FED7AA;
}
.stat-card-icon-wrapper.icon-orders {
  background: #FFEDD5;
  color: #C2410C;
}

.card-completed {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
  border-color: #BFDBFE;
}
.stat-card-icon-wrapper.icon-completed {
  background: #DBEAFE;
  color: #1D4ED8;
}

.card-referrals {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
  border-color: #E9D5FF;
}
.stat-card-icon-wrapper.icon-referrals {
  background: #F3E8FF;
  color: #7E22CE;
}

.stat-card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B655B);
  text-transform: capitalize;
}

.stat-card-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-text-main, #2C2824);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.fintech-stat-card .reserved-balance {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B655B);
  margin-top: 0.25rem;
}

.stat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: opacity 0.15s ease;
}

.stat-card-cta:hover {
  opacity: 0.85;
}

.cta-green { color: #166534; }
.cta-orange { color: #C2410C; }
.cta-blue { color: #1D4ED8; }
.cta-purple { color: #7E22CE; }

/* Prominent Wallet Overview Hero Card */
.card-wallet-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border: 1px solid #BBF7D0;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(13, 59, 46, 0.05);
}

.wallet-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wallet-hero-top .icon-wallet {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #DCFCE7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wallet-hero-body .stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B655B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-hero-body .stat-card-value.balance {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand-green, #0D3B2E);
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-word;
}

.wallet-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.wallet-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  min-height: 42px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wallet-action-btn.btn-add-funds {
  background: var(--color-accent-orange, #E8590C);
  color: #FFFFFF;
  border: 1px solid var(--color-accent-orange, #E8590C);
  box-shadow: 0 2px 8px rgba(232, 89, 12, 0.25);
}

.wallet-action-btn.btn-add-funds:hover {
  background: #D04F0A;
  border-color: #D04F0A;
  transform: translateY(-1px);
}

.wallet-action-btn.btn-new-order {
  background: var(--color-brand-green, #0D3B2E);
  color: #FFFFFF;
  border: 1px solid var(--color-brand-green, #0D3B2E);
  box-shadow: 0 2px 8px rgba(13, 59, 46, 0.2);
}

.wallet-action-btn.btn-new-order:hover {
  background: #0A2920;
  border-color: #0A2920;
  transform: translateY(-1px);
}

@media (max-width: 360px) {
  .wallet-hero-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .wallet-hero-body .stat-card-value.balance {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Skeleton Shimmer & Loading Placeholders
   ========================================================================== */
.skeleton-shimmer {
  display: inline-block;
  background: linear-gradient(90deg, #EBE6DA 25%, #F7F5F0 50%, #EBE6DA 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm, 6px);
  vertical-align: middle;
}

.skeleton-shimmer.skeleton-balance {
  height: 2rem;
  width: 140px;
}

.skeleton-shimmer.skeleton-count {
  height: 1.75rem;
  width: 54px;
}

.skeleton-order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border, #E5DFD5);
}

.skeleton-order-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.skeleton-order-lines {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.skeleton-line-title {
  height: 0.875rem;
  width: 60%;
}

.skeleton-line-subtitle {
  height: 0.75rem;
  width: 40%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Retry Button on Error State */
.alert-error .retry-btn {
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-color: #DC2626;
  color: #DC2626;
  background: #FFFFFF;
  cursor: pointer;
  border-radius: 8px;
}

.alert-error .retry-btn:hover {
  background: #FEF2F2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   7. Hero Growth Banner & Invite Card Row
   ========================================================================== */
.dashboard-banner-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Growth Banner Card */
.growth-banner-card {
  background: linear-gradient(135deg, #0A2920 0%, #0D3B2E 55%, #164E3D 100%);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(13, 59, 46, 0.3);
}

.growth-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.growth-banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.growth-banner-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.growth-banner-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.growth-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 700;
  border-radius: 9999px;
  width: fit-content;
}

.growth-banner-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.growth-social-badges {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.growth-social-badges .badge-icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.growth-social-badges .badge-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.22);
}

/* Invite & Earn Card (5% Authoritative Commission per DEC-016) */
.invite-earn-card {
  background: linear-gradient(180deg, #FEFCE8 0%, #FFFBEB 100%);
  border: 1px solid #FEF08A;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.invite-earn-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gift-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FEF08A;
  color: #854D0E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invite-earn-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #713F12;
  margin: 0;
}

.invite-earn-copy {
  font-size: 0.875rem;
  color: #854D0E;
  line-height: 1.45;
  margin: 0;
}

.invite-earn-action {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: auto;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #FFFFFF;
  border: 1px solid #EAB308;
  border-radius: 10px;
  color: #713F12;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.btn-copy-code:hover {
  background: #FEF9C3;
  border-color: #CA8A04;
}

.btn-copy-code:active {
  transform: scale(0.98);
}

.invite-earn-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #854D0E;
  text-decoration: underline;
  text-align: center;
}

.invite-earn-link:hover {
  color: #713F12;
}

/* ==========================================================================
   8. Order Analytics & Recent Orders Row
   ========================================================================== */
.analytics-orders-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Analytics Chart Card */
.analytics-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.analytics-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B655B);
  margin-top: 0.125rem;
}

.analytics-timeframe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B655B);
}

.chart-wrapper {
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.chart-svg {
  width: 100%;
  height: 200px;
  overflow: visible;
}

.chart-empty-message {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B655B);
  padding: 2rem 1rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-surface-subtle, #F5F2EB);
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B655B);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-completed { background: #164E3D; }
.dot-processing { background: #E8590C; }
.dot-pending { background: #94A3B8; }

/* Recent Orders Card */
.recent-orders-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.recent-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-orders-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.link-view-all {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent-orange, #E8590C);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.link-view-all:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.fintech-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fintech-order-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fintech-order-item:hover {
  background: #FFFFFF;
  border-color: var(--color-border-dark, #C9C2B5);
}

.order-platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  flex-shrink: 0;
}

.order-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.order-service-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B655B);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-bullet {
  color: var(--color-border-dark, #C9C2B5);
}

.order-target {
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-pricing-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
  text-align: right;
  flex-shrink: 0;
}

.order-charge {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-text-main, #2C2824);
}

.order-time {
  font-size: 0.6875rem;
  color: var(--color-text-muted, #6B655B);
}

/* ==========================================================================
   9. Popular Categories & Quick Actions Row
   ========================================================================== */
.categories-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Popular Categories Card */
.popular-categories-card,
.platforms-overview {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.popular-categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popular-categories-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.platform-shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.platform-shortcut-card:hover {
  background: #FFFFFF;
  border-color: var(--color-brand-green, #0D3B2E);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.platform-shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.platform-shortcut-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.platform-shortcut-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
}

.platform-shortcut-count {
  font-size: 0.6875rem;
  color: var(--color-text-muted, #6B655B);
  font-weight: 500;
}

/* Quick Actions Card */
.quick-actions-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quick-actions-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.quick-action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.quick-action-tile .quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-action-label {
  font-size: 0.8125rem;
  font-weight: 700;
}

.tile-orange {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #C2410C;
}
.tile-orange .quick-action-icon { color: #C2410C; }

.tile-green {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}
.tile-green .quick-action-icon { color: #166534; }

.tile-blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}
.tile-blue .quick-action-icon { color: #1D4ED8; }

.tile-purple {
  background: #FAF5FF;
  border-color: #E9D5FF;
  color: #7E22CE;
}
.tile-purple .quick-action-icon { color: #7E22CE; }

/* ==========================================================================
   10. Progressive Enhancements (Responsive Breakpoints)
   ========================================================================== */

/* 480px+: Compact Mobile Landscape */
@media (min-width: 480px) {
  .overview-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-info {
    display: flex;
  }

  .chevron-icon {
    display: block;
  }

  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 768px+: Tablets & Desktops */
@media (min-width: 768px) {
  .dashboard-topbar,
  .dashboard-app > .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    height: 70px;
    min-height: 70px;
    padding: 0 1.5rem;
    gap: 1rem;
    row-gap: 0;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
  }

  .dashboard-topbar .mobile-menu-toggle,
  .dashboard-app > .site-header .mobile-menu-toggle {
    order: initial;
    width: 42px;
    height: 42px;
  }

  .topbar-search {
    order: initial;
    flex: 1;
    width: 100%;
    margin-top: 0;
  }

  .topbar-search input {
    height: 42px;
    font-size: 0.875rem;
  }

  .topbar-right {
    order: initial;
    margin-left: 0;
    gap: 0.75rem;
  }

  .topbar-new-order-btn {
    height: 40px;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
  }

  .topbar-icon-btn {
    width: 40px;
    height: 40px;
  }

  .user-menu-trigger {
    padding: 0.25rem 0.65rem 0.25rem 0.35rem;
    background: var(--color-surface-subtle, #F5F2EB);
    border: 1px solid var(--color-border, #E5DFD5);
    border-radius: 9999px;
  }

  .user-menu-trigger:hover {
    background: var(--color-surface-hover, #EBE6DA);
  }

  .user-meta {
    display: flex !important;
  }

  .chevron-icon {
    display: block !important;
  }

  .dashboard-main,
  .dashboard-app > .site-wrapper {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }

  .dashboard-greeting-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .greeting-datetime {
    align-self: auto;
  }

  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .growth-banner-card {
    flex-direction: row;
    align-items: center;
    padding: 2rem 2.25rem;
  }
}

/* 1024px+: Desktop with Persistent Sidebar */
@media (min-width: 1024px) {
  .dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none !important;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-close-btn {
    display: none;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .dashboard-topbar .mobile-menu-toggle,
  .dashboard-app > .site-header .mobile-menu-toggle {
    display: none !important;
  }

  .dashboard-topbar .brand-logo,
  .dashboard-app > .site-header .brand-logo {
    display: none !important;
  }

  .dashboard-topbar,
  .dashboard-app > .site-header {
    padding: 0 2rem;
  }

  .dashboard-main,
  .dashboard-app > .site-wrapper {
    padding: 2rem 2rem 4rem 2rem;
  }

  /* 4 Financial Cards in a single row on desktop */
  .overview-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 2-column balanced layouts for rows */
  .dashboard-banner-row {
    grid-template-columns: 1.8fr 1fr;
    align-items: stretch;
  }

  .analytics-orders-row {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }

  .categories-actions-row {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }

  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 1440px+: Large Displays */
@media (min-width: 1440px) {
  .dashboard-layout {
    grid-template-columns: 280px 1fr;
  }

  .dashboard-body {
    max-width: 1440px;
    gap: 1.75rem;
  }

  .growth-banner-card {
    padding: 2.25rem 2.5rem;
  }
}

/* Toast Notification for Clipboard Copy */
.bostam-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-brand-green-dark, #0A2920);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bostam-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Visually hide legacy navigation fallback containers in the fintech header */
.site-header .nav-desktop,
.site-header .nav-mobile {
  display: none !important;
}

/* ==========================================================================
   Apple-Inspired Fintech Wallet Styles (UI-P0 Refactor)
   ========================================================================== */
.wallet-page-container {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wallet-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand-green, #0D3B2E);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem 0;
}

.wallet-header p {
  color: var(--color-text-muted, #6B655B);
  font-size: 0.9375rem;
  margin: 0;
}

/* Inset Apple-Style Balance Card */
.wallet-hero-apple-card,
.balance-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(13, 59, 46, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  color: var(--color-text-main, #2C2824);
}

.wallet-kicker,
.balance-card .balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6B655B);
}

.wallet-balance-amount,
.balance-card .balance-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand-green, #0D3B2E);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.25rem;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.wallet-reserved-text,
.balance-card .reserved-amount {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B655B);
  margin-top: 0.35rem;
}

/* Action Tray */
.wallet-action-tray,
.balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-wallet-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent-orange, #E8590C) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--color-accent-orange, #E8590C) !important;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(232, 89, 12, 0.25);
  min-height: 46px;
  text-decoration: none;
}

.btn-wallet-primary:hover {
  background: #D04F0A !important;
  border-color: #D04F0A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.35);
}

.btn-wallet-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent !important;
  color: var(--color-brand-green, #0D3B2E) !important;
  border: 1.5px solid var(--color-brand-green, #0D3B2E) !important;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 46px;
  text-decoration: none;
}

.btn-wallet-outline:hover {
  background: rgba(13, 59, 46, 0.05) !important;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .wallet-action-tray,
  .balance-actions {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
}

/* Dual-Currency Inputs Row */
.dual-currency-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 380px) {
  .dual-currency-inputs-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.dual-input-col {
  display: flex;
  flex-direction: column;
}

.dual-input-col .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-brand-green, #0D3B2E);
  margin-bottom: 0.25rem;
}

.currency-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.currency-prefix {
  position: absolute;
  left: 0.75rem;
  color: var(--color-text-muted, #6B655B);
  font-weight: 700;
  font-size: 0.9375rem;
  pointer-events: none;
  user-select: none;
}

.currency-suffix {
  position: absolute;
  right: 0.65rem;
  color: var(--color-text-muted, #6B655B);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

.has-prefix-usd {
  padding-left: 1.625rem !important;
}

.has-suffix-xaf {
  padding-right: 2.75rem !important;
}

.pill-xaf {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted, #6B655B);
  margin-top: 1px;
}

.quick-pill-btn:hover .pill-xaf,
.quick-pill-btn.active .pill-xaf {
  color: var(--color-accent-orange, #E8590C);
}

/* Quick Select Pills */
.quick-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.quick-pill-btn {
  background: var(--color-surface-subtle, #F5F2EB);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.quick-pill-btn:hover,
.quick-pill-btn.active {
  background: #FFFFFF;
  border-color: var(--color-accent-orange, #E8590C);
  color: var(--color-accent-orange, #E8590C);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Breakdown Cards */
.apple-breakdown-card {
  background: var(--color-surface-subtle, #FAF8F5);
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.apple-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B655B);
}

.apple-breakdown-row.total {
  border-top: 1px solid var(--color-border, #E5DFD5);
  padding-top: 0.625rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
}

/* Grouped Key-Value Ledger List */
.tx-section {
  margin-top: 1.75rem;
}

.tx-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tx-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.tx-date-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6B655B);
  margin: 1.5rem 0 0.5rem 0;
}

.settings-list,
.tx-group-list,
.tx-list {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5DFD5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.settings-item,
.tx-row-item,
.tx-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border, #E5DFD5);
  gap: 1rem;
  transition: background 0.15s ease;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.settings-item:last-child,
.tx-row-item:last-child,
.tx-card:last-child {
  border-bottom: none;
}

.settings-item:hover,
.tx-row-item:hover,
.tx-card:hover {
  background: rgba(250, 248, 245, 0.6);
}

.tx-info,
.tx-row-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tx-title,
.tx-row-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  line-height: 1.25;
}

.tx-date,
.tx-row-date {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6B655B);
}

.tx-desc,
.tx-row-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B655B);
  word-break: break-word;
  margin-top: 0.125rem;
}

.tx-amount,
.tx-row-amount {
  font-size: 1.0625rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tx-amount.credit,
.tx-row-amount.credit {
  color: #16A34A;
}

.tx-amount.debit,
.tx-row-amount.debit {
  color: var(--color-brand-green, #0D3B2E);
}

.tx-amount.reserve,
.tx-row-amount.reserve {
  color: var(--color-accent-orange, #E8590C);
}

/* Empty State Modern Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px dashed var(--color-border, #E5DFD5);
  gap: 0.625rem;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--color-text-muted, #6B655B);
  stroke-width: 1.75;
  margin-bottom: 0.25rem;
}

.empty-state h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-green, #0D3B2E);
  margin: 0;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B655B);
  margin: 0;
  max-width: 320px;
}




