:root {
  --surface-brand: #75AAEB;
  --surface-background: #1B2028;
  --surface-primary: #1B2028;
  --surface-secondary: #2B3340;
  --surface-disable: #5C6D88;
  --surface-positive: #00BD92;
  --surface-positive-light: #2B403B;
  --content-high-emphasis: #E7EAEF;
  --content-positive-primary: #00bd92;
  --content-primary: #E7EAEF;
  --content-secondary: #9FABBE;
  --content-tertiary: #838FA3;
  --content-constant-same: #1B2028;
  --border-primary: #5c6d88;
  --border-secondary: #2b3340;
  --border-brand: #75aaeb;
  --bg-theme-color:#1757A6;
}

body {
  font-family: "Iran Yekan", "Segoe UI", Tahoma, sans-serif;
  /*background-image: url("../images/Referral-d1f81e87.svg");*/
  /*background-blend-mode: overlay;*/
  background-color: #1757A6;
  color: var(--content-high-emphasis);
  direction: rtl;
  padding-bottom: 80px;
  overflow: hidden;
  height: 100vh;
}

.header-custom {
  
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.header-icon {
  color: var(--content-primary);
  font-size: 24px;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 3px;
  width: 8px;
  height: 8px;
  background-color: #EB758B;
  border-radius: 50%;
  border: 2px solid var(--surface-background);
}

.dashboard-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  object-fit: cover;
  z-index: 0;
}

.balance-section {
  position: relative;
  z-index: 1;
  /* padding: 20px; */
  text-align: center;
  height: 29%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.balance-amount {
  font-size: 40px;
  font-weight: bold;
  color: var(--content-high-emphasis);
  margin-bottom: 10px;
}

.balance-label {
  color: var(--content-secondary);
  font-size: 20px;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 0 20px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--content-high-emphasis);
  min-width: 80px;
}

.action-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--content-high-emphasis);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.action-icon i {
  color: var(--surface-brand);
  font-size: 32px;
}

.action-btn:active .action-icon {
  transform: scale(0.96);
}

.action-label {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-background);
  border-top: 1px solid var(--border-primary);
  padding: 12px 0;
  z-index: 1060;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--content-secondary);
  flex: 1;
}

.nav-item.active {
  color: var(--surface-brand);
}

.nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

/*.transaction-item:hover {*/
/*  transform: translateY(-1px);*/
/*  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);*/
/*  border-color: rgba(255, 255, 255, 0.10);*/
/*  background-color: rgba(255, 255, 255, 0.055);*/
/*}*/

/*.transaction-item:active {*/
/*  transform: translateY(0px) scale(0.995);*/
/*}*/

.transaction-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-icon.positive {
  background-color: var(--surface-positive-light);
  color: var(--content-positive-primary); 
}

.transaction-icon.negative {
  background-color: rgba(255, 77, 79, 0.18);
}

.transaction-icon i {
  color: var(--content-secondary);
  font-size: 22px;
  line-height: 1;
  display: block;
}

.transaction-icon.positive i {
  color: var(--surface-positive);
}

.transaction-icon.negative i {
  color: #5C6D88;
}

.transaction-details {
  flex: 1;
  min-width: 0; /* allow ellipsis */
}

.transaction-title {
  font-weight: 600;
  color: var(--content-high-emphasis);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-date {
  font-size: 12px;
  color: var(--content-secondary);
  opacity: 0.9;
}

.transaction-amount {
  font-weight: 600;
  color: var(--content-primary);
  text-align: left;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.03);
  font-variant-numeric: tabular-nums;
}

.transaction-amount.positive {
  color: var(--surface-positive);
  background-color: rgba(0, 189, 146, 0.18);
  border-color: rgba(0, 189, 146, 0.35);
}

.transaction-amount.negative {
  color: #ff4d4f;
  background-color: rgba(255, 77, 79, 0.18);
  border-color: rgba(255, 77, 79, 0.35);
}

.transaction-icon.invoice {
  background-color: rgba(78, 145, 230, 0.14);
}

.transaction-icon.status-pending {
  background-color: #384D69;
}

.transaction-icon.status-pending img {
  width: 22px;
  height: 22px;
}

.transaction-amount.status-pending {
  color: #A7C4E8;
  background-color: #384D69;
  border-color: #4e7cb8;
}

.transaction-amount.status-expired {
  color: #6b7280;
  background-color: rgba(60, 61, 63, 0.423);
  border-color: rgba(139, 149, 165, 0.45);
}

.transaction-icon.status-expired {
  background-color: rgba(60, 61, 63, 0.423);
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-background);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow-y: hidden;
  overflow-x: hidden;
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.bottom-sheet::-webkit-scrollbar {
  width: 6px;
}

.bottom-sheet::-webkit-scrollbar-track {
  background: transparent;
}

.bottom-sheet::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 3px;
}

.bottom-sheet::-webkit-scrollbar-thumb:hover {
  background: var(--content-secondary);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background-color: var(--border-primary);
  border-radius: 9999px;
  margin: 12px auto;
  
}

.profile-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
}

.main-content {
  overflow-y: auto;
  height: calc(100vh - 60px);
}

.chevron-icon {
  color: var(--surface-brand);
}

.action-icon-secondary {
  background-color: rgba(231, 234, 239, 0.12);
}

.action-icon-secondary i {
  color: var(--content-high-emphasis);
}

