/* ============================================
   Dashboard Section Styles
   Note: CSS Variables are defined in assets/css/variable.css
   Note: Reset and base styles are in assets/css/global.css
   ============================================ */
:root {
  --loading-skeleton-color: #efefef;
}

/* Small Mobile (320px - 578px) */
@media (max-width: 360px) { }

/* Tablet and up (579px+) */
@media (min-width: 579px) { }

/* Desktop (1078px+) */
@media (min-width: 1078px) { }

/* Large Desktop (1400px+) */
@media (min-width: 1400px) { }

/* Main Container for Side-by-Side Layout */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: var(--spacing-2xl);
  align-items: stretch;
}

/* ستون چپ — ماشین‌حساب + نمودار */
.chart-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.chart-section > .chart-container,
.chart-section > #calculator-dsh {
  flex-shrink: 0;
  width: 100%;
}

.chart-section > .chart-container {
  flex: 1;
  min-height: 0;
}

/* کیف پول شما Section */
.wallet-section {
  flex: 0 0 40%;
  width: 40%;
  /* background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 33px var(--spacing-3xl);
    box-shadow: var(--shadow-card); */
  display: flex;
  flex-direction: column;
  height: 100%;
  align-self: stretch;
}

.wallet-container,
.dashboard-open-orders {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  padding: var(--spacing-lg);
  background-color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e0e3e5;
}

/* ═══════════════════════════════════════════════════
   ویجت معاملات باز — ستون راست (wallet-section)
   ═══════════════════════════════════════════════════ */

.wallet-section > .dashboard-open-orders {
  flex: 0 0 auto;
  height: auto;
  margin-top: var(--spacing-lg);
  gap: var(--spacing-sm);
}

/* ── هدر — وسط‌چین عمودی ── */
.dashboard-open-orders__header {
  align-items: center;
  margin-bottom: var(--spacing-xs);
  padding-bottom: 0;
  border-bottom: none;
}

/* ── لیست — گرید ۲ ستونه (هر کارت نصف عرض) ── */
.dashboard-open-orders__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-open-orders__list[hidden],
.dashboard-open-orders__empty[hidden],
.dashboard-open-orders__footer[hidden] {  
  display: none !important;
}

.dashboard-open-orders__item {
  padding: 7px 8px;
  min-height: 0;
  background: #e0e3e50d;
  border: 1px solid #e0e3e5;
  border-radius: 8px;
}

.dashboard-open-orders__item--buy {
  border-color: #1a7c1f;
}

.dashboard-open-orders__item--sell {
  border-color: var(--color-status-error, #d32f2f);
}

.dashboard-open-orders__expiry {
  flex: 0 0 72px;
  width: 72px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-open-orders__expiry .trades-expiry-countdown__value {
  display: inline-block;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  text-align: left;
}

.dashboard-open-orders__expiry[data-expires-ts=""] .trades-expiry-countdown__value {
  font-weight: 400;
  color: var(--color-text-muted);
}

.dashboard-open-orders__item--skeleton {
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 8px;
}

.dashboard-open-orders__item-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.dashboard-open-orders__item-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.dashboard-open-orders__item-row--head {
  justify-content: space-between;
  gap: 4px;
}

.dashboard-open-orders__item-head-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-open-orders__item-row--price {
  padding-right: 2px;
}

.dashboard-open-orders__item-row--total {
  justify-content: space-between;
  gap: 4px;
  padding-top: 2px;
  margin-top: 1px;
  border-top: 1px dashed #e8eaed;
}

.dashboard-open-orders__item-total-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* ── تایپوگرافی — مبالغ یکسان؛ مقدار معامله (گرم) ۱۰۰ واحد سنگین‌تر ── */
.dashboard-open-orders__item-unit,
.dashboard-open-orders__item-price-unit,
.dashboard-open-orders__item-total-label {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.dashboard-open-orders__item-type,
.dashboard-open-orders__item .trades-op-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  line-height: 1.3;
  flex-shrink: 0;
}

.dashboard-open-orders__item .trades-op-badge--buy {
  background-color: rgba(34, 113, 40, 0.1);
  color: #1a7c1f;
}

.dashboard-open-orders__item .trades-op-badge--sell {
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--color-status-error);
}

.dashboard-open-orders__item-price,
.dashboard-open-orders__item-total-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.dashboard-open-orders__item-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.dashboard-open-orders__item-unit {
  font-size: 12px;
}

.dashboard-open-orders__item-price-unit,
.dashboard-open-orders__item-total-label {
  font-size: 12px;
}

.dashboard-open-orders__item-total-label {
  flex-shrink: 0;
}

.dashboard-open-orders__item-total-value {
  flex: 0 0 auto;
  text-align: left;
}

.dashboard-open-orders__item-total-unit {
  flex: 0 0 auto;
  margin-inline-start: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* ── حالت خالی ── */
.dashboard-open-orders__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  background: #e0e3e50d;
  border: 1px solid #e0e3e5;
  border-radius: var(--radius-card);
}

.dashboard-open-orders__empty-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0;
}

.dashboard-open-orders__new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-input);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-white);
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-blue-hover) 100%);
  border: none;
  border-radius: var(--radius-default);
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}

.dashboard-open-orders__new-btn:hover {
  opacity: 0.92;
}

/* ── دکمه مشاهده همه معاملات ── */
.dashboard-open-orders__footer {
  margin-top: 4px;
}

.dashboard-open-orders__view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-default);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  color: var(--color-text-white);
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-blue-hover) 100%);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dashboard-open-orders__view-all-btn:hover {
  opacity: 0.92;
}

.wallet-section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: right;
}

/* Total Asset Value Card */
.total-asset-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-secondary-gold) 100%);
  border-radius: var(--radius-lg);
  padding: 16px var(--spacing-3xl) 26px var(--spacing-3xl);
  margin-bottom: var(--spacing-lg);
  min-height: 137px;
}

.eye-toggle-wrapper {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.total-asset-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.total-asset-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* TEMP: مهلت تسویه بدهی — غیرفعال
.credit-settlement-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #fff;
  direction: rtl;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#creditSettlementTimerWrap[hidden] {
  display: none !important;
}

.credit-settlement-timer.is-visible {
  opacity: 1;
}

.credit-settlement-timer-label {
  font-weight: 500;
}

.credit-settlement-timer-value {
  direction: ltr;
  font-weight: 700;
}
*/

.wallet-assets-tabs {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  padding: 4px 6px;
  background-color: var(--color-bg-lighter);
  border-radius: var(--radius-default);
  width: 100%;
}

.wallet-asset-tab-input {
  width: calc(100% / 3);
  height: 36px;
  position: absolute;
  z-index: 99;
  opacity: 0;
  cursor: pointer;
}

.wallet-asset-tab-input--free {
  right: 0;
}

.wallet-asset-tab-input--collateral {
  right: calc(100% / 3);
}

.wallet-asset-tab-input--debt {
  right: calc(2 * 100% / 3);
}

/* TEMP: تب‌های قبلی (کل / واقعی / اعتباری)
.wallet-asset-tab-input--all {
  right: 0;
}

.wallet-asset-tab-input--real {
  right: calc(100% / 3);
}

.wallet-asset-tab-input--credit {
  right: calc(2 * 100% / 3);
}

.wallet-asset-tab-input--real:checked ~ .wallet-assets-indicator {
  right: calc((100% - 12px) / 3 + 6px);
}

.wallet-asset-tab-input--credit:checked ~ .wallet-assets-indicator {
  right: calc(2 * (100% - 12px) / 3 + 6px);
}
*/

.wallet-assets-tab-label {
  width: calc(100% / 3);
  height: 36px;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  opacity: 0.6;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: var(--transition-fast);
  font-size: 15px;
  font-weight: 500;
}

.wallet-asset-tab-input:checked + .wallet-assets-tab-label {
  opacity: 1;
  font-weight: 600;
}

.wallet-assets-indicator {
  position: absolute;
  width: calc((100% - 12px) / 3);
  height: 36px;
  top: 4px;
  right: 6px;
  background-color: var(--color-bg-card);
  border-radius: calc(var(--radius-default) - 2px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.wallet-asset-tab-input--collateral:checked ~ .wallet-assets-indicator {
  right: calc((100% - 12px) / 3 + 6px);
}

.wallet-asset-tab-input--debt:checked ~ .wallet-assets-indicator {
  right: calc(2 * (100% - 12px) / 3 + 6px);
}

/* TEMP: total-asset-card غیرفعال (HTML در my-account.php کامنت شده)
.total-asset-card {
  display: none !important;
}
*/

.total-asset-label {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.total-asset-amount {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  direction: ltr;
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
}

/* مبلغ + «تومان» همیشه یک بلوک (لودینگ و مقدار نهایی) */
.total-asset-amount__pair {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.total-asset-amount__figure {
  display: inline-block;
  min-width: 0;
}

.total-asset-amount .unit,
.total-asset-amount__unit {
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* همان شیمِر بلوک مبلغ breakdown: کل جفت «مبلغ + تومان» تا پایان fetch */
.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 1.25rem;
  width: 100%;
}

.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: walletAssetLoading 0.9s ease-in-out infinite;
  pointer-events: none;
}

.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair .amount,
.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair .unit,
.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair .total-asset-amount__figure {
  color: transparent !important;
}

.wallet-first-silver-row-loading #totalAssetAmount .total-asset-amount__pair .ayarka-skeleton-inline {
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.total-asset-amount.hidden {
  filter: blur(8px);
  user-select: none;
}

.total-asset-description {
  font-size: 12px;
  color: #fff;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.5;
}

.asset-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-breakdown-row {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  width: 100%;
}

.asset-breakdown-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.asset-breakdown-label {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.asset-breakdown-info-icon {
  display: inline-flex;
  align-items: center;
  color: #fff;
  opacity: 0.9;
}

.asset-breakdown-amount {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  direction: ltr;
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
}

.asset-breakdown-amount .unit {
  font-size: 12px;
  font-weight: 500;
}

.asset-kind-badge {
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  margin: -3px 0px;
}

.asset-kind-badge.is-hidden {
  display: none;
}

/* Balance Sub-cards */
.balance-cards {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.balance-card {
  background: #e0e3e50d;
  border-radius: var(--radius-card);
  padding: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  /* min-height: 88px; */
  height: 100%;
  width: calc(50% - var(--spacing-lg) / 2);
  flex: 0 0 calc(50% - var(--spacing-lg) / 2);
  box-sizing: border-box;
  border: 1px solid #e0e3e5;
}

.silver-asset-accordion {
  width: 100%;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
}

.silver-asset-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background: #fff;
  border: none;
  /* padding: 12px 14px; */
  cursor: default;
  border-radius: 12px;
  gap: 8px;
}

.silver-asset-accordion-title {
  font-family: var(--font-family-body);
  font-size: 18px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  margin-left: 8px;
  margin-inline-end: auto;
}

.silver-asset-accordion-preview {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  direction: ltr;
  justify-content: flex-end;
  min-height: 32px;
}


.silver-asset-preview-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  flex-shrink: 0;
}

.silver-asset-preview-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.silver-asset-accordion-arrow {
  display: none;
}

.silver-asset-accordion-body {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

.silver-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0px;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 8px;
  margin-bottom: 6px;
}

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

.silver-asset-row:has(+ .silver-asset-row--total) {
  margin-bottom: 0;
}

.silver-asset-row--total,
#walletAssetsTotalRow {
  margin-top: 0;
  padding-top: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.silver-asset-row--total .silver-asset-name,
.silver-asset-row--total .silver-asset-row-left .amount {
  font-weight: 700;
}

.silver-asset-row-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.silver-asset-row-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.silver-asset-row-icon--total,
.silver-asset-row--total .silver-asset-row-icon {
  width: 16px;
  height: 16px;
}

.silver-asset-name {
  font-size: 14px;
  color: #333;
}

.silver-asset-row .asset-kind-badge {
  font-size: 10px;
  color: #888;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
  border: 0;
}

.silver-asset-row-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.silver-asset-row-left .amount {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.silver-asset-row-left .unit {
  font-size: 12px;
  color: #888;
}

/* Three Additional Cards */
.additional-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: 0;
}

.additional-cards .balance-card {
  min-height: 88px;
}

/* Deposit and Withdrawal Buttons */
.wallet-action-buttons {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.wallet-action-button--full {
  width: 100%;
  margin-top: var(--spacing-md);
  text-decoration: none;
}

.wallet-action-button--full.is-hidden,
#walletActionButtonsMain.is-hidden {
  display: none;
}

/* ─── لودینگ کیف پول (تا اتمام fetch داشبورد) ─── */
/*
 * دارایی ریالی + دارایی نقره‌ای: شیمِر فقط روی بلوک مبلغ (.asset-breakdown-amount)
 * عناوین در .asset-breakdown-row-head بدون افکت می‌مانند.
 * ارزش کل دارایی: همان الگو روی #totalAssetAmount .total-asset-amount__pair (بالای فایل).
 */
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(1) .asset-breakdown-amount,
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(2) .asset-breakdown-amount {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 1.75rem;
}

.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(1) .asset-breakdown-amount::after,
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(2) .asset-breakdown-amount::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: walletAssetLoading 0.9s ease-in-out infinite;
  pointer-events: none;
}

.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(1) .asset-breakdown-amount .amount,
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(1) .asset-breakdown-amount .unit,
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(2) .asset-breakdown-amount .amount,
.wallet-first-silver-row-loading .asset-breakdown-row:nth-child(2) .asset-breakdown-amount .unit {
  color: transparent !important;
}

/* همهٔ ردیف‌های دارایی در آکاردئون: شیمِر تمام‌عرض شامل آیکن */
.wallet-first-silver-row-loading .silver-asset-row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.wallet-first-silver-row-loading .silver-asset-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(236, 240, 245, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: walletAssetLoading 0.9s ease-in-out infinite;
  pointer-events: none;
}

.wallet-first-silver-row-loading .silver-asset-row .amount,
.wallet-first-silver-row-loading .silver-asset-row .unit,
.wallet-first-silver-row-loading .silver-asset-row .silver-asset-name,
.wallet-first-silver-row-loading .silver-asset-row .asset-kind-badge {
  color: transparent !important;
}

.wallet-first-silver-row-loading .silver-asset-row .silver-asset-row-icon {
  opacity: 0;
  visibility: hidden;
}

@keyframes walletAssetLoading {
  100% {
    transform: translateX(100%);
  }
}

.wallet-action-button {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 8px 12px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.wallet-action-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.5s ease;
  z-index: 1;
}

.wallet-action-button:hover::after {
  right: 0;
  width: 100%;
}

.wallet-action-button:active::after {
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15);
}

.wallet-action-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-blue);
  position: relative;
  z-index: 2;
}

.dashboard-action-button {
  /* background-color: #1c24740a; */
  /* border: 1px solid var(--color-primary-blue); */
  /* box-shadow: var(--shadow-card); */
  flex-direction: column;
}

.dashboard-action-text {
  color: var(--color-primary-blue);
}

.wallet-action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c24741c;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.dashboard-action-icon {
  background-color: none;
}

.wallet-icon-img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.wallet-disabled  {
  opacity: 0.5;
  pointer-events: none;
}
.balance-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.balance-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.balance-card-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.balance-card-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  direction: ltr;
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 4px;
}

.balance-card-amount .unit {
  font-size: 13px;
  font-weight: 500;
}

.balance-card-amount.hidden {
  filter: blur(8px);
  user-select: none;
}

.balance-card-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  direction: ltr;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  align-self: last baseline;
}

.balance-card-change.positive {
  color: var(--color-status-success);
  background-color: var(--color-status-success-bg);
}

.balance-card-change.negative {
  color: var(--color-status-error);
  background-color: var(--color-status-error-bg);
}

.balance-change-icon {
  width: 0;
  height: 0;
  display: inline-block;
}

.balance-card-change.positive .balance-change-icon {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--color-status-success);
}

.balance-card-change.negative .balance-change-icon {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-status-error);
}

.balance-change-value {
  font-weight: 600;
}

.eye-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.eye-toggle-btn:hover {
  opacity: 0.7;
}

.eye-toggle-btn:focus {
  outline: none;
}

.eye-toggle-btn:focus-visible {
  outline: none;
}

.eye-icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* بخش خرید و فروش */
.trades-section {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.trades-container {
  width: 100%;
}

.wallet-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.wallet-action-link {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-card);
  transition: var(--transition-fast);
  font-size: 14px;
  font-weight: 500;
}

.wallet-action-link:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary-blue);
}

/* بخش فرم خرید */
.wallet-content-section {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.wallet-content-container {
  width: 100%;
}

.wallet-content {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-card);
  max-width: 600px;
  margin: 0 auto;
}

.wallet-form-container {
  width: 100%;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100%;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  font-size: 16px;
  font-family: inherit;
  direction: rtl;
  text-align: right;
  transition: var(--transition-fast);
  background-color: var(--color-bg-card);
  color: var(--color-text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-input-focus);
}

.form-input::placeholder {
  color: var(--color-text-muted);
  text-align: right;
  opacity: 1;
}

.buy-btn {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-2xl);
  background-color: var(--color-primary-blue);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-card);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  line-height: 1.5;
}

.buy-btn:hover {
  background-color: var(--color-primary-blue-hover);
}

.buy-btn:active {
  background-color: var(--color-primary-blue-active);
}

.chart-container {
  width: 100%;
  /* padding: var(--spacing-2xl); */
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  padding: var(--spacing-lg);
  background-color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e0e3e5;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  margin-bottom: 0px !important;
  gap: var(--spacing-sm);
  flex-direction: row;
}

.chart-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
  text-align: right;
  line-height: 1;
}

.current-price-display {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: var(--spacing-sm) var(--spacing-sm);
  border: 1px solid var(--color-border-light);
  gap: 6px;
  flex-wrap: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.price-status-indicator {
  width: 8px;
  height: 8px;
  position: relative;
  margin-left: var(--spacing-sm);
  flex-shrink: 0;
}

.price-status-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  border-radius: 50%;
  background-color: rgba(56, 142, 60, 0.3);
  z-index: 1;
  animation: statusPulse 1.2s infinite ease-out;
}

.price-status-dot {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  background-color: var(--color-status-success);
  z-index: 2;
  animation: dotPulse 1.2s infinite ease-out;
}

@keyframes statusPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.8);
    opacity: 0.8;
  }
}

.current-price-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.current-price-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  direction: ltr;
  text-align: right;
  margin-right: 6px;
  margin-left: 3px;
}

.current-price-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Chart Controls Layout */
.chart-controls {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  align-items: center;
  justify-content: space-between;
}

.chart-period-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chart-period-btn {
  padding: 10px var(--spacing-xl);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition-fast);
  color: var(--color-text-primary);
}

.chart-period-btn:not(.active) {
  border: 1px solid var(--color-border-light);
}

.chart-period-btn:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
}

.chart-period-btn.active {
  background-color: var(--color-primary-blue);
  color: var(--color-text-white);
  border-color: var(--color-primary-blue);
}

.chart-period-btn.active:hover {
  background-color: var(--color-primary-blue-hover);
}

.price-change-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm) 14px;
  border-radius: var(--radius-default);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  direction: ltr;
}

.price-change-display.positive {
  background-color: var(--color-status-positive-bg);
  color: var(--color-status-positive);
}

.price-change-display.negative {
  background-color: var(--color-status-error-bg);
  color: var(--color-status-error);
}

.price-change-icon {
  width: 0;
  height: 0;
  display: inline-block;
}

.price-change-display.positive .price-change-icon {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--color-status-positive);
}

.price-change-display.negative .price-change-icon {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-status-error);
}

.price-change-value {
  font-weight: 700;
}

.chart-wrapper {
  height: 262px;
  position: relative;
  background: #ffffff;
  padding: 10px 0px;
  max-height: 262px;
}

#priceChart {
  width: 100% !important;
  height: 100% !important;
}

/* Toast Notification Styles - moved to global.css */

/* ============================================
   Admin Navigation Menu Styles
   Extracted from browser - exact pixel-perfect clone
   ============================================ */

/* Utility Classes */
.w-full {
  width: 100%;
}

.h-28 {
  height: 112px;
  /* 28 * 4px = 112px */
}

.bg-white-100 {
  background-color: #ffffff;
}

.rounded-8 {
  border-radius: 8px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.px-8 {
  padding-left: 32px;
  /* 8 * 4px = 32px */
  padding-right: 32px;
}

.mt-8 {
  margin-top: 32px;
  /* 8 * 4px = 32px */
}

.shadow-\[0_0_5px_0_\#EDECE9\] {
  box-shadow: 0 0 5px 0 #edece9;
}

/* Admin Navigation Menu Container */
#adminNavMenu {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  font-family:
    "iranyekan",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    sans-serif;
  font-size: 14px;
  color: var(--color-text-primary);
  text-align: right;
  direction: rtl;
  white-space: nowrap;
  overflow-x: auto;
  word-spacing: 16px;
}

#adminNavMenu::-webkit-scrollbar {
  height: 4px;
}

#adminNavMenu::-webkit-scrollbar-track {
  background: transparent;
}

#adminNavMenu::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 2px;
}

#adminNavMenu::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* اطلاعات حساب Section */
.account-info-container {
  background-color: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  /* box-shadow: var(--shadow-card); */
  display: flex;
  flex-direction: column;
}

.dashboard-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  align-items: center;
}
#calculator-dsh .dashboard-info-header {
  padding-bottom: var(--spacing-2xl);
}

.dashboard-info-header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
}

.dashboard-info-header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.account-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.account-info-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  text-align: right;
  line-height: 1.4;
}

.account-info-phone {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 14px;
  text-align: right;
  line-height: 1.5;
}

.account-info-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-info-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 14px;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border-lighter);
  transition: background-color var(--transition-fast);
}

.account-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-info-row:first-child {
  padding-top: 0;
}

.account-info-row:hover {
  background-color: transparent;
}

.account-info-label {
  font-weight: 500;
  color: var(--color-text-secondary);
  min-width: 140px;
  flex-shrink: 0;
  font-size: 15px;
}

.account-info-value {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 15px;
  flex: 1;
}

.account-logout-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-xl);
  background-color: #d92b2b0a;
  border: 1px solid #d49999;
  border-radius: var(--radius-md);
  color: #d92b2b;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-end;
  direction: rtl;
  text-decoration: none;
}

.account-logout-btn:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-border);
}

.account-logout-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.account-logout-text {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ===================================================
   Payment Methods - Modern RTL Style
   =================================================== */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

/* --- کارت هر روش پرداخت --- */
.payment-method {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background-color: var(--color-bg-card);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  gap: var(--spacing-md);
}

.payment-method:hover {
  border-color: #b0bec5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* --- وقتی انتخاب شده --- */
.payment-method:has(input:checked) {
  border-color: var(--color-secondary-gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(180, 150, 89, 0.1);
}

/* --- مخفی کردن radio پیش‌فرض --- */
.payment-method input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #cfd8dc;
  border-radius: 50%;
  background: #fff;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  position: relative;
  cursor: pointer;
}

.payment-method input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a73e8;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-method input[type="radio"]:checked {
  border-color: #1a73e8;
}

.payment-method input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* --- محتوای هر روش --- */
.method-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.method-content img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.method-content > span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #1e2a38;
  line-height: 1.4;
}

/* --- بج موجودی کیف پول --- */
.wallet-balance-badge {
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: var(--radius-default);
}


/* Responsive adjustments for large screens */
@media (min-width: 578px) {
  .asset-breakdown-row-head {
    margin-bottom: 4px;
  }
  .silver-asset-row {
    padding: 6px 10px;
  }
  #walletAssetsTotalRow,
  .silver-asset-row--total {
    padding-top: 10px;
  }
  .silver-asset-accordion-body {
    padding: 8px 14px 4px;
  }
  .asset-breakdown-row {
    width: 50%;
  }
  .silver-asset-accordion-toggle {
    padding: 12px 16px;
  }

  
  .asset-breakdown-list {
    flex-direction: row;
  }  
  .method-content > span:last-child {
  font-size: 15px;
}
  .wallet-section-title {
    font-size: var(--font-size-h3);
  }

  .wallet-container {
    padding: var(--spacing-2xl);
  }

  .wallet-section > .dashboard-open-orders {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .total-asset-amount {
    font-size: 28px;
  }

  .account-info-icon {
    width: 46px;
    height: 46px;
  }

  .dashboard-action-buttons {
    display: none;
  }

  .more-services-section-title {
    display: none;
  }

  .chart-section {
    gap: var(--spacing-2xl);
  }

  .chart-container {
    padding: var(--spacing-2xl);
  }
}

/* Responsive Design */
@media (max-width: 578px) {
  .silver-asset-accordion-preview {
    flex-direction: row-reverse;
  }
  .silver-asset-accordion-body {
    padding-top: 10px;
  }
  .chart-section {
    margin-top: 0px !important;
  }

  .main-container {
    flex-direction: column;
    gap: 20px;
  }

  .wallet-section {
    width: 100%;
    height: auto;
    align-self: auto;
  }

  .wallet-container,
  .dashboard-open-orders {
    height: auto;
  }

  .chart-section {
    width: 100%;
  }

  .wallet-container,
  .dashboard-open-orders {
    margin-bottom: 20px;
  }

  .wallet-section > .dashboard-open-orders {
    margin-top: 0;
  }

  .dashboard-open-orders__list {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .dashboard-action-buttons {
    margin-bottom: 0px;
  }

  .total-asset-card {
    padding: 18px 18px 22px 18px;
    min-height: 140px;
  }

  .balance-cards {
    flex-direction: column;
    gap: 12px;
  }

  .balance-card {
    width: 100%;
    flex: 0 0 100%;
  }

  .additional-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .balance-card {
    padding: 16px;
    min-height: auto;
  }

  .wallet-action-buttons {
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
  }

  .wallet-action-button {
    padding: 8px;
  }

  .dashboard-action-button {
    padding: 12px 10px;
    gap: 4px;
  }

  .wallet-content-section {
    margin-top: 20px;
    padding: 0 16px;
  }

  .wallet-content {
    padding: 20px;
    max-width: 100%;
  }

  .trades-section {
    margin-top: 20px;
    padding: 0 16px;
  }

  .wallet-actions {
    flex-direction: column;
    gap: 12px;
  }

  .wallet-action-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .chart-controls {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
  }

  .chart-period-btn {
    padding: 6px 4px;
    font-size: 11px;
  }

  .chart-wrapper {
    width: calc(100% + 14px);
    height: 248px;
    max-height: 248px;
  }

  .chart-header {
    flex-direction: column;
    align-items: self-end;
    gap: 12px;
  }

  .chart-title {
    font-size: 20px;
    margin: 0;
  }

  .current-price-display {
    font-size: 16px;
  }

  .current-price-value {
    font-size: 16px;
  }

  .chart-period-buttons {
    justify-content: center;
  }

  .price-change-display {
    justify-content: center;
  }

  .account-info-container {
    padding: var(--spacing-lg);
  }

  .dashboard-info-header {
    flex-direction: row;
    gap: var(--spacing-md);
  }

  .dashboard-info-header-right {
    order: 2;
  }

  /* .wallet-balance-badge {
    display: flex;
    flex-direction: column;
} */

  .info-header-left {
    order: 1;
  }

  .account-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .account-info-label {
    min-width: auto;
  }

  .account-logout-btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* Responsive adjustments for large screens */
@media (min-width: 1024px) {
  .lg\:px-2 {
    padding-left: 8px;
    /* 2 * 4px = 8px */
    padding-right: 8px;
  }

  .lg\:mt-4 {
    margin-top: 16px;
    /* 4 * 4px = 16px */
  }
}

/* Responsive adjustments for large screens */
@media (min-width: 1024px) and (max-width: 1400px) {
  .chart-wrapper {
    height: 264px;
    max-height: 264px;
  }
  .balance-card-icon {
    width: 36px;
    height: 36px;
  }
}

/* Trades verify modals — validity picker (footer) */
.modal-footer.trades-verify-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.trades-verify-footer__actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: var(--spacing-md, 12px);
  width: 100%;
}

.trades-verify-footer__actions .cancel-btn,
.trades-verify-footer__actions .submit-btn {
  flex: 1;
}

.trades-validity-picker {
  margin: 0;
  padding: 0;
}

.trades-validity-picker__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-family-body, inherit);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary, #1e2a38);
}

.trades-validity-picker .trades-validity-dropdown {
  width: 100%;
}

.trades-validity-dropdown .asset-type-dropdown__toggle {
  min-height: 44px;
  height: 44px;
}

.trades-validity-dropdown .asset-type-dropdown__toggle-inner,
.trades-validity-dropdown .asset-type-dropdown__option .asset-type-dropdown__item {
  min-height: 42px;
  padding: 0 14px 0 30px;
  align-items: center;
}

.trades-validity-dropdown .asset-type-dropdown__option .asset-type-dropdown__item {
  padding: 0 14px;
}

.trades-validity-dropdown .asset-type-dropdown__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.trades-validity-dropdown .asset-type-dropdown__toggle::before {
  left: 12px;
}

#verifyTradesBuy .modal-footer.trades-verify-footer,
#verifyTradesSell .modal-footer.trades-verify-footer {
  overflow: visible;
}

.trades-validity-dropdown .asset-type-dropdown__menu {
  top: auto;
  bottom: calc(100% + 6px);
  z-index: 30;
}

/* ─── Dashboard Credit CTA — نوار تمام‌عرض بالای اندپوینت ─── */
.dashboard-credit-cta-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.dashboard-credit-cta-wrap.is-hidden {
  display: none !important;
}

.dashboard-credit-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-default);
  text-align: right;
  direction: rtl;
}

.dashboard-credit-cta--aurora {
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, #2a358a 42%, var(--color-secondary-gold) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-credit-cta__aurora-glow {
  position: absolute;
  pointer-events: none;
  width: 140px;
  height: 140px;
  top: -50px;
  left: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.dashboard-credit-cta--bar .dashboard-credit-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  box-sizing: border-box;
}

.dashboard-credit-cta__aurora-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.dashboard-credit-cta__headline {
  flex: 1;
  min-width: 0;
}

.dashboard-credit-cta__title.wallet-section-title {
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-credit-cta__desc {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-credit-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-default);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.dashboard-credit-cta__btn:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

.dashboard-credit-cta__btn--light {
  padding: 10px 16px;
  background: #fff;
  color: var(--color-primary-blue);
}

.dashboard-credit-cta__btn--light:hover {
  opacity: 0.94;
}

@media (max-width: 578px) {
  .dashboard-credit-cta-wrap {
    margin-bottom: var(--spacing-md);
  }

  .dashboard-credit-cta--bar .dashboard-credit-cta__inner {
    min-height: 56px;
    padding: 10px 14px;
    gap: 12px;
  }

  .dashboard-credit-cta__desc {
    display: none;
  }

  .dashboard-credit-cta__btn--light {
    padding: 8px 12px;
    font-size: 14px;
  }
}

